Searched refs:hnae_ring (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns/ |
D | hnae.h | 266 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 …]
|
D | hnae.c | 36 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()
|
D | hns_enet.h | 34 struct hnae_ring *ring; 45 void (*fill_desc)(struct hnae_ring *ring, void *priv, 49 int *bnum, struct hnae_ring *ring);
|
D | hns_enet.c | 35 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() 204 static void unfill_desc(struct hnae_ring *ring) in unfill_desc() 210 struct sk_buff **out_skb, int *bnum, struct hnae_ring *ring) in hns_nic_maybe_stop_tx() 239 struct sk_buff **out_skb, int *bnum, struct hnae_ring *ring) in hns_nic_maybe_stop_tso() 278 static void fill_tso_desc(struct hnae_ring *ring, void *priv, in fill_tso_desc() 308 struct hnae_ring *ring = ring_data->ring; in hns_nic_net_xmit_hw() 408 struct hnae_ring *ring, int pull_len, in hns_nic_reuse_page() 540 struct hnae_ring *ring = ring_data->ring; in hns_nic_poll_rx_skb() [all …]
|
D | hns_dsaf_rcb.c | 250 struct hnae_ring *ring = in hns_rcb_ring_init() 443 struct hnae_ring *ring; in hns_rcb_ring_get_cfg()
|
D | hns_ae_adapt.c | 389 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()
|
D | hns_ethtool.c | 375 struct hnae_ring *ring; in __lb_other_process()
|