Lines Matching refs:bdesc
734 struct blk_desc *bdesc; in do_scsi_scan_one() local
758 bdesc = dev_get_uclass_platdata(bdev); in do_scsi_scan_one()
759 bdesc->target = id; in do_scsi_scan_one()
760 bdesc->lun = lun; in do_scsi_scan_one()
761 bdesc->removable = bd.removable; in do_scsi_scan_one()
762 bdesc->type = bd.type; in do_scsi_scan_one()
764 if (bdesc->rawblksz == 4096) { in do_scsi_scan_one()
765 bdesc->blksz = 512; in do_scsi_scan_one()
766 bdesc->rawlba++; /* add 1 sector for ufs */ in do_scsi_scan_one()
767 bdesc->lba = bdesc->rawlba * 8; in do_scsi_scan_one()
768 bdesc->align_sector_buf = memalign(CONFIG_SYS_CACHELINE_SIZE, bdesc->rawblksz); in do_scsi_scan_one()
771 memcpy(&bdesc->vendor, &bd.vendor, sizeof(bd.vendor)); in do_scsi_scan_one()
772 memcpy(&bdesc->product, &bd.product, sizeof(bd.product)); in do_scsi_scan_one()
773 memcpy(&bdesc->revision, &bd.revision, sizeof(bd.revision)); in do_scsi_scan_one()
774 part_init(bdesc); in do_scsi_scan_one()
778 dev_print(bdesc); in do_scsi_scan_one()