Searched refs:pkey_tbl (Results 1 – 11 of 11) sorted by relevance
/drivers/infiniband/hw/bnxt_re/ |
D | qplib_res.c | 550 struct bnxt_qplib_pkey_tbl *pkey_tbl) in bnxt_qplib_free_pkey_tbl() argument 552 if (!pkey_tbl->tbl) in bnxt_qplib_free_pkey_tbl() 555 kfree(pkey_tbl->tbl); in bnxt_qplib_free_pkey_tbl() 557 pkey_tbl->tbl = NULL; in bnxt_qplib_free_pkey_tbl() 558 pkey_tbl->max = 0; in bnxt_qplib_free_pkey_tbl() 559 pkey_tbl->active = 0; in bnxt_qplib_free_pkey_tbl() 563 struct bnxt_qplib_pkey_tbl *pkey_tbl, in bnxt_qplib_alloc_pkey_tbl() argument 566 pkey_tbl->tbl = kcalloc(max, sizeof(u16), GFP_KERNEL); in bnxt_qplib_alloc_pkey_tbl() 567 if (!pkey_tbl->tbl) in bnxt_qplib_alloc_pkey_tbl() 570 pkey_tbl->max = max; in bnxt_qplib_alloc_pkey_tbl() [all …]
|
D | qplib_sp.c | 410 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 index, in bnxt_qplib_get_pkey() argument 417 if (index >= pkey_tbl->max) { in bnxt_qplib_get_pkey() 420 index, pkey_tbl->max); in bnxt_qplib_get_pkey() 423 memcpy(pkey, &pkey_tbl->tbl[index], sizeof(*pkey)); in bnxt_qplib_get_pkey() 428 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey, in bnxt_qplib_del_pkey() argument 433 if (!pkey_tbl) { in bnxt_qplib_del_pkey() 439 if (!pkey_tbl->active) { in bnxt_qplib_del_pkey() 443 for (i = 0; i < pkey_tbl->max; i++) { in bnxt_qplib_del_pkey() 444 if (!memcmp(&pkey_tbl->tbl[i], pkey, sizeof(*pkey))) in bnxt_qplib_del_pkey() 447 if (i == pkey_tbl->max) { in bnxt_qplib_del_pkey() [all …]
|
D | qplib_sp.h | 236 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 index, 239 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey, 242 struct bnxt_qplib_pkey_tbl *pkey_tbl, u16 *pkey,
|
D | qplib_res.h | 201 struct bnxt_qplib_pkey_tbl pkey_tbl; member
|
D | qplib_fp.c | 1211 if (!bnxt_qplib_get_pkey(res, &res->pkey_tbl, in bnxt_qplib_modify_qp()
|
D | ib_verbs.c | 287 &rdev->qplib_res.pkey_tbl, index, pkey); in bnxt_re_query_pkey()
|
/drivers/infiniband/sw/rxe/ |
D | rxe.c | 46 kfree(rxe->port.pkey_tbl); in rxe_cleanup_ports() 47 rxe->port.pkey_tbl = NULL; in rxe_cleanup_ports() 163 port->pkey_tbl = kcalloc(port->attr.pkey_tbl_len, in rxe_init_ports() 164 sizeof(*port->pkey_tbl), GFP_KERNEL); in rxe_init_ports() 166 if (!port->pkey_tbl) in rxe_init_ports() 169 port->pkey_tbl[0] = 0xffff; in rxe_init_ports()
|
D | rxe_recv.c | 113 if (pkey_match(pkey, port->pkey_tbl[i])) { in check_keys() 127 port->pkey_tbl[qp->attr.pkey_index] in check_keys()
|
D | rxe_verbs.h | 374 u16 *pkey_tbl; member
|
D | rxe_req.c | 423 port->pkey_tbl[ibwr->wr.ud.pkey_index] : in init_req_packet() 424 port->pkey_tbl[qp->attr.pkey_index]; in init_req_packet()
|
D | rxe_verbs.c | 97 *pkey = port->pkey_tbl[index]; in rxe_query_pkey()
|