Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_rcb.c243 static void hns_rcb_ring_init(struct ring_pair_cb *ring_pair, int ring_type) in hns_rcb_ring_init()
281 void hns_rcb_init_hw(struct ring_pair_cb *ring) in hns_rcb_init_hw()
441 struct ring_pair_cb *ring_pair_cb; in hns_rcb_ring_get_cfg() local
445 ring_pair_cb = container_of(q, struct ring_pair_cb, q); in hns_rcb_ring_get_cfg()
446 is_ver1 = AE_IS_VER1(ring_pair_cb->rcb_common->dsaf_dev->dsaf_ver); in hns_rcb_ring_get_cfg()
449 ring->io_base = ring_pair_cb->q.io_base; in hns_rcb_ring_get_cfg()
454 ring->io_base = ring_pair_cb->q.io_base + in hns_rcb_ring_get_cfg()
461 rcb_common = ring_pair_cb->rcb_common; in hns_rcb_ring_get_cfg()
467 ring->irq = ring_pair_cb->virq[irq_idx]; in hns_rcb_ring_get_cfg()
479 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.c52 static struct ring_pair_cb *hns_ae_get_base_ring_pair( in hns_ae_get_base_ring_pair()
59 return &rcb_comm->ring_pair_cb[port * q_num * vf_num]; in hns_ae_get_base_ring_pair()
62 static struct ring_pair_cb *hns_ae_get_ring_pair(struct hnae_queue *q) in hns_ae_get_ring_pair()
64 return container_of(q, struct ring_pair_cb, q); in hns_ae_get_ring_pair()
75 struct ring_pair_cb *ring_pair_cb; in hns_ae_get_handle() local
80 ring_pair_cb = hns_ae_get_base_ring_pair(dsaf_dev, port_id); in hns_ae_get_handle()
101 if (!ring_pair_cb->used_by_vf) in hns_ae_get_handle()
103 ring_pair_cb += qnum_per_vf; in hns_ae_get_handle()
112 ae_handle->qs[i] = &ring_pair_cb->q; in hns_ae_get_handle()
116 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[] __counted_by(ring_num); argument
132 void hns_rcb_init_hw(struct ring_pair_cb *ring);