| /freebsd/sys/contrib/dev/athk/ath12k/wifi7/ |
| H A D | ce.c | 23 .nentries = __cpu_to_le32(32), 33 .nentries = __cpu_to_le32(32), 43 .nentries = __cpu_to_le32(32), 53 .nentries = __cpu_to_le32(32), 63 .nentries = __cpu_to_le32(256), 73 .nentries = __cpu_to_le32(32), 83 .nentries = __cpu_to_le32(32), 93 .nentries = __cpu_to_le32(32), 103 .nentries = __cpu_to_le32(32), 115 .nentries = __cpu_to_le32(32), [all …]
|
| /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 | 716 void ath10k_ce_rx_update_write_idx(struct ath10k_ce_pipe *pipe, u32 nentries) in ath10k_ce_rx_update_write_idx() argument 728 if (((cur_write_idx + nentries) & nentries_mask) == dest_ring->sw_index) in ath10k_ce_rx_update_write_idx() 729 nentries -= 1; in ath10k_ce_rx_update_write_idx() 731 write_index = CE_RING_IDX_ADD(nentries_mask, write_index, nentries); in ath10k_ce_rx_update_write_idx() 1365 u32 nentries, ctrl_addr = ath10k_ce_base_address(ar, ce_id); in ath10k_ce_init_src_ring() local 1367 nentries = roundup_pow_of_two(attr->src_nentries); in ath10k_ce_init_src_ring() 1371 nentries * sizeof(struct ce_desc_64)); in ath10k_ce_init_src_ring() 1374 nentries * sizeof(struct ce_desc)); in ath10k_ce_init_src_ring() 1386 ath10k_ce_src_ring_size_set(ar, ctrl_addr, nentries); in ath10k_ce_init_src_ring() 1390 ath10k_ce_src_ring_highmark_set(ar, ctrl_addr, nentries); in ath10k_ce_init_src_ring() [all …]
|
| H A D | ce.h | 62 unsigned int nentries; member 113 void *per_transfer_context[] __counted_by(nentries); 198 void ath10k_ce_rx_update_write_idx(struct ath10k_ce_pipe *pipe, u32 nentries); 397 __le32 nentries; member
|
| H A D | snoc.c | 249 .nentries = __cpu_to_le32(32), 259 .nentries = __cpu_to_le32(32), 269 .nentries = __cpu_to_le32(64), 279 .nentries = __cpu_to_le32(32), 289 .nentries = __cpu_to_le32(256), 299 .nentries = __cpu_to_le32(1024), 309 .nentries = __cpu_to_le32(32), 319 .nentries = __cpu_to_le32(0), 329 .nentries = __cpu_to_le32(32), 339 .nentries = __cpu_to_le32(32), [all …]
|
| /freebsd/crypto/krb5/src/util/support/ |
| H A D | t_hashtab.c | 133 assert(st == 0 && ht != NULL && ht->nentries == 0); in test_hashtab() 136 assert(st == 0 && ht->nentries == 1); in test_hashtab() 141 assert(st == 0 && ht->nentries == 2); in test_hashtab() 146 assert(ht->nentries == 1); in test_hashtab() 151 assert(ht->nentries == 0); in test_hashtab() 157 assert(st == 0 && ht->nentries == i + 1 && ht->nbuckets >= i + 1); in test_hashtab() 162 assert(ht->nentries == sizeof(zeros) - i - 1); in test_hashtab()
|
| H A D | hashtab.c | 48 size_t nentries; member 142 ht->nentries = 0; in k5_hashtab_create() 203 if (ht->nentries == ht->nbuckets) { in k5_hashtab_add() 218 ht->nentries++; in k5_hashtab_add() 233 ht->nentries--; in k5_hashtab_remove()
|
| /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() 366 if ((symtab = malloc(sizeof(Elf_Arsym) * (nentries + 1))) == NULL) { 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() [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() 217 if (nentries > INT_MAX / msize) in evmap_make_space() 220 tmp = (void **)mm_realloc(map->entries, nentries * msize); in evmap_make_space() 224 memset(&tmp[map->nentries], 0, 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_() [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() 217 if (nentries > INT_MAX / msize) in evmap_make_space() 220 tmp = (void **)mm_realloc(map->entries, nentries * msize); in evmap_make_space() 224 memset(&tmp[map->nentries], 0, 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_() [all …]
|
| /freebsd/sys/contrib/dev/athk/ath12k/ |
| H A D | ce.c | 286 params.num_entries = ce_ring->nentries; in ath12k_ce_init_ring() 301 params.low_threshold = ce_ring->nentries - 3; in ath12k_ce_init_ring() 330 ath12k_ce_alloc_ring(struct ath12k_base *ab, int nentries, int desc_sz) in ath12k_ce_alloc_ring() argument 335 ce_ring = kzalloc_flex(*ce_ring, skb, nentries); in ath12k_ce_alloc_ring() 339 ce_ring->nentries = nentries; in ath12k_ce_alloc_ring() 340 ce_ring->nentries_mask = nentries - 1; in ath12k_ce_alloc_ring() 347 nentries * desc_sz + CE_DESC_RING_ALIGN, in ath12k_ce_alloc_ring() 372 int nentries; in ath12k_ce_alloc_pipe() local 379 nentries = roundup_pow_of_two(attr->src_nentries); in ath12k_ce_alloc_pipe() 381 ring = ath12k_ce_alloc_ring(ab, nentries, desc_sz); in ath12k_ce_alloc_pipe() [all …]
|
| /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() 276 mapping = malloc(sizeof(*mapping) * node->nentries, M_DEVBUF, in iort_copy_data() 279 for (i = 0; i < node->nentries; i++, mapping++, map_entry++) { in iort_copy_data() 305 node->nentries = itsg_entry->ItsCount; in iort_copy_its() 307 its = malloc(sizeof(*its) * node->nentries, M_DEVBUF, M_WAITOK | M_ZERO); in iort_copy_its() 310 for (i = 0; i < node->nentries; i++, its++, id++) { in iort_copy_its() [all …]
|
| /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/contrib/openzfs/module/os/freebsd/spl/ |
| H A D | spl_acl.c | 102 acl_from_aces(struct acl *aclp, const ace_t *aces, int nentries) in acl_from_aces() argument 108 if (nentries < 1) { in acl_from_aces() 113 if (nentries > ACL_MAX_ENTRIES) { in acl_from_aces() 125 aclp->acl_cnt = nentries; in acl_from_aces() 127 for (i = 0; i < nentries; i++) { in acl_from_aces() 172 aces_from_acl(ace_t *aces, int *nentries, const struct acl *aclp) in aces_from_acl() argument 180 *nentries = aclp->acl_cnt; in aces_from_acl()
|
| /freebsd/sys/x86/iommu/ |
| H A D | amd_intrmap.c | 368 int enabled, nentries; in amdiommu_init_irt() local 382 nentries = 32; in amdiommu_init_irt() 383 TUNABLE_INT_FETCH("hw.iommu.amd.ir_num", &nentries); in amdiommu_init_irt() 384 nentries = roundup_pow_of_two(nentries); in amdiommu_init_irt() 385 if (nentries < 1) in amdiommu_init_irt() 386 nentries = 1; in amdiommu_init_irt() 387 if (nentries > 2048) in amdiommu_init_irt() 388 nentries = 2048; in amdiommu_init_irt() 389 unit->irte_nentries = nentries; in amdiommu_init_irt()
|
| /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() 444 qsort(sortbuffer, nentries, sizeof(struct pmcstat_cgnode *), 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() [all …]
|
| /freebsd/sys/contrib/dev/athk/ath11k/ |
| H A D | ce.c | 563 params.num_entries = ce_ring->nentries; in ath11k_ce_init_ring() 578 params.low_threshold = ce_ring->nentries - 3; in ath11k_ce_init_ring() 613 ath11k_ce_alloc_ring(struct ath11k_base *ab, int nentries, int desc_sz) in ath11k_ce_alloc_ring() argument 618 ce_ring = kzalloc_flex(*ce_ring, skb, nentries); in ath11k_ce_alloc_ring() 622 ce_ring->nentries = nentries; in ath11k_ce_alloc_ring() 623 ce_ring->nentries_mask = nentries - 1; in ath11k_ce_alloc_ring() 630 nentries * desc_sz + CE_DESC_RING_ALIGN, in ath11k_ce_alloc_ring() 654 int nentries; in ath11k_ce_alloc_pipe() local 661 nentries = roundup_pow_of_two(attr->src_nentries); in ath11k_ce_alloc_pipe() 663 ring = ath11k_ce_alloc_ring(ab, nentries, desc_sz); in ath11k_ce_alloc_pipe() [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), 1335 .nentries = __cpu_to_le32(256), 1345 .nentries = __cpu_to_le32(32), 1355 .nentries = __cpu_to_le32(32), 1365 .nentries = __cpu_to_le32(32), 1375 .nentries = __cpu_to_le32(32), 1385 .nentries = __cpu_to_le32(32), [all …]
|
| /freebsd/tools/tools/nvmf/nvmfd/ |
| H A D | discovery.c | 139 u_int i, nentries; in build_discovery_log_page() local 183 nentries = 0; in build_discovery_log_page() 188 nentries++; in build_discovery_log_page() 192 nentries * sizeof(struct nvme_discovery_log_entry); in build_discovery_log_page() 194 dc->discovery_log->numrec = nentries; in build_discovery_log_page() 196 nentries = 0; in build_discovery_log_page() 202 dc->discovery_log->entries[nentries] = io_controllers[i].entry; in build_discovery_log_page() 204 memcpy(dc->discovery_log->entries[nentries].traddr, in build_discovery_log_page()
|
| /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 | 307 unsigned int i, nentries = 1; in kernel_modify_some() local 312 nentries * sizeof(struct iscsi_session_state)); in kernel_modify_some() 317 isl.isl_nentries = nentries; in kernel_modify_some() 322 nentries *= 4; in kernel_modify_some() 388 unsigned int i, nentries = 1; in kernel_list() local 393 nentries * sizeof(struct iscsi_session_state)); in kernel_list() 398 isl.isl_nentries = nentries; in kernel_list() 403 nentries *= 4; in kernel_list() 559 unsigned int i, nentries = 1; in kernel_wait() local 566 nentries * sizeof(struct iscsi_session_state)); in kernel_wait() [all …]
|
| /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/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/efitable/ |
| H A D | efitable.c | 252 int i, nentries; in efi_table_print_memory() local 254 nentries = attr->num_ents; in efi_table_print_memory() 272 for (i = 0; i < nentries; i++) { in efi_table_print_memory()
|