Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/spi/
A Dspi-mtk-snfi.c296 u8 nsectors; member
539 u8 nsectors; in mtk_snand_setup_pagefmt() local
548 if (nsectors > snf->caps->max_sectors) { in mtk_snand_setup_pagefmt()
591 spare_size = oob_size / nsectors; in mtk_snand_setup_pagefmt()
621 snf->nfi_cfg.nsectors = nsectors; in mtk_snand_setup_pagefmt()
646 if (section >= ms->nfi_cfg.nsectors) in mtk_snand_ooblayout_free()
699 ecc_cfg->sectors = snf->nfi_cfg.nsectors; in mtk_snand_ecc_init_ctx()
924 snf->nfi_cfg.nsectors; in mtk_snand_read_page_cache()
992 snf->nfi_cfg.nsectors); in mtk_snand_read_page_cache()
1115 snf->nfi_cfg.nsectors; in mtk_snand_write_page_cache()
[all …]
/linux-6.3-rc2/drivers/mtd/nand/raw/atmel/
A Dpmecc.h48 int nsectors; member
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()
A Dnand-controller.c1173 chip->ecc.bytes = req.ecc.bytes / req.ecc.nsectors; in atmel_nand_pmecc_init()
/linux-6.3-rc2/drivers/mtd/nand/raw/
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()
A Dmeson_nand.c1086 u32 page_bytes, info_bytes, nsectors; in meson_chip_buffer_init() local
1088 nsectors = mtd->writesize / nand->ecc.size; in meson_chip_buffer_init()
1091 info_bytes = nsectors * PER_INFO_BYTE; in meson_chip_buffer_init()
1177 int nsectors = mtd->writesize / 1024; in meson_nand_attach_chip() local
1195 mtd->oobsize - 2 * nsectors); in meson_nand_attach_chip()
A Dsunxi_nand.c1627 int nsectors; in sunxi_nand_hw_ecc_ctrl_init() local
1634 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_ecc_ctrl_init()
1637 bytes = (mtd->oobsize - 2) / nsectors; in sunxi_nand_hw_ecc_ctrl_init()
1691 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_ecc_ctrl_init()
1693 if (mtd->oobsize < ((ecc->bytes + 4) * nsectors)) in sunxi_nand_hw_ecc_ctrl_init()
/linux-6.3-rc2/fs/btrfs/
A Dscrub.c152 int nsectors; member
2584 u32 nsectors; in __scrub_mark_bitmap() local
2595 nsectors = len >> sectorsize_bits; in __scrub_mark_bitmap()
2597 if (offset + nsectors <= sparity->nsectors) { in __scrub_mark_bitmap()
2598 bitmap_set(bitmap, offset, nsectors); in __scrub_mark_bitmap()
2603 bitmap_set(bitmap, 0, nsectors - (sparity->nsectors - offset)); in __scrub_mark_bitmap()
3020 sparity->nsectors); in scrub_parity_check_and_repair()
3034 sparity->nsectors); in scrub_parity_check_and_repair()
3311 int nsectors; in scrub_raid56_parity() local
3325 ASSERT(nsectors <= BITS_PER_LONG); in scrub_raid56_parity()
[all …]
/linux-6.3-rc2/drivers/block/rnbd/
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()
1382 le64_to_cpu(rsp->nsectors) * in rnbd_clt_setup_gen_disk()
1385 set_capacity(dev->gd, le64_to_cpu(rsp->nsectors)); in rnbd_clt_setup_gen_disk()
1406 dev->size = le64_to_cpu(rsp->nsectors) * in rnbd_client_setup_device()
1630 dev->gd->disk_name, le64_to_cpu(rsp->nsectors), in rnbd_clt_map_device()
A Drnbd-proto.h137 __le64 nsectors; member
A Drnbd-srv.c543 rsp->nsectors = cpu_to_le64(bdev_nr_sectors(bdev)); in rnbd_srv_fill_msg_open_rsp()
/linux-6.3-rc2/arch/um/drivers/
A Dubd_kern.c1478 int n, nsectors, start, end, bit; in do_io() local
1489 nsectors = desc->length / req->sectorsize; in do_io()
1494 while((end < nsectors) && in do_io()
1546 } while(start < nsectors); in do_io()
/linux-6.3-rc2/drivers/scsi/cxlflash/
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()

Completed in 44 milliseconds