Lines Matching defs:fh
151 static BOOL fetchInquiry(HANDLE fh, unsigned char * resp, int max_resp_len,
178 success = DeviceIoControl(fh, IOCTL_SCSI_PASS_THROUGH_DIRECT,
204 HANDLE fh;
220 fh = CreateFile(adapter_name, GENERIC_READ | GENERIC_WRITE,
223 if (fh != INVALID_HANDLE_VALUE) {
225 success = DeviceIoControl(fh, IOCTL_SCSI_GET_INQUIRY_DATA,
283 CloseHandle(fh);
299 fh = CreateFile(adapter_name, GENERIC_READ | GENERIC_WRITE,
302 if (fh != INVALID_HANDLE_VALUE) {
303 success = DeviceIoControl(fh, IOCTL_SCSI_GET_ADDRESS,
343 CloseHandle(fh);
353 if (fetchInquiry(fh, inqResp, sizeof(inqResp), &sptdw,
362 CloseHandle(fh);
383 CloseHandle(fh);
392 fh = CreateFile(adapter_name, GENERIC_READ | GENERIC_WRITE,
395 if (fh != INVALID_HANDLE_VALUE) {
397 success = DeviceIoControl(fh, IOCTL_SCSI_GET_ADDRESS,
431 CloseHandle(fh);
441 if (fetchInquiry(fh, inqResp, sizeof(inqResp), &sptdw,
450 CloseHandle(fh);
471 CloseHandle(fh);
488 fh = CreateFile(adapter_name, GENERIC_READ | GENERIC_WRITE,
491 if (fh != INVALID_HANDLE_VALUE) {
493 success = DeviceIoControl(fh, IOCTL_SCSI_GET_ADDRESS,
527 CloseHandle(fh);
537 if (fetchInquiry(fh, inqResp, sizeof(inqResp), &sptdw,
546 CloseHandle(fh);
567 CloseHandle(fh);
584 fh = CreateFile(adapter_name, GENERIC_READ | GENERIC_WRITE,
587 if (fh != INVALID_HANDLE_VALUE) {
589 success = DeviceIoControl(fh, IOCTL_SCSI_GET_ADDRESS,
623 CloseHandle(fh);
634 if (fetchInquiry(fh, inqResp, sizeof(inqResp), &sptdw,
643 CloseHandle(fh);
664 CloseHandle(fh);