/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | umem_odp.c | 111 * Implicit ODP umems do not have a VA range and do not have any page lists. 335 * Maps the range passed in the argument to DMA addresses. 349 * range. 350 * @fault: is faulting required for the given range 361 struct hmm_range range = {}; variable 384 range.notifier = &umem_odp->notifier; 385 range.start = ALIGN_DOWN(user_virt, 1UL << page_shift); 386 range.end = ALIGN(user_virt + bcnt, 1UL << page_shift); 387 pfn_start_idx = (range.start - ib_umem_start(umem_odp)) >> PAGE_SHIFT; 388 num_pfns = (range [all...] |
/kernel/linux/linux-5.10/drivers/staging/comedi/ |
H A D | comedidev.h | 71 * @range_table: If non-NULL, this points to a COMEDI range table for the 72 * subdevice. If NULL, the range table is channel-specific. (Initialized 73 * by the low-level driver, will be set to an "invalid" range table during 76 * @range_table_list: If the COMEDI range table is channel-specific, this 77 * points to an array of pointers to COMEDI range tables indexed by 128 * range 48 to 255. This is used to allow the COMEDI device to be opened 602 /* range stuff */ 625 * struct comedi_lrange - Describes a COMEDI range table 626 * @length: Number of entries in the range table. 627 * @range 637 struct comedi_krange range[]; global() member 655 comedi_range_is_bipolar(struct comedi_subdevice *s, unsigned int range) comedi_range_is_bipolar() argument 676 comedi_range_is_unipolar(struct comedi_subdevice *s, unsigned int range) comedi_range_is_unipolar() argument 697 comedi_range_is_external(struct comedi_subdevice *s, unsigned int range) comedi_range_is_external() argument 719 comedi_chan_range_is_bipolar(struct comedi_subdevice *s, unsigned int chan, unsigned int range) comedi_chan_range_is_bipolar() argument 742 comedi_chan_range_is_unipolar(struct comedi_subdevice *s, unsigned int chan, unsigned int range) comedi_chan_range_is_unipolar() argument 765 comedi_chan_range_is_external(struct comedi_subdevice *s, unsigned int chan, unsigned int range) comedi_chan_range_is_external() argument [all...] |
/kernel/linux/linux-6.6/include/linux/comedi/ |
H A D | comedidev.h | 70 * @range_table: If non-NULL, this points to a COMEDI range table for the 71 * subdevice. If NULL, the range table is channel-specific. (Initialized 72 * by the low-level driver, will be set to an "invalid" range table during 75 * @range_table_list: If the COMEDI range table is channel-specific, this 76 * points to an array of pointers to COMEDI range tables indexed by 127 * range 48 to 255. This is used to allow the COMEDI device to be opened 601 /* range stuff */ 624 * struct comedi_lrange - Describes a COMEDI range table 625 * @length: Number of entries in the range table. 626 * @range 636 struct comedi_krange range[]; global() member 654 comedi_range_is_bipolar(struct comedi_subdevice *s, unsigned int range) comedi_range_is_bipolar() argument 675 comedi_range_is_unipolar(struct comedi_subdevice *s, unsigned int range) comedi_range_is_unipolar() argument 696 comedi_range_is_external(struct comedi_subdevice *s, unsigned int range) comedi_range_is_external() argument 718 comedi_chan_range_is_bipolar(struct comedi_subdevice *s, unsigned int chan, unsigned int range) comedi_chan_range_is_bipolar() argument 741 comedi_chan_range_is_unipolar(struct comedi_subdevice *s, unsigned int chan, unsigned int range) comedi_chan_range_is_unipolar() argument 764 comedi_chan_range_is_external(struct comedi_subdevice *s, unsigned int chan, unsigned int range) comedi_chan_range_is_external() argument [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | umem_odp.c | 109 * Implicit ODP umems do not have a VA range and do not have any page lists. 329 * Maps the range passed in the argument to DMA addresses. 343 * range. 344 * @fault: is faulting required for the given range 355 struct hmm_range range = {}; variable 378 range.notifier = &umem_odp->notifier; 379 range.start = ALIGN_DOWN(user_virt, 1UL << page_shift); 380 range.end = ALIGN(user_virt + bcnt, 1UL << page_shift); 381 pfn_start_idx = (range.start - ib_umem_start(umem_odp)) >> PAGE_SHIFT; 382 num_pfns = (range [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/fw/ |
H A D | dbg.c | 539 /* The range includes both boundaries */ in iwl_dump_prph() 550 /* our range is inclusive, hence + 4 */ in iwl_dump_prph() 610 /* The range includes both boundaries */ in iwl_fw_get_prph_len() 1030 struct iwl_fw_ini_error_dump_range *range = range_ptr; in iwl_dump_ini_prph_mac_iter() local 1031 __le32 *val = range->data; in iwl_dump_ini_prph_mac_iter() 1037 range->internal_base_addr = cpu_to_le32(addr); in iwl_dump_ini_prph_mac_iter() 1038 range->range_data_size = reg->dev_addr.size; in iwl_dump_ini_prph_mac_iter() 1046 return sizeof(*range) + le32_to_cpu(range->range_data_size); in iwl_dump_ini_prph_mac_iter() 1055 struct iwl_fw_ini_error_dump_range *range in iwl_dump_ini_prph_phy_iter() local 1105 struct iwl_fw_ini_error_dump_range *range = range_ptr; iwl_dump_ini_csr_iter() local 1125 struct iwl_fw_ini_error_dump_range *range = range_ptr; iwl_dump_ini_config_iter() local 1156 struct iwl_fw_ini_error_dump_range *range = range_ptr; iwl_dump_ini_dev_mem_iter() local 1178 struct iwl_fw_ini_error_dump_range *range = range_ptr; _iwl_dump_ini_paging_iter() local 1197 struct iwl_fw_ini_error_dump_range *range; iwl_dump_ini_paging_iter() local 1223 struct iwl_fw_ini_error_dump_range *range = range_ptr; iwl_dump_ini_mon_dram_iter() local 1242 struct iwl_fw_ini_error_dump_range *range = range_ptr; iwl_dump_ini_mon_smem_iter() local 1310 struct iwl_fw_ini_error_dump_range *range = range_ptr; iwl_dump_ini_txf_iter() local 1445 struct iwl_fw_ini_error_dump_range *range = range_ptr; iwl_dump_ini_rxf_iter() local 1513 struct iwl_fw_ini_error_dump_range *range = range_ptr; iwl_dump_ini_err_table_iter() local 1534 struct iwl_fw_ini_error_dump_range *range = range_ptr; iwl_dump_ini_special_mem_iter() local 1552 struct iwl_fw_ini_error_dump_range *range = range_ptr; iwl_dump_ini_dbgi_sram_iter() local 1579 struct iwl_fw_ini_error_dump_range *range = range_ptr; iwl_dump_ini_fw_pkt_iter() local 1601 struct iwl_fw_ini_error_dump_range *range = range_ptr; iwl_dump_ini_imr_iter() local 2102 u8 *range; iwl_dump_ini_mem() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dsc/ |
H A D | dc_dsc.c | 152 struct dc_dsc_bw_range *range); 379 * we'll accept all and get it into range. This also makes the above check against 0 redundant, in dc_dsc_parse_dsc_dpcd() 433 /* If DSC is possbile, get DSC bandwidth range based on [min_bpp, max_bpp] target bitrate range and 435 * If DSC is not possible, leave '*range' untouched. 445 struct dc_dsc_bw_range *range) in dc_dsc_compute_bandwidth_range() 468 config.num_slices_h, &dsc_common_caps, timing, link_encoding, range); in dc_dsc_compute_bandwidth_range() 593 /* Decide DSC bandwidth range based on signal, timing, specs specific and input min and max 595 * The range output includes decided min/max target bpp, the respective bandwidth requirements 605 struct dc_dsc_bw_range *range) in decide_dsc_bandwidth_range() 437 dc_dsc_compute_bandwidth_range( const struct display_stream_compressor *dsc, uint32_t dsc_min_slice_height_override, uint32_t min_bpp_x16, uint32_t max_bpp_x16, const struct dsc_dec_dpcd_caps *dsc_sink_caps, const struct dc_crtc_timing *timing, const enum dc_link_encoding_format link_encoding, struct dc_dsc_bw_range *range) dc_dsc_compute_bandwidth_range() argument 598 decide_dsc_bandwidth_range( const uint32_t min_bpp_x16, const uint32_t max_bpp_x16, const uint32_t num_slices_h, const struct dsc_enc_caps *dsc_caps, const struct dc_crtc_timing *timing, const enum dc_link_encoding_format link_encoding, struct dc_dsc_bw_range *range) decide_dsc_bandwidth_range() argument 663 struct dc_dsc_bw_range range; decide_dsc_target_bpp_x16() local [all...] |
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
H A D | cpu_mcf.h | 72 static inline int ctr_stcctm(enum cpumf_ctr_set set, u64 range, u64 *dest) in ctr_stcctm() argument 76 return stcctm(BASIC, range, dest); in ctr_stcctm() 78 return stcctm(PROBLEM_STATE, range, dest); in ctr_stcctm() 80 return stcctm(CRYPTO_ACTIVITY, range, dest); in ctr_stcctm() 82 return stcctm(EXTENDED, range, dest); in ctr_stcctm() 84 return stcctm(MT_DIAG_CLEARING, range, dest); in ctr_stcctm()
|
/kernel/linux/linux-5.10/fs/jfs/ |
H A D | jfs_discard.c | 20 * FUNCTION: TRIM the specified block range on device, if supported 59 * range - the range, given by user space 65 int jfs_ioc_trim(struct inode *ip, struct fstrim_range *range) in jfs_ioc_trim() argument 80 start = range->start >> sb->s_blocksize_bits; in jfs_ioc_trim() 81 end = start + (range->len >> sb->s_blocksize_bits) - 1; in jfs_ioc_trim() 82 minlen = range->minlen >> sb->s_blocksize_bits; in jfs_ioc_trim() 88 range->len < sb->s_blocksize) in jfs_ioc_trim() 95 * we trim all ag's within the range in jfs_ioc_trim() 103 range in jfs_ioc_trim() [all...] |
/kernel/linux/linux-6.6/fs/jfs/ |
H A D | jfs_discard.c | 20 * FUNCTION: TRIM the specified block range on device, if supported 59 * range - the range, given by user space 65 int jfs_ioc_trim(struct inode *ip, struct fstrim_range *range) in jfs_ioc_trim() argument 80 start = range->start >> sb->s_blocksize_bits; in jfs_ioc_trim() 81 end = start + (range->len >> sb->s_blocksize_bits) - 1; in jfs_ioc_trim() 82 minlen = range->minlen >> sb->s_blocksize_bits; in jfs_ioc_trim() 88 range->len < sb->s_blocksize) in jfs_ioc_trim() 95 * we trim all ag's within the range in jfs_ioc_trim() 103 range in jfs_ioc_trim() [all...] |
/kernel/liteos_a/syscall/ |
H A D | syscall_pub.c | 39 if (ptr + len <= region->range.base + region->range.size) {
in CheckRegion() 42 return CheckRegion(space, region->range.base + region->range.size,
in CheckRegion() 43 (ptr + len) - (region->range.base + region->range.size));
in CheckRegion()
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
H A D | isa-bridge.c | 79 const struct isa_range *range; in pci_process_ISA_OF_ranges() local 85 range = of_get_property(isa_node, "ranges", &rlen); in pci_process_ISA_OF_ranges() 86 if (range == NULL || (rlen < sizeof(struct isa_range))) in pci_process_ISA_OF_ranges() 95 * cell 5: the size of the range in pci_process_ISA_OF_ranges() 97 if ((range->isa_addr.a_hi & ISA_SPACE_MASK) != ISA_SPACE_IO) { in pci_process_ISA_OF_ranges() 98 range++; in pci_process_ISA_OF_ranges() 103 if ((range->isa_addr.a_hi & ISA_SPACE_MASK) != ISA_SPACE_IO) in pci_process_ISA_OF_ranges() 106 isa_addr = range->isa_addr.a_lo; in pci_process_ISA_OF_ranges() 107 pci_addr = (unsigned long) range->pci_addr.a_mid << 32 | in pci_process_ISA_OF_ranges() 108 range in pci_process_ISA_OF_ranges() [all...] |
/kernel/linux/linux-5.10/drivers/soc/ti/ |
H A D | knav_qmss.h | 240 * @range: range info 255 struct knav_range_info *range; member 311 int (*init_range)(struct knav_range_info *range); 312 int (*free_range)(struct knav_range_info *range); 313 int (*init_queue)(struct knav_range_info *range, 315 int (*open_queue)(struct knav_range_info *range, 317 int (*close_queue)(struct knav_range_info *range, 319 int (*set_notify)(struct knav_range_info *range, 355 #define for_each_queue_range(kdev, range) \ [all...] |
/kernel/linux/linux-6.6/drivers/soc/ti/ |
H A D | knav_qmss.h | 240 * @range: range info 255 struct knav_range_info *range; member 311 int (*init_range)(struct knav_range_info *range); 312 int (*free_range)(struct knav_range_info *range); 313 int (*init_queue)(struct knav_range_info *range, 315 int (*open_queue)(struct knav_range_info *range, 317 int (*close_queue)(struct knav_range_info *range, 319 int (*set_notify)(struct knav_range_info *range, 355 #define for_each_queue_range(kdev, range) \ [all...] |
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
H A D | nf_nat_h323.c | 397 struct nf_nat_range2 range; in ip_nat_q931_expect() local 408 range.flags = NF_NAT_RANGE_MAP_IPS; in ip_nat_q931_expect() 409 range.min_addr = range.max_addr = in ip_nat_q931_expect() 411 nf_nat_setup_info(new, &range, NF_NAT_MANIP_SRC); in ip_nat_q931_expect() 414 range.flags = (NF_NAT_RANGE_MAP_IPS | NF_NAT_RANGE_PROTO_SPECIFIED); in ip_nat_q931_expect() 415 range.min_proto = range.max_proto = this->saved_proto; in ip_nat_q931_expect() 416 range.min_addr = range in ip_nat_q931_expect() 499 struct nf_nat_range2 range; ip_nat_callforwarding_expect() local [all...] |
/kernel/linux/linux-6.6/net/ipv4/netfilter/ |
H A D | nf_nat_h323.c | 371 struct nf_nat_range2 range; in ip_nat_q931_expect() local 382 range.flags = NF_NAT_RANGE_MAP_IPS; in ip_nat_q931_expect() 383 range.min_addr = range.max_addr = in ip_nat_q931_expect() 385 nf_nat_setup_info(new, &range, NF_NAT_MANIP_SRC); in ip_nat_q931_expect() 388 range.flags = (NF_NAT_RANGE_MAP_IPS | NF_NAT_RANGE_PROTO_SPECIFIED); in ip_nat_q931_expect() 389 range.min_proto = range.max_proto = this->saved_proto; in ip_nat_q931_expect() 390 range.min_addr = range in ip_nat_q931_expect() 460 struct nf_nat_range2 range; ip_nat_callforwarding_expect() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | of_address.h | 14 const __be32 *range; member 34 #define for_each_of_pci_range(parser, range) \ 35 for (; of_pci_range_parser_one(parser, range);) 63 struct of_pci_range *range); 98 struct of_pci_range *range) in of_pci_range_parser_one() 132 extern int of_pci_range_to_resource(struct of_pci_range *range, 147 static inline int of_pci_range_to_resource(struct of_pci_range *range, in of_pci_range_to_resource() argument 96 of_pci_range_parser_one( struct of_pci_range_parser *parser, struct of_pci_range *range) of_pci_range_parser_one() argument
|
/kernel/linux/linux-6.6/drivers/dax/ |
H A D | pmem.c | 12 struct range range; in __dax_pmem_probe() local 52 /* adjust the dax_region range to the start of data */ in __dax_pmem_probe() 53 range = pgmap.range; in __dax_pmem_probe() 54 range.start += offset; in __dax_pmem_probe() 55 dax_region = alloc_dax_region(dev, region_id, &range, in __dax_pmem_probe() 65 .size = range_len(&range), in __dax_pmem_probe()
|
H A D | device.c | 61 struct range *range = &dax_range->range; in dax_pgoff_to_phys() local 65 pgoff_end = dax_range->pgoff + PHYS_PFN(range_len(range)) - 1; in dax_pgoff_to_phys() 68 phys = PFN_PHYS(pgoff - dax_range->pgoff) + range->start; in dax_pgoff_to_phys() 69 if (phys + size - 1 <= range->end) in dax_pgoff_to_phys() 406 "static pgmap / multi-range device conflict\n"); in dev_dax_probe() 428 struct range *range = &dev_dax->ranges[i].range; in dev_dax_probe() local 434 struct range *range = &dev_dax->ranges[i].range; dev_dax_probe() local [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nf_nat_ovs.c | 7 * range is only used for new, uninitialized NAT state. 12 const struct nf_nat_range2 *range, in nf_ct_nat_execute() 57 err = (range && range->flags & NF_NAT_RANGE_MAP_IPS) in nf_ct_nat_execute() 61 ? nf_nat_setup_info(ct, range, maniptype) in nf_ct_nat_execute() 87 const struct nf_nat_range2 *range, bool commit) in nf_ct_nat() 119 err = nf_ct_nat_execute(skb, ct, ctinfo, action, range, maniptype); in nf_ct_nat() 127 err = nf_ct_nat_execute(skb, ct, ctinfo, action, range, in nf_ct_nat() 10 nf_ct_nat_execute(struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, int *action, const struct nf_nat_range2 *range, enum nf_nat_manip_type maniptype) nf_ct_nat_execute() argument 85 nf_ct_nat(struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, int *action, const struct nf_nat_range2 *range, bool commit) nf_ct_nat() argument
|
/kernel/linux/linux-6.6/arch/powerpc/kernel/ |
H A D | isa-bridge.c | 63 struct of_range range; in process_ISA_OF_ranges() local 68 for_each_of_range(&parser, &range) { in process_ISA_OF_ranges() 69 if ((range.flags & ISA_SPACE_MASK) != ISA_SPACE_IO) in process_ISA_OF_ranges() 72 if (range.cpu_addr == OF_BAD_ADDR) { in process_ISA_OF_ranges() 78 if ((range.bus_addr & ~PAGE_MASK) || (range.cpu_addr & ~PAGE_MASK)) { in process_ISA_OF_ranges() 79 pr_warn("ISA: bridge %pOF has non aligned IO range\n", isa_node); in process_ISA_OF_ranges() 84 size = PAGE_ALIGN(range.size); in process_ISA_OF_ranges() 89 phb_io_base_phys = range.cpu_addr; in process_ISA_OF_ranges() 97 pr_err("no ISA IO ranges or unexpected isa range, mappin in process_ISA_OF_ranges() [all...] |
/kernel/linux/linux-6.6/io_uring/ |
H A D | filetable.c | 163 struct io_uring_file_index_range range; in io_register_file_alloc_range() local 166 if (copy_from_user(&range, arg, sizeof(range))) in io_register_file_alloc_range() 168 if (check_add_overflow(range.off, range.len, &end)) in io_register_file_alloc_range() 170 if (range.resv || end > ctx->nr_user_files) in io_register_file_alloc_range() 173 io_file_table_set_alloc_range(ctx, range.off, range.len); in io_register_file_alloc_range()
|
/kernel/linux/linux-5.10/drivers/dax/hmem/ |
H A D | hmem.c | 19 struct range range; in dax_hmem_probe() local 26 range.start = res->start; in dax_hmem_probe() 27 range.end = res->end; in dax_hmem_probe() 28 dax_region = alloc_dax_region(dev, pdev->id, &range, mri->target_node, in dax_hmem_probe()
|
/kernel/linux/linux-5.10/arch/sparc/mm/ |
H A D | extable.c | 15 /* Caller knows they are in a range if ret->fixup == 0 */ 43 /* A range entry, skip both parts. */ in search_extable() 56 /* 2. Try to find a range match. */ in search_extable() 75 bool range; in trim_init_extable() local 77 for (i = 0; i < m->num_exentries; i += range ? 2 : 1) { in trim_init_extable() 78 range = m->extable[i].fixup == 0; in trim_init_extable() 82 if (range) in trim_init_extable() 85 if (range) in trim_init_extable() 100 /* Inside range? Fix g2 and return correct fixup */ in search_extables_range()
|
/kernel/linux/linux-5.10/drivers/clk/at91/ |
H A D | clk-peripheral.c | 35 struct clk_range range; member 142 if (periph->range.max) { in clk_sam9x5_peripheral_autodiv() 149 if (parent_rate >> shift <= periph->range.max) in clk_sam9x5_peripheral_autodiv() 271 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) in clk_sam9x5_peripheral_determine_rate() 278 if (periph->range.max && tmp_rate > periph->range.max) in clk_sam9x5_peripheral_determine_rate() 310 (periph->range.max && best_rate > periph->range.max)) in clk_sam9x5_peripheral_determine_rate() 334 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) in clk_sam9x5_peripheral_round_rate() 337 if (periph->range in clk_sam9x5_peripheral_round_rate() 415 at91_clk_register_sam9x5_peripheral(struct regmap *regmap, spinlock_t *lock, const struct clk_pcr_layout *layout, const char *name, const char *parent_name, u32 id, const struct clk_range *range, int chg_pid) at91_clk_register_sam9x5_peripheral() argument [all...] |
/kernel/linux/linux-6.6/drivers/clk/at91/ |
H A D | clk-peripheral.c | 35 struct clk_range range; member 147 if (periph->range.max) { in clk_sam9x5_peripheral_autodiv() 154 if (parent_rate >> shift <= periph->range.max) in clk_sam9x5_peripheral_autodiv() 282 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) in clk_sam9x5_peripheral_determine_rate() 289 if (periph->range.max && tmp_rate > periph->range.max) in clk_sam9x5_peripheral_determine_rate() 322 (periph->range.max && best_rate > periph->range.max)) in clk_sam9x5_peripheral_determine_rate() 346 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) in clk_sam9x5_peripheral_round_rate() 349 if (periph->range in clk_sam9x5_peripheral_round_rate() 448 at91_clk_register_sam9x5_peripheral(struct regmap *regmap, spinlock_t *lock, const struct clk_pcr_layout *layout, const char *name, const char *parent_name, struct clk_hw *parent_hw, u32 id, const struct clk_range *range, int chg_pid, unsigned long flags) at91_clk_register_sam9x5_peripheral() argument [all...] |