tag | line | file | source code |
host | 335 | kernel/blk_drv/scsi/7000fasst.c | static void internal_done(int host, int errcode) |
host | 320 | kernel/blk_drv/scsi/aha1542.c | static void internal_done(int host, int errcode) |
host | 26 | kernel/blk_drv/scsi/hosts.h | int host; |
host | 39 | kernel/blk_drv/scsi/scsi.c | static void scsi_done (int host, int result); |
host | 109 | kernel/blk_drv/scsi/scsi.c | static void scan_scsis_done (int host, int result) |
host | 113 | kernel/blk_drv/scsi/scsi.c | printk ("scan_scsis_done(%d, %06x)\n\r", host, result); |
host | 328 | kernel/blk_drv/scsi/scsi.c | static void scsi_times_out (int host) |
host | 331 | kernel/blk_drv/scsi/scsi.c | switch (internal_timeout[host] & (IN_ABORT | IN_RESET)) |
host | 336 | kernel/blk_drv/scsi/scsi.c | host); |
host | 338 | kernel/blk_drv/scsi/scsi.c | if (!scsi_abort (host, DID_TIME_OUT)) |
host | 342 | kernel/blk_drv/scsi/scsi.c | host); |
host | 343 | kernel/blk_drv/scsi/scsi.c | if (!scsi_reset (host)) |
host | 347 | kernel/blk_drv/scsi/scsi.c | printk("Unable to reset scsi host %d\r\n",host); |
host | 359 | kernel/blk_drv/scsi/scsi.c | static void internal_cmnd (int host, unsigned char target, const void *cmnd , |
host | 368 | kernel/blk_drv/scsi/scsi.c | if ((host < 0) || (host > MAX_SCSI_HOSTS)) |
host | 376 | kernel/blk_drv/scsi/scsi.c | temp = last_reset[host]; |
host | 379 | kernel/blk_drv/scsi/scsi.c | host_timeout[host] = last_cmnd[host].timeout_per_command; |
host | 388 | kernel/blk_drv/scsi/scsi.c | "bufflen = %d, done = %08x)\n", host, target, cmnd, buffer, bufflen, done); |
host | 392 | kernel/blk_drv/scsi/scsi.c | if (scsi_hosts[host].can_queue) |
host | 396 | kernel/blk_drv/scsi/scsi.c | scsi_hosts[host].queuecommand); |
host | 398 | kernel/blk_drv/scsi/scsi.c | scsi_hosts[host].queuecommand (target, cmnd, buffer, bufflen, |
host | 405 | kernel/blk_drv/scsi/scsi.c | printk("command() : routine at %08x\n", scsi_hosts[host].command); |
host | 407 | kernel/blk_drv/scsi/scsi.c | temp=scsi_hosts[host].command (target, cmnd, buffer, bufflen); |
host | 412 | kernel/blk_drv/scsi/scsi.c | printk("done(host = %d, result = %04x) : routine at %08x\n", host, temp, done); |
host | 414 | kernel/blk_drv/scsi/scsi.c | done(host, temp); |
host | 421 | kernel/blk_drv/scsi/scsi.c | static void scsi_request_sense (int host, unsigned char target, |
host | 425 | kernel/blk_drv/scsi/scsi.c | host_timeout[host] = SENSE_TIMEOUT; |
host | 427 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].flags |= WAS_SENSE; |
host | 430 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].sense_cmnd[1] = lun << 5; |
host | 432 | kernel/blk_drv/scsi/scsi.c | internal_cmnd (host, target, (void *) last_cmnd[host].sense_cmnd, |
host | 433 | kernel/blk_drv/scsi/scsi.c | (void *) last_cmnd[host].sense_buffer, SENSE_LENGTH, |
host | 448 | kernel/blk_drv/scsi/scsi.c | void scsi_do_cmd (int host, unsigned char target, const void *cmnd , |
host | 459 | kernel/blk_drv/scsi/scsi.c | "command : " , host, target, buffer, bufflen, done, timeout, retries); |
host | 465 | kernel/blk_drv/scsi/scsi.c | if ((host >= MAX_SCSI_HOSTS) || !scsi_hosts[host].present) |
host | 467 | kernel/blk_drv/scsi/scsi.c | printk ("Invalid or not present host number. %d\n", host); |
host | 482 | kernel/blk_drv/scsi/scsi.c | if (host_busy[host]) |
host | 486 | kernel/blk_drv/scsi/scsi.c | printk("Host %d is busy.\n", host); |
host | 488 | kernel/blk_drv/scsi/scsi.c | while (host_busy[host]); |
host | 490 | kernel/blk_drv/scsi/scsi.c | printk("Host %d is no longer busy.\n", host); |
host | 495 | kernel/blk_drv/scsi/scsi.c | host_busy[host] = 1; |
host | 510 | kernel/blk_drv/scsi/scsi.c | memcpy ((void *) last_cmnd[host].cmnd , (void *) cmnd, 10); |
host | 511 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].host = host; |
host | 512 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].target = target; |
host | 513 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].lun = (last_cmnd[host].cmnd[1] >> 5); |
host | 514 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].bufflen = bufflen; |
host | 515 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].buffer = buffer; |
host | 516 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].sense_buffer = sense_buffer; |
host | 517 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].flags=0; |
host | 518 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].retries=0; |
host | 519 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].allowed=retries; |
host | 520 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].done = done; |
host | 521 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].timeout_per_command = timeout; |
host | 525 | kernel/blk_drv/scsi/scsi.c | internal_timeout[host] = 0; |
host | 526 | kernel/blk_drv/scsi/scsi.c | internal_cmnd (host, target, cmnd , buffer, bufflen, scsi_done); |
host | 540 | kernel/blk_drv/scsi/scsi.c | static void reset (int host) |
host | 543 | kernel/blk_drv/scsi/scsi.c | printk("reset(%d)\n", host); |
host | 546 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].flags |= (WAS_RESET | IS_RESETTING); |
host | 547 | kernel/blk_drv/scsi/scsi.c | scsi_reset(host); |
host | 553 | kernel/blk_drv/scsi/scsi.c | scsi_request_sense (host, last_cmnd[host].target, last_cmnd[host].lun); |
host | 558 | kernel/blk_drv/scsi/scsi.c | static int check_sense (int host) |
host | 590 | kernel/blk_drv/scsi/scsi.c | static void scsi_done (int host, int result) |
host | 596 | kernel/blk_drv/scsi/scsi.c | oldto = host_timeout[host]; |
host | 597 | kernel/blk_drv/scsi/scsi.c | host_timeout[host] = 0; |
host | 605 | kernel/blk_drv/scsi/scsi.c | printk("In scsi_done(host = %d, result = %06x)\n", host, result); |
host | 607 | kernel/blk_drv/scsi/scsi.c | if (host > MAX_SCSI_HOSTS || host < 0) |
host | 609 | kernel/blk_drv/scsi/scsi.c | host_timeout[host] = 0; |
host | 617 | kernel/blk_drv/scsi/scsi.c | if (last_cmnd[host].flags & IS_RESETTING) |
host | 619 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].flags &= ~IS_RESETTING; |
host | 624 | kernel/blk_drv/scsi/scsi.c | if (status_byte(result) && (last_cmnd[host].flags & |
host | 627 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].flags &= ~WAS_SENSE; |
host | 629 | kernel/blk_drv/scsi/scsi.c | internal_timeout[host] &= ~SENSE_TIMEOUT; |
host | 632 | kernel/blk_drv/scsi/scsi.c | if (!(last_cmnd[host].flags & WAS_RESET)) |
host | 633 | kernel/blk_drv/scsi/scsi.c | reset(host); |
host | 646 | kernel/blk_drv/scsi/scsi.c | if (last_cmnd[host].flags & WAS_SENSE) |
host | 652 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].flags &= ~WAS_SENSE; |
host | 654 | kernel/blk_drv/scsi/scsi.c | internal_timeout[host] &= ~SENSE_TIMEOUT; |
host | 657 | kernel/blk_drv/scsi/scsi.c | switch (checked = check_sense(host)) |
host | 664 | kernel/blk_drv/scsi/scsi.c | host_timeout[host] = oldto; |
host | 707 | kernel/blk_drv/scsi/scsi.c | scsi_request_sense (host, last_cmnd[host].target, last_cmnd[host].lun); |
host | 722 | kernel/blk_drv/scsi/scsi.c | host_timeout[host] = oldto; |
host | 728 | kernel/blk_drv/scsi/scsi.c | reset(host); |
host | 748 | kernel/blk_drv/scsi/scsi.c | if (last_cmnd[host].flags & WAS_TIMEDOUT) |
host | 760 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].flags |= WAS_TIMEDOUT; |
host | 794 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].allowed, last_cmnd[host].retries); |
host | 797 | kernel/blk_drv/scsi/scsi.c | if ((++last_cmnd[host].retries) < last_cmnd[host].allowed) |
host | 799 | kernel/blk_drv/scsi/scsi.c | if ((last_cmnd[host].retries >= (last_cmnd[host].allowed >> 1)) |
host | 800 | kernel/blk_drv/scsi/scsi.c | && !(last_cmnd[host].flags & WAS_RESET)) |
host | 801 | kernel/blk_drv/scsi/scsi.c | reset(host); |
host | 813 | kernel/blk_drv/scsi/scsi.c | if (last_cmnd[host].flags & WAS_SENSE) |
host | 814 | kernel/blk_drv/scsi/scsi.c | scsi_request_sense (host, last_cmnd[host].target, |
host | 815 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].lun); |
host | 817 | kernel/blk_drv/scsi/scsi.c | internal_cmnd (host, last_cmnd[host].target, |
host | 818 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].cmnd, |
host | 819 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].buffer, |
host | 820 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].bufflen, scsi_done); |
host | 829 | kernel/blk_drv/scsi/scsi.c | printk("Calling done function - at address %08x\n", last_cmnd[host].done); |
host | 831 | kernel/blk_drv/scsi/scsi.c | host_busy[host] = 0; |
host | 832 | kernel/blk_drv/scsi/scsi.c | last_cmnd[host].done (host, (result | ((exit & 0xff) << 24))); |
host | 858 | kernel/blk_drv/scsi/scsi.c | int scsi_abort (int host, int why) |
host | 865 | kernel/blk_drv/scsi/scsi.c | if (internal_timeout[host] & IN_ABORT) |
host | 868 | kernel/blk_drv/scsi/scsi.c | while (internal_timeout[host] & IN_ABORT); |
host | 872 | kernel/blk_drv/scsi/scsi.c | oldto = host_timeout[host]; |
host | 873 | kernel/blk_drv/scsi/scsi.c | internal_timeout[host] |= IN_ABORT; |
host | 874 | kernel/blk_drv/scsi/scsi.c | host_timeout[host] = ABORT_TIMEOUT; |
host | 879 | kernel/blk_drv/scsi/scsi.c | if (!host_busy[host] || !scsi_hosts[host].abort(why)) |
host | 885 | kernel/blk_drv/scsi/scsi.c | internal_timeout[host] &= ~IN_ABORT; |
host | 886 | kernel/blk_drv/scsi/scsi.c | host_timeout[host]=oldto; |
host | 894 | kernel/blk_drv/scsi/scsi.c | int scsi_reset (int host) |
host | 900 | kernel/blk_drv/scsi/scsi.c | if (internal_timeout[host] & IN_RESET) |
host | 903 | kernel/blk_drv/scsi/scsi.c | while (internal_timeout[host] & IN_RESET); |
host | 907 | kernel/blk_drv/scsi/scsi.c | oldto = host_timeout[host]; |
host | 908 | kernel/blk_drv/scsi/scsi.c | host_timeout[host] = RESET_TIMEOUT; |
host | 910 | kernel/blk_drv/scsi/scsi.c | internal_timeout[host] |= IN_RESET; |
host | 912 | kernel/blk_drv/scsi/scsi.c | if (host_busy[host]) |
host | 915 | kernel/blk_drv/scsi/scsi.c | if (!(last_cmnd[host].flags & IS_RESETTING) && !(internal_timeout[host] & IN_ABORT)) |
host | 916 | kernel/blk_drv/scsi/scsi.c | scsi_abort(host, DID_RESET); |
host | 918 | kernel/blk_drv/scsi/scsi.c | temp = scsi_hosts[host].reset(); |
host | 922 | kernel/blk_drv/scsi/scsi.c | host_busy[host]=1; |
host | 925 | kernel/blk_drv/scsi/scsi.c | temp = scsi_hosts[host].reset(); |
host | 926 | kernel/blk_drv/scsi/scsi.c | last_reset[host] = jiffies; |
host | 927 | kernel/blk_drv/scsi/scsi.c | host_busy[host]=0; |
host | 931 | kernel/blk_drv/scsi/scsi.c | host_timeout[host] = oldto; |
host | 933 | kernel/blk_drv/scsi/scsi.c | internal_timeout[host] &= ~IN_RESET; |
host | 247 | kernel/blk_drv/scsi/scsi.h | extern int scsi_abort (int host, int code); |
host | 261 | kernel/blk_drv/scsi/scsi.h | extern void scsi_do_cmd (int host, unsigned char target, const void *cmnd , |
host | 265 | kernel/blk_drv/scsi/scsi.h | extern int scsi_reset (int host); |
host | 68 | kernel/blk_drv/scsi/scsi_ioctl.c | static void scsi_ioctl_done (int host, int result) |
host | 70 | kernel/blk_drv/scsi/scsi_ioctl.c | the_result[host] = result; |
host | 79 | kernel/blk_drv/scsi/scsi_ioctl.c | int inlen, outlen, cmdlen, temp, host; |
host | 92 | kernel/blk_drv/scsi/scsi_ioctl.c | host = dev->host_no; |
host | 97 | kernel/blk_drv/scsi/scsi_ioctl.c | if (the_result[host]) { |
host | 99 | kernel/blk_drv/scsi/scsi_ioctl.c | while(the_result[host]) |
host | 102 | kernel/blk_drv/scsi/scsi_ioctl.c | the_result[host]=-1; |
host | 108 | kernel/blk_drv/scsi/scsi_ioctl.c | scsi_do_cmd(host, dev->id, cmd, buf, ((outlen > MAX_BUF) ? |
host | 112 | kernel/blk_drv/scsi/scsi_ioctl.c | while (the_result[host] == -1) |
host | 114 | kernel/blk_drv/scsi/scsi_ioctl.c | temp = the_result[host]; |
host | 115 | kernel/blk_drv/scsi/scsi_ioctl.c | the_result[host] = 0; |
host | 96 | kernel/blk_drv/scsi/sd.c | static void rw_intr (int host, int result) |
host | 98 | kernel/blk_drv/scsi/sd.c | if (HOST != host) |
host | 102 | kernel/blk_drv/scsi/sd.c | printk("sd%d : rw_intr(%d, %x)\n", MINOR(CURRENT->dev), host, result); |
host | 310 | kernel/blk_drv/scsi/sd.c | static void sd_init_done (int host, int result) |