Home
last modified time | relevance | path

Searched refs:ring_info (Results 1 – 16 of 16) sorted by relevance

/drivers/hv/
Dring_buffer.c140 hv_get_next_write_location(struct hv_ring_buffer_info *ring_info) in hv_get_next_write_location() argument
142 u32 next = ring_info->ring_buffer->write_index; in hv_get_next_write_location()
154 hv_set_next_write_location(struct hv_ring_buffer_info *ring_info, in hv_set_next_write_location() argument
157 ring_info->ring_buffer->write_index = next_write_location; in hv_set_next_write_location()
166 hv_get_next_read_location(struct hv_ring_buffer_info *ring_info) in hv_get_next_read_location() argument
168 u32 next = ring_info->ring_buffer->read_index; in hv_get_next_read_location()
180 hv_get_next_readlocation_withoffset(struct hv_ring_buffer_info *ring_info, in hv_get_next_readlocation_withoffset() argument
183 u32 next = ring_info->ring_buffer->read_index; in hv_get_next_readlocation_withoffset()
186 next %= ring_info->ring_datasize; in hv_get_next_readlocation_withoffset()
199 hv_set_next_read_location(struct hv_ring_buffer_info *ring_info, in hv_set_next_read_location() argument
[all …]
Dhyperv_vmbus.h545 int hv_ringbuffer_init(struct hv_ring_buffer_info *ring_info, void *buffer,
548 void hv_ringbuffer_cleanup(struct hv_ring_buffer_info *ring_info);
550 int hv_ringbuffer_write(struct hv_ring_buffer_info *ring_info,
554 int hv_ringbuffer_peek(struct hv_ring_buffer_info *ring_info, void *buffer,
557 int hv_ringbuffer_read(struct hv_ring_buffer_info *ring_info,
563 void hv_ringbuffer_get_debuginfo(struct hv_ring_buffer_info *ring_info,
/drivers/net/ethernet/pasemi/
Dpasemi_mac.h44 struct pasemi_mac_buffer *ring_info; member
57 struct pasemi_mac_buffer *ring_info; member
112 #define TX_DESC_INFO(tx, num) ((tx)->ring_info[(num) & (TX_RING_SIZE-1)])
114 #define RX_DESC_INFO(rx, num) ((rx)->ring_info[(num) & (RX_RING_SIZE-1)])
Dpasemi_mac.c432 ring->ring_info = kzalloc(sizeof(struct pasemi_mac_buffer) * in pasemi_mac_setup_rx_resources()
435 if (!ring->ring_info) in pasemi_mac_setup_rx_resources()
487 kfree(ring->ring_info); in pasemi_mac_setup_rx_resources()
516 ring->ring_info = kzalloc(sizeof(struct pasemi_mac_buffer) * in pasemi_mac_setup_tx_resources()
518 if (!ring->ring_info) in pasemi_mac_setup_tx_resources()
549 kfree(ring->ring_info); in pasemi_mac_setup_tx_resources()
573 info = &txring->ring_info[(i+1) & (TX_RING_SIZE-1)]; in pasemi_mac_free_tx_resources()
577 dmas[j] = txring->ring_info[(i+1+j) & in pasemi_mac_free_tx_resources()
586 kfree(txring->ring_info); in pasemi_mac_free_tx_resources()
621 kfree(rx_ring(mac)->ring_info); in pasemi_mac_free_rx_resources()
[all …]
/drivers/net/ethernet/broadcom/
Db44.h278 struct ring_info { struct
359 struct ring_info *rx_buffers;
360 struct ring_info *tx_buffers;
Db44.c605 struct ring_info *rp = &bp->tx_buffers[cons]; in b44_tx()
634 struct ring_info *src_map, *map; in b44_alloc_rx_skb()
709 struct ring_info *src_map, *dest_map; in b44_recycle_rx()
763 struct ring_info *rp = &bp->rx_buffers[cons]; in b44_rx()
1070 struct ring_info *rp; in b44_free_rings()
1168 size = B44_RX_RING_SIZE * sizeof(struct ring_info); in b44_alloc_consistent()
1173 size = B44_TX_RING_SIZE * sizeof(struct ring_info); in b44_alloc_consistent()
Dtg3.h2819 struct ring_info { struct
2951 struct ring_info *rx_std_buffers;
2952 struct ring_info *rx_jmb_buffers;
Dtg3.c175 (sizeof(struct ring_info) * TG3_RX_STD_RING_SIZE(tp))
178 (sizeof(struct ring_info) * TG3_RX_JMB_RING_SIZE(tp))
6463 static void tg3_rx_data_free(struct tg3 *tp, struct ring_info *ri, u32 map_sz) in tg3_rx_data_free()
6494 struct ring_info *map; in tg3_alloc_rx_data()
6565 struct ring_info *src_map, *dest_map; in tg3_recycle_rx()
6649 struct ring_info *ri; in tg3_rx()
6907 cpycnt * sizeof(struct ring_info)); in tg3_rx_prodring_xfer()
6965 cpycnt * sizeof(struct ring_info)); in tg3_rx_prodring_xfer()
/drivers/net/ethernet/dec/tulip/
Dtulip.h395 struct ring_info { struct
409 struct ring_info tx_buffers[TX_RING_SIZE]; argument
411 struct ring_info rx_buffers[RX_RING_SIZE];
Dde2104x.c292 struct ring_info { struct
308 struct ring_info tx_skb[DE_TX_RING_SIZE]; argument
309 struct ring_info rx_skb[DE_RX_RING_SIZE];
1365 memset(&de->rx_skb, 0, sizeof(struct ring_info) * DE_RX_RING_SIZE); in de_clean_rings()
1366 memset(&de->tx_skb, 0, sizeof(struct ring_info) * DE_TX_RING_SIZE); in de_clean_rings()
/drivers/net/ethernet/alteon/
Dacenic.h591 struct ring_info { struct
617 struct ring_info rx_std_skbuff[RX_STD_RING_ENTRIES];
618 struct ring_info rx_mini_skbuff[RX_MINI_RING_ENTRIES];
619 struct ring_info rx_jumbo_skbuff[RX_JUMBO_RING_ENTRIES];
Dacenic.c640 struct ring_info *ringp; in acenic_remove_one()
660 struct ring_info *ringp; in acenic_remove_one()
679 struct ring_info *ringp; in acenic_remove_one()
1944 struct ring_info *rip; in ace_rx_int()
/drivers/net/ethernet/neterion/
Ds2io.h691 struct ring_info { struct
806 struct ring_info rings[MAX_RX_RINGS];
1083 static int rx_intr_handler(struct ring_info *ring_data, int budget);
1092 static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp);
1124 static int s2io_club_tcp_session(struct ring_info *ring_data, u8 *buffer,
Ds2io.c715 struct ring_info *ring = &mac_control->rings[i]; in init_shared_mem()
735 struct ring_info *ring = &mac_control->rings[i]; in init_shared_mem()
808 struct ring_info *ring = &mac_control->rings[i]; in init_shared_mem()
952 struct ring_info *ring = &mac_control->rings[i]; in free_shared_mem()
973 struct ring_info *ring = &mac_control->rings[i]; in free_shared_mem()
2231 struct ring_info *ring = &mac_control->rings[i]; in start_nic()
2459 static int fill_rx_buffers(struct s2io_nic *nic, struct ring_info *ring, in fill_rx_buffers()
2740 struct ring_info *ring = &mac_control->rings[i]; in free_rx_buffers()
2755 static int s2io_chk_rx_buffers(struct s2io_nic *nic, struct ring_info *ring) in s2io_chk_rx_buffers()
2779 struct ring_info *ring = container_of(napi, struct ring_info, napi); in s2io_poll_msix()
[all …]
/drivers/net/hyperv/
Dnetvsc.c430 struct hv_ring_buffer_info *ring_info) in hv_ringbuf_avail_percent() argument
434 hv_get_ringbuffer_availbytes(ring_info, &avail_read, &avail_write); in hv_ringbuf_avail_percent()
436 return avail_write * 100 / ring_info->ring_datasize; in hv_ringbuf_avail_percent()
/drivers/net/ethernet/realtek/
Dr8169.c687 struct ring_info { struct
747 struct ring_info tx_skb[NUM_TX_DESC]; /* Tx data buffers */
5729 memset(tp->tx_skb, 0x0, NUM_TX_DESC * sizeof(struct ring_info)); in rtl8169_init_ring()
5735 static void rtl8169_unmap_tx_skb(struct device *d, struct ring_info *tx_skb, in rtl8169_unmap_tx_skb()
5755 struct ring_info *tx_skb = tp->tx_skb + entry; in rtl8169_tx_clear_range()
6058 struct ring_info *tx_skb = tp->tx_skb + entry; in rtl_tx()