Home
last modified time | relevance | path

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

/drivers/hv/
Dring_buffer.c72 hv_get_next_write_location(struct hv_ring_buffer_info *ring_info) in hv_get_next_write_location() argument
74 u32 next = ring_info->ring_buffer->write_index; in hv_get_next_write_location()
81 hv_set_next_write_location(struct hv_ring_buffer_info *ring_info, in hv_set_next_write_location() argument
84 ring_info->ring_buffer->write_index = next_write_location; in hv_set_next_write_location()
89 hv_set_next_read_location(struct hv_ring_buffer_info *ring_info, in hv_set_next_read_location() argument
92 ring_info->ring_buffer->read_index = next_read_location; in hv_set_next_read_location()
93 ring_info->priv_read_index = next_read_location; in hv_set_next_read_location()
98 hv_get_ring_buffersize(const struct hv_ring_buffer_info *ring_info) in hv_get_ring_buffersize() argument
100 return ring_info->ring_datasize; in hv_get_ring_buffersize()
105 hv_get_ring_bufferindices(struct hv_ring_buffer_info *ring_info) in hv_get_ring_bufferindices() argument
[all …]
Dhyperv_vmbus.h177 int hv_ringbuffer_init(struct hv_ring_buffer_info *ring_info,
180 void hv_ringbuffer_cleanup(struct hv_ring_buffer_info *ring_info);
/drivers/net/ethernet/pasemi/
Dpasemi_mac.h31 struct pasemi_mac_buffer *ring_info; member
44 struct pasemi_mac_buffer *ring_info; member
95 #define TX_DESC_INFO(tx, num) ((tx)->ring_info[(num) & (TX_RING_SIZE-1)])
97 #define RX_DESC_INFO(rx, num) ((rx)->ring_info[(num) & (RX_RING_SIZE-1)])
Dpasemi_mac.c382 ring->ring_info = kcalloc(RX_RING_SIZE, in pasemi_mac_setup_rx_resources()
386 if (!ring->ring_info) in pasemi_mac_setup_rx_resources()
437 kfree(ring->ring_info); in pasemi_mac_setup_rx_resources()
466 ring->ring_info = kcalloc(TX_RING_SIZE, in pasemi_mac_setup_tx_resources()
469 if (!ring->ring_info) in pasemi_mac_setup_tx_resources()
500 kfree(ring->ring_info); in pasemi_mac_setup_tx_resources()
524 info = &txring->ring_info[(i+1) & (TX_RING_SIZE-1)]; in pasemi_mac_free_tx_resources()
528 dmas[j] = txring->ring_info[(i+1+j) & in pasemi_mac_free_tx_resources()
537 kfree(txring->ring_info); in pasemi_mac_free_tx_resources()
572 kfree(rx_ring(mac)->ring_info); in pasemi_mac_free_rx_resources()
[all …]
/drivers/net/ethernet/broadcom/
Db44.h281 struct ring_info { struct
368 struct ring_info *rx_buffers;
369 struct ring_info *tx_buffers;
Db44.c622 struct ring_info *rp = &bp->tx_buffers[cons]; in b44_tx()
656 struct ring_info *src_map, *map; in b44_alloc_rx_skb()
731 struct ring_info *src_map, *dest_map; in b44_recycle_rx()
785 struct ring_info *rp = &bp->rx_buffers[cons]; in b44_rx()
1091 struct ring_info *rp; in b44_free_rings()
1189 size = B44_RX_RING_SIZE * sizeof(struct ring_info); in b44_alloc_consistent()
1194 size = B44_TX_RING_SIZE * sizeof(struct ring_info); in b44_alloc_consistent()
Dtg3.h2862 struct ring_info { struct
2994 struct ring_info *rx_std_buffers;
2995 struct ring_info *rx_jmb_buffers;
Dtg3.c176 (sizeof(struct ring_info) * TG3_RX_STD_RING_SIZE(tp))
179 (sizeof(struct ring_info) * TG3_RX_JMB_RING_SIZE(tp))
6656 static void tg3_rx_data_free(struct tg3 *tp, struct ring_info *ri, u32 map_sz) in tg3_rx_data_free()
6687 struct ring_info *map; in tg3_alloc_rx_data()
6758 struct ring_info *src_map, *dest_map; in tg3_recycle_rx()
6842 struct ring_info *ri; in tg3_rx()
7099 cpycnt * sizeof(struct ring_info)); in tg3_rx_prodring_xfer()
7157 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.c286 struct ring_info { struct
302 struct ring_info tx_skb[DE_TX_RING_SIZE]; argument
303 struct ring_info rx_skb[DE_RX_RING_SIZE];
1369 memset(&de->rx_skb, 0, sizeof(struct ring_info) * DE_RX_RING_SIZE); in de_clean_rings()
1370 memset(&de->tx_skb, 0, sizeof(struct ring_info) * DE_TX_RING_SIZE); in de_clean_rings()
/drivers/net/ethernet/alteon/
Dacenic.h592 struct ring_info { struct
618 struct ring_info rx_std_skbuff[RX_STD_RING_ENTRIES];
619 struct ring_info rx_mini_skbuff[RX_MINI_RING_ENTRIES];
620 struct ring_info rx_jumbo_skbuff[RX_JUMBO_RING_ENTRIES];
Dacenic.c641 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()
1927 struct ring_info *rip; in ace_rx_int()
/drivers/net/ethernet/neterion/
Ds2io.h692 struct ring_info { struct
807 struct ring_info rings[MAX_RX_RINGS];
1063 static int rx_intr_handler(struct ring_info *ring_data, int budget);
1070 static int rx_osm_handler(struct ring_info *ring_data, struct RxD_t * rxdp);
1102 static int s2io_club_tcp_session(struct ring_info *ring_data, u8 *buffer,
Ds2io.c699 struct ring_info *ring = &mac_control->rings[i]; in init_shared_mem()
719 struct ring_info *ring = &mac_control->rings[i]; in init_shared_mem()
791 struct ring_info *ring = &mac_control->rings[i]; in init_shared_mem()
935 struct ring_info *ring = &mac_control->rings[i]; in free_shared_mem()
956 struct ring_info *ring = &mac_control->rings[i]; in free_shared_mem()
2218 struct ring_info *ring = &mac_control->rings[i]; in start_nic()
2451 static int fill_rx_buffers(struct s2io_nic *nic, struct ring_info *ring, in fill_rx_buffers()
2721 struct ring_info *ring = &mac_control->rings[i]; in free_rx_buffers()
2736 static int s2io_chk_rx_buffers(struct s2io_nic *nic, struct ring_info *ring) in s2io_chk_rx_buffers()
2760 struct ring_info *ring = container_of(napi, struct ring_info, napi); in s2io_poll_msix()
[all …]
/drivers/net/ethernet/realtek/
Dr8169_main.c554 struct ring_info { struct
614 struct ring_info tx_skb[NUM_TX_DESC]; /* Tx data buffers */
3951 struct ring_info *tx_skb = tp->tx_skb + entry; in rtl8169_unmap_tx_skb()
3967 struct ring_info *tx_skb = tp->tx_skb + entry; in rtl8169_tx_clear_range()