Lines Matching refs:SDpnt

47 		Scsi_Device ** SDpnt, struct Scsi_Host *shpnt, 
358 Scsi_Device *SDpnt; in scan_scsis() local
365 SDpnt = (Scsi_Device *) kmalloc(sizeof(Scsi_Device), in scan_scsis()
367 if (SDpnt) { in scan_scsis()
368 memset(SDpnt, 0, sizeof(Scsi_Device)); in scan_scsis()
376 scsi_initialize_queue(SDpnt, shpnt); in scan_scsis()
377 SDpnt->request_queue.queuedata = (void *) SDpnt; in scan_scsis()
390 SDpnt->queue_depth = 1; in scan_scsis()
391 SDpnt->host = shpnt; in scan_scsis()
392 SDpnt->online = TRUE; in scan_scsis()
394 initialize_merge_fn(SDpnt); in scan_scsis()
399 init_waitqueue_head(&SDpnt->scpnt_wait); in scan_scsis()
404 SDpnt->prev = NULL; in scan_scsis()
405 SDpnt->next = NULL; in scan_scsis()
411 SDtail->next = SDpnt; in scan_scsis()
412 SDpnt->prev = SDtail; in scan_scsis()
414 shpnt->host_queue = SDpnt; in scan_scsis()
422 Scsi_Device *oldSDpnt = SDpnt; in scan_scsis()
438 &sparse_lun, &SDpnt, shpnt, scsi_result); in scan_scsis()
439 if (SDpnt != oldSDpnt) { in scan_scsis()
500 &max_dev_lun, &sparse_lun, &SDpnt, shpnt, in scan_scsis()
504 if (SDpnt && (0 == lun)) { in scan_scsis()
509 lun0_sl = SDpnt->scsi_level; in scan_scsis()
523 for (dqptr = shpnt->host_queue; dqptr != SDpnt; dqptr = dqptr->next) in scan_scsis()
538 if (SDpnt != NULL) { in scan_scsis()
539 blk_cleanup_queue(&SDpnt->request_queue); in scan_scsis()
540 kfree((char *) SDpnt); in scan_scsis()
575 Scsi_Device *SDtail, *SDpnt = *SDpnt2; in scan_scsis_single() local
581 SDpnt->host = shpnt; in scan_scsis_single()
582 SDpnt->id = dev; in scan_scsis_single()
583 SDpnt->lun = lun; in scan_scsis_single()
584 SDpnt->channel = channel; in scan_scsis_single()
585 SDpnt->online = TRUE; in scan_scsis_single()
587 scsi_build_commandblocks(SDpnt); in scan_scsis_single()
590 SDpnt->type = -1; in scan_scsis_single()
596 SDpnt->borken = 1; in scan_scsis_single()
597 SDpnt->was_reset = 0; in scan_scsis_single()
598 SDpnt->expecting_cc_ua = 0; in scan_scsis_single()
599 SDpnt->starved = 0; in scan_scsis_single()
601 if (NULL == (SRpnt = scsi_allocate_request(SDpnt))) { in scan_scsis_single()
648 scsi_release_commandblocks(SDpnt); in scan_scsis_single()
672 scsi_release_commandblocks(SDpnt); in scan_scsis_single()
708 memcpy(SDpnt->vendor, scsi_result + 8, 8); in scan_scsis_single()
709 memcpy(SDpnt->model, scsi_result + 16, 16); in scan_scsis_single()
710 memcpy(SDpnt->rev, scsi_result + 32, 4); in scan_scsis_single()
712 SDpnt->removable = (0x80 & scsi_result[1]) >> 7; in scan_scsis_single()
716 SDpnt->online = FALSE; in scan_scsis_single()
718 SDpnt->online = TRUE; in scan_scsis_single()
719 SDpnt->lockable = SDpnt->removable; in scan_scsis_single()
720 SDpnt->changed = 0; in scan_scsis_single()
721 SDpnt->access_count = 0; in scan_scsis_single()
722 SDpnt->busy = 0; in scan_scsis_single()
723 SDpnt->has_cmdblocks = 0; in scan_scsis_single()
739 SDpnt->writeable = 1; in scan_scsis_single()
743 SDpnt->writeable = 0; in scan_scsis_single()
749 SDpnt->device_blocked = FALSE; in scan_scsis_single()
750 SDpnt->device_busy = 0; in scan_scsis_single()
751 SDpnt->single_lun = 0; in scan_scsis_single()
752 SDpnt->soft_reset = in scan_scsis_single()
754 SDpnt->random = (type == TYPE_TAPE) ? 0 : 1; in scan_scsis_single()
755 SDpnt->type = (type & 0x1f); in scan_scsis_single()
760 SDpnt->host->host_no, SDpnt->channel, SDpnt->id, SDpnt->lun); in scan_scsis_single()
761 if (SDpnt->de) printk ("DEBUG: dir: \"%s\" already exists\n", devname); in scan_scsis_single()
762 else SDpnt->de = devfs_mk_dir (scsi_devfs_handle, devname, NULL); in scan_scsis_single()
767 SDpnt->attached += in scan_scsis_single()
768 (*sdtpnt->detect) (SDpnt); in scan_scsis_single()
770 SDpnt->scsi_level = scsi_result[2] & 0x07; in scan_scsis_single()
771 if (SDpnt->scsi_level >= 2 || in scan_scsis_single()
772 (SDpnt->scsi_level == 1 && in scan_scsis_single()
774 SDpnt->scsi_level++; in scan_scsis_single()
775 scsi_level = SDpnt->scsi_level; in scan_scsis_single()
781 SDpnt->disconnect = 0; in scan_scsis_single()
788 SDpnt->tagged_queue = 0; in scan_scsis_single()
789 if ((SDpnt->scsi_level >= SCSI_2) && in scan_scsis_single()
792 SDpnt->tagged_supported = 1; in scan_scsis_single()
793 SDpnt->current_tag = 0; in scan_scsis_single()
802 SDpnt->borken = 0; in scan_scsis_single()
809 SDpnt->no_start_on_add = 1; in scan_scsis_single()
816 SDpnt->single_lun = 1; in scan_scsis_single()
823 SDpnt->lockable = 0; in scan_scsis_single()
842 scsi_release_commandblocks(SDpnt); in scan_scsis_single()
849 SDpnt = (Scsi_Device *) kmalloc(sizeof(Scsi_Device), GFP_ATOMIC); in scan_scsis_single()
850 if (!SDpnt) { in scan_scsis_single()
854 memset(SDpnt, 0, sizeof(Scsi_Device)); in scan_scsis_single()
856 *SDpnt2 = SDpnt; in scan_scsis_single()
857 SDpnt->queue_depth = 1; in scan_scsis_single()
858 SDpnt->host = shpnt; in scan_scsis_single()
859 SDpnt->online = TRUE; in scan_scsis_single()
860 SDpnt->scsi_level = scsi_level; in scan_scsis_single()
869 scsi_initialize_queue(SDpnt, shpnt); in scan_scsis_single()
870 SDpnt->host = shpnt; in scan_scsis_single()
871 initialize_merge_fn(SDpnt); in scan_scsis_single()
876 SDpnt->online = TRUE; in scan_scsis_single()
881 init_waitqueue_head(&SDpnt->scpnt_wait); in scan_scsis_single()
896 SDtail->next = SDpnt; in scan_scsis_single()
897 SDpnt->prev = SDtail; in scan_scsis_single()
898 SDpnt->next = NULL; in scan_scsis_single()
978 Scsi_Device *SDpnt; in find_lun0_scsi_level() local
980 for (SDpnt = shpnt->host_queue; SDpnt; SDpnt = SDpnt->next) in find_lun0_scsi_level()
982 if ((0 == SDpnt->lun) && (dev == SDpnt->id) && in find_lun0_scsi_level()
983 (channel == SDpnt->channel)) in find_lun0_scsi_level()
984 return (int)SDpnt->scsi_level; in find_lun0_scsi_level()