Lines Matching refs:acmd
246 struct aha1542_cmd *acmd = scsi_cmd_priv(cmd); in aha1542_free_cmd() local
250 if (acmd->chain) { in aha1542_free_cmd()
251 dma_unmap_single(dev, acmd->chain_handle, len, DMA_TO_DEVICE); in aha1542_free_cmd()
252 kfree(acmd->chain); in aha1542_free_cmd()
255 acmd->chain = NULL; in aha1542_free_cmd()
394 struct aha1542_cmd *acmd = scsi_cmd_priv(cmd); in aha1542_queuecommand() local
427 acmd->chain = kmalloc(len, GFP_DMA); in aha1542_queuecommand()
428 if (!acmd->chain) in aha1542_queuecommand()
430 acmd->chain_handle = dma_map_single(sh->dma_dev, acmd->chain, in aha1542_queuecommand()
432 if (dma_mapping_error(sh->dma_dev, acmd->chain_handle)) in aha1542_queuecommand()
485 any2scsi(acmd->chain[i].dataptr, sg_dma_address(sg)); in aha1542_queuecommand()
486 any2scsi(acmd->chain[i].datalen, sg_dma_len(sg)); in aha1542_queuecommand()
489 any2scsi(ccb[mbo].dataptr, acmd->chain_handle); in aha1542_queuecommand()
491 shost_printk(KERN_DEBUG, sh, "cptr %p: ", acmd->chain); in aha1542_queuecommand()
492 print_hex_dump_bytes("cptr: ", DUMP_PREFIX_NONE, acmd->chain, 18); in aha1542_queuecommand()
514 kfree(acmd->chain); in aha1542_queuecommand()
515 acmd->chain = NULL; in aha1542_queuecommand()