Home
last modified time | relevance | path

Searched refs:in_range (Results 1 – 23 of 23) sorted by relevance

/Linux-v5.4/arch/arm/mm/
Dpageattr.c29 static bool in_range(unsigned long start, unsigned long size, in in_range() function
50 if (!in_range(start, size, MODULES_VADDR, MODULES_END) && in change_memory_common()
51 !in_range(start, size, VMALLOC_START, VMALLOC_END)) in change_memory_common()
/Linux-v5.4/drivers/platform/chrome/
Dcros_ec_lpc.c93 int in_range = cros_ec_lpc_mec_in_range(offset, length); in cros_ec_lpc_mec_read_bytes() local
95 if (in_range < 0) in cros_ec_lpc_mec_read_bytes()
98 return in_range ? in cros_ec_lpc_mec_read_bytes()
112 int in_range = cros_ec_lpc_mec_in_range(offset, length); in cros_ec_lpc_mec_write_bytes() local
114 if (in_range < 0) in cros_ec_lpc_mec_write_bytes()
117 return in_range ? in cros_ec_lpc_mec_write_bytes()
/Linux-v5.4/drivers/s390/cio/
Dblacklist.c281 int in_range; member
330 if (!iter->in_range) { in cio_ignore_proc_seq_show()
338 iter->in_range = 1; in cio_ignore_proc_seq_show()
345 iter->in_range = 0; in cio_ignore_proc_seq_show()
/Linux-v5.4/drivers/gpu/drm/arm/display/komeda/
Dkomeda_pipeline_state.c307 if (!in_range(&layer->hsize_in, src_w)) { in komeda_layer_check_cfg()
312 if (!in_range(&layer->vsize_in, src_h)) { in komeda_layer_check_cfg()
438 if (!in_range(&scaler->hsize, hsize_in) || in komeda_scaler_check_cfg()
439 !in_range(&scaler->hsize, hsize_out)) { in komeda_scaler_check_cfg()
444 if (!in_range(&scaler->vsize, vsize_in) || in komeda_scaler_check_cfg()
445 !in_range(&scaler->vsize, vsize_out)) { in komeda_scaler_check_cfg()
560 if (!in_range(&splitter->hsize, dflow->in_w)) { in komeda_splitter_validate()
566 if (!in_range(&splitter->vsize, dflow->in_h)) { in komeda_splitter_validate()
610 if (!in_range(&merger->hsize_merged, output->out_w)) { in komeda_merger_validate()
616 if (!in_range(&merger->vsize_merged, output->out_h)) { in komeda_merger_validate()
[all …]
/Linux-v5.4/lib/
Dlogic_pio.c23 #define in_range(b, first, len) ((b) >= (first) && (b) < (first) + (len)) macro
146 if (in_range(pio, range->io_start, range->size)) { in find_io_range()
213 if (in_range(addr, range->hw_start, range->size)) { in logic_pio_trans_cpuaddr()
/Linux-v5.4/fs/ext2/
Dballoc.c39 #define in_range(b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) macro
525 if (in_range (le32_to_cpu(desc->bg_block_bitmap), block, count) || in ext2_free_blocks()
526 in_range (le32_to_cpu(desc->bg_inode_bitmap), block, count) || in ext2_free_blocks()
527 in_range (block, le32_to_cpu(desc->bg_inode_table), in ext2_free_blocks()
529 in_range (block + count - 1, le32_to_cpu(desc->bg_inode_table), in ext2_free_blocks()
1392 if (in_range(le32_to_cpu(gdp->bg_block_bitmap), ret_block, num) || in ext2_new_blocks()
1393 in_range(le32_to_cpu(gdp->bg_inode_bitmap), ret_block, num) || in ext2_new_blocks()
1394 in_range(ret_block, le32_to_cpu(gdp->bg_inode_table), in ext2_new_blocks()
1396 in_range(ret_block + num - 1, le32_to_cpu(gdp->bg_inode_table), in ext2_new_blocks()
/Linux-v5.4/drivers/pinctrl/sh-pfc/
Dcore.c339 int in_range; in sh_pfc_config_mux() local
353 in_range = sh_pfc_enum_in_range(enum_id, &pfc->info->function); in sh_pfc_config_mux()
354 if (!in_range) { in sh_pfc_config_mux()
359 in_range = 1; in sh_pfc_config_mux()
364 in_range = sh_pfc_enum_in_range(enum_id, range); in sh_pfc_config_mux()
371 if (in_range && enum_id == range->force) in sh_pfc_config_mux()
377 if (!in_range) in sh_pfc_config_mux()
/Linux-v5.4/fs/btrfs/
Dmisc.h10 #define in_range(b, first, len) ((b) >= (first) && (b) < (first) + (len)) macro
Dextent-tree.c1261 if (!in_range(sb_start, start, bytes_left) && in btrfs_issue_discard()
1262 !in_range(sb_end, start, bytes_left) && in btrfs_issue_discard()
1263 !in_range(start, sb_start, BTRFS_SUPER_INFO_SIZE)) in btrfs_issue_discard()
Dvolumes.c1514 if (in_range(physical_start, *start, len) || in contains_pending_extent()
1515 in_range(*start, physical_start, in contains_pending_extent()
Dctree.h3411 #define in_range(b, first, len) ((b) >= (first) && (b) < (first) + (len)) macro
Dextent_io.c1608 if (in_range(start, state->start, state->end - state->start + 1)) { in find_first_clear_extent_bit()
/Linux-v5.4/drivers/gpu/drm/arm/display/include/
Dmalidp_utils.h41 static inline bool in_range(struct malidp_range *rg, u32 v) in in_range() function
/Linux-v5.4/net/tipc/
Dcore.h189 static inline int in_range(u16 val, u16 min, u16 max) in in_range() function
Dlink.c1988 if (in_range(peers_tol, TIPC_MIN_LINK_TOL, TIPC_MAX_LINK_TOL)) { in tipc_link_proto_rcv()
1993 if (in_range(peers_prio, l->priority + 1, TIPC_MAX_LINK_PRI)) in tipc_link_proto_rcv()
2031 if (in_range(peers_tol, TIPC_MIN_LINK_TOL, TIPC_MAX_LINK_TOL)) { in tipc_link_proto_rcv()
2037 in_range(peers_prio, 1, TIPC_MAX_LINK_PRI)) { in tipc_link_proto_rcv()
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_main.c2134 static int in_range(int val, int lo, int hi) in in_range() function
2165 if (!in_range(t.intr_lat, 0, M_NEWTIMER) || in cxgb_extension_ioctl()
2166 !in_range(t.cong_thres, 0, 255) || in cxgb_extension_ioctl()
2167 !in_range(t.txq_size[0], MIN_TXQ_ENTRIES, in cxgb_extension_ioctl()
2169 !in_range(t.txq_size[1], MIN_TXQ_ENTRIES, in cxgb_extension_ioctl()
2171 !in_range(t.txq_size[2], MIN_CTRL_TXQ_ENTRIES, in cxgb_extension_ioctl()
2173 !in_range(t.fl_size[0], MIN_FL_ENTRIES, in cxgb_extension_ioctl()
2175 !in_range(t.fl_size[1], MIN_FL_ENTRIES, in cxgb_extension_ioctl()
2177 !in_range(t.rspq_size, MIN_RSPQ_ENTRIES, in cxgb_extension_ioctl()
/Linux-v5.4/net/netfilter/
Dnf_nat_core.c265 static int in_range(const struct nf_conntrack_tuple *tuple, in in_range() function
314 if (in_range(result, range)) in find_appropriate_src()
546 if (in_range(orig_tuple, range)) { in get_unique_tuple()
/Linux-v5.4/fs/ext4/
Dmballoc.c4821 if (in_range(ext4_block_bitmap(sb, gdp), block, count) || in ext4_free_blocks()
4822 in_range(ext4_inode_bitmap(sb, gdp), block, count) || in ext4_free_blocks()
4823 in_range(block, ext4_inode_table(sb, gdp), in ext4_free_blocks()
4825 in_range(block + count - 1, ext4_inode_table(sb, gdp), in ext4_free_blocks()
5012 if (in_range(ext4_block_bitmap(sb, desc), block, count) || in ext4_group_add_blocks()
5013 in_range(ext4_inode_bitmap(sb, desc), block, count) || in ext4_group_add_blocks()
5014 in_range(block, ext4_inode_table(sb, desc), sbi->s_itb_per_group) || in ext4_group_add_blocks()
5015 in_range(block + count - 1, ext4_inode_table(sb, desc), in ext4_group_add_blocks()
Dextents_status.c274 if (in_range(lblk, es1->es_lblk, es1->es_len)) { in __es_find_extent_range()
609 if (in_range(es->es_lblk, ee_block, ee_len)) { in ext4_es_insert_extent_ext_check()
921 if (in_range(lblk, es1->es_lblk, es1->es_len)) { in ext4_es_lookup_extent()
Dextents.c3569 BUG_ON(!in_range(map->m_lblk, ee_block, ee_len)); in ext4_ext_convert_to_initialized()
4318 if (in_range(map->m_lblk, ee_block, ee_len)) { in ext4_ext_map_blocks()
5829 if (!in_range(lblk1, e1_blk, e1_len) || in ext4_swap_extents()
5830 !in_range(lblk2, e2_blk, e2_len)) { in ext4_swap_extents()
Dext4.h3349 #define in_range(b, first, len) ((b) >= (first) && (b) <= (first) + (len) - 1) macro
/Linux-v5.4/drivers/xen/
Dgntdev.c478 static bool in_range(struct gntdev_grant_map *map, in in_range() function
498 if (!in_range(map, start, end)) in unmap_if_in_range()
/Linux-v5.4/fs/ufs/
Dutil.h18 #define in_range(b,first,len) ((b)>=(first)&&(b)<(first)+(len)) macro