Home
last modified time | relevance | path

Searched refs:nobj (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/share/examples/ses/srcs/
H A Dgetobjmap.c50 int nobj, fd, i; in main() local
58 if (ioctl(fd, SESIOC_GETNOBJ, (caddr_t) &nobj) < 0) { in main()
63 fprintf(stdout, "%s: %d objects\n", *v, nobj); in main()
64 if (nobj == 0) { in main()
68 objp = calloc(nobj, sizeof (ses_object)); in main()
79 for (i = 0; i < nobj; i++) { in main()
H A Dgetnobj.c48 unsigned int nobj; in main() local
58 if (ioctl(fd, SESIOC_GETNOBJ, (caddr_t) &nobj) < 0) { in main()
61 fprintf(stdout, "%s: %d objects\n", name, nobj); in main()
H A Dgetencstat.c55 int fd, nobj, f, i, verbose, quiet, errors; in main() local
92 if (ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj) < 0) { in main()
132 objp = calloc(nobj, sizeof (encioc_element_t)); in main()
143 for (i = 0; i < nobj; i++) { in main()
/freebsd/tests/sys/ses/
H A Dnondestructive.c51 unsigned nobj; in do_getelmdesc() local
60 r = ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj); in do_getelmdesc()
106 ATF_CHECK_EQ_MSG(nobj, elm_idx, in do_getelmdesc()
132 unsigned nobj; in do_getelmdevnames() local
143 map = calloc(nobj, sizeof(encioc_element_t)); in do_getelmdevnames()
148 for (elm_idx = 0; elm_idx < nobj; elm_idx++) { in do_getelmdevnames()
254 unsigned nobj, subenc_id; in do_getelmmap() local
305 ATF_CHECK_EQ_MSG(nobj, elm_idx, in do_getelmmap()
332 unsigned nobj; in do_getelmstat() local
551 unsigned nobj, expected = 0; in do_getnelm() local
[all …]
H A Ddestructive.c72 unsigned nobj; in do_setelmstat() local
76 r = ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj); in do_setelmstat()
79 map = calloc(nobj, sizeof(encioc_element_t)); in do_setelmstat()
84 for (elm_idx = 0; elm_idx < nobj; elm_idx++) { in do_setelmstat()
113 for (elm_idx = 0; elm_idx < nobj; elm_idx++) { in do_setelmstat()
158 unsigned nobj; in do_setelmstat_cleanup() local
162 r = ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj); in do_setelmstat_cleanup()
165 map = calloc(nobj, sizeof(encioc_element_t)); in do_setelmstat_cleanup()
171 for (elm_idx = 0; elm_idx < nobj; elm_idx++) { in do_setelmstat_cleanup()
/freebsd/contrib/libucl/src/
H A Ducl_parser.c98 ucl_object_t *nobj; in ucl_save_comment() local
641 ucl_object_t *nobj; in ucl_parser_add_container() local
657 nobj = obj; in ucl_parser_add_container()
679 st->obj = nobj; in ucl_parser_add_container()
685 if (nobj != obj) { in ucl_parser_add_container()
707 return nobj; in ucl_parser_add_container()
709 if (nobj != obj) in ucl_parser_add_container()
1192 nobj->prev = nobj; in ucl_parser_process_object_element()
1243 nobj->key); in ucl_parser_process_object_element()
1254 nobj = tobj; in ucl_parser_process_object_element()
[all …]
H A Ducl_internal.h650 ucl_object_t *nobj);
/freebsd/usr.sbin/sesutil/
H A Dsesutil.c184 unsigned int nobj, j, sesid; in sesled() local
247 if (ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj) < 0) { in sesled()
252 objp = calloc(nobj, sizeof(encioc_element_t)); in sesled()
265 if (sesid >= nobj) { in sesled()
277 for (j = 0; j < nobj; j++) { in sesled()
420 unsigned int j, nobj; in objmap() local
470 e_ptr = calloc(nobj, sizeof(encioc_element_t)); in objmap()
493 for (j = 0; j < nobj; j++) { in objmap()
726 unsigned int j, nobj; in show() local
772 e_ptr = calloc(nobj, sizeof(encioc_element_t)); in show()
[all …]
/freebsd/contrib/one-true-awk/
H A Dparse.c55 x->nobj = a; in node1()
65 x->nobj = a; in node2()
76 x->nobj = a; in node3()
88 x->nobj = a; in node4()
101 x->nobj = a; in node5()
H A Dawk.h172 int nobj; member
234 #define isargument(n) ((n)->nobj == ARG)
H A Dawkgram.y497 switch (n->nobj) {
H A Drun.c163 if (notlegal(a->nobj)) /* probably a Cell* but too risky to print */ in execute()
165 proc = proctab[a->nobj-FIRSTTOKEN]; in execute()
166 x = (*proc)(a->narg, a->nobj); in execute()
/freebsd/sys/fs/procfs/
H A Dprocfs_map.c84 vm_object_t lobj, nobj, obj, tobj; in procfs_doprocmap() local
145 for (tobj = obj; tobj != NULL; tobj = nobj) { in procfs_doprocmap()
146 nobj = tobj->backing_object; in procfs_doprocmap()
/freebsd/usr.bin/ar/
H A Dwrite.c338 struct ar_obj *nobj, *obj, *obj_temp, *pos; in ar_write_archive() local
346 nobj = NULL; in ar_write_archive()
449 nobj = create_obj_from_file(bsdar, *av, in ar_write_archive()
451 if (nobj == NULL) { in ar_write_archive()
468 insert_obj(bsdar, nobj, pos); in ar_write_archive()
487 nobj = create_obj_from_file(bsdar, *av, 0); in ar_write_archive()
488 if (nobj == NULL) { in ar_write_archive()
493 insert_obj(bsdar, nobj, pos); in ar_write_archive()
494 if (bsdar->options & AR_V && nobj != NULL) in ar_write_archive()
/freebsd/contrib/elftoolchain/ar/
H A Dwrite.c361 struct ar_obj *nobj, *obj, *obj_temp, *pos; in ar_write_archive() local
369 nobj = NULL; in ar_write_archive()
478 nobj = create_obj_from_file(bsdar, *av, in ar_write_archive()
480 if (nobj == NULL) { in ar_write_archive()
497 insert_obj(bsdar, nobj, pos); in ar_write_archive()
517 nobj = create_obj_from_file(bsdar, *av, 0); in ar_write_archive()
518 if (nobj == NULL) { in ar_write_archive()
523 insert_obj(bsdar, nobj, pos); in ar_write_archive()
/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_icm.c388 u64 virt, int obj_size, u32 nobj, int reserved, in mlx4_init_icm_table() argument
398 num_icm = (nobj + obj_per_chunk - 1) / obj_per_chunk; in mlx4_init_icm_table()
405 table->num_obj = nobj; in mlx4_init_icm_table()
411 size = (u64) nobj * obj_size; in mlx4_init_icm_table()
H A Dicm.h81 u64 virt, int obj_size, u32 nobj, int reserved,
/freebsd/sys/cam/scsi/
H A Dscsi_enc_ses.c2489 uint8_t *buf, int bufsiz, int eip, int nobj) in ses_get_elm_addlstatus_sas_type0() argument
2499 obj = &(enc_cache->elm_map[nobj]); in ses_get_elm_addlstatus_sas_type0()
2521 nobj); in ses_get_elm_addlstatus_sas_type0()
2558 obj = &(enc_cache->elm_map[nobj]); in ses_get_elm_addlstatus_sas_type1()
2576 "End Of Buffer\n", nobj); in ses_get_elm_addlstatus_sas_type1()
2588 "Of Buffer\n", nobj); in ses_get_elm_addlstatus_sas_type1()
2616 int nobj) in ses_get_elm_addlstatus_sas() argument
2647 nobj); in ses_get_elm_addlstatus_sas()
2664 bufsiz, eip, nobj); in ses_get_elm_addlstatus_sas()
2668 "of unknown type 0x%x\n", nobj, in ses_get_elm_addlstatus_sas()
[all …]
/freebsd/stand/ficl/softwords/
H A Doo.fr414 locals| meta parent nobj |
415 create nobj
416 here parent --> .do-instance \ ( nobj inst class )
418 nobj * allot \ allocate payload space
443 locals| meta class nobj |
445 nobj * allocate ( -- addr fail-flag )
447 nobj over class --> array-init
459 : allot-array { nobj 2:this -- 2:instance }
461 this my=> get-size nobj * allot
463 nobj -rot --> array-init
[all …]
/freebsd/sys/dev/mthca/
H A Dmthca_memfree.c357 int nobj, int reserved, in mthca_alloc_icm_table() argument
367 num_icm = DIV_ROUND_UP(nobj, obj_per_chunk); in mthca_alloc_icm_table()
375 table->num_obj = nobj; in mthca_alloc_icm_table()
386 if ((i + 1) * MTHCA_TABLE_CHUNK_SIZE > nobj * obj_size) in mthca_alloc_icm_table()
387 chunk_size = nobj * obj_size - i * MTHCA_TABLE_CHUNK_SIZE; in mthca_alloc_icm_table()
H A Dmthca_memfree.h86 int nobj, int reserved,
/freebsd/usr.sbin/rpc.lockd/
H A Dlockd_lock.c186 void dump_netobj(const struct netobj *nobj);
288 dump_netobj(const struct netobj *nobj) in dump_netobj() argument
297 if (nobj == NULL) { in dump_netobj()
300 else if (nobj->n_len == 0) { in dump_netobj()
303 dump_static_object(nobj->n_bytes, nobj->n_len, in dump_netobj()
306 nobj->n_len, hbuff, cbuff); in dump_netobj()
/freebsd/sys/dev/netmap/
H A Dnetmap_mem2.c758 nm_alloc_lut(u_int nobj) in nm_alloc_lut() argument
760 size_t n = sizeof(struct lut_entry) * nobj; in nm_alloc_lut()
783 nm_alloc_plut(u_int nobj) in nm_alloc_plut() argument
785 size_t n = sizeof(struct plut_entry) * nobj; in nm_alloc_plut()
/freebsd/sys/kern/
H A Dkern_proc.c2608 vm_object_t lobj, nobj, obj, tobj; in kern_proc_vmmap_out() local
2657 for (tobj = obj; tobj != NULL; tobj = nobj) { in kern_proc_vmmap_out()
2658 nobj = tobj->backing_object; in kern_proc_vmmap_out()
/freebsd/libexec/rtld-elf/
H A Drtld.c2553 Obj_Entry *nobj; in initlist_add_objects() local
2560 nobj = globallist_next(obj); in initlist_add_objects()
2561 if (nobj != NULL && obj != tail) in initlist_add_objects()
2562 initlist_add_objects(nobj, tail, list); in initlist_add_objects()

12