| /linux/drivers/mtd/parsers/ |
| H A 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() 120 for (offset = 0; offset <= master->size - blocksize; in bcm47xxpart_parse() 121 offset += blocksize) { in bcm47xxpart_parse() 205 trx_size = max(trx->length, last_subpart + blocksize); in bcm47xxpart_parse() 211 offset += roundup(trx_size, blocksize) - blocksize; in bcm47xxpart_parse() 227 if (offset != master->size - blocksize && in bcm47xxpart_parse() 235 err = mtd_read(master, offset + (blocksize / 2), 0x4, &bytes_read, in bcm47xxpart_parse() 239 offset + (blocksize / 2), err); in bcm47xxpart_parse() [all …]
|
| /linux/fs/nilfs2/ |
| H A D | the_nilfs.c | 209 struct nilfs_super_block *sbp, int *blocksize) in nilfs_get_blocksize() argument 219 *blocksize = BLOCK_SIZE << shift_bits; in nilfs_get_blocksize() 262 int blocksize; in load_nilfs() local 283 err = nilfs_get_blocksize(sb, sbp[0], &blocksize); in load_nilfs() 287 if (blocksize != nilfs->ns_blocksize) { in load_nilfs() 290 blocksize, nilfs->ns_blocksize); in load_nilfs() 606 struct super_block *sb, int blocksize, in nilfs_load_super_block() argument 620 sbp[0] = nilfs_read_super_block(sb, NILFS_SB_OFFSET_BYTES, blocksize, in nilfs_load_super_block() 622 sbp[1] = nilfs_read_super_block(sb, sb2off, blocksize, &sbh[1]); in nilfs_load_super_block() 631 blocksize); in nilfs_load_super_block() [all …]
|
| H A D | recovery.c | 99 unsigned int blocksize = nilfs->ns_blocksize; in nilfs_compute_checksum() local 103 BUG_ON(offset >= blocksize); in nilfs_compute_checksum() 105 size = min_t(u64, check_bytes, blocksize - offset); in nilfs_compute_checksum() 112 bh = __bread(nilfs->ns_bdev, ++start, blocksize); in nilfs_compute_checksum() 116 size = min_t(u64, check_bytes, blocksize); in nilfs_compute_checksum() 530 unsigned int blocksize = nilfs->ns_blocksize; in nilfs_recover_dsync_blocks() local 544 err = block_write_begin(inode->i_mapping, pos, blocksize, in nilfs_recover_dsync_blocks() 549 if (pos + blocksize > isize) in nilfs_recover_dsync_blocks() 551 pos + blocksize); in nilfs_recover_dsync_blocks() 563 block_write_end(pos, blocksize, blocksize, folio); in nilfs_recover_dsync_blocks()
|
| /linux/net/sunrpc/auth_gss/ |
| H A D | gss_krb5_keys.c | 154 size_t blocksize, keybytes, keylength, n; in krb5_DK() local 169 blocksize = crypto_sync_skcipher_blocksize(cipher); in krb5_DK() 174 inblockdata = kmalloc(blocksize, gfp_mask); in krb5_DK() 178 outblockdata = kmalloc(blocksize, gfp_mask); in krb5_DK() 183 inblock.len = blocksize; in krb5_DK() 186 outblock.len = blocksize; in krb5_DK() 376 unsigned int blocksize, offset; in krb5_kdf_feedback_cmac() local 395 blocksize = crypto_shash_digestsize(tfm); in krb5_kdf_feedback_cmac() 396 n = (outkey->len + blocksize - 1) / blocksize; in krb5_kdf_feedback_cmac() 400 step.len = blocksize; in krb5_kdf_feedback_cmac() [all …]
|
| H A D | gss_krb5_crypto.c | 481 u32 blocksize, nbytes, nblocks, cbcbytes; in krb5_cbc_cts_encrypt() local 485 blocksize = crypto_sync_skcipher_blocksize(cts_tfm); in krb5_cbc_cts_encrypt() 487 nblocks = (nbytes + blocksize - 1) / blocksize; in krb5_cbc_cts_encrypt() 490 cbcbytes = (nblocks - 2) * blocksize; in krb5_cbc_cts_encrypt() 545 u32 blocksize, nblocks, cbcbytes; in krb5_cbc_cts_decrypt() local 549 blocksize = crypto_sync_skcipher_blocksize(cts_tfm); in krb5_cbc_cts_decrypt() 550 nblocks = (buf->len + blocksize - 1) / blocksize; in krb5_cbc_cts_decrypt() 553 cbcbytes = (nblocks - 2) * blocksize; in krb5_cbc_cts_decrypt()
|
| /linux/fs/ocfs2/ |
| H A D | blockcheck.c | 144 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument 146 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block() 212 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument 215 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block() 349 void ocfs2_block_check_compute(void *data, size_t blocksize, in ocfs2_block_check_compute() argument 357 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_compute() 358 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_compute() 378 int ocfs2_block_check_validate(void *data, size_t blocksize, in ocfs2_block_check_validate() argument 395 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_validate() 405 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_validate() [all …]
|
| H A D | blockcheck.h | 42 void ocfs2_block_check_compute(void *data, size_t blocksize, 44 int ocfs2_block_check_validate(void *data, size_t blocksize, 91 extern u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize); 92 extern void ocfs2_hamming_fix_block(void *data, unsigned int blocksize,
|
| /linux/sound/pci/emu10k1/ |
| H A D | emu10k1_patch.c | 33 int truesize, size, blocksize; in snd_emu10k1_sample_new() local 99 blocksize = truesize << shift; in snd_emu10k1_sample_new() 100 sp->block = snd_emu10k1_synth_alloc(emu, blocksize); in snd_emu10k1_sample_new() 103 "synth malloc failed (size=%d)\n", blocksize); in snd_emu10k1_sample_new() 108 sp->v.truesize = blocksize; in snd_emu10k1_sample_new() 140 if (offset < blocksize) in snd_emu10k1_sample_new() 141 snd_emu10k1_synth_memset(emu, sp->block, offset, blocksize - offset, fill); in snd_emu10k1_sample_new()
|
| /linux/drivers/ssb/ |
| H A 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()
|
| /linux/drivers/bcma/ |
| H A 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()
|
| /linux/drivers/usb/storage/ |
| H A D | alauda.c | 88 unsigned int blocksize; /* number of pages per block */ member 434 MEDIA_INFO(us).blocksize = 1 << media_info->blockshift; in alauda_init_media() 438 MEDIA_INFO(us).blockmask = MEDIA_INFO(us).blocksize - 1; in alauda_init_media() 799 (MEDIA_INFO(us).pagesize + 64) * MEDIA_INFO(us).blocksize, in alauda_write_block() 821 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_write_lba() local 849 blocksize, blockbuffer); in alauda_write_lba() 853 memset(blockbuffer, 0, blocksize * (pagesize + 64)); in alauda_write_lba() 861 for (i = 0; i < blocksize; i++) { in alauda_write_lba() 924 unsigned int blocksize = MEDIA_INFO(us).blocksize; in alauda_read_data() local 938 len = min(sectors, blocksize) * (pagesize + 64); in alauda_read_data() [all …]
|
| H A D | sddr55.c | 91 int blocksize; /* Size of block in pages */ member 209 len = min_t(unsigned int, sectors, info->blocksize >> in sddr55_read_data() 228 info->blocksize - page); in sddr55_read_data() 336 len = min_t(unsigned int, sectors, info->blocksize >> in sddr55_write_data() 355 info->blocksize - page); in sddr55_write_data() 584 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()
|
| H A D | sddr09.c | 251 int blocksize; /* Size of block in pages */ member 755 len = min_t(unsigned int, sectors, 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_t(unsigned int, sectors, 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()
|
| /linux/drivers/mtd/devices/ |
| H A 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()
|
| /linux/drivers/crypto/caam/ |
| H A D | caamhash.c | 429 int blocksize = crypto_tfm_alg_blocksize(&ahash->base); in ahash_setkey() local 437 if (keylen > blocksize) { in ahash_setkey() 830 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_ctx() local 837 *next_buflen = in_len & (blocksize - 1); in ahash_update_ctx() 845 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_ctx() 847 *next_buflen = blocksize; in ahash_update_ctx() 848 to_hash -= blocksize; in ahash_update_ctx() 1206 int blocksize = crypto_ahash_blocksize(ahash); in ahash_update_no_ctx() local 1213 *next_buflen = in_len & (blocksize - 1); in ahash_update_no_ctx() 1221 is_cmac_aes(ctx->adata.algtype)) && to_hash >= blocksize && in ahash_update_no_ctx() [all …]
|
| /linux/fs/adfs/ |
| H A D | super.c | 262 unsigned int blocksize = BLOCK_SIZE; in adfs_probe() local 267 if (sb->s_blocksize != blocksize && in adfs_probe() 268 !sb_set_blocksize(sb, blocksize)) { in adfs_probe() 292 blocksize = 1 << dr->log2secsize; in adfs_probe() 293 if (sb->s_blocksize == blocksize) { in adfs_probe()
|
| /linux/fs/ntfs/ |
| H A D | aops.c | 132 unsigned long blocksize, flags; in ntfs_bmap() local 149 blocksize = vol->sb->s_blocksize; in ntfs_bmap() 161 if (unlikely(ofs >= size || (ofs + blocksize > size && size < i_size))) in ntfs_bmap()
|
| /linux/drivers/atm/ |
| H A 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 …]
|
| /linux/fs/btrfs/ |
| H A D | inode.c | 849 static void round_up_last_block(struct compressed_bio *cb, u32 blocksize) in round_up_last_block() argument 855 const u32 padding_len = round_up(foffset, blocksize) - foffset; in round_up_last_block() 858 if (IS_ALIGNED(bio_size, blocksize)) in round_up_last_block() 887 u64 blocksize = fs_info->sectorsize; in compress_file_range() local 982 round_up_last_block(cb, blocksize); in compress_file_range() 984 ASSERT(IS_ALIGNED(total_compressed, blocksize)); in compress_file_range() 992 if (total_compressed + blocksize > total_in) in compress_file_range() 1376 u32 blocksize = fs_info->sectorsize; in cow_file_range() local 1393 num_bytes = ALIGN(end - start + 1, blocksize); in cow_file_range() 1394 num_bytes = max(blocksize, num_bytes); in cow_file_range() [all …]
|
| H A D | tree-checker.c | 2073 const u32 blocksize = fs_info->sectorsize; in check_free_space_info() local 2076 if (unlikely(!IS_ALIGNED(key->objectid, blocksize))) { in check_free_space_info() 2079 blocksize, BTRFS_KEY_FMT_VALUE(key)); in check_free_space_info() 2082 if (unlikely(!IS_ALIGNED(key->offset, blocksize))) { in check_free_space_info() 2085 blocksize, BTRFS_KEY_FMT_VALUE(key)); in check_free_space_info() 2118 const u32 blocksize = fs_info->sectorsize; in check_free_space_extent() local 2120 if (unlikely(!IS_ALIGNED(key->objectid, blocksize))) { in check_free_space_extent() 2123 blocksize, BTRFS_KEY_FMT_VALUE(key)); in check_free_space_extent() 2126 if (unlikely(!IS_ALIGNED(key->offset, blocksize))) { in check_free_space_extent() 2129 blocksize, BTRFS_KEY_FMT_VALUE(key)); in check_free_space_extent() [all …]
|
| /linux/fs/minix/ |
| H A D | bitmap.c | 27 static __u32 count_free(struct buffer_head *map[], unsigned blocksize, __u32 numbits) in count_free() argument 30 unsigned blocks = DIV_ROUND_UP(numbits, blocksize * 8); in count_free() 33 unsigned words = blocksize / 2; in count_free()
|
| /linux/drivers/crypto/bcm/ |
| H A D | cipher.c | 656 unsigned int blocksize = crypto_tfm_alg_blocksize(tfm); in handle_ahash_req() local 737 rem = chunksize % blocksize; /* remainder */ in handle_ahash_req() 787 blocksize); in handle_ahash_req() 897 unsigned int blocksize = in spu_hmac_outer_hash() local 903 rc = do_shash("md5", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 907 rc = do_shash("sha1", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 911 rc = do_shash("sha224", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 915 rc = do_shash("sha256", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 919 rc = do_shash("sha384", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() 923 rc = do_shash("sha512", req->result, ctx->opad, blocksize, in spu_hmac_outer_hash() [all …]
|
| H A D | spu.h | 223 unsigned int blocksize); 226 unsigned int blocksize);
|
| /linux/fs/ntfs3/ |
| H A D | bitmap.c | 504 u32 blocksize = sb->s_blocksize; in wnd_rescan() local 629 vbo += blocksize; in wnd_rescan() 631 len -= blocksize; in wnd_rescan() 632 lbo += blocksize; in wnd_rescan() 664 u32 blocksize = sb->s_blocksize; in wnd_init() local 665 u32 wbits = blocksize * 8; in wnd_init() 1328 u32 blocksize = sb->s_blocksize; in wnd_extend() local 1329 u32 wbits = blocksize * 8; in wnd_extend() 1370 vbo = (u64)iw * blocksize; in wnd_extend() 1382 ntfs_bitmap_clear_le(bh->b_data, b0, blocksize * 8 - b0); in wnd_extend()
|
| /linux/Documentation/filesystems/ext4/ |
| H A D | orphan.rst | 31 blocksize-8 __le32 ob_magic Magic value stored in orphan 33 blocksize-4 __le32 ob_checksum Checksum of the orphan block.
|