Lines Matching refs:lun
64 pccb->cmd[1] = pccb->lun << 5; in scsi_setup_read16()
93 pccb->cmd[1] = pccb->lun << 5; in scsi_setup_read_ext()
114 pccb->cmd[1] = pccb->lun << 5 | 0x8; in scsi_setup_write_ext()
135 pccb->cmd[1] = pccb->lun << 5; in scsi_setup_inquiry()
153 pccb->cmd[1] = pccb->lun << 5; in scsi_setup_test_unit_ready()
187 pccb->lun = block_dev->lun; in _scsi_read()
321 pccb->lun = block_dev->lun; in _scsi_write()
424 pccb->lun = block_dev->lun; in scsi_erase()
550 pccb->cmd[1] = pccb->lun << 5; in scsi_read_capacity()
613 dev_desc->lun = 0xff; in scsi_init_dev_desc_priv()
658 static int scsi_detect_dev(struct udevice *dev, int target, int lun, in scsi_detect_dev() argument
667 pccb->lun = lun; in scsi_detect_dev()
699 dev_desc->lun = pccb->lun; in scsi_detect_dev()
729 static int do_scsi_scan_one(struct udevice *dev, int id, int lun, bool verbose) in do_scsi_scan_one() argument
742 if (scsi_detect_dev(dev, id, lun, &bd)) in do_scsi_scan_one()
750 snprintf(str, sizeof(str), "id%dlun%d", id, lun); in do_scsi_scan_one()
760 bdesc->lun = lun; in do_scsi_scan_one()
788 int lun; in scsi_scan_dev() local
799 for (lun = 0; lun < uc_plat->max_lun; lun++) in scsi_scan_dev()
800 do_scsi_scan_one(dev, i, lun, verbose); in scsi_scan_dev()
831 unsigned char i, lun; in scsi_scan() local
841 for (lun = 0; lun < CONFIG_SYS_SCSI_MAX_LUN; lun++) { in scsi_scan()
842 ret = scsi_detect_dev(NULL, i, lun, in scsi_scan()