/linux-6.6.21/drivers/infiniband/hw/bnxt_re/ |
D | qplib_res.c | 568 struct bnxt_qplib_sgid_tbl *sgid_tbl) in bnxt_qplib_free_sgid_tbl() argument 570 kfree(sgid_tbl->tbl); in bnxt_qplib_free_sgid_tbl() 571 kfree(sgid_tbl->hw_id); in bnxt_qplib_free_sgid_tbl() 572 kfree(sgid_tbl->ctx); in bnxt_qplib_free_sgid_tbl() 573 kfree(sgid_tbl->vlan); in bnxt_qplib_free_sgid_tbl() 574 sgid_tbl->tbl = NULL; in bnxt_qplib_free_sgid_tbl() 575 sgid_tbl->hw_id = NULL; in bnxt_qplib_free_sgid_tbl() 576 sgid_tbl->ctx = NULL; in bnxt_qplib_free_sgid_tbl() 577 sgid_tbl->vlan = NULL; in bnxt_qplib_free_sgid_tbl() 578 sgid_tbl->max = 0; in bnxt_qplib_free_sgid_tbl() [all …]
|
D | qplib_sp.c | 215 struct bnxt_qplib_sgid_tbl *sgid_tbl, int index, in bnxt_qplib_get_sgid() argument 218 if (index >= sgid_tbl->max) { in bnxt_qplib_get_sgid() 221 index, sgid_tbl->max); in bnxt_qplib_get_sgid() 224 memcpy(gid, &sgid_tbl->tbl[index].gid, sizeof(*gid)); in bnxt_qplib_get_sgid() 228 int bnxt_qplib_del_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl, in bnxt_qplib_del_sgid() argument 231 struct bnxt_qplib_res *res = to_bnxt_qplib(sgid_tbl, in bnxt_qplib_del_sgid() 233 sgid_tbl); in bnxt_qplib_del_sgid() 238 if (!sgid_tbl->active) { in bnxt_qplib_del_sgid() 242 for (index = 0; index < sgid_tbl->max; index++) { in bnxt_qplib_del_sgid() 243 if (!memcmp(&sgid_tbl->tbl[index].gid, gid, sizeof(*gid)) && in bnxt_qplib_del_sgid() [all …]
|
D | qplib_sp.h | 314 struct bnxt_qplib_sgid_tbl *sgid_tbl, int index, 316 int bnxt_qplib_del_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl, 318 int bnxt_qplib_add_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl, 321 int bnxt_qplib_update_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
|
D | main.c | 1268 struct bnxt_qplib_sgid_tbl *sgid_tbl = &rdev->qplib_res.sgid_tbl; in bnxt_re_update_gid() local 1276 for (index = 0; index < sgid_tbl->active; index++) { in bnxt_re_update_gid() 1277 gid_idx = sgid_tbl->hw_id[index]; in bnxt_re_update_gid() 1279 if (!memcmp(&sgid_tbl->tbl[index], &bnxt_qplib_gid_zero, in bnxt_re_update_gid() 1285 if (sgid_tbl->vlan[index]) in bnxt_re_update_gid() 1288 memcpy(&gid, &sgid_tbl->tbl[index], sizeof(gid)); in bnxt_re_update_gid() 1290 rc = bnxt_qplib_update_sgid(sgid_tbl, &gid, gid_idx, in bnxt_re_update_gid()
|
D | ib_verbs.c | 292 &rdev->qplib_res.sgid_tbl, index, in bnxt_re_query_gid() 302 struct bnxt_qplib_sgid_tbl *sgid_tbl = &rdev->qplib_res.sgid_tbl; in bnxt_re_del_gid() local 311 if (sgid_tbl && sgid_tbl->active) { in bnxt_re_del_gid() 312 if (ctx->idx >= sgid_tbl->max) in bnxt_re_del_gid() 314 gid_to_del = &sgid_tbl->tbl[ctx->idx].gid; in bnxt_re_del_gid() 315 vlan_id = sgid_tbl->tbl[ctx->idx].vlan_id; in bnxt_re_del_gid() 333 rc = bnxt_qplib_del_sgid(sgid_tbl, gid_to_del, in bnxt_re_del_gid() 339 ctx_tbl = sgid_tbl->ctx; in bnxt_re_del_gid() 357 struct bnxt_qplib_sgid_tbl *sgid_tbl = &rdev->qplib_res.sgid_tbl; in bnxt_re_add_gid() local 363 rc = bnxt_qplib_add_sgid(sgid_tbl, (struct bnxt_qplib_gid *)&attr->gid, in bnxt_re_add_gid() [all …]
|
D | qplib_res.h | 282 struct bnxt_qplib_sgid_tbl sgid_tbl; member
|
D | qplib_fp.c | 1308 req.sgid_index = cpu_to_le16(res->sgid_tbl.hw_id in bnxt_qplib_modify_qp() 1414 for (i = 0; i < res->sgid_tbl.max; i++) { in bnxt_qplib_query_qp() 1415 if (res->sgid_tbl.hw_id[i] == le16_to_cpu(sb->sgid_index)) { in bnxt_qplib_query_qp() 1420 if (i == res->sgid_tbl.max) in bnxt_qplib_query_qp()
|
/linux-6.6.21/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_main.c | 591 if (!dev->sgid_tbl) { in pvrdma_add_gid_at_index() 610 memcpy(&dev->sgid_tbl[index], gid, sizeof(*gid)); in pvrdma_add_gid_at_index() 630 if (!dev->sgid_tbl) { in pvrdma_del_gid_at_index() 637 memcpy(cmd_dest->dest_gid, &dev->sgid_tbl[index], 16); in pvrdma_del_gid_at_index() 646 memset(&dev->sgid_tbl[index], 0, 16); in pvrdma_del_gid_at_index() 972 dev->sgid_tbl = kcalloc(dev->dsr->caps.gid_tbl_len, in pvrdma_pci_probe() 974 if (!dev->sgid_tbl) { in pvrdma_pci_probe() 1017 kfree(dev->sgid_tbl); in pvrdma_pci_probe() 1092 kfree(dev->sgid_tbl); in pvrdma_pci_remove()
|
D | pvrdma.h | 223 union ib_gid *sgid_tbl; member
|
D | pvrdma_verbs.c | 194 memcpy(gid, &dev->sgid_tbl[index], sizeof(union ib_gid)); in pvrdma_query_gid()
|
/linux-6.6.21/drivers/infiniband/hw/qedr/ |
D | main.c | 321 kfree(dev->sgid_tbl); in qedr_free_resources() 336 dev->sgid_tbl = kcalloc(QEDR_MAX_SGID, sizeof(union ib_gid), in qedr_alloc_resources() 338 if (!dev->sgid_tbl) in qedr_alloc_resources() 413 kfree(dev->sgid_tbl); in qedr_alloc_resources() 977 union ib_gid *sgid = &dev->sgid_tbl[0]; in qedr_mac_address_change()
|
D | qedr.h | 150 union ib_gid *sgid_tbl; member
|