/Linux-v4.19/mm/ |
D | nobootmem.c | 41 u64 goal, u64 limit) in __alloc_memory_core_early() argument 51 addr = memblock_find_in_range_node(size, align, goal, limit, nid, in __alloc_memory_core_early() 225 unsigned long goal, in ___alloc_bootmem_nopanic() argument 235 ptr = __alloc_memory_core_early(NUMA_NO_NODE, size, align, goal, limit); in ___alloc_bootmem_nopanic() 240 if (goal != 0) { in ___alloc_bootmem_nopanic() 241 goal = 0; in ___alloc_bootmem_nopanic() 262 unsigned long goal) in __alloc_bootmem_nopanic() argument 266 return ___alloc_bootmem_nopanic(size, align, goal, limit); in __alloc_bootmem_nopanic() 270 unsigned long goal, unsigned long limit) in ___alloc_bootmem() argument 272 void *mem = ___alloc_bootmem_nopanic(size, align, goal, limit); in ___alloc_bootmem() [all …]
|
D | bootmem.c | 520 unsigned long goal, unsigned long limit) in alloc_bootmem_bdata() argument 527 align, goal, limit); in alloc_bootmem_bdata() 531 BUG_ON(limit && goal + size > limit); in alloc_bootmem_bdata() 539 goal >>= PAGE_SHIFT; in alloc_bootmem_bdata() 549 if (goal && min < goal && goal < max) in alloc_bootmem_bdata() 550 start = ALIGN(goal, step); in alloc_bootmem_bdata() 627 unsigned long goal, in alloc_bootmem_core() argument 637 if (goal && bdata->node_low_pfn <= PFN_DOWN(goal)) in alloc_bootmem_core() 642 region = alloc_bootmem_bdata(bdata, size, align, goal, limit); in alloc_bootmem_core() 652 unsigned long goal, in ___alloc_bootmem_nopanic() argument [all …]
|
D | sparse.c | 292 unsigned long goal, limit; in sparse_early_usemaps_alloc_pgdat_section() local 305 goal = __pa(pgdat) & (PAGE_SECTION_MASK << PAGE_SHIFT); in sparse_early_usemaps_alloc_pgdat_section() 306 limit = goal + (1UL << PA_SECTION_SHIFT); in sparse_early_usemaps_alloc_pgdat_section() 307 nid = early_pfn_to_nid(goal >> PAGE_SHIFT); in sparse_early_usemaps_alloc_pgdat_section() 310 SMP_CACHE_BYTES, goal, limit, in sparse_early_usemaps_alloc_pgdat_section()
|
D | sparse-vmemmap.c | 43 unsigned long goal) in __earlyonly_bootmem_alloc() argument 45 return memblock_virt_alloc_try_nid_raw(size, align, goal, in __earlyonly_bootmem_alloc()
|
/Linux-v4.19/fs/ocfs2/ |
D | reservations.c | 367 ocfs2_find_resv_lhs(struct ocfs2_reservation_map *resmap, unsigned int goal) in ocfs2_find_resv_lhs() argument 382 if (resv->r_start <= goal && ocfs2_resv_end(resv) >= goal) in ocfs2_find_resv_lhs() 386 if (resv->r_start > goal) { in ocfs2_find_resv_lhs() 472 unsigned int goal, unsigned int wanted) in __ocfs2_resv_find_window() argument 490 goal, wanted, RB_EMPTY_ROOT(root)); in __ocfs2_resv_find_window() 499 clen = ocfs2_resmap_find_free_bits(resmap, wanted, goal, in __ocfs2_resv_find_window() 500 resmap->m_bitmap_len - goal, in __ocfs2_resv_find_window() 507 BUG_ON(goal == 0 && clen == 0); in __ocfs2_resv_find_window() 519 prev_resv = ocfs2_find_resv_lhs(resmap, goal); in __ocfs2_resv_find_window() 545 if (next_resv->r_start <= goal) { in __ocfs2_resv_find_window() [all …]
|
/Linux-v4.19/fs/ufs/ |
D | balloc.c | 345 u64 goal, unsigned count, int *err, in ufs_new_fragments() argument 356 (unsigned long long)goal, count); in ufs_new_fragments() 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() 423 result = ufs_alloc_fragments (inode, cgno, goal, count, err); in ufs_new_fragments() 468 result = ufs_alloc_fragments (inode, cgno, goal, request, err); in ufs_new_fragments() 588 u64 goal, unsigned count, int *err) in ufs_alloc_fragments() argument 598 inode->i_ino, cgno, (unsigned long long)goal, count); in ufs_alloc_fragments() [all …]
|
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-v4.19/include/linux/ |
D | bootmem.h | 96 unsigned long goal); 99 unsigned long goal) __malloc; 103 unsigned long goal) __malloc; 107 unsigned long goal) __malloc; 111 unsigned long goal) __malloc; 115 unsigned long goal, 119 unsigned long goal) __malloc; 122 unsigned long goal) __malloc; 126 unsigned long goal) __malloc;
|
/Linux-v4.19/fs/udf/ |
D | balloc.c | 223 uint32_t goal, int *err) in udf_bitmap_new_block() argument 238 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_bitmap_new_block() 239 goal = 0; in udf_bitmap_new_block() 242 block = goal + (sizeof(struct spaceBitmapDesc) << 3); in udf_bitmap_new_block() 551 uint32_t goal, int *err) in udf_table_new_block() argument 573 if (goal >= sbi->s_partmaps[partition].s_partition_len) in udf_table_new_block() 574 goal = 0; in udf_table_new_block() 587 if (goal >= eloc.logicalBlockNum) { in udf_table_new_block() 588 if (goal < eloc.logicalBlockNum + in udf_table_new_block() 592 nspread = goal - eloc.logicalBlockNum - in udf_table_new_block() [all …]
|
/Linux-v4.19/fs/affs/ |
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-v4.19/fs/hfs/ |
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()
|
D | extent.c | 388 u32 start, len, goal; in hfs_extend_file() local 393 goal = hfs_ext_lastblock(HFS_I(inode)->first_extents); in hfs_extend_file() 398 goal = hfs_ext_lastblock(HFS_I(inode)->cached_extents); in hfs_extend_file() 402 start = hfs_vbm_search_free(sb, goal, &len); in hfs_extend_file()
|
/Linux-v4.19/arch/x86/kernel/ |
D | setup_percpu.c | 103 const unsigned long goal = __pa(MAX_DMA_ADDRESS); in pcpu_alloc_bootmem() local 109 ptr = __alloc_bootmem_nopanic(size, align, goal); in pcpu_alloc_bootmem() 116 size, align, goal); in pcpu_alloc_bootmem() 122 return __alloc_bootmem_nopanic(size, align, goal); in pcpu_alloc_bootmem()
|
/Linux-v4.19/drivers/scsi/aic7xxx/ |
D | aic79xx_osm.c | 1707 if (tinfo->curr.period != tinfo->goal.period in ahd_send_async() 1708 || tinfo->curr.width != tinfo->goal.width in ahd_send_async() 1709 || tinfo->curr.offset != tinfo->goal.offset in ahd_send_async() 1710 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) in ahd_send_async() 2411 unsigned int ppr_options = tinfo->goal.ppr_options; in ahd_linux_set_period() 2414 unsigned long offset = tinfo->goal.offset; in ahd_linux_set_period() 2477 period = tinfo->goal.period; in ahd_linux_set_offset() 2478 ppr_options = tinfo->goal.ppr_options; in ahd_linux_set_offset() 2499 unsigned int ppr_options = tinfo->goal.ppr_options in ahd_linux_set_dt() 2501 unsigned int period = tinfo->goal.period; in ahd_linux_set_dt() [all …]
|
D | aic7xxx_osm.c | 1631 if (tinfo->curr.period != tinfo->goal.period in ahc_send_async() 1632 || tinfo->curr.width != tinfo->goal.width in ahc_send_async() 1633 || tinfo->curr.offset != tinfo->goal.offset in ahc_send_async() 1634 || tinfo->curr.ppr_options != tinfo->goal.ppr_options) in ahc_send_async() 2356 unsigned int ppr_options = tinfo->goal.ppr_options; in ahc_linux_set_period() 2358 unsigned long offset = tinfo->goal.offset; in ahc_linux_set_period() 2409 period = tinfo->goal.period; in ahc_linux_set_offset() 2410 ppr_options = tinfo->goal.ppr_options; in ahc_linux_set_offset() 2428 unsigned int ppr_options = tinfo->goal.ppr_options in ahc_linux_set_dt() 2430 unsigned int period = tinfo->goal.period; in ahc_linux_set_dt() [all …]
|
/Linux-v4.19/fs/ext2/ |
D | balloc.c | 293 search_reserve_window(struct rb_root *root, ext2_fsblk_t goal) in search_reserve_window() argument 304 if (goal < rsv->rsv_start) in search_reserve_window() 306 else if (goal > rsv->rsv_end) in search_reserve_window() 317 if (rsv->rsv_start > goal) { in search_reserve_window() 1233 ext2_fsblk_t ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal, in ext2_new_blocks() argument 1271 ext2_debug("goal=%lu.\n", goal); in ext2_new_blocks() 1295 if (goal < le32_to_cpu(es->s_first_data_block) || in ext2_new_blocks() 1296 goal >= le32_to_cpu(es->s_blocks_count)) in ext2_new_blocks() 1297 goal = le32_to_cpu(es->s_first_data_block); in ext2_new_blocks() 1298 group_no = (goal - le32_to_cpu(es->s_first_data_block)) / in ext2_new_blocks() [all …]
|
/Linux-v4.19/net/netfilter/ipvs/ |
D | ip_vs_lblc.c | 304 int goal; in ip_vs_lblc_check_expire() local 321 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblc_check_expire() 322 if (goal > tbl->max_size/2) in ip_vs_lblc_check_expire() 323 goal = tbl->max_size/2; in ip_vs_lblc_check_expire() 335 goal--; in ip_vs_lblc_check_expire() 338 if (goal <= 0) in ip_vs_lblc_check_expire()
|
D | ip_vs_lblcr.c | 468 int goal; in ip_vs_lblcr_check_expire() local 485 goal = (atomic_read(&tbl->entries) - tbl->max_size)*4/3; in ip_vs_lblcr_check_expire() 486 if (goal > tbl->max_size/2) in ip_vs_lblcr_check_expire() 487 goal = tbl->max_size/2; in ip_vs_lblcr_check_expire() 499 goal--; in ip_vs_lblcr_check_expire() 502 if (goal <= 0) in ip_vs_lblcr_check_expire()
|
/Linux-v4.19/drivers/scsi/sym53c8xx_2/ |
D | sym_hipd.c | 1365 struct sym_trans *goal) argument 1368 goal->width = 0; 1371 goal->iu = 0; 1372 goal->dt = 0; 1373 goal->qas = 0; 1374 goal->offset = 0; 1380 goal->dt = 1; 1382 if (goal->offset == 0) 1383 goal->dt = 0; 1385 goal->dt = 0; [all …]
|
/Linux-v4.19/fs/hfsplus/ |
D | extents.c | 439 u32 start, len, goal; in hfsplus_file_extend() local 453 goal = hfsplus_ext_lastblock(hip->first_extents); in hfsplus_file_extend() 458 goal = hfsplus_ext_lastblock(hip->cached_extents); in hfsplus_file_extend() 462 start = hfsplus_block_allocate(sb, sbi->total_blocks, goal, &len); in hfsplus_file_extend() 464 start = hfsplus_block_allocate(sb, goal, 0, &len); in hfsplus_file_extend() 465 if (start >= goal) { in hfsplus_file_extend()
|
/Linux-v4.19/fs/gfs2/ |
D | rgrp.c | 228 u32 goal, u8 state) in gfs2_bitfit() argument 230 u32 spoint = (goal << 1) & ((8*sizeof(u64)) - 1); in gfs2_bitfit() 231 const __le64 *ptr = ((__le64 *)buf) + (goal >> 5); in gfs2_bitfit() 1119 u32 i, goal, count = 0; in count_unlinked() local 1122 goal = 0; in count_unlinked() 1125 while (goal < bi->bi_len * GFS2_NBBY) { in count_unlinked() 1126 goal = gfs2_bitfit(buffer, bi->bi_len, goal, in count_unlinked() 1128 if (goal == BFITNOENT) in count_unlinked() 1131 goal++; in count_unlinked() 1534 u64 goal; in rg_mblk_search() local [all …]
|
/Linux-v4.19/drivers/tty/ |
D | tty_buffer.c | 311 int goal = min_t(size_t, size - copied, TTY_BUFFER_PAGE); in tty_insert_flip_string_fixed_flag() local 313 int space = __tty_buffer_request_room(port, goal, flags); in tty_insert_flip_string_fixed_flag() 347 int goal = min_t(size_t, size - copied, TTY_BUFFER_PAGE); in tty_insert_flip_string_flags() local 348 int space = tty_buffer_request_room(port, goal); in tty_insert_flip_string_flags()
|
/Linux-v4.19/fs/ext4/ |
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() 337 ar->goal = new_blocks[i] = ext4_new_meta_blocks(handle, in ext4_alloc_branch() 338 ar->inode, ar->goal, in ext4_alloc_branch() 604 ar.goal = ext4_find_goal(inode, map->m_lblk, partial); in ext4_ind_map_blocks()
|
D | ialloc.c | 744 __u32 goal, uid_t *owner, __u32 i_flags, in __ext4_new_inode() argument 860 if (!goal) in __ext4_new_inode() 861 goal = sbi->s_inode_goal; in __ext4_new_inode() 863 if (goal && goal <= le32_to_cpu(sbi->s_es->s_inodes_count)) { in __ext4_new_inode() 864 group = (goal - 1) / EXT4_INODES_PER_GROUP(sb); in __ext4_new_inode() 865 ino = (goal - 1) % EXT4_INODES_PER_GROUP(sb); in __ext4_new_inode()
|
/Linux-v4.19/net/rds/ |
D | ib_fmr.c | 212 unsigned long *unpinned, unsigned int goal) in rds_ib_unreg_fmr() argument 235 if (freed < goal || in rds_ib_unreg_fmr()
|