Home
last modified time | relevance | path

Searched refs:ring_pair_cb (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_rcb.c246 static void hns_rcb_ring_init(struct ring_pair_cb *ring_pair, int ring_type) in hns_rcb_ring_init()
284 void hns_rcb_init_hw(struct ring_pair_cb *ring) in hns_rcb_init_hw()
444 struct ring_pair_cb *ring_pair_cb; in hns_rcb_ring_get_cfg() local
448 ring_pair_cb = container_of(q, struct ring_pair_cb, q); in hns_rcb_ring_get_cfg()
449 is_ver1 = AE_IS_VER1(ring_pair_cb->rcb_common->dsaf_dev->dsaf_ver); in hns_rcb_ring_get_cfg()
452 ring->io_base = ring_pair_cb->q.io_base; in hns_rcb_ring_get_cfg()
457 ring->io_base = ring_pair_cb->q.io_base + in hns_rcb_ring_get_cfg()
464 rcb_common = ring_pair_cb->rcb_common; in hns_rcb_ring_get_cfg()
470 ring->irq = ring_pair_cb->virq[irq_idx]; in hns_rcb_ring_get_cfg()
482 static void hns_rcb_ring_pair_get_cfg(struct ring_pair_cb *ring_pair_cb) in hns_rcb_ring_pair_get_cfg() argument
[all …]
Dhns_ae_adapt.c54 static struct ring_pair_cb *hns_ae_get_base_ring_pair( in hns_ae_get_base_ring_pair()
61 return &rcb_comm->ring_pair_cb[port * q_num * vf_num]; in hns_ae_get_base_ring_pair()
64 static struct ring_pair_cb *hns_ae_get_ring_pair(struct hnae_queue *q) in hns_ae_get_ring_pair()
66 return container_of(q, struct ring_pair_cb, q); in hns_ae_get_ring_pair()
77 struct ring_pair_cb *ring_pair_cb; in hns_ae_get_handle() local
82 ring_pair_cb = hns_ae_get_base_ring_pair(dsaf_dev, port_id); in hns_ae_get_handle()
103 if (!ring_pair_cb->used_by_vf) in hns_ae_get_handle()
105 ring_pair_cb += qnum_per_vf; in hns_ae_get_handle()
115 ae_handle->qs[i] = &ring_pair_cb->q; in hns_ae_get_handle()
119 ring_pair_cb->used_by_vf = 1; in hns_ae_get_handle()
[all …]
Dhns_dsaf_rcb.h84 struct ring_pair_cb { struct
111 struct ring_pair_cb ring_pair_cb[0]; member
132 void hns_rcb_init_hw(struct ring_pair_cb *ring);