Home
last modified time | relevance | path

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

123

/linux-4.1.27/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.1.27/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);
Dsha2-ce-glue.c33 int blocks);
/linux-4.1.27/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 …]
Dftl.c202 unsigned blocks, j; in build_maps() local
270 blocks = le32_to_cpu(header.FormattedSize) >> header.BlockSize; in build_maps()
271 part->VirtualBlockMap = vmalloc(blocks * sizeof(uint32_t)); in build_maps()
275 memset(part->VirtualBlockMap, 0xff, blocks * sizeof(uint32_t)); in build_maps()
303 (BLOCK_NUMBER(le32_to_cpu(part->bam_cache[j])) < blocks)) in build_maps()
/linux-4.1.27/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.S322 bmi .Lctrhalfblock @ blocks < 0 means 1/2 block
409 vld1.8 {q0-q1}, [r1, :64]! @ get 3 pt blocks
420 vst1.8 {q0-q1}, [r0, :64]! @ write 3 ct blocks
460 vld1.8 {q0-q1}, [r1, :64]! @ get 3 ct blocks
471 vst1.8 {q0-q1}, [r0, :64]! @ write 3 pt blocks
Dsha1-ce-glue.c28 int blocks);
Dsha2-ce-glue.c29 int blocks);
/linux-4.1.27/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
86 geo->cylinders = dev->blocks >> (6 - dev->bshift); in nfhd_getgeo()
98 static int __init nfhd_init_one(int id, u32 blocks, u32 bsize) in nfhd_init_one() argument
104 blocks, bsize); in nfhd_init_one()
116 dev->blocks = blocks; in nfhd_init_one()
137 set_capacity(dev->disk, (sector_t)blocks * (bsize / 512)); in nfhd_init_one()
156 u32 blocks, bsize; in nfhd_init() local
170 if (nfhd_get_capacity(i, 0, &blocks, &bsize)) in nfhd_init()
[all …]
/linux-4.1.27/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
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).
79 The cleaner writes back all dirty blocks in a cache to decommission it.
/linux-4.1.27/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.c294 unsigned int blocks = tc3589x->pdata->block; in tc3589x_device_init() local
296 if (blocks & TC3589x_BLOCK_GPIO) { in tc3589x_device_init()
307 if (blocks & TC3589x_BLOCK_KEYPAD) { in tc3589x_device_init()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/fs/
Dmpage.c151 sector_t blocks[MAX_BUF_PER_PAGE]; in do_mpage_readpage() local
186 blocks[page_block] = map_bh->b_blocknr + map_offset + in do_mpage_readpage()
233 if (page_block && blocks[page_block-1] != map_bh->b_blocknr-1) in do_mpage_readpage()
242 blocks[page_block] = map_bh->b_blocknr+relative_block; in do_mpage_readpage()
269 if (bio && (*last_block_in_bio != blocks[0] - 1)) in do_mpage_readpage()
275 if (!bdev_read_page(bdev, blocks[0] << (blkbits - 9), in do_mpage_readpage()
279 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()
474 sector_t blocks[MAX_BUF_PER_PAGE]; in __mpage_writepage() local
512 if (bh->b_blocknr != blocks[page_block-1] + 1) in __mpage_writepage()
[all …]
Dstat.c35 stat->blocks = inode->i_blocks; in generic_fillattr()
261 tmp.st_blocks = stat->blocks; in cp_new_stat()
395 tmp.st_blocks = stat->blocks; in cp_new_stat64()
/linux-4.1.27/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.
203 commands that consist small blocks less than 2MB.
358 validity of all the blocks.
361 : It is composed of a block address table for all the node blocks stored in
366 data and node blocks stored in Main area.
412 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
Dext3.txt124 resgid=n The group ID which may use the reserved blocks.
126 resuid=n The user ID which may use the reserved blocks.
174 groups metadata and data blocks into a single unit called a transaction. When
175 it's time to write the new metadata out to disk, the associated data blocks
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).
Daffs.txt28 Supported block sizes are: 512, 1024, 2048 and 4096 bytes. Larger blocks
56 reserved=num Sets the number of reserved blocks at the start of the
199 than 1 process writes to a (small) diskette, the blocks are allocated
204 program files cannot be memory mapped due to the 488 byte blocks.
/linux-4.1.27/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.1.27/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.h19 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.1.27/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.h148 static inline sector_t logical_to_sectors(struct scsi_device *sdev, sector_t blocks) in logical_to_sectors() argument
150 return blocks << (ilog2(sdev->sector_size) - 9); in logical_to_sectors()
/linux-4.1.27/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.1.27/drivers/usb/storage/
Djumpshot.c487 unsigned long block, blocks; in jumpshot_transport() local
542 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport()
545 block, blocks); in jumpshot_transport()
546 return jumpshot_read_data(us, info, block, blocks); in jumpshot_transport()
555 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | in jumpshot_transport()
559 block, blocks); in jumpshot_transport()
560 return jumpshot_read_data(us, info, block, blocks); in jumpshot_transport()
567 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in jumpshot_transport()
570 block, blocks); in jumpshot_transport()
571 return jumpshot_write_data(us, info, block, blocks); in jumpshot_transport()
[all …]
Ddatafab.c560 unsigned long block, blocks; in datafab_transport() local
613 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in datafab_transport()
616 block, blocks); in datafab_transport()
617 return datafab_read_data(us, info, block, blocks); in datafab_transport()
626 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | in datafab_transport()
630 block, blocks); in datafab_transport()
631 return datafab_read_data(us, info, block, blocks); in datafab_transport()
638 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in datafab_transport()
641 block, blocks); in datafab_transport()
642 return datafab_write_data(us, info, block, blocks); in datafab_transport()
[all …]
Dshuttle_usbat.c1690 unsigned long block, blocks; in usbat_flash_transport() local
1738 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in usbat_flash_transport()
1741 block, blocks); in usbat_flash_transport()
1742 return usbat_flash_read_data(us, info, block, blocks); in usbat_flash_transport()
1752 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | in usbat_flash_transport()
1756 block, blocks); in usbat_flash_transport()
1757 return usbat_flash_read_data(us, info, block, blocks); in usbat_flash_transport()
1764 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); in usbat_flash_transport()
1767 block, blocks); in usbat_flash_transport()
1768 return usbat_flash_write_data(us, info, block, blocks); in usbat_flash_transport()
[all …]
/linux-4.1.27/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.h265 int type, int blocks, int rsv_blocks);
305 #define ext4_journal_start_with_reserve(inode, type, blocks, rsv_blocks) \ argument
306 __ext4_journal_start((inode), __LINE__, (type), (blocks), (rsv_blocks))
310 int blocks, int rsv_blocks) in __ext4_journal_start() argument
312 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.1.27/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.1.27/drivers/mtd/tests/
Dspeedtest.c54 static int multiblock_erase(int ebnum, int blocks) in multiblock_erase() argument
63 ei.len = mtd->erasesize * blocks; in multiblock_erase()
68 err, ebnum, blocks); in multiblock_erase()
74 "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.1.27/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.1.27/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.c518 size_t blocks; in jffs2_do_fill_super() local
539 blocks = c->flash_size / c->sector_size; in jffs2_do_fill_super()
544 if ((c->sector_size * blocks) != c->flash_size) { in jffs2_do_fill_super()
545 c->flash_size = c->sector_size * blocks; in jffs2_do_fill_super()
602 vfree(c->blocks); in jffs2_do_fill_super()
604 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
Dsuper.c335 vfree(c->blocks); in jffs2_put_super()
337 kfree(c->blocks); in jffs2_put_super()
/linux-4.1.27/drivers/mmc/card/
Dblock.c152 packed->blocks = 0; in mmc_blk_clear_packed()
356 idata->buf_bytes = (u64) idata->ic.blksz * idata->ic.blocks; in mmc_blk_ioctl_copy_from_user()
496 data.blocks = idata->ic.blocks; in mmc_blk_ioctl_cmd()
543 err = mmc_set_blockcount(card, data.blocks, in mmc_blk_ioctl_cmd()
678 __be32 *blocks; in mmc_sd_num_wr_blocks() local
703 data.blocks = 1; in mmc_sd_num_wr_blocks()
712 blocks = kmalloc(4, GFP_KERNEL); in mmc_sd_num_wr_blocks()
713 if (!blocks) in mmc_sd_num_wr_blocks()
716 sg_init_one(&sg, blocks, 4); in mmc_sd_num_wr_blocks()
720 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()
680 if (mrq->data->blocks > 1) { in mmc_test_prepare_broken_mrq()
709 mrq->data->blocks * mrq->data->blksz) in mmc_test_check_result()
749 if (mrq->data->blocks > 1) { in mmc_test_check_broken_result()
782 unsigned dev_addr, unsigned blocks, in mmc_test_nonblock_transfer() argument
815 blocks, blksz, write); in mmc_test_nonblock_transfer()
[all …]
Dqueue.h28 unsigned int blocks; member
/linux-4.1.27/drivers/md/
Dbitmap.c1186 sector_t offset, sector_t *blocks,
1199 sector_t blocks; in bitmap_daemon_work() local
1267 &blocks, 0); in bitmap_daemon_work()
1316 sector_t offset, sector_t *blocks, in bitmap_get_counter() argument
1339 *blocks = csize - (offset & (csize - 1)); in bitmap_get_counter()
1374 sector_t blocks; in bitmap_startwrite() local
1378 bmc = bitmap_get_counter(&bitmap->counts, offset, &blocks, 1); in bitmap_startwrite()
1411 offset += blocks; in bitmap_startwrite()
1412 if (sectors > blocks) in bitmap_startwrite()
1413 sectors -= blocks; in bitmap_startwrite()
[all …]
Dbitmap.h255 int bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded);
256 void bitmap_end_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int aborted);
263 int bitmap_resize(struct bitmap *bitmap, sector_t blocks,
/linux-4.1.27/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.1.27/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.1.27/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.1.27/arch/x86/kernel/cpu/mcheck/
Dmce_amd.c512 if (per_cpu(threshold_banks, cpu)[bank]->blocks) { in allocate_threshold_blocks()
514 &per_cpu(threshold_banks, cpu)[bank]->blocks->miscj); in allocate_threshold_blocks()
516 per_cpu(threshold_banks, cpu)[bank]->blocks = b; in allocate_threshold_blocks()
554 struct list_head *head = &b->blocks->miscj; in __threshold_add_blocks()
559 err = kobject_add(&b->blocks->kobj, b->kobj, b->blocks->kobj.name); in __threshold_add_blocks()
674 list_for_each_entry_safe(pos, tmp, &head->blocks->miscj, miscj) { in deallocate_threshold_block()
680 kfree(per_cpu(threshold_banks, cpu)[bank]->blocks); in deallocate_threshold_block()
681 per_cpu(threshold_banks, cpu)[bank]->blocks = NULL; in deallocate_threshold_block()
691 list_for_each_entry_safe(pos, tmp, &b->blocks->miscj, miscj) in __threshold_remove_blocks()
704 if (!b->blocks) in threshold_remove_bank()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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);
175 unsigned int blocks; member
/linux-4.1.27/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.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_ccmp.c234 int blocks, last, len; in ieee80211_ccmp_encrypt() local
246 blocks = (data_len + AES_BLOCK_LEN - 1) / AES_BLOCK_LEN; in ieee80211_ccmp_encrypt()
249 for (i = 1; i <= blocks; i++) { in ieee80211_ccmp_encrypt()
250 len = (i == blocks && last) ? last : AES_BLOCK_LEN; in ieee80211_ccmp_encrypt()
332 int i, blocks, last, len; in ieee80211_ccmp_decrypt() local
338 blocks = (data_len + AES_BLOCK_LEN - 1) / AES_BLOCK_LEN; in ieee80211_ccmp_decrypt()
341 for (i = 1; i <= blocks; i++) { in ieee80211_ccmp_decrypt()
342 len = (i == blocks && last) ? last : AES_BLOCK_LEN; in ieee80211_ccmp_decrypt()
/linux-4.1.27/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.c309 data->bytes_xfered, data->blocks, in atmci_req_show()
698 else if (data->blocks > 1) in atmci_prepare_command()
815 int transfer_size = host->data->blocks * host->data->blksz; in atmci_pdc_complete()
921 if (data->blocks * data->blksz < 12 in atmci_prepare_data()
922 || (data->blocks * data->blksz) & 3) in atmci_prepare_data()
972 host->data_size = data->blocks * data->blksz; in atmci_prepare_data_pdc()
1017 if (data->blocks * data->blksz < ATMCI_DMA_THRESHOLD) in atmci_prepare_data_dma()
1185 atmci_writel(host, ATMCI_BLKR, ATMCI_BCNT(data->blocks) in atmci_start_request()
1188 ATMCI_BCNT(data->blocks) | ATMCI_BLKLEN(data->blksz)); in atmci_start_request()
1279 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.1.27/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.1.27/fs/reiserfs/
Dxattr_security.c60 int blocks = 0; in reiserfs_security_init() local
82 blocks = reiserfs_xattr_jcreate_nblocks(inode) + in reiserfs_security_init()
88 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.1.27/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.1.27/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.1.27/fs/ocfs2/
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()
Docfs2.h721 u64 blocks) in ocfs2_blocks_to_clusters() argument
726 return (u32)(blocks >> b_to_c_bits); in ocfs2_blocks_to_clusters()
766 u64 blocks) in ocfs2_block_to_cluster_start() argument
771 clusters = ocfs2_blocks_to_clusters(sb, blocks); in ocfs2_block_to_cluster_start()
788 u64 blocks; in ocfs2_align_bytes_to_blocks() local
790 blocks = ocfs2_blocks_for_bytes(sb, bytes); in ocfs2_align_bytes_to_blocks()
791 return blocks << sb->s_blocksize_bits; in ocfs2_align_bytes_to_blocks()
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.1.27/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.1.27/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.c802 unsigned int nalloc = 0, blocks; in do_sync() local
845 blocks = num_qd * data_blocks + RES_DINODE + num_qd + 3; in do_sync()
854 blocks += gfs2_rg_blocks(ip, reserved) + nalloc * ind_blocks + RES_STATFS; in do_sync()
856 error = gfs2_trans_begin(sdp, blocks, 0); in do_sync()
1260 unsigned int blocks = size >> sdp->sd_sb.sb_bsize_shift; in gfs2_quota_init() local
1272 sdp->sd_quota_slots = blocks * sdp->sd_qc_per_block; in gfs2_quota_init()
1283 for (x = 0; x < blocks; x++) { in gfs2_quota_init()
1520 state->s_state[USRQUOTA].blocks = sdp->sd_quota_inode->i_blocks; in gfs2_quota_get_state()
1575 unsigned int blocks = 0; in gfs2_set_dqblk() local
1635 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.1.27/drivers/target/
Dtarget_core_sbc.c50 u32 blocks; in sbc_emulate_readcapacity() local
68 blocks = 0xffffffff; in sbc_emulate_readcapacity()
70 blocks = (u32)blocks_long; in sbc_emulate_readcapacity()
72 buf[0] = (blocks >> 24) & 0xff; in sbc_emulate_readcapacity()
73 buf[1] = (blocks >> 16) & 0xff; in sbc_emulate_readcapacity()
74 buf[2] = (blocks >> 8) & 0xff; in sbc_emulate_readcapacity()
75 buf[3] = blocks & 0xff; in sbc_emulate_readcapacity()
100 unsigned long long blocks = dev->transport->get_blocks(dev); in sbc_emulate_readcapacity_16() local
103 buf[0] = (blocks >> 56) & 0xff; in sbc_emulate_readcapacity_16()
104 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()
1016 u64 blocks = dev->transport->get_blocks(dev); in spc_emulate_modesense() local
1022 blocks, block_size); in spc_emulate_modesense()
1026 blocks, block_size); in spc_emulate_modesense()
1029 length += spc_modesense_blockdesc(&buf[length], blocks, in spc_emulate_modesense()
/linux-4.1.27/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-block79 blocks to the operating system). This parameter
90 blocks to the operating system). This parameter
197 blocks that can be described in a single command. The
212 expects discarded blocks to be explicitly cleared. If a
224 contiguous blocks on storage. This can be used to wipe
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.
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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
449 edid->blocks); in adv7511_log_status()
792 if (edid->start_block == 0 && edid->blocks == 0) { in adv7511_get_edid()
793 edid->blocks = state->edid.segments * 2; in adv7511_get_edid()
803 if (edid->start_block + edid->blocks > state->edid.segments * 2) in adv7511_get_edid()
804 edid->blocks = state->edid.segments * 2 - edid->start_block; in adv7511_get_edid()
807 128 * edid->blocks); in adv7511_get_edid()
1209 u32 blocks = state->edid.blocks; in edid_verify_crc() local
1214 if ((segment + 1) * 2 <= blocks) in edid_verify_crc()
1255 state->edid.blocks = state->edid.data[0x7e] + 1; in adv7511_check_edid_status()
[all …]
Dadv7604.c157 unsigned blocks; member
1943 if (edid->start_block == 0 && edid->blocks == 0) { in adv76xx_get_edid()
1944 edid->blocks = data ? state->edid.blocks : 0; in adv76xx_get_edid()
1951 if (edid->start_block >= state->edid.blocks) in adv76xx_get_edid()
1954 if (edid->start_block + edid->blocks > state->edid.blocks) in adv76xx_get_edid()
1955 edid->blocks = state->edid.blocks - edid->start_block; in adv76xx_get_edid()
1957 memcpy(edid->edid, data + edid->start_block * 128, edid->blocks * 128); in adv76xx_get_edid()
2004 if (edid->blocks == 0) { in adv76xx_set_edid()
2015 state->edid.blocks = 0; in adv76xx_set_edid()
2021 if (edid->blocks > 2) { in adv76xx_set_edid()
[all …]
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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.1.27/include/trace/events/
Df2fs.h129 __field(blkcnt_t, blocks)
140 __entry->blocks = inode->i_blocks;
151 (unsigned long long)__entry->blocks,
277 __field(blkcnt_t, blocks)
285 __entry->blocks = dir->i_blocks;
293 (unsigned long long)__entry->blocks,
350 __field(blkcnt_t, blocks)
358 __entry->blocks = inode->i_blocks;
366 (unsigned long long)__entry->blocks,
574 __field(blkcnt_t, blocks)
[all …]
Dext4.h116 __field( __u64, blocks )
125 __entry->blocks = inode->i_blocks;
132 __entry->uid, __entry->gid, __entry->blocks)
1424 __field( unsigned int, blocks )
1432 __entry->blocks = max_blocks;
1439 __entry->pos, __entry->blocks,
1499 __field( __u64, blocks )
1505 __entry->blocks = inode->i_blocks;
1510 (unsigned long) __entry->ino, __entry->blocks)
1746 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,
Dext3.h20 __field( blkcnt_t, blocks )
29 __entry->blocks = inode->i_blocks;
36 (unsigned long) __entry->blocks)
756 __field( blkcnt_t, blocks )
762 __entry->blocks = inode->i_blocks;
767 (unsigned long) __entry->ino, (unsigned long) __entry->blocks)
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/media/pci/saa7134/
Dsaa7134-alsa.c172 if (dev->dmasound.read_count >= dev->dmasound.blksize * (dev->dmasound.blocks-2)) { in saa7134_irq_alsa_done()
174 dev->dmasound.bufsize, dev->dmasound.blocks); in saa7134_irq_alsa_done()
181 next_blk = (dev->dmasound.dma_blk + 2) % dev->dmasound.blocks; in saa7134_irq_alsa_done()
186 …next_blk * dev->dmasound.blksize, dev->dmasound.blocks, dev->dmasound.blksize, dev->dmasound.read_… in saa7134_irq_alsa_done()
189 dev->dmasound.dma_blk = (dev->dmasound.dma_blk + 1) % dev->dmasound.blocks; in saa7134_irq_alsa_done()
389 dev->dmasound.blocks = 0; in dsp_buffer_free()
702 if (dev->dmasound.blocks == periods && in snd_card_saa7134_hw_params()
713 dev->dmasound.blocks = periods; in snd_card_saa7134_hw_params()
719 dev->dmasound.blocks = 0; in snd_card_saa7134_hw_params()
/linux-4.1.27/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.1.27/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.1.27/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()
DChangeLog235 of blocks, which in turn calls befs_fpos2brun() in datastream.c to do
296 in several respects. For one thing, it doesn't deal with indirect blocks
307 * Made a function to actually count the number of fs blocks used by a file.
315 The i_blocks field of the inode struct is not the number of blocks for the
316 inode, it is the number of blocks for the file. Also, i_blksize is not
374 you have some of its blocks open. Moved the second set_blocksize() to the
/linux-4.1.27/arch/cris/boot/rescue/
Dhead_v32.S19 ;; Start clocks for used blocks.
/linux-4.1.27/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.1.27/include/uapi/linux/mmc/
Dioctl.h18 unsigned int blocks; member
/linux-4.1.27/include/uapi/linux/
Dv4l2-common.h78 __u32 blocks; member
Dcramfs_fs.h47 __u32 blocks; member
/linux-4.1.27/Documentation/devicetree/bindings/c6x/
Dsoc.txt15 - nodes for IP blocks within SoC
/linux-4.1.27/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()
268 if (blocks > 0) { in xfs_trans_reserve()
269 xfs_mod_fdblocks(tp->t_mountp, -((int64_t)blocks), rsvd); in xfs_trans_reserve()
/linux-4.1.27/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()
261 int blocks = handle->h_buffer_credits; in start_this_handle() local
269 if (WARN_ON(blocks > journal->j_max_transaction_buffers / 2)) { in start_this_handle()
271 current->comm, blocks, in start_this_handle()
345 if (add_transaction_credits(journal, blocks, rsv_blocks)) in start_this_handle()
353 sub_reserved_credits(journal, blocks); in start_this_handle()
362 handle->h_requested_credits = blocks; in start_this_handle()
[all …]
/linux-4.1.27/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
Dexynos5260-clock.txt5 generate and supply clocks to various hardware blocks within
30 the hardware blocks. These clocks are defined as fixed clocks in the
/linux-4.1.27/Documentation/devicetree/bindings/mfd/
Dqriox.txt6 GPIO blocks.
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dsvga3d_surfacedefs.h775 surf_size_struct blocks; in svga3dsurface_calculate_pitch() local
777 svga3dsurface_get_size_in_blocks(desc, size, &blocks); in svga3dsurface_calculate_pitch()
779 pitch = blocks.width * desc->pitch_bytes_per_block; in svga3dsurface_calculate_pitch()
/linux-4.1.27/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.1.27/arch/arm/boot/dts/
Dsama5d3_tcb1.dtsi3 * 2 TC blocks.
/linux-4.1.27/Documentation/devicetree/bindings/pinctrl/
Dfsl,imx27-pinctrl.txt34 signals of function blocks A,B and C. Specific function blocks are
/linux-4.1.27/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.1.27/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.1.27/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"
/linux-4.1.27/fs/btrfs/
Drelocation.c2432 static void free_block_list(struct rb_root *blocks) argument
2436 while ((rb_node = rb_first(blocks))) {
2438 rb_erase(rb_node, blocks);
2950 struct reloc_control *rc, struct rb_root *blocks) argument
2965 rb_node = rb_first(blocks);
2973 rb_node = rb_first(blocks);
2984 rb_node = rb_first(blocks);
2998 if (ret != -EAGAIN || rb_node == rb_first(blocks))
3010 free_block_list(blocks);
3278 struct rb_root *blocks) argument
[all …]
/linux-4.1.27/tools/perf/util/
Dthread-stack.c45 struct list_head blocks; member
350 INIT_LIST_HEAD(&cpr->blocks); in call_path_root__new()
358 list_for_each_entry_safe(pos, n, &cpr->blocks, node) { in call_path_root__free()
375 cpb = list_last_entry(&cpr->blocks, struct call_path_block, in call_path__new()
381 list_add_tail(&cpb->node, &cpr->blocks); in call_path__new()
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-vid-common.c865 if (edid->start_block == 0 && edid->blocks == 0) { in vidioc_g_edid()
866 edid->blocks = dev->edid_blocks; in vidioc_g_edid()
873 if (edid->start_block + edid->blocks > dev->edid_blocks) in vidioc_g_edid()
874 edid->blocks = dev->edid_blocks - edid->start_block; in vidioc_g_edid()
875 memcpy(edid->edid, dev->edid, edid->blocks * 128); in vidioc_g_edid()
/linux-4.1.27/drivers/mtd/nand/
Ddiskonchip.c1057 unsigned blocks, maxblocks; in nftl_partscan() local
1081 blocks = mtd->size >> this->phys_erase_shift; in nftl_partscan()
1091 while (blocks > maxblocks) { in nftl_partscan()
1092 blocks >>= 1; in nftl_partscan()
1108 blocks = mtd->size >> this->bbt_erase_shift; in nftl_partscan()
1112 if (blocks > maxblocks) { in nftl_partscan()
1159 int blocks; in inftl_partscan() local
1204 blocks = mtd->size >> vshift; in inftl_partscan()
1205 if (blocks > 32768) { in inftl_partscan()
1210 blocks = doc->chips_per_floor << (this->chip_shift - this->phys_erase_shift); in inftl_partscan()
[all …]
/linux-4.1.27/arch/cris/boot/compressed/
Dhead_v32.S23 ;; Start clocks for used blocks.
/linux-4.1.27/Documentation/devicetree/bindings/iommu/
Dnvidia,tegra30-smmu.txt6 of the SMMU register blocks.
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/drivers/staging/fsl-mc/bus/
DKconfig16 for hardware building-blocks in the SoC that can be used
/linux-4.1.27/drivers/s390/block/
Ddasd_diag.c437 block->blocks = (unsigned long) label->block_count; in dasd_diag_check_device()
439 block->blocks = end_block; in dasd_diag_check_device()
455 (unsigned long) (block->blocks << in dasd_diag_check_device()
479 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.1.27/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.1.27/sound/soc/codecs/
Dwm_adsp.c1184 int ret, pos, blocks, type, offset, reg; in wm_adsp_load_coeff() local
1233 blocks = 0; in wm_adsp_load_coeff()
1242 file, blocks, le32_to_cpu(blk->id), in wm_adsp_load_coeff()
1247 file, blocks, le32_to_cpu(blk->len), offset, type); in wm_adsp_load_coeff()
1281 file, blocks, le32_to_cpu(blk->len), in wm_adsp_load_coeff()
1310 file, blocks, type, pos); in wm_adsp_load_coeff()
1325 file, blocks, le32_to_cpu(blk->len), in wm_adsp_load_coeff()
1332 file, blocks, reg, region_name, ret); in wm_adsp_load_coeff()
1337 blocks++; in wm_adsp_load_coeff()
1346 file, blocks, pos - firmware->size); in wm_adsp_load_coeff()
/linux-4.1.27/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,
Dmd.txt28 other modes are only supported with persistent super blocks
316 between 2 and 3 times "time_base" after all the covered blocks
334 bitmap will be cleared when the corresponding blocks are thought
364 blocks
445 avoid repeating the earlier blocks. With v1.x metadata, this
456 This gives the list of all known bad blocks in the form of
460 recorded to disk safely) bad blocks.
464 blocks in the same form of 'bad_blocks'. If output is too big
466 adds bad blocks without acknowledging them. This is largely
497 happening. This reads all blocks and checks
[all …]
/linux-4.1.27/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.1.27/arch/um/os-Linux/
Dfile.c298 long blocks; in os_file_size() local
307 if (ioctl(fd, BLKGETSIZE, &blocks) < 0) { in os_file_size()
314 *size_out = ((long long) blocks) * 512; in os_file_size()
/linux-4.1.27/arch/x86/include/asm/
Damd_nb.h43 struct threshold_block *blocks; member
/linux-4.1.27/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.1.27/fs/hostfs/
Dhostfs.h60 unsigned long long blocks; member
/linux-4.1.27/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.1.27/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.1.27/Documentation/devicetree/bindings/dma/
Dmpc512x-dma.txt4 blocks of memory contents between memory and peripherals or
/linux-4.1.27/drivers/mtd/spi-nor/
DKconfig16 to erasing whole blocks (32/64 KiB).
/linux-4.1.27/drivers/sh/intc/
DKconfig16 SH-4A and newer interrupt blocks all support a special shadowed
/linux-4.1.27/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.1.27/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 …]
/linux-4.1.27/Documentation/devicetree/bindings/i2c/
Di2c-designware.txt15 This option is only supported in hardware blocks version 1.11a or newer.
/linux-4.1.27/Documentation/arm/Samsung-S3C24XX/
DSuspend.txt9 in Self-Refresh mode, and all but the essential peripheral blocks are
86 1) The uart drivers will disable the clocks to the UART blocks when
/linux-4.1.27/Documentation/s390/
DDASD31 volume, skipping the first blocks up to the volume label. These are
56 1kB blocks anyway and you gain approx. 50% of capacity increasing your
/linux-4.1.27/arch/sh/mm/
DKconfig35 blocks into "zones", where each zone is a power of two number of
38 blocks of physically contiguous memory, then you may need to
119 support for these blocks by binding them to nodes and allowing

123