Home
last modified time | relevance | path

Searched refs:nslots (Results 1 – 10 of 10) sorted by relevance

/xnu-12377.1.9/tests/skywalk/
H A Dskt_nslots.c44 skt_nslots_common(int argc, char *argv[], uint32_t nslots, uint32_t interval, int method) in skt_nslots_common() argument
101 if (nslots == -1) { in skt_nslots_common()
106 nslots = attrval; in skt_nslots_common()
117 while (recvcount < nslots) { in skt_nslots_common()
121 now - start, sendcount, recvcount, nslots, in skt_nslots_common()
122 (double)recvcount * 100 / nslots, in skt_nslots_common()
123 (long)((double)(now - start) * nslots / recvcount) - (now - start)); in skt_nslots_common()
127 if (sendcount < nslots) { in skt_nslots_common()
174 if (sendcount == nslots || i == interval) { in skt_nslots_common()
267 now - start, nslots, (double)nslots / (now - start)); in skt_nslots_common()
H A Dskywalk_test_utils.c786 …chew_random(channel_t channel, channel_ring_t ring, sync_mode_t mode, bool dosync, uint32_t nslots) in sktc_chew_random() argument
793 nslots = random() % (nslots + 1); in sktc_chew_random()
796 while (count < nslots) { in sktc_chew_random()
832 …annel_t channel, channel_ring_t ring, sync_mode_t mode, bool dosync, uint64_t nslots, bool verbose) in sktc_pump_ring_nslots_kq() argument
856 while (count < nslots) { in sktc_pump_ring_nslots_kq()
863 now - start, count, nslots, in sktc_pump_ring_nslots_kq()
864 (double)count * 100 / nslots, in sktc_pump_ring_nslots_kq()
865 (long)((double)(now - start) * nslots / count) - (now - start)); in sktc_pump_ring_nslots_kq()
891 count += sktc_chew_random(channel, ring, mode, dosync, MIN(nslots - count, avail)); in sktc_pump_ring_nslots_kq()
897 now - start, nslots, (double)nslots / (now - start)); in sktc_pump_ring_nslots_kq()
[all …]
H A Dskywalk_test_utils.h261 …nnel_t channel, channel_ring_t ring, sync_mode_t mode, bool dosync, uint64_t nslots, bool verbose);
262 …nnel_t channel, channel_ring_t ring, sync_mode_t mode, bool dosync, uint64_t nslots, bool verbose);
263 …nnel_t channel, channel_ring_t ring, sync_mode_t mode, bool dosync, uint64_t nslots, bool verbose);
/xnu-12377.1.9/bsd/skywalk/nexus/netif/
H A Dnx_netif_filter_vp.c227 uint32_t buf_sz, buf_cnt, nslots, afslots, totalrings; in netif_filter_region_params_setup() local
257 nslots = na_get_nslots(na, NR_TX); in netif_filter_region_params_setup()
260 MAX(nslots, afslots) * SLOT_DESC_SZ; in netif_filter_region_params_setup()
277 nslots = na_get_nslots(na, NR_RX); in netif_filter_region_params_setup()
280 MAX(nslots, afslots) * SLOT_DESC_SZ; in netif_filter_region_params_setup()
H A Dnx_netif_vp.c792 uint32_t buf_sz, buf_cnt, nslots, afslots, evslots, totalrings; in netif_vp_region_params_setup() local
819 nslots = na_get_nslots(na, NR_TX); in netif_vp_region_params_setup()
823 MAX(MAX(nslots, afslots), evslots) * SLOT_DESC_SZ; in netif_vp_region_params_setup()
840 nslots = na_get_nslots(na, NR_RX); in netif_vp_region_params_setup()
843 MAX(nslots, afslots) * SLOT_DESC_SZ; in netif_vp_region_params_setup()
/xnu-12377.1.9/tests/ktrace/
H A Dkperf_tests.c424 unsigned int nslots; member
431 .nslots = NSLOTS, .tail_slot = 0, .slot_size = sizeof(TYPE), \
445 unsigned int top_slot = (tail_slot > 0 ? tail_slot : cq->nslots) - 1; in cirq_top()
454 unsigned int next_slot = tail_slot == cq->nslots - 1 ? 0 : tail_slot + 1; in cirq_push()
463 for (unsigned int i = cq->tail_slot; i < cq->nslots; i++) {
/xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/
H A Dnx_flowswitch.c371 uint32_t totalrings, nslots, afslots, evslots, lbaslots; in fsw_vp_region_params_setup() local
392 nslots = na_get_nslots(na, NR_TX); in fsw_vp_region_params_setup()
397 MAX(MAX(MAX(nslots, afslots), evslots), lbaslots) * SLOT_DESC_SZ; in fsw_vp_region_params_setup()
/xnu-12377.1.9/bsd/skywalk/channel/
H A Dchannel_ring.c85 kr_init_to_mhints(struct __kern_channel_ring *kring, uint32_t nslots) in kr_init_to_mhints() argument
89 tail = nslots - 1; in kr_init_to_mhints()
92 kring->ckr_num_slots = nslots; in kr_init_to_mhints()
93 *(slot_idx_t *)(uintptr_t)&kring->ckr_lim = (nslots - 1); in kr_init_to_mhints()
/xnu-12377.1.9/bsd/skywalk/nexus/
H A Dnexus_adapter.c2183 uint32_t nslots = kring->ckr_num_slots; in na_kr_populate_slots() local
2255 for (i = 0; i < nslots; i++) { in na_kr_populate_slots()
2262 na->na_arena->ar_name, i, nslots, err); in na_kr_populate_slots()
2296 SK_KVA(na->na_arena), na->na_arena->ar_name, nslots, start_idx); in na_kr_populate_slots()
/xnu-12377.1.9/osfmk/vm/
H A Dvm_compressor.c6241 int nslots = c_seg->c_nextslot; in vm_compressor_serialize_segment_debug_info() local
6243 if (sizeof(struct c_segment_info) + (nslots * sizeof(struct c_slot_info)) > insize) { in vm_compressor_serialize_segment_debug_info()
6262 csi->csi_slots_len = (uint16_t)nslots; in vm_compressor_serialize_segment_debug_info()
6274 for (int si = 0; si < nslots; ++si) { in vm_compressor_serialize_segment_debug_info()