Lines Matching refs:pthru

525 	mega_passthru	*pthru;  in mega_build_cmd()  local
696 pthru = scb->pthru; in mega_build_cmd()
700 memset(pthru, 0, sizeof(mega_passthru)); in mega_build_cmd()
702 pthru->timeout = 0; in mega_build_cmd()
703 pthru->ars = 1; in mega_build_cmd()
704 pthru->reqsenselen = 14; in mega_build_cmd()
705 pthru->islogical = 1; in mega_build_cmd()
706 pthru->logdrv = ldrv_num; in mega_build_cmd()
707 pthru->cdblen = cmd->cmd_len; in mega_build_cmd()
708 memcpy(pthru->cdb, cmd->cmnd, cmd->cmd_len); in mega_build_cmd()
719 pthru->numsgelements = mega_build_sglist(adapter, scb, in mega_build_cmd()
720 &pthru->dataxferaddr, &pthru->dataxferlen); in mega_build_cmd()
922 pthru = mega_prepare_passthru(adapter, scb, cmd, in mega_build_cmd()
956 mega_passthru *pthru; in mega_prepare_passthru() local
958 pthru = scb->pthru; in mega_prepare_passthru()
959 memset(pthru, 0, sizeof (mega_passthru)); in mega_prepare_passthru()
962 pthru->timeout = 2; in mega_prepare_passthru()
964 pthru->ars = 1; in mega_prepare_passthru()
965 pthru->reqsenselen = 14; in mega_prepare_passthru()
966 pthru->islogical = 0; in mega_prepare_passthru()
968 pthru->channel = (adapter->flag & BOARD_40LD) ? 0 : channel; in mega_prepare_passthru()
970 pthru->target = (adapter->flag & BOARD_40LD) ? in mega_prepare_passthru()
973 pthru->cdblen = cmd->cmd_len; in mega_prepare_passthru()
974 pthru->logdrv = cmd->device->lun; in mega_prepare_passthru()
976 memcpy(pthru->cdb, cmd->cmnd, cmd->cmd_len); in mega_prepare_passthru()
997 pthru->numsgelements = mega_build_sglist(adapter, scb, in mega_prepare_passthru()
998 &pthru->dataxferaddr, &pthru->dataxferlen); in mega_prepare_passthru()
1001 return pthru; in mega_prepare_passthru()
1421 mega_passthru *pthru = NULL; in mega_cmd_done() local
1505 pthru = scb->pthru; in mega_cmd_done()
1583 memcpy(cmd->sense_buffer, pthru->reqsensearea, in mega_cmd_done()
1828 if( scb->pthru ) { in mega_free_sgl()
1830 sizeof(mega_passthru), scb->pthru, in mega_free_sgl()
1833 scb->pthru = NULL; in mega_free_sgl()
2882 scb->pthru = NULL; in mega_init_scb()
2904 scb->pthru = dma_alloc_coherent(&adapter->dev->dev, in mega_init_scb()
2908 if( !scb->pthru ) { in mega_init_scb()
2981 mega_passthru *pthru; /* copy user passthru here */ in megadev_ioctl() local
3156 pthru = dma_alloc_coherent(&pdev->dev, in megadev_ioctl()
3160 if( pthru == NULL ) { in megadev_ioctl()
3173 if( copy_from_user(pthru, upthru, in megadev_ioctl()
3178 pthru, pthru_dma_hndl); in megadev_ioctl()
3188 if( pthru->dataxferlen ) { in megadev_ioctl()
3190 pthru->dataxferlen, in megadev_ioctl()
3197 pthru, in megadev_ioctl()
3209 uxferaddr = pthru->dataxferaddr; in megadev_ioctl()
3210 pthru->dataxferaddr = data_dma_hndl; in megadev_ioctl()
3217 if( pthru->dataxferlen && (uioc.flags & UIOC_WR) ) { in megadev_ioctl()
3222 pthru->dataxferlen) ) { in megadev_ioctl()
3236 mega_internal_command(adapter, &mc, pthru); in megadev_ioctl()
3246 if( pthru->dataxferlen && (uioc.flags & UIOC_RD) ) { in megadev_ioctl()
3248 pthru->dataxferlen) ) { in megadev_ioctl()
3258 pthru->reqsensearea, 14)) in megadev_ioctl()
3262 if( pthru->dataxferlen ) { in megadev_ioctl()
3264 pthru->dataxferlen, data, in megadev_ioctl()
3269 pthru, pthru_dma_hndl); in megadev_ioctl()
3823 if (scb->pthru->logdrv < 0x80 ) in mega_del_logdrv()
3824 scb->pthru->logdrv += 0x80; in mega_del_logdrv()
4004 mega_passthru *pthru; in mega_internal_dev_inquiry() local
4017 pthru = dma_alloc_coherent(&pdev->dev, sizeof(mega_passthru), in mega_internal_dev_inquiry()
4020 if( pthru == NULL ) { in mega_internal_dev_inquiry()
4025 pthru->timeout = 2; in mega_internal_dev_inquiry()
4026 pthru->ars = 1; in mega_internal_dev_inquiry()
4027 pthru->reqsenselen = 14; in mega_internal_dev_inquiry()
4028 pthru->islogical = 0; in mega_internal_dev_inquiry()
4030 pthru->channel = (adapter->flag & BOARD_40LD) ? 0 : ch; in mega_internal_dev_inquiry()
4032 pthru->target = (adapter->flag & BOARD_40LD) ? (ch << 4)|tgt : tgt; in mega_internal_dev_inquiry()
4034 pthru->cdblen = 6; in mega_internal_dev_inquiry()
4036 pthru->cdb[0] = INQUIRY; in mega_internal_dev_inquiry()
4037 pthru->cdb[1] = 0; in mega_internal_dev_inquiry()
4038 pthru->cdb[2] = 0; in mega_internal_dev_inquiry()
4039 pthru->cdb[3] = 0; in mega_internal_dev_inquiry()
4040 pthru->cdb[4] = 255; in mega_internal_dev_inquiry()
4041 pthru->cdb[5] = 0; in mega_internal_dev_inquiry()
4044 pthru->dataxferaddr = (u32)buf_dma_handle; in mega_internal_dev_inquiry()
4045 pthru->dataxferlen = 256; in mega_internal_dev_inquiry()
4052 rval = mega_internal_command(adapter, &mc, pthru); in mega_internal_dev_inquiry()
4054 dma_free_coherent(&pdev->dev, sizeof(mega_passthru), pthru, in mega_internal_dev_inquiry()
4076 mega_internal_command(adapter_t *adapter, megacmd_t *mc, mega_passthru *pthru) in mega_internal_command() argument
4101 scb->pthru = pthru; in mega_internal_command()