Lines Matching refs:task_data

3346 	struct ql4_task_data *task_data;  in qla4xxx_task_work()  local
3357 task_data = container_of(wdata, struct ql4_task_data, task_work); in qla4xxx_task_work()
3358 ha = task_data->ha; in qla4xxx_task_work()
3359 task = task_data->task; in qla4xxx_task_work()
3360 sts = &task_data->sts; in qla4xxx_task_work()
3366 DEBUG3(qla4xxx_dump_buffer(task_data->resp_buffer, 64)); in qla4xxx_task_work()
3372 hdr = (struct iscsi_hdr *)task_data->resp_buffer; in qla4xxx_task_work()
3376 data = task_data->resp_buffer + hdr_len; in qla4xxx_task_work()
3377 data_len = task_data->resp_len - hdr_len; in qla4xxx_task_work()
3390 struct ql4_task_data *task_data; in qla4xxx_alloc_pdu() local
3399 task_data = task->dd_data; in qla4xxx_alloc_pdu()
3400 memset(task_data, 0, sizeof(struct ql4_task_data)); in qla4xxx_alloc_pdu()
3409 task_data->ha = ha; in qla4xxx_alloc_pdu()
3410 task_data->task = task; in qla4xxx_alloc_pdu()
3413 task_data->data_dma = dma_map_single(&ha->pdev->dev, task->data, in qla4xxx_alloc_pdu()
3421 task_data->resp_len = task->conn->max_recv_dlength + hdr_len; in qla4xxx_alloc_pdu()
3422 task_data->resp_buffer = dma_alloc_coherent(&ha->pdev->dev, in qla4xxx_alloc_pdu()
3423 task_data->resp_len, in qla4xxx_alloc_pdu()
3424 &task_data->resp_dma, in qla4xxx_alloc_pdu()
3426 if (!task_data->resp_buffer) in qla4xxx_alloc_pdu()
3429 task_data->req_len = task->data_count + hdr_len; in qla4xxx_alloc_pdu()
3430 task_data->req_buffer = dma_alloc_coherent(&ha->pdev->dev, in qla4xxx_alloc_pdu()
3431 task_data->req_len, in qla4xxx_alloc_pdu()
3432 &task_data->req_dma, in qla4xxx_alloc_pdu()
3434 if (!task_data->req_buffer) in qla4xxx_alloc_pdu()
3437 task->hdr = task_data->req_buffer; in qla4xxx_alloc_pdu()
3439 INIT_WORK(&task_data->task_work, qla4xxx_task_work); in qla4xxx_alloc_pdu()
3444 if (task_data->resp_buffer) in qla4xxx_alloc_pdu()
3445 dma_free_coherent(&ha->pdev->dev, task_data->resp_len, in qla4xxx_alloc_pdu()
3446 task_data->resp_buffer, task_data->resp_dma); in qla4xxx_alloc_pdu()
3448 if (task_data->req_buffer) in qla4xxx_alloc_pdu()
3449 dma_free_coherent(&ha->pdev->dev, task_data->req_len, in qla4xxx_alloc_pdu()
3450 task_data->req_buffer, task_data->req_dma); in qla4xxx_alloc_pdu()
3456 struct ql4_task_data *task_data; in qla4xxx_task_cleanup() local
3466 task_data = task->dd_data; in qla4xxx_task_cleanup()
3469 dma_unmap_single(&ha->pdev->dev, task_data->data_dma, in qla4xxx_task_cleanup()
3476 dma_free_coherent(&ha->pdev->dev, task_data->resp_len, in qla4xxx_task_cleanup()
3477 task_data->resp_buffer, task_data->resp_dma); in qla4xxx_task_cleanup()
3478 dma_free_coherent(&ha->pdev->dev, task_data->req_len, in qla4xxx_task_cleanup()
3479 task_data->req_buffer, task_data->req_dma); in qla4xxx_task_cleanup()