Lines Matching refs:u
772 memset_io(&dp2_ptr->u, 0, sizeof(dp2_ptr->u)); in gdth_init_isa()
773 if (readl(&dp2_ptr->u) != 0) { in gdth_init_isa()
782 writeb(0x00, &dp2_ptr->u.ic.S_Status); in gdth_init_isa()
783 writeb(0x00, &dp2_ptr->u.ic.Cmd_Index); in gdth_init_isa()
802 writel(bios_adr, &dp2_ptr->u.ic.S_Info[0]); in gdth_init_isa()
803 writeb(0xff, &dp2_ptr->u.ic.S_Cmd_Indx); in gdth_init_isa()
807 while (readb(&dp2_ptr->u.ic.S_Status) != 0xff) { in gdth_init_isa()
815 prot_ver = (unchar)readl(&dp2_ptr->u.ic.S_Info[0]); in gdth_init_isa()
816 writeb(0, &dp2_ptr->u.ic.Status); in gdth_init_isa()
826 ha->ic_all_size = sizeof(dp2_ptr->u); in gdth_init_isa()
831 writel(0x00, &dp2_ptr->u.ic.S_Info[0]); in gdth_init_isa()
832 writel(0x00, &dp2_ptr->u.ic.S_Info[1]); in gdth_init_isa()
833 writel(0x01, &dp2_ptr->u.ic.S_Info[2]); in gdth_init_isa()
834 writel(0x00, &dp2_ptr->u.ic.S_Info[3]); in gdth_init_isa()
835 writeb(0xfe, &dp2_ptr->u.ic.S_Cmd_Indx); in gdth_init_isa()
839 while (readb(&dp2_ptr->u.ic.S_Status) != 0xfe) { in gdth_init_isa()
847 writeb(0, &dp2_ptr->u.ic.Status); in gdth_init_isa()
887 writel(DPMEM_MAGIC, &dp6_ptr->u); in gdth_init_pci()
888 if (readl(&dp6_ptr->u) != DPMEM_MAGIC) { in gdth_init_pci()
911 writel(DPMEM_MAGIC, &dp6_ptr->u); in gdth_init_pci()
912 if (readl(&dp6_ptr->u) == DPMEM_MAGIC) { in gdth_init_pci()
924 memset_io(&dp6_ptr->u, 0, sizeof(dp6_ptr->u)); in gdth_init_pci()
925 if (readl(&dp6_ptr->u) != 0) { in gdth_init_pci()
934 writeb(0x00, &dp6_ptr->u.ic.S_Status); in gdth_init_pci()
935 writeb(0x00, &dp6_ptr->u.ic.Cmd_Index); in gdth_init_pci()
937 writel(pcistr->dpmem, &dp6_ptr->u.ic.S_Info[0]); in gdth_init_pci()
938 writeb(0xff, &dp6_ptr->u.ic.S_Cmd_Indx); in gdth_init_pci()
942 while (readb(&dp6_ptr->u.ic.S_Status) != 0xff) { in gdth_init_pci()
950 prot_ver = (unchar)readl(&dp6_ptr->u.ic.S_Info[0]); in gdth_init_pci()
951 writeb(0, &dp6_ptr->u.ic.S_Status); in gdth_init_pci()
960 ha->ic_all_size = sizeof(dp6_ptr->u); in gdth_init_pci()
963 writel(0x00, &dp6_ptr->u.ic.S_Info[0]); in gdth_init_pci()
964 writel(0x00, &dp6_ptr->u.ic.S_Info[1]); in gdth_init_pci()
965 writel(0x00, &dp6_ptr->u.ic.S_Info[2]); in gdth_init_pci()
966 writel(0x00, &dp6_ptr->u.ic.S_Info[3]); in gdth_init_pci()
967 writeb(0xfe, &dp6_ptr->u.ic.S_Cmd_Indx); in gdth_init_pci()
971 while (readb(&dp6_ptr->u.ic.S_Status) != 0xfe) { in gdth_init_pci()
979 writeb(0, &dp6_ptr->u.ic.S_Status); in gdth_init_pci()
996 writel(DPMEM_MAGIC, &dp6c_ptr->u); in gdth_init_pci()
997 if (readl(&dp6c_ptr->u) != DPMEM_MAGIC) { in gdth_init_pci()
1020 writel(DPMEM_MAGIC, &dp6c_ptr->u); in gdth_init_pci()
1021 if (readl(&dp6c_ptr->u) == DPMEM_MAGIC) { in gdth_init_pci()
1033 memset_io(&dp6c_ptr->u, 0, sizeof(dp6c_ptr->u)); in gdth_init_pci()
1034 if (readl(&dp6c_ptr->u) != 0) { in gdth_init_pci()
1044 writeb(0x00, &dp6c_ptr->u.ic.S_Status); in gdth_init_pci()
1045 writeb(0x00, &dp6c_ptr->u.ic.Cmd_Index); in gdth_init_pci()
1047 writel(pcistr->dpmem, &dp6c_ptr->u.ic.S_Info[0]); in gdth_init_pci()
1048 writeb(0xff, &dp6c_ptr->u.ic.S_Cmd_Indx); in gdth_init_pci()
1054 while (readb(&dp6c_ptr->u.ic.S_Status) != 0xff) { in gdth_init_pci()
1062 prot_ver = (unchar)readl(&dp6c_ptr->u.ic.S_Info[0]); in gdth_init_pci()
1063 writeb(0, &dp6c_ptr->u.ic.Status); in gdth_init_pci()
1071 ha->ic_all_size = sizeof(dp6c_ptr->u); in gdth_init_pci()
1074 writel(0x00, &dp6c_ptr->u.ic.S_Info[0]); in gdth_init_pci()
1075 writel(0x00, &dp6c_ptr->u.ic.S_Info[1]); in gdth_init_pci()
1076 writel(0x00, &dp6c_ptr->u.ic.S_Info[2]); in gdth_init_pci()
1077 writel(0x00, &dp6c_ptr->u.ic.S_Info[3]); in gdth_init_pci()
1078 writeb(0xfe, &dp6c_ptr->u.ic.S_Cmd_Indx); in gdth_init_pci()
1084 while (readb(&dp6c_ptr->u.ic.S_Status) != 0xfe) { in gdth_init_pci()
1092 writeb(0, &dp6c_ptr->u.ic.S_Status); in gdth_init_pci()
1124 writel(DPMEM_MAGIC, &dp6m_ptr->u); in gdth_init_pci()
1125 if (readl(&dp6m_ptr->u) != DPMEM_MAGIC) { in gdth_init_pci()
1148 writel(DPMEM_MAGIC, &dp6m_ptr->u); in gdth_init_pci()
1149 if (readl(&dp6m_ptr->u) == DPMEM_MAGIC) { in gdth_init_pci()
1161 memset_io(&dp6m_ptr->u, 0, sizeof(dp6m_ptr->u)); in gdth_init_pci()
1167 writeb(0x00, &dp6m_ptr->u.ic.S_Status); in gdth_init_pci()
1168 writeb(0x00, &dp6m_ptr->u.ic.Cmd_Index); in gdth_init_pci()
1170 writel(pcistr->dpmem, &dp6m_ptr->u.ic.S_Info[0]); in gdth_init_pci()
1171 writeb(0xff, &dp6m_ptr->u.ic.S_Cmd_Indx); in gdth_init_pci()
1175 while (readb(&dp6m_ptr->u.ic.S_Status) != 0xff) { in gdth_init_pci()
1183 prot_ver = (unchar)readl(&dp6m_ptr->u.ic.S_Info[0]); in gdth_init_pci()
1184 writeb(0, &dp6m_ptr->u.ic.S_Status); in gdth_init_pci()
1192 ha->ic_all_size = sizeof(dp6m_ptr->u); in gdth_init_pci()
1195 writel(0x00, &dp6m_ptr->u.ic.S_Info[0]); in gdth_init_pci()
1196 writel(0x00, &dp6m_ptr->u.ic.S_Info[1]); in gdth_init_pci()
1197 writel(0x00, &dp6m_ptr->u.ic.S_Info[2]); in gdth_init_pci()
1198 writel(0x00, &dp6m_ptr->u.ic.S_Info[3]); in gdth_init_pci()
1199 writeb(0xfe, &dp6m_ptr->u.ic.S_Cmd_Indx); in gdth_init_pci()
1203 while (readb(&dp6m_ptr->u.ic.S_Status) != 0xfe) { in gdth_init_pci()
1211 writeb(0, &dp6m_ptr->u.ic.S_Status); in gdth_init_pci()
1214 writeb(0xfd, &dp6m_ptr->u.ic.S_Cmd_Indx); in gdth_init_pci()
1218 while (readb(&dp6m_ptr->u.ic.S_Status) != 0xfd) { in gdth_init_pci()
1226 prot_ver = (unchar)(readl(&dp6m_ptr->u.ic.S_Info[0]) >> 16); in gdth_init_pci()
1227 writeb(0, &dp6m_ptr->u.ic.S_Status); in gdth_init_pci()
1257 writeb(0, &dp2_ptr->u.ic.Cmd_Index); in gdth_enable_int()
1262 writeb(0, &dp6_ptr->u.ic.Cmd_Index); in gdth_enable_int()
1287 readb(&((gdt2_dpram_str __iomem *)ha->brd)->u.ic.Cmd_Index); in gdth_get_status()
1290 readb(&((gdt6_dpram_str __iomem *)ha->brd)->u.ic.Cmd_Index); in gdth_get_status()
1309 gdtsema0 = (int)readb(&((gdt2_dpram_str __iomem *)ha->brd)->u.ic.Sema0); in gdth_test_busy()
1311 gdtsema0 = (int)readb(&((gdt6_dpram_str __iomem *)ha->brd)->u.ic.Sema0); in gdth_test_busy()
1347 writeb(1, &((gdt2_dpram_str __iomem *)ha->brd)->u.ic.Sema0); in gdth_set_sema0()
1349 writeb(1, &((gdt6_dpram_str __iomem *)ha->brd)->u.ic.Sema0); in gdth_set_sema0()
1388 &dp2_ptr->u.ic.comm_queue[cmd_no].offset); in gdth_copy_command()
1390 &dp2_ptr->u.ic.comm_queue[cmd_no].serv_id); in gdth_copy_command()
1391 memcpy_toio(&dp2_ptr->u.ic.gdt_dpr_cmd[dp_offset],cmd_ptr,cp_count); in gdth_copy_command()
1395 &dp6_ptr->u.ic.comm_queue[cmd_no].offset); in gdth_copy_command()
1397 &dp6_ptr->u.ic.comm_queue[cmd_no].serv_id); in gdth_copy_command()
1398 memcpy_toio(&dp6_ptr->u.ic.gdt_dpr_cmd[dp_offset],cmd_ptr,cp_count); in gdth_copy_command()
1402 &dp6c_ptr->u.ic.comm_queue[cmd_no].offset); in gdth_copy_command()
1404 &dp6c_ptr->u.ic.comm_queue[cmd_no].serv_id); in gdth_copy_command()
1405 memcpy_toio(&dp6c_ptr->u.ic.gdt_dpr_cmd[dp_offset],cmd_ptr,cp_count); in gdth_copy_command()
1409 &dp6m_ptr->u.ic.comm_queue[cmd_no].offset); in gdth_copy_command()
1411 &dp6m_ptr->u.ic.comm_queue[cmd_no].serv_id); in gdth_copy_command()
1412 memcpy_toio(&dp6m_ptr->u.ic.gdt_dpr_cmd[dp_offset],cmd_ptr,cp_count); in gdth_copy_command()
1503 cmd_ptr->u.ioctl.subfunc = p1; in gdth_internal_cmd()
1504 cmd_ptr->u.ioctl.channel = (ulong32)p2; in gdth_internal_cmd()
1505 cmd_ptr->u.ioctl.param_size = (ushort)p3; in gdth_internal_cmd()
1506 cmd_ptr->u.ioctl.p_param = ha->scratch_phys; in gdth_internal_cmd()
1509 cmd_ptr->u.cache64.DeviceNo = (ushort)p1; in gdth_internal_cmd()
1510 cmd_ptr->u.cache64.BlockNo = p2; in gdth_internal_cmd()
1512 cmd_ptr->u.cache.DeviceNo = (ushort)p1; in gdth_internal_cmd()
1513 cmd_ptr->u.cache.BlockNo = (ulong32)p2; in gdth_internal_cmd()
1518 cmd_ptr->u.raw64.direction = p1; in gdth_internal_cmd()
1519 cmd_ptr->u.raw64.bus = (unchar)p2; in gdth_internal_cmd()
1520 cmd_ptr->u.raw64.target = (unchar)p3; in gdth_internal_cmd()
1521 cmd_ptr->u.raw64.lun = (unchar)(p3 >> 8); in gdth_internal_cmd()
1523 cmd_ptr->u.raw.direction = p1; in gdth_internal_cmd()
1524 cmd_ptr->u.raw.bus = (unchar)p2; in gdth_internal_cmd()
1525 cmd_ptr->u.raw.target = (unchar)p3; in gdth_internal_cmd()
1526 cmd_ptr->u.raw.lun = (unchar)(p3 >> 8); in gdth_internal_cmd()
1530 *(ulong32 *)&cmd_ptr->u.screen.su.data[0] = p1; in gdth_internal_cmd()
1531 *(ulong32 *)&cmd_ptr->u.screen.su.data[4] = (ulong32)p2; in gdth_internal_cmd()
1532 *(ulong32 *)&cmd_ptr->u.screen.su.data[8] = (ulong32)p3; in gdth_internal_cmd()
2490 cmdp->u.cache64.DeviceNo = hdrive; in gdth_fill_cache_cmd()
2491 cmdp->u.cache64.BlockNo = 1; in gdth_fill_cache_cmd()
2492 cmdp->u.cache64.sg_canz = 0; in gdth_fill_cache_cmd()
2494 cmdp->u.cache.DeviceNo = hdrive; in gdth_fill_cache_cmd()
2495 cmdp->u.cache.BlockNo = 1; in gdth_fill_cache_cmd()
2496 cmdp->u.cache.sg_canz = 0; in gdth_fill_cache_cmd()
2516 cmdp->u.cache64.BlockNo = blockno; in gdth_fill_cache_cmd()
2517 cmdp->u.cache64.BlockCnt = blockcnt; in gdth_fill_cache_cmd()
2519 cmdp->u.cache.BlockNo = (ulong32)blockno; in gdth_fill_cache_cmd()
2520 cmdp->u.cache.BlockCnt = blockcnt; in gdth_fill_cache_cmd()
2531 cmdp->u.cache64.DestAddr= (ulong64)-1; in gdth_fill_cache_cmd()
2532 cmdp->u.cache64.sg_canz = sgcnt; in gdth_fill_cache_cmd()
2534 cmdp->u.cache64.sg_lst[i].sg_ptr = sg_dma_address(sl); in gdth_fill_cache_cmd()
2536 if (cmdp->u.cache64.sg_lst[i].sg_ptr > (ulong64)0xffffffff) in gdth_fill_cache_cmd()
2541 cmdp->u.cache64.sg_lst[i].sg_len = sg_dma_len(sl); in gdth_fill_cache_cmd()
2546 cmdp->u.cache.DestAddr= 0xffffffff; in gdth_fill_cache_cmd()
2547 cmdp->u.cache.sg_canz = sgcnt; in gdth_fill_cache_cmd()
2549 cmdp->u.cache.sg_lst[i].sg_ptr = sg_dma_address(sl); in gdth_fill_cache_cmd()
2553 cmdp->u.cache.sg_lst[i].sg_len = sg_dma_len(sl); in gdth_fill_cache_cmd()
2569 cmdp->u.cache64.DestAddr,cmdp->u.cache64.sg_canz, in gdth_fill_cache_cmd()
2570 cmdp->u.cache64.sg_lst[0].sg_ptr, in gdth_fill_cache_cmd()
2571 cmdp->u.cache64.sg_lst[0].sg_len)); in gdth_fill_cache_cmd()
2573 cmdp->OpCode,cmdp->u.cache64.BlockNo,cmdp->u.cache64.BlockCnt)); in gdth_fill_cache_cmd()
2574 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.cache64.sg_lst) + in gdth_fill_cache_cmd()
2575 (ushort)cmdp->u.cache64.sg_canz * sizeof(gdth_sg64_str); in gdth_fill_cache_cmd()
2578 cmdp->u.cache.DestAddr,cmdp->u.cache.sg_canz, in gdth_fill_cache_cmd()
2579 cmdp->u.cache.sg_lst[0].sg_ptr, in gdth_fill_cache_cmd()
2580 cmdp->u.cache.sg_lst[0].sg_len)); in gdth_fill_cache_cmd()
2582 cmdp->OpCode,cmdp->u.cache.BlockNo,cmdp->u.cache.BlockCnt)); in gdth_fill_cache_cmd()
2583 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.cache.sg_lst) + in gdth_fill_cache_cmd()
2584 (ushort)cmdp->u.cache.sg_canz * sizeof(gdth_sg_str); in gdth_fill_cache_cmd()
2642 cmdp->u.raw64.direction = (cmndinfo->phase >> 8); in gdth_fill_raw_cmd()
2644 cmdp->OpCode, cmdp->u.raw64.direction)); in gdth_fill_raw_cmd()
2646 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.raw64.sg_lst); in gdth_fill_raw_cmd()
2648 cmdp->u.raw.direction = (cmndinfo->phase >> 8); in gdth_fill_raw_cmd()
2650 cmdp->OpCode, cmdp->u.raw.direction)); in gdth_fill_raw_cmd()
2652 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.raw.sg_lst); in gdth_fill_raw_cmd()
2665 cmdp->u.raw64.reserved = 0; in gdth_fill_raw_cmd()
2666 cmdp->u.raw64.mdisc_time = 0; in gdth_fill_raw_cmd()
2667 cmdp->u.raw64.mcon_time = 0; in gdth_fill_raw_cmd()
2668 cmdp->u.raw64.clen = scp->cmd_len; in gdth_fill_raw_cmd()
2669 cmdp->u.raw64.target = t; in gdth_fill_raw_cmd()
2670 cmdp->u.raw64.lun = l; in gdth_fill_raw_cmd()
2671 cmdp->u.raw64.bus = b; in gdth_fill_raw_cmd()
2672 cmdp->u.raw64.priority = 0; in gdth_fill_raw_cmd()
2673 cmdp->u.raw64.sdlen = scsi_bufflen(scp); in gdth_fill_raw_cmd()
2674 cmdp->u.raw64.sense_len = 16; in gdth_fill_raw_cmd()
2675 cmdp->u.raw64.sense_data = sense_paddr; in gdth_fill_raw_cmd()
2676 cmdp->u.raw64.direction = in gdth_fill_raw_cmd()
2678 memcpy(cmdp->u.raw64.cmd,scp->cmnd,16); in gdth_fill_raw_cmd()
2679 cmdp->u.raw64.sg_ranz = 0; in gdth_fill_raw_cmd()
2681 cmdp->u.raw.reserved = 0; in gdth_fill_raw_cmd()
2682 cmdp->u.raw.mdisc_time = 0; in gdth_fill_raw_cmd()
2683 cmdp->u.raw.mcon_time = 0; in gdth_fill_raw_cmd()
2684 cmdp->u.raw.clen = scp->cmd_len; in gdth_fill_raw_cmd()
2685 cmdp->u.raw.target = t; in gdth_fill_raw_cmd()
2686 cmdp->u.raw.lun = l; in gdth_fill_raw_cmd()
2687 cmdp->u.raw.bus = b; in gdth_fill_raw_cmd()
2688 cmdp->u.raw.priority = 0; in gdth_fill_raw_cmd()
2689 cmdp->u.raw.link_p = 0; in gdth_fill_raw_cmd()
2690 cmdp->u.raw.sdlen = scsi_bufflen(scp); in gdth_fill_raw_cmd()
2691 cmdp->u.raw.sense_len = 16; in gdth_fill_raw_cmd()
2692 cmdp->u.raw.sense_data = sense_paddr; in gdth_fill_raw_cmd()
2693 cmdp->u.raw.direction = in gdth_fill_raw_cmd()
2695 memcpy(cmdp->u.raw.cmd,scp->cmnd,12); in gdth_fill_raw_cmd()
2696 cmdp->u.raw.sg_ranz = 0; in gdth_fill_raw_cmd()
2706 cmdp->u.raw64.sdata = (ulong64)-1; in gdth_fill_raw_cmd()
2707 cmdp->u.raw64.sg_ranz = sgcnt; in gdth_fill_raw_cmd()
2709 cmdp->u.raw64.sg_lst[i].sg_ptr = sg_dma_address(sl); in gdth_fill_raw_cmd()
2711 if (cmdp->u.raw64.sg_lst[i].sg_ptr > (ulong64)0xffffffff) in gdth_fill_raw_cmd()
2716 cmdp->u.raw64.sg_lst[i].sg_len = sg_dma_len(sl); in gdth_fill_raw_cmd()
2721 cmdp->u.raw.sdata = 0xffffffff; in gdth_fill_raw_cmd()
2722 cmdp->u.raw.sg_ranz = sgcnt; in gdth_fill_raw_cmd()
2724 cmdp->u.raw.sg_lst[i].sg_ptr = sg_dma_address(sl); in gdth_fill_raw_cmd()
2728 cmdp->u.raw.sg_lst[i].sg_len = sg_dma_len(sl); in gdth_fill_raw_cmd()
2742 cmdp->u.raw64.sdata,cmdp->u.raw64.sg_ranz, in gdth_fill_raw_cmd()
2743 cmdp->u.raw64.sg_lst[0].sg_ptr, in gdth_fill_raw_cmd()
2744 cmdp->u.raw64.sg_lst[0].sg_len)); in gdth_fill_raw_cmd()
2746 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.raw64.sg_lst) + in gdth_fill_raw_cmd()
2747 (ushort)cmdp->u.raw64.sg_ranz * sizeof(gdth_sg64_str); in gdth_fill_raw_cmd()
2750 cmdp->u.raw.sdata,cmdp->u.raw.sg_ranz, in gdth_fill_raw_cmd()
2751 cmdp->u.raw.sg_lst[0].sg_ptr, in gdth_fill_raw_cmd()
2752 cmdp->u.raw.sg_lst[0].sg_len)); in gdth_fill_raw_cmd()
2754 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.raw.sg_lst) + in gdth_fill_raw_cmd()
2755 (ushort)cmdp->u.raw.sg_ranz * sizeof(gdth_sg_str); in gdth_fill_raw_cmd()
2805 GDTOFFSOF(gdth_cmd_str,u.ioctl.p_param) + sizeof(ulong64); in gdth_special_cmd()
2810 GDTOFFSOF(gdth_cmd_str,u.cache64.sg_lst) + sizeof(gdth_sg64_str); in gdth_special_cmd()
2813 GDTOFFSOF(gdth_cmd_str,u.cache.sg_lst) + sizeof(gdth_sg_str); in gdth_special_cmd()
2818 GDTOFFSOF(gdth_cmd_str,u.raw64.sg_lst) + sizeof(gdth_sg64_str); in gdth_special_cmd()
2821 GDTOFFSOF(gdth_cmd_str,u.raw.sg_lst) + sizeof(gdth_sg_str); in gdth_special_cmd()
3042 ha->status = readw(&dp2_ptr->u.ic.Status); in __gdth_interrupt()
3046 ha->info = readl(&dp2_ptr->u.ic.Info[0]); in __gdth_interrupt()
3047 ha->service = readw(&dp2_ptr->u.ic.Service); in __gdth_interrupt()
3048 ha->info2 = readl(&dp2_ptr->u.ic.Info[1]); in __gdth_interrupt()
3051 writeb(0, &dp2_ptr->u.ic.Cmd_Index);/* reset command index */ in __gdth_interrupt()
3057 ha->status = readw(&dp6_ptr->u.ic.Status); in __gdth_interrupt()
3061 ha->info = readl(&dp6_ptr->u.ic.Info[0]); in __gdth_interrupt()
3062 ha->service = readw(&dp6_ptr->u.ic.Service); in __gdth_interrupt()
3063 ha->info2 = readl(&dp6_ptr->u.ic.Info[1]); in __gdth_interrupt()
3066 writeb(0, &dp6_ptr->u.ic.Cmd_Index);/* reset command index */ in __gdth_interrupt()
3261 cmdp->u.screen.reserved = 0; in gdth_sync_event()
3262 cmdp->u.screen.su.msg.msg_handle= msg->msg_handle; in gdth_sync_event()
3263 cmdp->u.screen.su.msg.msg_addr = ha->msg_phys; in gdth_sync_event()
3265 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.screen.su.msg.msg_addr) in gdth_sync_event()
3295 cmdp->u.screen.reserved = 0; in gdth_sync_event()
3296 cmdp->u.screen.su.msg.msg_handle= msg->msg_handle; in gdth_sync_event()
3297 cmdp->u.screen.su.msg.msg_addr = ha->msg_phys; in gdth_sync_event()
3299 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.screen.su.msg.msg_addr) in gdth_sync_event()
3612 cmdp->u.screen.reserved = 0; in gdth_async_event()
3613 cmdp->u.screen.su.msg.msg_handle= MSG_INV_HANDLE; in gdth_async_event()
3614 cmdp->u.screen.su.msg.msg_addr = ha->msg_phys; in gdth_async_event()
3616 ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.screen.su.msg.msg_addr) in gdth_async_event()
4150 cmd.u.cache64.DeviceNo = res.number; in ioc_resetdrv()
4152 cmd.u.cache.DeviceNo = res.number; in ioc_resetdrv()
4188 gen.command.u.ioctl.p_param = paddr; in ioc_general()
4192 gen.command.u.cache64.BlockCnt = gen.command.u.cache.BlockCnt; in ioc_general()
4193 gen.command.u.cache64.BlockNo = gen.command.u.cache.BlockNo; in ioc_general()
4194 gen.command.u.cache64.DeviceNo = gen.command.u.cache.DeviceNo; in ioc_general()
4197 gen.command.u.cache64.DestAddr = (ulong64)-1; in ioc_general()
4198 gen.command.u.cache64.sg_canz = 1; in ioc_general()
4199 gen.command.u.cache64.sg_lst[0].sg_ptr = paddr; in ioc_general()
4200 gen.command.u.cache64.sg_lst[0].sg_len = gen.data_len; in ioc_general()
4201 gen.command.u.cache64.sg_lst[1].sg_len = 0; in ioc_general()
4203 gen.command.u.cache64.DestAddr = paddr; in ioc_general()
4204 gen.command.u.cache64.sg_canz = 0; in ioc_general()
4208 gen.command.u.cache.DestAddr = 0xffffffff; in ioc_general()
4209 gen.command.u.cache.sg_canz = 1; in ioc_general()
4210 gen.command.u.cache.sg_lst[0].sg_ptr = (ulong32)paddr; in ioc_general()
4211 gen.command.u.cache.sg_lst[0].sg_len = gen.data_len; in ioc_general()
4212 gen.command.u.cache.sg_lst[1].sg_len = 0; in ioc_general()
4214 gen.command.u.cache.DestAddr = paddr; in ioc_general()
4215 gen.command.u.cache.sg_canz = 0; in ioc_general()
4222 gen.command.u.raw64.sense_len = gen.command.u.raw.sense_len; in ioc_general()
4223 gen.command.u.raw64.bus = gen.command.u.raw.bus; in ioc_general()
4224 gen.command.u.raw64.lun = gen.command.u.raw.lun; in ioc_general()
4225 gen.command.u.raw64.target = gen.command.u.raw.target; in ioc_general()
4226 memcpy(cmd, gen.command.u.raw.cmd, 16); in ioc_general()
4227 memcpy(gen.command.u.raw64.cmd, cmd, 16); in ioc_general()
4228 gen.command.u.raw64.clen = gen.command.u.raw.clen; in ioc_general()
4229 gen.command.u.raw64.sdlen = gen.command.u.raw.sdlen; in ioc_general()
4230 gen.command.u.raw64.direction = gen.command.u.raw.direction; in ioc_general()
4233 gen.command.u.raw64.sdata = (ulong64)-1; in ioc_general()
4234 gen.command.u.raw64.sg_ranz = 1; in ioc_general()
4235 gen.command.u.raw64.sg_lst[0].sg_ptr = paddr; in ioc_general()
4236 gen.command.u.raw64.sg_lst[0].sg_len = gen.data_len; in ioc_general()
4237 gen.command.u.raw64.sg_lst[1].sg_len = 0; in ioc_general()
4239 gen.command.u.raw64.sdata = paddr; in ioc_general()
4240 gen.command.u.raw64.sg_ranz = 0; in ioc_general()
4242 gen.command.u.raw64.sense_data = paddr + gen.data_len; in ioc_general()
4245 gen.command.u.raw.sdata = 0xffffffff; in ioc_general()
4246 gen.command.u.raw.sg_ranz = 1; in ioc_general()
4247 gen.command.u.raw.sg_lst[0].sg_ptr = (ulong32)paddr; in ioc_general()
4248 gen.command.u.raw.sg_lst[0].sg_len = gen.data_len; in ioc_general()
4249 gen.command.u.raw.sg_lst[1].sg_len = 0; in ioc_general()
4251 gen.command.u.raw.sdata = paddr; in ioc_general()
4252 gen.command.u.raw.sg_ranz = 0; in ioc_general()
4254 gen.command.u.raw.sense_data = (ulong32)paddr + gen.data_len; in ioc_general()
4315 cmd->u.cache64.DeviceNo = i; in ioc_hdrlist()
4317 cmd->u.cache.DeviceNo = i; in ioc_hdrlist()
4362 cmd->u.cache64.DeviceNo = LINUX_OS; in ioc_rescan()
4365 cmd->u.cache.DeviceNo = LINUX_OS; in ioc_rescan()
4380 cmd->u.cache64.DeviceNo = i; in ioc_rescan()
4382 cmd->u.cache.DeviceNo = i; in ioc_rescan()
4414 cmd->u.cache64.DeviceNo = i; in ioc_rescan()
4416 cmd->u.cache.DeviceNo = i; in ioc_rescan()
4427 cmd->u.cache64.DeviceNo = i; in ioc_rescan()
4429 cmd->u.cache.DeviceNo = i; in ioc_rescan()
4442 cmd->u.cache64.DeviceNo = i; in ioc_rescan()
4444 cmd->u.cache.DeviceNo = i; in ioc_rescan()
4630 gdtcmd.u.cache64.DeviceNo = i; in gdth_flush()
4631 gdtcmd.u.cache64.BlockNo = 1; in gdth_flush()
4632 gdtcmd.u.cache64.sg_canz = 0; in gdth_flush()
4634 gdtcmd.u.cache.DeviceNo = i; in gdth_flush()
4635 gdtcmd.u.cache.BlockNo = 1; in gdth_flush()
4636 gdtcmd.u.cache.sg_canz = 0; in gdth_flush()