/drivers/crypto/qce/ |
D | sha.c | 153 unsigned int blocksize = in qce_ahash_export() local 162 memcpy(out_state->buffer, rctx->buf, blocksize); in qce_ahash_export() 169 memcpy(out_state->buf, rctx->buf, blocksize); in qce_ahash_export() 183 unsigned int blocksize; in qce_import_common() local 186 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(ahash)); in qce_import_common() 188 memcpy(rctx->buf, buffer, blocksize); in qce_import_common() 190 if (in_count <= blocksize) { in qce_import_common() 207 rctx->buflen = (unsigned int)(in_count & (blocksize - 1)); in qce_import_common() 244 unsigned int blocksize; in qce_ahash_update() local 246 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in qce_ahash_update() [all …]
|
D | ablkcipher.c | 268 unsigned int blocksize; member 279 .blocksize = AES_BLOCK_SIZE, 288 .blocksize = AES_BLOCK_SIZE, 297 .blocksize = AES_BLOCK_SIZE, 306 .blocksize = AES_BLOCK_SIZE, 315 .blocksize = DES_BLOCK_SIZE, 324 .blocksize = DES_BLOCK_SIZE, 333 .blocksize = DES3_EDE_BLOCK_SIZE, 342 .blocksize = DES3_EDE_BLOCK_SIZE, 366 alg->cra_blocksize = def->blocksize; in qce_ablkcipher_register_one()
|
/drivers/mtd/ |
D | bcm47xxpart.c | 99 uint32_t blocksize = master->erasesize; in bcm47xxpart_parse() local 109 if (blocksize < 0x1000) in bcm47xxpart_parse() 110 blocksize = 0x1000; in bcm47xxpart_parse() 125 for (offset = 0; offset <= master->size - blocksize; in bcm47xxpart_parse() 126 offset += blocksize) { in bcm47xxpart_parse() 200 offset = roundup(offset + trx->length, blocksize); in bcm47xxpart_parse() 202 offset -= blocksize; in bcm47xxpart_parse() 218 if (offset != master->size - blocksize && in bcm47xxpart_parse() 261 master->size - blocksize, 0); in bcm47xxpart_parse()
|
/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/usb/storage/ |
D | alauda.c | 100 unsigned int blocksize; /* number of pages per block */ member 443 MEDIA_INFO(us).blocksize = 1 << media_info->blockshift; in alauda_init_media() 447 MEDIA_INFO(us).blockmask = MEDIA_INFO(us).blocksize - 1; in alauda_init_media() 801 (MEDIA_INFO(us).pagesize + 64) * MEDIA_INFO(us).blocksize, in alauda_write_block() 823 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_write_lba() local 851 blocksize, blockbuffer); in alauda_write_lba() 855 memset(blockbuffer, 0, blocksize * (pagesize + 64)); in alauda_write_lba() 863 for (i = 0; i < blocksize; i++) { in alauda_write_lba() 926 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_read_data() local 940 len = min(sectors, blocksize) * (pagesize + 64); in alauda_read_data() [all …]
|
D | sddr55.c | 103 int blocksize; /* Size of block in pages */ member 221 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_read_data() 240 info->blocksize - page); in sddr55_read_data() 348 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_write_data() 367 info->blocksize - page); in sddr55_write_data() 590 info->blocksize = 16; in sddr55_get_capacity() 621 info->blocksize = 32; in sddr55_get_capacity() 627 info->blocksize = 32; in sddr55_get_capacity() 633 info->blocksize = 32; in sddr55_get_capacity() 639 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() 782 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() 1012 len = min(sectors, (unsigned int) info->blocksize) * info->pagesize; in sddr09_write_data() 1027 pages = min(sectors, info->blocksize - page); in sddr09_write_data() 1616 info->blocksize = (1 << info->blockshift); in sddr09_transport() 1617 info->blockmask = info->blocksize - 1; in sddr09_transport()
|
/drivers/crypto/ccp/ |
D | ccp-crypto-aes.c | 265 unsigned int blocksize; member 276 .blocksize = AES_BLOCK_SIZE, 285 .blocksize = AES_BLOCK_SIZE, 294 .blocksize = 1, 303 .blocksize = 1, 312 .blocksize = 1, 321 .blocksize = 1, 348 alg->cra_blocksize = def->blocksize; in ccp_register_aes_alg()
|
D | ccp-crypto-des3.c | 177 unsigned int blocksize; member 188 .blocksize = DES3_EDE_BLOCK_SIZE, 197 .blocksize = DES3_EDE_BLOCK_SIZE, 224 alg->cra_blocksize = def->blocksize; in ccp_register_des3_alg()
|
D | ccp-crypto-aes-galois.c | 198 unsigned int blocksize; member 209 .blocksize = 1, 236 alg->base.cra_blocksize = def->blocksize; in ccp_register_aes_aead()
|
/drivers/staging/ccree/ |
D | ssi_cipher.c | 919 .blocksize = AES_BLOCK_SIZE, 936 .blocksize = AES_BLOCK_SIZE, 952 .blocksize = AES_BLOCK_SIZE, 970 .blocksize = AES_BLOCK_SIZE, 986 .blocksize = AES_BLOCK_SIZE, 1002 .blocksize = AES_BLOCK_SIZE, 1020 .blocksize = AES_BLOCK_SIZE, 1036 .blocksize = AES_BLOCK_SIZE, 1052 .blocksize = AES_BLOCK_SIZE, 1069 .blocksize = AES_BLOCK_SIZE, [all …]
|
D | ssi_aead.c | 433 unsigned int blocksize; in ssi_get_plain_hmac_key() local 444 blocksize = SHA1_BLOCK_SIZE; in ssi_get_plain_hmac_key() 450 blocksize = SHA256_BLOCK_SIZE; in ssi_get_plain_hmac_key() 462 if (keylen > blocksize) { in ssi_get_plain_hmac_key() 499 set_din_const(&desc[idx], 0, (blocksize - digestsize)); in ssi_get_plain_hmac_key() 502 digestsize), (blocksize - digestsize), in ssi_get_plain_hmac_key() 514 if ((blocksize - keylen) != 0) { in ssi_get_plain_hmac_key() 517 (blocksize - keylen)); in ssi_get_plain_hmac_key() 522 (blocksize - keylen), NS_BIT, 0); in ssi_get_plain_hmac_key() 528 set_din_const(&desc[idx], 0, (blocksize - keylen)); in ssi_get_plain_hmac_key() [all …]
|
D | ssi_hash.c | 968 int blocksize = 0; in ssi_hash_setkey() local 977 blocksize = crypto_tfm_alg_blocksize(&((struct crypto_ahash *)hash)->base); in ssi_hash_setkey() 1005 if (keylen > blocksize) { in ssi_hash_setkey() 1043 set_din_const(&desc[idx], 0, (blocksize - digestsize)); in ssi_hash_setkey() 1047 (blocksize - digestsize), NS_BIT, 0); in ssi_hash_setkey() 1059 if ((blocksize - keylen) != 0) { in ssi_hash_setkey() 1062 (blocksize - keylen)); in ssi_hash_setkey() 1066 keylen), (blocksize - keylen), in ssi_hash_setkey() 1073 set_din_const(&desc[idx], 0, blocksize); in ssi_hash_setkey() 1076 blocksize, NS_BIT, 0); in ssi_hash_setkey() [all …]
|
/drivers/mtd/devices/ |
D | bcm47xxsflash.c | 81 if (b47s->blocksize < (64 * 1024)) in bcm47xxsflash_erase() 186 u32 mask = b47s->blocksize - 1; in bcm47xxsflash_write_at() 192 if (byte || (len < b47s->blocksize)) { in bcm47xxsflash_write_at() 208 if (byte == b47s->blocksize) in bcm47xxsflash_write_at() 270 mtd->erasesize = b47s->blocksize; in bcm47xxsflash_fill_mtd() 349 b47s->blocksize = sflash->blocksize; in bcm47xxsflash_bcma_probe()
|
/drivers/crypto/marvell/ |
D | hash.c | 816 unsigned int blocksize; in mv_cesa_ahash_export() local 818 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_export() 822 memset(cache, 0, blocksize); in mv_cesa_ahash_export() 834 unsigned int blocksize; in mv_cesa_ahash_import() local 842 blocksize = crypto_ahash_blocksize(ahash); in mv_cesa_ahash_import() 843 if (len >= blocksize) in mv_cesa_ahash_import() 852 cache_ptr = do_div(len, blocksize); in mv_cesa_ahash_import() 1092 void *state, unsigned int blocksize) in mv_cesa_ahmac_iv_state_init() argument 1100 sg_init_one(&sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init() 1101 ahash_request_set_crypt(req, &sg, pad, blocksize); in mv_cesa_ahmac_iv_state_init() [all …]
|
/drivers/crypto/inside-secure/ |
D | safexcel_hash.c | 80 unsigned int blocksize) in safexcel_context_control() argument 114 ctx->base.ctxr->data[i] = cpu_to_le32(req->processed / blocksize); in safexcel_context_control() 800 unsigned int blocksize, const u8 *key, in safexcel_hmac_init_pad() argument 808 if (keylen <= blocksize) { in safexcel_hmac_init_pad() 837 memset(ipad + keylen, 0, blocksize - keylen); in safexcel_hmac_init_pad() 838 memcpy(opad, ipad, blocksize); in safexcel_hmac_init_pad() 840 for (i = 0; i < blocksize; i++) { in safexcel_hmac_init_pad() 849 unsigned int blocksize, u8 *pad, void *state) in safexcel_hmac_init_iv() argument 858 sg_init_one(&sg, pad, blocksize); in safexcel_hmac_init_iv() 859 ahash_request_set_crypt(areq, &sg, pad, blocksize); in safexcel_hmac_init_iv() [all …]
|
/drivers/block/ |
D | null_blk.c | 106 unsigned int blocksize; /* block size */ member 341 NULLB_DEVICE_ATTR(blocksize, uint); 570 dev->blocksize = g_bs; in null_alloc_dev() 921 i += (nullb->dev->blocksize >> SECTOR_SHIFT)) { in null_flush_cache_page() 925 nullb->dev->blocksize); in null_flush_cache_page() 1002 temp = min_t(size_t, nullb->dev->blocksize, n - count); in copy_to_nullb() 1039 temp = min_t(size_t, nullb->dev->blocksize, n - count); in copy_from_nullb() 1068 temp = min_t(size_t, n, nullb->dev->blocksize); in null_handle_discard() 1488 sector_div(size, nullb->dev->blocksize); /* convert size to pages */ in null_lnvm_id() 1502 grp->fpg_sz = nullb->dev->blocksize; in null_lnvm_id() [all …]
|
/drivers/atm/ |
D | solos-pci.c | 640 int blocksize = 0; in flash_upgrade() local 648 blocksize = ATMEL_FPGA_BLOCK; in flash_upgrade() 650 blocksize = SPI_FLASH_BLOCK; in flash_upgrade() 655 blocksize = ATMEL_SOLOS_BLOCK; in flash_upgrade() 657 blocksize = SPI_FLASH_BLOCK; in flash_upgrade() 663 blocksize = ATMEL_FPGA_BLOCK; in flash_upgrade() 665 blocksize = SPI_FLASH_BLOCK; in flash_upgrade() 676 blocksize = ATMEL_SOLOS_BLOCK; in flash_upgrade() 678 blocksize = SPI_FLASH_BLOCK; in flash_upgrade() 697 numblocks = fw->size / blocksize; in flash_upgrade() [all …]
|
/drivers/crypto/bcm/ |
D | cipher.c | 708 unsigned int blocksize = crypto_tfm_alg_blocksize(tfm); in handle_ahash_req() local 789 rem = chunksize % blocksize; /* remainder */ in handle_ahash_req() 839 blocksize); in handle_ahash_req() 949 unsigned int blocksize = in spu_hmac_outer_hash() local 955 rc = do_shash("md5", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 959 rc = do_shash("sha1", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 963 rc = do_shash("sha224", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 967 rc = do_shash("sha256", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 971 rc = do_shash("sha384", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 975 rc = do_shash("sha512", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() [all …]
|
D | spu.h | 233 unsigned int blocksize); 236 unsigned int blocksize);
|
/drivers/crypto/ux500/cryp/ |
D | cryp_core.c | 83 u32 blocksize; member 217 if (ctx->outlen / ctx->blocksize > 0) { in cryp_interrupt_handler() 218 count = ctx->blocksize / 4; in cryp_interrupt_handler() 231 if (ctx->datalen / ctx->blocksize > 0) { in cryp_interrupt_handler() 232 count = ctx->blocksize / 4; in cryp_interrupt_handler() 284 int num_of_regs = ctx->blocksize / 8; in cfg_ivs() 296 __func__, ctx->blocksize); in cfg_ivs() 300 for (i = 0; i < ctx->blocksize / 4; i++) in cfg_ivs() 649 int len = ctx->blocksize / BYTES_PER_WORD; in cryp_polling_mode() 915 ctx->datalen = nbytes - (nbytes % ctx->blocksize); in ablk_crypt() [all …]
|
/drivers/mmc/host/ |
D | sh_mmcif.c | 247 size_t blocksize; member 613 host->sg_blkidx += host->blocksize; in sh_mmcif_next_block() 632 host->blocksize = (sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_single_read() 654 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_read_block() 672 host->blocksize = sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_multi_read() 698 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_mread_block() 712 host->blocksize = (sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_single_write() 734 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_write_block() 752 host->blocksize = sh_mmcif_readl(host->addr, MMCIF_CE_BLOCK_SET) & in sh_mmcif_multi_write() 778 for (i = 0; i < host->blocksize / 4; i++) in sh_mmcif_mwrite_block()
|
/drivers/usb/atm/ |
D | ueagle-atm.c | 768 u16 blocksize; in check_dsp_e1() local 802 blocksize = get_unaligned_le16(dsp + pp); in check_dsp_e1() 806 if (pp + blocksize > len) in check_dsp_e1() 809 pp += blocksize; in check_dsp_e1() 950 u16 blockaddr, blocksize; in uea_load_page_e1() local 991 blocksize = get_unaligned_le16(p); in uea_load_page_e1() 994 bi.wSize = cpu_to_le16(blocksize); in uea_load_page_e1() 1003 if (uea_idma_write(sc, p, blocksize)) in uea_load_page_e1() 1006 p += blocksize; in uea_load_page_e1() 1032 unsigned int blocksize; in __uea_load_page_e4() local [all …]
|
/drivers/gpu/drm/radeon/ |
D | r600_cs.c | 99 unsigned blocksize; member 208 return color_formats_table[format].blocksize; in r600_fmt_get_blocksize() 245 u32 blocksize; member 259 u32 tile_bytes = tile_width * tile_height * values->blocksize * values->nsamples; in r600_get_array_mode_alignment() 271 *pitch_align = max((u32)64, (u32)(values->group_size / values->blocksize)); in r600_get_array_mode_alignment() 279 (tile_height * values->blocksize * values->nsamples))); in r600_get_array_mode_alignment() 287 (values->blocksize * values->nsamples * tile_width))); in r600_get_array_mode_alignment() 291 (*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() 582 array_check.blocksize = bpe; in r600_cs_track_validate_db() [all …]
|