Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/spi/
Dspi-mtk-snfi.c267 u8 nsectors; member
509 u8 nsectors; in mtk_snand_setup_pagefmt() local
517 nsectors = page_size / snf->caps->sector_size; in mtk_snand_setup_pagefmt()
518 if (nsectors > snf->caps->max_sectors) { in mtk_snand_setup_pagefmt()
561 spare_size = oob_size / nsectors; in mtk_snand_setup_pagefmt()
591 snf->nfi_cfg.nsectors = nsectors; in mtk_snand_setup_pagefmt()
595 snf->caps->sector_size, spare_size, nsectors); in mtk_snand_setup_pagefmt()
616 if (section >= ms->nfi_cfg.nsectors) in mtk_snand_ooblayout_free()
665 strength = desired_correction / snf->nfi_cfg.nsectors; in mtk_snand_ecc_init_ctx()
669 ecc_cfg->sectors = snf->nfi_cfg.nsectors; in mtk_snand_ecc_init_ctx()
[all …]
/linux-6.1.9/drivers/mtd/nand/raw/atmel/
Dpmecc.h48 int nsectors; member
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()
Dnand-controller.c1173 chip->ecc.bytes = req.ecc.bytes / req.ecc.nsectors; in atmel_nand_pmecc_init()
/linux-6.1.9/drivers/mtd/nand/raw/
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()
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()
Dsunxi_nand.c1636 int nsectors; in sunxi_nand_hw_ecc_ctrl_init() local
1644 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_ecc_ctrl_init()
1647 bytes = (mtd->oobsize - 2) / nsectors; in sunxi_nand_hw_ecc_ctrl_init()
1708 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_ecc_ctrl_init()
1710 if (mtd->oobsize < ((ecc->bytes + 4) * nsectors)) { in sunxi_nand_hw_ecc_ctrl_init()
/linux-6.1.9/fs/btrfs/
Dscrub.c138 int nsectors; member
2536 u32 nsectors; in __scrub_mark_bitmap() local
2540 bitmap_set(bitmap, 0, sparity->nsectors); in __scrub_mark_bitmap()
2547 nsectors = len >> sectorsize_bits; in __scrub_mark_bitmap()
2549 if (offset + nsectors <= sparity->nsectors) { in __scrub_mark_bitmap()
2550 bitmap_set(bitmap, offset, nsectors); in __scrub_mark_bitmap()
2554 bitmap_set(bitmap, offset, sparity->nsectors - offset); in __scrub_mark_bitmap()
2555 bitmap_set(bitmap, 0, nsectors - (sparity->nsectors - offset)); in __scrub_mark_bitmap()
2900 nbits = bitmap_weight(&sparity->ebitmap, sparity->nsectors); in scrub_free_parity()
2934 &sparity->dbitmap, sparity->nsectors); in scrub_parity_bio_endio()
[all …]
/linux-6.1.9/drivers/block/rnbd/
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()
Drnbd-proto.h137 __le64 nsectors; member
Drnbd-srv.c543 rsp->nsectors = cpu_to_le64(bdev_nr_sectors(bdev)); in rnbd_srv_fill_msg_open_rsp()
/linux-6.1.9/arch/um/drivers/
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.1.9/drivers/scsi/cxlflash/
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()