pkey_tbl 287 drivers/infiniband/hw/bnxt_re/ib_verbs.c &rdev->qplib_res.pkey_tbl, index, pkey); pkey_tbl 1211 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (!bnxt_qplib_get_pkey(res, &res->pkey_tbl, pkey_tbl 550 drivers/infiniband/hw/bnxt_re/qplib_res.c struct bnxt_qplib_pkey_tbl *pkey_tbl) pkey_tbl 552 drivers/infiniband/hw/bnxt_re/qplib_res.c if (!pkey_tbl->tbl) pkey_tbl 555 drivers/infiniband/hw/bnxt_re/qplib_res.c kfree(pkey_tbl->tbl); pkey_tbl 557 drivers/infiniband/hw/bnxt_re/qplib_res.c pkey_tbl->tbl = NULL; pkey_tbl 558 drivers/infiniband/hw/bnxt_re/qplib_res.c pkey_tbl->max = 0; pkey_tbl 559 drivers/infiniband/hw/bnxt_re/qplib_res.c pkey_tbl->active = 0; pkey_tbl 563 drivers/infiniband/hw/bnxt_re/qplib_res.c struct bnxt_qplib_pkey_tbl *pkey_tbl, pkey_tbl 566 drivers/infiniband/hw/bnxt_re/qplib_res.c pkey_tbl->tbl = kcalloc(max, sizeof(u16), GFP_KERNEL); pkey_tbl 567 drivers/infiniband/hw/bnxt_re/qplib_res.c if (!pkey_tbl->tbl) pkey_tbl 570 drivers/infiniband/hw/bnxt_re/qplib_res.c pkey_tbl->max = max; pkey_tbl 743 drivers/infiniband/hw/bnxt_re/qplib_res.c static void bnxt_qplib_cleanup_pkey_tbl(struct bnxt_qplib_pkey_tbl *pkey_tbl) pkey_tbl 745 drivers/infiniband/hw/bnxt_re/qplib_res.c memset(pkey_tbl->tbl, 0, sizeof(u16) * pkey_tbl->max); pkey_tbl 746 drivers/infiniband/hw/bnxt_re/qplib_res.c pkey_tbl->active = 0; pkey_tbl 750 drivers/infiniband/hw/bnxt_re/qplib_res.c struct bnxt_qplib_pkey_tbl *pkey_tbl) pkey_tbl 754 drivers/infiniband/hw/bnxt_re/qplib_res.c memset(pkey_tbl->tbl, 0, sizeof(u16) * pkey_tbl->max); pkey_tbl 757 drivers/infiniband/hw/bnxt_re/qplib_res.c bnxt_qplib_add_pkey(res, pkey_tbl, &pkey, false); pkey_tbl 793 drivers/infiniband/hw/bnxt_re/qplib_res.c bnxt_qplib_cleanup_pkey_tbl(&res->pkey_tbl); pkey_tbl 800 drivers/infiniband/hw/bnxt_re/qplib_res.c bnxt_qplib_init_pkey_tbl(res, &res->pkey_tbl); pkey_tbl 807 drivers/infiniband/hw/bnxt_re/qplib_res.c bnxt_qplib_free_pkey_tbl(res, &res->pkey_tbl); pkey_tbl 829 drivers/infiniband/hw/bnxt_re/qplib_res.c rc = bnxt_qplib_alloc_pkey_tbl(res, &res->pkey_tbl, dev_attr->max_pkey); pkey_tbl 201 drivers/infiniband/hw/bnxt_re/qplib_res.h struct bnxt_qplib_pkey_tbl pkey_tbl; pkey_tbl 410 drivers/infiniband/hw/bnxt_re/qplib_sp.c struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 index, pkey_tbl 417 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (index >= pkey_tbl->max) { pkey_tbl 420 drivers/infiniband/hw/bnxt_re/qplib_sp.c index, pkey_tbl->max); pkey_tbl 423 drivers/infiniband/hw/bnxt_re/qplib_sp.c memcpy(pkey, &pkey_tbl->tbl[index], sizeof(*pkey)); pkey_tbl 428 drivers/infiniband/hw/bnxt_re/qplib_sp.c struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey, pkey_tbl 433 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (!pkey_tbl) { pkey_tbl 439 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (!pkey_tbl->active) { pkey_tbl 443 drivers/infiniband/hw/bnxt_re/qplib_sp.c for (i = 0; i < pkey_tbl->max; i++) { pkey_tbl 444 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (!memcmp(&pkey_tbl->tbl[i], pkey, sizeof(*pkey))) pkey_tbl 447 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (i == pkey_tbl->max) { pkey_tbl 452 drivers/infiniband/hw/bnxt_re/qplib_sp.c memset(&pkey_tbl->tbl[i], 0, sizeof(*pkey)); pkey_tbl 453 drivers/infiniband/hw/bnxt_re/qplib_sp.c pkey_tbl->active--; pkey_tbl 460 drivers/infiniband/hw/bnxt_re/qplib_sp.c struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey, pkey_tbl 465 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (!pkey_tbl) { pkey_tbl 471 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (pkey_tbl->active == pkey_tbl->max) { pkey_tbl 475 drivers/infiniband/hw/bnxt_re/qplib_sp.c free_idx = pkey_tbl->max; pkey_tbl 476 drivers/infiniband/hw/bnxt_re/qplib_sp.c for (i = 0; i < pkey_tbl->max; i++) { pkey_tbl 477 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (!memcmp(&pkey_tbl->tbl[i], pkey, sizeof(*pkey))) pkey_tbl 479 drivers/infiniband/hw/bnxt_re/qplib_sp.c else if (!pkey_tbl->tbl[i] && free_idx == pkey_tbl->max) pkey_tbl 482 drivers/infiniband/hw/bnxt_re/qplib_sp.c if (free_idx == pkey_tbl->max) { pkey_tbl 488 drivers/infiniband/hw/bnxt_re/qplib_sp.c memcpy(&pkey_tbl->tbl[free_idx], pkey, sizeof(*pkey)); pkey_tbl 489 drivers/infiniband/hw/bnxt_re/qplib_sp.c pkey_tbl->active++; pkey_tbl 236 drivers/infiniband/hw/bnxt_re/qplib_sp.h struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 index, pkey_tbl 239 drivers/infiniband/hw/bnxt_re/qplib_sp.h struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey, pkey_tbl 242 drivers/infiniband/hw/bnxt_re/qplib_sp.h struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey, pkey_tbl 46 drivers/infiniband/sw/rxe/rxe.c kfree(rxe->port.pkey_tbl); pkey_tbl 47 drivers/infiniband/sw/rxe/rxe.c rxe->port.pkey_tbl = NULL; pkey_tbl 163 drivers/infiniband/sw/rxe/rxe.c port->pkey_tbl = kcalloc(port->attr.pkey_tbl_len, pkey_tbl 164 drivers/infiniband/sw/rxe/rxe.c sizeof(*port->pkey_tbl), GFP_KERNEL); pkey_tbl 166 drivers/infiniband/sw/rxe/rxe.c if (!port->pkey_tbl) pkey_tbl 169 drivers/infiniband/sw/rxe/rxe.c port->pkey_tbl[0] = 0xffff; pkey_tbl 113 drivers/infiniband/sw/rxe/rxe_recv.c if (pkey_match(pkey, port->pkey_tbl[i])) { pkey_tbl 127 drivers/infiniband/sw/rxe/rxe_recv.c port->pkey_tbl[qp->attr.pkey_index] pkey_tbl 423 drivers/infiniband/sw/rxe/rxe_req.c port->pkey_tbl[ibwr->wr.ud.pkey_index] : pkey_tbl 424 drivers/infiniband/sw/rxe/rxe_req.c port->pkey_tbl[qp->attr.pkey_index]; pkey_tbl 97 drivers/infiniband/sw/rxe/rxe_verbs.c *pkey = port->pkey_tbl[index]; pkey_tbl 374 drivers/infiniband/sw/rxe/rxe_verbs.h u16 *pkey_tbl;