Lines Matching refs:tx_desc
162 struct iser_tx_desc *tx_desc) in iser_create_send_desc() argument
167 tx_desc->dma_addr, ISER_HEADERS_LEN, DMA_TO_DEVICE); in iser_create_send_desc()
169 memset(&tx_desc->iser_header, 0, sizeof(struct iser_hdr)); in iser_create_send_desc()
170 tx_desc->iser_header.flags = ISER_VER; in iser_create_send_desc()
171 tx_desc->num_sge = 1; in iser_create_send_desc()
379 struct iser_tx_desc *tx_desc = &iser_task->desc; in iser_send_command() local
385 tx_desc->type = ISCSI_TX_SCSI_COMMAND; in iser_send_command()
386 iser_create_send_desc(iser_conn, tx_desc); in iser_send_command()
426 err = iser_post_send(&iser_conn->ib_conn, tx_desc, in iser_send_command()
445 struct iser_tx_desc *tx_desc = NULL; in iser_send_data_out() local
460 tx_desc = kmem_cache_zalloc(ig.desc_cache, GFP_ATOMIC); in iser_send_data_out()
461 if (tx_desc == NULL) { in iser_send_data_out()
466 tx_desc->type = ISCSI_TX_DATAOUT; in iser_send_data_out()
467 tx_desc->iser_header.flags = ISER_VER; in iser_send_data_out()
468 memcpy(&tx_desc->iscsi_header, hdr, sizeof(struct iscsi_hdr)); in iser_send_data_out()
471 err = iser_initialize_task_headers(task, tx_desc); in iser_send_data_out()
476 tx_dsg = &tx_desc->tx_sg[1]; in iser_send_data_out()
480 tx_desc->num_sge = 2; in iser_send_data_out()
494 err = iser_post_send(&iser_conn->ib_conn, tx_desc, true); in iser_send_data_out()
499 kmem_cache_free(ig.desc_cache, tx_desc); in iser_send_data_out()
620 void iser_snd_completion(struct iser_tx_desc *tx_desc, in iser_snd_completion() argument
626 if (tx_desc->type == ISCSI_TX_DATAOUT) { in iser_snd_completion()
627 ib_dma_unmap_single(device->ib_device, tx_desc->dma_addr, in iser_snd_completion()
629 kmem_cache_free(ig.desc_cache, tx_desc); in iser_snd_completion()
630 tx_desc = NULL; in iser_snd_completion()
633 if (tx_desc && tx_desc->type == ISCSI_TX_CONTROL) { in iser_snd_completion()
635 task = (void *) ((long)(void *)tx_desc - in iser_snd_completion()