Home
last modified time | relevance | path

Searched refs:kern_packet_t (Results 1 – 25 of 36) sorted by relevance

12

/xnu-8019.80.24/bsd/skywalk/packet/
H A Dos_packet.h411 typedef uint64_t kern_packet_t; typedef
574 extern errno_t kern_packet_set_headroom(const kern_packet_t, const uint8_t);
575 extern uint8_t kern_packet_get_headroom(const kern_packet_t);
577 extern errno_t kern_packet_set_link_header_offset(const kern_packet_t,
580 extern uint16_t kern_packet_get_link_header_offset(const kern_packet_t);
581 extern errno_t kern_packet_set_link_header_length(const kern_packet_t,
583 extern uint8_t kern_packet_get_link_header_length(const kern_packet_t);
584 extern errno_t kern_packet_set_link_broadcast(const kern_packet_t);
585 extern boolean_t kern_packet_get_link_broadcast(const kern_packet_t);
586 extern errno_t kern_packet_set_link_multicast(const kern_packet_t);
[all …]
H A Dpacket_kern.c32 static int kern_packet_clone_internal(const kern_packet_t, kern_packet_t *,
38 pkt_subtype_assert_fail(const kern_packet_t ph, uint64_t type, uint64_t subtype) in pkt_subtype_assert_fail()
49 pkt_type_assert_fail(const kern_packet_t ph, uint64_t type) in pkt_type_assert_fail()
59 kern_packet_set_headroom(const kern_packet_t ph, const uint8_t headroom) in kern_packet_set_headroom()
65 kern_packet_get_headroom(const kern_packet_t ph) in kern_packet_get_headroom()
71 kern_packet_set_link_header_offset(const kern_packet_t ph, const uint8_t off) in kern_packet_set_link_header_offset()
77 kern_packet_get_link_header_offset(const kern_packet_t ph) in kern_packet_get_link_header_offset()
83 kern_packet_set_link_header_length(const kern_packet_t ph, const uint8_t off) in kern_packet_set_link_header_length()
89 kern_packet_get_link_header_length(const kern_packet_t ph) in kern_packet_get_link_header_length()
95 kern_packet_set_link_broadcast(const kern_packet_t ph) in kern_packet_set_link_broadcast()
[all …]
H A Dpbufpool_kern.c33 const uint32_t, kern_packet_t *, uint32_t);
35 const uint32_t, kern_packet_t *, uint32_t *, alloc_cb_func_t,
334 kern_packet_t *pph, uint32_t skmflag) in kern_pbufpool_alloc_common()
360 kern_packet_t *pph) in kern_pbufpool_alloc()
367 kern_packet_t *pph) in kern_pbufpool_alloc_nosleep()
374 const uint32_t bufcnt, kern_packet_t *array, uint32_t *size, in kern_pbufpool_alloc_batch_common()
393 kern_packet_t *array, uint32_t *size) in kern_pbufpool_alloc_batch()
401 const uint32_t bufcnt, kern_packet_t *array, uint32_t *size, in kern_pbufpool_alloc_batch_callback()
410 const uint32_t bufcnt, kern_packet_t *array, uint32_t *size) in kern_pbufpool_alloc_batch_nosleep()
418 const uint32_t bufcnt, kern_packet_t *array, uint32_t *size, in kern_pbufpool_alloc_batch_nosleep_callback()
[all …]
H A Dpacket_var.h700 static inline kern_packet_t
800 typedef void (pkt_copy_from_pkt_t)(const enum txrx, kern_packet_t,
801 const uint16_t, kern_packet_t, const uint16_t, const uint32_t,
804 typedef void (pkt_copy_from_mbuf_t)(const enum txrx, kern_packet_t,
808 typedef void (pkt_copy_to_mbuf_t)(const enum txrx, kern_packet_t,
813 extern void pkt_subtype_assert_fail(const kern_packet_t, uint64_t, uint64_t);
814 extern void pkt_type_assert_fail(const kern_packet_t, uint64_t);
823 extern void pkt_copypkt_sum(kern_packet_t, uint16_t, kern_packet_t,
826 pkt_copyaddr_sum(kern_packet_t sph, uint16_t soff, uint8_t *dbaddr,
828 extern uint32_t pkt_sum(kern_packet_t, uint16_t, uint16_t);
[all …]
H A Dpacket_copy.c87 pkt_copy_from_pkt(const enum txrx t, kern_packet_t dph, const uint16_t doff, in pkt_copy_from_pkt()
88 kern_packet_t sph, const uint16_t soff, const uint32_t len, in pkt_copy_from_pkt()
206 _pkt_copyaddr_sum(kern_packet_t sph, uint16_t soff, uint8_t *dbaddr, in _pkt_copyaddr_sum()
356 _pkt_copypkt_sum(kern_packet_t sph, uint16_t soff, kern_packet_t dph, in _pkt_copypkt_sum()
501 pkt_sum(kern_packet_t sph, uint16_t soff, uint16_t len) in pkt_sum()
629 pkt_copy_multi_buflet_from_pkt(const enum txrx t, kern_packet_t dph, in pkt_copy_multi_buflet_from_pkt()
630 const uint16_t doff, kern_packet_t sph, const uint16_t soff, in pkt_copy_multi_buflet_from_pkt()
741 pkt_copy_from_mbuf(const enum txrx t, kern_packet_t ph, const uint16_t poff, in pkt_copy_from_mbuf()
922 m_copypkt_sum(mbuf_t m, int soff, kern_packet_t dph, uint16_t doff, in m_copypkt_sum()
1100 pkt_copy_multi_buflet_from_mbuf(const enum txrx t, kern_packet_t ph, in pkt_copy_multi_buflet_from_mbuf()
[all …]
/xnu-8019.80.24/bsd/skywalk/channel/
H A Dos_channel.h611 extern kern_packet_t kern_channel_slot_get_packet(
620 const kern_channel_slot_t slot, kern_packet_t packet);
622 const kern_channel_slot_t slot, kern_packet_t packet);
624 kern_packet_t **array, uint32_t *count);
662 const kern_channel_ring_t kring, const uint32_t sidx, kern_packet_t ph);
664 const kern_channel_ring_t kring, const uint32_t sidx, kern_packet_t ph);
H A Dchannel_kern.c207 kern_packet_t **array, uint32_t *count) in kern_channel_ring_get_container()
270 kern_packet_t
294 const kern_channel_slot_t slot, kern_packet_t ph) in kern_channel_slot_attach_packet()
310 const kern_channel_slot_t slot, kern_packet_t ph) in kern_channel_slot_detach_packet()
H A Dos_channel_event.h106 extern errno_t kern_channel_event_transmit_status(const kern_packet_t,
H A Dkern_channel_event.c34 kern_channel_event_transmit_status(const kern_packet_t ph, const ifnet_t ifp) in kern_channel_event_transmit_status()
/xnu-8019.80.24/bsd/skywalk/mem/
H A Dskmem_test.c45 static void skmem_test_alloccb(kern_packet_t, uint32_t, const void *);
64 kern_packet_t sti_mph; /* master packet */
65 kern_packet_t sti_mpc; /* cloned packet */
214 kern_packet_t *phary = NULL; in skmem_buflet_tests()
215 kern_packet_t *phary2 = NULL; in skmem_buflet_tests()
216 kern_packet_t *pharyc = NULL; in skmem_buflet_tests()
222 kern_packet_t ph, ph_mb; in skmem_buflet_tests()
231 phary = (kern_packet_t *) kalloc_data(sizeof(kern_packet_t) * MAX_PH_ARY, in skmem_buflet_tests()
233 phary2 = (kern_packet_t *) kalloc_data(sizeof(kern_packet_t) * MAX_PH_ARY, in skmem_buflet_tests()
235 pharyc = (kern_packet_t *) kalloc_data(sizeof(kern_packet_t) * MAX_PH_ARY, in skmem_buflet_tests()
[all …]
/xnu-8019.80.24/bsd/net/
H A Dpktap.h248 pid_t, const char *, pid_t, const char *, kern_packet_t, const void *, size_t,
251 pid_t, const char *, pid_t, const char *, kern_packet_t, const void *, size_t,
H A Dif_fake.c860 feth_clone_packet(if_fake_ref dif, kern_packet_t sph, kern_packet_t *pdph) in feth_clone_packet()
864 kern_packet_t dph = 0, dph0 = 0; in feth_clone_packet()
972 feth_add_packet_trailer(kern_packet_t ph, void *trailer, size_t trailer_len) in feth_add_packet_trailer()
1010 feth_add_packet_fcs(kern_packet_t ph) in feth_add_packet_fcs()
1037 feth_copy_packet(if_fake_ref dif, kern_packet_t sph, kern_packet_t *pdph) in feth_copy_packet()
1044 kern_packet_t dph; in feth_copy_packet()
1118 feth_rx_submit(if_fake_ref sif, if_fake_ref dif, kern_packet_t sphs[], in feth_rx_submit()
1125 kern_packet_t sph = 0, dph = 0; in feth_rx_submit()
1196 uint32_t qset_idx, kern_packet_t sphs[], uint32_t n_pkts) in feth_rx_queue_submit()
1200 kern_packet_t sph = 0, dph = 0; in feth_rx_queue_submit()
[all …]
H A Dbpf.h1377 kern_packet_t bpfpu_pkt;
1528 kern_packet_t packet, void *header, size_t header_len);
1542 kern_packet_t packet, void *header, size_t header_len);
H A Dbpf_filter.c235 p_hdr_offset(kern_packet_t p, void * hdr, size_t hdrlen, bpf_u_int32 * k_p, in p_hdr_offset()
272 p_xword(kern_packet_t p, void * hdr, size_t hdrlen, bpf_u_int32 k, int *err) in p_xword()
302 p_xhalf(kern_packet_t p, void * hdr, size_t hdrlen, bpf_u_int32 k, int *err) in p_xhalf()
330 p_xbyte(kern_packet_t p, void * hdr, size_t hdrlen, bpf_u_int32 k, int *err) in p_xbyte()
H A Dif_utun.c403 kern_packet_t tx_chain_ph = 0; in utun_netif_sync_tx()
431 kern_packet_t tx_ph = kern_channel_slot_get_packet(tx_ring, tx_slot); in utun_netif_sync_tx()
653 kern_packet_t rx_ph = 0; in utun_netif_sync_rx()
765 kern_packet_t rx_ph = 0; in utun_netif_sync_rx()
766 kern_packet_t tx_ph = kern_channel_slot_get_packet(tx_ring, tx_slot); in utun_netif_sync_rx()
3220 kern_packet_t tx_ph = kern_channel_slot_get_packet(tx_ring, tx_slot); in utun_kpipe_sync_tx()
3357 kern_packet_t tx_chain_ph = 0; in utun_kpipe_sync_rx()
3364 kern_packet_t tx_ph = kern_channel_slot_get_packet(tx_ring, tx_slot); in utun_kpipe_sync_rx()
3384 kern_packet_t rx_ph = 0; in utun_kpipe_sync_rx()
3545 kern_packet_t rx_ph = 0; in utun_kpipe_sync_rx()
H A Dpktap.c1357 kern_packet_t packet, void *header, size_t header_len);
1362 kern_packet_t pkt, const void * header, size_t header_length, in pktap_bpf_tap_packet()
1480 kern_packet_t pkt, const void * header, size_t header_length, in pktap_input_packet()
1499 kern_packet_t pkt, const void * header, size_t header_length, in pktap_output_packet()
H A Dif_ipsec.c869 kern_packet_t tx_chain_ph = 0; in ipsec_kpipe_sync_rx()
877 kern_packet_t rx_ph = 0; in ipsec_kpipe_sync_rx()
885 kern_packet_t tx_ph = kern_channel_slot_get_packet(tx_ring, tx_slot); in ipsec_kpipe_sync_rx()
1186 kern_packet_t tx_chain_ph = 0; in ipsec_netif_sync_tx()
1221 kern_packet_t tx_ph = kern_channel_slot_get_packet(tx_ring, tx_slot); in ipsec_netif_sync_tx()
1455 kern_packet_t rx_ph = 0; in ipsec_netif_sync_rx()
1672 kern_packet_t rx_ph = 0; in ipsec_netif_sync_rx()
1680 kern_packet_t tx_ph = kern_channel_slot_get_packet(tx_ring, tx_slot); in ipsec_netif_sync_rx()
/xnu-8019.80.24/bsd/skywalk/nexus/netif/
H A Dnx_netif_util.c35 nx_netif_alloc_packet(struct kern_pbufpool *pp, uint32_t sz, kern_packet_t *php) in nx_netif_alloc_packet()
37 kern_packet_t ph; in nx_netif_alloc_packet()
163 kern_packet_t fph; in nx_netif_mbuf_to_filter_pkt()
342 kern_packet_t fph, ph; in nx_netif_pkt_to_filter_pkt()
537 kern_packet_t ph; in nx_netif_pkt_to_mbuf()
583 kern_packet_t ph, dph; in nx_netif_pkt_to_pkt()
H A Dnx_netif_filter_vp.c84 kern_packet_t ph; in netif_filter_deliver()
384 kern_packet_t ph; in netif_filter_na_txsync()
H A Dnx_netif_vp.c102 kern_packet_t ph; in netif_copy_or_attach_pkt()
672 kern_packet_t ph; in netif_vp_na_txsync()
1074 kern_packet_t ph; in netif_vp_na_channel_event_notify()
/xnu-8019.80.24/bsd/skywalk/nexus/kpipe/
H A Dnx_kpipe_loopback.c325 kern_packet_t ph; /* packet handle */ in kplo_sync_tx()
328 kern_packet_t *ary = NULL; in kplo_sync_tx()
376 kern_packet_t tph; in kplo_sync_tx()
/xnu-8019.80.24/bsd/skywalk/nexus/flowswitch/
H A Dfsw_dp.c249 static void fsw_ifp_inc_traffic_class_in_pkt(struct ifnet *, kern_packet_t);
442 validate_pkt_len(struct __kern_packet *spkt, kern_packet_t dph, in validate_pkt_len()
498 kern_packet_t dph = SK_PTR_ENCODE(dpkt, in copy_packet_from_dev()
500 kern_packet_t sph = SK_PTR_ENCODE(spkt, METADATA_TYPE(spkt), in copy_packet_from_dev()
642 kern_packet_t ph = SK_PTR_ENCODE(pkt, in rx_prepare_packet_mbuf()
1880 kern_packet_t sph = SK_PTR_ENCODE(spkt, in dp_copy_to_dev_mbuf()
1882 kern_packet_t dph = SK_PTR_ENCODE(dpkt, in dp_copy_to_dev_mbuf()
1916 kern_packet_t sph = SK_PTR_ENCODE(spkt, in dp_copy_to_dev_pkt()
1918 kern_packet_t dph = SK_PTR_ENCODE(dpkt, in dp_copy_to_dev_pkt()
2392 kern_packet_t ph = SK_PTR_ENCODE(pkt, in tx_finalize_packet()
[all …]
/xnu-8019.80.24/bsd/skywalk/nexus/
H A Dnexus_adapter.h231 kern_packet_t *na_scratch;
/xnu-8019.80.24/bsd/net/pktsched/
H A Dpktsched.c233 kern_packet_t ph2; in pktsched_clone_pkt()
/xnu-8019.80.24/bsd/skywalk/nexus/monitor/
H A Dnx_monitor.c1248 kern_packet_t sph, dph; in nx_mon_parent_sync()
1684 nx_mon_quantum_copy_64x(const enum txrx t, kern_packet_t dph, in nx_mon_quantum_copy_64x()
1685 const uint16_t doff, kern_packet_t sph, const uint16_t soff, in nx_mon_quantum_copy_64x()

12