Home
last modified time | relevance | path

Searched refs:pkey_tbl (Results 1 – 11 of 11) sorted by relevance

/drivers/infiniband/hw/bnxt_re/
Dqplib_res.c550 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 …]
Dqplib_sp.c410 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 …]
Dqplib_sp.h236 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,
Dqplib_res.h201 struct bnxt_qplib_pkey_tbl pkey_tbl; member
Dqplib_fp.c1211 if (!bnxt_qplib_get_pkey(res, &res->pkey_tbl, in bnxt_qplib_modify_qp()
Dib_verbs.c287 &rdev->qplib_res.pkey_tbl, index, pkey); in bnxt_re_query_pkey()
/drivers/infiniband/sw/rxe/
Drxe.c46 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()
Drxe_recv.c113 if (pkey_match(pkey, port->pkey_tbl[i])) { in check_keys()
127 port->pkey_tbl[qp->attr.pkey_index] in check_keys()
Drxe_verbs.h374 u16 *pkey_tbl; member
Drxe_req.c423 port->pkey_tbl[ibwr->wr.ud.pkey_index] : in init_req_packet()
424 port->pkey_tbl[qp->attr.pkey_index]; in init_req_packet()
Drxe_verbs.c97 *pkey = port->pkey_tbl[index]; in rxe_query_pkey()