Home
last modified time | relevance | path

Searched refs:ib_conn (Results 1 – 5 of 5) sorted by relevance

/linux-2.6.39/drivers/infiniband/ulp/iser/
Diser_verbs.c154 static int iser_create_ib_conn_res(struct iser_conn *ib_conn) in iser_create_ib_conn_res() argument
161 BUG_ON(ib_conn->device == NULL); in iser_create_ib_conn_res()
163 device = ib_conn->device; in iser_create_ib_conn_res()
165 ib_conn->login_buf = kmalloc(ISER_RX_LOGIN_SIZE, GFP_KERNEL); in iser_create_ib_conn_res()
166 if (!ib_conn->login_buf) in iser_create_ib_conn_res()
169 ib_conn->login_dma = ib_dma_map_single(ib_conn->device->ib_device, in iser_create_ib_conn_res()
170 (void *)ib_conn->login_buf, ISER_RX_LOGIN_SIZE, in iser_create_ib_conn_res()
173 ib_conn->page_vec = kmalloc(sizeof(struct iser_page_vec) + in iser_create_ib_conn_res()
176 if (!ib_conn->page_vec) in iser_create_ib_conn_res()
179 ib_conn->page_vec->pages = (u64 *) (ib_conn->page_vec + 1); in iser_create_ib_conn_res()
[all …]
Diser_initiator.c153 static void iser_create_send_desc(struct iser_conn *ib_conn, in iser_create_send_desc() argument
156 struct iser_device *device = ib_conn->device; in iser_create_send_desc()
173 static int iser_alloc_rx_descriptors(struct iser_conn *ib_conn) in iser_alloc_rx_descriptors() argument
179 struct iser_device *device = ib_conn->device; in iser_alloc_rx_descriptors()
181 ib_conn->rx_descs = kmalloc(ISER_QP_MAX_RECV_DTOS * in iser_alloc_rx_descriptors()
183 if (!ib_conn->rx_descs) in iser_alloc_rx_descriptors()
186 rx_desc = ib_conn->rx_descs; in iser_alloc_rx_descriptors()
202 ib_conn->rx_desc_head = 0; in iser_alloc_rx_descriptors()
206 rx_desc = ib_conn->rx_descs; in iser_alloc_rx_descriptors()
210 kfree(ib_conn->rx_descs); in iser_alloc_rx_descriptors()
[all …]
Discsi_iser.c136 struct iser_device *device = iser_conn->ib_conn->device; in iser_initialize_task_headers()
318 struct iser_conn *ib_conn = iser_conn->ib_conn; in iscsi_iser_conn_destroy() local
326 if (ib_conn) { in iscsi_iser_conn_destroy()
327 ib_conn->iser_conn = NULL; in iscsi_iser_conn_destroy()
328 iser_conn_put(ib_conn, 1); /* deref iscsi/ib conn unbinding */ in iscsi_iser_conn_destroy()
339 struct iser_conn *ib_conn; in iscsi_iser_conn_bind() local
355 ib_conn = ep->dd_data; in iscsi_iser_conn_bind()
361 conn, conn->dd_data, ib_conn); in iscsi_iser_conn_bind()
363 ib_conn->iser_conn = iser_conn; in iscsi_iser_conn_bind()
364 iser_conn->ib_conn = ib_conn; in iscsi_iser_conn_bind()
[all …]
Discsi_iser.h267 struct iser_conn *ib_conn; /* iSER IB conn */ member
319 void iser_conn_init(struct iser_conn *ib_conn);
321 void iser_conn_get(struct iser_conn *ib_conn);
323 int iser_conn_put(struct iser_conn *ib_conn, int destroy_cma_id_allowed);
325 void iser_conn_terminate(struct iser_conn *ib_conn);
329 struct iser_conn *ib_conn);
331 void iser_snd_completion(struct iser_tx_desc *desc, struct iser_conn *ib_conn);
337 void iser_free_rx_descriptors(struct iser_conn *ib_conn);
345 int iser_connect(struct iser_conn *ib_conn,
350 int iser_reg_page_vec(struct iser_conn *ib_conn,
[all …]
Diser_memory.c92 dev = iser_task->iser_conn->ib_conn->device->ib_device; in iser_start_rdma_unaligned_sg()
114 dev = iser_task->iser_conn->ib_conn->device->ib_device; in iser_finalize_rdma_unaligned_sg()
321 dev = iser_task->iser_conn->ib_conn->device->ib_device; in iser_dma_map_task_data()
336 dev = iser_task->iser_conn->ib_conn->device->ib_device; in iser_dma_unmap_task_data()
359 struct iser_conn *ib_conn = iser_task->iser_conn->ib_conn; in iser_reg_rdma_mem() local
360 struct iser_device *device = ib_conn->device; in iser_reg_rdma_mem()
405 iser_page_vec_build(mem, ib_conn->page_vec, ibdev); in iser_reg_rdma_mem()
406 err = iser_reg_page_vec(ib_conn, ib_conn->page_vec, &regd_buf->reg); in iser_reg_rdma_mem()
413 ib_conn->page_vec->data_size, ib_conn->page_vec->length, in iser_reg_rdma_mem()
414 ib_conn->page_vec->offset); in iser_reg_rdma_mem()
[all …]