Lines Matching refs:gd
79 struct gdma_dev *gd = apc->ac->gdma_dev; in mana_map_skb() local
86 gc = gd->gdma_context; in mana_map_skb()
97 tp->wqe_req.sgl[0].mem_key = gd->gpa_mkey; in mana_map_skb()
112 tp->wqe_req.sgl[i + 1].mem_key = gd->gpa_mkey; in mana_map_skb()
133 struct gdma_dev *gd = apc->ac->gdma_dev; in mana_start_xmit() local
266 mana_gd_wq_ring_doorbell(gd->gdma_context, gdma_sq); in mana_start_xmit()
722 struct gdma_dev *gd = ac->gdma_dev; in mana_create_eq() local
723 struct gdma_context *gc = gd->gdma_context; in mana_create_eq()
741 err = mana_gd_create_mana_eq(gd, &spec, &ac->eqs[i].eq); in mana_create_eq()
1114 struct gdma_dev *gd = apc->ac->gdma_dev; in mana_deinit_cq() local
1119 mana_gd_destroy_queue(gd->gdma_context, cq->gdma_cq); in mana_deinit_cq()
1124 struct gdma_dev *gd = apc->ac->gdma_dev; in mana_deinit_txq() local
1129 mana_gd_destroy_queue(gd->gdma_context, txq->gdma_sq); in mana_deinit_txq()
1161 struct gdma_dev *gd = ac->gdma_dev; in mana_create_txq() local
1189 gc = gd->gdma_context; in mana_create_txq()
1207 err = mana_gd_create_mana_wq_cq(gd, &spec, &txq->gdma_sq); in mana_create_txq()
1224 err = mana_gd_create_mana_wq_cq(gd, &spec, &cq->gdma_cq); in mana_create_txq()
1397 struct gdma_dev *gd = apc->ac->gdma_dev; in mana_create_rxq() local
1407 gc = gd->gdma_context; in mana_create_rxq()
1432 err = mana_gd_create_mana_wq_cq(gd, &spec, &rxq->gdma_rq); in mana_create_rxq()
1448 err = mana_gd_create_mana_wq_cq(gd, &spec, &cq->gdma_cq); in mana_create_rxq()
1550 struct gdma_dev *gd = apc->ac->gdma_dev; in mana_create_vport() local
1555 err = mana_cfg_vport(apc, gd->pdid, gd->doorbell); in mana_create_vport()
1831 int mana_probe(struct gdma_dev *gd, bool resuming) in mana_probe() argument
1833 struct gdma_context *gc = gd->gdma_context; in mana_probe()
1834 struct mana_context *ac = gd->driver_data; in mana_probe()
1844 err = mana_gd_register_device(gd); in mana_probe()
1853 ac->gdma_dev = gd; in mana_probe()
1854 gd->driver_data = ac; in mana_probe()
1900 mana_remove(gd, false); in mana_probe()
1905 void mana_remove(struct gdma_dev *gd, bool suspending) in mana_remove() argument
1907 struct gdma_context *gc = gd->gdma_context; in mana_remove()
1908 struct mana_context *ac = gd->driver_data; in mana_remove()
1948 mana_gd_deregister_device(gd); in mana_remove()
1953 gd->driver_data = NULL; in mana_remove()
1954 gd->gdma_context = NULL; in mana_remove()