/drivers/mtd/parsers/ |
D | bcm47xxpart.c | 95 uint32_t blocksize = master->erasesize; in bcm47xxpart_parse() local 105 if (blocksize < 0x1000) in bcm47xxpart_parse() 106 blocksize = 0x1000; in bcm47xxpart_parse() 121 for (offset = 0; offset <= master->size - blocksize; in bcm47xxpart_parse() 122 offset += blocksize) { in bcm47xxpart_parse() 206 trx_size = max(trx->length, last_subpart + blocksize); in bcm47xxpart_parse() 212 offset += roundup(trx_size, blocksize) - blocksize; in bcm47xxpart_parse() 228 if (offset != master->size - blocksize && in bcm47xxpart_parse() 236 err = mtd_read(master, offset + (blocksize / 2), 0x4, &bytes_read, in bcm47xxpart_parse() 240 offset + (blocksize / 2), err); in bcm47xxpart_parse() [all …]
|
/drivers/ssb/ |
D | driver_chipcommon_sflash.c | 28 u32 blocksize; member 149 sflash->blocksize = e->blocksize; in ssb_sflash_init() 151 sflash->size = sflash->blocksize * sflash->numblocks; in ssb_sflash_init() 155 e->name, sflash->size / 1024, e->blocksize, e->numblocks); in ssb_sflash_init()
|
/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/crypto/qce/ |
D | sha.c | 191 unsigned int blocksize; in qce_ahash_update() local 193 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_update() 199 if (total <= blocksize) { in qce_ahash_update() 218 hash_later = total % blocksize; in qce_ahash_update() 236 hash_later = blocksize; in qce_ahash_update() 335 unsigned int blocksize; in qce_ahash_hmac_setkey() local 341 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_hmac_setkey() 344 if (keylen <= blocksize) { in qce_ahash_hmac_setkey() 406 unsigned int blocksize; member 417 .blocksize = SHA1_BLOCK_SIZE, [all …]
|
D | skcipher.c | 262 unsigned int blocksize = crypto_skcipher_blocksize(tfm); in qce_skcipher_crypt() local 279 if (!IS_ALIGNED(req->cryptlen, blocksize)) in qce_skcipher_crypt() 353 unsigned int blocksize; member 365 .blocksize = AES_BLOCK_SIZE, 374 .blocksize = AES_BLOCK_SIZE, 383 .blocksize = 1, 393 .blocksize = AES_BLOCK_SIZE, 402 .blocksize = DES_BLOCK_SIZE, 411 .blocksize = DES_BLOCK_SIZE, 420 .blocksize = DES3_EDE_BLOCK_SIZE, [all …]
|
D | aead.c | 508 unsigned int blocksize = crypto_aead_blocksize(tfm); in qce_aead_crypt() local 544 if (IS_CBC(rctx->flags) && !IS_ALIGNED(rctx->cryptlen, blocksize)) in qce_aead_crypt() 694 unsigned int blocksize; member 705 .blocksize = DES_BLOCK_SIZE, 713 .blocksize = DES3_EDE_BLOCK_SIZE, 721 .blocksize = DES_BLOCK_SIZE, 729 .blocksize = DES3_EDE_BLOCK_SIZE, 737 .blocksize = AES_BLOCK_SIZE, 745 .blocksize = 1, 753 .blocksize = 1, [all …]
|
/drivers/crypto/ccree/ |
D | cc_cipher.c | 1013 .blocksize = 1, 1031 .blocksize = AES_BLOCK_SIZE, 1049 .blocksize = AES_BLOCK_SIZE, 1067 .blocksize = AES_BLOCK_SIZE, 1085 .blocksize = AES_BLOCK_SIZE, 1103 .blocksize = AES_BLOCK_SIZE, 1121 .blocksize = 1, 1143 .blocksize = 1, 1160 .blocksize = AES_BLOCK_SIZE, 1177 .blocksize = AES_BLOCK_SIZE, [all …]
|
D | cc_aead.c | 418 unsigned int blocksize; in cc_get_plain_hmac_key() local 430 blocksize = SHA1_BLOCK_SIZE; in cc_get_plain_hmac_key() 436 blocksize = SHA256_BLOCK_SIZE; in cc_get_plain_hmac_key() 454 if (keylen > blocksize) { in cc_get_plain_hmac_key() 493 set_din_const(&desc[idx], 0, (blocksize - digestsize)); in cc_get_plain_hmac_key() 496 digestsize), (blocksize - digestsize), in cc_get_plain_hmac_key() 508 if ((blocksize - keylen) != 0) { in cc_get_plain_hmac_key() 511 (blocksize - keylen)); in cc_get_plain_hmac_key() 516 (blocksize - keylen), NS_BIT, 0); in cc_get_plain_hmac_key() 522 set_din_const(&desc[idx], 0, (blocksize - keylen)); in cc_get_plain_hmac_key() [all …]
|
D | cc_hash.c | 732 int blocksize = 0; in cc_hash_setkey() local 743 blocksize = crypto_tfm_alg_blocksize(&ahash->base); in cc_hash_setkey() 773 if (keylen > blocksize) { in cc_hash_setkey() 811 set_din_const(&desc[idx], 0, (blocksize - digestsize)); in cc_hash_setkey() 816 (blocksize - digestsize), NS_BIT, 0); in cc_hash_setkey() 828 if ((blocksize - keylen)) { in cc_hash_setkey() 831 (blocksize - keylen)); in cc_hash_setkey() 835 keylen), (blocksize - keylen), in cc_hash_setkey() 842 set_din_const(&desc[idx], 0, blocksize); in cc_hash_setkey() 845 blocksize, NS_BIT, 0); in cc_hash_setkey() [all …]
|
/drivers/usb/storage/ |
D | alauda.c | 88 unsigned int blocksize; /* number of pages per block */ member 432 MEDIA_INFO(us).blocksize = 1 << media_info->blockshift; in alauda_init_media() 436 MEDIA_INFO(us).blockmask = MEDIA_INFO(us).blocksize - 1; in alauda_init_media() 796 (MEDIA_INFO(us).pagesize + 64) * MEDIA_INFO(us).blocksize, in alauda_write_block() 818 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_write_lba() local 846 blocksize, blockbuffer); in alauda_write_lba() 850 memset(blockbuffer, 0, blocksize * (pagesize + 64)); in alauda_write_lba() 858 for (i = 0; i < blocksize; i++) { in alauda_write_lba() 921 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_read_data() local 935 len = min(sectors, blocksize) * (pagesize + 64); in alauda_read_data() [all …]
|
D | sddr55.c | 91 int blocksize; /* Size of block in pages */ member 209 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_read_data() 228 info->blocksize - page); in sddr55_read_data() 336 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_write_data() 355 info->blocksize - page); in sddr55_write_data() 578 info->blocksize = 16; in sddr55_get_capacity() 610 info->blocksize = 32; 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()
|
D | sddr09.c | 251 int blocksize; /* Size of block in pages */ member 755 len = min(sectors, (unsigned int) info->blocksize) * info->pagesize; in sddr09_read_data() 770 pages = min(sectors, info->blocksize - page); in sddr09_read_data() 892 result = sddr09_read22(us, address>>1, info->blocksize, in sddr09_write_lba() 898 for (i = 0; i < info->blocksize; i++) { in sddr09_write_lba() 932 result = sddr09_write_inplace(us, address>>1, info->blocksize, in sddr09_write_lba() 1000 len = min(sectors, (unsigned int) info->blocksize) * info->pagesize; in sddr09_write_data() 1015 pages = min(sectors, info->blocksize - page); in sddr09_write_data() 1604 info->blocksize = (1 << info->blockshift); in sddr09_transport() 1605 info->blockmask = info->blocksize - 1; in sddr09_transport()
|
/drivers/crypto/ccp/ |
D | ccp-crypto-aes.c | 247 unsigned int blocksize; member 258 .blocksize = AES_BLOCK_SIZE, 267 .blocksize = AES_BLOCK_SIZE, 276 .blocksize = 1, 285 .blocksize = 1, 294 .blocksize = 1, 303 .blocksize = 1, 330 alg->base.cra_blocksize = def->blocksize; in ccp_register_aes_alg()
|
D | ccp-crypto-des3.c | 153 unsigned int blocksize; member 164 .blocksize = DES3_EDE_BLOCK_SIZE, 173 .blocksize = DES3_EDE_BLOCK_SIZE, 200 alg->base.cra_blocksize = def->blocksize; in ccp_register_des3_alg()
|
D | ccp-crypto-aes-galois.c | 191 unsigned int blocksize; member 202 .blocksize = 1, 229 alg->base.cra_blocksize = def->blocksize; in ccp_register_aes_aead()
|
/drivers/mtd/devices/ |
D | bcm47xxsflash.c | 81 if (b47s->blocksize < (64 * 1024)) in bcm47xxsflash_erase() 177 u32 mask = b47s->blocksize - 1; in bcm47xxsflash_write_at() 183 if (byte || (len < b47s->blocksize)) { in bcm47xxsflash_write_at() 199 if (byte == b47s->blocksize) in bcm47xxsflash_write_at() 261 mtd->erasesize = b47s->blocksize; in bcm47xxsflash_fill_mtd() 340 b47s->blocksize = sflash->blocksize; in bcm47xxsflash_bcma_probe()
|
/drivers/crypto/marvell/cesa/ |
D | hash.c | 846 unsigned int blocksize; in mv_cesa_ahash_export() local 848 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export() 852 memset(cache, 0, blocksize); in mv_cesa_ahash_export() 864 unsigned int blocksize; in mv_cesa_ahash_import() local 872 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import() 873 if (len >= blocksize) in mv_cesa_ahash_import() 882 cache_ptr = do_div(len, blocksize); in mv_cesa_ahash_import() 1125 void *state, unsigned int blocksize) in mv_cesa_ahmac_iv_state_init() argument 1133 sg_init_one(&sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init() 1134 ahash_request_set_crypt(req, &sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init() [all …]
|
/drivers/crypto/caam/ |
D | caamhash.c | 426 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() local 434 if (keylen > blocksize) { in ahash_setkey() 824 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_ctx() local 831 *next_buflen = in_len & (blocksize - 1); in ahash_update_ctx() 839 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_ctx() 841 *next_buflen = blocksize; in ahash_update_ctx() 842 to_hash -= blocksize; in ahash_update_ctx() 1200 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_no_ctx() local 1207 *next_buflen = in_len & (blocksize - 1); in ahash_update_no_ctx() 1215 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_no_ctx() [all …]
|
/drivers/atm/ |
D | solos-pci.c | 628 int blocksize = 0; in flash_upgrade() local 636 blocksize = ATMEL_FPGA_BLOCK; in flash_upgrade() 638 blocksize = SPI_FLASH_BLOCK; in flash_upgrade() 643 blocksize = ATMEL_SOLOS_BLOCK; in flash_upgrade() 645 blocksize = SPI_FLASH_BLOCK; in flash_upgrade() 651 blocksize = ATMEL_FPGA_BLOCK; in flash_upgrade() 653 blocksize = SPI_FLASH_BLOCK; in flash_upgrade() 664 blocksize = ATMEL_SOLOS_BLOCK; in flash_upgrade() 666 blocksize = SPI_FLASH_BLOCK; in flash_upgrade() 685 numblocks = fw->size / blocksize; in flash_upgrade() [all …]
|
/drivers/crypto/ux500/cryp/ |
D | cryp_core.c | 87 u32 blocksize; member 210 if (ctx->outlen / ctx->blocksize > 0) { in cryp_interrupt_handler() 211 count = ctx->blocksize / 4; in cryp_interrupt_handler() 224 if (ctx->datalen / ctx->blocksize > 0) { in cryp_interrupt_handler() 225 count = ctx->blocksize / 4; in cryp_interrupt_handler() 277 int num_of_regs = ctx->blocksize / 8; in cfg_ivs() 290 __func__, ctx->blocksize); in cfg_ivs() 294 for (i = 0; i < ctx->blocksize / 4; i++) in cfg_ivs() 650 int len = ctx->blocksize / BYTES_PER_WORD; in cryp_polling_mode() 915 ctx->datalen = nbytes - (nbytes % ctx->blocksize); in ablk_crypt() [all …]
|
/drivers/block/null_blk/ |
D | main.c | 352 NULLB_DEVICE_ATTR(blocksize, uint, NULL); 598 dev->blocksize = g_bs; in null_alloc_dev() 938 i += (nullb->dev->blocksize >> SECTOR_SHIFT)) { in null_flush_cache_page() 942 nullb->dev->blocksize); in null_flush_cache_page() 1019 temp = min_t(size_t, nullb->dev->blocksize, n - count); in copy_to_nullb() 1056 temp = min_t(size_t, nullb->dev->blocksize, n - count); in copy_from_nullb() 1098 temp = min_t(size_t, n, dev->blocksize); in null_handle_discard() 1624 nullb->q->limits.discard_granularity = nullb->dev->blocksize; in null_config_discard() 1625 nullb->q->limits.discard_alignment = nullb->dev->blocksize; in null_config_discard() 1752 dev->blocksize = round_down(dev->blocksize, 512); in null_validate_conf() [all …]
|
/drivers/crypto/bcm/ |
D | cipher.c | 660 unsigned int blocksize = crypto_tfm_alg_blocksize(tfm); in handle_ahash_req() local 741 rem = chunksize % blocksize; /* remainder */ in handle_ahash_req() 791 blocksize); in handle_ahash_req() 901 unsigned int blocksize = in spu_hmac_outer_hash() local 907 rc = do_shash("md5", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 911 rc = do_shash("sha1", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 915 rc = do_shash("sha224", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 919 rc = do_shash("sha256", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 923 rc = do_shash("sha384", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 927 rc = do_shash("sha512", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() [all …]
|
D | spu.h | 223 unsigned int blocksize); 226 unsigned int blocksize);
|
/drivers/mmc/host/ |
D | sh_mmcif.c | 236 size_t blocksize; member 606 host->sg_blkidx += host->blocksize; in sh_mmcif_next_block() 625 host->blocksize = (sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_single_read() 647 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_read_block() 665 host->blocksize = sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_multi_read() 691 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_mread_block() 705 host->blocksize = (sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_single_write() 727 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_write_block() 745 host->blocksize = sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_multi_write() 771 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_mwrite_block()
|
/drivers/gpu/drm/radeon/ |
D | r600_cs.c | 100 unsigned blocksize; member 209 return color_formats_table[format].blocksize; in r600_fmt_get_blocksize() 246 u32 blocksize; member 260 u32 tile_bytes = tile_width * tile_height * values->blocksize * values->nsamples; in r600_get_array_mode_alignment() 272 *pitch_align = max((u32)64, (u32)(values->group_size / values->blocksize)); in r600_get_array_mode_alignment() 280 (tile_height * values->blocksize * values->nsamples))); in r600_get_array_mode_alignment() 288 (values->blocksize * values->nsamples * tile_width))); in r600_get_array_mode_alignment() 292 (*pitch_align) * values->blocksize * (*height_align) * values->nsamples); in r600_get_array_mode_alignment() 386 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 …]
|