Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/infiniband/hw/bnxt_re/
Dqplib_res.c473 struct bnxt_qplib_sgid_tbl *sgid_tbl) in bnxt_qplib_free_sgid_tbl() argument
475 kfree(sgid_tbl->tbl); in bnxt_qplib_free_sgid_tbl()
476 kfree(sgid_tbl->hw_id); in bnxt_qplib_free_sgid_tbl()
477 kfree(sgid_tbl->ctx); in bnxt_qplib_free_sgid_tbl()
478 kfree(sgid_tbl->vlan); in bnxt_qplib_free_sgid_tbl()
479 sgid_tbl->tbl = NULL; in bnxt_qplib_free_sgid_tbl()
480 sgid_tbl->hw_id = NULL; in bnxt_qplib_free_sgid_tbl()
481 sgid_tbl->ctx = NULL; in bnxt_qplib_free_sgid_tbl()
482 sgid_tbl->vlan = NULL; in bnxt_qplib_free_sgid_tbl()
483 sgid_tbl->max = 0; in bnxt_qplib_free_sgid_tbl()
[all …]
Dqplib_sp.c207 struct bnxt_qplib_sgid_tbl *sgid_tbl, int index, in bnxt_qplib_get_sgid() argument
210 if (index >= sgid_tbl->max) { in bnxt_qplib_get_sgid()
213 index, sgid_tbl->max); in bnxt_qplib_get_sgid()
216 memcpy(gid, &sgid_tbl->tbl[index].gid, sizeof(*gid)); in bnxt_qplib_get_sgid()
220 int bnxt_qplib_del_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl, in bnxt_qplib_del_sgid() argument
223 struct bnxt_qplib_res *res = to_bnxt_qplib(sgid_tbl, in bnxt_qplib_del_sgid()
225 sgid_tbl); in bnxt_qplib_del_sgid()
229 if (!sgid_tbl) { in bnxt_qplib_del_sgid()
234 if (!sgid_tbl->active) { in bnxt_qplib_del_sgid()
238 for (index = 0; index < sgid_tbl->max; index++) { in bnxt_qplib_del_sgid()
[all …]
Dqplib_sp.h226 struct bnxt_qplib_sgid_tbl *sgid_tbl, int index,
228 int bnxt_qplib_del_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
230 int bnxt_qplib_add_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
233 int bnxt_qplib_update_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
Dmain.c1137 struct bnxt_qplib_sgid_tbl *sgid_tbl = &rdev->qplib_res.sgid_tbl; in bnxt_re_update_gid() local
1145 if (!sgid_tbl) { in bnxt_re_update_gid()
1150 for (index = 0; index < sgid_tbl->active; index++) { in bnxt_re_update_gid()
1151 gid_idx = sgid_tbl->hw_id[index]; in bnxt_re_update_gid()
1153 if (!memcmp(&sgid_tbl->tbl[index], &bnxt_qplib_gid_zero, in bnxt_re_update_gid()
1159 if (sgid_tbl->vlan[index]) in bnxt_re_update_gid()
1162 memcpy(&gid, &sgid_tbl->tbl[index], sizeof(gid)); in bnxt_re_update_gid()
1164 rc = bnxt_qplib_update_sgid(sgid_tbl, &gid, gid_idx, in bnxt_re_update_gid()
Dib_verbs.c299 &rdev->qplib_res.sgid_tbl, index, in bnxt_re_query_gid()
309 struct bnxt_qplib_sgid_tbl *sgid_tbl = &rdev->qplib_res.sgid_tbl; in bnxt_re_del_gid() local
318 if (sgid_tbl && sgid_tbl->active) { in bnxt_re_del_gid()
319 if (ctx->idx >= sgid_tbl->max) in bnxt_re_del_gid()
321 gid_to_del = &sgid_tbl->tbl[ctx->idx].gid; in bnxt_re_del_gid()
322 vlan_id = sgid_tbl->tbl[ctx->idx].vlan_id; in bnxt_re_del_gid()
340 rc = bnxt_qplib_del_sgid(sgid_tbl, gid_to_del, in bnxt_re_del_gid()
346 ctx_tbl = sgid_tbl->ctx; in bnxt_re_del_gid()
364 struct bnxt_qplib_sgid_tbl *sgid_tbl = &rdev->qplib_res.sgid_tbl; in bnxt_re_add_gid() local
370 rc = bnxt_qplib_add_sgid(sgid_tbl, (struct bnxt_qplib_gid *)&attr->gid, in bnxt_re_add_gid()
[all …]
Dqplib_res.h198 struct bnxt_qplib_sgid_tbl sgid_tbl; member
Dqplib_fp.c1229 req.sgid_index = cpu_to_le16(res->sgid_tbl.hw_id in bnxt_qplib_modify_qp()
1331 for (i = 0; i < res->sgid_tbl.max; i++) { in bnxt_qplib_query_qp()
1332 if (res->sgid_tbl.hw_id[i] == le16_to_cpu(sb->sgid_index)) { in bnxt_qplib_query_qp()
1337 if (i == res->sgid_tbl.max) in bnxt_qplib_query_qp()
/Linux-v5.4/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.4/drivers/infiniband/hw/qedr/
Dmain.c344 kfree(dev->sgid_tbl); in qedr_free_resources()
354 dev->sgid_tbl = kcalloc(QEDR_MAX_SGID, sizeof(union ib_gid), in qedr_alloc_resources()
356 if (!dev->sgid_tbl) in qedr_alloc_resources()
426 kfree(dev->sgid_tbl); in qedr_alloc_resources()
979 union ib_gid *sgid = &dev->sgid_tbl[0]; in qedr_mac_address_change()
Dqedr.h150 union ib_gid *sgid_tbl; member