Home
last modified time | relevance | path

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

/drivers/net/ethernet/hisilicon/hns/
Dhnae.h266 struct hnae_ring { struct
316 static inline int ring_dist(struct hnae_ring *ring, int begin, int end) in ring_dist() argument
324 static inline int ring_space(struct hnae_ring *ring) in ring_space()
330 static inline int is_ring_empty(struct hnae_ring *ring) in is_ring_empty()
346 int (*alloc_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
347 void (*free_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
348 int (*map_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
349 void (*unmap_buffer)(struct hnae_ring *ring, struct hnae_desc_cb *cb);
356 struct hnae_ring rx_ring ____cacheline_internodealigned_in_smp;
357 struct hnae_ring tx_ring ____cacheline_internodealigned_in_smp;
[all …]
Dhnae.c36 static int hnae_alloc_buffer(struct hnae_ring *ring, struct hnae_desc_cb *cb) in hnae_alloc_buffer()
54 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()
119 static void hnae_free_buffers(struct hnae_ring *ring) in hnae_free_buffers()
128 static int hnae_alloc_buffers(struct hnae_ring *ring) in hnae_alloc_buffers()
147 static void hnae_free_desc(struct hnae_ring *ring) in hnae_free_desc()
158 static int hnae_alloc_desc(struct hnae_ring *ring) in hnae_alloc_desc()
179 static void hnae_fini_ring(struct hnae_ring *ring) in hnae_fini_ring()
193 hnae_init_ring(struct hnae_queue *q, struct hnae_ring *ring, int flags) in hnae_init_ring()
Dhns_enet.h34 struct hnae_ring *ring;
45 void (*fill_desc)(struct hnae_ring *ring, void *priv,
50 int *bnum, struct hnae_ring *ring);
Dhns_enet.c35 static void fill_v2_desc_hw(struct hnae_ring *ring, void *priv, int size, in fill_v2_desc_hw()
128 static void fill_v2_desc(struct hnae_ring *ring, void *priv, in fill_v2_desc()
143 static void fill_desc(struct hnae_ring *ring, void *priv, in fill_desc()
205 static void unfill_desc(struct hnae_ring *ring) in unfill_desc()
211 struct sk_buff **out_skb, int *bnum, struct hnae_ring *ring) in hns_nic_maybe_stop_tx()
240 struct sk_buff **out_skb, int *bnum, struct hnae_ring *ring) in hns_nic_maybe_stop_tso()
280 struct hnae_ring *ring) in hns_nic_maybe_stop_tx_v2()
288 static void fill_tso_desc(struct hnae_ring *ring, void *priv, in fill_tso_desc()
313 static void fill_desc_v2(struct hnae_ring *ring, void *priv, in fill_desc_v2()
331 struct hnae_ring *ring = ring_data->ring; in hns_nic_net_xmit_hw()
[all …]
Dhns_dsaf_rcb.c250 struct hnae_ring *ring = in hns_rcb_ring_init()
443 struct hnae_ring *ring; in hns_rcb_ring_get_cfg()
Dhns_ae_adapt.c389 static void hns_ae_toggle_ring_irq(struct hnae_ring *ring, u32 mask) in hns_ae_toggle_ring_irq()
401 static void hns_aev2_toggle_ring_irq(struct hnae_ring *ring, u32 mask) in hns_aev2_toggle_ring_irq()
Dhns_ethtool.c375 struct hnae_ring *ring; in __lb_other_process()