Lines Matching refs:pthru
1246 mega_passthru *pthru; in mega_build_cmd() local
1407 pthru = scb->pthru; in mega_build_cmd()
1411 memset(pthru, 0, sizeof(mega_passthru)); in mega_build_cmd()
1413 pthru->timeout = 0; in mega_build_cmd()
1414 pthru->ars = 1; in mega_build_cmd()
1415 pthru->reqsenselen = 14; in mega_build_cmd()
1416 pthru->islogical = 1; in mega_build_cmd()
1417 pthru->logdrv = ldrv_num; in mega_build_cmd()
1418 pthru->cdblen = cmd->cmd_len; in mega_build_cmd()
1419 memcpy(pthru->cdb, cmd->cmnd, cmd->cmd_len); in mega_build_cmd()
1430 pthru->numsgelements = mega_build_sglist(adapter, scb, in mega_build_cmd()
1431 &pthru->dataxferaddr, &pthru->dataxferlen); in mega_build_cmd()
1645 pthru = mega_prepare_passthru(adapter, scb, cmd, in mega_build_cmd()
1679 mega_passthru *pthru; in mega_prepare_passthru() local
1681 pthru = scb->pthru; in mega_prepare_passthru()
1682 memset(pthru, 0, sizeof (mega_passthru)); in mega_prepare_passthru()
1685 pthru->timeout = 4; in mega_prepare_passthru()
1687 pthru->ars = 1; in mega_prepare_passthru()
1688 pthru->reqsenselen = 14; in mega_prepare_passthru()
1689 pthru->islogical = 0; in mega_prepare_passthru()
1691 pthru->channel = (adapter->flag & BOARD_40LD) ? 0 : channel; in mega_prepare_passthru()
1693 pthru->target = (adapter->flag & BOARD_40LD) ? in mega_prepare_passthru()
1696 pthru->cdblen = cmd->cmd_len; in mega_prepare_passthru()
1697 pthru->logdrv = cmd->lun; in mega_prepare_passthru()
1699 memcpy(pthru->cdb, cmd->cmnd, cmd->cmd_len); in mega_prepare_passthru()
1720 pthru->numsgelements = mega_build_sglist(adapter, scb, in mega_prepare_passthru()
1721 &pthru->dataxferaddr, &pthru->dataxferlen); in mega_prepare_passthru()
1724 return pthru; in mega_prepare_passthru()
1933 mega_passthru *pthru = NULL; in mega_cmd_done() local
1958 pthru = scb->pthru; in mega_cmd_done()
1964 pthru = scb->pthru; in mega_cmd_done()
2092 memcpy(cmd->sense_buffer, pthru->reqsensearea, in mega_cmd_done()
2584 if( scb->pthru ) { in mega_free_sgl()
2586 scb->pthru, scb->pthru_dma_addr); in mega_free_sgl()
2588 scb->pthru = NULL; in mega_free_sgl()
4091 scb->pthru = NULL; in mega_init_scb()
4113 scb->pthru = pci_alloc_consistent(adapter->dev, in mega_init_scb()
4117 if( !scb->pthru ) { in mega_init_scb()
4216 mega_passthru *pthru; /* copy user passthru here */ in megadev_ioctl() local
4390 pthru = adapter->int_pthru; in megadev_ioctl()
4395 upthru = &uioc.pthru; in megadev_ioctl()
4396 memcpy(pthru, (char *)upthru,sizeof(mega_passthru)); in megadev_ioctl()
4403 if (pthru->dataxferlen) { in megadev_ioctl()
4404 if (pthru->dataxferlen > INT_MEMBLK_SZ) { in megadev_ioctl()
4407 pthru->dataxferlen, in megadev_ioctl()
4424 pthru->dataxferaddr = data_dma_hndl; in megadev_ioctl()
4426 pthru->dataxferaddr = in megadev_ioctl()
4434 if(pthru->dataxferlen && (uioc.flags & UIOC_WR) ) { in megadev_ioctl()
4440 pthru->dataxferlen) ) { in megadev_ioctl()
4454 mega_internal_command(adapter, LOCK_INT, &mc, pthru); in megadev_ioctl()
4464 if( pthru->dataxferlen && (uioc.flags & UIOC_RD) ) { in megadev_ioctl()
4466 data, pthru->dataxferlen) ) { in megadev_ioctl()
4476 pthru->reqsensearea, 14); in megadev_ioctl()
4479 pci_free_consistent( pdev, pthru->dataxferlen, in megadev_ioctl()
4674 memcpy(&uioc->pthru,&uioc_mimd.pthru, in mega_m_to_n()
4699 memcpy(&uioc->pthru,&uioc_mimd.pthru, in mega_m_to_n()
4764 upthru = (mega_passthru *)((ulong)&uioc_mimd->pthru); in mega_n_to_m()
5406 mega_passthru *pthru; in mega_internal_dev_inquiry() local
5419 pthru = pci_alloc_consistent(pdev, sizeof(mega_passthru), in mega_internal_dev_inquiry()
5422 if( pthru == NULL ) { in mega_internal_dev_inquiry()
5426 pthru->timeout = 2; in mega_internal_dev_inquiry()
5427 pthru->ars = 1; in mega_internal_dev_inquiry()
5428 pthru->reqsenselen = 14; in mega_internal_dev_inquiry()
5429 pthru->islogical = 0; in mega_internal_dev_inquiry()
5431 pthru->channel = (adapter->flag & BOARD_40LD) ? 0 : ch; in mega_internal_dev_inquiry()
5433 pthru->target = (adapter->flag & BOARD_40LD) ? (ch << 4)|tgt : tgt; in mega_internal_dev_inquiry()
5435 pthru->cdblen = 6; in mega_internal_dev_inquiry()
5437 pthru->cdb[0] = INQUIRY; in mega_internal_dev_inquiry()
5438 pthru->cdb[1] = 0; in mega_internal_dev_inquiry()
5439 pthru->cdb[2] = 0; in mega_internal_dev_inquiry()
5440 pthru->cdb[3] = 0; in mega_internal_dev_inquiry()
5441 pthru->cdb[4] = 255; in mega_internal_dev_inquiry()
5442 pthru->cdb[5] = 0; in mega_internal_dev_inquiry()
5445 pthru->dataxferaddr = (u32)buf_dma_handle; in mega_internal_dev_inquiry()
5446 pthru->dataxferlen = 256; in mega_internal_dev_inquiry()
5453 rval = mega_internal_command(adapter, LOCK_INT, &mc, pthru); in mega_internal_dev_inquiry()
5455 pci_free_consistent(pdev, sizeof(mega_passthru), pthru, in mega_internal_dev_inquiry()
5481 mega_passthru *pthru ) in mega_internal_command() argument
5515 scb->pthru = pthru; in mega_internal_command()