/linux/fs/ocfs2/ |
A D | reservations.c | 369 if (resv->r_start <= goal && ocfs2_resv_end(resv) >= goal) in ocfs2_find_resv_lhs() 373 if (resv->r_start > goal) { in ocfs2_find_resv_lhs() 477 goal, wanted, RB_EMPTY_ROOT(root)); in __ocfs2_resv_find_window() 487 resmap->m_bitmap_len - goal, in __ocfs2_resv_find_window() 494 BUG_ON(goal == 0 && clen == 0); in __ocfs2_resv_find_window() 532 if (next_resv->r_start <= goal) { in __ocfs2_resv_find_window() 540 next_resv->r_start - goal, in __ocfs2_resv_find_window() 682 unsigned int goal = 0; in ocfs2_resv_find_window() local 693 if (goal >= resmap->m_bitmap_len) in ocfs2_resv_find_window() 694 goal = 0; in ocfs2_resv_find_window() [all …]
|
/linux/fs/ufs/ |
A D | balloc.c | 412 if (goal >= uspi->s_size) in ufs_new_fragments() 413 goal = 0; in ufs_new_fragments() 414 if (goal == 0) in ufs_new_fragments() 417 cgno = ufs_dtog(uspi, goal); in ufs_new_fragments() 702 u64 goal, int *err) in ufs_alloccg_block() argument 715 if (goal == 0) { in ufs_alloccg_block() 716 goal = ucpi->c_rotor; in ufs_alloccg_block() 719 goal = ufs_blknum (goal); in ufs_alloccg_block() 720 goal = ufs_dtogd(uspi, goal); in ufs_alloccg_block() 726 result = goal; in ufs_alloccg_block() [all …]
|
A D | inode.c | 262 u64 tmp, goal, lastfrag; in ufs_inode_getfrag() local 282 goal = 0; in ufs_inode_getfrag() 284 goal = ufs_data_ptr_to_cpu(sb, in ufs_inode_getfrag() 286 if (goal) in ufs_inode_getfrag() 287 goal += uspi->s_fpb; in ufs_inode_getfrag() 290 goal, nfrags, err, locked_page); in ufs_inode_getfrag() 341 u64 tmp = 0, goal; in ufs_inode_getblock() local 367 goal = tmp + uspi->s_fpb; in ufs_inode_getblock() 369 goal = bh->b_blocknr + uspi->s_fpb; in ufs_inode_getblock() 370 tmp = ufs_new_fragments(inode, p, ufs_blknum(new_fragment), goal, in ufs_inode_getblock()
|
/linux/fs/udf/ |
A D | balloc.c | 221 uint32_t goal, int *err) in udf_bitmap_new_block() argument 237 goal = 0; in udf_bitmap_new_block() 560 uint32_t goal, int *err) in udf_table_new_block() argument 583 goal = 0; in udf_table_new_block() 596 if (goal >= eloc.logicalBlockNum) { in udf_table_new_block() 597 if (goal < eloc.logicalBlockNum + in udf_table_new_block() 601 nspread = goal - eloc.logicalBlockNum - in udf_table_new_block() 604 nspread = eloc.logicalBlockNum - goal; in udf_table_new_block() 700 uint16_t partition, uint32_t goal, int *err) in udf_new_block() argument 708 partition, goal, err); in udf_new_block() [all …]
|
/linux/fs/affs/ |
A D | bitmap.c | 115 affs_alloc_block(struct inode *inode, u32 goal) in affs_alloc_block() argument 128 pr_debug("balloc(inode=%lu,goal=%u): ", inode->i_ino, goal); in affs_alloc_block() 136 if (!goal || goal > sbi->s_partition_size) { in affs_alloc_block() 137 if (goal) in affs_alloc_block() 138 affs_warning(sb, "affs_balloc", "invalid goal %d", goal); in affs_alloc_block() 141 goal = sbi->s_reserved; in affs_alloc_block() 144 blk = goal - sbi->s_reserved; in affs_alloc_block()
|
/linux/drivers/scsi/aic7xxx/ |
A D | aic79xx_osm.c | 2447 period = tinfo->goal.period; in ahd_linux_set_offset() 2448 ppr_options = tinfo->goal.ppr_options; in ahd_linux_set_offset() 2471 unsigned int period = tinfo->goal.period; in ahd_linux_set_dt() 2472 unsigned int width = tinfo->goal.width; in ahd_linux_set_dt() 2513 unsigned int period = tinfo->goal.period; in ahd_linux_set_qas() 2552 unsigned int period = tinfo->goal.period; in ahd_linux_set_iu() 2592 unsigned int period = tinfo->goal.period; in ahd_linux_set_rd_strm() 2628 unsigned int period = tinfo->goal.period; in ahd_linux_set_wr_flow() 2664 unsigned int period = tinfo->goal.period; in ahd_linux_set_rti() 2708 unsigned int period = tinfo->goal.period; in ahd_linux_set_pcomp_en() [all …]
|
A D | aic7xxx_osm.c | 1610 if (tinfo->curr.period != tinfo->goal.period in ahc_send_async() 1611 || tinfo->curr.width != tinfo->goal.width in ahc_send_async() 1612 || tinfo->curr.offset != tinfo->goal.offset in ahc_send_async() 2337 unsigned long offset = tinfo->goal.offset; in ahc_linux_set_period() 2390 period = tinfo->goal.period; in ahc_linux_set_offset() 2391 ppr_options = tinfo->goal.ppr_options; in ahc_linux_set_offset() 2409 unsigned int ppr_options = tinfo->goal.ppr_options in ahc_linux_set_dt() 2411 unsigned int period = tinfo->goal.period; in ahc_linux_set_dt() 2412 unsigned int width = tinfo->goal.width; in ahc_linux_set_dt() 2450 unsigned int period = tinfo->goal.period; [all …]
|
A D | aic7xxx_core.c | 1863 tinfo->goal.ppr_options = 0; in ahc_handle_scsiint() 2225 transinfo = &tinfo->goal; in ahc_devlimited_syncrate() 2449 && (tinfo->goal.offset != 0 in ahc_update_neg_request() 2498 tinfo->goal.period = period; in ahc_set_syncrate() 2499 tinfo->goal.offset = offset; in ahc_set_syncrate() 2613 tinfo->goal.width = width; in ahc_set_width() 2962 period = tinfo->goal.period; in ahc_build_transfer_msg() 2963 offset = tinfo->goal.offset; in ahc_build_transfer_msg() 3014 offset = tinfo->goal.offset; in ahc_build_transfer_msg() 3016 doppr ? tinfo->goal.width in ahc_build_transfer_msg() [all …]
|
/linux/fs/hfs/ |
A D | bitmap.c | 139 u32 hfs_vbm_search_free(struct super_block *sb, u32 goal, u32 *num_bits) in hfs_vbm_search_free() argument 151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); in hfs_vbm_search_free() 153 if (goal) in hfs_vbm_search_free() 154 pos = hfs_find_set_zero_bits(bitmap, goal, 0, num_bits); in hfs_vbm_search_free()
|
A D | extent.c | 394 u32 start, len, goal; in hfs_extend_file() local 399 goal = hfs_ext_lastblock(HFS_I(inode)->first_extents); in hfs_extend_file() 404 goal = hfs_ext_lastblock(HFS_I(inode)->cached_extents); in hfs_extend_file() 408 start = hfs_vbm_search_free(sb, goal, &len); in hfs_extend_file()
|
/linux/arch/x86/kernel/ |
A D | setup_percpu.c | 103 const unsigned long goal = __pa(MAX_DMA_ADDRESS); in pcpu_alloc_bootmem() local 109 ptr = memblock_alloc_from(size, align, goal); in pcpu_alloc_bootmem() 115 ptr = memblock_alloc_try_nid(size, align, goal, in pcpu_alloc_bootmem() 124 return memblock_alloc_from(size, align, goal); in pcpu_alloc_bootmem()
|
/linux/fs/ext2/ |
A D | balloc.c | 291 search_reserve_window(struct rb_root *root, ext2_fsblk_t goal) in search_reserve_window() argument 302 if (goal < rsv->rsv_start) in search_reserve_window() 304 else if (goal > rsv->rsv_end) in search_reserve_window() 315 if (rsv->rsv_start > goal) { in search_reserve_window() 1243 ext2_debug("goal=%lu.\n", goal); in ext2_new_blocks() 1267 if (goal < le32_to_cpu(es->s_first_data_block) || in ext2_new_blocks() 1268 goal >= le32_to_cpu(es->s_blocks_count)) in ext2_new_blocks() 1269 goal = le32_to_cpu(es->s_first_data_block); in ext2_new_blocks() 1270 group_no = (goal - le32_to_cpu(es->s_first_data_block)) / in ext2_new_blocks() 1289 grp_target_blk = ((goal - le32_to_cpu(es->s_first_data_block)) % in ext2_new_blocks() [all …]
|
/linux/drivers/scsi/sym53c8xx_2/ |
A D | sym_hipd.c | 1358 goal->iu = 0; 1359 goal->dt = 0; 1360 goal->qas = 0; 1372 goal->dt = 0; 1377 goal->dt = 0; 1389 goal->iu = goal->qas = 0; 1420 if (goal->renego == NS_PPR || (goal->offset && 1421 (goal->iu || goal->dt || goal->qas || (goal->period < 0xa)))) { 1423 } else if (goal->renego == NS_WIDE || goal->width) { 1425 } else if (goal->renego == NS_SYNC || goal->offset) { [all …]
|
/linux/net/netfilter/ipvs/ |
A D | ip_vs_lblc.c | 299 int goal; in ip_vs_lblc_check_expire() local 316 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblc_check_expire() 317 if (goal > tbl->max_size/2) in ip_vs_lblc_check_expire() 318 goal = tbl->max_size/2; in ip_vs_lblc_check_expire() 330 goal--; in ip_vs_lblc_check_expire() 333 if (goal <= 0) in ip_vs_lblc_check_expire()
|
A D | ip_vs_lblcr.c | 463 int goal; in ip_vs_lblcr_check_expire() local 480 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblcr_check_expire() 481 if (goal > tbl->max_size/2) in ip_vs_lblcr_check_expire() 482 goal = tbl->max_size/2; in ip_vs_lblcr_check_expire() 494 goal--; in ip_vs_lblcr_check_expire() 497 if (goal <= 0) in ip_vs_lblcr_check_expire()
|
/linux/fs/xfs/ |
A D | xfs_icache.c | 1584 enum xfs_icwalk_goal goal, in xfs_icwalk_igrab() argument 1588 switch (goal) { in xfs_icwalk_igrab() 1604 enum xfs_icwalk_goal goal, in xfs_icwalk_process_inode() argument 1611 switch (goal) { in xfs_icwalk_process_inode() 1629 enum xfs_icwalk_goal goal, in xfs_icwalk_ag() argument 1642 if (goal == XFS_ICWALK_RECLAIM) in xfs_icwalk_ag() 1656 XFS_LOOKUP_BATCH, goal); in xfs_icwalk_ag() 1721 if (goal == XFS_ICWALK_RECLAIM) { in xfs_icwalk_ag() 1738 enum xfs_icwalk_goal goal, in xfs_icwalk() argument 1746 for_each_perag_tag(mp, agno, pag, goal) { in xfs_icwalk() [all …]
|
/linux/fs/gfs2/ |
A D | rgrp.c | 235 u32 goal, u8 state) in gfs2_bitfit() argument 1150 u32 i, goal, count = 0; in count_unlinked() local 1153 goal = 0; in count_unlinked() 1157 goal = gfs2_bitfit(buffer, bi->bi_bytes, goal, in count_unlinked() 1159 if (goal == BFITNOENT) in count_unlinked() 1162 goal++; in count_unlinked() 1565 u64 goal; in rg_mblk_search() local 1592 goal = ip->i_goal; in rg_mblk_search() 2391 u64 goal; in gfs2_set_alloc_start() local 2394 goal = ip->i_res.rs_start; in gfs2_set_alloc_start() [all …]
|
/linux/fs/hfsplus/ |
A D | extents.c | 445 u32 start, len, goal; in hfsplus_file_extend() local 459 goal = hfsplus_ext_lastblock(hip->first_extents); in hfsplus_file_extend() 464 goal = hfsplus_ext_lastblock(hip->cached_extents); in hfsplus_file_extend() 468 start = hfsplus_block_allocate(sb, sbi->total_blocks, goal, &len); in hfsplus_file_extend() 470 start = hfsplus_block_allocate(sb, goal, 0, &len); in hfsplus_file_extend() 471 if (start >= goal) { in hfsplus_file_extend()
|
/linux/fs/ext4/ |
A D | indirect.c | 247 ext4_fsblk_t goal; in ext4_find_goal() local 253 goal = ext4_find_near(inode, partial); in ext4_find_goal() 254 goal = goal & EXT4_MAX_BLOCK_FILE_PHYS; in ext4_find_goal() 255 return goal; in ext4_find_goal() 335 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle, in ext4_alloc_branch() 336 ar->inode, ar->goal, in ext4_alloc_branch() 613 ar.goal = ext4_find_goal(inode, map->m_lblk, partial); in ext4_ind_map_blocks()
|
/linux/drivers/tty/ |
A D | tty_buffer.c | 319 int goal = min_t(size_t, size - copied, TTY_BUFFER_PAGE); in tty_insert_flip_string_fixed_flag() local 321 int space = __tty_buffer_request_room(port, goal, flags); in tty_insert_flip_string_fixed_flag() 358 int goal = min_t(size_t, size - copied, TTY_BUFFER_PAGE); in tty_insert_flip_string_flags() local 359 int space = tty_buffer_request_room(port, goal); in tty_insert_flip_string_flags()
|
/linux/mm/ |
A D | sparse.c | 337 unsigned long goal, limit; in sparse_early_usemaps_alloc_pgdat_section() local 349 goal = pgdat_to_phys(pgdat) & (PAGE_SECTION_MASK << PAGE_SHIFT); in sparse_early_usemaps_alloc_pgdat_section() 350 limit = goal + (1UL << PA_SECTION_SHIFT); in sparse_early_usemaps_alloc_pgdat_section() 351 nid = early_pfn_to_nid(goal >> PAGE_SHIFT); in sparse_early_usemaps_alloc_pgdat_section() 353 usage = memblock_alloc_try_nid(size, SMP_CACHE_BYTES, goal, limit, nid); in sparse_early_usemaps_alloc_pgdat_section()
|
/linux/arch/powerpc/kernel/ |
A D | setup_64.c | 790 const unsigned long goal = __pa(MAX_DMA_ADDRESS); in pcpu_alloc_bootmem() local 796 ptr = memblock_alloc_from(size, align, goal); in pcpu_alloc_bootmem() 802 ptr = memblock_alloc_try_nid(size, align, goal, in pcpu_alloc_bootmem() 809 return memblock_alloc_from(size, align, goal); in pcpu_alloc_bootmem()
|
/linux/Documentation/userspace-api/ |
A D | sysfs-platform_profile.rst | 19 NOT a goal of this API to allow monitoring the resulting performance 26 laptop, etc. It is explicitly NOT a goal of this API to let userspace know
|
/linux/net/dccp/ |
A D | proto.c | 1111 unsigned long goal; in dccp_init() local 1137 goal = nr_pages >> (21 - PAGE_SHIFT); in dccp_init() 1139 goal = nr_pages >> (23 - PAGE_SHIFT); in dccp_init() 1142 goal = (thash_entries * in dccp_init() 1144 for (ehash_order = 0; (1UL << ehash_order) < goal; ehash_order++) in dccp_init()
|
/linux/Documentation/gpu/rfc/ |
A D | index.rst | 9 * Each RFC should be a section in this file, explaining the goal and main design
|