Lines Matching full:dim
41 struct dim *dim = container_of(w, struct dim, work); in ib_cq_rdma_dim_work() local
42 struct ib_cq *cq = dim->priv; in ib_cq_rdma_dim_work()
44 u16 usec = rdma_dim_prof[dim->profile_ix].usec; in ib_cq_rdma_dim_work()
45 u16 comps = rdma_dim_prof[dim->profile_ix].comps; in ib_cq_rdma_dim_work()
47 dim->state = DIM_START_MEASURE; in ib_cq_rdma_dim_work()
55 struct dim *dim; in rdma_dim_init() local
61 dim = kzalloc(sizeof(struct dim), GFP_KERNEL); in rdma_dim_init()
62 if (!dim) in rdma_dim_init()
65 dim->state = DIM_START_MEASURE; in rdma_dim_init()
66 dim->tune_state = DIM_GOING_RIGHT; in rdma_dim_init()
67 dim->profile_ix = RDMA_DIM_START_PROFILE; in rdma_dim_init()
68 dim->priv = cq; in rdma_dim_init()
69 cq->dim = dim; in rdma_dim_init()
71 INIT_WORK(&dim->work, ib_cq_rdma_dim_work); in rdma_dim_init()
76 if (!cq->dim) in rdma_dim_destroy()
79 cancel_work_sync(&cq->dim->work); in rdma_dim_destroy()
80 kfree(cq->dim); in rdma_dim_destroy()
154 struct dim *dim = cq->dim; in ib_poll_handler() local
166 if (dim) in ib_poll_handler()
167 rdma_dim(dim, completed); in ib_poll_handler()
188 else if (cq->dim) in ib_cq_poll_work()
189 rdma_dim(cq->dim, completed); in ib_cq_poll_work()