Lines Matching full:tx_desc

144 		struct iser_tx_desc *tx_desc, enum iser_desc_type type,  in iser_create_send_desc()  argument
149 tx_desc->type = type; in iser_create_send_desc()
150 tx_desc->cqe.done = done; in iser_create_send_desc()
153 tx_desc->dma_addr, ISER_HEADERS_LEN, DMA_TO_DEVICE); in iser_create_send_desc()
155 memset(&tx_desc->iser_header, 0, sizeof(struct iser_ctrl)); in iser_create_send_desc()
156 tx_desc->iser_header.flags = ISER_VER; in iser_create_send_desc()
157 tx_desc->num_sge = 1; in iser_create_send_desc()
351 struct iser_tx_desc *tx_desc = &iser_task->desc; in iser_send_command() local
356 iser_create_send_desc(iser_conn, tx_desc, ISCSI_TX_SCSI_COMMAND, in iser_send_command()
397 err = iser_post_send(&iser_conn->ib_conn, tx_desc); in iser_send_command()
417 struct iser_tx_desc *tx_desc; in iser_send_data_out() local
432 tx_desc = kmem_cache_zalloc(ig.desc_cache, GFP_ATOMIC); in iser_send_data_out()
433 if (!tx_desc) in iser_send_data_out()
436 tx_desc->type = ISCSI_TX_DATAOUT; in iser_send_data_out()
437 tx_desc->cqe.done = iser_dataout_comp; in iser_send_data_out()
438 tx_desc->iser_header.flags = ISER_VER; in iser_send_data_out()
439 memcpy(&tx_desc->iscsi_header, hdr, sizeof(struct iscsi_hdr)); in iser_send_data_out()
442 err = iser_initialize_task_headers(task, tx_desc); in iser_send_data_out()
447 tx_dsg = &tx_desc->tx_sg[1]; in iser_send_data_out()
451 tx_desc->num_sge = 2; in iser_send_data_out()
463 err = iser_post_send(&iser_conn->ib_conn, tx_desc); in iser_send_data_out()
468 kmem_cache_free(ig.desc_cache, tx_desc); in iser_send_data_out()