Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/infiniband/hw/bnxt_re/
Dqplib_res.c576 struct bnxt_qplib_sgid_tbl *sgid_tbl) in bnxt_qplib_free_sgid_tbl() argument
578 kfree(sgid_tbl->tbl); in bnxt_qplib_free_sgid_tbl()
579 kfree(sgid_tbl->hw_id); in bnxt_qplib_free_sgid_tbl()
580 kfree(sgid_tbl->ctx); in bnxt_qplib_free_sgid_tbl()
581 kfree(sgid_tbl->vlan); in bnxt_qplib_free_sgid_tbl()
582 sgid_tbl->tbl = NULL; in bnxt_qplib_free_sgid_tbl()
583 sgid_tbl->hw_id = NULL; in bnxt_qplib_free_sgid_tbl()
584 sgid_tbl->ctx = NULL; in bnxt_qplib_free_sgid_tbl()
585 sgid_tbl->vlan = NULL; in bnxt_qplib_free_sgid_tbl()
586 sgid_tbl->max = 0; in bnxt_qplib_free_sgid_tbl()
[all …]
Dqplib_sp.c206 struct bnxt_qplib_sgid_tbl *sgid_tbl, int index, in bnxt_qplib_get_sgid() argument
209 if (index >= sgid_tbl->max) { in bnxt_qplib_get_sgid()
212 index, sgid_tbl->max); in bnxt_qplib_get_sgid()
215 memcpy(gid, &sgid_tbl->tbl[index].gid, sizeof(*gid)); in bnxt_qplib_get_sgid()
219 int bnxt_qplib_del_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl, in bnxt_qplib_del_sgid() argument
222 struct bnxt_qplib_res *res = to_bnxt_qplib(sgid_tbl, in bnxt_qplib_del_sgid()
224 sgid_tbl); in bnxt_qplib_del_sgid()
228 if (!sgid_tbl) { in bnxt_qplib_del_sgid()
233 if (!sgid_tbl->active) { in bnxt_qplib_del_sgid()
237 for (index = 0; index < sgid_tbl->max; index++) { in bnxt_qplib_del_sgid()
[all …]
Dqplib_sp.h248 struct bnxt_qplib_sgid_tbl *sgid_tbl, int index,
250 int bnxt_qplib_del_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
252 int bnxt_qplib_add_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
255 int bnxt_qplib_update_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
Dmain.c1171 struct bnxt_qplib_sgid_tbl *sgid_tbl = &rdev->qplib_res.sgid_tbl; in bnxt_re_update_gid() local
1179 if (!sgid_tbl) { in bnxt_re_update_gid()
1185 for (index = 0; index < sgid_tbl->active; index++) { in bnxt_re_update_gid()
1186 gid_idx = sgid_tbl->hw_id[index]; in bnxt_re_update_gid()
1188 if (!memcmp(&sgid_tbl->tbl[index], &bnxt_qplib_gid_zero, in bnxt_re_update_gid()
1194 if (sgid_tbl->vlan[index]) in bnxt_re_update_gid()
1197 memcpy(&gid, &sgid_tbl->tbl[index], sizeof(gid)); in bnxt_re_update_gid()
1199 rc = bnxt_qplib_update_sgid(sgid_tbl, &gid, gid_idx, in bnxt_re_update_gid()
Dib_verbs.c282 &rdev->qplib_res.sgid_tbl, index, in bnxt_re_query_gid()
292 struct bnxt_qplib_sgid_tbl *sgid_tbl = &rdev->qplib_res.sgid_tbl; in bnxt_re_del_gid() local
301 if (sgid_tbl && sgid_tbl->active) { in bnxt_re_del_gid()
302 if (ctx->idx >= sgid_tbl->max) in bnxt_re_del_gid()
304 gid_to_del = &sgid_tbl->tbl[ctx->idx].gid; in bnxt_re_del_gid()
305 vlan_id = sgid_tbl->tbl[ctx->idx].vlan_id; in bnxt_re_del_gid()
323 rc = bnxt_qplib_del_sgid(sgid_tbl, gid_to_del, in bnxt_re_del_gid()
329 ctx_tbl = sgid_tbl->ctx; in bnxt_re_del_gid()
347 struct bnxt_qplib_sgid_tbl *sgid_tbl = &rdev->qplib_res.sgid_tbl; in bnxt_re_add_gid() local
353 rc = bnxt_qplib_add_sgid(sgid_tbl, (struct bnxt_qplib_gid *)&attr->gid, in bnxt_re_add_gid()
[all …]
Dqplib_res.h254 struct bnxt_qplib_sgid_tbl sgid_tbl; member
Dqplib_fp.c1276 req.sgid_index = cpu_to_le16(res->sgid_tbl.hw_id in bnxt_qplib_modify_qp()
1378 for (i = 0; i < res->sgid_tbl.max; i++) { in bnxt_qplib_query_qp()
1379 if (res->sgid_tbl.hw_id[i] == le16_to_cpu(sb->sgid_index)) { in bnxt_qplib_query_qp()
1384 if (i == res->sgid_tbl.max) in bnxt_qplib_query_qp()
/linux-6.1.9/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_main.c591 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()
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-6.1.9/drivers/infiniband/hw/qedr/
Dmain.c321 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()
Dqedr.h150 union ib_gid *sgid_tbl; member