Lines Matching refs:u
538 writel(DPMEM_MAGIC, &dp6_ptr->u); in gdth_init_pci()
539 if (readl(&dp6_ptr->u) != DPMEM_MAGIC) { in gdth_init_pci()
562 writel(DPMEM_MAGIC, &dp6_ptr->u); in gdth_init_pci()
563 if (readl(&dp6_ptr->u) == DPMEM_MAGIC) { in gdth_init_pci()
575 memset_io(&dp6_ptr->u, 0, sizeof(dp6_ptr->u)); in gdth_init_pci()
576 if (readl(&dp6_ptr->u) != 0) { in gdth_init_pci()
585 writeb(0x00, &dp6_ptr->u.ic.S_Status); in gdth_init_pci()
586 writeb(0x00, &dp6_ptr->u.ic.Cmd_Index); in gdth_init_pci()
588 writel(pcistr->dpmem, &dp6_ptr->u.ic.S_Info[0]); in gdth_init_pci()
589 writeb(0xff, &dp6_ptr->u.ic.S_Cmd_Indx); in gdth_init_pci()
593 while (readb(&dp6_ptr->u.ic.S_Status) != 0xff) { in gdth_init_pci()
601 prot_ver = (u8)readl(&dp6_ptr->u.ic.S_Info[0]); in gdth_init_pci()
602 writeb(0, &dp6_ptr->u.ic.S_Status); in gdth_init_pci()
611 ha->ic_all_size = sizeof(dp6_ptr->u); in gdth_init_pci()
614 writel(0x00, &dp6_ptr->u.ic.S_Info[0]); in gdth_init_pci()
615 writel(0x00, &dp6_ptr->u.ic.S_Info[1]); in gdth_init_pci()
616 writel(0x00, &dp6_ptr->u.ic.S_Info[2]); in gdth_init_pci()
617 writel(0x00, &dp6_ptr->u.ic.S_Info[3]); in gdth_init_pci()
618 writeb(0xfe, &dp6_ptr->u.ic.S_Cmd_Indx); in gdth_init_pci()
622 while (readb(&dp6_ptr->u.ic.S_Status) != 0xfe) { in gdth_init_pci()
630 writeb(0, &dp6_ptr->u.ic.S_Status); in gdth_init_pci()
647 writel(DPMEM_MAGIC, &dp6c_ptr->u); in gdth_init_pci()
648 if (readl(&dp6c_ptr->u) != DPMEM_MAGIC) { in gdth_init_pci()
671 writel(DPMEM_MAGIC, &dp6c_ptr->u); in gdth_init_pci()
672 if (readl(&dp6c_ptr->u) == DPMEM_MAGIC) { in gdth_init_pci()
684 memset_io(&dp6c_ptr->u, 0, sizeof(dp6c_ptr->u)); in gdth_init_pci()
685 if (readl(&dp6c_ptr->u) != 0) { in gdth_init_pci()
695 writeb(0x00, &dp6c_ptr->u.ic.S_Status); in gdth_init_pci()
696 writeb(0x00, &dp6c_ptr->u.ic.Cmd_Index); in gdth_init_pci()
698 writel(pcistr->dpmem, &dp6c_ptr->u.ic.S_Info[0]); in gdth_init_pci()
699 writeb(0xff, &dp6c_ptr->u.ic.S_Cmd_Indx); in gdth_init_pci()
705 while (readb(&dp6c_ptr->u.ic.S_Status) != 0xff) { in gdth_init_pci()
713 prot_ver = (u8)readl(&dp6c_ptr->u.ic.S_Info[0]); in gdth_init_pci()
714 writeb(0, &dp6c_ptr->u.ic.Status); in gdth_init_pci()
722 ha->ic_all_size = sizeof(dp6c_ptr->u); in gdth_init_pci()
725 writel(0x00, &dp6c_ptr->u.ic.S_Info[0]); in gdth_init_pci()
726 writel(0x00, &dp6c_ptr->u.ic.S_Info[1]); in gdth_init_pci()
727 writel(0x00, &dp6c_ptr->u.ic.S_Info[2]); in gdth_init_pci()
728 writel(0x00, &dp6c_ptr->u.ic.S_Info[3]); in gdth_init_pci()
729 writeb(0xfe, &dp6c_ptr->u.ic.S_Cmd_Indx); in gdth_init_pci()
735 while (readb(&dp6c_ptr->u.ic.S_Status) != 0xfe) { in gdth_init_pci()
743 writeb(0, &dp6c_ptr->u.ic.S_Status); in gdth_init_pci()
769 writel(DPMEM_MAGIC, &dp6m_ptr->u); in gdth_init_pci()
770 if (readl(&dp6m_ptr->u) != DPMEM_MAGIC) { in gdth_init_pci()
793 writel(DPMEM_MAGIC, &dp6m_ptr->u); in gdth_init_pci()
794 if (readl(&dp6m_ptr->u) == DPMEM_MAGIC) { in gdth_init_pci()
806 memset_io(&dp6m_ptr->u, 0, sizeof(dp6m_ptr->u)); in gdth_init_pci()
812 writeb(0x00, &dp6m_ptr->u.ic.S_Status); in gdth_init_pci()
813 writeb(0x00, &dp6m_ptr->u.ic.Cmd_Index); in gdth_init_pci()
815 writel(pcistr->dpmem, &dp6m_ptr->u.ic.S_Info[0]); in gdth_init_pci()
816 writeb(0xff, &dp6m_ptr->u.ic.S_Cmd_Indx); in gdth_init_pci()
820 while (readb(&dp6m_ptr->u.ic.S_Status) != 0xff) { in gdth_init_pci()
828 prot_ver = (u8)readl(&dp6m_ptr->u.ic.S_Info[0]); in gdth_init_pci()
829 writeb(0, &dp6m_ptr->u.ic.S_Status); in gdth_init_pci()
837 ha->ic_all_size = sizeof(dp6m_ptr->u); in gdth_init_pci()
840 writel(0x00, &dp6m_ptr->u.ic.S_Info[0]); in gdth_init_pci()
841 writel(0x00, &dp6m_ptr->u.ic.S_Info[1]); in gdth_init_pci()
842 writel(0x00, &dp6m_ptr->u.ic.S_Info[2]); in gdth_init_pci()
843 writel(0x00, &dp6m_ptr->u.ic.S_Info[3]); in gdth_init_pci()
844 writeb(0xfe, &dp6m_ptr->u.ic.S_Cmd_Indx); in gdth_init_pci()
848 while (readb(&dp6m_ptr->u.ic.S_Status) != 0xfe) { in gdth_init_pci()
856 writeb(0, &dp6m_ptr->u.ic.S_Status); in gdth_init_pci()
859 writeb(0xfd, &dp6m_ptr->u.ic.S_Cmd_Indx); in gdth_init_pci()
863 while (readb(&dp6m_ptr->u.ic.S_Status) != 0xfd) { in gdth_init_pci()
871 prot_ver = (u8)(readl(&dp6m_ptr->u.ic.S_Info[0]) >> 16); in gdth_init_pci()
872 writeb(0, &dp6m_ptr->u.ic.S_Status); in gdth_init_pci()
896 writeb(0, &dp6_ptr->u.ic.Cmd_Index); in gdth_enable_int()
919 readb(&((gdt6_dpram_str __iomem *)ha->brd)->u.ic.Cmd_Index); in gdth_get_status()
936 gdtsema0 = (int)readb(&((gdt6_dpram_str __iomem *)ha->brd)->u.ic.Sema0); in gdth_test_busy()
970 writeb(1, &((gdt6_dpram_str __iomem *)ha->brd)->u.ic.Sema0); in gdth_set_sema0()
1006 &dp6_ptr->u.ic.comm_queue[cmd_no].offset); in gdth_copy_command()
1008 &dp6_ptr->u.ic.comm_queue[cmd_no].serv_id); in gdth_copy_command()
1009 memcpy_toio(&dp6_ptr->u.ic.gdt_dpr_cmd[dp_offset],cmd_ptr,cp_count); in gdth_copy_command()
1013 &dp6c_ptr->u.ic.comm_queue[cmd_no].offset); in gdth_copy_command()
1015 &dp6c_ptr->u.ic.comm_queue[cmd_no].serv_id); in gdth_copy_command()
1016 memcpy_toio(&dp6c_ptr->u.ic.gdt_dpr_cmd[dp_offset],cmd_ptr,cp_count); in gdth_copy_command()
1020 &dp6m_ptr->u.ic.comm_queue[cmd_no].offset); in gdth_copy_command()
1022 &dp6m_ptr->u.ic.comm_queue[cmd_no].serv_id); in gdth_copy_command()
1023 memcpy_toio(&dp6m_ptr->u.ic.gdt_dpr_cmd[dp_offset],cmd_ptr,cp_count); in gdth_copy_command()
1108 cmd_ptr->u.ioctl.subfunc = p1; in gdth_internal_cmd()
1109 cmd_ptr->u.ioctl.channel = (u32)p2; in gdth_internal_cmd()
1110 cmd_ptr->u.ioctl.param_size = (u16)p3; in gdth_internal_cmd()
1111 cmd_ptr->u.ioctl.p_param = ha->scratch_phys; in gdth_internal_cmd()
1114 cmd_ptr->u.cache64.DeviceNo = (u16)p1; in gdth_internal_cmd()
1115 cmd_ptr->u.cache64.BlockNo = p2; in gdth_internal_cmd()
1117 cmd_ptr->u.cache.DeviceNo = (u16)p1; in gdth_internal_cmd()
1118 cmd_ptr->u.cache.BlockNo = (u32)p2; in gdth_internal_cmd()
1123 cmd_ptr->u.raw64.direction = p1; in gdth_internal_cmd()
1124 cmd_ptr->u.raw64.bus = (u8)p2; in gdth_internal_cmd()
1125 cmd_ptr->u.raw64.target = (u8)p3; in gdth_internal_cmd()
1126 cmd_ptr->u.raw64.lun = (u8)(p3 >> 8); in gdth_internal_cmd()
1128 cmd_ptr->u.raw.direction = p1; in gdth_internal_cmd()
1129 cmd_ptr->u.raw.bus = (u8)p2; in gdth_internal_cmd()
1130 cmd_ptr->u.raw.target = (u8)p3; in gdth_internal_cmd()
1131 cmd_ptr->u.raw.lun = (u8)(p3 >> 8); in gdth_internal_cmd()
1135 *(u32 *)&cmd_ptr->u.screen.su.data[0] = p1; in gdth_internal_cmd()
1136 *(u32 *)&cmd_ptr->u.screen.su.data[4] = (u32)p2; in gdth_internal_cmd()
1137 *(u32 *)&cmd_ptr->u.screen.su.data[8] = (u32)p3; in gdth_internal_cmd()
2033 cmdp->u.cache64.DeviceNo = hdrive; in gdth_fill_cache_cmd()
2034 cmdp->u.cache64.BlockNo = 1; in gdth_fill_cache_cmd()
2035 cmdp->u.cache64.sg_canz = 0; in gdth_fill_cache_cmd()
2037 cmdp->u.cache.DeviceNo = hdrive; in gdth_fill_cache_cmd()
2038 cmdp->u.cache.BlockNo = 1; in gdth_fill_cache_cmd()
2039 cmdp->u.cache.sg_canz = 0; in gdth_fill_cache_cmd()
2059 cmdp->u.cache64.BlockNo = blockno; in gdth_fill_cache_cmd()
2060 cmdp->u.cache64.BlockCnt = blockcnt; in gdth_fill_cache_cmd()
2062 cmdp->u.cache.BlockNo = (u32)blockno; in gdth_fill_cache_cmd()
2063 cmdp->u.cache.BlockCnt = blockcnt; in gdth_fill_cache_cmd()
2074 cmdp->u.cache64.DestAddr= (u64)-1; in gdth_fill_cache_cmd()
2075 cmdp->u.cache64.sg_canz = sgcnt; in gdth_fill_cache_cmd()
2077 cmdp->u.cache64.sg_lst[i].sg_ptr = sg_dma_address(sl); in gdth_fill_cache_cmd()
2078 cmdp->u.cache64.sg_lst[i].sg_len = sg_dma_len(sl); in gdth_fill_cache_cmd()
2083 cmdp->u.cache.DestAddr= 0xffffffff; in gdth_fill_cache_cmd()
2084 cmdp->u.cache.sg_canz = sgcnt; in gdth_fill_cache_cmd()
2086 cmdp->u.cache.sg_lst[i].sg_ptr = sg_dma_address(sl); in gdth_fill_cache_cmd()
2087 cmdp->u.cache.sg_lst[i].sg_len = sg_dma_len(sl); in gdth_fill_cache_cmd()
2103 cmdp->u.cache64.DestAddr,cmdp->u.cache64.sg_canz, in gdth_fill_cache_cmd()
2104 cmdp->u.cache64.sg_lst[0].sg_ptr, in gdth_fill_cache_cmd()
2105 cmdp->u.cache64.sg_lst[0].sg_len)); in gdth_fill_cache_cmd()
2107 cmdp->OpCode,cmdp->u.cache64.BlockNo,cmdp->u.cache64.BlockCnt)); in gdth_fill_cache_cmd()
2108 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.cache64.sg_lst) + in gdth_fill_cache_cmd()
2109 (u16)cmdp->u.cache64.sg_canz * sizeof(gdth_sg64_str); in gdth_fill_cache_cmd()
2112 cmdp->u.cache.DestAddr,cmdp->u.cache.sg_canz, in gdth_fill_cache_cmd()
2113 cmdp->u.cache.sg_lst[0].sg_ptr, in gdth_fill_cache_cmd()
2114 cmdp->u.cache.sg_lst[0].sg_len)); in gdth_fill_cache_cmd()
2116 cmdp->OpCode,cmdp->u.cache.BlockNo,cmdp->u.cache.BlockCnt)); in gdth_fill_cache_cmd()
2117 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.cache.sg_lst) + in gdth_fill_cache_cmd()
2118 (u16)cmdp->u.cache.sg_canz * sizeof(gdth_sg_str); in gdth_fill_cache_cmd()
2171 cmdp->u.raw64.direction = (cmndinfo->phase >> 8); in gdth_fill_raw_cmd()
2173 cmdp->OpCode, cmdp->u.raw64.direction)); in gdth_fill_raw_cmd()
2175 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.raw64.sg_lst); in gdth_fill_raw_cmd()
2177 cmdp->u.raw.direction = (cmndinfo->phase >> 8); in gdth_fill_raw_cmd()
2179 cmdp->OpCode, cmdp->u.raw.direction)); in gdth_fill_raw_cmd()
2181 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.raw.sg_lst); in gdth_fill_raw_cmd()
2192 cmdp->u.raw64.reserved = 0; in gdth_fill_raw_cmd()
2193 cmdp->u.raw64.mdisc_time = 0; in gdth_fill_raw_cmd()
2194 cmdp->u.raw64.mcon_time = 0; in gdth_fill_raw_cmd()
2195 cmdp->u.raw64.clen = scp->cmd_len; in gdth_fill_raw_cmd()
2196 cmdp->u.raw64.target = t; in gdth_fill_raw_cmd()
2197 cmdp->u.raw64.lun = l; in gdth_fill_raw_cmd()
2198 cmdp->u.raw64.bus = b; in gdth_fill_raw_cmd()
2199 cmdp->u.raw64.priority = 0; in gdth_fill_raw_cmd()
2200 cmdp->u.raw64.sdlen = scsi_bufflen(scp); in gdth_fill_raw_cmd()
2201 cmdp->u.raw64.sense_len = 16; in gdth_fill_raw_cmd()
2202 cmdp->u.raw64.sense_data = sense_paddr; in gdth_fill_raw_cmd()
2203 cmdp->u.raw64.direction = in gdth_fill_raw_cmd()
2205 memcpy(cmdp->u.raw64.cmd,scp->cmnd,16); in gdth_fill_raw_cmd()
2206 cmdp->u.raw64.sg_ranz = 0; in gdth_fill_raw_cmd()
2208 cmdp->u.raw.reserved = 0; in gdth_fill_raw_cmd()
2209 cmdp->u.raw.mdisc_time = 0; in gdth_fill_raw_cmd()
2210 cmdp->u.raw.mcon_time = 0; in gdth_fill_raw_cmd()
2211 cmdp->u.raw.clen = scp->cmd_len; in gdth_fill_raw_cmd()
2212 cmdp->u.raw.target = t; in gdth_fill_raw_cmd()
2213 cmdp->u.raw.lun = l; in gdth_fill_raw_cmd()
2214 cmdp->u.raw.bus = b; in gdth_fill_raw_cmd()
2215 cmdp->u.raw.priority = 0; in gdth_fill_raw_cmd()
2216 cmdp->u.raw.link_p = 0; in gdth_fill_raw_cmd()
2217 cmdp->u.raw.sdlen = scsi_bufflen(scp); in gdth_fill_raw_cmd()
2218 cmdp->u.raw.sense_len = 16; in gdth_fill_raw_cmd()
2219 cmdp->u.raw.sense_data = sense_paddr; in gdth_fill_raw_cmd()
2220 cmdp->u.raw.direction = in gdth_fill_raw_cmd()
2222 memcpy(cmdp->u.raw.cmd,scp->cmnd,12); in gdth_fill_raw_cmd()
2223 cmdp->u.raw.sg_ranz = 0; in gdth_fill_raw_cmd()
2233 cmdp->u.raw64.sdata = (u64)-1; in gdth_fill_raw_cmd()
2234 cmdp->u.raw64.sg_ranz = sgcnt; in gdth_fill_raw_cmd()
2236 cmdp->u.raw64.sg_lst[i].sg_ptr = sg_dma_address(sl); in gdth_fill_raw_cmd()
2237 cmdp->u.raw64.sg_lst[i].sg_len = sg_dma_len(sl); in gdth_fill_raw_cmd()
2242 cmdp->u.raw.sdata = 0xffffffff; in gdth_fill_raw_cmd()
2243 cmdp->u.raw.sg_ranz = sgcnt; in gdth_fill_raw_cmd()
2245 cmdp->u.raw.sg_lst[i].sg_ptr = sg_dma_address(sl); in gdth_fill_raw_cmd()
2246 cmdp->u.raw.sg_lst[i].sg_len = sg_dma_len(sl); in gdth_fill_raw_cmd()
2260 cmdp->u.raw64.sdata,cmdp->u.raw64.sg_ranz, in gdth_fill_raw_cmd()
2261 cmdp->u.raw64.sg_lst[0].sg_ptr, in gdth_fill_raw_cmd()
2262 cmdp->u.raw64.sg_lst[0].sg_len)); in gdth_fill_raw_cmd()
2264 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.raw64.sg_lst) + in gdth_fill_raw_cmd()
2265 (u16)cmdp->u.raw64.sg_ranz * sizeof(gdth_sg64_str); in gdth_fill_raw_cmd()
2268 cmdp->u.raw.sdata,cmdp->u.raw.sg_ranz, in gdth_fill_raw_cmd()
2269 cmdp->u.raw.sg_lst[0].sg_ptr, in gdth_fill_raw_cmd()
2270 cmdp->u.raw.sg_lst[0].sg_len)); in gdth_fill_raw_cmd()
2272 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.raw.sg_lst) + in gdth_fill_raw_cmd()
2273 (u16)cmdp->u.raw.sg_ranz * sizeof(gdth_sg_str); in gdth_fill_raw_cmd()
2320 GDTOFFSOF(gdth_cmd_str,u.ioctl.p_param) + sizeof(u64); in gdth_special_cmd()
2325 GDTOFFSOF(gdth_cmd_str,u.cache64.sg_lst) + sizeof(gdth_sg64_str); in gdth_special_cmd()
2328 GDTOFFSOF(gdth_cmd_str,u.cache.sg_lst) + sizeof(gdth_sg_str); in gdth_special_cmd()
2333 GDTOFFSOF(gdth_cmd_str,u.raw64.sg_lst) + sizeof(gdth_sg64_str); in gdth_special_cmd()
2336 GDTOFFSOF(gdth_cmd_str,u.raw.sg_lst) + sizeof(gdth_sg_str); in gdth_special_cmd()
2516 ha->status = readw(&dp6_ptr->u.ic.Status); in __gdth_interrupt()
2520 ha->info = readl(&dp6_ptr->u.ic.Info[0]); in __gdth_interrupt()
2521 ha->service = readw(&dp6_ptr->u.ic.Service); in __gdth_interrupt()
2522 ha->info2 = readl(&dp6_ptr->u.ic.Info[1]); in __gdth_interrupt()
2525 writeb(0, &dp6_ptr->u.ic.Cmd_Index);/* reset command index */ in __gdth_interrupt()
2675 cmdp->u.screen.reserved = 0; in gdth_sync_event()
2676 cmdp->u.screen.su.msg.msg_handle= msg->msg_handle; in gdth_sync_event()
2677 cmdp->u.screen.su.msg.msg_addr = ha->msg_phys; in gdth_sync_event()
2679 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.screen.su.msg.msg_addr) in gdth_sync_event()
2709 cmdp->u.screen.reserved = 0; in gdth_sync_event()
2710 cmdp->u.screen.su.msg.msg_handle= msg->msg_handle; in gdth_sync_event()
2711 cmdp->u.screen.su.msg.msg_addr = ha->msg_phys; in gdth_sync_event()
2713 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.screen.su.msg.msg_addr) in gdth_sync_event()
3024 cmdp->u.screen.reserved = 0; in gdth_async_event()
3025 cmdp->u.screen.su.msg.msg_handle= MSG_INV_HANDLE; in gdth_async_event()
3026 cmdp->u.screen.su.msg.msg_addr = ha->msg_phys; in gdth_async_event()
3028 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.screen.su.msg.msg_addr) in gdth_async_event()
3459 cmd.u.cache64.DeviceNo = res.number; in ioc_resetdrv()
3461 cmd.u.cache.DeviceNo = res.number; in ioc_resetdrv()
3478 gen->command.u.cache64.BlockCnt = gen->command.u.cache.BlockCnt; in gdth_ioc_cacheservice()
3479 gen->command.u.cache64.BlockNo = gen->command.u.cache.BlockNo; in gdth_ioc_cacheservice()
3480 gen->command.u.cache64.DeviceNo = gen->command.u.cache.DeviceNo; in gdth_ioc_cacheservice()
3483 gen->command.u.cache64.DestAddr = (u64)-1; in gdth_ioc_cacheservice()
3484 gen->command.u.cache64.sg_canz = 1; in gdth_ioc_cacheservice()
3485 gen->command.u.cache64.sg_lst[0].sg_ptr = paddr; in gdth_ioc_cacheservice()
3486 gen->command.u.cache64.sg_lst[0].sg_len = gen->data_len; in gdth_ioc_cacheservice()
3487 gen->command.u.cache64.sg_lst[1].sg_len = 0; in gdth_ioc_cacheservice()
3489 gen->command.u.cache64.DestAddr = paddr; in gdth_ioc_cacheservice()
3490 gen->command.u.cache64.sg_canz = 0; in gdth_ioc_cacheservice()
3494 gen->command.u.cache.DestAddr = 0xffffffff; in gdth_ioc_cacheservice()
3495 gen->command.u.cache.sg_canz = 1; in gdth_ioc_cacheservice()
3496 gen->command.u.cache.sg_lst[0].sg_ptr = (u32)paddr; in gdth_ioc_cacheservice()
3497 gen->command.u.cache.sg_lst[0].sg_len = gen->data_len; in gdth_ioc_cacheservice()
3498 gen->command.u.cache.sg_lst[1].sg_len = 0; in gdth_ioc_cacheservice()
3500 gen->command.u.cache.DestAddr = paddr; in gdth_ioc_cacheservice()
3501 gen->command.u.cache.sg_canz = 0; in gdth_ioc_cacheservice()
3513 gen->command.u.raw64.sense_len = gen->command.u.raw.sense_len; in gdth_ioc_scsiraw()
3514 gen->command.u.raw64.bus = gen->command.u.raw.bus; in gdth_ioc_scsiraw()
3515 gen->command.u.raw64.lun = gen->command.u.raw.lun; in gdth_ioc_scsiraw()
3516 gen->command.u.raw64.target = gen->command.u.raw.target; in gdth_ioc_scsiraw()
3517 memcpy(cmd, gen->command.u.raw.cmd, 16); in gdth_ioc_scsiraw()
3518 memcpy(gen->command.u.raw64.cmd, cmd, 16); in gdth_ioc_scsiraw()
3519 gen->command.u.raw64.clen = gen->command.u.raw.clen; in gdth_ioc_scsiraw()
3520 gen->command.u.raw64.sdlen = gen->command.u.raw.sdlen; in gdth_ioc_scsiraw()
3521 gen->command.u.raw64.direction = gen->command.u.raw.direction; in gdth_ioc_scsiraw()
3525 gen->command.u.raw64.sdata = (u64)-1; in gdth_ioc_scsiraw()
3526 gen->command.u.raw64.sg_ranz = 1; in gdth_ioc_scsiraw()
3527 gen->command.u.raw64.sg_lst[0].sg_ptr = paddr; in gdth_ioc_scsiraw()
3528 gen->command.u.raw64.sg_lst[0].sg_len = gen->data_len; in gdth_ioc_scsiraw()
3529 gen->command.u.raw64.sg_lst[1].sg_len = 0; in gdth_ioc_scsiraw()
3531 gen->command.u.raw64.sdata = paddr; in gdth_ioc_scsiraw()
3532 gen->command.u.raw64.sg_ranz = 0; in gdth_ioc_scsiraw()
3535 gen->command.u.raw64.sense_data = paddr + gen->data_len; in gdth_ioc_scsiraw()
3538 gen->command.u.raw.sdata = 0xffffffff; in gdth_ioc_scsiraw()
3539 gen->command.u.raw.sg_ranz = 1; in gdth_ioc_scsiraw()
3540 gen->command.u.raw.sg_lst[0].sg_ptr = (u32)paddr; in gdth_ioc_scsiraw()
3541 gen->command.u.raw.sg_lst[0].sg_len = gen->data_len; in gdth_ioc_scsiraw()
3542 gen->command.u.raw.sg_lst[1].sg_len = 0; in gdth_ioc_scsiraw()
3544 gen->command.u.raw.sdata = paddr; in gdth_ioc_scsiraw()
3545 gen->command.u.raw.sg_ranz = 0; in gdth_ioc_scsiraw()
3548 gen->command.u.raw.sense_data = (u32)paddr + gen->data_len; in gdth_ioc_scsiraw()
3586 gen.command.u.ioctl.p_param = paddr; in ioc_general()
3651 cmd->u.cache64.DeviceNo = i; in ioc_hdrlist()
3653 cmd->u.cache.DeviceNo = i; in ioc_hdrlist()
3698 cmd->u.cache64.DeviceNo = LINUX_OS; in ioc_rescan()
3701 cmd->u.cache.DeviceNo = LINUX_OS; in ioc_rescan()
3716 cmd->u.cache64.DeviceNo = i; in ioc_rescan()
3718 cmd->u.cache.DeviceNo = i; in ioc_rescan()
3750 cmd->u.cache64.DeviceNo = i; in ioc_rescan()
3752 cmd->u.cache.DeviceNo = i; in ioc_rescan()
3763 cmd->u.cache64.DeviceNo = i; in ioc_rescan()
3765 cmd->u.cache.DeviceNo = i; in ioc_rescan()
3778 cmd->u.cache64.DeviceNo = i; in ioc_rescan()
3780 cmd->u.cache.DeviceNo = i; in ioc_rescan()
3971 gdtcmd.u.cache64.DeviceNo = i; in gdth_flush()
3972 gdtcmd.u.cache64.BlockNo = 1; in gdth_flush()
3973 gdtcmd.u.cache64.sg_canz = 0; in gdth_flush()
3975 gdtcmd.u.cache.DeviceNo = i; in gdth_flush()
3976 gdtcmd.u.cache.BlockNo = 1; in gdth_flush()
3977 gdtcmd.u.cache.sg_canz = 0; in gdth_flush()