/openbmc/linux/drivers/spi/ |
H A D | spi-mtk-snfi.c | 297 u8 nsectors; member 540 u8 nsectors; in mtk_snand_setup_pagefmt() local 548 nsectors = page_size / snf->caps->sector_size; in mtk_snand_setup_pagefmt() 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() 626 snf->caps->sector_size, spare_size, nsectors); in mtk_snand_setup_pagefmt() 647 if (section >= ms->nfi_cfg.nsectors) in mtk_snand_ooblayout_free() 696 strength = desired_correction / snf->nfi_cfg.nsectors; in mtk_snand_ecc_init_ctx() 700 ecc_cfg->sectors = snf->nfi_cfg.nsectors; in mtk_snand_ecc_init_ctx() [all …]
|
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | sunxi_nand.c | 1390 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() 1436 if (mtd->oobsize < ((ecc->bytes + 4) * nsectors)) { in sunxi_nand_hw_common_ecc_ctrl_init() 1441 layout->eccbytes = (ecc->bytes * nsectors); 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() 1503 if (mtd->oobsize > (ecc->bytes + 4) * nsectors) { 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() [all …]
|
H A D | sunxi_nand_spl.c | 257 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 D | pmecc.h | 48 int nsectors; member
|
H A D | pmecc.c | 305 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() 388 user->eccbytes = req->ecc.bytes / req->ecc.nsectors; in atmel_pmecc_create_user() 396 PMECC_CFG_NSECTORS(req->ecc.nsectors); in atmel_pmecc_create_user()
|
H A D | nand-controller.c | 1173 chip->ecc.bytes = req.ecc.bytes / req.ecc.nsectors; in atmel_nand_pmecc_init()
|
/openbmc/qemu/hw/block/ |
H A D | trace-events | 53 …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 D | omap2.c | 899 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 D | sunxi_nand.c | 1626 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 D | meson_nand.c | 1212 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 D | ahci-test.c | 1568 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 D | rnbd-clt.c | 99 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 D | rnbd-proto.h | 146 __le64 nsectors; member
|
H A D | rnbd-srv.c | 541 rsp->nsectors = cpu_to_le64(bdev_nr_sectors(bdev)); in rnbd_srv_fill_msg_open_rsp()
|
/openbmc/qemu/hw/ide/ |
H A D | trace-events | 18 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/qemu/tests/qtest/libqos/ |
H A D | ahci.c | 1101 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_cmphex(nsectors, <, 1ULL << 24); in ahci_atapi_set_size() 1113 tmp = nsectors; in ahci_atapi_set_size()
|
/openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/cdparanoia/files/ |
H A D | 0002-interface-remove-C-reserved-keyword.patch | 89 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/linux/arch/um/drivers/ |
H A D | ubd_kern.c | 1458 int n, nsectors, start, end, bit; in do_io() local 1469 nsectors = desc->length / req->sectorsize; in do_io() 1474 while((end < nsectors) && in do_io() 1526 } while(start < nsectors); in do_io()
|
/openbmc/linux/drivers/scsi/cxlflash/ |
H A D | vlun.c | 742 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 D | qed.c | 111 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()
|