io_task 45 drivers/scsi/be2iscsi/be_iscsi.c struct beiscsi_io_task *io_task; io_task 78 drivers/scsi/be2iscsi/be_iscsi.c sizeof(*io_task), io_task 276 drivers/scsi/be2iscsi/be_main.c struct beiscsi_io_task *io_task; io_task 325 drivers/scsi/be2iscsi/be_main.c io_task = task->dd_data; io_task 329 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->pwrb, 1); io_task 332 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->pwrb, 1); io_task 336 drivers/scsi/be2iscsi/be_main.c inv_tbl->tbl[nents].icd = io_task->psgl_handle->sgl_index; io_task 1104 drivers/scsi/be2iscsi/be_main.c struct beiscsi_io_task *io_task = task->dd_data; io_task 1106 drivers/scsi/be2iscsi/be_main.c (struct be_status_bhs *)io_task->cmd_bhs; io_task 1121 drivers/scsi/be2iscsi/be_main.c if (io_task->scsi_cmnd) { io_task 1122 drivers/scsi/be2iscsi/be_main.c scsi_dma_unmap(io_task->scsi_cmnd); io_task 1123 drivers/scsi/be2iscsi/be_main.c io_task->scsi_cmnd = NULL; io_task 1157 drivers/scsi/be2iscsi/be_main.c if (io_task->cmd_bhs->iscsi_hdr.flags & ISCSI_FLAG_CMD_READ) io_task 1160 drivers/scsi/be2iscsi/be_main.c if (io_task->scsi_cmnd) { io_task 1161 drivers/scsi/be2iscsi/be_main.c scsi_dma_unmap(io_task->scsi_cmnd); io_task 1162 drivers/scsi/be2iscsi/be_main.c io_task->scsi_cmnd = NULL; io_task 1173 drivers/scsi/be2iscsi/be_main.c struct beiscsi_io_task *io_task = task->dd_data; io_task 1190 drivers/scsi/be2iscsi/be_main.c hdr->itt = io_task->libiscsi_itt; io_task 1201 drivers/scsi/be2iscsi/be_main.c struct beiscsi_io_task *io_task = task->dd_data; io_task 1211 drivers/scsi/be2iscsi/be_main.c hdr->itt = io_task->libiscsi_itt; io_task 1257 drivers/scsi/be2iscsi/be_main.c struct beiscsi_io_task *io_task = task->dd_data; io_task 1266 drivers/scsi/be2iscsi/be_main.c hdr->itt = io_task->libiscsi_itt; io_task 1412 drivers/scsi/be2iscsi/be_main.c struct beiscsi_io_task *io_task; io_task 1435 drivers/scsi/be2iscsi/be_main.c io_task = task->dd_data; io_task 1437 drivers/scsi/be2iscsi/be_main.c login_hdr->itt = io_task->libiscsi_itt; io_task 2075 drivers/scsi/be2iscsi/be_main.c unsigned int num_sg, struct beiscsi_io_task *io_task) io_task 2085 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a32.address_lo); io_task 2087 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a32.address_hi); io_task 2121 drivers/scsi/be2iscsi/be_main.c psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; io_task 2124 drivers/scsi/be2iscsi/be_main.c AMAP_SET_BITS(struct amap_iscsi_sge, len, psgl, io_task->bhs_len - 2); io_task 2127 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a32.address_hi); io_task 2129 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a32.address_lo); io_task 2170 drivers/scsi/be2iscsi/be_main.c unsigned int num_sg, struct beiscsi_io_task *io_task) io_task 2180 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a32.address_lo); io_task 2182 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a32.address_hi); io_task 2210 drivers/scsi/be2iscsi/be_main.c psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; io_task 2213 drivers/scsi/be2iscsi/be_main.c AMAP_SET_BITS(struct amap_iscsi_sge, len, psgl, io_task->bhs_len - 2); io_task 2216 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a32.address_hi); io_task 2218 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a32.address_lo); io_task 2264 drivers/scsi/be2iscsi/be_main.c struct beiscsi_io_task *io_task = task->dd_data; io_task 2265 drivers/scsi/be2iscsi/be_main.c struct beiscsi_conn *beiscsi_conn = io_task->conn; io_task 2269 drivers/scsi/be2iscsi/be_main.c io_task->bhs_len = sizeof(struct be_nonio_bhs) - 2; io_task 2271 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a32.address_lo); io_task 2273 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a32.address_hi); io_task 2289 drivers/scsi/be2iscsi/be_main.c io_task->mtask_addr = dma_map_single(&phba->pcidev->dev, io_task 2294 drivers/scsi/be2iscsi/be_main.c io_task->mtask_addr)) io_task 2296 drivers/scsi/be2iscsi/be_main.c io_task->mtask_data_count = task->data_count; io_task 2298 drivers/scsi/be2iscsi/be_main.c io_task->mtask_addr = 0; io_task 2301 drivers/scsi/be2iscsi/be_main.c lower_32_bits(io_task->mtask_addr)); io_task 2303 drivers/scsi/be2iscsi/be_main.c upper_32_bits(io_task->mtask_addr)); io_task 2310 drivers/scsi/be2iscsi/be_main.c io_task->mtask_addr = 0; io_task 2313 drivers/scsi/be2iscsi/be_main.c psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; io_task 2315 drivers/scsi/be2iscsi/be_main.c AMAP_SET_BITS(struct amap_iscsi_sge, len, psgl, io_task->bhs_len); io_task 2318 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a32.address_hi); io_task 2320 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a32.address_lo); io_task 2333 drivers/scsi/be2iscsi/be_main.c lower_32_bits(io_task->mtask_addr)); io_task 2335 drivers/scsi/be2iscsi/be_main.c upper_32_bits(io_task->mtask_addr)); io_task 4217 drivers/scsi/be2iscsi/be_main.c struct beiscsi_io_task *io_task; io_task 4227 drivers/scsi/be2iscsi/be_main.c io_task = task->dd_data; io_task 4229 drivers/scsi/be2iscsi/be_main.c if (io_task->pwrb_handle) { io_task 4230 drivers/scsi/be2iscsi/be_main.c free_wrb_handle(phba, pwrb_context, io_task->pwrb_handle); io_task 4231 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle = NULL; io_task 4234 drivers/scsi/be2iscsi/be_main.c if (io_task->psgl_handle) { io_task 4235 drivers/scsi/be2iscsi/be_main.c free_mgmt_sgl_handle(phba, io_task->psgl_handle); io_task 4236 drivers/scsi/be2iscsi/be_main.c io_task->psgl_handle = NULL; io_task 4239 drivers/scsi/be2iscsi/be_main.c if (io_task->mtask_addr) { io_task 4241 drivers/scsi/be2iscsi/be_main.c io_task->mtask_addr, io_task 4242 drivers/scsi/be2iscsi/be_main.c io_task->mtask_data_count, io_task 4244 drivers/scsi/be2iscsi/be_main.c io_task->mtask_addr = 0; io_task 4255 drivers/scsi/be2iscsi/be_main.c struct beiscsi_io_task *io_task = task->dd_data; io_task 4268 drivers/scsi/be2iscsi/be_main.c if (io_task->cmd_bhs) { io_task 4269 drivers/scsi/be2iscsi/be_main.c dma_pool_free(beiscsi_sess->bhs_pool, io_task->cmd_bhs, io_task 4270 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a64.address); io_task 4271 drivers/scsi/be2iscsi/be_main.c io_task->cmd_bhs = NULL; io_task 4276 drivers/scsi/be2iscsi/be_main.c if (io_task->pwrb_handle) { io_task 4278 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle); io_task 4279 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle = NULL; io_task 4282 drivers/scsi/be2iscsi/be_main.c if (io_task->psgl_handle) { io_task 4283 drivers/scsi/be2iscsi/be_main.c free_io_sgl_handle(phba, io_task->psgl_handle); io_task 4284 drivers/scsi/be2iscsi/be_main.c io_task->psgl_handle = NULL; io_task 4287 drivers/scsi/be2iscsi/be_main.c if (io_task->scsi_cmnd) { io_task 4288 drivers/scsi/be2iscsi/be_main.c if (io_task->num_sg) io_task 4289 drivers/scsi/be2iscsi/be_main.c scsi_dma_unmap(io_task->scsi_cmnd); io_task 4290 drivers/scsi/be2iscsi/be_main.c io_task->scsi_cmnd = NULL; io_task 4375 drivers/scsi/be2iscsi/be_main.c struct beiscsi_io_task *io_task = task->dd_data; io_task 4386 drivers/scsi/be2iscsi/be_main.c io_task->cmd_bhs = dma_pool_alloc(beiscsi_sess->bhs_pool, io_task 4388 drivers/scsi/be2iscsi/be_main.c if (!io_task->cmd_bhs) io_task 4390 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a64.address = paddr; io_task 4391 drivers/scsi/be2iscsi/be_main.c io_task->libiscsi_itt = (itt_t)task->itt; io_task 4392 drivers/scsi/be2iscsi/be_main.c io_task->conn = beiscsi_conn; io_task 4394 drivers/scsi/be2iscsi/be_main.c task->hdr = (struct iscsi_hdr *)&io_task->cmd_bhs->iscsi_hdr; io_task 4396 drivers/scsi/be2iscsi/be_main.c io_task->psgl_handle = NULL; io_task 4397 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle = NULL; io_task 4400 drivers/scsi/be2iscsi/be_main.c io_task->psgl_handle = alloc_io_sgl_handle(phba); io_task 4401 drivers/scsi/be2iscsi/be_main.c if (!io_task->psgl_handle) { io_task 4409 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle = alloc_wrb_handle(phba, io_task 4411 drivers/scsi/be2iscsi/be_main.c &io_task->pwrb_context); io_task 4412 drivers/scsi/be2iscsi/be_main.c if (!io_task->pwrb_handle) { io_task 4421 drivers/scsi/be2iscsi/be_main.c io_task->scsi_cmnd = NULL; io_task 4425 drivers/scsi/be2iscsi/be_main.c io_task->psgl_handle = (struct sgl_handle *) io_task 4427 drivers/scsi/be2iscsi/be_main.c if (!io_task->psgl_handle) { io_task 4440 drivers/scsi/be2iscsi/be_main.c io_task->psgl_handle; io_task 4441 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle = io_task 4444 drivers/scsi/be2iscsi/be_main.c &io_task->pwrb_context); io_task 4445 drivers/scsi/be2iscsi/be_main.c if (!io_task->pwrb_handle) { io_task 4456 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle; io_task 4459 drivers/scsi/be2iscsi/be_main.c io_task->psgl_handle = io_task 4461 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle = io_task 4465 drivers/scsi/be2iscsi/be_main.c io_task->psgl_handle = alloc_mgmt_sgl_handle(phba); io_task 4466 drivers/scsi/be2iscsi/be_main.c if (!io_task->psgl_handle) { io_task 4476 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle = io_task 4479 drivers/scsi/be2iscsi/be_main.c &io_task->pwrb_context); io_task 4480 drivers/scsi/be2iscsi/be_main.c if (!io_task->pwrb_handle) { io_task 4491 drivers/scsi/be2iscsi/be_main.c itt = (itt_t) cpu_to_be32(((unsigned int)io_task->pwrb_handle-> io_task 4493 drivers/scsi/be2iscsi/be_main.c (io_task->psgl_handle->sgl_index)); io_task 4494 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->pio_handle = task; io_task 4496 drivers/scsi/be2iscsi/be_main.c io_task->cmd_bhs->iscsi_hdr.itt = itt; io_task 4500 drivers/scsi/be2iscsi/be_main.c free_io_sgl_handle(phba, io_task->psgl_handle); io_task 4503 drivers/scsi/be2iscsi/be_main.c free_mgmt_sgl_handle(phba, io_task->psgl_handle); io_task 4504 drivers/scsi/be2iscsi/be_main.c io_task->psgl_handle = NULL; io_task 4510 drivers/scsi/be2iscsi/be_main.c if (io_task->pwrb_handle) io_task 4511 drivers/scsi/be2iscsi/be_main.c free_wrb_handle(phba, pwrb_context, io_task->pwrb_handle); io_task 4512 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle = NULL; io_task 4513 drivers/scsi/be2iscsi/be_main.c dma_pool_free(beiscsi_sess->bhs_pool, io_task->cmd_bhs, io_task 4514 drivers/scsi/be2iscsi/be_main.c io_task->bhs_pa.u.a64.address); io_task 4515 drivers/scsi/be2iscsi/be_main.c io_task->cmd_bhs = NULL; io_task 4523 drivers/scsi/be2iscsi/be_main.c struct beiscsi_io_task *io_task = task->dd_data; io_task 4530 drivers/scsi/be2iscsi/be_main.c pwrb = io_task->pwrb_handle->pwrb; io_task 4532 drivers/scsi/be2iscsi/be_main.c io_task->bhs_len = sizeof(struct be_cmd_bhs); io_task 4544 drivers/scsi/be2iscsi/be_main.c io_task->wrb_type = AMAP_GET_BITS(struct amap_iscsi_wrb_v2, io_task 4549 drivers/scsi/be2iscsi/be_main.c &io_task->cmd_bhs->iscsi_hdr.lun)); io_task 4552 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->wrb_index); io_task 4556 drivers/scsi/be2iscsi/be_main.c io_task->psgl_handle->sgl_index); io_task 4558 drivers/scsi/be2iscsi/be_main.c hwi_write_sgl_v2(pwrb, sg, num_sg, io_task); io_task 4560 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->wrb_index); io_task 4561 drivers/scsi/be2iscsi/be_main.c if (io_task->pwrb_context->plast_wrb) io_task 4563 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_context->plast_wrb, io_task 4564 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->wrb_index); io_task 4565 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_context->plast_wrb = pwrb; io_task 4570 drivers/scsi/be2iscsi/be_main.c doorbell |= (io_task->pwrb_handle->wrb_index & io_task 4584 drivers/scsi/be2iscsi/be_main.c struct beiscsi_io_task *io_task = task->dd_data; io_task 4591 drivers/scsi/be2iscsi/be_main.c pwrb = io_task->pwrb_handle->pwrb; io_task 4592 drivers/scsi/be2iscsi/be_main.c io_task->bhs_len = sizeof(struct be_cmd_bhs); io_task 4604 drivers/scsi/be2iscsi/be_main.c io_task->wrb_type = AMAP_GET_BITS(struct amap_iscsi_wrb, io_task 4609 drivers/scsi/be2iscsi/be_main.c &io_task->cmd_bhs->iscsi_hdr.lun)); io_task 4612 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->wrb_index); io_task 4616 drivers/scsi/be2iscsi/be_main.c io_task->psgl_handle->sgl_index); io_task 4618 drivers/scsi/be2iscsi/be_main.c hwi_write_sgl(pwrb, sg, num_sg, io_task); io_task 4621 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->wrb_index); io_task 4622 drivers/scsi/be2iscsi/be_main.c if (io_task->pwrb_context->plast_wrb) io_task 4624 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_context->plast_wrb, io_task 4625 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->wrb_index); io_task 4626 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_context->plast_wrb = pwrb; io_task 4631 drivers/scsi/be2iscsi/be_main.c doorbell |= (io_task->pwrb_handle->wrb_index & io_task 4642 drivers/scsi/be2iscsi/be_main.c struct beiscsi_io_task *io_task = task->dd_data; io_task 4653 drivers/scsi/be2iscsi/be_main.c pwrb = io_task->pwrb_handle->pwrb; io_task 4659 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->wrb_index); io_task 4661 drivers/scsi/be2iscsi/be_main.c io_task->psgl_handle->sgl_index); io_task 4665 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->wrb_index); io_task 4666 drivers/scsi/be2iscsi/be_main.c if (io_task->pwrb_context->plast_wrb) io_task 4668 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_context->plast_wrb, io_task 4669 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->wrb_index); io_task 4670 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_context->plast_wrb = pwrb; io_task 4677 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->wrb_index); io_task 4679 drivers/scsi/be2iscsi/be_main.c io_task->psgl_handle->sgl_index); io_task 4683 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->wrb_index); io_task 4684 drivers/scsi/be2iscsi/be_main.c if (io_task->pwrb_context->plast_wrb) io_task 4686 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_context->plast_wrb, io_task 4687 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_handle->wrb_index); io_task 4688 drivers/scsi/be2iscsi/be_main.c io_task->pwrb_context->plast_wrb = pwrb; io_task 4745 drivers/scsi/be2iscsi/be_main.c io_task->wrb_type = (is_chip_be2_be3r(phba)) ? io_task 4750 drivers/scsi/be2iscsi/be_main.c doorbell |= (io_task->pwrb_handle->wrb_index & io_task 4760 drivers/scsi/be2iscsi/be_main.c struct beiscsi_io_task *io_task = task->dd_data; io_task 4767 drivers/scsi/be2iscsi/be_main.c phba = io_task->conn->phba; io_task 4776 drivers/scsi/be2iscsi/be_main.c if (!io_task->conn->login_in_progress) io_task 4782 drivers/scsi/be2iscsi/be_main.c io_task->scsi_cmnd = sc; io_task 4783 drivers/scsi/be2iscsi/be_main.c io_task->num_sg = 0; io_task 4790 drivers/scsi/be2iscsi/be_main.c be32_to_cpu(io_task->cmd_bhs->iscsi_hdr.itt), io_task 4791 drivers/scsi/be2iscsi/be_main.c io_task->libiscsi_itt, scsi_bufflen(sc)); io_task 4799 drivers/scsi/be2iscsi/be_main.c io_task->num_sg = num_sg;