Home
last modified time | relevance | path

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

/xnu-11215/bsd/net/
H A Dif_utun.c745 if (tx_ring == NULL) { in utun_netif_sync_rx()
752 (void)kr_enter(tx_ring, TRUE); in utun_netif_sync_rx()
866 if (tx_ring != NULL) { in utun_netif_sync_rx()
868 kern_channel_notify(tx_ring, 0); in utun_netif_sync_rx()
870 kr_exit(tx_ring); in utun_netif_sync_rx()
3332 if (tx_ring == NULL || in utun_kpipe_sync_rx()
3345 (void)kr_enter(tx_ring, TRUE); in utun_kpipe_sync_rx()
3353 kr_exit(tx_ring); in utun_kpipe_sync_rx()
3366 kr_exit(tx_ring); in utun_kpipe_sync_rx()
3527 kern_channel_notify(tx_ring, 0); in utun_kpipe_sync_rx()
[all …]
H A Dif_ipsec.c781 if (tx_ring == NULL) { in ipsec_kpipe_sync_rx()
795 (void)kr_enter(tx_ring, TRUE); in ipsec_kpipe_sync_rx()
803 kr_exit(tx_ring); in ipsec_kpipe_sync_rx()
818 kr_exit(tx_ring); in ipsec_kpipe_sync_rx()
945 kern_channel_notify(tx_ring, 0); in ipsec_kpipe_sync_rx()
947 kr_exit(tx_ring); in ipsec_kpipe_sync_rx()
1698 if (tx_ring == NULL) { in ipsec_netif_sync_rx()
1706 (void)kr_enter(tx_ring, TRUE); in ipsec_netif_sync_rx()
1778 if (tx_ring != NULL) { in ipsec_netif_sync_rx()
1780 kern_channel_notify(tx_ring, 0); in ipsec_netif_sync_rx()
[all …]
H A Dif_headless.c695 kern_nexus_t nexus, kern_channel_ring_t tx_ring, uint32_t flags) in headless_nx_sync_tx() argument
710 tx_ring->ckr_ring_id, flags); in headless_nx_sync_tx()
720 tx_slot = kern_channel_get_next_slot(tx_ring, NULL, NULL); in headless_nx_sync_tx()
725 ph = kern_channel_slot_get_packet(tx_ring, tx_slot); in headless_nx_sync_tx()
727 kern_channel_slot_detach_packet(tx_ring, tx_slot, ph); in headless_nx_sync_tx()
731 tx_slot = kern_channel_get_next_slot(tx_ring, tx_slot, NULL); in headless_nx_sync_tx()
736 kern_channel_advance_slot(tx_ring, last_tx_slot); in headless_nx_sync_tx()
737 kern_channel_increment_ring_net_stats(tx_ring, ifp, &stats); in headless_nx_sync_tx()
H A Dif_redirect.c622 kern_channel_ring_t tx_ring, uint32_t flags) in redirect_nx_sync_tx() argument
639 RDLOG_INFO("%s ring %d flags 0x%x", rd->rd_name, tx_ring->ckr_ring_id, flags); in redirect_nx_sync_tx()
650 while ((tx_slot = kern_channel_get_next_slot(tx_ring, tx_slot, NULL)) != NULL) { in redirect_nx_sync_tx()
654 sph = kern_channel_slot_get_packet(tx_ring, tx_slot); in redirect_nx_sync_tx()
656 kern_channel_slot_detach_packet(tx_ring, tx_slot, sph); in redirect_nx_sync_tx()
674 kern_channel_advance_slot(tx_ring, last_tx_slot); in redirect_nx_sync_tx()
675 kern_channel_increment_ring_net_stats(tx_ring, ifp, &stats); in redirect_nx_sync_tx()
H A Dif_fake.c2198 kern_nexus_t nexus, kern_channel_ring_t tx_ring, uint32_t flags) in feth_nx_sync_tx() argument
2218 tx_ring->ckr_ring_id, flags); in feth_nx_sync_tx()
2257 tx_slot = kern_channel_get_next_slot(tx_ring, NULL, NULL); in feth_nx_sync_tx()
2263 sph = kern_channel_slot_get_packet(tx_ring, tx_slot); in feth_nx_sync_tx()
2265 kern_channel_slot_detach_packet(tx_ring, tx_slot, sph); in feth_nx_sync_tx()
2303 tx_slot = kern_channel_get_next_slot(tx_ring, tx_slot, NULL); in feth_nx_sync_tx()
2314 kern_channel_advance_slot(tx_ring, last_tx_slot); in feth_nx_sync_tx()
2315 kern_channel_increment_ring_net_stats(tx_ring, ifp, &stats); in feth_nx_sync_tx()
/xnu-11215/tests/skywalk/
H A Dskt_filter.c186 channel_ring_t tx_ring; in put_packet() local
191 tx_ring = os_channel_tx_ring(ch, ring_id); in put_packet()
192 SKTC_ASSERT_ERR(tx_ring != NULL); in put_packet()
194 tx_slot = os_channel_get_next_slot(tx_ring, NULL, &prop); in put_packet()
197 error = os_channel_slot_attach_packet(tx_ring, tx_slot, pkt); in put_packet()
200 error = os_channel_advance_slot(tx_ring, tx_slot); in put_packet()
H A Dskt_netifdirect.c317 slot = os_channel_get_next_slot(port->tx_ring, last_slot,
338 pkt = os_channel_slot_get_packet(port->tx_ring, slot);
371 error = os_channel_slot_attach_packet(port->tx_ring,
376 os_channel_set_slot_properties(port->tx_ring, slot,
386 error = os_channel_advance_slot(port->tx_ring, last_slot);
H A Dskt_xfer.c1156 slot = os_channel_get_next_slot(port->tx_ring, last_slot,
1178 pkt = os_channel_slot_get_packet(port->tx_ring, slot);
1213 error = os_channel_slot_attach_packet(port->tx_ring,
1218 os_channel_set_slot_properties(port->tx_ring, slot,
1228 error = os_channel_advance_slot(port->tx_ring, last_slot);
1259 slot = os_channel_get_next_slot(port->tx_ring, last_slot, in channel_port_send_fragments()
1280 pkt = os_channel_slot_get_packet(port->tx_ring, slot); in channel_port_send_fragments()
1318 error = os_channel_slot_attach_packet(port->tx_ring, in channel_port_send_fragments()
1323 os_channel_set_slot_properties(port->tx_ring, slot, in channel_port_send_fragments()
1911 error = os_channel_flow_admissible(port->tx_ring, in ping_pong()
[all …]
H A Dskywalk_test_utils.h165 channel_ring_t tx_ring; member
H A Dskywalk_test_utils.c1668 ch_port->tx_ring = os_channel_tx_ring(ch_port->chan, ringid); in sktu_channel_port_init()
1669 assert(ch_port->tx_ring != NULL); in sktu_channel_port_init()
1761 slot = os_channel_get_next_slot(port->tx_ring, NULL, &prop); in sktu_channel_port_tx()
1765 error = os_channel_slot_attach_packet(port->tx_ring, slot, pkt); in sktu_channel_port_tx()
1767 error = os_channel_advance_slot(port->tx_ring, slot); in sktu_channel_port_tx()