Lines Matching refs:pthru

521 	mega_passthru	*pthru;  in mega_build_cmd()  local
699 pthru = scb->pthru; in mega_build_cmd()
703 memset(pthru, 0, sizeof(mega_passthru)); in mega_build_cmd()
705 pthru->timeout = 0; in mega_build_cmd()
706 pthru->ars = 1; in mega_build_cmd()
707 pthru->reqsenselen = 14; in mega_build_cmd()
708 pthru->islogical = 1; in mega_build_cmd()
709 pthru->logdrv = ldrv_num; in mega_build_cmd()
710 pthru->cdblen = cmd->cmd_len; in mega_build_cmd()
711 memcpy(pthru->cdb, cmd->cmnd, cmd->cmd_len); in mega_build_cmd()
722 pthru->numsgelements = mega_build_sglist(adapter, scb, in mega_build_cmd()
723 &pthru->dataxferaddr, &pthru->dataxferlen); in mega_build_cmd()
925 pthru = mega_prepare_passthru(adapter, scb, cmd, in mega_build_cmd()
959 mega_passthru *pthru; in mega_prepare_passthru() local
961 pthru = scb->pthru; in mega_prepare_passthru()
962 memset(pthru, 0, sizeof (mega_passthru)); in mega_prepare_passthru()
965 pthru->timeout = 2; in mega_prepare_passthru()
967 pthru->ars = 1; in mega_prepare_passthru()
968 pthru->reqsenselen = 14; in mega_prepare_passthru()
969 pthru->islogical = 0; in mega_prepare_passthru()
971 pthru->channel = (adapter->flag & BOARD_40LD) ? 0 : channel; in mega_prepare_passthru()
973 pthru->target = (adapter->flag & BOARD_40LD) ? in mega_prepare_passthru()
976 pthru->cdblen = cmd->cmd_len; in mega_prepare_passthru()
977 pthru->logdrv = cmd->device->lun; in mega_prepare_passthru()
979 memcpy(pthru->cdb, cmd->cmnd, cmd->cmd_len); in mega_prepare_passthru()
1000 pthru->numsgelements = mega_build_sglist(adapter, scb, in mega_prepare_passthru()
1001 &pthru->dataxferaddr, &pthru->dataxferlen); in mega_prepare_passthru()
1004 return pthru; in mega_prepare_passthru()
1423 mega_passthru *pthru = NULL; in mega_cmd_done() local
1448 pthru = scb->pthru; in mega_cmd_done()
1505 pthru = scb->pthru; in mega_cmd_done()
1584 memcpy(cmd->sense_buffer, pthru->reqsensearea, in mega_cmd_done()
1848 if( scb->pthru ) { in mega_free_sgl()
1850 scb->pthru, scb->pthru_dma_addr); in mega_free_sgl()
1852 scb->pthru = NULL; in mega_free_sgl()
3218 scb->pthru = NULL; in mega_init_scb()
3240 scb->pthru = pci_alloc_consistent(adapter->dev, in mega_init_scb()
3244 if( !scb->pthru ) { in mega_init_scb()
3318 mega_passthru *pthru; /* copy user passthru here */ in megadev_ioctl() local
3494 pthru = pci_alloc_consistent(pdev, in megadev_ioctl()
3498 if( pthru == NULL ) { in megadev_ioctl()
3511 if( copy_from_user(pthru, upthru, in megadev_ioctl()
3515 sizeof(mega_passthru), pthru, in megadev_ioctl()
3526 if( pthru->dataxferlen ) { in megadev_ioctl()
3528 pthru->dataxferlen, in megadev_ioctl()
3534 pthru, in megadev_ioctl()
3546 uxferaddr = pthru->dataxferaddr; in megadev_ioctl()
3547 pthru->dataxferaddr = data_dma_hndl; in megadev_ioctl()
3554 if( pthru->dataxferlen && (uioc.flags & UIOC_WR) ) { in megadev_ioctl()
3559 pthru->dataxferlen) ) { in megadev_ioctl()
3573 mega_internal_command(adapter, &mc, pthru); in megadev_ioctl()
3583 if( pthru->dataxferlen && (uioc.flags & UIOC_RD) ) { in megadev_ioctl()
3585 pthru->dataxferlen) ) { in megadev_ioctl()
3595 pthru->reqsensearea, 14)) in megadev_ioctl()
3599 if( pthru->dataxferlen ) { in megadev_ioctl()
3601 pthru->dataxferlen, data, in megadev_ioctl()
3606 pthru, pthru_dma_hndl); in megadev_ioctl()
4161 if (scb->pthru->logdrv < 0x80 ) in mega_del_logdrv()
4162 scb->pthru->logdrv += 0x80; in mega_del_logdrv()
4341 mega_passthru *pthru; in mega_internal_dev_inquiry() local
4354 pthru = pci_alloc_consistent(pdev, sizeof(mega_passthru), in mega_internal_dev_inquiry()
4357 if( pthru == NULL ) { in mega_internal_dev_inquiry()
4362 pthru->timeout = 2; in mega_internal_dev_inquiry()
4363 pthru->ars = 1; in mega_internal_dev_inquiry()
4364 pthru->reqsenselen = 14; in mega_internal_dev_inquiry()
4365 pthru->islogical = 0; in mega_internal_dev_inquiry()
4367 pthru->channel = (adapter->flag & BOARD_40LD) ? 0 : ch; in mega_internal_dev_inquiry()
4369 pthru->target = (adapter->flag & BOARD_40LD) ? (ch << 4)|tgt : tgt; in mega_internal_dev_inquiry()
4371 pthru->cdblen = 6; in mega_internal_dev_inquiry()
4373 pthru->cdb[0] = INQUIRY; in mega_internal_dev_inquiry()
4374 pthru->cdb[1] = 0; in mega_internal_dev_inquiry()
4375 pthru->cdb[2] = 0; in mega_internal_dev_inquiry()
4376 pthru->cdb[3] = 0; in mega_internal_dev_inquiry()
4377 pthru->cdb[4] = 255; in mega_internal_dev_inquiry()
4378 pthru->cdb[5] = 0; in mega_internal_dev_inquiry()
4381 pthru->dataxferaddr = (u32)buf_dma_handle; in mega_internal_dev_inquiry()
4382 pthru->dataxferlen = 256; in mega_internal_dev_inquiry()
4389 rval = mega_internal_command(adapter, &mc, pthru); in mega_internal_dev_inquiry()
4391 pci_free_consistent(pdev, sizeof(mega_passthru), pthru, in mega_internal_dev_inquiry()
4416 mega_internal_command(adapter_t *adapter, megacmd_t *mc, mega_passthru *pthru) in mega_internal_command() argument
4456 scb->pthru = pthru; in mega_internal_command()