Searched refs:nentries (Results 1 - 25 of 81) sorted by relevance

1234

/freebsd-current/contrib/processor-trace/libipt/src/
H A Dpt_block_cache.c35 struct pt_block_cache *pt_bcache_alloc(uint64_t nentries) argument
40 if (!nentries || (UINT32_MAX < nentries))
43 size = sizeof(*bcache) + (nentries * sizeof(struct pt_bcache_entry));
52 bcache->nentries = (uint32_t) nentries;
68 if (bcache->nentries <= index)
86 if (bcache->nentries <= index)
/freebsd-current/stand/efi/libefi/
H A Dhandles.c39 int nentries; variable
48 idx = nentries;
49 nentries += count;
50 sz = nentries * sizeof(struct entry);
54 for (unit = 0; idx < nentries; idx++, unit++) {
71 for (idx = 0; idx < nentries; idx++) {
86 for (idx = 0; idx < nentries; idx++) {
106 for (idx = 0; idx < nentries; idx++) {
/freebsd-current/contrib/processor-trace/libipt/internal/include/
H A Dpt_block_cache.h185 uint32_t nentries; member in struct:pt_block_cache
187 /* A variable-length array of @nentries entries. */
193 * @nentries is the number of entries in the cache and should match the size of
196 extern struct pt_block_cache *pt_bcache_alloc(uint64_t nentries);
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_acl.c101 acl_from_aces(struct acl *aclp, const ace_t *aces, int nentries) argument
107 if (nentries < 1) {
112 if (nentries > ACL_MAX_ENTRIES) {
124 aclp->acl_cnt = nentries;
126 for (i = 0; i < nentries; i++) {
171 aces_from_acl(ace_t *aces, int *nentries, const struct acl *aclp) argument
179 *nentries = aclp->acl_cnt;
/freebsd-current/sys/cddl/compat/opensolaris/kern/
H A Dopensolaris_acl.c100 acl_from_aces(struct acl *aclp, const ace_t *aces, int nentries) argument
106 if (nentries < 1) {
111 if (nentries > ACL_MAX_ENTRIES) {
123 aclp->acl_cnt = nentries;
125 for (i = 0; i < nentries; i++) {
170 aces_from_acl(ace_t *aces, int *nentries, const struct acl *aclp) argument
178 *nentries = aclp->acl_cnt;
/freebsd-current/contrib/elftoolchain/libelf/
H A Dlibelf_ar.c320 size_t nentries; local
361 nentries = (size_t) arraysize / entrysize;
366 if ((symtab = malloc(sizeof(Elf_Arsym) * (nentries + 1))) == NULL) {
372 for (n = 0, sym = symtab; n < nentries; n++, sym++) {
398 *count = e->e_u.e_ar.e_symtabsz = nentries + 1;
433 size_t n, nentries; local
449 GET_WORD(p, nentries);
452 if (nentries == 0 || p + nentries * INTSZ >= end)
455 /* Allocate space for a nentries
[all...]
/freebsd-current/sys/kern/
H A Dsubr_hash.c109 phashinit_flags(int elements, struct malloc_type *type, u_long *nentries, int flags) argument
134 *nentries = hashsize;
143 phashinit(int elements, struct malloc_type *type, u_long *nentries) argument
146 return (phashinit_flags(elements, type, nentries, HASH_WAITOK));
/freebsd-current/sys/contrib/dev/athk/ath12k/
H A Dhw.c123 .nentries = __cpu_to_le32(32),
133 .nentries = __cpu_to_le32(32),
143 .nentries = __cpu_to_le32(32),
153 .nentries = __cpu_to_le32(32),
163 .nentries = __cpu_to_le32(256),
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
[all...]
H A Dce.c500 params.num_entries = ce_ring->nentries;
515 params.low_threshold = ce_ring->nentries - 3;
544 ath12k_ce_alloc_ring(struct ath12k_base *ab, int nentries, int desc_sz) argument
549 ce_ring = kzalloc(struct_size(ce_ring, skb, nentries), GFP_KERNEL);
553 ce_ring->nentries = nentries;
554 ce_ring->nentries_mask = nentries - 1;
561 nentries * desc_sz + CE_DESC_RING_ALIGN,
585 int nentries; local
592 nentries
[all...]
H A Dce.h73 __le32 nentries; member in struct:ce_pipe_config
101 unsigned int nentries; member in struct:ath12k_ce_ring
/freebsd-current/sys/contrib/dev/athk/ath10k/
H A Dce.c713 void ath10k_ce_rx_update_write_idx(struct ath10k_ce_pipe *pipe, u32 nentries) argument
725 if (((cur_write_idx + nentries) & nentries_mask) == dest_ring->sw_index)
726 nentries -= 1;
728 write_index = CE_RING_IDX_ADD(nentries_mask, write_index, nentries);
1362 u32 nentries, ctrl_addr = ath10k_ce_base_address(ar, ce_id); local
1364 nentries = roundup_pow_of_two(attr->src_nentries);
1368 nentries * sizeof(struct ce_desc_64));
1371 nentries * sizeof(struct ce_desc));
1383 ath10k_ce_src_ring_size_set(ar, ctrl_addr, nentries);
1387 ath10k_ce_src_ring_highmark_set(ar, ctrl_addr, nentries);
1403 u32 nentries, ctrl_addr = ath10k_ce_base_address(ar, ce_id); local
1434 ath10k_ce_alloc_shadow_base(struct ath10k *ar, struct ath10k_ce_ring *src_ring, u32 nentries) argument
1455 u32 nentries = attr->src_nentries; local
1513 u32 nentries = attr->src_nentries; local
1570 u32 nentries; local
1614 u32 nentries; local
[all...]
/freebsd-current/sys/arm64/acpica/
H A Dacpi_iort.c95 u_int nentries; /* items in array below */ member in struct:iort_node
136 if (node->data.smmu_v3.IdMappingIndex >= node->nentries)
161 for (i = 0; i < node->nentries; i++, entry++) {
167 if (i == node->nentries)
274 node->nentries = node_entry->MappingCount;
276 mapping = malloc(sizeof(*mapping) * node->nentries, M_DEVBUF,
279 for (i = 0; i < node->nentries; i++, mapping++, map_entry++) {
305 node->nentries = itsg_entry->ItsCount;
307 its = malloc(sizeof(*its) * node->nentries, M_DEVBUF, M_WAITOK | M_ZERO);
310 for (i = 0; i < node->nentries;
[all...]
/freebsd-current/usr.sbin/nvmfd/
H A Ddiscovery.c140 u_int i, nentries; local
184 nentries = 0;
189 nentries++;
193 nentries * sizeof(struct nvme_discovery_log_entry);
195 dc->discovery_log->numrec = nentries;
197 nentries = 0;
203 dc->discovery_log->entries[nentries] = io_controllers[i].entry;
205 memcpy(dc->discovery_log->entries[nentries].traddr,
/freebsd-current/contrib/ntp/sntp/libevent/
H A Devmap.c207 if (map->nentries <= slot) {
208 int nentries = map->nentries ? map->nentries : 32; local
214 while (nentries <= slot)
215 nentries <<= 1;
217 if (nentries > INT_MAX / msize)
220 tmp = (void **)mm_realloc(map->entries, nentries * msize);
224 memset(&tmp[map->nentries], 0,
225 (nentries
[all...]
/freebsd-current/contrib/libevent/
H A Devmap.c207 if (map->nentries <= slot) {
208 int nentries = map->nentries ? map->nentries : 32; local
214 while (nentries <= slot)
215 nentries <<= 1;
217 if (nentries > INT_MAX / msize)
220 tmp = (void **)mm_realloc(map->entries, nentries * msize);
224 memset(&tmp[map->nentries], 0,
225 (nentries
[all...]
/freebsd-current/usr.sbin/pmcstat/
H A Dpmcpl_callgraph.c408 int n, nentries; local
436 nentries = cgn - sortbuffer;
437 assert(nentries <= pmcstat_cgnode_hash_count);
439 if (nentries == 0) {
444 qsort(sortbuffer, nentries, sizeof(struct pmcstat_cgnode *),
452 for (cgn = sortbuffer, n = 0; n < nentries; n++, cgn++) {
597 int n, nentries; local
629 nentries = cgn - sortbuffer;
630 assert(nentries <= pmcstat_cgnode_hash_count);
632 if (nentries
[all...]
/freebsd-current/usr.sbin/flowctl/
H A Dflowctl.c249 (resp->nentries * sizeof(struct flow_entry_data)))))
276 if (resp->nentries > 0)
280 for (i = 0; i < resp->nentries; i++, fle++) {
310 if (resp->nentries > 0)
314 for (i = 0; i < resp->nentries; i++, fle6++) {
347 for (i = 0; i < resp->nentries; i++, fle++) {
390 for (i = 0; i < resp->nentries; i++, fle6++) {
/freebsd-current/sys/contrib/dev/athk/ath11k/
H A Dce.c564 params.num_entries = ce_ring->nentries;
579 params.low_threshold = ce_ring->nentries - 3;
614 ath11k_ce_alloc_ring(struct ath11k_base *ab, int nentries, int desc_sz) argument
619 ce_ring = kzalloc(struct_size(ce_ring, skb, nentries), GFP_KERNEL);
623 ce_ring->nentries = nentries;
624 ce_ring->nentries_mask = nentries - 1;
631 nentries * desc_sz + CE_DESC_RING_ALIGN,
655 int nentries; local
662 nentries
[all...]
H A Dce.h86 __le32 nentries; member in struct:ce_pipe_config
127 unsigned int nentries; member in struct:ath11k_ce_ring
H A Dhw.c1295 .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
[all...]
/freebsd-current/usr.sbin/bsdinstall/scripts/
H A Dbootconfig65 nentries=$(efibootmgr | grep -c "${EFI_LABEL_NAME}$")
67 if [ ${nentries} -eq 0 ]; then
/freebsd-current/sys/dev/qlxgbe/
H A Dql_tmplt.h40 uint16_t nentries; member in struct:_q8_tmplt_hdr
/freebsd-current/usr.sbin/setfmac/
H A Dsetfmac.c60 } *entries, /* entries[0..nentries] */
62 size_t nentries; /* size of entries list */ member in struct:label_spec
257 spec->nentries = nlines;
279 (long)spec->nentries);
291 spec->nentries = 1;
292 spec->entries = calloc(spec->nentries, sizeof(*spec->entries));
411 ent < &ls->entries[ls->nentries]; ent++) {
/freebsd-current/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dacl.h204 extern void aces_from_acl(ace_t *aces, int *nentries, const struct acl *aclp);
205 extern int acl_from_aces(struct acl *aclp, const ace_t *aces, int nentries);
/freebsd-current/crypto/openssh/regress/misc/fuzz-harness/
H A Dagent_fuzz_helper.c67 idtab->nentries++;
76 idtab->nentries++;

Completed in 302 milliseconds

1234