Home
last modified time | relevance | path

Searched refs:blocks (Results 1 – 25 of 788) sorted by relevance

12345678910>>...32

/Linux-v4.19/crypto/
Daegis128l.c34 union aegis_block blocks[AEGIS128L_CHUNK_BLOCKS]; member
39 union aegis_block blocks[AEGIS128L_STATE_BLOCKS]; member
59 tmp = state->blocks[AEGIS128L_STATE_BLOCKS - 1]; in crypto_aegis128l_update()
61 crypto_aegis_aesenc(&state->blocks[i], &state->blocks[i - 1], in crypto_aegis128l_update()
62 &state->blocks[i]); in crypto_aegis128l_update()
63 crypto_aegis_aesenc(&state->blocks[0], &tmp, &state->blocks[0]); in crypto_aegis128l_update()
70 crypto_aegis_block_xor(&state->blocks[0], &msg->blocks[0]); in crypto_aegis128l_update_a()
71 crypto_aegis_block_xor(&state->blocks[4], &msg->blocks[1]); in crypto_aegis128l_update_a()
78 crypto_xor(state->blocks[0].bytes, msg + 0 * AEGIS_BLOCK_SIZE, in crypto_aegis128l_update_u()
80 crypto_xor(state->blocks[4].bytes, msg + 1 * AEGIS_BLOCK_SIZE, in crypto_aegis128l_update_u()
[all …]
Daegis256.c32 union aegis_block blocks[AEGIS256_STATE_BLOCKS]; member
52 tmp = state->blocks[AEGIS256_STATE_BLOCKS - 1]; in crypto_aegis256_update()
54 crypto_aegis_aesenc(&state->blocks[i], &state->blocks[i - 1], in crypto_aegis256_update()
55 &state->blocks[i]); in crypto_aegis256_update()
56 crypto_aegis_aesenc(&state->blocks[0], &tmp, &state->blocks[0]); in crypto_aegis256_update()
63 crypto_aegis_block_xor(&state->blocks[0], msg); in crypto_aegis256_update_a()
69 crypto_xor(state->blocks[0].bytes, msg, AEGIS_BLOCK_SIZE); in crypto_aegis256_update_u()
86 state->blocks[0] = key_iv[0]; in crypto_aegis256_init()
87 state->blocks[1] = key_iv[1]; in crypto_aegis256_init()
88 state->blocks[2] = crypto_aegis_const[1]; in crypto_aegis256_init()
[all …]
Daegis128.c32 union aegis_block blocks[AEGIS128_STATE_BLOCKS]; member
52 tmp = state->blocks[AEGIS128_STATE_BLOCKS - 1]; in crypto_aegis128_update()
54 crypto_aegis_aesenc(&state->blocks[i], &state->blocks[i - 1], in crypto_aegis128_update()
55 &state->blocks[i]); in crypto_aegis128_update()
56 crypto_aegis_aesenc(&state->blocks[0], &tmp, &state->blocks[0]); in crypto_aegis128_update()
63 crypto_aegis_block_xor(&state->blocks[0], msg); in crypto_aegis128_update_a()
69 crypto_xor(state->blocks[0].bytes, msg, AEGIS_BLOCK_SIZE); in crypto_aegis128_update_u()
82 state->blocks[0] = key_iv; in crypto_aegis128_init()
83 state->blocks[1] = crypto_aegis_const[1]; in crypto_aegis128_init()
84 state->blocks[2] = crypto_aegis_const[0]; in crypto_aegis128_init()
[all …]
/Linux-v4.19/Documentation/filesystems/ext4/ondisk/
Dblockmap.rst6 | 0 to 11 | Direct map to file blocks 0 to 11. …
8 … | Indirect block: (file blocks 12 to (``$block_size`` / 4) + 11, or 12 to 1035 i…
13 … (``$block_size`` / 4) | Direct map to (``$block_size`` / 4) blocks (1024 if 4KiB blocks) | …
16 …t block: (file blocks ``$block_size``/4 + 12 to (``$block_size`` / 4) ^ 2 + (``$block_size`` / 4) …
21 …$block_size`` / 4) | Map to (``$block_size`` / 4) indirect blocks (1024 if 4KiB blocks) …
26 … (``$block_size`` / 4) | Direct map to (``$block_size`` / 4) blocks (1024 if 4KiB blocks) | …
30blocks (``$block_size`` / 4) ^ 2 + (``$block_size`` / 4) + 12 to (``$block_size`` / 4) ^ 3 + (``$b…
35 …size`` / 4) | Map to (``$block_size`` / 4) double indirect blocks (1024 if 4KiB blocks) …
40 …$block_size`` / 4) | Map to (``$block_size`` / 4) indirect blocks (1024 if 4KiB blocks) …
45 … (``$block_size`` / 4) | Direct map to (``$block_size`` / 4) blocks (1024 if 4KiB blocks) | …
/Linux-v4.19/crypto/async_tx/
Dasync_pq.c123 do_sync_gen_syndrome(struct page **blocks, unsigned int offset, int disks, in do_sync_gen_syndrome() argument
133 srcs = (void **) blocks; in do_sync_gen_syndrome()
136 if (blocks[i] == NULL) { in do_sync_gen_syndrome()
140 srcs[i] = page_address(blocks[i]) + offset; in do_sync_gen_syndrome()
179 async_gen_syndrome(struct page **blocks, unsigned int offset, int disks, in async_gen_syndrome() argument
184 &P(blocks, disks), 2, in async_gen_syndrome()
185 blocks, src_cnt, len); in async_gen_syndrome()
189 BUG_ON(disks > MAX_DISKS || !(P(blocks, disks) || Q(blocks, disks))); in async_gen_syndrome()
213 if (blocks[i] == NULL) in async_gen_syndrome()
215 unmap->addr[j] = dma_map_page(device->dev, blocks[i], offset, in async_gen_syndrome()
[all …]
Dasync_raid6_recov.c161 struct page **blocks, struct async_submit_ctl *submit) in __2data_recov_4() argument
172 p = blocks[disks-2]; in __2data_recov_4()
173 q = blocks[disks-1]; in __2data_recov_4()
175 a = blocks[faila]; in __2data_recov_4()
176 b = blocks[failb]; in __2data_recov_4()
200 struct page **blocks, struct async_submit_ctl *submit) in __2data_recov_5() argument
215 if (blocks[i] == NULL) in __2data_recov_5()
224 p = blocks[disks-2]; in __2data_recov_5()
225 q = blocks[disks-1]; in __2data_recov_5()
226 g = blocks[good]; in __2data_recov_5()
[all …]
/Linux-v4.19/arch/arm64/crypto/
Daes-neonbs-glue.c32 int rounds, int blocks);
34 int rounds, int blocks);
37 int rounds, int blocks, u8 iv[]);
40 int rounds, int blocks, u8 iv[], u8 final[]);
43 int rounds, int blocks, u8 iv[]);
45 int rounds, int blocks, u8 iv[]);
49 int rounds, int blocks);
51 int rounds, int blocks, u8 iv[]);
95 int rounds, int blocks)) in __ecb_crypt() argument
105 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in __ecb_crypt() local
[all …]
Daes-glue.c67 int rounds, int blocks);
69 int rounds, int blocks);
72 int rounds, int blocks, u8 iv[]);
74 int rounds, int blocks, u8 iv[]);
77 int rounds, int blocks, u8 ctr[]);
80 int rounds, int blocks, u8 const rk2[], u8 iv[],
83 int rounds, int blocks, u8 const rk2[], u8 iv[],
87 int blocks, u8 dg[], int enc_before,
138 unsigned int blocks; in ecb_encrypt() local
142 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in ecb_encrypt()
[all …]
Dghash-ce-glue.c55 asmlinkage void pmull_ghash_update_p64(int blocks, u64 dg[], const char *src,
59 asmlinkage void pmull_ghash_update_p8(int blocks, u64 dg[], const char *src,
63 static void (*pmull_ghash_update)(int blocks, u64 dg[], const char *src,
67 asmlinkage void pmull_gcm_encrypt(int blocks, u64 dg[], u8 dst[],
72 asmlinkage void pmull_gcm_decrypt(int blocks, u64 dg[], u8 dst[],
89 static void ghash_do_update(int blocks, u64 dg[], const char *src, in ghash_do_update() argument
94 pmull_ghash_update(blocks, dg, src, key, head); in ghash_do_update()
104 blocks++; in ghash_do_update()
112 } while (--blocks); in ghash_do_update()
132 int blocks; in ghash_update() local
[all …]
/Linux-v4.19/arch/arm/crypto/
Daes-neonbs-glue.c30 int rounds, int blocks);
32 int rounds, int blocks);
35 int rounds, int blocks, u8 iv[]);
38 int rounds, int blocks, u8 ctr[], u8 final[]);
41 int rounds, int blocks, u8 iv[]);
43 int rounds, int blocks, u8 iv[]);
82 int rounds, int blocks)) in __ecb_crypt() argument
93 unsigned int blocks = walk.nbytes / AES_BLOCK_SIZE; in __ecb_crypt() local
96 blocks = round_down(blocks, in __ecb_crypt()
100 ctx->rounds, blocks); in __ecb_crypt()
[all …]
Daes-ce-glue.c30 int rounds, int blocks);
32 int rounds, int blocks);
35 int rounds, int blocks, u8 iv[]);
37 int rounds, int blocks, u8 iv[]);
40 int rounds, int blocks, u8 ctr[]);
43 int rounds, int blocks, u8 iv[],
46 int rounds, int blocks, u8 iv[],
182 unsigned int blocks; in ecb_encrypt() local
188 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in ecb_encrypt()
190 (u8 *)ctx->key_enc, num_rounds(ctx), blocks); in ecb_encrypt()
[all …]
/Linux-v4.19/drivers/mtd/
Drfd_ftl.c87 struct block *blocks; member
94 struct block *block = &part->blocks[block_no]; in build_block_map()
187 part->blocks = kcalloc(part->total_blocks, sizeof(struct block), in scan_header()
189 if (!part->blocks) in scan_header()
237 kfree(part->blocks); in scan_header()
279 erase->addr = part->blocks[block].offset; in erase_block()
282 part->blocks[block].state = BLOCK_ERASING; in erase_block()
283 part->blocks[block].free_sectors = 0; in erase_block()
290 part->blocks[block].state = BLOCK_FAILED; in erase_block()
291 part->blocks[block].free_sectors = 0; in erase_block()
[all …]
/Linux-v4.19/Documentation/media/uapi/v4l/
Dvidioc-g-edid.rst59 ``start_block``, ``blocks`` and ``edid`` fields, zero the ``reserved``
61 ``start_block`` and of size ``blocks`` will be placed in the memory
63 ``blocks`` * 128 bytes large (the size of one block is 128 bytes).
65 If there are fewer blocks than specified, then the driver will set
66 ``blocks`` to the actual number of blocks. If there are no EDID blocks
69 If blocks have to be retrieved from the sink, then this call will block
72 If ``start_block`` and ``blocks`` are both set to 0 when
73 :ref:`VIDIOC_G_EDID <VIDIOC_G_EDID>` is called, then the driver will set ``blocks`` to the
74 total number of available EDID blocks and it will return 0 without
75 copying any data. This is an easy way to discover how many EDID blocks
[all …]
/Linux-v4.19/arch/m68k/emu/
Dnfblock.c41 static inline s32 nfhd_get_capacity(u32 major, u32 minor, u32 *blocks, in nfhd_get_capacity() argument
45 virt_to_phys(blocks), virt_to_phys(blocksize)); in nfhd_get_capacity()
56 u32 blocks, bsize; member
87 geo->cylinders = dev->blocks >> (6 - dev->bshift); in nfhd_getgeo()
99 static int __init nfhd_init_one(int id, u32 blocks, u32 bsize) in nfhd_init_one() argument
105 blocks, bsize); in nfhd_init_one()
117 dev->blocks = blocks; in nfhd_init_one()
138 set_capacity(dev->disk, (sector_t)blocks * (bsize / 512)); in nfhd_init_one()
157 u32 blocks, bsize; in nfhd_init() local
171 if (nfhd_get_capacity(i, 0, &blocks, &bsize)) in nfhd_init()
[all …]
/Linux-v4.19/arch/x86/crypto/
Dpoly1305_glue.c35 const u32 *r, unsigned int blocks);
37 unsigned int blocks, const u32 *u);
40 unsigned int blocks, const u32 *u);
71 unsigned int blocks, datalen; in poly1305_simd_blocks() local
96 blocks = srclen / (POLY1305_BLOCK_SIZE * 4); in poly1305_simd_blocks()
97 poly1305_4block_avx2(dctx->h, src, dctx->r, blocks, sctx->u); in poly1305_simd_blocks()
98 src += POLY1305_BLOCK_SIZE * 4 * blocks; in poly1305_simd_blocks()
99 srclen -= POLY1305_BLOCK_SIZE * 4 * blocks; in poly1305_simd_blocks()
108 blocks = srclen / (POLY1305_BLOCK_SIZE * 2); in poly1305_simd_blocks()
109 poly1305_2block_sse2(dctx->h, src, dctx->r, blocks, sctx->u); in poly1305_simd_blocks()
[all …]
/Linux-v4.19/Documentation/device-mapper/
Dera.txt5 addition it keeps track of which blocks were written within a user
10 Use cases include tracking changed blocks for backup software, and
20 origin dev : device holding data blocks that may change
49 <metadata block size> <#used metadata blocks>/<#total metadata blocks>
54 #used metadata blocks : Number of metadata blocks used
55 #total metadata blocks : Total number of metadata blocks
57 held metadata root : The location, in blocks, of the metadata root
81 - Ascertain which blocks have been written since the snapshot was taken
83 - Invalidate those blocks in the caching software
91 that it uses a few 4k blocks for updating metadata.
/Linux-v4.19/drivers/mfd/
Dstmpe.c39 unsigned int blocks; member
47 static int __stmpe_enable(struct stmpe *stmpe, unsigned int blocks) in __stmpe_enable() argument
49 return stmpe->variant->enable(stmpe, blocks, true); in __stmpe_enable()
52 static int __stmpe_disable(struct stmpe *stmpe, unsigned int blocks) in __stmpe_disable() argument
54 return stmpe->variant->enable(stmpe, blocks, false); in __stmpe_disable()
132 int stmpe_enable(struct stmpe *stmpe, unsigned int blocks) in stmpe_enable() argument
137 ret = __stmpe_enable(stmpe, blocks); in stmpe_enable()
149 int stmpe_disable(struct stmpe *stmpe, unsigned int blocks) in stmpe_disable() argument
154 ret = __stmpe_disable(stmpe, blocks); in stmpe_disable()
412 static int stmpe801_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe801_enable() argument
[all …]
/Linux-v4.19/Documentation/blockdev/
DREADME.DAC960315 Disk Status: Online, 17928192 blocks
318 Disk Status: Online, 17928192 blocks
321 Disk Status: Online, 17928192 blocks
324 Disk Status: Online, 17928192 blocks
327 Disk Status: Online, 17928192 blocks
330 Disk Status: Online, 17928192 blocks
333 /dev/rd/c0d0: RAID-5, Online, 89640960 blocks, Write Thru
434 0:1 - Disk: Online, 2201600 blocks
435 0:2 - Disk: Online, 2201600 blocks
436 0:3 - Disk: Online, 2201600 blocks
[all …]
/Linux-v4.19/Documentation/filesystems/
Dqnx6.txt16 concepts of blocks, inodes and directories.
26 The space in the device or file is split up into blocks. These are a fixed
43 are done by copying all modified blocks during that specific write request
51 If the level value is 0, up to 16 direct blocks can be addressed by each
54 addressing block holds up to blocksize / 4 bytes pointers to data blocks.
56 to 16 * 256 * 256 = 1048576 blocks that can be addressed by such a tree).
59 indirect addressing blocks or inodes.
66 information (total number of filesystem blocks) or by taking the highest
77 The inode structure contains pointers to the filesystem blocks which contain
81 size, number of blocks used, access time, change time and modification time.
[all …]
/Linux-v4.19/include/crypto/
Dsha1_base.h18 typedef void (sha1_block_fn)(struct sha1_state *sst, u8 const *src, int blocks);
45 int blocks; in sha1_base_do_update() local
57 blocks = len / SHA1_BLOCK_SIZE; in sha1_base_do_update()
60 if (blocks) { in sha1_base_do_update()
61 block_fn(sctx, data, blocks); in sha1_base_do_update()
62 data += blocks * SHA1_BLOCK_SIZE; in sha1_base_do_update()
Dsm3_base.h26 typedef void (sm3_block_fn)(struct sm3_state *sst, u8 const *src, int blocks);
56 int blocks; in sm3_base_do_update() local
68 blocks = len / SM3_BLOCK_SIZE; in sm3_base_do_update()
71 if (blocks) { in sm3_base_do_update()
72 block_fn(sctx, data, blocks); in sm3_base_do_update()
73 data += blocks * SM3_BLOCK_SIZE; in sm3_base_do_update()
Dsha256_base.h19 int blocks);
66 int blocks; in sha256_base_do_update() local
78 blocks = len / SHA256_BLOCK_SIZE; in sha256_base_do_update()
81 if (blocks) { in sha256_base_do_update()
82 block_fn(sctx, data, blocks); in sha256_base_do_update()
83 data += blocks * SHA256_BLOCK_SIZE; in sha256_base_do_update()
/Linux-v4.19/drivers/media/i2c/adv748x/
Dadv748x-hdmi.c475 if (edid->start_block == 0 && edid->blocks == 0) { in adv748x_hdmi_get_edid()
476 edid->blocks = hdmi->edid.blocks; in adv748x_hdmi_get_edid()
480 if (edid->start_block >= hdmi->edid.blocks) in adv748x_hdmi_get_edid()
483 if (edid->start_block + edid->blocks > hdmi->edid.blocks) in adv748x_hdmi_get_edid()
484 edid->blocks = hdmi->edid.blocks - edid->start_block; in adv748x_hdmi_get_edid()
487 edid->blocks * 128); in adv748x_hdmi_get_edid()
527 if (edid->blocks == 0) { in adv748x_hdmi_set_edid()
528 hdmi->edid.blocks = 0; in adv748x_hdmi_set_edid()
537 edid->blocks << ADV748X_REPEATER_EDID_SZ_SHIFT); in adv748x_hdmi_set_edid()
544 if (edid->blocks > 4) { in adv748x_hdmi_set_edid()
[all …]
/Linux-v4.19/drivers/ide/
Dide-floppy.c197 int blocks = blk_rq_sectors(rq) / floppy->bs_factor; in idefloppy_create_rw_cmd() local
200 ide_debug_log(IDE_DBG_FUNC, "block: %d, blocks: %d", block, blocks); in idefloppy_create_rw_cmd()
204 put_unaligned(cpu_to_be16(blocks), (unsigned short *)&pc->c[7]); in idefloppy_create_rw_cmd()
360 lba_capacity = floppy->blocks * floppy->block_size; in ide_floppy_get_flexible_disk_page()
366 floppy->blocks = floppy->block_size ? in ide_floppy_get_flexible_disk_page()
368 drive->capacity64 = floppy->blocks * floppy->bs_factor; in ide_floppy_get_flexible_disk_page()
385 int i, rc = 1, blocks, length; in ide_floppy_get_capacity() local
391 floppy->blocks = 0; in ide_floppy_get_capacity()
407 blocks = be32_to_cpup((__be32 *)&pc_buf[desc_start]); in ide_floppy_get_capacity()
412 i, blocks * length / 1024, in ide_floppy_get_capacity()
[all …]
/Linux-v4.19/fs/
Dmpage.c167 sector_t blocks[MAX_BUF_PER_PAGE]; in do_mpage_readpage() local
213 blocks[page_block] = map_bh->b_blocknr + map_offset + in do_mpage_readpage()
260 if (page_block && blocks[page_block-1] != map_bh->b_blocknr-1) in do_mpage_readpage()
269 blocks[page_block] = map_bh->b_blocknr+relative_block; in do_mpage_readpage()
296 if (args->bio && (args->last_block_in_bio != blocks[0] - 1)) in do_mpage_readpage()
302 if (!bdev_read_page(bdev, blocks[0] << (blkbits - 9), in do_mpage_readpage()
306 args->bio = mpage_alloc(bdev, blocks[0] << (blkbits - 9), in do_mpage_readpage()
326 args->last_block_in_bio = blocks[blocks_per_page - 1]; in do_mpage_readpage()
508 sector_t blocks[MAX_BUF_PER_PAGE]; in __mpage_writepage() local
547 if (bh->b_blocknr != blocks[page_block-1] + 1) in __mpage_writepage()
[all …]

12345678910>>...32