Home
last modified time | relevance | path

Searched refs:blocks (Results 1 – 200 of 583) sorted by relevance

123

/linux-4.4.14/crypto/async_tx/
Dasync_pq.c122 do_sync_gen_syndrome(struct page **blocks, unsigned int offset, int disks, in do_sync_gen_syndrome() argument
132 srcs = (void **) blocks; in do_sync_gen_syndrome()
135 if (blocks[i] == NULL) { in do_sync_gen_syndrome()
139 srcs[i] = page_address(blocks[i]) + offset; in do_sync_gen_syndrome()
178 async_gen_syndrome(struct page **blocks, unsigned int offset, int disks, in async_gen_syndrome() argument
183 &P(blocks, disks), 2, in async_gen_syndrome()
184 blocks, src_cnt, len); in async_gen_syndrome()
188 BUG_ON(disks > 255 || !(P(blocks, disks) || Q(blocks, disks))); in async_gen_syndrome()
212 if (blocks[i] == NULL) in async_gen_syndrome()
214 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 …]
Draid6test.c84 struct page *blocks[disks]; in raid6_dual_recov() local
95 blocks[count++] = ptrs[i]; in raid6_dual_recov()
100 tx = async_xor(dest, blocks, 0, count, bytes, &submit); in raid6_dual_recov()
/linux-4.4.14/arch/arm64/crypto/
Daes-glue.c58 int rounds, int blocks, int first);
60 int rounds, int blocks, int first);
63 int rounds, int blocks, u8 iv[], int first);
65 int rounds, int blocks, u8 iv[], int first);
68 int rounds, int blocks, u8 ctr[], int first);
71 int rounds, int blocks, u8 const rk2[], u8 iv[],
74 int rounds, int blocks, u8 const rk2[], u8 iv[],
105 unsigned int blocks; in ecb_encrypt() local
112 for (first = 1; (blocks = (walk.nbytes / AES_BLOCK_SIZE)); first = 0) { in ecb_encrypt()
114 (u8 *)ctx->key_enc, rounds, blocks, first); in ecb_encrypt()
[all …]
Dghash-ce-glue.c36 asmlinkage void pmull_ghash_update(int blocks, u64 dg[], const char *src,
57 int blocks; in ghash_update() local
67 blocks = len / GHASH_BLOCK_SIZE; in ghash_update()
71 pmull_ghash_update(blocks, ctx->digest, src, key, in ghash_update()
74 src += blocks * GHASH_BLOCK_SIZE; in ghash_update()
Dsha1-ce-glue.c33 int blocks);
/linux-4.4.14/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()
236 kfree(part->blocks); in scan_header()
279 if (i >= part->total_blocks || part->blocks[i].offset != erase->addr || in erase_callback()
291 part->blocks[i].state = BLOCK_FAILED; in erase_callback()
292 part->blocks[i].free_sectors = 0; in erase_callback()
293 part->blocks[i].used_sectors = 0; in erase_callback()
302 part->blocks[i].state = BLOCK_ERASED; in erase_callback()
[all …]
/linux-4.4.14/arch/arm/crypto/
Daes-ce-glue.c28 int rounds, int blocks);
30 int rounds, int blocks);
33 int rounds, int blocks, u8 iv[]);
35 int rounds, int blocks, u8 iv[]);
38 int rounds, int blocks, u8 ctr[]);
41 int rounds, int blocks, u8 iv[],
44 int rounds, int blocks, u8 iv[],
171 unsigned int blocks; in ecb_encrypt() local
179 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { in ecb_encrypt()
181 (u8 *)ctx->key_enc, num_rounds(ctx), blocks); in ecb_encrypt()
[all …]
Daesbs-glue.c33 asmlinkage void bsaes_ctr32_encrypt_blocks(u8 const in[], u8 out[], u32 blocks,
116 u32 blocks = walk.nbytes / AES_BLOCK_SIZE; in aesbs_cbc_encrypt() local
127 } while (--blocks); in aesbs_cbc_encrypt()
138 } while (--blocks); in aesbs_cbc_encrypt()
164 u32 blocks = walk.nbytes / AES_BLOCK_SIZE; in aesbs_cbc_decrypt() local
172 memcpy(bk[blocks & 1], src, AES_BLOCK_SIZE); in aesbs_cbc_decrypt()
178 iv = bk[blocks & 1]; in aesbs_cbc_decrypt()
184 } while (--blocks); in aesbs_cbc_decrypt()
209 u32 blocks; in aesbs_ctr_encrypt() local
215 while ((blocks = walk.nbytes / AES_BLOCK_SIZE)) { in aesbs_ctr_encrypt()
[all …]
Dghash-ce-glue.c43 asmlinkage void pmull_ghash_update(int blocks, u64 dg[], const char *src,
64 int blocks; in ghash_update() local
74 blocks = len / GHASH_BLOCK_SIZE; in ghash_update()
78 pmull_ghash_update(blocks, ctx->digest, src, key, in ghash_update()
81 src += blocks * GHASH_BLOCK_SIZE; in ghash_update()
Daes-ce-core.S321 bmi .Lctrhalfblock @ blocks < 0 means 1/2 block
408 vld1.8 {q0-q1}, [r1, :64]! @ get 3 pt blocks
419 vst1.8 {q0-q1}, [r0, :64]! @ write 3 ct blocks
459 vld1.8 {q0-q1}, [r1, :64]! @ get 3 ct blocks
470 vst1.8 {q0-q1}, [r0, :64]! @ write 3 pt blocks
Dsha1-ce-glue.c28 int blocks);
Dsha512-neon-glue.c26 int blocks);
Dsha2-ce-glue.c29 int blocks);
Dsha512-glue.c31 asmlinkage void sha512_block_data_order(u64 *state, u8 const *src, int blocks);
/linux-4.4.14/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-4.4.14/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-4.4.14/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.
Dcache.txt49 3. A small metadata device - records which blocks are in the cache,
59 The origin is divided up into blocks of a fixed size. This block size
83 blocks should remain clean.
100 dirty blocks in a cache. Useful for decommissioning a cache or when
102 blocks, in the area of the cache being removed, to be clean. If the
103 area being removed from the cache still contains dirty blocks the resize
136 system crashes all cache blocks will be assumed dirty when restarted.
147 uses this facility to store the hit count of the cache blocks. If
166 blocks. However, we allow this bitset to have a different block size
167 from the cache blocks. This is because we need to track the discard
[all …]
Dpersistent-data.txt32 This provides access to the data on disk in fixed sized-blocks. There
43 This restricts access to blocks and enforces copy-on-write semantics.
58 On-disk data structures that keep track of reference counts of blocks.
59 Also acts as the allocator of new blocks. Currently two
60 implementations: a simpler one for managing blocks on a different
61 device (eg. thinly-provisioned data blocks); and one for managing
Dthin-provisioning.txt72 The amount of metadata you need will vary according to how many blocks
111 $low_water_mark is expressed in blocks of size $data_block_size. If
208 the allocation of new blocks as usual.
253 <low water mark (blocks)> [<number of feature args> [<arg>]*]
257 skip_block_zeroing: Skip the zeroing of newly-provisioned blocks.
275 <transaction id> <used metadata blocks>/<total metadata blocks>
276 <used data blocks>/<total data blocks> <held metadata root>
283 used data blocks / total data blocks
284 If the number of free blocks drops below the pool's low water mark a
290 The location, in blocks, of the metadata root that has been
[all …]
Dverity.txt46 The number of data blocks on the data device. Additional blocks are
51 This is the offset, in <hash_block_size>-blocks, from the start of hash_dev
75 Log corrupted blocks, but allow read operations to proceed normally.
131 It only reads the hash blocks which directly follow the header.
140 block boundary) are the hash blocks which are stored a depth at a time
Ddm-raid.txt186 being performed. All blocks are read and
220 zeroes when discarded blocks are read! Since RAID 4/5/6 uses blocks
221 from a number of devices to calculate parity blocks and (for performance
225 consistent, the parity blocks may be calculated differently at any time;
226 making the parity blocks useless for redundancy. It is important to
Dcache-policies.txt14 e.g. to start writing back dirty blocks that are going to be evicte
61 promote sequential blocks to the cache (e.g. fast application startup).
130 is used to decide which blocks to promote. If the hotspot queue is
140 The cleaner writes back all dirty blocks in a cache to decommission it.
/linux-4.4.14/drivers/mfd/
Dstmpe.c26 static int __stmpe_enable(struct stmpe *stmpe, unsigned int blocks) in __stmpe_enable() argument
28 return stmpe->variant->enable(stmpe, blocks, true); in __stmpe_enable()
31 static int __stmpe_disable(struct stmpe *stmpe, unsigned int blocks) in __stmpe_disable() argument
33 return stmpe->variant->enable(stmpe, blocks, false); in __stmpe_disable()
111 int stmpe_enable(struct stmpe *stmpe, unsigned int blocks) in stmpe_enable() argument
116 ret = __stmpe_enable(stmpe, blocks); in stmpe_enable()
128 int stmpe_disable(struct stmpe *stmpe, unsigned int blocks) in stmpe_disable() argument
133 ret = __stmpe_disable(stmpe, blocks); in stmpe_disable()
366 static int stmpe801_enable(struct stmpe *stmpe, unsigned int blocks, in stmpe801_enable() argument
369 if (blocks & STMPE_BLOCK_GPIO) in stmpe801_enable()
[all …]
Dstmpe.h70 struct stmpe_variant_block *blocks; member
73 int (*enable)(struct stmpe *stmpe, unsigned int blocks, bool enable);
Dtc3589x.c287 unsigned int blocks = tc3589x->pdata->block; in tc3589x_device_init() local
289 if (blocks & TC3589x_BLOCK_GPIO) { in tc3589x_device_init()
300 if (blocks & TC3589x_BLOCK_KEYPAD) { in tc3589x_device_init()
/linux-4.4.14/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-4.4.14/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()
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()
Dsha512_base.h19 int blocks);
68 int blocks; in sha512_base_do_update() local
80 blocks = len / SHA512_BLOCK_SIZE; in sha512_base_do_update()
83 if (blocks) { in sha512_base_do_update()
84 block_fn(sctx, data, blocks); in sha512_base_do_update()
85 data += blocks * SHA512_BLOCK_SIZE; in sha512_base_do_update()
/linux-4.4.14/drivers/ide/
Dide-floppy.c196 int blocks = blk_rq_sectors(rq) / floppy->bs_factor; in idefloppy_create_rw_cmd() local
199 ide_debug_log(IDE_DBG_FUNC, "block: %d, blocks: %d", block, blocks); in idefloppy_create_rw_cmd()
203 put_unaligned(cpu_to_be16(blocks), (unsigned short *)&pc->c[7]); in idefloppy_create_rw_cmd()
354 lba_capacity = floppy->blocks * floppy->block_size; in ide_floppy_get_flexible_disk_page()
360 floppy->blocks = floppy->block_size ? in ide_floppy_get_flexible_disk_page()
362 drive->capacity64 = floppy->blocks * floppy->bs_factor; in ide_floppy_get_flexible_disk_page()
379 int i, rc = 1, blocks, length; in ide_floppy_get_capacity() local
385 floppy->blocks = 0; in ide_floppy_get_capacity()
401 blocks = be32_to_cpup((__be32 *)&pc_buf[desc_start]); in ide_floppy_get_capacity()
406 i, blocks * length / 1024, in ide_floppy_get_capacity()
[all …]
Dide-floppy_ioctl.c41 int i, blocks, length, u_array_size, u_index; in ide_floppy_get_format_capacities() local
75 blocks = be32_to_cpup((__be32 *)&pc_buf[desc_start]); in ide_floppy_get_format_capacities()
78 if (put_user(blocks, argp)) in ide_floppy_get_format_capacities()
143 int blocks, length, flags, err = 0; in ide_floppy_format_unit() local
168 if (get_user(blocks, arg) || in ide_floppy_format_unit()
176 ide_floppy_create_format_unit_cmd(pc, buf, blocks, length, flags); in ide_floppy_format_unit()
Dide-gd.h33 int blocks, block_size, bs_factor; member
/linux-4.4.14/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 …]
Dnilfs2.txt63 blocks to be written to disk without making a
66 filesystem except for the updates on data blocks still
71 blocks. That means, it is guaranteed that no
80 block device when blocks are freed. This is useful
118 due to redundant move of in-use blocks.
183 of logs. Each log is composed of summary information blocks, payload
184 blocks, and an optional super root block (SR):
199 | Summary | Payload blocks |SR|
202 The payload blocks are organized per file, and each file consists of
203 data blocks and B-tree node blocks:
[all …]
Dsysv-fs.txt23 The superblock is only searched in the blocks 9, 15, 18, which
80 Free blocks are organized in a "free list". Maybe a misleading term,
82 the next free block. Rather, the free blocks are organized in chunks
84 to the free blocks pertaining to the next chunk; the first of these
158 * Regular file data blocks are organized as
160 7 direct blocks
161 1 indirect block (pointers to blocks)
162 1 double-indirect block (pointer to pointers to blocks)
164 10 direct blocks
165 1 indirect block (pointers to blocks)
[all …]
Dext2.txt45 resuid=n The user ID which may use the reserved blocks.
46 resgid=n The group ID which may use the reserved blocks.
69 the concepts of blocks, inodes and directories. It has space in the
79 The space in the device or file is split up into blocks. These are
81 which is decided when the filesystem is created. Smaller blocks mean
92 Two blocks near the start of each group are reserved for the block usage
93 bitmap and the inode usage bitmap which show which blocks and inodes
99 blocks. The block allocation algorithm attempts to allocate data blocks
118 number of inodes and blocks in the filesystem and how many are free,
119 how many inodes and blocks are in each block group, when the filesystem
[all …]
Dlogfs.txt56 blocks or indirect blocks.
64 Effectively that means all file data is on level 0, indirect blocks
65 are on levels 1, 2, 3 4 or 5 for 1x, 2x, 3x, 4x or 5x indirect blocks,
67 for indirect blocks.
77 reasons is stored in the journal instead. Instead of data blocks, the
85 parent blocks are written as well, since the block pointers have
99 Related to regular aliases, these are used to handle bad blocks.
100 Initially, bad blocks are handled by moving the affected segment
124 Another difference is the addressing of indirect blocks. In LogFS,
143 result in GC failures when, after moving some data, indirect blocks
[all …]
Domfs.txt41 OMFS discriminates between "sysblocks" and normal data blocks. The sysblock
44 sysblock, and may be mirrored in successive blocks on the disk. A sysblock may
88 __be64 e_cluster; /* start location of a set of blocks */
89 __be64 e_blocks; /* number of blocks after e_cluster */
99 Each extent holds the block offset followed by number of blocks allocated to
101 being ~0 and e_blocks being ones'-complement of the total number of blocks
Dsquashfs.txt6 directories. Inodes in the system are very small and all blocks are packed to
94 Compressed data blocks are written to the filesystem as files are read from
109 Metadata (inodes and directories) are compressed in 8Kbyte blocks. Each
114 Inodes are packed into the metadata blocks, and are not aligned to block
115 boundaries, therefore inodes overlap compressed blocks. Inodes are identified
132 Like inodes, directories are packed into compressed metadata blocks, stored
162 Regular files consist of a sequence of contiguous compressed blocks, and/or a
173 is split into slots, caching up to eight 224 GiB files (128 KiB blocks).
183 fragment lookup table is itself stored compressed into metadata blocks.
193 stored compressed into metadata blocks. A second index table is used to
[all …]
Df2fs.txt58 Since LFS is based on out-of-place writes, it produces so many obsolete blocks
60 needs to reclaim these obsolete blocks seamlessly to users. This job is called
66 segment summary blocks.
86 - Use a term, “node”, that represents inodes as well as various pointer blocks
88 blocks; this will cut off the update propagation.
206 commands that consist small blocks less than 2MB.
361 validity of all the blocks.
364 : It is composed of a block address table for all the node blocks stored in
369 data and node blocks stored in Main area.
415 data blocks, and one indirect node block contains also 1018 node blocks. Thus,
[all …]
Dext4.txt111 but a kernel thread to do lazy zeroing of unused inode table blocks
143 for descriptor blocks. If enabled older kernels cannot
200 number of inode table blocks that ext4's inode
202 the buffer cache. The default value is 32 blocks.
242 resgid=n The group ID which may use the reserved blocks.
244 resuid=n The user ID which may use the reserved blocks.
261 stripe=n Number of filesystem blocks that mballoc will try
264 disks * RAID chunk size in file system blocks.
320 blocks are allocated such that at the next
322 mode, the data blocks of the new file are forced
[all …]
Djfs.txt14 resize=value Resize the volume to <value> blocks. JFS only supports
41 nodiscard(*) block device when blocks are freed. This is useful for SSD
47 64 blocks, which means 256KiB in JFS.
Dcramfs.txt58 >40 ulelong x fsid.blocks %d
68 >552 ulelong x fsid.blocks %d
Dxfs-self-describing-metadata.txt50 went wrong, but it is impossible to tell what order the blocks were linked into
67 AGFL, remote symlinks and remote attribute blocks do not contain identifying
84 metadata blocks. CRC32c is also now hardware accelerated on common CPUs so it is
113 directory, attribute and extent tree blocks are all owned by an inode, whilst
114 freespace btree blocks are owned by an allocation group. Hence the size and
122 metadata blocks based on modification times is important as it can indicate
207 - short btree blocks have a 32 bit owner (ag number) and a 32 bit block
212 - directory/attribute node blocks have a 16 bit magic number, and the
Dubifs.txt17 small blocks, typically 512 bytes.
29 because hardware has mechanisms to substitute bad blocks, at least in
41 limitations like wear and bad blocks (items 4 and 5 in the above list).
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_mem.c138 struct mem_block *blocks = kmalloc(sizeof(*blocks), GFP_KERNEL); in init_heap() local
140 if (!blocks) in init_heap()
145 kfree(blocks); in init_heap()
149 blocks->start = start; in init_heap()
150 blocks->size = size; in init_heap()
151 blocks->file_priv = NULL; in init_heap()
152 blocks->next = blocks->prev = *heap; in init_heap()
155 (*heap)->next = (*heap)->prev = blocks; in init_heap()
/linux-4.4.14/fs/
Dmpage.c152 sector_t blocks[MAX_BUF_PER_PAGE]; in do_mpage_readpage() local
187 blocks[page_block] = map_bh->b_blocknr + map_offset + in do_mpage_readpage()
234 if (page_block && blocks[page_block-1] != map_bh->b_blocknr-1) in do_mpage_readpage()
243 blocks[page_block] = map_bh->b_blocknr+relative_block; in do_mpage_readpage()
270 if (bio && (*last_block_in_bio != blocks[0] - 1)) in do_mpage_readpage()
276 if (!bdev_read_page(bdev, blocks[0] << (blkbits - 9), in do_mpage_readpage()
280 bio = mpage_alloc(bdev, blocks[0] << (blkbits - 9), in do_mpage_readpage()
298 *last_block_in_bio = blocks[blocks_per_page - 1]; in do_mpage_readpage()
477 sector_t blocks[MAX_BUF_PER_PAGE]; in __mpage_writepage() local
516 if (bh->b_blocknr != blocks[page_block-1] + 1) in __mpage_writepage()
[all …]
/linux-4.4.14/drivers/mmc/core/
Dsdio_ops.c122 unsigned addr, int incr_addr, u8 *buf, unsigned blocks, unsigned blksz) in mmc_io_rw_extended() argument
148 if (blocks == 0) in mmc_io_rw_extended()
151 cmd.arg |= 0x08000000 | blocks; /* block mode */ in mmc_io_rw_extended()
156 data.blocks = blocks ? blocks : 1; in mmc_io_rw_extended()
159 left_size = data.blksz * data.blocks; in mmc_io_rw_extended()
Dsdio_io.c317 unsigned blocks; in sdio_io_rw_ext_helper() local
319 blocks = remainder / func->cur_blksize; in sdio_io_rw_ext_helper()
320 if (blocks > max_blocks) in sdio_io_rw_ext_helper()
321 blocks = max_blocks; in sdio_io_rw_ext_helper()
322 size = blocks * func->cur_blksize; in sdio_io_rw_ext_helper()
326 blocks, func->cur_blksize); in sdio_io_rw_ext_helper()
Dsdio_ops.h21 unsigned addr, int incr_addr, u8 *buf, unsigned blocks, unsigned blksz);
Dsd_ops.c282 data.blocks = 1; in mmc_app_send_scr()
333 data.blocks = 1; in mmc_sd_switch()
378 data.blocks = 1; in mmc_app_sd_status()
/linux-4.4.14/drivers/scsi/
Dg_NCR5380.c524 int blocks = len / 128; in NCR5380_pread() local
532 NCR5380_write(C400_BLOCK_COUNTER_REG, blocks); in NCR5380_pread()
538 printk(KERN_ERR "53C400r: Got 53C80_IRQ start=%d, blocks=%d\n", start, blocks); in NCR5380_pread()
554 blocks--; in NCR5380_pread()
557 if (blocks) { in NCR5380_pread()
574 blocks--; in NCR5380_pread()
608 int blocks = len / 128; in NCR5380_pwrite() local
617 NCR5380_write(C400_BLOCK_COUNTER_REG, blocks); in NCR5380_pwrite()
620 printk(KERN_ERR "53C400w: Got 53C80_IRQ start=%d, blocks=%d\n", start, blocks); in NCR5380_pwrite()
639 blocks--; in NCR5380_pwrite()
[all …]
Dsd.h149 static inline sector_t logical_to_sectors(struct scsi_device *sdev, sector_t blocks) in logical_to_sectors() argument
151 return blocks << (ilog2(sdev->sector_size) - 9); in logical_to_sectors()
/linux-4.4.14/block/partitions/
Dsgi.c35 unsigned int start, blocks; in sgi_partition() local
70 blocks = be32_to_cpu(p->num_blocks); in sgi_partition()
72 if (blocks) { in sgi_partition()
73 put_partition(state, slot, start, blocks); in sgi_partition()
/linux-4.4.14/drivers/usb/storage/
Djumpshot.c489 unsigned long block, blocks; in jumpshot_transport() local
544 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport()
547 block, blocks); in jumpshot_transport()
548 return jumpshot_read_data(us, info, block, blocks); in jumpshot_transport()
557 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | in jumpshot_transport()
561 block, blocks); in jumpshot_transport()
562 return jumpshot_read_data(us, info, block, blocks); in jumpshot_transport()
569 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport()
572 block, blocks); in jumpshot_transport()
573 return jumpshot_write_data(us, info, block, blocks); in jumpshot_transport()
[all …]
Ddatafab.c563 unsigned long block, blocks; in datafab_transport() local
616 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in datafab_transport()
619 block, blocks); in datafab_transport()
620 return datafab_read_data(us, info, block, blocks); in datafab_transport()
629 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | in datafab_transport()
633 block, blocks); in datafab_transport()
634 return datafab_read_data(us, info, block, blocks); in datafab_transport()
641 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in datafab_transport()
644 block, blocks); in datafab_transport()
645 return datafab_write_data(us, info, block, blocks); in datafab_transport()
[all …]
Dshuttle_usbat.c1693 unsigned long block, blocks; in usbat_flash_transport() local
1741 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in usbat_flash_transport()
1744 block, blocks); in usbat_flash_transport()
1745 return usbat_flash_read_data(us, info, block, blocks); in usbat_flash_transport()
1755 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | in usbat_flash_transport()
1759 block, blocks); in usbat_flash_transport()
1760 return usbat_flash_read_data(us, info, block, blocks); in usbat_flash_transport()
1767 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in usbat_flash_transport()
1770 block, blocks); in usbat_flash_transport()
1771 return usbat_flash_write_data(us, info, block, blocks); in usbat_flash_transport()
[all …]
/linux-4.4.14/drivers/mtd/tests/
Dspeedtest.c55 static int multiblock_erase(int ebnum, int blocks) in multiblock_erase() argument
64 ei.len = mtd->erasesize * blocks; in multiblock_erase()
69 err, ebnum, blocks); in multiblock_erase()
75 "blocks %d\n", ebnum, blocks); in multiblock_erase()
195 int err, i, blocks, j, k; in mtd_speedtest_init() local
391 blocks = 1 << k; in mtd_speedtest_init()
393 blocks); in mtd_speedtest_init()
396 for (j = 0; j < blocks && (i + j) < ebcnt; j++) in mtd_speedtest_init()
416 blocks, speed); in mtd_speedtest_init()
/linux-4.4.14/fs/ext4/
Dreadpage.c148 sector_t blocks[MAX_BUF_PER_PAGE]; in ext4_mpage_readpages() local
200 blocks[page_block] = map.m_pblk + map_offset + in ext4_mpage_readpages()
237 if (page_block && blocks[page_block-1] != map.m_pblk-1) in ext4_mpage_readpages()
246 blocks[page_block] = map.m_pblk+relative_block; in ext4_mpage_readpages()
272 if (bio && (last_block_in_bio != blocks[0] - 1)) { in ext4_mpage_readpages()
294 bio->bi_iter.bi_sector = blocks[0] << (blkbits - 9); in ext4_mpage_readpages()
309 last_block_in_bio = blocks[blocks_per_page - 1]; in ext4_mpage_readpages()
Dext4_jbd2.h263 int type, int blocks, int rsv_blocks);
303 #define ext4_journal_start_with_reserve(inode, type, blocks, rsv_blocks) \ argument
304 __ext4_journal_start((inode), __LINE__, (type), (blocks), (rsv_blocks))
308 int blocks, int rsv_blocks) in __ext4_journal_start() argument
310 return __ext4_journal_start_sb(inode->i_sb, line, type, blocks, in __ext4_journal_start()
Dext4_jbd2.c63 int type, int blocks, int rsv_blocks) in __ext4_journal_start_sb() argument
68 trace_ext4_journal_start(sb, blocks, rsv_blocks, _RET_IP_); in __ext4_journal_start_sb()
76 return jbd2__journal_start(journal, blocks, rsv_blocks, GFP_NOFS, in __ext4_journal_start_sb()
Dballoc.c161 unsigned int blocks; in num_clusters_in_group() local
170 blocks = ext4_blocks_count(EXT4_SB(sb)->s_es) - in num_clusters_in_group()
173 blocks = EXT4_BLOCKS_PER_GROUP(sb); in num_clusters_in_group()
174 return EXT4_NUM_B2C(EXT4_SB(sb), blocks); in num_clusters_in_group()
/linux-4.4.14/net/mac80211/
Dmichael.c60 size_t block, blocks, left; in michael_mic() local
66 blocks = data_len / 4; in michael_mic()
69 for (block = 0; block < blocks; block++) in michael_mic()
78 val |= data[blocks * 4 + left]; in michael_mic()
/linux-4.4.14/fs/sysv/
Dballoc.c46 sysv_zone_t *blocks = sbi->s_bcache; in sysv_free_block() local
85 memcpy(get_chunk(sb,bh), blocks, count * sizeof(sysv_zone_t)); in sysv_free_block()
164 sysv_zone_t *blocks; in sysv_count_free_blocks() local
185 blocks = sbi->s_bcache; in sysv_count_free_blocks()
191 while (n && (zone = blocks[--n]) != 0) in sysv_count_free_blocks()
207 blocks = get_chunk(sb, bh); in sysv_count_free_blocks()
Ditree.c432 unsigned blocks, res, direct = DIRECT, i = DEPTH; in sysv_nblocks() local
433 blocks = (size + s->s_blocksize - 1) >> s->s_blocksize_bits; in sysv_nblocks()
434 res = blocks; in sysv_nblocks()
435 while (--i && blocks > direct) { in sysv_nblocks()
436 blocks = ((blocks - direct - 1) >> ptrs_bits) + 1; in sysv_nblocks()
437 res += blocks; in sysv_nblocks()
440 return blocks; in sysv_nblocks()
447 stat->blocks = (s->s_blocksize / 512) * sysv_nblocks(s, stat->size); in sysv_getattr()
/linux-4.4.14/fs/jffs2/
Dbuild.c380 c->blocks = vzalloc(size); in jffs2_do_mount_fs()
383 c->blocks = kzalloc(size, GFP_KERNEL); in jffs2_do_mount_fs()
384 if (!c->blocks) in jffs2_do_mount_fs()
388 INIT_LIST_HEAD(&c->blocks[i].list); in jffs2_do_mount_fs()
389 c->blocks[i].offset = i * c->sector_size; in jffs2_do_mount_fs()
390 c->blocks[i].free_size = c->sector_size; in jffs2_do_mount_fs()
427 vfree(c->blocks); in jffs2_do_mount_fs()
430 kfree(c->blocks); in jffs2_do_mount_fs()
DTODO23 - Split writes so they go to two separate blocks rather than just c->nextblock.
26 are likely to become dirty, and end up with blocks which are each far
Dfs.c516 size_t blocks; in jffs2_do_fill_super() local
537 blocks = c->flash_size / c->sector_size; in jffs2_do_fill_super()
542 if ((c->sector_size * blocks) != c->flash_size) { in jffs2_do_fill_super()
543 c->flash_size = c->sector_size * blocks; in jffs2_do_fill_super()
600 vfree(c->blocks); in jffs2_do_fill_super()
602 kfree(c->blocks); in jffs2_do_fill_super()
Dnodelist.c510 this = c->blocks[i].first_node; in jffs2_free_raw_node_refs()
520 c->blocks[i].first_node = c->blocks[i].last_node = NULL; in jffs2_free_raw_node_refs()
703 jeb = &c->blocks[ref->flash_offset / c->sector_size]; in __ref_totlen()
728 jeb = &c->blocks[ref->flash_offset / c->sector_size]; in __jffs2_ref_totlen()
Djffs2_fs_sb.h91 struct jffs2_eraseblock *blocks; /* The whole array of blocks. Used for getting blocks member
/linux-4.4.14/drivers/md/
Dbitmap.c1185 sector_t offset, sector_t *blocks,
1198 sector_t blocks; in bitmap_daemon_work() local
1266 &blocks, 0); in bitmap_daemon_work()
1315 sector_t offset, sector_t *blocks, in bitmap_get_counter() argument
1338 *blocks = csize - (offset & (csize - 1)); in bitmap_get_counter()
1373 sector_t blocks; in bitmap_startwrite() local
1377 bmc = bitmap_get_counter(&bitmap->counts, offset, &blocks, 1); in bitmap_startwrite()
1410 offset += blocks; in bitmap_startwrite()
1411 if (sectors > blocks) in bitmap_startwrite()
1412 sectors -= blocks; in bitmap_startwrite()
[all …]
Dbitmap.h257 int bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded);
258 void bitmap_end_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int aborted);
265 int bitmap_resize(struct bitmap *bitmap, sector_t blocks,
/linux-4.4.14/drivers/mmc/card/
Dblock.c154 packed->blocks = 0; in mmc_blk_clear_packed()
358 idata->buf_bytes = (u64) idata->ic.blksz * idata->ic.blocks; in mmc_blk_ioctl_copy_from_user()
492 data.blocks = idata->ic.blocks; in __mmc_blk_ioctl_cmd()
537 err = mmc_set_blockcount(card, data.blocks, in __mmc_blk_ioctl_cmd()
775 __be32 *blocks; in mmc_sd_num_wr_blocks() local
800 data.blocks = 1; in mmc_sd_num_wr_blocks()
809 blocks = kmalloc(4, GFP_KERNEL); in mmc_sd_num_wr_blocks()
810 if (!blocks) in mmc_sd_num_wr_blocks()
813 sg_init_one(&sg, blocks, 4); in mmc_sd_num_wr_blocks()
817 result = ntohl(*blocks); in mmc_sd_num_wr_blocks()
[all …]
Dmmc_test.c81 unsigned int blocks; member
192 unsigned dev_addr, unsigned blocks, unsigned blksz, int write) in mmc_test_prepare_mrq() argument
196 if (blocks > 1) { in mmc_test_prepare_mrq()
210 if (blocks == 1) in mmc_test_prepare_mrq()
219 mrq->data->blocks = blocks; in mmc_test_prepare_mrq()
674 if (mrq->data->blocks > 1) { in mmc_test_prepare_broken_mrq()
703 mrq->data->blocks * mrq->data->blksz) in mmc_test_check_result()
743 if (mrq->data->blocks > 1) { in mmc_test_check_broken_result()
776 unsigned dev_addr, unsigned blocks, in mmc_test_nonblock_transfer() argument
809 blocks, blksz, write); in mmc_test_nonblock_transfer()
[all …]
Dqueue.h29 unsigned int blocks; member
/linux-4.4.14/arch/arm/mach-ixp4xx/
Dixp4xx_npe.c523 struct dl_block blocks[0]; in npe_load_firmware() member
533 int i, j, err, data_size, instr_size, blocks, table_end; in npe_load_firmware() local
604 for (blocks = 0; blocks * sizeof(struct dl_block) / 4 < image->size; in npe_load_firmware()
605 blocks++) in npe_load_firmware()
606 if (image->blocks[blocks].type == FW_BLOCK_TYPE_EOF) in npe_load_firmware()
608 if (blocks * sizeof(struct dl_block) / 4 >= image->size) { in npe_load_firmware()
615 print_npe(KERN_DEBUG, npe, "%i firmware blocks found\n", blocks); in npe_load_firmware()
618 table_end = blocks * sizeof(struct dl_block) / 4 + 1 /* EOF marker */; in npe_load_firmware()
619 for (i = 0, blk = image->blocks; i < blocks; i++, blk++) { in npe_load_firmware()
/linux-4.4.14/arch/powerpc/kernel/
Drtas_flash.c114 struct flash_block blocks[FLASH_BLOCKS_PER_NODE]; member
177 if (f->blocks[i].data == NULL) { in flash_list_valid()
180 block_size = f->blocks[i].length; in flash_list_valid()
205 kmem_cache_free(flash_block_cache, f->blocks[i].data); in free_flash_list()
361 fl->blocks[next_free].data = p; in rtas_flash_write()
362 fl->blocks[next_free].length = count; in rtas_flash_write()
614 f->blocks[i].data = (char *)cpu_to_be64(__pa(f->blocks[i].data)); in rtas_flash_firmware()
615 image_size += f->blocks[i].length; in rtas_flash_firmware()
616 f->blocks[i].length = cpu_to_be64(f->blocks[i].length); in rtas_flash_firmware()
/linux-4.4.14/fs/minix/
Ditree_common.c353 unsigned blocks, res, direct = DIRECT, i = DEPTH; in nblocks() local
354 blocks = (size + sb->s_blocksize - 1) >> (BLOCK_SIZE_BITS + k); in nblocks()
355 res = blocks; in nblocks()
356 while (--i && blocks > direct) { in nblocks()
357 blocks -= direct; in nblocks()
358 blocks += sb->s_blocksize/sizeof(block_t) - 1; in nblocks()
359 blocks /= sb->s_blocksize/sizeof(block_t); in nblocks()
360 res += blocks; in nblocks()
Dbitmap.c29 unsigned blocks = DIV_ROUND_UP(numbits, blocksize * 8); in count_free() local
31 while (blocks--) { in count_free()
/linux-4.4.14/include/linux/mfd/
Dstmpe.h115 extern int stmpe_enable(struct stmpe *stmpe, unsigned int blocks);
116 extern int stmpe_disable(struct stmpe *stmpe, unsigned int blocks);
133 unsigned int blocks; member
/linux-4.4.14/drivers/md/persistent-data/
Ddm-transaction-manager.c28 dm_block_t blocks[PREFETCH_SIZE]; member
40 p->blocks[i] = PREFETCH_SENTINEL; in prefetch_wipe()
54 if (p->blocks[h] == PREFETCH_SENTINEL) in prefetch_add()
55 p->blocks[h] = b; in prefetch_add()
67 if (p->blocks[i] != PREFETCH_SENTINEL) { in prefetch_issue()
68 dm_bm_prefetch(bm, p->blocks[i]); in prefetch_issue()
69 p->blocks[i] = PREFETCH_SENTINEL; in prefetch_issue()
/linux-4.4.14/kernel/
Dgroups.c29 group_info->blocks[0] = group_info->small_block; in groups_alloc()
36 group_info->blocks[i] = b; in groups_alloc()
43 free_page((unsigned long)group_info->blocks[i]); in groups_alloc()
53 if (group_info->blocks[0] != group_info->small_block) { in groups_free()
56 free_page((unsigned long)group_info->blocks[i]); in groups_free()
/linux-4.4.14/fs/squashfs/
Dfile.c186 int blocks = min_t(int, n, PAGE_CACHE_SIZE >> 2); in read_indexes() local
189 offset, blocks << 2); in read_indexes()
196 for (i = 0; i < blocks; i++) { in read_indexes()
200 n -= blocks; in read_indexes()
223 static inline int calculate_skip(int blocks) in calculate_skip() argument
225 int skip = blocks / ((SQUASHFS_META_ENTRIES + 1) in calculate_skip()
284 int blocks = skip * SQUASHFS_META_INDEXES; in fill_meta_index() local
285 long long res = read_indexes(inode->i_sb, blocks, in fill_meta_index()
/linux-4.4.14/drivers/staging/rtl8192e/
Drtllib_crypt_ccmp.c224 int blocks, last, len; in rtllib_ccmp_encrypt() local
236 blocks = (data_len + AES_BLOCK_LEN - 1) / AES_BLOCK_LEN; in rtllib_ccmp_encrypt()
239 for (i = 1; i <= blocks; i++) { in rtllib_ccmp_encrypt()
240 len = (i == blocks && last) ? last : AES_BLOCK_LEN; in rtllib_ccmp_encrypt()
316 int i, blocks, last, len; in rtllib_ccmp_decrypt() local
322 blocks = (data_len + AES_BLOCK_LEN - 1) / AES_BLOCK_LEN; in rtllib_ccmp_decrypt()
325 for (i = 1; i <= blocks; i++) { in rtllib_ccmp_decrypt()
326 len = (i == blocks && last) ? last : AES_BLOCK_LEN; in rtllib_ccmp_decrypt()
/linux-4.4.14/fs/ocfs2/
Docfs2.h723 u64 blocks) in ocfs2_clusters_for_blocks() argument
728 blocks += (1 << b_to_c_bits) - 1; in ocfs2_clusters_for_blocks()
729 return (u32)(blocks >> b_to_c_bits); in ocfs2_clusters_for_blocks()
733 u64 blocks) in ocfs2_blocks_to_clusters() argument
738 return (u32)(blocks >> b_to_c_bits); in ocfs2_blocks_to_clusters()
778 u64 blocks) in ocfs2_block_to_cluster_start() argument
783 clusters = ocfs2_blocks_to_clusters(sb, blocks); in ocfs2_block_to_cluster_start()
800 u64 blocks; in ocfs2_align_bytes_to_blocks() local
802 blocks = ocfs2_blocks_for_bytes(sb, bytes); in ocfs2_align_bytes_to_blocks()
803 return blocks << sb->s_blocksize_bits; in ocfs2_align_bytes_to_blocks()
Djournal.h560 int blocks = ocfs2_mknod_credits(sb, 0, 0); in ocfs2_calc_symlink_credits() local
564 blocks += ocfs2_clusters_to_blocks(sb, 1); in ocfs2_calc_symlink_credits()
566 return blocks + ocfs2_quota_trans_credits(sb); in ocfs2_calc_symlink_credits()
572 int blocks; in ocfs2_calc_group_alloc_credits() local
576 blocks = 1 + 1 + 1 + bitmap_blocks; in ocfs2_calc_group_alloc_credits()
577 return blocks; in ocfs2_calc_group_alloc_credits()
Dslot_map.c359 unsigned long long blocks, bytes = 0; in ocfs2_map_slot_buffers() local
367 blocks = ocfs2_blocks_for_bytes(si->si_inode->i_sb, bytes); in ocfs2_map_slot_buffers()
368 BUG_ON(blocks > UINT_MAX); in ocfs2_map_slot_buffers()
369 si->si_blocks = blocks; in ocfs2_map_slot_buffers()
381 BUG_ON((osb->max_slots / si->si_slots_per_block) > blocks); in ocfs2_map_slot_buffers()
/linux-4.4.14/drivers/gpio/
Dgpio-sch311x.c52 struct sch311x_gpio_block blocks[6]; member
250 for (i = 0; i < ARRAY_SIZE(priv->blocks); i++) { in sch311x_gpio_probe()
251 block = &priv->blocks[i]; in sch311x_gpio_probe()
286 gpiochip_remove(&priv->blocks[i].chip); in sch311x_gpio_probe()
298 for (i = 0; i < ARRAY_SIZE(priv->blocks); i++) { in sch311x_gpio_remove()
299 gpiochip_remove(&priv->blocks[i].chip); in sch311x_gpio_remove()
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_ccmp.c233 int blocks, last, len; in ieee80211_ccmp_encrypt() local
245 blocks = (data_len + AES_BLOCK_LEN - 1) / AES_BLOCK_LEN; in ieee80211_ccmp_encrypt()
248 for (i = 1; i <= blocks; i++) { in ieee80211_ccmp_encrypt()
249 len = (i == blocks && last) ? last : AES_BLOCK_LEN; in ieee80211_ccmp_encrypt()
328 int i, blocks, last, len; in ieee80211_ccmp_decrypt() local
334 blocks = (data_len + AES_BLOCK_LEN - 1) / AES_BLOCK_LEN; in ieee80211_ccmp_decrypt()
337 for (i = 1; i <= blocks; i++) { in ieee80211_ccmp_decrypt()
338 len = (i == blocks && last) ? last : AES_BLOCK_LEN; in ieee80211_ccmp_decrypt()
/linux-4.4.14/arch/x86/kernel/cpu/mcheck/
Dmce_amd.c613 if (per_cpu(threshold_banks, cpu)[bank]->blocks) { in allocate_threshold_blocks()
615 &per_cpu(threshold_banks, cpu)[bank]->blocks->miscj); in allocate_threshold_blocks()
617 per_cpu(threshold_banks, cpu)[bank]->blocks = b; in allocate_threshold_blocks()
655 struct list_head *head = &b->blocks->miscj; in __threshold_add_blocks()
660 err = kobject_add(&b->blocks->kobj, b->kobj, b->blocks->kobj.name); in __threshold_add_blocks()
775 list_for_each_entry_safe(pos, tmp, &head->blocks->miscj, miscj) { in deallocate_threshold_block()
781 kfree(per_cpu(threshold_banks, cpu)[bank]->blocks); in deallocate_threshold_block()
782 per_cpu(threshold_banks, cpu)[bank]->blocks = NULL; in deallocate_threshold_block()
792 list_for_each_entry_safe(pos, tmp, &b->blocks->miscj, miscj) in __threshold_remove_blocks()
805 if (!b->blocks) in threshold_remove_bank()
/linux-4.4.14/drivers/mmc/host/
Dcb710-mmc.c263 return !(data->blksz & 15 && (data->blocks != 1 || data->blksz != 8)); in cb710_is_transfer_size_supported()
269 size_t len, blocks = data->blocks; in cb710_mmc_receive() local
274 if (unlikely(data->blksz & 15 && (data->blocks != 1 || data->blksz != 8))) in cb710_mmc_receive()
284 while (blocks-- > 0) { in cb710_mmc_receive()
313 size_t len, blocks = data->blocks; in cb710_mmc_send() local
318 if (unlikely(data->blocks > 1 && data->blksz & 15)) in cb710_mmc_send()
326 while (blocks-- > 0) { in cb710_mmc_send()
440 data->bytes_xfered = data->blksz * data->blocks; in cb710_mmc_transfer_data()
458 cb710_mmc_set_transfer_size(slot, data->blocks, data->blksz); in cb710_mmc_command()
Dusdhi6rol0.c318 data->blksz, data->blocks, sg->offset); in usdhi6_blk_bounce()
343 usdhi6_write(host, USDHI6_SD_SECCNT, data->blocks); in usdhi6_sg_prep()
627 __func__, data->sg_len, data->blocks, data->blksz); in usdhi6_dma_kill()
902 data ? host->offset : 0, data ? data->blocks : 0, in usdhi6_request_done()
910 __func__, mrq->cmd->opcode, data ? data->blocks : 0, in usdhi6_request_done()
944 mrq->data->blocks > 1)) { in usdhi6_cmd_flags()
1005 if (cmd->opcode == SD_IO_RW_EXTENDED && data->blocks > 1) { in usdhi6_rq_start()
1027 __func__, data->blocks, data->blksz); in usdhi6_rq_start()
1034 data->blocks > 1)) in usdhi6_rq_start()
1040 data->blocks > 1) && in usdhi6_rq_start()
[all …]
Dmxs-mmc.c164 data->bytes_xfered = data->blocks * data->blksz; in mxs_mmc_request_done()
363 unsigned int blocks = data->blocks; in mxs_mmc_adtc() local
405 if (data_size != data->blocks * data->blksz) in mxs_mmc_adtc()
406 blocks = 1; in mxs_mmc_adtc()
412 BF_SSP(blocks - 1, CMD0_BLOCK_COUNT); in mxs_mmc_adtc()
416 BF_SSP(blocks - 1, BLOCK_SIZE_BLOCK_COUNT), in mxs_mmc_adtc()
Drtsx_pci_sdmmc.c115 static void sd_cmd_set_data_len(struct rtsx_pcr *pcr, u16 blocks, u16 blksz) in sd_cmd_set_data_len() argument
117 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BLOCK_CNT_L, 0xFF, blocks); in sd_cmd_set_data_len()
118 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, SD_BLOCK_CNT_H, 0xFF, blocks >> 8); in sd_cmd_set_data_len()
453 size_t data_len = data->blksz * data->blocks; in sd_read_long_data()
467 sd_cmd_set_data_len(pcr, data->blocks, data->blksz); in sd_read_long_data()
510 size_t data_len = data->blksz * data->blocks; in sd_write_long_data()
526 sd_cmd_set_data_len(pcr, data->blocks, data->blksz); in sd_write_long_data()
839 data_size = data->blocks * data->blksz; in sd_request()
858 data->bytes_xfered = data->blocks * data->blksz; in sd_request()
Dtoshsd.c280 data->bytes_xfered = data->blocks * data->blksz; in toshsd_data_end_irq()
460 if (data->blocks > 1) { in toshsd_start_cmd()
482 data->blksz, data->blocks, data->sg->offset); in toshsd_start_data()
494 iowrite16(data->blocks, host->ioaddr + SD_BLOCKCOUNT); in toshsd_start_data()
Datmel-mci.c308 data->bytes_xfered, data->blocks, in atmci_req_show()
697 else if (data->blocks > 1) in atmci_prepare_command()
814 int transfer_size = host->data->blocks * host->data->blksz; in atmci_pdc_complete()
920 if (data->blocks * data->blksz < 12 in atmci_prepare_data()
921 || (data->blocks * data->blksz) & 3) in atmci_prepare_data()
971 host->data_size = data->blocks * data->blksz; in atmci_prepare_data_pdc()
1016 if (data->blocks * data->blksz < ATMCI_DMA_THRESHOLD) in atmci_prepare_data_dma()
1184 atmci_writel(host, ATMCI_BLKR, ATMCI_BCNT(data->blocks) in atmci_start_request()
1187 ATMCI_BCNT(data->blocks) | ATMCI_BLKLEN(data->blksz)); in atmci_start_request()
1278 if (data && data->blocks > 1 && data->blksz & 3) { in atmci_request()
[all …]
Dwmt-sdmmc.c302 req->data->bytes_xfered = req->data->blksz * req->data->blocks; in wmt_complete_data_request()
618 writew(req->data->blocks, priv->sdmmc_base + SDMMC_BLKCNT); in wmt_mci_request()
626 if (req->data->blocks > 1) in wmt_mci_request()
632 if (req->data->blocks > 1) in wmt_mci_request()
649 if (desc_cnt == req->data->blocks) in wmt_mci_request()
/linux-4.4.14/drivers/block/
Dataflop.c92 unsigned blocks; /* total number of blocks */ member
671 if (!UDT || desc->track >= UDT->blocks/UDT->spt/2 || desc->head >= 2) { in do_format()
1073 if (SUDT[-1].blocks > ReqBlock) { in fd_rwsec_done1()
1077 SUDT->blocks); in fd_rwsec_done1()
1092 SUDT->blocks); in fd_rwsec_done1()
1367 if (default_params[drive].blocks == 0) in floppy_revalidate()
1454 set_capacity(floppy->disk, UDT->blocks); in redo_fd_request()
1472 set_capacity(floppy->disk, UDT->blocks); in redo_fd_request()
1476 if (blk_rq_pos(fd_request) + 1 > UDT->blocks) { in redo_fd_request()
1543 getprm.size = dtp->blocks; in fd_locked_ioctl()
[all …]
/linux-4.4.14/fs/reiserfs/
Dxattr_security.c61 int blocks = 0; in reiserfs_security_init() local
83 blocks = reiserfs_xattr_jcreate_nblocks(inode) + in reiserfs_security_init()
89 return blocks; in reiserfs_security_init()
Dsuper.c1078 unsigned long *blocks, in reiserfs_parse_options() argument
1134 *blocks = 0; in reiserfs_parse_options()
1156 *blocks = in reiserfs_parse_options()
1160 *blocks = simple_strtoul(arg, &p, 0); in reiserfs_parse_options()
1389 unsigned long blocks; in reiserfs_remount() local
1412 (s, arg, &mount_options, &blocks, NULL, &commit_max_age, in reiserfs_remount()
1463 if (blocks) { in reiserfs_remount()
1464 err = reiserfs_resize(s, blocks); in reiserfs_remount()
1852 unsigned long blocks; in reiserfs_fill_super() local
1895 (s, (char *)data, &sbi->s_mount_opt, &blocks, &jdev_name, in reiserfs_fill_super()
[all …]
/linux-4.4.14/fs/quota/
Dquota_v1.c26 static inline qsize_t v1_qbtos(qsize_t blocks) in v1_qbtos() argument
28 return blocks << QUOTABLOCK_BITS; in v1_qbtos()
128 ulong blocks; in v1_check_quota_file() local
138 blocks = isize >> BLOCK_SIZE_BITS; in v1_check_quota_file()
140 if ((blocks % sizeof(struct v1_disk_dqblk) * BLOCK_SIZE + off) % in v1_check_quota_file()
Dquota.c179 static inline qsize_t qbtos(qsize_t blocks) in qbtos() argument
181 return blocks << QIF_DQBLKSIZE_BITS; in qbtos()
342 fqs->qs_uquota.qfs_nblks = state.s_state[USRQUOTA].blocks; in quota_getstate()
347 fqs->qs_gquota.qfs_nblks = state.s_state[GRPQUOTA].blocks; in quota_getstate()
359 state.s_state[PRJQUOTA].blocks; in quota_getstate()
412 fqs->qs_uquota.qfs_nblks = state.s_state[USRQUOTA].blocks; in quota_getstatev()
417 fqs->qs_gquota.qfs_nblks = state.s_state[GRPQUOTA].blocks; in quota_getstatev()
422 fqs->qs_pquota.qfs_nblks = state.s_state[PRJQUOTA].blocks; in quota_getstatev()
460 static inline u64 quota_bbtob(u64 blocks) in quota_bbtob() argument
462 return blocks << XFS_BB_SHIFT; in quota_bbtob()
/linux-4.4.14/net/wireless/
Dlib80211_crypt_ccmp.c221 int data_len, i, blocks, last, len; in lib80211_ccmp_encrypt() local
241 blocks = DIV_ROUND_UP(data_len, AES_BLOCK_LEN); in lib80211_ccmp_encrypt()
244 for (i = 1; i <= blocks; i++) { in lib80211_ccmp_encrypt()
245 len = (i == blocks && last) ? last : AES_BLOCK_LEN; in lib80211_ccmp_encrypt()
294 int i, blocks, last, len; in lib80211_ccmp_decrypt() local
347 blocks = DIV_ROUND_UP(data_len, AES_BLOCK_LEN); in lib80211_ccmp_decrypt()
350 for (i = 1; i <= blocks; i++) { in lib80211_ccmp_decrypt()
351 len = (i == blocks && last) ? last : AES_BLOCK_LEN; in lib80211_ccmp_decrypt()
/linux-4.4.14/drivers/lightnvm/
Dgennvm.c30 if (!lun->vlun.blocks) in gennvm_blocks_free()
32 vfree(lun->vlun.blocks); in gennvm_blocks_free()
84 blk = &lun->vlun.blocks[i]; in gennvm_block_bb()
134 blk = &lun->vlun.blocks[div_u64(pba, dev->sec_per_blk)]; in gennvm_block_map()
159 lun->vlun.blocks = vzalloc(sizeof(struct nvm_block) * in gennvm_blocks_init()
161 if (!lun->vlun.blocks) in gennvm_blocks_init()
165 block = &lun->vlun.blocks[blk_iter]; in gennvm_blocks_init()
376 blk = &lun->vlun.blocks[ppa->g.blk]; in gennvm_blk_set_type()
Drrpc.c189 rblk = &rlun->blocks[blk->id]; in rrpc_get_blk()
925 if (!rlun->blocks) in rrpc_gc_free()
927 vfree(rlun->blocks); in rrpc_gc_free()
1120 rlun->blocks = vzalloc(sizeof(struct rrpc_block) * in rrpc_luns_init()
1122 if (!rlun->blocks) in rrpc_luns_init()
1126 struct rrpc_block *rblk = &rlun->blocks[j]; in rrpc_luns_init()
1127 struct nvm_block *blk = &lun->blocks[j]; in rrpc_luns_init()
1222 rblk = &rlun->blocks[blk_iter]; in rrpc_blocks_init()
/linux-4.4.14/drivers/gpu/drm/msm/
DNOTES4 display controller blocks at play:
12 Plus a handful of blocks around them for HDMI/DSI/etc output.
18 But, HDMI/DSI/etc blocks seem like they can be shared across multiple
19 display controller blocks. And I for sure don't want to have to deal
60 Also unlike MDP4, with MDP5 all the IRQs for other blocks (HDMI, DSI,
64 which blocks need to be allocated to the active pipes based on fetch
/linux-4.4.14/fs/gfs2/
Dtrans.c31 int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks, in gfs2_trans_begin() argument
38 BUG_ON(blocks == 0 && revokes == 0); in gfs2_trans_begin()
48 tr->tr_blocks = blocks; in gfs2_trans_begin()
52 if (blocks) in gfs2_trans_begin()
53 tr->tr_reserved += 6 + blocks; in gfs2_trans_begin()
Dtrace_gfs2.h379 TP_PROTO(const struct gfs2_sbd *sdp, int blocks),
381 TP_ARGS(sdp, blocks),
385 __field( int, blocks )
390 __entry->blocks = blocks;
394 MINOR(__entry->dev), __entry->blocks)
Dquota.c843 unsigned int nalloc = 0, blocks; in do_sync() local
886 blocks = num_qd * data_blocks + RES_DINODE + num_qd + 3; in do_sync()
895 blocks += gfs2_rg_blocks(ip, reserved) + nalloc * ind_blocks + RES_STATFS; in do_sync()
897 error = gfs2_trans_begin(sdp, blocks, 0); in do_sync()
1304 unsigned int blocks = size >> sdp->sd_sb.sb_bsize_shift; in gfs2_quota_init() local
1316 sdp->sd_quota_slots = blocks * sdp->sd_qc_per_block; in gfs2_quota_init()
1327 for (x = 0; x < blocks; x++) { in gfs2_quota_init()
1564 state->s_state[USRQUOTA].blocks = sdp->sd_quota_inode->i_blocks; in gfs2_quota_get_state()
1619 unsigned int blocks = 0; in gfs2_set_dqblk() local
1679 blocks = 1 + data_blocks + ind_blocks; in gfs2_set_dqblk()
[all …]
Dinode.h50 static inline void gfs2_set_inode_blocks(struct inode *inode, u64 blocks) in gfs2_set_inode_blocks() argument
52 inode->i_blocks = blocks << in gfs2_set_inode_blocks()
Dtrans.h38 extern int gfs2_trans_begin(struct gfs2_sbd *sdp, unsigned int blocks,
/linux-4.4.14/drivers/target/
Dtarget_core_sbc.c51 u32 blocks; in sbc_emulate_readcapacity() local
69 blocks = 0xffffffff; in sbc_emulate_readcapacity()
71 blocks = (u32)blocks_long; in sbc_emulate_readcapacity()
73 buf[0] = (blocks >> 24) & 0xff; in sbc_emulate_readcapacity()
74 buf[1] = (blocks >> 16) & 0xff; in sbc_emulate_readcapacity()
75 buf[2] = (blocks >> 8) & 0xff; in sbc_emulate_readcapacity()
76 buf[3] = blocks & 0xff; in sbc_emulate_readcapacity()
101 unsigned long long blocks = dev->transport->get_blocks(dev); in sbc_emulate_readcapacity_16() local
104 buf[0] = (blocks >> 56) & 0xff; in sbc_emulate_readcapacity_16()
105 buf[1] = (blocks >> 48) & 0xff; in sbc_emulate_readcapacity_16()
[all …]
Dtarget_core_spc.c949 static int spc_modesense_blockdesc(unsigned char *buf, u64 blocks, u32 block_size) in spc_modesense_blockdesc() argument
952 put_unaligned_be32(min(blocks, 0xffffffffull), buf); in spc_modesense_blockdesc()
958 static int spc_modesense_long_blockdesc(unsigned char *buf, u64 blocks, u32 block_size) in spc_modesense_long_blockdesc() argument
960 if (blocks <= 0xffffffff) in spc_modesense_long_blockdesc()
961 return spc_modesense_blockdesc(buf + 3, blocks, block_size) + 3; in spc_modesense_long_blockdesc()
966 put_unaligned_be64(blocks, buf); in spc_modesense_long_blockdesc()
1019 u64 blocks = dev->transport->get_blocks(dev); in spc_emulate_modesense() local
1025 blocks, block_size); in spc_emulate_modesense()
1029 blocks, block_size); in spc_emulate_modesense()
1032 length += spc_modesense_blockdesc(&buf[length], blocks, in spc_emulate_modesense()
/linux-4.4.14/drivers/staging/media/davinci_vpfe/
Ddavinci-vpfe-mc.txt30 The Davinci VPFE is split into V4L2 subdevs, each of the blocks inside the VPFE
52 In general, there is a private ioctl for configuring each of the blocks
66 the isif, ipipe and resizer blocks respectively. These IOCTL's control several
67 functions in the blocks they control. VIDIOC_VPFE_ISIF_S_RAW_PARAMS IOCTL
73 the isif, ipipe and resizer blocks respectively.
/linux-4.4.14/Documentation/ABI/testing/
Dsysfs-fs-ext444 Files which have fewer blocks than this tunable
45 parameter will have their blocks allocated out of a
48 will have its blocks allocated out of its own unique
56 inode table blocks that ext4's inode table readahead
63 This file is read-only and shows the number of blocks
Dsysfs-devices-platform-docg39 The protection has information embedded whether it blocks reads,
24 The protection has information embedded whether it blocks reads,
Dsysfs-fs-nilfs240 Show count of free blocks on volume.
174 Show number of dirty data blocks.
193 Show number of blocks in segment.
262 Show number of blocks for snapshot.
Dsysfs-block86 blocks to the operating system). This parameter
97 blocks to the operating system). This parameter
204 blocks that can be described in a single command. The
219 expects discarded blocks to be explicitly cleared. If a
231 contiguous blocks on storage. This can be used to wipe
/linux-4.4.14/sound/soc/intel/baytrail/
Dsst-baytrail-dsp.c60 u32 blocks; /* # of blocks */ member
83 for (count = 0; count < module->blocks; count++) { in sst_byt_parse_module()
248 int blocks; member
332 size = (region[i].end - region[i].start) / region[i].blocks; in sst_byt_init()
335 for (j = 0; j < region[i].blocks; j++) { in sst_byt_init()
/linux-4.4.14/crypto/
Dsha1_generic.c30 int blocks) in sha1_generic_block_fn() argument
34 while (blocks--) { in sha1_generic_block_fn()
Dsha512_generic.c135 int blocks) in sha512_generic_block_fn() argument
137 while (blocks--) { in sha512_generic_block_fn()
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/
Docteon_main.h57 static inline void octeon_swap_8B_data(u64 *data, u32 blocks) in octeon_swap_8B_data() argument
59 while (blocks) { in octeon_swap_8B_data()
61 blocks--; in octeon_swap_8B_data()
/linux-4.4.14/Documentation/video4linux/
Domap3isp.txt33 The OMAP 3 ISP is split into V4L2 subdevs, each of the blocks inside the ISP
58 All the blocks in the ISP, excluding the CSI-2 and possibly the CCP2 receiver,
62 Autoidle does have issues with some ISP blocks on the 3430, at least.
106 In general, there is a private ioctl for configuring each of the blocks
134 configure, enable and disable functions in the CCDC and preview blocks,
135 respectively. Both IOCTLs control several functions in the blocks they
146 functions in the CCDC and preview blocks is associated with a flag (either
188 Statistic blocks IOCTLs
195 The statistics blocks always get the input image data from the CCDC (as the
Dsi476x.txt74 0x00 | expected | Number of expected RDS blocks
76 0x02 | received | Number of received RDS blocks
78 0x04 | uncorrectable | Number of uncorrectable RDS blocks
/linux-4.4.14/drivers/media/i2c/
Dad9389b.c71 u32 blocks; member
389 edid->segments ? "found" : "no", edid->blocks); in ad9389b_log_status()
683 if (edid->blocks == 0 || edid->blocks > 256) in ad9389b_get_edid()
691 if (edid->blocks + edid->start_block >= state->edid.segments * 2) in ad9389b_get_edid()
692 edid->blocks = state->edid.segments * 2 - edid->start_block; in ad9389b_get_edid()
694 128 * edid->blocks); in ad9389b_get_edid()
994 u32 blocks = state->edid.blocks; in edid_verify_crc() local
998 if ((segment + 1) * 2 <= blocks) in edid_verify_crc()
1047 state->edid.blocks = state->edid.data[0x7e] + 1; in ad9389b_check_edid_status()
1049 __func__, state->edid.blocks); in ad9389b_check_edid_status()
Dadv7511.c77 u32 blocks; member
555 edid->blocks); in adv7511_log_status()
901 if (edid->start_block == 0 && edid->blocks == 0) { in adv7511_get_edid()
902 edid->blocks = state->edid.segments * 2; in adv7511_get_edid()
912 if (edid->start_block + edid->blocks > state->edid.segments * 2) in adv7511_get_edid()
913 edid->blocks = state->edid.segments * 2 - edid->start_block; in adv7511_get_edid()
916 128 * edid->blocks); in adv7511_get_edid()
1322 u32 blocks = state->edid.blocks; in edid_verify_crc() local
1327 if ((segment + 1) * 2 <= blocks) in edid_verify_crc()
1368 state->edid.blocks = state->edid.data[0x7e] + 1; in adv7511_check_edid_status()
[all …]
Dadv7604.c182 unsigned blocks; member
1992 if (edid->start_block == 0 && edid->blocks == 0) { in adv76xx_get_edid()
1993 edid->blocks = data ? state->edid.blocks : 0; in adv76xx_get_edid()
2000 if (edid->start_block >= state->edid.blocks) in adv76xx_get_edid()
2003 if (edid->start_block + edid->blocks > state->edid.blocks) in adv76xx_get_edid()
2004 edid->blocks = state->edid.blocks - edid->start_block; in adv76xx_get_edid()
2006 memcpy(edid->edid, data + edid->start_block * 128, edid->blocks * 128); in adv76xx_get_edid()
2053 if (edid->blocks == 0) { in adv76xx_set_edid()
2064 state->edid.blocks = 0; in adv76xx_set_edid()
2070 if (edid->blocks > 2) { in adv76xx_set_edid()
[all …]
Dtc358743.c1558 if (edid->start_block == 0 && edid->blocks == 0) { in tc358743_g_edid()
1559 edid->blocks = state->edid_blocks_written; in tc358743_g_edid()
1567 edid->blocks == 0) in tc358743_g_edid()
1570 if (edid->start_block + edid->blocks > state->edid_blocks_written) in tc358743_g_edid()
1571 edid->blocks = state->edid_blocks_written - edid->start_block; in tc358743_g_edid()
1574 edid->blocks * EDID_BLOCK_SIZE); in tc358743_g_edid()
1583 u16 edid_len = edid->blocks * EDID_BLOCK_SIZE; in tc358743_s_edid()
1586 __func__, edid->pad, edid->start_block, edid->blocks); in tc358743_s_edid()
1594 if (edid->blocks > EDID_NUM_BLOCKS_MAX) { in tc358743_s_edid()
1595 edid->blocks = EDID_NUM_BLOCKS_MAX; in tc358743_s_edid()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/lov/
Dlov_merge.c54 __u64 blocks = 0; in lov_merge_lvb_kms() local
88 blocks += loi->loi_lvb.lvb_blocks; in lov_merge_lvb_kms()
105 lvb->lvb_blocks = blocks; in lov_merge_lvb_kms()
/linux-4.4.14/drivers/staging/gdm72xx/
Dgdm_sdio.c215 int n, blocks, ret, remain; in send_sdio_pkt() local
219 blocks = len / func->cur_blksize; in send_sdio_pkt()
220 n = blocks * func->cur_blksize; in send_sdio_pkt()
221 if (blocks) { in send_sdio_pkt()
481 u32 len, blocks, n; in gdm_sdio_irq() local
525 blocks = remain / func->cur_blksize; in gdm_sdio_irq()
527 if (blocks) { in gdm_sdio_irq()
528 n = blocks * func->cur_blksize; in gdm_sdio_irq()
/linux-4.4.14/fs/hfs/
Dextent.c286 u32 total_blocks, blocks, start; in hfs_free_fork() local
302 blocks = 0; in hfs_free_fork()
304 blocks += be16_to_cpu(extent[i].count); in hfs_free_fork()
306 res = hfs_free_extents(sb, extent, blocks, blocks); in hfs_free_fork()
309 if (total_blocks == blocks) in hfs_free_fork()
323 } while (total_blocks > blocks); in hfs_free_fork()
/linux-4.4.14/fs/hfsplus/
Dextents.c391 u32 total_blocks, blocks, start; in hfsplus_free_fork() local
398 blocks = 0; in hfsplus_free_fork()
400 blocks += be32_to_cpu(fork->extents[i].block_count); in hfsplus_free_fork()
402 res = hfsplus_free_extents(sb, fork->extents, blocks, blocks); in hfsplus_free_fork()
405 if (total_blocks == blocks) in hfsplus_free_fork()
422 } while (total_blocks > blocks); in hfsplus_free_fork()
/linux-4.4.14/Documentation/video4linux/cx2341x/
DREADME.hm1212 The Y plane is divided into blocks of 16x16 pixels from left to right
20 The UV plane is divided into blocks of 16x8 UV values going from left
56 // The Y plane is divided into blocks of 16x16 pixels
75 // Again, the UV plane is divided into blocks of 16x16 UV values.
/linux-4.4.14/Documentation/nvdimm/
Dbtt.txt22 the heart of it, is an indirection table that re-maps all the blocks on the
93 29 - 0 : Mappings to internal 'postmap' blocks
104 nfree : The number of free blocks that are maintained at any given time.
111 worth of blocks that this arena contributes, this block is at 256G. Thus, the
120 i.e. Every write goes to a "free" block. A running list of free blocks is
168 into the list of free blocks. If another write comes in for the same LBA, it can
201 On startup, we analyze the BTT flog to create our list of free blocks. We walk
249 - All internal available blocks are not uniquely and entirely addressed by the
250 sum of mapped blocks and free blocks (from the BTT flog).
/linux-4.4.14/include/trace/events/
Df2fs.h135 __field(blkcnt_t, blocks)
146 __entry->blocks = inode->i_blocks;
157 (unsigned long long)__entry->blocks,
283 __field(blkcnt_t, blocks)
291 __entry->blocks = dir->i_blocks;
299 (unsigned long long)__entry->blocks,
356 __field(blkcnt_t, blocks)
364 __entry->blocks = inode->i_blocks;
372 (unsigned long long)__entry->blocks,
607 __field(blkcnt_t, blocks)
[all …]
Dext4.h116 __field( __u64, blocks )
125 __entry->blocks = inode->i_blocks;
132 __entry->uid, __entry->gid, __entry->blocks)
1422 __field( unsigned int, blocks )
1430 __entry->blocks = max_blocks;
1437 __entry->pos, __entry->blocks,
1497 __field( __u64, blocks )
1503 __entry->blocks = inode->i_blocks;
1508 (unsigned long) __entry->ino, __entry->blocks)
1744 TP_PROTO(struct super_block *sb, int blocks, int rsv_blocks,
[all …]
Djbd2.h249 __field( __u32, blocks )
263 __entry->blocks = stats->rs_blocks;
277 __entry->handle_count, __entry->blocks,
/linux-4.4.14/tools/testing/selftests/net/
Dpsock_tpacket.c589 static void __v1_v2_fill(struct ring *ring, unsigned int blocks) in __v1_v2_fill() argument
593 ring->req.tp_block_nr = blocks; in __v1_v2_fill()
605 static void __v3_fill(struct ring *ring, unsigned int blocks) in __v3_fill() argument
613 ring->req3.tp_block_nr = blocks; in __v3_fill()
628 unsigned int blocks = 256; in setup_ring() local
638 __v1_v2_fill(ring, blocks); in setup_ring()
644 __v3_fill(ring, blocks); in setup_ring()
/linux-4.4.14/include/linux/
Dasync_tx.h191 async_gen_syndrome(struct page **blocks, unsigned int offset, int src_cnt,
195 async_syndrome_val(struct page **blocks, unsigned int offset, int src_cnt,
Damifd.h50 int blocks; /* total # blocks on disk */ member
Dstat.h34 unsigned long long blocks; member
Dcred.h37 kgid_t *blocks[0]; member
93 ((gi)->blocks[(i) / NGROUPS_PER_BLOCK][(i) % NGROUPS_PER_BLOCK])
/linux-4.4.14/sound/soc/intel/haswell/
Dsst-haswell-dsp.c79 __le32 blocks; /* # of blocks */ member
109 module->blocks, module->type); in hsw_parse_module()
126 for (count = 0; count < module->blocks; count++) { in hsw_parse_module()
449 int blocks; member
667 size = (region[i].end - region[i].start) / region[i].blocks; in hsw_init()
670 for (j = 0; j < region[i].blocks; j++) { in hsw_init()
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134-alsa.c163 if (dev->dmasound.read_count >= dev->dmasound.blksize * (dev->dmasound.blocks-2)) { in saa7134_irq_alsa_done()
166 dev->dmasound.bufsize, dev->dmasound.blocks); in saa7134_irq_alsa_done()
173 next_blk = (dev->dmasound.dma_blk + 2) % dev->dmasound.blocks; in saa7134_irq_alsa_done()
177 next_blk * dev->dmasound.blksize, dev->dmasound.blocks, in saa7134_irq_alsa_done()
181 dev->dmasound.dma_blk = (dev->dmasound.dma_blk + 1) % dev->dmasound.blocks; in saa7134_irq_alsa_done()
381 dev->dmasound.blocks = 0; in dsp_buffer_free()
694 if (dev->dmasound.blocks == periods && in snd_card_saa7134_hw_params()
705 dev->dmasound.blocks = periods; in snd_card_saa7134_hw_params()
711 dev->dmasound.blocks = 0; in snd_card_saa7134_hw_params()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dpio.c183 int blocks; /* block size of the pool */ member
264 mem_pool_info[i].blocks = ab; in init_sc_pools_and_sizes()
377 pi->blocks = (pool_blocks * pi->centipercent) / 10000; in init_sc_pools_and_sizes()
379 if (pi->blocks == 0 && pi->count != 0) { in init_sc_pools_and_sizes()
388 if (pi->blocks != 0) in init_sc_pools_and_sizes()
392 i, pi->blocks); in init_sc_pools_and_sizes()
395 pi->size = pi->blocks / pi->count; in init_sc_pools_and_sizes()
1338 unsigned long blocks = dwords_to_blocks(dw_len); in sc_buffer_alloc() local
1351 if (blocks > avail) { in sc_buffer_alloc()
1362 if (blocks > avail) { in sc_buffer_alloc()
[all …]
/linux-4.4.14/fs/cramfs/
Dinode.c36 unsigned long blocks; member
319 sbi->blocks = super.fsid.blocks; in cramfs_fill_super()
323 sbi->blocks = 0; in cramfs_fill_super()
356 buf->f_blocks = CRAMFS_SB(sb)->blocks; in cramfs_statfs()
/linux-4.4.14/arch/metag/mm/
DKconfig47 these blocks by binding them to nodes and allowing
57 blocks into "zones", where each zone is a power of two number of
60 blocks of physically contiguous memory, then you may need to
/linux-4.4.14/fs/befs/
Ddatastream.c168 befs_blocknr_t blocks; in befs_count_blocks() local
209 blocks = datablocks + metablocks; in befs_count_blocks()
210 befs_debug(sb, "<--- %s %u blocks", __func__, (unsigned int)blocks); in befs_count_blocks()
212 return blocks; in befs_count_blocks()
/linux-4.4.14/arch/cris/boot/rescue/
Dhead_v32.S19 ;; Start clocks for used blocks.
/linux-4.4.14/drivers/block/rsxx/
Ddev.c88 u64 blocks = card->size8 >> 9; in rsxx_getgeo() local
97 do_div(blocks, (geo->heads * geo->sectors)); in rsxx_getgeo()
98 geo->cylinders = blocks; in rsxx_getgeo()
/linux-4.4.14/Documentation/devicetree/bindings/c6x/
Dsoc.txt15 - nodes for IP blocks within SoC
/linux-4.4.14/include/uapi/linux/
Dv4l2-common.h78 __u32 blocks; member
Dcramfs_fs.h47 __u32 blocks; member
/linux-4.4.14/include/uapi/linux/mmc/
Dioctl.h18 unsigned int blocks; member
/linux-4.4.14/fs/xfs/
Dxfs_trans.c172 uint blocks, in xfs_trans_reserve() argument
186 if (blocks > 0) { in xfs_trans_reserve()
187 error = xfs_mod_fdblocks(tp->t_mountp, -((int64_t)blocks), rsvd); in xfs_trans_reserve()
192 tp->t_blk_res += blocks; in xfs_trans_reserve()
261 if (blocks > 0) { in xfs_trans_reserve()
262 xfs_mod_fdblocks(tp->t_mountp, -((int64_t)blocks), rsvd); in xfs_trans_reserve()
/linux-4.4.14/fs/jbd2/
Dtransaction.c166 static void sub_reserved_credits(journal_t *journal, int blocks) in sub_reserved_credits() argument
168 atomic_sub(blocks, &journal->j_reserved_credits); in sub_reserved_credits()
178 static int add_transaction_credits(journal_t *journal, int blocks, in add_transaction_credits() argument
183 int total = blocks + rsv_blocks; in add_transaction_credits()
275 int blocks = handle->h_buffer_credits; in start_this_handle() local
288 (rsv_blocks + blocks > journal->j_max_transaction_buffers)) { in start_this_handle()
291 current->comm, blocks, rsv_blocks, in start_this_handle()
357 if (add_transaction_credits(journal, blocks, rsv_blocks)) in start_this_handle()
365 sub_reserved_credits(journal, blocks); in start_this_handle()
374 handle->h_requested_credits = blocks; in start_this_handle()
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/clock/
Dexynos7-clock.txt3 Exynos7 clock controller has various blocks which are instantiated
5 generate and supply clocks to various hardware blocks within
Dmarvell,pxa1928.txt5 blocks called APMU, MPMU, and APBC roughly corresponding to internal buses.
Dlpc1850-cgu.txt4 peripheral blocks of the LPC18xx. Each independent clock is called
51 and APB peripheral blocks #0 and #2
/linux-4.4.14/Documentation/devicetree/bindings/mfd/
Dqriox.txt6 GPIO blocks.
/linux-4.4.14/fs/afs/
Ddir.c118 union afs_dir_block blocks[PAGE_SIZE / sizeof(union afs_dir_block)]; member
139 qty = desc.size / sizeof(dbuf->blocks[0]); in afs_dir_check_page()
143 if (page->index == 0 && qty != ntohs(dbuf->blocks[0].pagehdr.npages)) { in afs_dir_check_page()
146 ntohs(dbuf->blocks[0].pagehdr.npages)); in afs_dir_check_page()
162 if (dbuf->blocks[tmp].pagehdr.magic != AFS_DIR_MAGIC) { in afs_dir_check_page()
165 ntohs(dbuf->blocks[tmp].pagehdr.magic)); in afs_dir_check_page()
359 dblock = &dbuf->blocks[(blkoff % PAGE_SIZE) / in afs_dir_iterate()
/linux-4.4.14/arch/arm/boot/dts/
Dsama5d3_tcb1.dtsi3 * 2 TC blocks.
/linux-4.4.14/Documentation/devicetree/bindings/pinctrl/
Dfsl,imx27-pinctrl.txt34 signals of function blocks A,B and C. Specific function blocks are
/linux-4.4.14/Documentation/devicetree/bindings/power/
Drenesas,sysc-rmobile.txt17 - reg: Two address start and address range blocks for the device:
89 Hardware blocks belonging to a PM domain should contain a "power-domains"
Dqcom,coincell-charger.txt34 This charger is a sub-node of one of the 8941 PMIC blocks, and is specified
/linux-4.4.14/Documentation/devicetree/bindings/sound/
Dnvidia,tegra30-ahub.txt9 the AHUB's register blocks.
10 - Tegra30 requires 2 entries, for the APBIF and AHUB/AUDIO register blocks.
/linux-4.4.14/drivers/mtd/onenand/
DKconfig60 of 4KiB. Plane1 has only even blocks such as block0, block2, block4
61 while Plane2 has only odd blocks such as block1, block3, block5.
/linux-4.4.14/fs/btrfs/
Drelocation.c2434 static void free_block_list(struct rb_root *blocks) argument
2438 while ((rb_node = rb_first(blocks))) {
2440 rb_erase(rb_node, blocks);
2956 struct reloc_control *rc, struct rb_root *blocks) argument
2971 rb_node = rb_first(blocks);
2979 rb_node = rb_first(blocks);
2990 rb_node = rb_first(blocks);
3004 if (ret != -EAGAIN || rb_node == rb_first(blocks))
3016 free_block_list(blocks);
3284 struct rb_root *blocks) argument
[all …]
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-vid-common.c889 if (edid->start_block == 0 && edid->blocks == 0) { in vidioc_g_edid()
890 edid->blocks = dev->edid_blocks; in vidioc_g_edid()
897 if (edid->start_block + edid->blocks > dev->edid_blocks) in vidioc_g_edid()
898 edid->blocks = dev->edid_blocks - edid->start_block; in vidioc_g_edid()
899 memcpy(edid->edid, dev->edid, edid->blocks * 128); in vidioc_g_edid()
/linux-4.4.14/tools/perf/util/
Dthread-stack.c45 struct list_head blocks; member
358 INIT_LIST_HEAD(&cpr->blocks); in call_path_root__new()
366 list_for_each_entry_safe(pos, n, &cpr->blocks, node) { in call_path_root__free()
383 cpb = list_last_entry(&cpr->blocks, struct call_path_block, in call_path__new()
389 list_add_tail(&cpb->node, &cpr->blocks); in call_path__new()
/linux-4.4.14/drivers/mtd/nand/
Ddiskonchip.c1060 unsigned blocks, maxblocks; in nftl_partscan() local
1084 blocks = mtd->size >> this->phys_erase_shift; in nftl_partscan()
1094 while (blocks > maxblocks) { in nftl_partscan()
1095 blocks >>= 1; in nftl_partscan()
1111 blocks = mtd->size >> this->bbt_erase_shift; in nftl_partscan()
1115 if (blocks > maxblocks) { in nftl_partscan()
1162 int blocks; in inftl_partscan() local
1207 blocks = mtd->size >> vshift; in inftl_partscan()
1208 if (blocks > 32768) { in inftl_partscan()
1213 blocks = doc->chips_per_floor << (this->chip_shift - this->phys_erase_shift); in inftl_partscan()
[all …]
/linux-4.4.14/arch/cris/boot/compressed/
Dhead_v32.S23 ;; Start clocks for used blocks.
/linux-4.4.14/Documentation/devicetree/bindings/iommu/
Dnvidia,tegra30-smmu.txt6 of the SMMU register blocks.
/linux-4.4.14/arch/mips/cavium-octeon/
DKconfig20 This selects the size of CVMSEG LM, which is in cache blocks. The
21 legally range is from zero to 54 cache blocks (i.e. CVMSEG LM is
/linux-4.4.14/drivers/pinctrl/qcom/
DKconfig83 Qualcomm GPIO and MPP blocks found in the Qualcomm PMIC's chips,
95 Qualcomm GPIO and MPP blocks found in the Qualcomm PMIC's chips,
/linux-4.4.14/arch/metag/lib/
Dmemcpy.S49 ! blocks, then jump to the unaligned copy loop or fall through to the aligned
53 LSR D1Ar5, D1Ar3, #3 ! D1Ar5 = number of 8 byte blocks
59 LSRS D1Ar5, D1Ar3, #5 ! D1Ar5 = number of 32 byte blocks
/linux-4.4.14/Documentation/filesystems/nfs/
Dpnfs.txt61 layout types: "files", "objects", "blocks", and "flexfiles". For each
107 blocks-layout setup
110 TODO: Document the setup needs of the blocks layout driver
/linux-4.4.14/drivers/staging/fsl-mc/bus/
DKconfig16 for hardware building-blocks in the SoC that can be used
/linux-4.4.14/drivers/s390/block/
Ddasd_diag.c444 block->blocks = (unsigned long) label->block_count; in dasd_diag_check_device()
446 block->blocks = end_block; in dasd_diag_check_device()
462 (unsigned long) (block->blocks << in dasd_diag_check_device()
486 geo->cylinders = (block->blocks << block->s2b_shift) >> 10; in dasd_diag_fill_geometry()
Ddasd_proc.c94 block->bp_block, block->blocks, in dasd_devices_show()
96 block->blocks) >> 11); in dasd_devices_show()
/linux-4.4.14/fs/affs/
DChanges18 blocks (some very old SCSI drives).
89 - clear meta blocks
101 with physical blocks != 512 bytes.
305 the 1-k blocks that Linux uses.
307 - The number of used blocks is now also calculated
/linux-4.4.14/Documentation/
Dassoc_array.txt36 (2) Objects do not need to contain linkage blocks for use by the array. This
38 Rather, the array is made up of metadata blocks that point to objects.
93 preallocated metadata blocks that will be installed in the internal tree and
94 keeps track of the metadata blocks that will be removed from the tree when the
97 This is also used to keep track of dead blocks and dead objects after the
372 constructed of two types of metadata blocks: nodes and shortcuts.
529 The metadata blocks don't change otherwise. An old leaf won't be freed
533 metadata blocks don't change otherwise. The old leaf won't be freed until
539 ancestry blocks are not replaced (the layout of those does not change).
572 Obsolete blocks and leaves are freed up after an RCU grace period has passed,
/linux-4.4.14/arch/um/os-Linux/
Dfile.c299 long blocks; in os_file_size() local
308 if (ioctl(fd, BLKGETSIZE, &blocks) < 0) { in os_file_size()
315 *size_out = ((long long) blocks) * 512; in os_file_size()
/linux-4.4.14/mm/
Ddmapool.c86 unsigned blocks = 0; in show_pools() local
91 blocks += page->in_use; in show_pools()
97 pool->name, blocks, in show_pools()
/linux-4.4.14/drivers/edac/
Dedac_device.c168 inst->blocks = blk_p; in edac_device_alloc_ctl_info()
647 block = instance->blocks + block_nr; in edac_device_handle_ce()
693 block = instance->blocks + block_nr; in edac_device_handle_ue()
/linux-4.4.14/drivers/gpu/drm/vmwgfx/device_include/
Dsvga3d_surfacedefs.h1009 surf_size_struct blocks; in svga3dsurface_calculate_pitch() local
1011 svga3dsurface_get_size_in_blocks(desc, size, &blocks); in svga3dsurface_calculate_pitch()
1013 pitch = blocks.width * desc->pitch_bytes_per_block; in svga3dsurface_calculate_pitch()
/linux-4.4.14/Documentation/networking/
Dpacket_mmap.txt209 unsigned int tp_block_nr; /* Number of blocks */
219 Frames are grouped in blocks. Each block is a physically contiguous
221 of blocks is tp_block_nr. Note that tp_frame_nr is a redundant parameter because
250 be spawned across two blocks, so there are some details you have to take into
297 called pg_vec, its size limits the number of blocks that can be allocated.
319 pointers to blocks is
321 131072/4 = 32768 blocks
357 <block number> = 131072/4 = 32768 blocks
411 discontiguous blocks of memory, they are contiguous to the user space, hence
420 blocks.
[all …]
/linux-4.4.14/fs/hostfs/
Dhostfs.h60 unsigned long long blocks; member
/linux-4.4.14/Documentation/devicetree/bindings/reset/
Dreset.txt8 Hardware blocks typically receive a reset signal. This signal is generated by
21 in hardware for a reset signal to affect multiple logically separate HW blocks
Dsirf,rstc.txt25 reset signals for most blocks in system. Those device nodes should specify the
/linux-4.4.14/arch/c6x/
DKconfig92 blocks into "zones", where each zone is a power of two number of
95 blocks of physically contiguous memory, then you may need to
/linux-4.4.14/arch/x86/include/asm/
Damd_nb.h43 struct threshold_block *blocks; member
/linux-4.4.14/drivers/staging/most/hdm-dim2/
Ddim2_hal.c123 u32 const blocks = (size + DBR_BLOCK_SIZE - 1) / DBR_BLOCK_SIZE; in alloc_dbr() local
124 u32 mask = ~((~(u32)0) << blocks); in alloc_dbr()
143 u32 const blocks = (size + DBR_BLOCK_SIZE - 1) / DBR_BLOCK_SIZE; in free_dbr() local
144 u32 mask = ~((~(u32)0) << blocks); in free_dbr()
/linux-4.4.14/drivers/sh/intc/
DKconfig16 SH-4A and newer interrupt blocks all support a special shadowed
/linux-4.4.14/Documentation/devicetree/bindings/dma/
Dmpc512x-dma.txt4 blocks of memory contents between memory and peripherals or
/linux-4.4.14/drivers/md/bcache/
Djournal.c76 size_t blocks, bytes = set_bytes(j); in journal_read_bucket() local
99 blocks = set_blocks(j, block_bytes(ca->set)); in journal_read_bucket()
135 offset += blocks * ca->sb.block_size; in journal_read_bucket()
136 len -= blocks * ca->sb.block_size; in journal_read_bucket()
137 j = ((void *) j) + blocks * block_bytes(ca); in journal_read_bucket()
/linux-4.4.14/sound/soc/codecs/
Dwm_adsp.c1602 int ret, pos, blocks, type, offset, reg; in wm_adsp_load_coeff() local
1651 blocks = 0; in wm_adsp_load_coeff()
1660 file, blocks, le32_to_cpu(blk->id), in wm_adsp_load_coeff()
1665 file, blocks, le32_to_cpu(blk->len), offset, type); in wm_adsp_load_coeff()
1699 file, blocks, le32_to_cpu(blk->len), in wm_adsp_load_coeff()
1728 file, blocks, type, pos); in wm_adsp_load_coeff()
1743 file, blocks, le32_to_cpu(blk->len), in wm_adsp_load_coeff()
1750 file, blocks, reg, region_name, ret); in wm_adsp_load_coeff()
1755 blocks++; in wm_adsp_load_coeff()
1764 file, blocks, pos - firmware->size); in wm_adsp_load_coeff()
/linux-4.4.14/sound/oss/
Dswarm_cs4297a.c250 unsigned blocks; // last returned blocks value GETOPTR member
2023 s->dma_dac.blocks = s->dma_dac.wakeup = 0; in cs4297a_ioctl()
2032 s->dma_adc.blocks = s->dma_dac.wakeup = 0; in cs4297a_ioctl()
2251 cinfo.blocks = in cs4297a_ioctl()
2253 s->dma_adc.blocks; in cs4297a_ioctl()
2254 s->dma_adc.blocks = in cs4297a_ioctl()
2258 cinfo.blocks = in cs4297a_ioctl()
2262 cinfo.blocks = in cs4297a_ioctl()
2284 cinfo.blocks = in cs4297a_ioctl()
2286 s->dma_dac.blocks; in cs4297a_ioctl()
[all …]

123