/linux/drivers/mtd/ |
H A D | mtdblock.c | 25 struct mtd_blktrans_dev mbd; member 80 struct mtd_info *mtd = mtdblk->mbd.mtd; in write_cached_data() 113 struct mtd_info *mtd = mtdblk->mbd.mtd; in do_cached_write() 183 struct mtd_info *mtd = mtdblk->mbd.mtd; in do_cached_read() 233 struct mtdblk_dev *mtdblk = container_of(dev, struct mtdblk_dev, mbd); in mtdblock_readsect() 240 struct mtdblk_dev *mtdblk = container_of(dev, struct mtdblk_dev, mbd); in mtdblock_writesect() 242 mtdblk->cache_data = vmalloc(mtdblk->mbd.mtd->erasesize); in mtdblock_writesect() 253 static int mtdblock_open(struct mtd_blktrans_dev *mbd) in mtdblock_open() argument 255 struct mtdblk_dev *mtdblk = container_of(mbd, struct mtdblk_dev, mbd); in mtdblock_open() 264 if (mtd_type_is_nand(mbd->mtd)) in mtdblock_open() [all …]
|
H A D | rfd_ftl.c | 72 struct mtd_blktrans_dev mbd; member 127 part->mbd.mtd->name, block_no, i, entry); in build_block_map() 134 part->mbd.mtd->name, entry); in build_block_map() 159 part->total_blocks = (u32)part->mbd.mtd->size / part->block_size; in scan_header() 202 rc = mtd_read(part->mbd.mtd, i * part->block_size, in scan_header() 218 part->mbd.mtd->name); in scan_header() 225 part->mbd.mtd->name); in scan_header() 242 struct partition *part = container_of(dev, struct partition, mbd); in rfd_ftl_readsect() 252 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in rfd_ftl_readsect() 259 "0x%lx\n", part->mbd.mtd->name, addr); in rfd_ftl_readsect() [all …]
|
H A 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 …]
|
H A D | nftlcore.c | 53 nftl->mbd.mtd = mtd; in nftl_add_mtd() 54 nftl->mbd.devnum = -1; in nftl_add_mtd() 56 nftl->mbd.tr = tr; in nftl_add_mtd() 71 nftl->sectors = nftl->mbd.size / temp; in nftl_add_mtd() 72 if (nftl->mbd.size % temp) { in nftl_add_mtd() 75 nftl->heads = nftl->mbd.size / temp; in nftl_add_mtd() 77 if (nftl->mbd.size % temp) { in nftl_add_mtd() 80 nftl->cylinders = nftl->mbd.size / temp; in nftl_add_mtd() 84 if (nftl->mbd.size != nftl->heads * nftl->cylinders * nftl->sectors) { in nftl_add_mtd() 90 "match size of 0x%lx.\n", nftl->mbd.size); in nftl_add_mtd() [all …]
|
H A D | nftlmount.c | 32 struct mtd_info *mtd = nftl->mbd.mtd; in find_boot_record() 41 nftl->EraseSize = nftl->mbd.mtd->erasesize; in find_boot_record() 42 nftl->nb_blocks = (u32)nftl->mbd.mtd->size / nftl->EraseSize; in find_boot_record() 62 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record() 73 block * nftl->EraseSize, nftl->mbd.mtd->index); in find_boot_record() 84 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record() 94 block * nftl->EraseSize, nftl->mbd.mtd->index, in find_boot_record() 104 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record() 111 block * nftl->EraseSize, nftl->mbd.mtd->index); in find_boot_record() 159 nftl->EraseSize = nftl->mbd.mtd->erasesize << (0xff - mh->UnitSizeFactor); in find_boot_record() [all …]
|
H A D | inftlcore.c | 60 inftl->mbd.mtd = mtd; in inftl_add_mtd() 61 inftl->mbd.devnum = -1; in inftl_add_mtd() 63 inftl->mbd.tr = tr; in inftl_add_mtd() 78 inftl->sectors = inftl->mbd.size / temp; in inftl_add_mtd() 79 if (inftl->mbd.size % temp) { in inftl_add_mtd() 82 inftl->heads = inftl->mbd.size / temp; in inftl_add_mtd() 84 if (inftl->mbd.size % temp) { in inftl_add_mtd() 87 inftl->cylinders = inftl->mbd.size / temp; in inftl_add_mtd() 91 if (inftl->mbd.size != inftl->heads * inftl->cylinders * inftl->sectors) { in inftl_add_mtd() 97 "match size of 0x%lx.\n", inftl->mbd.size); in inftl_add_mtd() [all …]
|
H A D | ssfdc.c | 20 struct mtd_blktrans_dev mbd; member 244 struct mtd_info *mtd = ssfdc->mbd.mtd; in build_logical_block_map() 302 ssfdc->mbd.mtd = mtd; in ssfdcr_add_mtd() 303 ssfdc->mbd.devnum = -1; in ssfdcr_add_mtd() 304 ssfdc->mbd.tr = tr; in ssfdcr_add_mtd() 305 ssfdc->mbd.readonly = 1; in ssfdcr_add_mtd() 327 ssfdc->mbd.size = (long)ssfdc->heads * (long)ssfdc->cylinders * in ssfdcr_add_mtd() 344 if (add_mtd_blktrans_dev(&ssfdc->mbd)) in ssfdcr_add_mtd() 348 ssfdc->mbd.devnum + 'a', mtd->index, mtd->name); in ssfdcr_add_mtd() 397 if (read_physical_sector(ssfdc->mbd.mtd, buf, sect_no) < 0) in ssfdcr_readsect()
|
H A D | inftlmount.c | 38 struct mtd_info *mtd = inftl->mbd.mtd; in find_boot_record() 49 inftl->EraseSize = inftl->mbd.mtd->erasesize; in find_boot_record() 50 inftl->nb_blocks = (u32)inftl->mbd.mtd->size / inftl->EraseSize; in find_boot_record() 73 inftl->mbd.mtd->index, ret); in find_boot_record() 95 inftl->mbd.mtd->index, ret); in find_boot_record() 169 inftl->EraseSize = inftl->mbd.mtd->erasesize << in find_boot_record() 171 inftl->nb_blocks = (u32)inftl->mbd.mtd->size / inftl->EraseSize; in find_boot_record() 248 inftl->mbd.size = inftl->numvunits * in find_boot_record() 287 for (physblock = 0; physblock < inftl->EraseSize; physblock += inftl->mbd.mtd->erasesize) { in find_boot_record() 288 if (mtd_block_isbad(inftl->mbd.mtd, in find_boot_record() [all …]
|
/linux/include/linux/mtd/ |
H A D | nftl.h | 21 struct mtd_blktrans_dev mbd; member
|
H A D | inftl.h | 29 struct mtd_blktrans_dev mbd; member
|
/linux/drivers/media/i2c/ |
H A D | ov9650.c | 594 unsigned long mbd, light_freq; in ov965x_set_banding_filter() local 615 mbd = (1000UL * ov965x->fiv->interval.denominator * in ov965x_set_banding_filter() 618 mbd = ((mbd / (light_freq * 2)) + 500) / 1000UL; in ov965x_set_banding_filter() 620 return ov965x_write(ov965x, REG_MBD, mbd); in ov965x_set_banding_filter()
|