Searched refs:rscp (Results 1 – 7 of 7) sorted by relevance
/drivers/infiniband/hw/cxgb3/ |
D | cxio_resource.c | 115 spin_lock_init(&rdev_p->rscp->qpid_fifo_lock); in cxio_init_qpid_fifo() 117 if (kfifo_alloc(&rdev_p->rscp->qpid_fifo, T3_MAX_NUM_QP * sizeof(u32), in cxio_init_qpid_fifo() 123 kfifo_in(&rdev_p->rscp->qpid_fifo, in cxio_init_qpid_fifo() 145 struct cxio_hal_resource *rscp; in cxio_hal_init_resource() local 147 rscp = kmalloc(sizeof(*rscp), GFP_KERNEL); in cxio_hal_init_resource() 148 if (!rscp) in cxio_hal_init_resource() 150 rdev_p->rscp = rscp; in cxio_hal_init_resource() 151 err = cxio_init_resource_fifo_random(&rscp->tpt_fifo, in cxio_hal_init_resource() 152 &rscp->tpt_fifo_lock, in cxio_hal_init_resource() 159 err = cxio_init_resource_fifo(&rscp->cqid_fifo, &rscp->cqid_fifo_lock, in cxio_hal_init_resource() [all …]
|
D | cxio_resource.h | 50 extern u32 cxio_hal_get_stag(struct cxio_hal_resource *rscp); 51 extern void cxio_hal_put_stag(struct cxio_hal_resource *rscp, u32 stag); 52 extern u32 cxio_hal_get_qpid(struct cxio_hal_resource *rscp); 53 extern void cxio_hal_put_qpid(struct cxio_hal_resource *rscp, u32 qpid); 54 extern u32 cxio_hal_get_cqid(struct cxio_hal_resource *rscp); 55 extern void cxio_hal_put_cqid(struct cxio_hal_resource *rscp, u32 cqid); 56 extern void cxio_hal_destroy_resource(struct cxio_hal_resource *rscp);
|
D | cxio_hal.h | 104 struct cxio_hal_resource *rscp; member 186 u32 cxio_hal_get_pdid(struct cxio_hal_resource *rscp); 187 void cxio_hal_put_pdid(struct cxio_hal_resource *rscp, u32 pdid);
|
D | cxio_hal.c | 164 cq->cqid = cxio_hal_get_cqid(rdev_p->rscp); in cxio_create_cq() 220 qpid = cxio_hal_get_qpid(rdev_p->rscp); in get_qpid() 262 cxio_hal_put_qpid(rdev_p->rscp, entry->qpid); in cxio_release_ucontext() 332 cxio_hal_put_cqid(rdev_p->rscp, cq->cqid); in cxio_destroy_cq() 715 stag_idx = cxio_hal_get_stag(rdev_p->rscp); in __cxio_tpt_op() 752 cxio_hal_put_stag(rdev_p->rscp, stag_idx); in __cxio_tpt_op() 1034 cxio_hal_destroy_resource(rdev_p->rscp); in cxio_rdev_open() 1050 cxio_hal_destroy_resource(rdev_p->rscp); in cxio_rdev_close()
|
D | iwch_provider.c | 419 cxio_hal_put_pdid(rhp->rdev.rscp, php->pdid); in iwch_deallocate_pd() 434 pdid = cxio_hal_get_pdid(rhp->rdev.rscp); in iwch_allocate_pd() 439 cxio_hal_put_pdid(rhp->rdev.rscp, pdid); in iwch_allocate_pd()
|
/drivers/infiniband/hw/cxgb4/ |
D | resource.c | 241 void c4iw_destroy_resource(struct c4iw_resource *rscp) in c4iw_destroy_resource() argument 243 c4iw_id_table_free(&rscp->tpt_table); in c4iw_destroy_resource() 244 c4iw_id_table_free(&rscp->qid_table); in c4iw_destroy_resource() 245 c4iw_id_table_free(&rscp->pdid_table); in c4iw_destroy_resource()
|
D | iw_cxgb4.h | 934 void c4iw_destroy_resource(struct c4iw_resource *rscp);
|