Lines Matching full:comp
98 ISER_DBG("conn %p got send comp error", iser_conn); in iser_handle_comp_error()
100 ISER_DBG("conn %p got recv comp error", iser_conn); in iser_handle_comp_error()
161 struct iser_comp *comp = (struct iser_comp *)data; in iser_cq_tasklet_fn() local
162 struct ib_cq *cq = comp->cq; in iser_cq_tasklet_fn()
163 struct ib_wc *const wcs = comp->wcs; in iser_cq_tasklet_fn()
168 while ((n = ib_poll_cq(cq, ARRAY_SIZE(comp->wcs), wcs)) > 0) { in iser_cq_tasklet_fn()
187 struct iser_comp *comp = cq_context; in iser_cq_callback() local
189 taskqueue_enqueue(comp->tq, &comp->task); in iser_cq_callback()
227 struct iser_comp *comp = &device->comps[i]; in iser_create_device_ib_res() local
233 comp->device = device; in iser_create_device_ib_res()
234 comp->cq = ib_create_cq(device->ib_device, in iser_create_device_ib_res()
237 (void *)comp, in iser_create_device_ib_res()
239 if (IS_ERR(comp->cq)) { in iser_create_device_ib_res()
240 comp->cq = NULL; in iser_create_device_ib_res()
244 if (ib_req_notify_cq(comp->cq, IB_CQ_NEXT_COMP)) in iser_create_device_ib_res()
247 TASK_INIT(&comp->task, 0, iser_cq_tasklet_fn, comp); in iser_create_device_ib_res()
248 comp->tq = taskqueue_create_fast("iser_taskq", M_NOWAIT, in iser_create_device_ib_res()
249 taskqueue_thread_enqueue, &comp->tq); in iser_create_device_ib_res()
250 if (!comp->tq) in iser_create_device_ib_res()
252 taskqueue_start_threads(&comp->tq, 1, PI_NET, "iser taskq"); in iser_create_device_ib_res()
268 struct iser_comp *comp = &device->comps[i]; in iser_create_device_ib_res() local
269 if (comp->tq) in iser_create_device_ib_res()
270 taskqueue_free(comp->tq); in iser_create_device_ib_res()
274 struct iser_comp *comp = &device->comps[i]; in iser_create_device_ib_res() local
275 if (comp->cq) in iser_create_device_ib_res()
276 ib_destroy_cq(comp->cq); in iser_create_device_ib_res()
295 struct iser_comp *comp = &device->comps[i]; in iser_free_device_ib_res() local
297 taskqueue_free(comp->tq); in iser_free_device_ib_res()
298 ib_destroy_cq(comp->cq); in iser_free_device_ib_res()
299 comp->cq = NULL; in iser_free_device_ib_res()
439 ib_conn->comp = &device->comps[min_index]; in iser_create_ib_conn_res()
440 ib_conn->comp->active_qps++; in iser_create_ib_conn_res()
447 init_attr.send_cq = ib_conn->comp->cq; in iser_create_ib_conn_res()
448 init_attr.recv_cq = ib_conn->comp->cq; in iser_create_ib_conn_res()
480 ib_conn->comp->active_qps--; in iser_create_ib_conn_res()
542 enum iser_conn_state comp, in iser_conn_state_comp_exch() argument
547 ret = (iser_conn->state == comp); in iser_conn_state_comp_exch()
577 ib_conn->comp->active_qps--; in iser_free_ib_conn_res()