Home
last modified time | relevance | path

Searched refs:blocksize (Results 1 – 25 of 55) sorted by relevance

123

/drivers/mtd/parsers/
Dbcm47xxpart.c95 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/crypto/qce/
Dsha.c146 unsigned int blocksize = in qce_ahash_export() local
155 memcpy(out_state->buffer, rctx->buf, blocksize); in qce_ahash_export()
162 memcpy(out_state->buf, rctx->buf, blocksize); in qce_ahash_export()
176 unsigned int blocksize; in qce_import_common() local
179 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_import_common()
181 memcpy(rctx->buf, buffer, blocksize); in qce_import_common()
183 if (in_count <= blocksize) { in qce_import_common()
200 rctx->buflen = (unsigned int)(in_count & (blocksize - 1)); in qce_import_common()
245 unsigned int blocksize; in qce_ahash_update() local
247 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_update()
[all …]
Dskcipher.c302 unsigned int blocksize; member
314 .blocksize = AES_BLOCK_SIZE,
323 .blocksize = AES_BLOCK_SIZE,
332 .blocksize = 1,
342 .blocksize = AES_BLOCK_SIZE,
351 .blocksize = DES_BLOCK_SIZE,
360 .blocksize = DES_BLOCK_SIZE,
369 .blocksize = DES3_EDE_BLOCK_SIZE,
378 .blocksize = DES3_EDE_BLOCK_SIZE,
402 alg->base.cra_blocksize = def->blocksize; in qce_skcipher_register_one()
/drivers/ssb/
Ddriver_chipcommon_sflash.c28 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/
Ddriver_chipcommon_sflash.c29 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/ccree/
Dcc_cipher.c1010 .blocksize = 1,
1028 .blocksize = AES_BLOCK_SIZE,
1046 .blocksize = AES_BLOCK_SIZE,
1064 .blocksize = AES_BLOCK_SIZE,
1082 .blocksize = AES_BLOCK_SIZE,
1100 .blocksize = AES_BLOCK_SIZE,
1118 .blocksize = 1,
1140 .blocksize = 1,
1157 .blocksize = AES_BLOCK_SIZE,
1174 .blocksize = AES_BLOCK_SIZE,
[all …]
Dcc_aead.c418 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 …]
Dcc_hash.c732 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/
Dalauda.c88 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 …]
Dsddr55.c91 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()
Dsddr09.c251 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/
Dccp-crypto-aes.c247 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()
Dccp-crypto-des3.c153 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()
Dccp-crypto-aes-galois.c191 unsigned int blocksize; member
202 .blocksize = 1,
229 alg->base.cra_blocksize = def->blocksize; in ccp_register_aes_aead()
/drivers/mtd/devices/
Dbcm47xxsflash.c81 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/
Dhash.c822 unsigned int blocksize; in mv_cesa_ahash_export() local
824 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export()
828 memset(cache, 0, blocksize); in mv_cesa_ahash_export()
840 unsigned int blocksize; in mv_cesa_ahash_import() local
848 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import()
849 if (len >= blocksize) in mv_cesa_ahash_import()
858 cache_ptr = do_div(len, blocksize); in mv_cesa_ahash_import()
1101 void *state, unsigned int blocksize) in mv_cesa_ahmac_iv_state_init() argument
1109 sg_init_one(&sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init()
1110 ahash_request_set_crypt(req, &sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init()
[all …]
/drivers/crypto/caam/
Dcaamhash.c426 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() local
434 if (keylen > blocksize) { in ahash_setkey()
821 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_ctx() local
828 *next_buflen = in_len & (blocksize - 1); in ahash_update_ctx()
836 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_ctx()
838 *next_buflen = blocksize; in ahash_update_ctx()
839 to_hash -= blocksize; in ahash_update_ctx()
1197 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_no_ctx() local
1204 *next_buflen = in_len & (blocksize - 1); in ahash_update_no_ctx()
1212 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_no_ctx()
[all …]
/drivers/atm/
Dsolos-pci.c628 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/dax/
Dsuper.c71 struct block_device *bdev, int blocksize, sector_t start, in __generic_fsdax_supported() argument
83 if (blocksize != PAGE_SIZE) { in __generic_fsdax_supported()
168 bool __bdev_dax_supported(struct block_device *bdev, int blocksize) in __bdev_dax_supported() argument
191 ret = dax_supported(dax_dev, bdev, blocksize, 0, in __bdev_dax_supported()
327 int blocksize, sector_t start, sector_t len) in dax_supported() argument
335 return dax_dev->ops->dax_supported(dax_dev, bdev, blocksize, start, len); in dax_supported()
/drivers/crypto/ux500/cryp/
Dcryp_core.c86 u32 blocksize; member
209 if (ctx->outlen / ctx->blocksize > 0) { in cryp_interrupt_handler()
210 count = ctx->blocksize / 4; in cryp_interrupt_handler()
223 if (ctx->datalen / ctx->blocksize > 0) { in cryp_interrupt_handler()
224 count = ctx->blocksize / 4; in cryp_interrupt_handler()
276 int num_of_regs = ctx->blocksize / 8; in cfg_ivs()
289 __func__, ctx->blocksize); in cfg_ivs()
293 for (i = 0; i < ctx->blocksize / 4; i++) in cfg_ivs()
649 int len = ctx->blocksize / BYTES_PER_WORD; in cryp_polling_mode()
914 ctx->datalen = nbytes - (nbytes % ctx->blocksize); in ablk_crypt()
[all …]
/drivers/block/null_blk/
Dmain.c348 NULLB_DEVICE_ATTR(blocksize, uint, NULL);
590 dev->blocksize = g_bs; in null_alloc_dev()
928 i += (nullb->dev->blocksize >> SECTOR_SHIFT)) { in null_flush_cache_page()
932 nullb->dev->blocksize); in null_flush_cache_page()
1009 temp = min_t(size_t, nullb->dev->blocksize, n - count); in copy_to_nullb()
1046 temp = min_t(size_t, nullb->dev->blocksize, n - count); in copy_from_nullb()
1085 temp = min_t(size_t, n, nullb->dev->blocksize); in null_handle_discard()
1614 nullb->q->limits.discard_granularity = nullb->dev->blocksize; in null_config_discard()
1615 nullb->q->limits.discard_alignment = nullb->dev->blocksize; in null_config_discard()
1746 dev->blocksize = round_down(dev->blocksize, 512); in null_validate_conf()
[all …]
/drivers/crypto/bcm/
Dcipher.c661 unsigned int blocksize = crypto_tfm_alg_blocksize(tfm); in handle_ahash_req() local
742 rem = chunksize % blocksize; /* remainder */ in handle_ahash_req()
792 blocksize); in handle_ahash_req()
902 unsigned int blocksize = in spu_hmac_outer_hash() local
908 rc = do_shash("md5", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
912 rc = do_shash("sha1", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
916 rc = do_shash("sha224", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
920 rc = do_shash("sha256", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
924 rc = do_shash("sha384", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
928 rc = do_shash("sha512", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash()
[all …]
Dspu.h222 unsigned int blocksize);
225 unsigned int blocksize);
/drivers/mmc/host/
Dsh_mmcif.c236 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/usb/atm/
Dueagle-atm.c725 u16 blocksize; in check_dsp_e1() local
759 blocksize = get_unaligned_le16(dsp + pp); in check_dsp_e1()
763 if (pp + blocksize > len) in check_dsp_e1()
766 pp += blocksize; in check_dsp_e1()
907 u16 blockaddr, blocksize; in uea_load_page_e1() local
948 blocksize = get_unaligned_le16(p); in uea_load_page_e1()
951 bi.wSize = cpu_to_le16(blocksize); in uea_load_page_e1()
960 if (uea_idma_write(sc, p, blocksize)) in uea_load_page_e1()
963 p += blocksize; in uea_load_page_e1()
989 unsigned int blocksize; in __uea_load_page_e4() local
[all …]

123