Lines Matching refs:dim
42 struct dim *dim = container_of(w, struct dim, work); in ib_cq_rdma_dim_work() local
43 struct ib_cq *cq = dim->priv; in ib_cq_rdma_dim_work()
45 u16 usec = rdma_dim_prof[dim->profile_ix].usec; in ib_cq_rdma_dim_work()
46 u16 comps = rdma_dim_prof[dim->profile_ix].comps; in ib_cq_rdma_dim_work()
48 dim->state = DIM_START_MEASURE; in ib_cq_rdma_dim_work()
56 struct dim *dim; in rdma_dim_init() local
62 dim = kzalloc(sizeof(struct dim), GFP_KERNEL); in rdma_dim_init()
63 if (!dim) in rdma_dim_init()
66 dim->state = DIM_START_MEASURE; in rdma_dim_init()
67 dim->tune_state = DIM_GOING_RIGHT; in rdma_dim_init()
68 dim->profile_ix = RDMA_DIM_START_PROFILE; in rdma_dim_init()
69 dim->priv = cq; in rdma_dim_init()
70 cq->dim = dim; in rdma_dim_init()
72 INIT_WORK(&dim->work, ib_cq_rdma_dim_work); in rdma_dim_init()
77 if (!cq->dim) in rdma_dim_destroy()
80 cancel_work_sync(&cq->dim->work); in rdma_dim_destroy()
81 kfree(cq->dim); in rdma_dim_destroy()
155 struct dim *dim = cq->dim; in ib_poll_handler() local
167 if (dim) in ib_poll_handler()
168 rdma_dim(dim, completed); in ib_poll_handler()
189 else if (cq->dim) in ib_cq_poll_work()
190 rdma_dim(cq->dim, completed); in ib_cq_poll_work()