Home
last modified time | relevance | path

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

/openbmc/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 …]
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dsunxi_nand.c1390 int nsectors; in sunxi_nand_hw_common_ecc_ctrl_init() local
1434 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_common_ecc_ctrl_init()
1465 int nsectors; in sunxi_nand_hw_ecc_ctrl_init() local
1478 nsectors = mtd->writesize / ecc->size; in sunxi_nand_hw_ecc_ctrl_init()
1480 for (i = 0; i < nsectors; i++) { in sunxi_nand_hw_ecc_ctrl_init()
1504 layout->oobfree[nsectors].offset = in sunxi_nand_hw_ecc_ctrl_init()
1505 layout->oobfree[nsectors - 1].offset + in sunxi_nand_hw_ecc_ctrl_init()
1506 layout->oobfree[nsectors - 1].length + in sunxi_nand_hw_ecc_ctrl_init()
1509 ((ecc->bytes + 4) * nsectors); in sunxi_nand_hw_ecc_ctrl_init()
1519 int nsectors; in sunxi_nand_hw_syndrome_ecc_ctrl_init() local
[all …]
H A Dsunxi_nand_spl.c257 int nsectors = len / conf->ecc_size; in nand_read_page() local
273 for (i = 0; i < nsectors; i++) { in nand_read_page()
330 int nsectors = conf->page_size / conf->ecc_size; in nand_max_ecc_strength() local
354 max_ecc_bytes = max_oobsize / nsectors; in nand_max_ecc_strength()
/openbmc/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()
/openbmc/qemu/hw/block/
H A Dtrace-events53 …ite(void *vdev, void *req, uint64_t sector, size_t nsectors) "vdev %p req %p sector %"PRIu64" nsec…
54 …ead(void *vdev, void *req, uint64_t sector, size_t nsectors) "vdev %p req %p sector %"PRIu64" nsec…
/openbmc/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.c1212 u32 page_bytes, info_bytes, nsectors; in meson_chip_buffer_init() local
1214 nsectors = mtd->writesize / nand->ecc.size; in meson_chip_buffer_init()
1217 info_bytes = nsectors * PER_INFO_BYTE; in meson_chip_buffer_init()
/openbmc/qemu/tests/qtest/
H A Dahci-test.c1568 static void ahci_test_cdrom(int nsectors, bool dma, uint8_t cmd, in ahci_test_cdrom() argument
1576 .size = ((uint64_t)ATAPI_SECTOR_SIZE * nsectors), in ahci_test_cdrom()
1583 uint64_t iso_size = (uint64_t)ATAPI_SECTOR_SIZE * (nsectors + 1); in ahci_test_cdrom()
1603 static void ahci_test_cdrom_read10(int nsectors, bool dma) in ahci_test_cdrom_read10() argument
1605 ahci_test_cdrom(nsectors, dma, CMD_ATAPI_READ_10, false, 0); in ahci_test_cdrom_read10()
1800 uint64_t nsectors; in offset_sector() local
1810 nsectors = buffsize / AHCI_SECTOR_SIZE; in offset_sector()
1811 return ceil - nsectors + 1; in offset_sector()
/openbmc/linux/drivers/block/rnbd/
H A Drnbd-proto.h146 __le64 nsectors; member
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()
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()
H A Drnbd-srv.c541 rsp->nsectors = cpu_to_le64(bdev_nr_sectors(bdev)); in rnbd_srv_fill_msg_open_rsp()
/openbmc/qemu/hw/ide/
H A Dtrace-events18 ide_sector_read(int64_t sector_num, int nsectors) "sector=%"PRId64" nsectors=%d"
19 ide_sector_write(int64_t sector_num, int nsectors) "sector=%"PRId64" nsectors=%d"
/openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/cdparanoia/files/
H A D0002-interface-remove-C-reserved-keyword.patch89 d->nsectors=-1;
102 d->nsectors=-1;
146 d->nsectors=-1;
580 - d->private->sg_hd=realloc(d->private->sg_hd,d->nsectors*CD_FRAMESIZE_RAW + SG_OFF + 128);
582 + d->priv->sg_hd=realloc(d->priv->sg_hd,d->nsectors*CD_FRAMESIZE_RAW + SG_OFF + 128);
/openbmc/qemu/tests/qtest/libqos/
H A Dahci.c1101 uint64_t nsectors = xbytes / ATAPI_SECTOR_SIZE; in ahci_atapi_set_size() local
1107 g_assert_cmpuint(nsectors, <=, UINT16_MAX); in ahci_atapi_set_size()
1108 stw_be_p(&cbd[7], nsectors); in ahci_atapi_set_size()
1112 g_assert_cmpuint(nsectors, <, 1ULL << 24); in ahci_atapi_set_size()
1113 tmp = nsectors; in ahci_atapi_set_size()
/openbmc/linux/arch/um/drivers/
H A Dubd_kern.c1470 int n, nsectors, start, end, bit; in do_io() local
1481 nsectors = desc->length / req->sectorsize; in do_io()
1486 while((end < nsectors) && in do_io()
1538 } while(start < nsectors); in do_io()
/openbmc/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()
/openbmc/qemu/block/
H A Dqed.c111 int nsectors = DIV_ROUND_UP(sizeof(QEDHeader), BDRV_SECTOR_SIZE); in qed_write_header() local
112 size_t len = nsectors * BDRV_SECTOR_SIZE; in qed_write_header()