/freebsd/contrib/processor-trace/libipt/src/ |
H A D | pt_block_cache.c | 35 struct pt_block_cache *pt_bcache_alloc(uint64_t nentries) in pt_bcache_alloc() argument 40 if (!nentries || (UINT32_MAX < nentries)) in pt_bcache_alloc() 43 size = sizeof(*bcache) + (nentries * sizeof(struct pt_bcache_entry)); in pt_bcache_alloc() 52 bcache->nentries = (uint32_t) nentries; in pt_bcache_alloc() 68 if (bcache->nentries <= index) in pt_bcache_add() 86 if (bcache->nentries <= index) in pt_bcache_lookup()
|
/freebsd/stand/efi/libefi/ |
H A D | handles.c | 39 int nentries; variable 48 idx = nentries; in efi_register_handles() 49 nentries += count; in efi_register_handles() 50 sz = nentries * sizeof(struct entry); in efi_register_handles() 54 for (unit = 0; idx < nentries; idx++, unit++) { in efi_register_handles() 71 for (idx = 0; idx < nentries; idx++) { in efi_find_handle() 86 for (idx = 0; idx < nentries; idx++) { in efi_handle_lookup() 106 for (idx = 0; idx < nentries; idx++) { in efi_handle_update_dev()
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | ce.c | 726 nentries -= 1; in ath10k_ce_rx_update_write_idx() 1436 u32 nentries) in ath10k_ce_alloc_shadow_base() argument 1459 nentries = roundup_pow_of_two(nentries); in ath10k_ce_alloc_src_ring() 1466 src_ring->nentries = nentries; in ath10k_ce_alloc_src_ring() 1517 nentries = roundup_pow_of_two(nentries); in ath10k_ce_alloc_src_ring_64() 1524 src_ring->nentries = nentries; in ath10k_ce_alloc_src_ring_64() 1570 u32 nentries; in ath10k_ce_alloc_dest_ring() local 1576 nentries), GFP_KERNEL); in ath10k_ce_alloc_dest_ring() 1580 dest_ring->nentries = nentries; in ath10k_ce_alloc_dest_ring() 1614 u32 nentries; in ath10k_ce_alloc_dest_ring_64() local [all …]
|
H A D | snoc.c | 247 .nentries = __cpu_to_le32(32), 257 .nentries = __cpu_to_le32(32), 267 .nentries = __cpu_to_le32(64), 277 .nentries = __cpu_to_le32(32), 307 .nentries = __cpu_to_le32(32), 317 .nentries = __cpu_to_le32(0), 327 .nentries = __cpu_to_le32(32), 337 .nentries = __cpu_to_le32(32), 347 .nentries = __cpu_to_le32(32), 357 .nentries = __cpu_to_le32(32), [all …]
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | hw.c | 123 .nentries = __cpu_to_le32(32), 133 .nentries = __cpu_to_le32(32), 143 .nentries = __cpu_to_le32(32), 153 .nentries = __cpu_to_le32(32), 173 .nentries = __cpu_to_le32(32), 183 .nentries = __cpu_to_le32(32), 193 .nentries = __cpu_to_le32(32), 203 .nentries = __cpu_to_le32(32), 215 .nentries = __cpu_to_le32(32), 225 .nentries = __cpu_to_le32(32), [all …]
|
H A D | ce.c | 500 params.num_entries = ce_ring->nentries; in ath12k_ce_init_ring() 515 params.low_threshold = ce_ring->nentries - 3; in ath12k_ce_init_ring() 553 ce_ring->nentries = nentries; in ath12k_ce_alloc_ring() 554 ce_ring->nentries_mask = nentries - 1; in ath12k_ce_alloc_ring() 561 nentries * desc_sz + CE_DESC_RING_ALIGN, in ath12k_ce_alloc_ring() 585 int nentries; in ath12k_ce_alloc_pipe() local 729 for (i = 0; i < ring->nentries; i++) { in ath12k_ce_rx_pipe_cleanup() 862 pipe->dest_ring->nentries - 2 : 0; in ath12k_ce_init_pipes() 898 pipe->src_ring->nentries * desc_sz + in ath12k_ce_free_pipes() 909 pipe->dest_ring->nentries * desc_sz + in ath12k_ce_free_pipes() [all …]
|
H A D | ce.h | 73 __le32 nentries; member 101 unsigned int nentries; member
|
/freebsd/contrib/elftoolchain/libelf/ |
H A D | libelf_ar.c | 320 size_t nentries; in _libelf_ar_process_bsd_symtab() local 361 nentries = (size_t) arraysize / entrysize; in _libelf_ar_process_bsd_symtab() 372 for (n = 0, sym = symtab; n < nentries; n++, sym++) { in _libelf_ar_process_bsd_symtab() 398 *count = e->e_u.e_ar.e_symtabsz = nentries + 1; in _libelf_ar_process_bsd_symtab() 433 size_t n, nentries; in _libelf_ar_process_svr4_symtab() local 449 GET_WORD(p, nentries); in _libelf_ar_process_svr4_symtab() 452 if (nentries == 0 || p + nentries * INTSZ >= end) in _libelf_ar_process_svr4_symtab() 456 if ((symtab = malloc(sizeof(Elf_Arsym) * (nentries+1))) == NULL) { in _libelf_ar_process_svr4_symtab() 461 s = p + (nentries * INTSZ); /* start of the string table. */ in _libelf_ar_process_svr4_symtab() 463 for (n = nentries, sym = symtab; n > 0; n--) { in _libelf_ar_process_svr4_symtab() [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | evmap.c | 207 if (map->nentries <= slot) { in evmap_make_space() 208 int nentries = map->nentries ? map->nentries : 32; in evmap_make_space() local 214 while (nentries <= slot) in evmap_make_space() 215 nentries <<= 1; in evmap_make_space() 225 (nentries - map->nentries) * msize); in evmap_make_space() 227 map->nentries = nentries; in evmap_make_space() 237 ctx->nentries = 0; in evmap_signal_initmap_() 253 ctx->nentries = 0; in evmap_signal_clear_() 288 if (fd >= io->nentries) { in evmap_io_add_() 368 if (fd >= io->nentries) in evmap_io_del_() [all …]
|
/freebsd/contrib/libevent/ |
H A D | evmap.c | 207 if (map->nentries <= slot) { in evmap_make_space() 208 int nentries = map->nentries ? map->nentries : 32; in evmap_make_space() local 214 while (nentries <= slot) in evmap_make_space() 215 nentries <<= 1; in evmap_make_space() 225 (nentries - map->nentries) * msize); in evmap_make_space() 227 map->nentries = nentries; in evmap_make_space() 237 ctx->nentries = 0; in evmap_signal_initmap_() 253 ctx->nentries = 0; in evmap_signal_clear_() 288 if (fd >= io->nentries) { in evmap_io_add_() 368 if (fd >= io->nentries) in evmap_io_del_() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | spl_acl.c | 101 acl_from_aces(struct acl *aclp, const ace_t *aces, int nentries) in acl_from_aces() argument 107 if (nentries < 1) { in acl_from_aces() 112 if (nentries > ACL_MAX_ENTRIES) { in acl_from_aces() 124 aclp->acl_cnt = nentries; in acl_from_aces() 126 for (i = 0; i < nentries; i++) { in acl_from_aces() 171 aces_from_acl(ace_t *aces, int *nentries, const struct acl *aclp) in aces_from_acl() argument 179 *nentries = aclp->acl_cnt; in aces_from_acl()
|
/freebsd/sys/cddl/compat/opensolaris/kern/ |
H A D | opensolaris_acl.c | 100 acl_from_aces(struct acl *aclp, const ace_t *aces, int nentries) in acl_from_aces() argument 106 if (nentries < 1) { in acl_from_aces() 111 if (nentries > ACL_MAX_ENTRIES) { in acl_from_aces() 123 aclp->acl_cnt = nentries; in acl_from_aces() 125 for (i = 0; i < nentries; i++) { in acl_from_aces() 170 aces_from_acl(ace_t *aces, int *nentries, const struct acl *aclp) in aces_from_acl() argument 178 *nentries = aclp->acl_cnt; in aces_from_acl()
|
/freebsd/sys/arm64/acpica/ |
H A D | acpi_iort.c | 95 u_int nentries; /* items in array below */ member 136 if (node->data.smmu_v3.IdMappingIndex >= node->nentries) in iort_entry_get_id_mapping_index() 161 for (i = 0; i < node->nentries; i++, entry++) { in iort_entry_lookup() 167 if (i == node->nentries) in iort_entry_lookup() 274 node->nentries = node_entry->MappingCount; in iort_copy_data() 305 node->nentries = itsg_entry->ItsCount; in iort_copy_its() 310 for (i = 0; i < node->nentries; i++, its++, id++) { in iort_copy_its() 424 for (i = 0; i < node->nentries; i++) in iort_post_process_mappings() 427 for (i = 0; i < node->nentries; i++) in iort_post_process_mappings() 430 for (i = 0; i < node->nentries; i++) in iort_post_process_mappings() [all …]
|
/freebsd/usr.sbin/pmcstat/ |
H A D | pmcpl_callgraph.c | 408 int n, nentries; in pmcstat_callgraph_print_for_pmcid() local 436 nentries = cgn - sortbuffer; in pmcstat_callgraph_print_for_pmcid() 437 assert(nentries <= pmcstat_cgnode_hash_count); in pmcstat_callgraph_print_for_pmcid() 439 if (nentries == 0) { in pmcstat_callgraph_print_for_pmcid() 452 for (cgn = sortbuffer, n = 0; n < nentries; n++, cgn++) { in pmcstat_callgraph_print_for_pmcid() 597 int n, nentries; in pmcpl_cg_topdisplay() local 629 nentries = cgn - sortbuffer; in pmcpl_cg_topdisplay() 630 assert(nentries <= pmcstat_cgnode_hash_count); in pmcpl_cg_topdisplay() 632 if (nentries == 0) { in pmcpl_cg_topdisplay() 643 nentries = min(pmcstat_displayheight - 2, nentries); in pmcpl_cg_topdisplay() [all …]
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | ce.c | 564 params.num_entries = ce_ring->nentries; in ath11k_ce_init_ring() 579 params.low_threshold = ce_ring->nentries - 3; in ath11k_ce_init_ring() 623 ce_ring->nentries = nentries; in ath11k_ce_alloc_ring() 624 ce_ring->nentries_mask = nentries - 1; in ath11k_ce_alloc_ring() 631 nentries * desc_sz + CE_DESC_RING_ALIGN, in ath11k_ce_alloc_ring() 655 int nentries; in ath11k_ce_alloc_pipe() local 811 for (i = 0; i < ring->nentries; i++) { in ath11k_ce_rx_pipe_cleanup() 950 pipe->dest_ring->nentries - 2 : 0; in ath11k_ce_init_pipes() 991 pipe->src_ring->nentries * desc_sz + in ath11k_ce_free_pipes() 1003 pipe->dest_ring->nentries * desc_sz + in ath11k_ce_free_pipes() [all …]
|
H A D | hw.c | 1295 .nentries = __cpu_to_le32(32), 1305 .nentries = __cpu_to_le32(32), 1315 .nentries = __cpu_to_le32(32), 1325 .nentries = __cpu_to_le32(32), 1345 .nentries = __cpu_to_le32(32), 1355 .nentries = __cpu_to_le32(32), 1365 .nentries = __cpu_to_le32(32), 1375 .nentries = __cpu_to_le32(32), 1395 .nentries = __cpu_to_le32(0), 1698 .nentries = __cpu_to_le32(0), [all …]
|
H A D | ce.h | 86 __le32 nentries; member 127 unsigned int nentries; member
|
/freebsd/sys/kern/ |
H A D | subr_hash.c | 109 phashinit_flags(int elements, struct malloc_type *type, u_long *nentries, int flags) in phashinit_flags() argument 134 *nentries = hashsize; in phashinit_flags() 143 phashinit(int elements, struct malloc_type *type, u_long *nentries) in phashinit() argument 146 return (phashinit_flags(elements, type, nentries, HASH_WAITOK)); in phashinit()
|
/freebsd/usr.sbin/flowctl/ |
H A D | flowctl.c | 249 (resp->nentries * sizeof(struct flow_entry_data))))) in do_show() 276 if (resp->nentries > 0) in flow_cache_print() 280 for (i = 0; i < resp->nentries; i++, fle++) { in flow_cache_print() 310 if (resp->nentries > 0) in flow_cache_print6() 314 for (i = 0; i < resp->nentries; i++, fle6++) { in flow_cache_print6() 347 for (i = 0; i < resp->nentries; i++, fle++) { in flow_cache_print_verbose() 390 for (i = 0; i < resp->nentries; i++, fle6++) { in flow_cache_print6_verbose()
|
/freebsd/usr.bin/iscsictl/ |
H A D | iscsictl.c | 406 unsigned int i, nentries = 1; in kernel_modify_some() local 411 nentries * sizeof(struct iscsi_session_state)); in kernel_modify_some() 416 isl.isl_nentries = nentries; in kernel_modify_some() 421 nentries *= 4; in kernel_modify_some() 487 unsigned int i, nentries = 1; in kernel_list() local 492 nentries * sizeof(struct iscsi_session_state)); in kernel_list() 497 isl.isl_nentries = nentries; in kernel_list() 502 nentries *= 4; in kernel_list() 658 unsigned int i, nentries = 1; in kernel_wait() local 670 isl.isl_nentries = nentries; in kernel_wait() [all …]
|
/freebsd/contrib/processor-trace/libipt/internal/include/ |
H A D | pt_block_cache.h | 185 uint32_t nentries; member 196 extern struct pt_block_cache *pt_bcache_alloc(uint64_t nentries);
|
/freebsd/usr.sbin/setfmac/ |
H A D | setfmac.c | 62 size_t nentries; /* size of entries list */ member 257 spec->nentries = nlines; in add_specs() 279 (long)spec->nentries); in add_specs() 291 spec->nentries = 1; in add_setfmac_specs() 292 spec->entries = calloc(spec->nentries, sizeof(*spec->entries)); in add_setfmac_specs() 411 ent < &ls->entries[ls->nentries]; ent++) { in apply_specs()
|
/freebsd/usr.sbin/bsdinstall/scripts/ |
H A D | bootconfig | 65 nentries=$(efibootmgr | grep -c "${EFI_LABEL_NAME}$") 67 if [ ${nentries} -eq 0 ]; then
|
/freebsd/sys/arm64/rockchip/ |
H A D | rk_tsadc.c | 118 int nentries; member 205 .nentries = nitems(rk3288_calib_data), 259 .nentries = nitems(rk3328_calib_data), 315 .nentries = nitems(rk3399_calib_data), 372 .nentries = nitems(rk3568_calib_data), 391 ntbl = sc->conf->calib_info.nentries; in tsadc_temp_to_raw() 426 ntbl = sc->conf->calib_info.nentries; in tsadc_raw_to_temp()
|
/freebsd/sys/arm64/broadcom/genet/ |
H A D | if_genet.c | 150 int nentries; member 161 int nentries; member 692 int nentries) in gen_init_txring() argument 700 q->nentries = nentries; in gen_init_txring() 741 int nentries) in gen_init_rxring() argument 750 q->nentries = nentries; in gen_init_rxring() 1155 if (q->queued + nsegs > q->nentries) { in gen_encap() 1162 index = q->prod_idx & (q->nentries - 1); in gen_encap() 1185 cur = TX_NEXT(cur, q->nentries); in gen_encap() 1186 index = TX_NEXT(index, q->nentries); in gen_encap() [all …]
|