Home
last modified time | relevance | path

Searched refs:sgid_tbl (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.10/drivers/infiniband/hw/bnxt_re/
Dqplib_res.c591 struct bnxt_qplib_sgid_tbl *sgid_tbl) in bnxt_qplib_free_sgid_tbl() argument
593 kfree(sgid_tbl->tbl); in bnxt_qplib_free_sgid_tbl()
594 kfree(sgid_tbl->hw_id); in bnxt_qplib_free_sgid_tbl()
595 kfree(sgid_tbl->ctx); in bnxt_qplib_free_sgid_tbl()
596 kfree(sgid_tbl->vlan); in bnxt_qplib_free_sgid_tbl()
597 sgid_tbl->tbl = NULL; in bnxt_qplib_free_sgid_tbl()
598 sgid_tbl->hw_id = NULL; in bnxt_qplib_free_sgid_tbl()
599 sgid_tbl->ctx = NULL; in bnxt_qplib_free_sgid_tbl()
600 sgid_tbl->vlan = NULL; in bnxt_qplib_free_sgid_tbl()
601 sgid_tbl->max = 0; in bnxt_qplib_free_sgid_tbl()
[all …]
Dqplib_sp.c204 struct bnxt_qplib_sgid_tbl *sgid_tbl, int index, in bnxt_qplib_get_sgid() argument
207 if (index >= sgid_tbl->max) { in bnxt_qplib_get_sgid()
210 index, sgid_tbl->max); in bnxt_qplib_get_sgid()
213 memcpy(gid, &sgid_tbl->tbl[index].gid, sizeof(*gid)); in bnxt_qplib_get_sgid()
217 int bnxt_qplib_del_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl, in bnxt_qplib_del_sgid() argument
220 struct bnxt_qplib_res *res = to_bnxt_qplib(sgid_tbl, in bnxt_qplib_del_sgid()
222 sgid_tbl); in bnxt_qplib_del_sgid()
226 if (!sgid_tbl) { in bnxt_qplib_del_sgid()
231 if (!sgid_tbl->active) { in bnxt_qplib_del_sgid()
235 for (index = 0; index < sgid_tbl->max; index++) { in bnxt_qplib_del_sgid()
[all …]
Dqplib_sp.h225 struct bnxt_qplib_sgid_tbl *sgid_tbl, int index,
227 int bnxt_qplib_del_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
229 int bnxt_qplib_add_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
232 int bnxt_qplib_update_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
Dmain.c1178 struct bnxt_qplib_sgid_tbl *sgid_tbl = &rdev->qplib_res.sgid_tbl; in bnxt_re_update_gid() local
1186 if (!sgid_tbl) { in bnxt_re_update_gid()
1192 for (index = 0; index < sgid_tbl->active; index++) { in bnxt_re_update_gid()
1193 gid_idx = sgid_tbl->hw_id[index]; in bnxt_re_update_gid()
1195 if (!memcmp(&sgid_tbl->tbl[index], &bnxt_qplib_gid_zero, in bnxt_re_update_gid()
1201 if (sgid_tbl->vlan[index]) in bnxt_re_update_gid()
1204 memcpy(&gid, &sgid_tbl->tbl[index], sizeof(gid)); in bnxt_re_update_gid()
1206 rc = bnxt_qplib_update_sgid(sgid_tbl, &gid, gid_idx, in bnxt_re_update_gid()
Dib_verbs.c278 &rdev->qplib_res.sgid_tbl, index, in bnxt_re_query_gid()
288 struct bnxt_qplib_sgid_tbl *sgid_tbl = &rdev->qplib_res.sgid_tbl; in bnxt_re_del_gid() local
297 if (sgid_tbl && sgid_tbl->active) { in bnxt_re_del_gid()
298 if (ctx->idx >= sgid_tbl->max) in bnxt_re_del_gid()
300 gid_to_del = &sgid_tbl->tbl[ctx->idx].gid; in bnxt_re_del_gid()
301 vlan_id = sgid_tbl->tbl[ctx->idx].vlan_id; in bnxt_re_del_gid()
319 rc = bnxt_qplib_del_sgid(sgid_tbl, gid_to_del, in bnxt_re_del_gid()
325 ctx_tbl = sgid_tbl->ctx; in bnxt_re_del_gid()
343 struct bnxt_qplib_sgid_tbl *sgid_tbl = &rdev->qplib_res.sgid_tbl; in bnxt_re_add_gid() local
349 rc = bnxt_qplib_add_sgid(sgid_tbl, (struct bnxt_qplib_gid *)&attr->gid, in bnxt_re_add_gid()
[all …]
Dqplib_res.h265 struct bnxt_qplib_sgid_tbl sgid_tbl; member
Dqplib_fp.c1273 req.sgid_index = cpu_to_le16(res->sgid_tbl.hw_id in bnxt_qplib_modify_qp()
1375 for (i = 0; i < res->sgid_tbl.max; i++) { in bnxt_qplib_query_qp()
1376 if (res->sgid_tbl.hw_id[i] == le16_to_cpu(sb->sgid_index)) { in bnxt_qplib_query_qp()
1381 if (i == res->sgid_tbl.max) in bnxt_qplib_query_qp()
/Linux-v5.10/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_main.c619 if (!dev->sgid_tbl) { in pvrdma_add_gid_at_index()
638 memcpy(&dev->sgid_tbl[index], gid, sizeof(*gid)); in pvrdma_add_gid_at_index()
658 if (!dev->sgid_tbl) { in pvrdma_del_gid_at_index()
665 memcpy(cmd_dest->dest_gid, &dev->sgid_tbl[index], 16); in pvrdma_del_gid_at_index()
674 memset(&dev->sgid_tbl[index], 0, 16); in pvrdma_del_gid_at_index()
1010 dev->sgid_tbl = kcalloc(dev->dsr->caps.gid_tbl_len, in pvrdma_pci_probe()
1012 if (!dev->sgid_tbl) { in pvrdma_pci_probe()
1055 kfree(dev->sgid_tbl); in pvrdma_pci_probe()
1130 kfree(dev->sgid_tbl); in pvrdma_pci_remove()
Dpvrdma.h223 union ib_gid *sgid_tbl; member
Dpvrdma_verbs.c194 memcpy(gid, &dev->sgid_tbl[index], sizeof(union ib_gid)); in pvrdma_query_gid()
/Linux-v5.10/drivers/infiniband/hw/qedr/
Dmain.c351 kfree(dev->sgid_tbl); in qedr_free_resources()
366 dev->sgid_tbl = kcalloc(QEDR_MAX_SGID, sizeof(union ib_gid), in qedr_alloc_resources()
368 if (!dev->sgid_tbl) in qedr_alloc_resources()
436 kfree(dev->sgid_tbl); in qedr_alloc_resources()
1000 union ib_gid *sgid = &dev->sgid_tbl[0]; in qedr_mac_address_change()
Dqedr.h150 union ib_gid *sgid_tbl; member