/Linux-v4.19/drivers/mtd/ |
D | mtdblock.c | 39 struct mtd_blktrans_dev mbd; member 94 struct mtd_info *mtd = mtdblk->mbd.mtd; in write_cached_data() 124 struct mtd_info *mtd = mtdblk->mbd.mtd; in do_cached_write() 194 struct mtd_info *mtd = mtdblk->mbd.mtd; in do_cached_read() 240 struct mtdblk_dev *mtdblk = container_of(dev, struct mtdblk_dev, mbd); in mtdblock_readsect() 247 struct mtdblk_dev *mtdblk = container_of(dev, struct mtdblk_dev, mbd); in mtdblock_writesect() 249 mtdblk->cache_data = vmalloc(mtdblk->mbd.mtd->erasesize); in mtdblock_writesect() 260 static int mtdblock_open(struct mtd_blktrans_dev *mbd) in mtdblock_open() argument 262 struct mtdblk_dev *mtdblk = container_of(mbd, struct mtdblk_dev, mbd); in mtdblock_open() 275 if (!(mbd->mtd->flags & MTD_NO_ERASE) && mbd->mtd->erasesize) { in mtdblock_open() [all …]
|
D | rfd_ftl.c | 71 struct mtd_blktrans_dev mbd; member 126 part->mbd.mtd->name, block_no, i, entry); in build_block_map() 133 part->mbd.mtd->name, entry); in build_block_map() 158 part->total_blocks = (u32)part->mbd.mtd->size / part->block_size; in scan_header() 196 "sector map", part->mbd.mtd->name); in scan_header() 204 rc = mtd_read(part->mbd.mtd, i * part->block_size, in scan_header() 220 part->mbd.mtd->name); in scan_header() 227 part->mbd.mtd->name); in scan_header() 254 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in rfd_ftl_readsect() 261 "0x%lx\n", part->mbd.mtd->name, addr); in rfd_ftl_readsect() [all …]
|
D | nftlcore.c | 66 nftl->mbd.mtd = mtd; in nftl_add_mtd() 67 nftl->mbd.devnum = -1; in nftl_add_mtd() 69 nftl->mbd.tr = tr; in nftl_add_mtd() 84 nftl->sectors = nftl->mbd.size / temp; in nftl_add_mtd() 85 if (nftl->mbd.size % temp) { in nftl_add_mtd() 88 nftl->heads = nftl->mbd.size / temp; in nftl_add_mtd() 90 if (nftl->mbd.size % temp) { in nftl_add_mtd() 93 nftl->cylinders = nftl->mbd.size / temp; in nftl_add_mtd() 97 if (nftl->mbd.size != nftl->heads * nftl->cylinders * nftl->sectors) { in nftl_add_mtd() 103 "match size of 0x%lx.\n", nftl->mbd.size); in nftl_add_mtd() [all …]
|
D | nftlmount.c | 45 struct mtd_info *mtd = nftl->mbd.mtd; in find_boot_record() 54 nftl->EraseSize = nftl->mbd.mtd->erasesize; in find_boot_record() 55 nftl->nb_blocks = (u32)nftl->mbd.mtd->size / nftl->EraseSize; in find_boot_record() 75 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record() 86 block * nftl->EraseSize, nftl->mbd.mtd->index); in find_boot_record() 97 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record() 107 block * nftl->EraseSize, nftl->mbd.mtd->index, in find_boot_record() 117 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record() 124 block * nftl->EraseSize, nftl->mbd.mtd->index); in find_boot_record() 172 nftl->EraseSize = nftl->mbd.mtd->erasesize << (0xff - mh->UnitSizeFactor); in find_boot_record() [all …]
|
D | ftl.c | 111 struct mtd_blktrans_dev mbd; member 158 max_offset = (0x100000<part->mbd.mtd->size)?0x100000:part->mbd.mtd->size; in scan_header() 162 offset += part->mbd.mtd->erasesize ? : 0x2000) { in scan_header() 164 err = mtd_read(part->mbd.mtd, offset, sizeof(header), &ret, in scan_header() 183 if ((1 << header.EraseUnitSize) != part->mbd.mtd->erasesize) { in scan_header() 185 1 << header.EraseUnitSize,part->mbd.mtd->erasesize); in scan_header() 221 ret = mtd_read(part->mbd.mtd, offset, sizeof(header), &retval, in build_maps() 286 ret = mtd_read(part->mbd.mtd, offset, in build_maps() 349 ret = mtd_erase(part->mbd.mtd, erase); in erase_xfer() 389 ret = mtd_write(part->mbd.mtd, xfer->Offset, sizeof(header), &retlen, in prepare_xfer() [all …]
|
D | inftlcore.c | 73 inftl->mbd.mtd = mtd; in inftl_add_mtd() 74 inftl->mbd.devnum = -1; in inftl_add_mtd() 76 inftl->mbd.tr = tr; in inftl_add_mtd() 91 inftl->sectors = inftl->mbd.size / temp; in inftl_add_mtd() 92 if (inftl->mbd.size % temp) { in inftl_add_mtd() 95 inftl->heads = inftl->mbd.size / temp; in inftl_add_mtd() 97 if (inftl->mbd.size % temp) { in inftl_add_mtd() 100 inftl->cylinders = inftl->mbd.size / temp; in inftl_add_mtd() 104 if (inftl->mbd.size != inftl->heads * inftl->cylinders * inftl->sectors) { in inftl_add_mtd() 110 "match size of 0x%lx.\n", inftl->mbd.size); in inftl_add_mtd() [all …]
|
D | ssfdc.c | 23 struct mtd_blktrans_dev mbd; member 248 struct mtd_info *mtd = ssfdc->mbd.mtd; in build_logical_block_map() 306 ssfdc->mbd.mtd = mtd; in ssfdcr_add_mtd() 307 ssfdc->mbd.devnum = -1; in ssfdcr_add_mtd() 308 ssfdc->mbd.tr = tr; in ssfdcr_add_mtd() 309 ssfdc->mbd.readonly = 1; in ssfdcr_add_mtd() 331 ssfdc->mbd.size = (long)ssfdc->heads * (long)ssfdc->cylinders * in ssfdcr_add_mtd() 348 if (add_mtd_blktrans_dev(&ssfdc->mbd)) in ssfdcr_add_mtd() 352 ssfdc->mbd.devnum + 'a', mtd->index, mtd->name); in ssfdcr_add_mtd() 400 if (read_physical_sector(ssfdc->mbd.mtd, buf, sect_no) < 0) in ssfdcr_readsect()
|
D | inftlmount.c | 51 struct mtd_info *mtd = inftl->mbd.mtd; in find_boot_record() 62 inftl->EraseSize = inftl->mbd.mtd->erasesize; in find_boot_record() 63 inftl->nb_blocks = (u32)inftl->mbd.mtd->size / inftl->EraseSize; in find_boot_record() 86 inftl->mbd.mtd->index, ret); in find_boot_record() 108 inftl->mbd.mtd->index, ret); in find_boot_record() 182 inftl->EraseSize = inftl->mbd.mtd->erasesize << in find_boot_record() 184 inftl->nb_blocks = (u32)inftl->mbd.mtd->size / inftl->EraseSize; in find_boot_record() 261 inftl->mbd.size = inftl->numvunits * in find_boot_record() 307 for (physblock = 0; physblock < inftl->EraseSize; physblock += inftl->mbd.mtd->erasesize) { in find_boot_record() 308 if (mtd_block_isbad(inftl->mbd.mtd, in find_boot_record() [all …]
|
/Linux-v4.19/include/linux/mtd/ |
D | nftl.h | 35 struct mtd_blktrans_dev mbd; member
|
D | inftl.h | 29 struct mtd_blktrans_dev mbd; member
|
/Linux-v4.19/drivers/media/i2c/ |
D | ov9650.c | 608 unsigned long mbd, light_freq; in ov965x_set_banding_filter() local 629 mbd = (1000UL * ov965x->fiv->interval.denominator * in ov965x_set_banding_filter() 632 mbd = ((mbd / (light_freq * 2)) + 500) / 1000UL; in ov965x_set_banding_filter() 634 return ov965x_write(ov965x->client, REG_MBD, mbd); in ov965x_set_banding_filter()
|