Home
last modified time | relevance | path

Searched refs:hnae_ring (Results 1 – 7 of 7) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/hisilicon/hns/
Dhnae.h221 struct hnae_ring { struct
265 static inline int ring_dist(struct hnae_ring *ring, int begin, int end) in ring_dist() argument
273 static inline int ring_space(struct hnae_ring *ring) in ring_space()
279 static inline int is_ring_empty(struct hnae_ring *ring) in is_ring_empty()
295 int (*alloc_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
296 void (*free_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
297 int (*map_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
298 void (*unmap_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
305 struct hnae_ring rx_ring, tx_ring;
413 void (*toggle_ring_irq)(struct hnae_ring *ring, u32 val);
[all …]
Dhnae.c40 static int hnae_alloc_buffer(struct hnae_ring *ring, struct hnae_desc_cb *cb) in hnae_alloc_buffer()
58 static void hnae_free_buffer(struct hnae_ring *ring, struct hnae_desc_cb *cb) in hnae_free_buffer()
67 static int hnae_map_buffer(struct hnae_ring *ring, struct hnae_desc_cb *cb) in hnae_map_buffer()
78 static void hnae_unmap_buffer(struct hnae_ring *ring, struct hnae_desc_cb *cb) in hnae_unmap_buffer()
117 static void hnae_free_buffers(struct hnae_ring *ring) in hnae_free_buffers()
126 static int hnae_alloc_buffers(struct hnae_ring *ring) in hnae_alloc_buffers()
145 static void hnae_free_desc(struct hnae_ring *ring) in hnae_free_desc()
157 static int hnae_alloc_desc(struct hnae_ring *ring) in hnae_alloc_desc()
178 static void hnae_fini_ring(struct hnae_ring *ring) in hnae_fini_ring()
189 hnae_init_ring(struct hnae_queue *q, struct hnae_ring *ring, int flags) in hnae_init_ring()
Dhns_enet.c37 static void fill_desc(struct hnae_ring *ring, void *priv, in fill_desc()
98 static void unfill_desc(struct hnae_ring *ring) in unfill_desc()
109 struct hnae_ring *ring = ring_data->ring; in hns_nic_net_xmit_hw()
335 struct hnae_ring *ring = ring_data->ring; in hns_nic_poll_rx_skb()
466 struct hnae_ring *ring = ring_data->ring; in hns_nic_alloc_rx_buffers()
506 struct hnae_ring *ring = ring_data->ring; in hns_nic_rx_poll_one()
562 struct hnae_ring *ring = ring_data->ring; in hns_nic_rx_fini_pro()
576 static inline void hns_nic_reclaim_one_desc(struct hnae_ring *ring, in hns_nic_reclaim_one_desc()
589 static int is_valid_clean_head(struct hnae_ring *ring, int h) in is_valid_clean_head()
618 struct hnae_ring *ring = ring_data->ring; in hns_nic_tx_poll_one()
[all …]
Dhns_enet.h35 struct hnae_ring *ring;
Dhns_dsaf_rcb.c187 struct hnae_ring *ring = in hns_rcb_ring_init()
386 struct hnae_ring *ring; in hns_rcb_ring_get_cfg()
Dhns_ae_adapt.c328 void hns_ae_toggle_ring_irq(struct hnae_ring *ring, u32 mask) in hns_ae_toggle_ring_irq()
Dhns_ethtool.c399 struct hnae_ring *ring; in __lb_other_process()