Home
last modified time | relevance | path

Searched refs:pktbuf_t (Results 1 – 11 of 11) sorted by relevance

/lk-master/lib/minip/include/lib/
A Dpktbuf.h38 } pktbuf_t; typedef
42 pktbuf_t p;
54 static inline u32 pktbuf_data_phys(pktbuf_t *p) { in pktbuf_data_phys()
59 static inline u32 pktbuf_avail_head(pktbuf_t *p) { in pktbuf_avail_head()
69 pktbuf_t *pktbuf_alloc(void);
70 pktbuf_t *pktbuf_alloc_empty(void);
77 int pktbuf_free(pktbuf_t *p, bool reschedule);
84 void *pktbuf_append(pktbuf_t *p, size_t sz);
88 void *pktbuf_prepend(pktbuf_t *p, size_t sz);
94 void *pktbuf_consume(pktbuf_t *p, size_t sz);
[all …]
A Dminip.h25 typedef int (*tx_func_t)(pktbuf_t *p);
37 void minip_rx_driver_callback(pktbuf_t *p);
/lk-master/lib/minip/
A Dpktbuf.c100 pktbuf_t *pktbuf_alloc(void) { in pktbuf_alloc()
101 pktbuf_t *p = NULL; in pktbuf_alloc()
115 memset(p, 0, sizeof(pktbuf_t)); in pktbuf_alloc()
120 pktbuf_t *pktbuf_alloc_empty(void) { in pktbuf_alloc_empty()
121 pktbuf_t *p = (pktbuf_t *) get_pool_object(); in pktbuf_alloc_empty()
127 int pktbuf_free(pktbuf_t *p, bool reschedule) { in pktbuf_free()
147 void *pktbuf_append(pktbuf_t *p, size_t sz) { in pktbuf_append()
158 void *pktbuf_prepend(pktbuf_t *p, size_t sz) { in pktbuf_prepend()
169 void *pktbuf_consume(pktbuf_t *p, size_t sz) { in pktbuf_consume()
182 void pktbuf_consume_tail(pktbuf_t *p, size_t sz) { in pktbuf_consume_tail()
[all …]
A Dminip-internal.h107 status_t minip_ipv4_send(pktbuf_t *p, uint32_t dest_addr, uint8_t proto);
109 void tcp_input(pktbuf_t *p, uint32_t src_ip, uint32_t dst_ip);
110 void udp_input(pktbuf_t *p, uint32_t src_ip);
A Dminip.c127 pktbuf_t *p; in send_arp_request()
183 status_t minip_ipv4_send(pktbuf_t *p, uint32_t dest_addr, uint8_t proto) { in minip_ipv4_send()
219 pktbuf_t *p; in send_ping_reply()
263 __NO_INLINE static void handle_ipv4_packet(pktbuf_t *p, const uint8_t *src_mac) { in handle_ipv4_packet()
346 __NO_INLINE static int handle_arp_pkt(pktbuf_t *p) { in handle_arp_pkt()
358 pktbuf_t *rp; in handle_arp_pkt()
413 void minip_rx_driver_callback(pktbuf_t *p) { in minip_rx_driver_callback()
A Dudp.c114 pktbuf_t *p; in udp_send_iovec()
171 void udp_input(pktbuf_t *p, uint32_t src_ip) { in udp_input()
A Darp.c127 pktbuf_t *p; in arp_send_request()
A Dtcp.c329 void tcp_input(pktbuf_t *p, uint32_t src_ip, uint32_t dst_ip) { in tcp_input()
691 pktbuf_t *p = pktbuf_alloc(); in tcp_send()
/lk-master/dev/virtio/net/
A Dvirtio-net.c87 pktbuf_t *pending_tx_packet[TX_RING_SIZE];
88 pktbuf_t *pending_rx_packet[RX_RING_SIZE];
96 static status_t virtio_net_queue_rx(struct virtio_net_dev *ndev, pktbuf_t *p);
177 pktbuf_t *p = pktbuf_alloc(); in virtio_net_start()
190 pktbuf_t *p; in virtio_net_queue_tx_pktbuf()
257 pktbuf_t *p = pktbuf_alloc(); in virtio_net_queue_tx()
275 static status_t virtio_net_queue_rx(struct virtio_net_dev *ndev, pktbuf_t *p) { in virtio_net_queue_rx()
340 pktbuf_t *p = ndev->pending_rx_packet[i]; in virtio_net_irq_driver_callback()
357 pktbuf_t *p = ndev->pending_tx_packet[i]; in virtio_net_irq_driver_callback()
393 pktbuf_t *p = list_remove_head_type(&ndev->completed_rx_queue, pktbuf_t, list); in virtio_net_rx_worker()
[all …]
/lk-master/platform/zynq/
A Dgem.c97 pktbuf_t *rx_pbufs[GEM_RX_DESC_CNT];
102 static void debug_rx_handler(pktbuf_t *p) { in debug_rx_handler()
120 pktbuf_t *p = list_remove_head_type(&gem.queued_pbufs, pktbuf_t, list); in free_completed_pbuf_frames()
134 pktbuf_t *p; in queue_pkts_in_tx_tbl()
147 ((p = list_remove_head_type(&gem.tx_queue, pktbuf_t, list)) != NULL)) { in queue_pkts_in_tx_tbl()
292 pktbuf_t *p = pktbuf_alloc_empty(); in gem_cfg_buffer_descs()
340 pktbuf_t *p; in gem_rx_thread()
546 pktbuf_t *p; in cmd_gem()
/lk-master/platform/stm32f7xx/
A Deth.c85 static int eth_send_raw_pkt(pktbuf_t *p);
281 pktbuf_t *p = pktbuf_alloc_empty();
323 status_t stm32_eth_send_minip_pkt(pktbuf_t *p) {

Completed in 14 milliseconds