Lines Matching refs:dcdb

1272 	struct myrb_dcdb *dcdb;  in myrb_pthru_queuecommand()  local
1280 dcdb = dma_pool_alloc(cb->dcdb_pool, GFP_ATOMIC, &dcdb_addr); in myrb_pthru_queuecommand()
1281 if (!dcdb) in myrb_pthru_queuecommand()
1285 dma_pool_free(cb->dcdb_pool, dcdb, dcdb_addr); in myrb_pthru_queuecommand()
1294 dcdb->channel = sdev->channel; in myrb_pthru_queuecommand()
1295 dcdb->target = sdev->id; in myrb_pthru_queuecommand()
1298 dcdb->data_xfer = MYRB_DCDB_XFER_NONE; in myrb_pthru_queuecommand()
1301 dcdb->data_xfer = MYRB_DCDB_XFER_SYSTEM_TO_DEVICE; in myrb_pthru_queuecommand()
1304 dcdb->data_xfer = MYRB_DCDB_XFER_DEVICE_TO_SYSTEM; in myrb_pthru_queuecommand()
1307 dcdb->data_xfer = MYRB_DCDB_XFER_ILLEGAL; in myrb_pthru_queuecommand()
1310 dcdb->early_status = false; in myrb_pthru_queuecommand()
1312 dcdb->timeout = MYRB_DCDB_TMO_10_SECS; in myrb_pthru_queuecommand()
1314 dcdb->timeout = MYRB_DCDB_TMO_60_SECS; in myrb_pthru_queuecommand()
1316 dcdb->timeout = MYRB_DCDB_TMO_10_MINS; in myrb_pthru_queuecommand()
1318 dcdb->timeout = MYRB_DCDB_TMO_24_HRS; in myrb_pthru_queuecommand()
1319 dcdb->no_autosense = false; in myrb_pthru_queuecommand()
1320 dcdb->allow_disconnect = true; in myrb_pthru_queuecommand()
1322 dcdb->dma_addr = sg_dma_address(sgl); in myrb_pthru_queuecommand()
1324 dcdb->xfer_len_lo = sg_dma_len(sgl) & 0xffff; in myrb_pthru_queuecommand()
1325 dcdb->xfer_len_hi4 = sg_dma_len(sgl) >> 16; in myrb_pthru_queuecommand()
1327 dcdb->xfer_len_lo = sg_dma_len(sgl); in myrb_pthru_queuecommand()
1328 dcdb->xfer_len_hi4 = 0; in myrb_pthru_queuecommand()
1330 dcdb->cdb_len = scmd->cmd_len; in myrb_pthru_queuecommand()
1331 dcdb->sense_len = sizeof(dcdb->sense); in myrb_pthru_queuecommand()
1332 memcpy(&dcdb->cdb, scmd->cmnd, scmd->cmd_len); in myrb_pthru_queuecommand()
2336 if (cmd_blk->dcdb) { in myrb_handle_scsi()
2337 memcpy(scmd->sense_buffer, &cmd_blk->dcdb->sense, 64); in myrb_handle_scsi()
2338 dma_pool_free(cb->dcdb_pool, cmd_blk->dcdb, in myrb_handle_scsi()
2340 cmd_blk->dcdb = NULL; in myrb_handle_scsi()