/freebsd/share/examples/ses/srcs/ |
H A D | getobjmap.c | 50 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 D | getnobj.c | 48 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 D | getencstat.c | 55 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 D | nondestructive.c | 51 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 138 r = ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj); in do_getelmdevnames() 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 257 r = ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj); in do_getelmmap() 260 map = calloc(nobj, sizeof(encioc_element_t)); in do_getelmmap() [all …]
|
H A D | destructive.c | 72 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 D | ucl_parser.c | 98 ucl_object_t *nobj; in ucl_save_comment() local 101 nobj = ucl_object_fromstring_common (begin, len, 0); in ucl_save_comment() 105 DL_APPEND (parser->last_comment, nobj); in ucl_save_comment() 108 parser->last_comment = nobj; in ucl_save_comment() 641 ucl_object_t *nobj; in ucl_parser_add_container() local 644 nobj = ucl_object_new_full (is_array ? UCL_ARRAY : UCL_OBJECT, parser->chunks->priority); in ucl_parser_add_container() 645 if (nobj == NULL) { in ucl_parser_add_container() 657 nobj = obj; in ucl_parser_add_container() 658 nobj->type = is_array ? UCL_ARRAY : UCL_OBJECT; in ucl_parser_add_container() 662 if (nobj->value.ov == NULL) { in ucl_parser_add_container() [all …]
|
H A D | ucl_internal.h | 650 ucl_object_t *nobj);
|
/freebsd/usr.sbin/sesutil/ |
H A D | sesutil.c | 183 unsigned int nobj, j, sesid; in sesled() local 246 if (ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj) < 0) { in sesled() 251 objp = calloc(nobj, sizeof(encioc_element_t)); in sesled() 264 if (sesid >= nobj) { in sesled() 276 for (j = 0; j < nobj; j++) { in sesled() 419 unsigned int j, nobj; in objmap() local 464 if (ioctl(fd, ENCIOC_GETNELM, (caddr_t) &nobj) < 0) { in objmap() 469 e_ptr = calloc(nobj, sizeof(encioc_element_t)); in objmap() 492 for (j = 0; j < nobj; j++) { in objmap() 726 unsigned int j, nobj; in show() local [all …]
|
/freebsd/contrib/one-true-awk/ |
H A D | parse.c | 55 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 D | awk.h | 173 int nobj; member 234 #define isargument(n) ((n)->nobj == ARG)
|
H A D | awkgram.y | 497 switch (n->nobj) {
|
H A D | run.c | 164 if (notlegal(a->nobj)) /* probably a Cell* but too risky to print */ in execute() 166 proc = proctab[a->nobj-FIRSTTOKEN]; in execute() 167 x = (*proc)(a->narg, a->nobj); in execute()
|
H A D | b.c | 39 #define type(v) (v)->nobj /* badly overloaded here */
|
/freebsd/sys/fs/procfs/ |
H A D | procfs_map.c | 84 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 D | write.c | 338 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 D | write.c | 361 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 D | mlx4_icm.c | 388 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 D | icm.h | 81 u64 virt, int obj_size, u32 nobj, int reserved,
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_enc_ses.c | 2489 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() 2548 uint8_t *buf, int bufsiz, int eip, int nobj) in ses_get_elm_addlstatus_sas_type1() argument 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 2640 "invalid for SES element type 0x%x\n", nobj, in ses_get_elm_addlstatus_sas() 2647 nobj); in ses_get_elm_addlstatus_sas() [all …]
|
/freebsd/stand/ficl/softwords/ |
H A D | oo.fr | 414 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 D | mthca_memfree.c | 357 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 D | mthca_memfree.h | 86 int nobj, int reserved,
|
/freebsd/usr.sbin/rpc.lockd/ |
H A D | lockd_lock.c | 186 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 D | netmap_mem2.c | 766 nm_alloc_lut(u_int nobj) in nm_alloc_lut() argument 768 size_t n = sizeof(struct lut_entry) * nobj; in nm_alloc_lut() 791 nm_alloc_plut(u_int nobj) in nm_alloc_plut() argument 793 size_t n = sizeof(struct plut_entry) * nobj; in nm_alloc_plut()
|
/freebsd/sys/kern/ |
H A D | kern_proc.c | 2612 vm_object_t lobj, nobj, obj, tobj; in kern_proc_vmmap_out() local 2665 for (tobj = obj; tobj != NULL; tobj = nobj) { in kern_proc_vmmap_out() 2666 nobj = tobj->backing_object; in kern_proc_vmmap_out()
|