Home
last modified time | relevance | path

Searched refs:n_entries (Results 1 – 17 of 17) sorted by relevance

/freebsd/sys/contrib/ck/src/
H A Dck_array.c66 array->n_entries = 0; in ck_array_init()
86 if (array->n_entries == target->length) { in ck_array_put()
90 sizeof(struct _ck_array) + sizeof(void *) * array->n_entries, in ck_array_put()
104 target->values[array->n_entries++] = value; in ck_array_put()
109 if (array->n_entries == target->length) { in ck_array_put()
113 sizeof(struct _ck_array) + sizeof(void *) * array->n_entries, in ck_array_put()
124 target->values[array->n_entries++] = value; in ck_array_put()
134 limit = array->n_entries; in ck_array_put_unique()
158 for (i = 0; i < array->n_entries; i++) { in ck_array_remove()
160 target->values[i] = target->values[--array->n_entries]; in ck_array_remove()
[all …]
H A Dck_hs.c90 unsigned long n_entries; member
169 st->n_entries = map->n_entries; in ck_hs_stat()
179 return hs->map->n_entries; in ck_hs_count()
202 unsigned long size, n_entries, prefix, limit; in ck_hs_map_create() local
204 n_entries = ck_internal_power_2(entries); in ck_hs_map_create()
205 if (n_entries < CK_HS_PROBE_L1) in ck_hs_map_create()
206 n_entries = CK_HS_PROBE_L1; in ck_hs_map_create()
208 size = sizeof(struct ck_hs_map) + (sizeof(void *) * n_entries + CK_MD_CACHELINE - 1); in ck_hs_map_create()
211 prefix = sizeof(CK_HS_WORD) * n_entries; in ck_hs_map_create()
224 limit = ck_internal_max(n_entries >> (CK_HS_PROBE_L1_SHIFT + 2), CK_HS_PROBE_L1_DEFAULT); in ck_hs_map_create()
[all …]
H A Dck_ht.c86 CK_HT_TYPE n_entries; member
100 st->n_entries = map->n_entries; in ck_ht_stat()
143 uint32_t n_entries; in ck_ht_map_create() local
145 n_entries = ck_internal_power_2(entries); in ck_ht_map_create()
146 if (n_entries < CK_HT_BUCKET_LENGTH) in ck_ht_map_create()
147 n_entries = CK_HT_BUCKET_LENGTH; in ck_ht_map_create()
150 (sizeof(struct ck_ht_entry) * n_entries + CK_MD_CACHELINE - 1); in ck_ht_map_create()
153 prefix = sizeof(CK_HT_WORD) * n_entries; in ck_ht_map_create()
165 map->probe_limit = ck_internal_max_64(n_entries >> in ck_ht_map_create()
170 map->capacity = n_entries; in ck_ht_map_create()
[all …]
H A Dck_rhs.c118 unsigned long n_entries; member
261 while (map->n_entries > map->max_entries) { in ck_rhs_set_load_factor()
308 st->n_entries = map->n_entries; in ck_rhs_stat()
317 return hs->map->n_entries; in ck_rhs_count()
340 unsigned long size, n_entries, limit; in ck_rhs_map_create() local
342 n_entries = ck_internal_power_2(entries); in ck_rhs_map_create()
343 if (n_entries < CK_RHS_PROBE_L1) in ck_rhs_map_create()
344 n_entries = CK_RHS_PROBE_L1; in ck_rhs_map_create()
348 (sizeof(void *) * n_entries + in ck_rhs_map_create()
349 sizeof(struct ck_rhs_no_entry_desc) * n_entries + in ck_rhs_map_create()
[all …]
/freebsd/sys/dev/xen/netback/
H A Dnetback_unit_tests.c1096 int n_entries; in xnb_txpkt2gnttab_empty() local
1105 n_entries = xnb_txpkt2gnttab(&pkt, pMbuf, xnb_unit_pvt.gnttab, in xnb_txpkt2gnttab_empty()
1107 XNB_ASSERT(n_entries == 0); in xnb_txpkt2gnttab_empty()
1119 int n_entries; in xnb_txpkt2gnttab_short() local
1136 n_entries = xnb_txpkt2gnttab(&pkt, pMbuf, xnb_unit_pvt.gnttab, in xnb_txpkt2gnttab_short()
1138 XNB_ASSERT(n_entries == 1); in xnb_txpkt2gnttab_short()
1159 int n_entries; in xnb_txpkt2gnttab_2req() local
1184 n_entries = xnb_txpkt2gnttab(&pkt, pMbuf, xnb_unit_pvt.gnttab, in xnb_txpkt2gnttab_2req()
1187 XNB_ASSERT(n_entries == 2); in xnb_txpkt2gnttab_2req()
1204 int n_entries; in xnb_txpkt2gnttab_2cluster() local
[all …]
H A Dnetback.c168 const gnttab_copy_table gnttab, int n_entries);
178 const gnttab_copy_table gnttab, int n_entries,
1766 int n_entries) in xnb_update_mbufc() argument
1772 for (i = 0; i < n_entries; i++) { in xnb_update_mbufc()
2026 int n_entries, netif_rx_back_ring_t *ring) in xnb_rxpkt2rsp() argument
2052 for (gnt_idx = 0; gnt_idx < n_entries; gnt_idx++) { in xnb_rxpkt2rsp()
2394 int error, n_entries; in xnb_send() local
2401 n_entries = xnb_rxpkt2gnttab(&pkt, mbufc, gnttab, ring, otherend); in xnb_send()
2402 if (n_entries != 0) { in xnb_send()
2404 gnttab, n_entries); in xnb_send()
[all …]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Ddp.c518 int align_bytes, n_entries; in ath11k_dp_scatter_idle_link_desc_setup() local
554 n_entries = (DP_LINK_DESC_ALLOC_SIZE_THRESH - align_bytes) / in ath11k_dp_scatter_idle_link_desc_setup()
557 while (n_entries) { in ath11k_dp_scatter_idle_link_desc_setup()
559 n_entries--; in ath11k_dp_scatter_idle_link_desc_setup()
697 u32 entry_sz, align_bytes, n_entries; in ath11k_dp_link_desc_setup() local
760 n_entries = (link_desc_banks[i].size - align_bytes) / in ath11k_dp_link_desc_setup()
763 while (n_entries && in ath11k_dp_link_desc_setup()
767 n_entries--; in ath11k_dp_link_desc_setup()
/freebsd/sys/contrib/dev/athk/ath12k/
H A Ddp.c607 int align_bytes, n_entries; in ath12k_dp_scatter_idle_link_desc_setup() local
643 n_entries = (DP_LINK_DESC_ALLOC_SIZE_THRESH - align_bytes) / in ath12k_dp_scatter_idle_link_desc_setup()
646 while (n_entries) { in ath12k_dp_scatter_idle_link_desc_setup()
647 cookie = DP_LINK_DESC_COOKIE_SET(n_entries, i); in ath12k_dp_scatter_idle_link_desc_setup()
649 n_entries--; in ath12k_dp_scatter_idle_link_desc_setup()
787 u32 entry_sz, align_bytes, n_entries; in ath12k_dp_link_desc_setup() local
851 n_entries = (link_desc_banks[i].size - align_bytes) / in ath12k_dp_link_desc_setup()
854 while (n_entries && in ath12k_dp_link_desc_setup()
856 cookie = DP_LINK_DESC_COOKIE_SET(n_entries, i); in ath12k_dp_link_desc_setup()
859 n_entries--; in ath12k_dp_link_desc_setup()
/freebsd/sys/contrib/ck/include/
H A Dck_array.h46 unsigned int n_entries; member
H A Dck_rhs.h95 unsigned long n_entries; member
H A Dck_hs.h96 unsigned long n_entries; member
H A Dck_bitmap.h54 #define CK_BITMAP_INSTANCE(n_entries) \ argument
58 unsigned int map[CK_BITMAP_BLOCKS(n_entries)]; \
H A Dck_ht.h114 uint64_t n_entries; member
/freebsd/sys/dev/qlnx/qlnxr/
H A Dqlnxr_os.c475 uint16_t n_entries; in qlnxr_alloc_resources() local
499 n_entries = min_t(u32, ECORE_RDMA_MAX_CNQ_SIZE, QLNXR_ROCE_MAX_CNQ_SIZE); in qlnxr_alloc_resources()
511 n_entries, in qlnxr_alloc_resources()
/freebsd/sys/dev/ocs_fc/
H A Dsli4.c4425 size_t size, uint32_t n_entries, uint32_t align) in __sli_queue_init() argument
4428 if ((q->dma.virt == NULL) || (size != q->size) || (n_entries != q->length)) { in __sli_queue_init()
4435 if (ocs_dma_alloc(sli4->os, &q->dma, size * n_entries, align)) { in __sli_queue_init()
4440 ocs_memset(q->dma.virt, 0, size * n_entries); in __sli_queue_init()
4447 q->length = n_entries; in __sli_queue_init()
4450 q->proc_limit = n_entries / 2; in __sli_queue_init()
4650 sli_queue_alloc(sli4_t *sli4, uint32_t qtype, sli4_queue_t *q, uint32_t n_entries, in sli_queue_alloc() argument
4677 switch (n_entries) { in sli_queue_alloc()
4684 ocs_log_test(sli4->os, "illegal n_entries value %d for MQ\n", n_entries); in sli_queue_alloc()
4708 if (__sli_queue_init(sli4, q, qtype, size, n_entries, align)) { in sli_queue_alloc()
[all …]
/freebsd/contrib/wpa/src/ap/
H A Dhostapd.c1754 int n_entries, u8 accept_acl) in hostapd_set_acl_list() argument
1760 (n_entries * sizeof(acl_params->mac_acl[0]))); in hostapd_set_acl_list()
1764 for (i = 0; i < n_entries; i++) in hostapd_set_acl_list()
1769 acl_params->num_mac_acl = n_entries; in hostapd_set_acl_list()
/freebsd/contrib/file/magic/Magdir/
H A Dlinux465 # n_entries like: 0 3aeh 235ah 2dc4h 3125h 16129h 187a1h