Home
last modified time | relevance | path

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

/openbmc/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_res.c557 struct bnxt_qplib_sgid_tbl *sgid_tbl) in bnxt_qplib_free_sgid_tbl() argument
559 kfree(sgid_tbl->tbl); in bnxt_qplib_free_sgid_tbl()
560 kfree(sgid_tbl->hw_id); in bnxt_qplib_free_sgid_tbl()
561 kfree(sgid_tbl->ctx); in bnxt_qplib_free_sgid_tbl()
562 kfree(sgid_tbl->vlan); in bnxt_qplib_free_sgid_tbl()
563 sgid_tbl->tbl = NULL; in bnxt_qplib_free_sgid_tbl()
564 sgid_tbl->hw_id = NULL; in bnxt_qplib_free_sgid_tbl()
565 sgid_tbl->ctx = NULL; in bnxt_qplib_free_sgid_tbl()
566 sgid_tbl->vlan = NULL; in bnxt_qplib_free_sgid_tbl()
567 sgid_tbl->max = 0; in bnxt_qplib_free_sgid_tbl()
[all …]
H A Dqplib_sp.c225 struct bnxt_qplib_sgid_tbl *sgid_tbl, int index, in bnxt_qplib_get_sgid() argument
228 if (index >= sgid_tbl->max) { in bnxt_qplib_get_sgid()
231 index, sgid_tbl->max); in bnxt_qplib_get_sgid()
234 memcpy(gid, &sgid_tbl->tbl[index].gid, sizeof(*gid)); in bnxt_qplib_get_sgid()
238 int bnxt_qplib_del_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl, in bnxt_qplib_del_sgid() argument
241 struct bnxt_qplib_res *res = to_bnxt_qplib(sgid_tbl, in bnxt_qplib_del_sgid()
243 sgid_tbl); in bnxt_qplib_del_sgid()
248 if (!sgid_tbl->active) { in bnxt_qplib_del_sgid()
252 for (index = 0; index < sgid_tbl->max; index++) { in bnxt_qplib_del_sgid()
253 if (!memcmp(&sgid_tbl->tbl[index].gid, gid, sizeof(*gid)) && in bnxt_qplib_del_sgid()
[all …]
H A Dqplib_sp.h315 struct bnxt_qplib_sgid_tbl *sgid_tbl, int index,
317 int bnxt_qplib_del_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
319 int bnxt_qplib_add_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
322 int bnxt_qplib_update_sgid(struct bnxt_qplib_sgid_tbl *sgid_tbl,
H A Dmain.c1266 struct bnxt_qplib_sgid_tbl *sgid_tbl = &rdev->qplib_res.sgid_tbl; in bnxt_re_update_gid() local
1274 for (index = 0; index < sgid_tbl->active; index++) { in bnxt_re_update_gid()
1275 gid_idx = sgid_tbl->hw_id[index]; in bnxt_re_update_gid()
1277 if (!memcmp(&sgid_tbl->tbl[index], &bnxt_qplib_gid_zero, in bnxt_re_update_gid()
1283 if (sgid_tbl->vlan[index]) in bnxt_re_update_gid()
1286 memcpy(&gid, &sgid_tbl->tbl[index], sizeof(gid)); in bnxt_re_update_gid()
1288 rc = bnxt_qplib_update_sgid(sgid_tbl, &gid, gid_idx, in bnxt_re_update_gid()
H A Dib_verbs.c292 &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 …]
H A Dqplib_res.h293 struct bnxt_qplib_sgid_tbl sgid_tbl; member
H A Dqplib_fp.c1313 req.sgid_index = cpu_to_le16(res->sgid_tbl.hw_id in bnxt_qplib_modify_qp()
1419 for (i = 0; i < res->sgid_tbl.max; i++) { in bnxt_qplib_query_qp()
1420 if (res->sgid_tbl.hw_id[i] == le16_to_cpu(sb->sgid_index)) { in bnxt_qplib_query_qp()
1425 if (i == res->sgid_tbl.max) in bnxt_qplib_query_qp()
/openbmc/linux/drivers/infiniband/hw/vmw_pvrdma/
H A 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()
H A Dpvrdma.h223 union ib_gid *sgid_tbl; member
H A Dpvrdma_verbs.c194 memcpy(gid, &dev->sgid_tbl[index], sizeof(union ib_gid)); in pvrdma_query_gid()
/openbmc/linux/drivers/infiniband/hw/qedr/
H A 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()
H A Dqedr.h150 union ib_gid *sgid_tbl; member