/linux-master/fs/sysv/ |
H A D | balloc.c | 20 * This file contains code for allocating/freeing blocks. 47 sysv_zone_t *blocks = sbi->s_bcache; local 86 memcpy(get_chunk(sb,bh), blocks, count * sizeof(sysv_zone_t)); local 165 sysv_zone_t *blocks; local 186 blocks = sbi->s_bcache; 192 while (n && (zone = blocks[--n]) != 0) 208 blocks = get_chunk(sb, bh);
|
/linux-master/fs/xfs/scrub/ |
H A D | agheader.c | 372 xfs_extlen_t *blocks = priv; local 374 (*blocks) += rec->ar_blockcount; 384 xfs_extlen_t blocks = 0; local 391 xchk_agf_record_bno_lengths, &blocks); 394 if (blocks != be32_to_cpu(agf->agf_freeblks)) 405 xfs_extlen_t blocks; local 423 error = xfs_alloc_get_rec(sc->sa.cnt_cur, &agbno, &blocks, &have); 426 if (!have || blocks != be32_to_cpu(agf->agf_longest)) 437 xfs_agblock_t blocks; local 447 error = xfs_btree_count_blocks(sc->sa.rmap_cur, &blocks); 486 xfs_agblock_t blocks; local 819 xfs_agblock_t blocks; local [all...] |
H A D | symlink_repair.c | 59 unsigned long long blocks; local 67 * If we're doing a repair, we reserve enough blocks to write out a 68 * completely new symlink file, plus twice as many blocks as we would 79 blocks = xfs_symlink_blocks(sc->mp, XFS_SYMLINK_MAXLEN); 80 blocks += xfs_bmbt_calc_size(mp, blocks) * 2; 81 if (blocks > UINT_MAX) 84 *resblks += blocks; 89 * Try to salvage the pathname from remote blocks. Returns the number of bytes 355 * Free all the remote blocks an [all...] |
/linux-master/drivers/md/ |
H A D | dm-ebs-target.c | 33 unsigned char block_shift; /* bitshift sectors -> blocks used in dm-bufio API. */ 47 /* Return number of blocks for a bio, accounting for misalignment of start and end sectors. */ 63 * copy blocks between bufio blocks and bio vector's (partial/overlapping) pages. 81 /* Handle overlapping page <-> blocks */ 121 /* READ/WRITE: iterate bio vector's copying between (partial) pages and bufio blocks. */ 138 * Discard bio's blocks, i.e. pass discards down. 140 * Avoid discarding partial blocks at beginning and end; 141 * return 0 in case no blocks can be discarded as a result. 145 sector_t block, blocks, secto local 169 sector_t blocks, sector = bio->bi_iter.bi_sector; local [all...] |
H A D | md-bitmap.c | 454 * blocks, to ensure previous writes, particularly from 466 * which is safe. The relevant bitmap blocks will 649 /* to 4k blocks */ 1231 /* We don't actually write all bitmap blocks here, 1268 sector_t offset, sector_t *blocks, 1298 sector_t blocks; local 1367 bmc = md_bitmap_get_counter(counts, block, &blocks, 0); 1392 * We mustn't write any other blocks before the superblock. 1415 sector_t offset, sector_t *blocks, 1436 *blocks 1481 sector_t blocks; local 1542 sector_t blocks; local 1581 __bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded) argument 1609 md_bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded) argument 1633 md_bitmap_end_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int aborted) argument 1671 sector_t blocks; local 1684 sector_t blocks; local 1716 sector_t sector, blocks = 0; local 1884 sector_t blocks = mddev->resync_max_sectors; local 1991 sector_t blocks; local 2124 md_bitmap_resize(struct bitmap *bitmap, sector_t blocks, int chunksize, int init) argument [all...] |
H A D | md-bitmap.h | 259 int md_bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded); 260 void md_bitmap_end_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int aborted); 271 int md_bitmap_resize(struct bitmap *bitmap, sector_t blocks,
|
/linux-master/arch/arm/crypto/ |
H A D | aes-ce-glue.c | 30 int rounds, int blocks); 32 int rounds, int blocks); 35 int rounds, int blocks, u8 iv[]); 37 int rounds, int blocks, u8 iv[]); 44 int rounds, int blocks, u8 ctr[]); 172 unsigned int blocks; local 177 while ((blocks = (walk.nbytes / AES_BLOCK_SIZE))) { 180 ctx->key_enc, num_rounds(ctx), blocks); 192 unsigned int blocks; local 197 while ((blocks 212 unsigned int blocks; local 242 unsigned int blocks; local 388 int err, blocks; local [all...] |
/linux-master/fs/jffs2/ |
H A D | build.c | 323 split across blocks, etc. */ 339 /* When do we allow garbage collection to eat from bad blocks rather 355 dbg_fsbuild("trigger levels (size %d KiB, block size %d KiB, %d blocks)\n", 365 dbg_fsbuild("Blocks required to GC bad blocks: %d (%d KiB)\n", 369 dbg_fsbuild("Very dirty blocks before GC triggered: %d\n", 384 c->blocks = vzalloc(size); 387 c->blocks = kzalloc(size, GFP_KERNEL); 388 if (!c->blocks) 392 INIT_LIST_HEAD(&c->blocks[i].list); 393 c->blocks[ [all...] |
/linux-master/fs/ext4/ |
H A D | readpage.c | 23 * - encountering a page with non-contiguous blocks 154 * If a page does not map to a contiguous run of blocks then it simply falls 224 sector_t blocks[MAX_BUF_PER_PAGE]; local 258 * Map blocks using the previous result first. 274 blocks[page_block] = map.m_pblk + map_offset + 309 /* Contiguous blocks? */ 310 if (page_block && blocks[page_block-1] != map.m_pblk-1) 319 blocks[page_block] = map.m_pblk+relative_block; 342 if (bio && (last_block_in_bio != blocks[0] - 1 || 358 bio->bi_iter.bi_sector = blocks[ [all...] |
/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_vram_mgr.c | 38 struct list_head blocks; member in struct:amdgpu_vram_reservation 286 list_for_each_entry(block, &vres->blocks, link) 302 list_for_each_entry_safe(rsv, temp, &mgr->reservations_pending, blocks) { 320 list_move(&rsv->blocks, &mgr->reserved_pages); 343 INIT_LIST_HEAD(&rsv->blocks); 349 list_add_tail(&rsv->blocks, &mgr->reservations_pending); 375 list_for_each_entry(rsv, &mgr->reservations_pending, blocks) { 383 list_for_each_entry(rsv, &mgr->reserved_pages, blocks) { 497 INIT_LIST_HEAD(&vres->blocks); 509 /* Allocate blocks i [all...] |
/linux-master/drivers/usb/storage/ |
H A D | jumpshot.c | 467 // currently, we don't allocate any extra blocks so we're okay 478 unsigned long block, blocks; local 533 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); 536 block, blocks); 537 return jumpshot_read_data(us, info, block, blocks); 546 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | 550 block, blocks); 551 return jumpshot_read_data(us, info, block, blocks); 558 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); 561 block, blocks); [all...] |
H A D | datafab.c | 551 unsigned long block, blocks; local 604 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); 607 block, blocks); 608 return datafab_read_data(us, info, block, blocks); 617 blocks = ((u32)(srb->cmnd[6]) << 24) | ((u32)(srb->cmnd[7]) << 16) | 621 block, blocks); 622 return datafab_read_data(us, info, block, blocks); 629 blocks = ((u32)(srb->cmnd[7]) << 8) | ((u32)(srb->cmnd[8])); 632 block, blocks); 633 return datafab_write_data(us, info, block, blocks); [all...] |
/linux-master/fs/quota/ |
H A D | quota_v1.c | 27 static inline qsize_t v1_qbtos(qsize_t blocks) argument 29 return blocks << QUOTABLOCK_BITS; 130 ulong blocks; local 140 blocks = isize >> BLOCK_SIZE_BITS; 142 if ((blocks % sizeof(struct v1_disk_dqblk) * BLOCK_SIZE + off) %
|
/linux-master/drivers/gpu/drm/ |
H A D | drm_buddy.c | 279 * Split into power-of-two blocks, in case we are given a size that is 452 * drm_buddy_free_list - free blocks 455 * @objects: input list head to free blocks 555 * We really don't want to leave around a bunch of split blocks, since 557 * free the allocated blocks. 688 struct list_head *blocks, 753 list_splice_tail(&allocated, blocks); 759 * We really don't want to leave around a bunch of split blocks, since 761 * free the allocated blocks. 771 list_splice_tail(&allocated, blocks); 685 __alloc_range(struct drm_buddy *mm, struct list_head *dfs, u64 start, u64 size, struct list_head *blocks, u64 *total_allocated_on_err) argument 780 __drm_buddy_alloc_range(struct drm_buddy *mm, u64 start, u64 size, u64 *total_allocated_on_err, struct list_head *blocks) argument 796 __alloc_contig_try_harder(struct drm_buddy *mm, u64 size, u64 min_block_size, struct list_head *blocks) argument 868 drm_buddy_block_trim(struct drm_buddy *mm, u64 new_size, struct list_head *blocks) argument 958 drm_buddy_alloc_blocks(struct drm_buddy *mm, u64 start, u64 end, u64 size, u64 min_block_size, struct list_head *blocks, unsigned long flags) argument [all...] |
/linux-master/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_main.h | 78 /** Swap 8B blocks */ 79 static inline void octeon_swap_8B_data(u64 *data, u32 blocks) argument 81 while (blocks) { 83 blocks--;
|
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | core_acl_flex_keys.c | 56 const struct mlxsw_afk_block *blocks; member in struct:mlxsw_afk 66 const struct mlxsw_afk_block *block = &mlxsw_afk->blocks[i]; 95 mlxsw_afk->blocks = ops->blocks; 114 * is index inside "blocks" 117 const struct mlxsw_afk_block *blocks[]; member in struct:mlxsw_afk_key_info 154 const struct mlxsw_afk_block *block = &mlxsw_afk->blocks[i]; 219 key_info->blocks[key_info->blocks_count] = 220 &mlxsw_afk->blocks[block_index]; 232 /* First fill only key blocks wit [all...] |
/linux-master/fs/ocfs2/ |
H A D | journal.h | 217 * the number of blocks that will be changed during 289 /* quota blocks */ 410 * worth of blocks for initial extent. */ 416 * alloc group descriptor + mkdir/symlink blocks + dir blocks + xattr 417 * blocks + quota update */ 508 /* 2 metadata alloc, 2 new blocks and root refcount block */ 532 /* this does not include *new* metadata blocks, which are 534 * prev. last_eb_blk + blocks along edge of tree. 545 int blocks local 557 int blocks; local [all...] |
/linux-master/fs/verity/ |
H A D | open.c | 25 * (num levels, num blocks in each level, etc.) and initialize @params. 37 u64 blocks; local 105 * the data blocks and is stored last. 108 /* Compute number of levels and the number of blocks in each level */ 109 blocks = ((u64)inode->i_size + params->block_size - 1) >> log_blocksize; 110 while (blocks > 1) { 116 blocks = (blocks + params->hashes_per_block - 1) >> 118 blocks_in_level[params->num_levels++] = blocks; 130 * allocated to track the "verified" status of hash blocks [all...] |
/linux-master/include/linux/mfd/ |
H A D | stmpe.h | 157 extern int stmpe_enable(struct stmpe *stmpe, unsigned int blocks); 158 extern int stmpe_disable(struct stmpe *stmpe, unsigned int blocks);
|
/linux-master/fs/minix/ |
H A D | itree_common.c | 334 /* Clear the ends of indirect blocks on the shared branch */ 360 unsigned blocks, res, direct = DIRECT, i = DEPTH; local 361 blocks = (size + sb->s_blocksize - 1) >> (BLOCK_SIZE_BITS + k); 362 res = blocks; 363 while (--i && blocks > direct) { 364 blocks -= direct; 365 blocks += sb->s_blocksize/sizeof(block_t) - 1; 366 blocks /= sb->s_blocksize/sizeof(block_t); 367 res += blocks;
|
/linux-master/include/drm/ |
H A D | drm_buddy.h | 154 struct list_head *blocks, 159 struct list_head *blocks);
|
/linux-master/arch/powerpc/kernel/ |
H A D | rtas_flash.c | 110 struct flash_block blocks[FLASH_BLOCKS_PER_NODE]; member in struct:flash_block_list 173 if (f->blocks[i].data == NULL) { 176 block_size = f->blocks[i].length; 201 kmem_cache_free(flash_block_cache, f->blocks[i].data); 357 fl->blocks[next_free].data = p; 358 fl->blocks[next_free].length = count; 589 * an entry with no data blocks in the reserved buffer in 610 f->blocks[i].data = (char *)cpu_to_be64(__pa(f->blocks[i].data)); 611 image_size += f->blocks[ [all...] |
/linux-master/drivers/mmc/host/ |
H A D | cb710-mmc.c | 262 return !(data->blksz & 15 && (data->blocks != 1 || data->blksz != 8)); 268 size_t len, blocks = data->blocks; local 271 /* TODO: I don't know how/if the hardware handles non-16B-boundary blocks 273 if (unlikely(data->blksz & 15 && (data->blocks != 1 || data->blksz != 8))) 283 while (blocks-- > 0) { 312 size_t len, blocks = data->blocks; local 316 * non-16B-boundary blocks */ 317 if (unlikely(data->blocks > [all...] |
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | skl_watermark.c | 1516 u32 blocks; local 1531 /* Allocate fixed number of blocks for cursor. */ 1544 blocks = 0; 1556 blocks = U32_MAX; 1562 blocks += wm->wm[level].min_ddb_alloc; 1563 blocks += wm->uv_wm[level].min_ddb_alloc; 1566 if (blocks <= iter.size) { 1567 iter.size -= blocks; 1576 blocks, iter.size); 1585 * Grant each plane the blocks i 1875 u32 blocks, lines, min_ddb_alloc = 0; local 2044 u16 wm0_blocks, trans_offset, blocks; local [all...] |
/linux-master/include/uapi/linux/ |
H A D | cramfs_fs.h | 48 __u32 blocks; member in struct:cramfs_info 108 * Direct blocks are at least 4-byte aligned. 109 * Pointers to direct blocks are shifted down by 2 bits.
|