Home
last modified time | relevance | path

Searched refs:bdesc (Results 1 – 4 of 4) sorted by relevance

/openbmc/u-boot/drivers/mmc/
H A Dmmc_legacy.c165 struct blk_desc *bdesc; in mmc_create() local
191 bdesc = mmc_get_blk_desc(mmc); in mmc_create()
192 bdesc->if_type = IF_TYPE_MMC; in mmc_create()
193 bdesc->removable = 1; in mmc_create()
194 bdesc->devnum = mmc_get_next_devnum(); in mmc_create()
195 bdesc->block_read = mmc_bread; in mmc_create()
196 bdesc->block_write = mmc_bwrite; in mmc_create()
197 bdesc->block_erase = mmc_berase; in mmc_create()
200 bdesc->part_type = mmc->cfg->part_type; in mmc_create()
H A Dmmc-uclass.c290 struct blk_desc *bdesc; in mmc_bind() local
308 bdesc = dev_get_uclass_platdata(bdev); in mmc_bind()
318 bdesc->removable = 1; in mmc_bind()
321 bdesc->part_type = cfg->part_type; in mmc_bind()
H A Dmmc.c2257 struct blk_desc *bdesc; in mmc_startup() local
2465 bdesc = mmc_get_blk_desc(mmc); in mmc_startup()
2466 bdesc->lun = 0; in mmc_startup()
2467 bdesc->hwpart = 0; in mmc_startup()
2468 bdesc->type = 0; in mmc_startup()
2469 bdesc->blksz = mmc->read_bl_len; in mmc_startup()
2470 bdesc->log2blksz = LOG2(bdesc->blksz); in mmc_startup()
2471 bdesc->lba = lldiv(mmc->capacity, mmc->read_bl_len); in mmc_startup()
2475 sprintf(bdesc->vendor, "Man %06x Snr %04x%04x", in mmc_startup()
2478 sprintf(bdesc->product, "%c%c%c%c%c%c", mmc->cid[0] & 0xff, in mmc_startup()
[all …]
/openbmc/u-boot/drivers/scsi/
H A Dscsi.c563 struct blk_desc *bdesc; in do_scsi_scan_one() local
587 bdesc = dev_get_uclass_platdata(bdev); in do_scsi_scan_one()
588 bdesc->target = id; in do_scsi_scan_one()
589 bdesc->lun = lun; in do_scsi_scan_one()
590 bdesc->removable = bd.removable; in do_scsi_scan_one()
591 bdesc->type = bd.type; in do_scsi_scan_one()
592 memcpy(&bdesc->vendor, &bd.vendor, sizeof(bd.vendor)); in do_scsi_scan_one()
593 memcpy(&bdesc->product, &bd.product, sizeof(bd.product)); in do_scsi_scan_one()
594 memcpy(&bdesc->revision, &bd.revision, sizeof(bd.revision)); in do_scsi_scan_one()
597 printf(" Device %d: ", bdesc->devnum); in do_scsi_scan_one()
[all …]