Home
last modified time | relevance | path

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

/linux-5.19.10/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-5.19.10/drivers/block/rnbd/
Drnbd-clt.c80 dev->nsectors = le64_to_cpu(rsp->nsectors); in rnbd_clt_set_dev_attr()
100 dev->nsectors, new_nsectors); in rnbd_clt_change_capacity()
101 dev->nsectors = new_nsectors; in rnbd_clt_change_capacity()
102 set_capacity_and_notify(dev->gd, dev->nsectors); in rnbd_clt_change_capacity()
120 u64 nsectors = le64_to_cpu(rsp->nsectors); in process_msg_open_rsp() local
126 if (dev->nsectors != nsectors) in process_msg_open_rsp()
127 rnbd_clt_change_capacity(dev, nsectors); in process_msg_open_rsp()
1393 dev->nsectors * (dev->logical_block_size / SECTOR_SIZE) in rnbd_clt_setup_gen_disk()
1396 set_capacity(dev->gd, dev->nsectors); in rnbd_clt_setup_gen_disk()
1420 dev->size = dev->nsectors * dev->logical_block_size; in rnbd_client_setup_device()
[all …]
Drnbd-clt.h131 size_t nsectors; member
Drnbd-proto.h137 __le64 nsectors; member
Drnbd-srv.c541 rsp->nsectors = in rnbd_srv_fill_msg_open_rsp()
/linux-5.19.10/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.c1172 chip->ecc.bytes = req.ecc.bytes / req.ecc.nsectors; in atmel_nand_pmecc_init()
/linux-5.19.10/fs/btrfs/
Dscrub.c126 int nsectors; member
2384 u32 nsectors; in __scrub_mark_bitmap() local
2388 bitmap_set(bitmap, 0, sparity->nsectors); in __scrub_mark_bitmap()
2395 nsectors = len >> sectorsize_bits; in __scrub_mark_bitmap()
2397 if (offset + nsectors <= sparity->nsectors) { in __scrub_mark_bitmap()
2398 bitmap_set(bitmap, offset, nsectors); in __scrub_mark_bitmap()
2402 bitmap_set(bitmap, offset, sparity->nsectors - offset); in __scrub_mark_bitmap()
2403 bitmap_set(bitmap, 0, nsectors - (sparity->nsectors - offset)); in __scrub_mark_bitmap()
2766 nbits = bitmap_weight(sparity->ebitmap, sparity->nsectors); in scrub_free_parity()
2799 sparity->nsectors); in scrub_parity_bio_endio()
[all …]
/linux-5.19.10/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.c1082 u32 page_bytes, info_bytes, nsectors; in meson_chip_buffer_init() local
1084 nsectors = mtd->writesize / nand->ecc.size; in meson_chip_buffer_init()
1087 info_bytes = nsectors * PER_INFO_BYTE; in meson_chip_buffer_init()
1173 int nsectors = mtd->writesize / 1024; in meson_nand_attach_chip() local
1191 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-5.19.10/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-5.19.10/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()