Lines Matching refs:gdtcmd

119     gdth_cmd_str    gdtcmd;  in gdth_set_asc_info()  local
125 memset(&gdtcmd, 0, sizeof(gdth_cmd_str)); in gdth_set_asc_info()
153 gdtcmd.Service = CACHESERVICE; in gdth_set_asc_info()
154 gdtcmd.OpCode = GDT_FLUSH; in gdth_set_asc_info()
156 gdtcmd.u.cache64.DeviceNo = i; in gdth_set_asc_info()
157 gdtcmd.u.cache64.BlockNo = 1; in gdth_set_asc_info()
159 gdtcmd.u.cache.DeviceNo = i; in gdth_set_asc_info()
160 gdtcmd.u.cache.BlockNo = 1; in gdth_set_asc_info()
163 gdth_do_req(scp, &gdtcmd, cmnd, 30); in gdth_set_asc_info()
165 gdth_do_cmd(scp, &gdtcmd, cmnd, 30); in gdth_set_asc_info()
167 gdth_do_cmd(&scp, &gdtcmd, cmnd, 30); in gdth_set_asc_info()
213 gdtcmd.Service = CACHESERVICE; in gdth_set_asc_info()
214 gdtcmd.OpCode = GDT_IOCTL; in gdth_set_asc_info()
215 gdtcmd.u.ioctl.p_param = paddr; in gdth_set_asc_info()
216 gdtcmd.u.ioctl.param_size = sizeof(gdth_cpar_str); in gdth_set_asc_info()
217 gdtcmd.u.ioctl.subfunc = CACHE_CONFIG; in gdth_set_asc_info()
218 gdtcmd.u.ioctl.channel = INVALID_CHANNEL; in gdth_set_asc_info()
221 gdth_do_req(scp, &gdtcmd, cmnd, 30); in gdth_set_asc_info()
223 gdth_do_cmd(scp, &gdtcmd, cmnd, 30); in gdth_set_asc_info()
225 gdth_do_cmd(&scp, &gdtcmd, cmnd, 30); in gdth_set_asc_info()
247 gdth_cmd_str gdtcmd; in gdth_get_info() local
272 memset(&gdtcmd, 0, sizeof(gdth_cmd_str)); in gdth_get_info()
390 gdtcmd.Service = CACHESERVICE; in gdth_get_info()
391 gdtcmd.OpCode = GDT_IOCTL; in gdth_get_info()
392 gdtcmd.u.ioctl.p_param = paddr + GDTH_SCRATCH/4; in gdth_get_info()
393 gdtcmd.u.ioctl.param_size = 3*GDTH_SCRATCH/4; in gdth_get_info()
394 gdtcmd.u.ioctl.subfunc = DSK_STATISTICS | L_CTRL_PATTERN; in gdth_get_info()
395 gdtcmd.u.ioctl.channel = ha->raw[i].address | INVALID_CHANNEL; in gdth_get_info()
404 gdth_do_req(scp, &gdtcmd, cmnd, 30); in gdth_get_info()
407 gdth_do_cmd(scp, &gdtcmd, cmnd, 30); in gdth_get_info()
410 gdth_do_cmd(&scp, &gdtcmd, cmnd, 30); in gdth_get_info()
423 gdtcmd.Service = CACHESERVICE; in gdth_get_info()
424 gdtcmd.OpCode = GDT_IOCTL; in gdth_get_info()
425 gdtcmd.u.ioctl.p_param = paddr; in gdth_get_info()
426 gdtcmd.u.ioctl.param_size = sizeof(gdth_diskinfo_str); in gdth_get_info()
427 gdtcmd.u.ioctl.subfunc = SCSI_DR_INFO | L_CTRL_PATTERN; in gdth_get_info()
428 gdtcmd.u.ioctl.channel = in gdth_get_info()
431 gdth_do_req(scp, &gdtcmd, cmnd, 30); in gdth_get_info()
434 gdth_do_cmd(scp, &gdtcmd, cmnd, 30); in gdth_get_info()
437 gdth_do_cmd(&scp, &gdtcmd, cmnd, 30); in gdth_get_info()
481 gdtcmd.Service = CACHESERVICE; in gdth_get_info()
482 gdtcmd.OpCode = GDT_IOCTL; in gdth_get_info()
483 gdtcmd.u.ioctl.p_param = paddr; in gdth_get_info()
484 gdtcmd.u.ioctl.param_size = sizeof(gdth_defcnt_str); in gdth_get_info()
485 gdtcmd.u.ioctl.subfunc = SCSI_DEF_CNT | L_CTRL_PATTERN; in gdth_get_info()
486 gdtcmd.u.ioctl.channel = in gdth_get_info()
490 gdth_do_req(scp, &gdtcmd, cmnd, 30); in gdth_get_info()
493 gdth_do_cmd(scp, &gdtcmd, cmnd, 30); in gdth_get_info()
496 gdth_do_cmd(&scp, &gdtcmd, cmnd, 30); in gdth_get_info()
539 gdtcmd.Service = CACHESERVICE; in gdth_get_info()
540 gdtcmd.OpCode = GDT_IOCTL; in gdth_get_info()
541 gdtcmd.u.ioctl.p_param = paddr; in gdth_get_info()
542 gdtcmd.u.ioctl.param_size = sizeof(gdth_cdrinfo_str); in gdth_get_info()
543 gdtcmd.u.ioctl.subfunc = CACHE_DRV_INFO; in gdth_get_info()
544 gdtcmd.u.ioctl.channel = drv_no; in gdth_get_info()
546 gdth_do_req(scp, &gdtcmd, cmnd, 30); in gdth_get_info()
549 gdth_do_cmd(scp, &gdtcmd, cmnd, 30); in gdth_get_info()
552 gdth_do_cmd(&scp, &gdtcmd, cmnd, 30); in gdth_get_info()
652 gdtcmd.Service = CACHESERVICE; in gdth_get_info()
653 gdtcmd.OpCode = GDT_IOCTL; in gdth_get_info()
654 gdtcmd.u.ioctl.p_param = paddr; in gdth_get_info()
655 gdtcmd.u.ioctl.param_size = sizeof(gdth_arrayinf_str); in gdth_get_info()
656 gdtcmd.u.ioctl.subfunc = ARRAY_INFO | LA_CTRL_PATTERN; in gdth_get_info()
657 gdtcmd.u.ioctl.channel = i; in gdth_get_info()
659 gdth_do_req(scp, &gdtcmd, cmnd, 30); in gdth_get_info()
662 gdth_do_cmd(scp, &gdtcmd, cmnd, 30); in gdth_get_info()
665 gdth_do_cmd(&scp, &gdtcmd, cmnd, 30); in gdth_get_info()
734 gdtcmd.Service = CACHESERVICE; in gdth_get_info()
735 gdtcmd.OpCode = GDT_IOCTL; in gdth_get_info()
736 gdtcmd.u.ioctl.p_param = paddr; in gdth_get_info()
737 gdtcmd.u.ioctl.param_size = sizeof(gdth_hget_str); in gdth_get_info()
738 gdtcmd.u.ioctl.subfunc = HOST_GET | LA_CTRL_PATTERN; in gdth_get_info()
739 gdtcmd.u.ioctl.channel = i; in gdth_get_info()
743 gdth_do_req(scp, &gdtcmd, cmnd, 30); in gdth_get_info()
746 gdth_do_cmd(scp, &gdtcmd, cmnd, 30); in gdth_get_info()
749 gdth_do_cmd(&scp, &gdtcmd, cmnd, 30); in gdth_get_info()
844 static void gdth_do_req(Scsi_Request *scp, gdth_cmd_str *gdtcmd, in gdth_do_req() argument
851 if (gdtcmd != NULL) { in gdth_do_req()
858 scsi_do_req(scp, cmnd, gdtcmd, bufflen, gdth_scsi_done, timeout*HZ, 1); in gdth_do_req()
863 static void gdth_do_cmd(Scsi_Cmnd *scp, gdth_cmd_str *gdtcmd, in gdth_do_cmd() argument
876 if (gdtcmd != NULL) { in gdth_do_cmd()
886 scsi_do_cmd(scp, cmnd, gdtcmd, bufflen, gdth_scsi_done, timeout*HZ, 1); in gdth_do_cmd()
891 scsi_do_cmd(scp, cmnd, gdtcmd, bufflen, gdth_scsi_done, timeout*HZ, 1); in gdth_do_cmd()
894 scsi_do_cmd(scp, cmnd, gdtcmd, bufflen, gdth_scsi_done, timeout*HZ, 1); in gdth_do_cmd()