/freebsd-13-stable/sys/contrib/ck/src/ |
H A D | ck_array.c | 66 array->n_entries = 0; 86 if (array->n_entries == target->length) { 90 sizeof(struct _ck_array) + sizeof(void *) * array->n_entries, 104 target->values[array->n_entries++] = value; 109 if (array->n_entries == target->length) { 113 sizeof(struct _ck_array) + sizeof(void *) * array->n_entries, 124 target->values[array->n_entries++] = value; 134 limit = array->n_entries; 158 for (i = 0; i < array->n_entries; i++) { 160 target->values[i] = target->values[--array->n_entries]; [all...] |
H A D | ck_hs.c | 90 unsigned long n_entries; member in struct:ck_hs_map 164 st->n_entries = map->n_entries; 174 return hs->map->n_entries; 197 unsigned long size, n_entries, prefix, limit; local 199 n_entries = ck_internal_power_2(entries); 200 if (n_entries < CK_HS_PROBE_L1) 201 n_entries = CK_HS_PROBE_L1; 203 size = sizeof(struct ck_hs_map) + (sizeof(void *) * n_entries + CK_MD_CACHELINE - 1); 206 prefix = sizeof(CK_HS_WORD) * n_entries; 938 ck_hs_init(struct ck_hs *hs, unsigned int mode, ck_hs_hash_cb_t *hf, ck_hs_compare_cb_t *compare, struct ck_malloc *m, unsigned long n_entries, unsigned long seed) argument [all...] |
H A D | ck_ht.c | 89 CK_HT_TYPE n_entries; member in struct:ck_ht_map 103 st->n_entries = map->n_entries; 146 uint32_t n_entries; local 148 n_entries = ck_internal_power_2(entries); 149 if (n_entries < CK_HT_BUCKET_LENGTH) 150 n_entries = CK_HT_BUCKET_LENGTH; 153 (sizeof(struct ck_ht_entry) * n_entries + CK_MD_CACHELINE - 1); 156 prefix = sizeof(CK_HT_WORD) * n_entries; 168 map->probe_limit = ck_internal_max_64(n_entries >> [all...] |
H A D | ck_rhs.c | 118 unsigned long n_entries; member in struct:ck_rhs_map 261 while (map->n_entries > map->max_entries) { 308 st->n_entries = map->n_entries; 317 return hs->map->n_entries; 340 unsigned long size, n_entries, limit; local 342 n_entries = ck_internal_power_2(entries); 343 if (n_entries < CK_RHS_PROBE_L1) 344 n_entries = CK_RHS_PROBE_L1; 348 (sizeof(void *) * n_entries 1459 ck_rhs_init(struct ck_rhs *hs, unsigned int mode, ck_rhs_hash_cb_t *hf, ck_rhs_compare_cb_t *compare, struct ck_malloc *m, unsigned long n_entries, unsigned long seed) argument [all...] |
/freebsd-13-stable/sys/contrib/ck/include/ |
H A D | ck_array.h | 46 unsigned int n_entries; member in struct:ck_array
|
H A D | ck_hs.h | 96 unsigned long n_entries; member in struct:ck_hs_stat
|
H A D | ck_rhs.h | 95 unsigned long n_entries; member in struct:ck_rhs_stat
|
H A D | ck_ht.h | 114 uint64_t n_entries; member in struct:ck_ht_stat
|
H A D | ck_bitmap.h | 54 #define CK_BITMAP_INSTANCE(n_entries) \ 58 unsigned int map[CK_BITMAP_BLOCKS(n_entries)]; \
|
/freebsd-13-stable/sys/dev/xen/netback/ |
H A D | netback_unit_tests.c | 1103 int n_entries; local 1112 n_entries = xnb_txpkt2gnttab(&pkt, pMbuf, xnb_unit_pvt.gnttab, 1114 XNB_ASSERT(n_entries == 0); 1126 int n_entries; local 1143 n_entries = xnb_txpkt2gnttab(&pkt, pMbuf, xnb_unit_pvt.gnttab, 1145 XNB_ASSERT(n_entries == 1); 1166 int n_entries; local 1191 n_entries = xnb_txpkt2gnttab(&pkt, pMbuf, xnb_unit_pvt.gnttab, 1194 XNB_ASSERT(n_entries == 2); 1211 int n_entries; local 1286 int n_entries; local 1322 int n_entries; local 1369 int n_entries; local [all...] |
H A D | netback.c | 170 const gnttab_copy_table gnttab, int n_entries); 180 const gnttab_copy_table gnttab, int n_entries, 1764 * \param[in] n_entries The number of valid entries in the grant table 1768 int n_entries) 1774 for (i = 0; i < n_entries; i++) { 2021 * \param[in] n_entries Number of relevant entries in the grant table 2028 int n_entries, netif_rx_back_ring_t *ring) 2054 for (gnt_idx = 0; gnt_idx < n_entries; gnt_idx++) { 2396 int error, n_entries, n_reqs; local 2403 n_entries 1767 xnb_update_mbufc(struct mbuf *mbufc, const gnttab_copy_table gnttab, int n_entries) argument 2027 xnb_rxpkt2rsp(const struct xnb_pkt *pkt, const gnttab_copy_table gnttab, int n_entries, netif_rx_back_ring_t *ring) argument [all...] |
/freebsd-13-stable/sys/dev/qlnx/qlnxr/ |
H A D | qlnxr_os.c | 482 uint16_t n_entries; local 506 n_entries = min_t(u32, ECORE_RDMA_MAX_CNQ_SIZE, QLNXR_ROCE_MAX_CNQ_SIZE); 518 n_entries,
|
/freebsd-13-stable/sys/dev/ocs_fc/ |
H A D | sli4.c | 4286 * @param n_entries Number of entries to allocate. 4296 size_t size, uint32_t n_entries, uint32_t align) 4299 if ((q->dma.virt == NULL) || (size != q->size) || (n_entries != q->length)) { 4306 if (ocs_dma_alloc(sli4->os, &q->dma, size * n_entries, align)) { 4311 ocs_memset(q->dma.virt, 0, size * n_entries); 4318 q->length = n_entries; 4321 q->proc_limit = n_entries / 2; 4509 * @param n_entries Number of entries to allocate. 4516 sli_queue_alloc(sli4_t *sli4, uint32_t qtype, sli4_queue_t *q, uint32_t n_entries, argument 4543 switch (n_entries) { 4295 __sli_queue_init(sli4_t *sli4, sli4_queue_t *q, uint32_t qtype, size_t size, uint32_t n_entries, uint32_t align) argument 4606 sli_cq_alloc_set(sli4_t *sli4, sli4_queue_t *qs[], uint32_t num_cqs, uint32_t n_entries, sli4_queue_t *eqs[]) argument 8380 sli_fc_rq_alloc(sli4_t *sli4, sli4_queue_t *q, uint32_t n_entries, uint32_t buffer_size, sli4_queue_t *cq, uint16_t ulp, uint8_t is_hdr) argument 8446 sli_fc_rq_set_alloc(sli4_t *sli4, uint32_t num_rq_pairs, sli4_queue_t *qs[], uint32_t base_cq_id, uint32_t n_entries, uint32_t header_buffer_size, uint32_t payload_buffer_size, uint16_t ulp) argument [all...] |
/freebsd-13-stable/contrib/wpa/src/ap/ |
H A D | hostapd.c | 1391 int n_entries, u8 accept_acl) 1397 (n_entries * sizeof(acl_params->mac_acl[0]))); 1401 for (i = 0; i < n_entries; i++) 1406 acl_params->num_mac_acl = n_entries; 1389 hostapd_set_acl_list(struct hostapd_data *hapd, struct mac_acl_entry *mac_acl, int n_entries, u8 accept_acl) argument
|