Searched refs:bdesc (Results 1 – 5 of 5) sorted by relevance
145 struct blk_desc *bdesc; in mmc_create() local171 bdesc = mmc_get_blk_desc(mmc); in mmc_create()172 bdesc->if_type = IF_TYPE_MMC; in mmc_create()173 bdesc->removable = 1; in mmc_create()174 bdesc->devnum = mmc_get_next_devnum(); in mmc_create()175 bdesc->block_read = mmc_bread; in mmc_create()176 bdesc->block_write = mmc_bwrite; in mmc_create()177 bdesc->block_erase = mmc_berase; in mmc_create()180 bdesc->part_type = mmc->cfg->part_type; in mmc_create()
274 struct blk_desc *bdesc; in mmc_bind() local290 bdesc = dev_get_uclass_platdata(bdev); in mmc_bind()300 bdesc->removable = 1; in mmc_bind()303 bdesc->part_type = cfg->part_type; in mmc_bind()
1759 struct blk_desc *bdesc; local2118 bdesc = mmc_get_blk_desc(mmc);2119 bdesc->lun = 0;2120 bdesc->hwpart = 0;2121 bdesc->type = 0;2122 bdesc->blksz = mmc->read_bl_len;2123 bdesc->log2blksz = LOG2(bdesc->blksz);2124 bdesc->lba = lldiv(mmc->capacity, mmc->read_bl_len);2128 sprintf(bdesc->vendor, "Man %06x Snr %04x%04x",2131 sprintf(bdesc->product, "%c%c%c%c%c%c", mmc->cid[0] & 0xff,[all …]
239 struct blk_desc *bdesc; in systemace_bind() local249 bdesc = dev_get_uclass_platdata(bdev); in systemace_bind()250 bdesc->removable = 1; in systemace_bind()251 bdesc->part_type = PART_TYPE_UNKNOWN; in systemace_bind()252 bdesc->log2blksz = LOG2(bdesc->blksz); in systemace_bind()
734 struct blk_desc *bdesc; in do_scsi_scan_one() local758 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()[all …]