Home
last modified time | relevance | path

Searched refs:nsectors (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/spi/
H A Dspi-mtk-snfi.c297 u8 nsectors; member
540 u8 nsectors; in mtk_snand_setup_pagefmt() local
549 if (nsectors > snf->caps->max_sectors) { in mtk_snand_setup_pagefmt()
592 spare_size = oob_size / nsectors; in mtk_snand_setup_pagefmt()
622 snf->nfi_cfg.nsectors = nsectors; in mtk_snand_setup_pagefmt()
647 if (section >= ms->nfi_cfg.nsectors) in mtk_snand_ooblayout_free()
700 ecc_cfg->sectors = snf->nfi_cfg.nsectors; in mtk_snand_ecc_init_ctx()
925 snf->nfi_cfg.nsectors; in mtk_snand_read_page_cache()
993 snf->nfi_cfg.nsectors); in mtk_snand_read_page_cache()
1116 snf->nfi_cfg.nsectors; in mtk_snand_write_page_cache()
[all …]
/linux/drivers/mtd/nand/raw/atmel/
H A Dpmecc.h48 int nsectors; member
H A Dpmecc.c305 req->ecc.nsectors = req->pagesize / req->ecc.sectorsize; in atmel_pmecc_prepare_user_req()
318 nbytes *= req->ecc.nsectors; in atmel_pmecc_prepare_user_req()
390 user->eccbytes = req->ecc.bytes / req->ecc.nsectors; in atmel_pmecc_create_user()
398 PMECC_CFG_NSECTORS(req->ecc.nsectors); in atmel_pmecc_create_user()
H A Dnand-controller.c1173 chip->ecc.bytes = req.ecc.bytes / req.ecc.nsectors; in atmel_nand_pmecc_init()
/linux/drivers/mtd/nand/raw/
H A Domap2.c899 unsigned int dev_width, nsectors; in omap_enable_hwecc_bch() local
909 nsectors = 1; in omap_enable_hwecc_bch()
916 nsectors = chip->ecc.steps; in omap_enable_hwecc_bch()
929 nsectors = 1; in omap_enable_hwecc_bch()
936 nsectors = chip->ecc.steps; in omap_enable_hwecc_bch()
949 nsectors = chip->ecc.steps; in omap_enable_hwecc_bch()
977 (((nsectors-1) & 0x7) << 4) | /* number of sectors */ in omap_enable_hwecc_bch()
1148 unsigned long nsectors; in omap_calculate_ecc_bch_multi() local
1151 nsectors = ((readl(info->reg.gpmc_ecc_config) >> 4) & 0x7) + 1; in omap_calculate_ecc_bch_multi()
1152 for (i = 0; i < nsectors; i++) { in omap_calculate_ecc_bch_multi()
H A Dsunxi_nand.c1626 int nsectors; in sunxi_nand_hw_ecc_ctrl_init() local
1633 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_ecc_ctrl_init()
1636 bytes = (mtd->oobsize - 2) / nsectors; in sunxi_nand_hw_ecc_ctrl_init()
1690 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_ecc_ctrl_init()
1692 if (mtd->oobsize < ((ecc->bytes + 4) * nsectors)) in sunxi_nand_hw_ecc_ctrl_init()
H A Dmeson_nand.c1226 u32 page_bytes, info_bytes, nsectors; in meson_chip_buffer_init() local
1228 nsectors = mtd->writesize / nand->ecc.size; in meson_chip_buffer_init()
1231 info_bytes = nsectors * PER_INFO_BYTE; in meson_chip_buffer_init()
/linux/drivers/block/rnbd/
H A Drnbd-clt.c99 u64 nsectors = le64_to_cpu(rsp->nsectors); in process_msg_open_rsp() local
101 rnbd_clt_change_capacity(dev, nsectors); in process_msg_open_rsp()
1347 le64_to_cpu(rsp->nsectors) * in rnbd_clt_setup_gen_disk()
1350 set_capacity(dev->gd, le64_to_cpu(rsp->nsectors)); in rnbd_clt_setup_gen_disk()
1380 dev->size = le64_to_cpu(rsp->nsectors) * in rnbd_client_setup_device()
1614 dev->gd->disk_name, le64_to_cpu(rsp->nsectors), in rnbd_clt_map_device()
H A Drnbd-proto.h146 __le64 nsectors; member
H A Drnbd-srv.c548 rsp->nsectors = cpu_to_le64(bdev_nr_sectors(bdev)); in rnbd_srv_fill_msg_open_rsp()
/linux/arch/um/drivers/
H A Dubd_kern.c1416 int n, nsectors, start, end, bit; in do_io() local
1427 nsectors = desc->length / req->sectorsize; in do_io()
1432 while((end < nsectors) && in do_io()
1484 } while(start < nsectors); in do_io()
/linux/drivers/scsi/cxlflash/
H A Dvlun.c742 u64 nsectors; in _cxlflash_vlun_resize() local
754 nsectors = (resize->req_size * CXLFLASH_BLOCK_SIZE) / gli->blk_len; in _cxlflash_vlun_resize()
755 new_size = DIV_ROUND_UP(nsectors, MC_CHUNK_SIZE); in _cxlflash_vlun_resize()