/drivers/mtd/ |
D | bcm47xxpart.c | 62 uint32_t blocksize = master->erasesize; in bcm47xxpart_parse() local 68 if (blocksize <= 0x10000) in bcm47xxpart_parse() 69 blocksize = 0x10000; in bcm47xxpart_parse() 77 for (offset = 0; offset <= master->size - blocksize; in bcm47xxpart_parse() 78 offset += blocksize) { in bcm47xxpart_parse() 167 offset = rounddown(offset + trx->length, blocksize); in bcm47xxpart_parse() 190 master->size - blocksize, 0); in bcm47xxpart_parse()
|
/drivers/bcma/ |
D | driver_chipcommon_sflash.c | 29 u32 blocksize; member 149 sflash->blocksize = e->blocksize; in bcma_sflash_init() 151 sflash->size = sflash->blocksize * sflash->numblocks; in bcma_sflash_init() 155 e->name, sflash->size / 1024, sflash->blocksize, in bcma_sflash_init()
|
/drivers/usb/storage/ |
D | alauda.c | 97 unsigned int blocksize; /* number of pages per block */ member 442 MEDIA_INFO(us).blocksize = 1 << media_info->blockshift; in alauda_init_media() 446 MEDIA_INFO(us).blockmask = MEDIA_INFO(us).blocksize - 1; in alauda_init_media() 800 (MEDIA_INFO(us).pagesize + 64) * MEDIA_INFO(us).blocksize, in alauda_write_block() 822 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_write_lba() local 848 blocksize, blockbuffer); in alauda_write_lba() 852 memset(blockbuffer, 0, blocksize * (pagesize + 64)); in alauda_write_lba() 860 for (i = 0; i < blocksize; i++) { in alauda_write_lba() 923 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_read_data() local 937 len = min(sectors, blocksize) * (pagesize + 64); in alauda_read_data() [all …]
|
D | sddr55.c | 99 int blocksize; /* Size of block in pages */ member 216 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_read_data() 235 info->blocksize - page); in sddr55_read_data() 343 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_write_data() 362 info->blocksize - page); in sddr55_write_data() 585 info->blocksize = 16; in sddr55_get_capacity() 616 info->blocksize = 32; in sddr55_get_capacity() 622 info->blocksize = 32; in sddr55_get_capacity() 628 info->blocksize = 32; in sddr55_get_capacity() 634 info->blocksize = 32; in sddr55_get_capacity()
|
D | sddr09.c | 263 int blocksize; /* Size of block in pages */ member 767 len = min(sectors, (unsigned int) info->blocksize) * info->pagesize; in sddr09_read_data() 784 pages = min(sectors, info->blocksize - page); in sddr09_read_data() 904 result = sddr09_read22(us, address>>1, info->blocksize, in sddr09_write_lba() 910 for (i = 0; i < info->blocksize; i++) { in sddr09_write_lba() 944 result = sddr09_write_inplace(us, address>>1, info->blocksize, in sddr09_write_lba() 1008 len = min(sectors, (unsigned int) info->blocksize) * info->pagesize; in sddr09_write_data() 1024 pages = min(sectors, info->blocksize - page); in sddr09_write_data() 1607 info->blocksize = (1 << info->blockshift); in sddr09_transport() 1608 info->blockmask = info->blocksize - 1; in sddr09_transport()
|
/drivers/crypto/caam/ |
D | caamalg.c | 1637 unsigned int blocksize; member 1657 .blocksize = AES_BLOCK_SIZE, 1676 .blocksize = AES_BLOCK_SIZE, 1695 .blocksize = AES_BLOCK_SIZE, 1715 .blocksize = AES_BLOCK_SIZE, 1735 .blocksize = AES_BLOCK_SIZE, 1756 .blocksize = AES_BLOCK_SIZE, 1776 .blocksize = DES3_EDE_BLOCK_SIZE, 1795 .blocksize = DES3_EDE_BLOCK_SIZE, 1814 .blocksize = DES3_EDE_BLOCK_SIZE, [all …]
|
D | caamhash.c | 504 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() local 513 if (keylen > blocksize) { in ahash_setkey() 1517 unsigned int blocksize; member 1530 .blocksize = SHA1_BLOCK_SIZE, 1551 .blocksize = SHA224_BLOCK_SIZE, 1572 .blocksize = SHA256_BLOCK_SIZE, 1593 .blocksize = SHA384_BLOCK_SIZE, 1614 .blocksize = SHA512_BLOCK_SIZE, 1635 .blocksize = MD5_BLOCK_WORDS * 4, 1801 alg->cra_blocksize = template->blocksize; in caam_hash_alloc()
|
/drivers/ssb/ |
D | driver_chipcommon_sflash.c | 15 u32 blocksize; member 135 e->name, e->blocksize, e->numblocks); in ssb_sflash_init()
|
/drivers/atm/ |
D | solos-pci.c | 634 int blocksize = 0; in flash_upgrade() local 642 blocksize = ATMEL_FPGA_BLOCK; in flash_upgrade() 644 blocksize = SPI_FLASH_BLOCK; in flash_upgrade() 649 blocksize = ATMEL_SOLOS_BLOCK; in flash_upgrade() 651 blocksize = SPI_FLASH_BLOCK; in flash_upgrade() 657 blocksize = ATMEL_FPGA_BLOCK; in flash_upgrade() 659 blocksize = SPI_FLASH_BLOCK; in flash_upgrade() 670 blocksize = ATMEL_SOLOS_BLOCK; in flash_upgrade() 672 blocksize = SPI_FLASH_BLOCK; in flash_upgrade() 691 numblocks = fw->size / blocksize; in flash_upgrade() [all …]
|
/drivers/mtd/devices/ |
D | bcm47xxsflash.c | 76 b47s->blocksize = sflash->blocksize; in bcm47xxsflash_bcma_probe()
|
D | bcm47xxsflash.h | 67 u32 blocksize; member
|
D | mtd_dataflash.c | 157 unsigned blocksize = priv->page_size << 3; in dataflash_erase() local 188 do_block = (pageaddr & 0x7) == 0 && instr->len >= blocksize; in dataflash_erase() 214 instr->addr += blocksize; in dataflash_erase() 215 instr->len -= blocksize; in dataflash_erase()
|
/drivers/net/wireless/brcm80211/brcmfmac/ |
D | dhd_sdio.c | 423 uint blocksize; /* Block size of SDIO transfers */ member 1104 (roundup(len, bus->blocksize) != rd->len)) { in brcmf_sdio_hdparser() 1249 (roundup(totlen, bus->blocksize) - totlen); in brcmf_sdbrcm_rxglom() 1250 totlen = roundup(totlen, bus->blocksize); in brcmf_sdbrcm_rxglom() 1497 if (bus->roundup && bus->blocksize && (rdlen > bus->blocksize)) { in brcmf_sdbrcm_read_control() 1498 pad = bus->blocksize - (rdlen % bus->blocksize); in brcmf_sdbrcm_read_control() 1499 if ((pad <= bus->roundup) && (pad < bus->blocksize) && in brcmf_sdbrcm_read_control() 1569 if (bus->roundup && bus->blocksize && *rdlen > bus->blocksize) { in brcmf_pad() 1570 *pad = bus->blocksize - (*rdlen % bus->blocksize); in brcmf_pad() 1571 if (*pad <= bus->roundup && *pad < bus->blocksize && in brcmf_pad() [all …]
|
/drivers/crypto/ux500/cryp/ |
D | cryp_core.c | 83 u32 blocksize; member 217 if (ctx->outlen / ctx->blocksize > 0) { in cryp_interrupt_handler() 218 for (i = 0; i < ctx->blocksize / 4; i++) { in cryp_interrupt_handler() 232 if (ctx->datalen / ctx->blocksize > 0) { in cryp_interrupt_handler() 233 for (i = 0 ; i < ctx->blocksize / 4; i++) { in cryp_interrupt_handler() 285 int num_of_regs = ctx->blocksize / 8; in cfg_ivs() 297 __func__, ctx->blocksize); in cfg_ivs() 301 for (i = 0; i < ctx->blocksize / 4; i++) in cfg_ivs() 634 int len = ctx->blocksize / BYTES_PER_WORD; in cryp_polling_mode() 900 ctx->datalen = nbytes - (nbytes % ctx->blocksize); in ablk_crypt() [all …]
|
/drivers/mmc/host/ |
D | sh_mmcif.c | 241 size_t blocksize; member 545 host->sg_blkidx += host->blocksize; in sh_mmcif_next_block() 564 host->blocksize = (sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_single_read() 585 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_read_block() 603 host->blocksize = sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_multi_read() 628 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_mread_block() 642 host->blocksize = (sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_single_write() 663 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_write_block() 681 host->blocksize = sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_multi_write() 706 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_mwrite_block()
|
D | cb710-mmc.c | 212 size_t count, size_t blocksize) in cb710_mmc_set_transfer_size() argument 216 ((count - 1) << 16)|(blocksize - 1)); in cb710_mmc_set_transfer_size() 219 count, count == 1 ? "" : "s", blocksize); in cb710_mmc_set_transfer_size()
|
/drivers/net/wireless/rtlwifi/rtl8192de/ |
D | fw.c | 70 u32 blocksize = sizeof(u32); in _rtl92d_fw_block_write() local 75 blockCount = size / blocksize; in _rtl92d_fw_block_write() 76 remainSize = size % blocksize; in _rtl92d_fw_block_write() 78 offset = i * blocksize; in _rtl92d_fw_block_write() 83 offset = blockCount * blocksize; in _rtl92d_fw_block_write()
|
/drivers/usb/atm/ |
D | ueagle-atm.c | 769 u16 blocksize; in check_dsp_e1() local 803 blocksize = get_unaligned_le16(dsp + pp); in check_dsp_e1() 807 if (pp + blocksize > len) in check_dsp_e1() 810 pp += blocksize; in check_dsp_e1() 951 u16 blockaddr, blocksize; in uea_load_page_e1() local 992 blocksize = get_unaligned_le16(p); in uea_load_page_e1() 995 bi.wSize = cpu_to_le16(blocksize); in uea_load_page_e1() 1004 if (uea_idma_write(sc, p, blocksize)) in uea_load_page_e1() 1007 p += blocksize; in uea_load_page_e1() 1033 unsigned int blocksize; in __uea_load_page_e4() local [all …]
|
/drivers/gpu/drm/radeon/ |
D | r600_cs.c | 98 unsigned blocksize; member 207 return color_formats_table[format].blocksize; in r600_fmt_get_blocksize() 244 u32 blocksize; member 258 u32 tile_bytes = tile_width * tile_height * values->blocksize * values->nsamples; in r600_get_array_mode_alignment() 270 *pitch_align = max((u32)64, (u32)(values->group_size / values->blocksize)); in r600_get_array_mode_alignment() 278 (tile_height * values->blocksize * values->nsamples))); in r600_get_array_mode_alignment() 286 (values->blocksize * values->nsamples * tile_width))); in r600_get_array_mode_alignment() 290 (*pitch_align) * values->blocksize * (*height_align) * values->nsamples); in r600_get_array_mode_alignment() 385 array_check.blocksize = r600_fmt_get_blocksize(format); in r600_cs_track_validate_cb() 581 array_check.blocksize = bpe; in r600_cs_track_validate_db() [all …]
|
/drivers/net/wireless/p54/ |
D | eeprom.c | 953 size_t eeprom_size = 0x2020, offset = 0, blocksize, maxblocksize; in p54_read_eeprom() local 968 blocksize = min(eeprom_size, maxblocksize); in p54_read_eeprom() 970 offset, blocksize); in p54_read_eeprom() 974 offset += blocksize; in p54_read_eeprom() 975 eeprom_size -= blocksize; in p54_read_eeprom()
|
/drivers/message/i2o/ |
D | i2o_block.c | 1034 u32 blocksize; in i2o_block_probe() local 1092 if (!i2o_parm_field_get(i2o_dev, 0x0004, 1, &blocksize, 4) || in i2o_block_probe() 1093 !i2o_parm_field_get(i2o_dev, 0x0000, 3, &blocksize, 4)) { in i2o_block_probe() 1094 blk_queue_logical_block_size(queue, le32_to_cpu(blocksize)); in i2o_block_probe()
|
/drivers/cdrom/ |
D | cdrom.c | 2044 int blocksize, int nblocks) in cdrom_read_cd() argument 2057 cgc->buflen = blocksize * nblocks; in cdrom_read_cd() 2864 int blocksize = 0, format = 0, lba; in mmc_ioctl_cdrom_read_data() local 2869 blocksize = CD_FRAMESIZE_RAW; in mmc_ioctl_cdrom_read_data() 2872 blocksize = CD_FRAMESIZE; in mmc_ioctl_cdrom_read_data() 2876 blocksize = CD_FRAMESIZE_RAW0; in mmc_ioctl_cdrom_read_data() 2885 cgc->buffer = kmalloc(blocksize, GFP_KERNEL); in mmc_ioctl_cdrom_read_data() 2892 ret = cdrom_read_block(cdi, cgc, lba, 1, format, blocksize); in mmc_ioctl_cdrom_read_data() 2901 ret = cdrom_switch_blocksize(cdi, blocksize); in mmc_ioctl_cdrom_read_data() 2905 ret = cdrom_read_cd(cdi, cgc, lba, blocksize, 1); in mmc_ioctl_cdrom_read_data() [all …]
|
/drivers/target/ |
D | target_core_pscsi.c | 676 u32 blocksize; in pscsi_transport_complete() local 693 blocksize = (buf[9] << 16) | (buf[10] << 8) | in pscsi_transport_complete() 696 blocksize = (buf[13] << 16) | (buf[14] << 8) | in pscsi_transport_complete() 699 sd->sector_size = blocksize; in pscsi_transport_complete()
|
/drivers/s390/block/ |
D | dasd_diag.c | 97 mdsk_init_io(struct dasd_device *device, unsigned int blocksize, in mdsk_init_io() argument 109 iib->block_size = blocksize; in mdsk_init_io()
|
/drivers/crypto/ |
D | n2_core.c | 914 this_len = cipher_descriptor_len(nbytes, walk->blocksize); in n2_compute_chunks() 963 memcpy(rctx->walk.iv, final_iv, rctx->walk.blocksize); in n2_chunk_complete() 1056 iv_paddr = c->dest_final - rctx->walk.blocksize; in n2_do_chaining() 1070 rctx->walk.blocksize); in n2_do_chaining() 1077 rctx->walk.blocksize); in n2_do_chaining() 1080 rctx->walk.blocksize); in n2_do_chaining()
|