| /xnu-11417.101.15/tests/skywalk/ |
| H A D | skt_nslots.c | 44 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 D | skywalk_test_utils.c | 800 …chew_random(channel_t channel, channel_ring_t ring, sync_mode_t mode, bool dosync, uint32_t nslots) in sktc_chew_random() argument 807 nslots = random() % (nslots + 1); in sktc_chew_random() 810 while (count < nslots) { in sktc_chew_random() 846 …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 870 while (count < nslots) { in sktc_pump_ring_nslots_kq() 877 now - start, count, nslots, in sktc_pump_ring_nslots_kq() 878 (double)count * 100 / nslots, in sktc_pump_ring_nslots_kq() 879 (long)((double)(now - start) * nslots / count) - (now - start)); in sktc_pump_ring_nslots_kq() 905 count += sktc_chew_random(channel, ring, mode, dosync, MIN(nslots - count, avail)); in sktc_pump_ring_nslots_kq() 911 now - start, nslots, (double)nslots / (now - start)); in sktc_pump_ring_nslots_kq() [all …]
|
| H A D | skywalk_test_utils.h | 263 …nnel_t channel, channel_ring_t ring, sync_mode_t mode, bool dosync, uint64_t nslots, bool verbose); 264 …nnel_t channel, channel_ring_t ring, sync_mode_t mode, bool dosync, uint64_t nslots, bool verbose); 265 …nnel_t channel, channel_ring_t ring, sync_mode_t mode, bool dosync, uint64_t nslots, bool verbose);
|
| /xnu-11417.101.15/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_filter_vp.c | 227 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 D | nx_netif_vp.c | 789 uint32_t buf_sz, buf_cnt, nslots, afslots, evslots, totalrings; in netif_vp_region_params_setup() local 816 nslots = na_get_nslots(na, NR_TX); in netif_vp_region_params_setup() 820 MAX(MAX(nslots, afslots), evslots) * SLOT_DESC_SZ; in netif_vp_region_params_setup() 837 nslots = na_get_nslots(na, NR_RX); in netif_vp_region_params_setup() 840 MAX(nslots, afslots) * SLOT_DESC_SZ; in netif_vp_region_params_setup()
|
| /xnu-11417.101.15/tests/ktrace/ |
| H A D | kperf_tests.c | 424 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-11417.101.15/bsd/skywalk/nexus/flowswitch/ |
| H A D | nx_flowswitch.c | 372 uint32_t totalrings, nslots, afslots, evslots, lbaslots; in fsw_vp_region_params_setup() local 393 nslots = na_get_nslots(na, NR_TX); in fsw_vp_region_params_setup() 398 MAX(MAX(MAX(nslots, afslots), evslots), lbaslots) * SLOT_DESC_SZ; in fsw_vp_region_params_setup()
|
| /xnu-11417.101.15/bsd/skywalk/channel/ |
| H A D | channel_ring.c | 84 kr_init_to_mhints(struct __kern_channel_ring *kring, uint32_t nslots) in kr_init_to_mhints() argument 88 tail = nslots - 1; in kr_init_to_mhints() 91 kring->ckr_num_slots = nslots; in kr_init_to_mhints() 92 *(slot_idx_t *)(uintptr_t)&kring->ckr_lim = (nslots - 1); in kr_init_to_mhints()
|
| /xnu-11417.101.15/bsd/skywalk/nexus/ |
| H A D | nexus_adapter.c | 2230 uint32_t nslots = kring->ckr_num_slots; in na_kr_populate_slots() local 2303 for (i = 0; i < nslots; i++) { in na_kr_populate_slots() 2310 na->na_arena->ar_name, i, nslots, err); in na_kr_populate_slots() 2344 SK_KVA(na->na_arena), na->na_arena->ar_name, nslots, start_idx); in na_kr_populate_slots()
|
| /xnu-11417.101.15/osfmk/vm/ |
| H A D | vm_compressor.c | 6192 int nslots = c_seg->c_nextslot; in vm_compressor_serialize_segment_debug_info() local 6194 if (sizeof(struct c_segment_info) + (nslots * sizeof(struct c_slot_info)) > insize) { in vm_compressor_serialize_segment_debug_info() 6213 csi->csi_slots_len = (uint16_t)nslots; in vm_compressor_serialize_segment_debug_info() 6220 for (int si = 0; si < nslots; ++si) { in vm_compressor_serialize_segment_debug_info()
|