/linux-master/drivers/gpu/drm/exynos/ |
H A D | exynos_drm_gsc.c | 71 * @range: narrow, wide. 79 bool range; member in struct:gsc_scaler 594 if (sc->range) 599 if (sc->range) 895 if (sc->range) 900 if (sc->range) 1078 sc->range = true;
|
/linux-master/drivers/media/i2c/ |
H A D | ov4689.c | 610 const struct ov4689_gain_range *range; local 626 range = &ov4689_gain_ranges[n]; 628 *result = clamp(range->offset + (logical_gain) / range->divider, 629 range->physical_min, range->physical_max);
|
/linux-master/arch/powerpc/kvm/ |
H A D | book3s.c | 883 bool kvm_unmap_gfn_range(struct kvm *kvm, struct kvm_gfn_range *range) argument 885 return kvm->arch.kvm_ops->unmap_gfn_range(kvm, range); 888 bool kvm_age_gfn(struct kvm *kvm, struct kvm_gfn_range *range) argument 890 return kvm->arch.kvm_ops->age_gfn(kvm, range); 893 bool kvm_test_age_gfn(struct kvm *kvm, struct kvm_gfn_range *range) argument 895 return kvm->arch.kvm_ops->test_age_gfn(kvm, range);
|
/linux-master/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_migrate.c | 209 return (addr + adev->kfd.pgmap.range.start) >> PAGE_SHIFT; 239 return (addr - adev->kfd.pgmap.range.start); 421 dev_err(adev->dev, "%s: vma setup fail %d range [0x%lx 0x%lx]\n", 468 * svm_migrate_ram_to_vram - migrate svm range from system to device 469 * @prange: range structure 494 pr_debug("range [0x%lx 0x%lx] out prange [0x%lx 0x%lx]\n", 663 * svm_migrate_vma_to_ram - migrate range inside one vma from device to system 665 * @prange: svm range structure 666 * @vma: vm_area_struct that range [start, end] belongs to 667 * @start: range star [all...] |
/linux-master/drivers/hwmon/ |
H A D | lm85.c | 174 /* These are the zone temperature range encodings in .001 degree C */ 180 static int RANGE_TO_REG(long range) argument 182 return find_closest(range, lm85_range_map, ARRAY_SIZE(lm85_range_map)); 267 u8 range; /* Temp range, encoded */ member in struct:lm85_zone 511 data->zone[i].range = val >> 4; 820 (data->zone[nr].range << 4) 1198 data->zone[nr].range = RANGE_TO_REG( 1202 ((data->zone[nr].range & 0x0f) << 4) 1216 RANGE_FROM_REG(data->zone[nr].range)); [all...] |
H A D | adt7475.c | 215 u8 range[3]; member in struct:adt7475_data 654 out = (data->range[sattr->index] >> 4) & 0x0F; 679 data->range[sattr->index] = 684 * to figure the range 694 data->range[sattr->index] &= ~0xF0; 695 data->range[sattr->index] |= val << 4; 698 data->range[sattr->index]); 988 idx = clamp_val(data->range[sattr->index] & 0xf, 0, 1011 data->range[sattr->index] = 1013 data->range[satt [all...] |
/linux-master/drivers/misc/cxl/ |
H A D | native.c | 641 ctx->elem->ivte_ranges[r] = cpu_to_be16(ctx->irqs.range[r]); 702 if (ctx->irqs.range[0] == 0) { 704 ctx->irqs.range[0] = 1; 765 if (ctx->irqs.range[0] == 0) { 767 ctx->irqs.range[0] = 1; 880 ctx->elem->ivte_ranges[r] = cpu_to_be16(ctx->irqs.range[r]); 894 (((u64)ctx->irqs.range[0] & 0xffff) << 48) | 895 (((u64)ctx->irqs.range[1] & 0xffff) << 32) | 896 (((u64)ctx->irqs.range[2] & 0xffff) << 16) | 897 ((u64)ctx->irqs.range[ [all...] |
/linux-master/drivers/target/ |
H A D | target_core_sbc.c | 181 * Use the explicit range when non zero is supplied, otherwise calculate 182 * the remaining range based on ->get_blocks() - starting LBA. 1085 u32 range; local 1130 range = get_unaligned_be32(&ptr[8]); 1131 pr_debug("UNMAP: Using lba: %llu and range: %u\n", 1132 (unsigned long long)lba, range); 1134 if (range > dev->dev_attrib.max_unmap_lba_count) { 1139 if (lba + range > dev->transport->get_blocks(dev) + 1) { 1144 if (range) { 1145 ret = ops->execute_unmap(cmd, lba, range); [all...] |
/linux-master/drivers/pci/controller/ |
H A D | pci-mvebu.c | 742 /* On error disable IO range */ 753 /* On error disable mem range */ 763 /* On error disable IO range */ 1183 const __be32 *range; local 1189 range = of_get_property(np, "ranges", &rlen); 1190 if (!range) 1197 for (i = 0; i < nranges; i++, range += rangesz) { 1198 u32 flags = of_read_number(range, 1); 1199 u32 slot = of_read_number(range + 1, 1); 1200 u64 cpuaddr = of_read_number(range [all...] |
/linux-master/drivers/comedi/drivers/ |
H A D | me4000.c | 465 unsigned int range = CR_RANGE(insn->chanspec); local 471 entry = chan | ME4000_AI_LIST_RANGE(range); 479 if (!comedi_range_is_bipolar(s, range)) { 542 unsigned int range = CR_RANGE(cmd->chanlist[i]); local 564 if (!comedi_range_is_bipolar(s, range)) { 634 unsigned int range = CR_RANGE(cmd->chanlist[i]); local 638 entry = chan | ME4000_AI_LIST_RANGE(range);
|
H A D | addi_apci_3xxx.c | 382 unsigned int range = CR_RANGE(chanspec); local 401 val = (range & 3) | ((range >> 2) << 6) | 614 unsigned int range = CR_RANGE(insn->chanspec); local 621 /* Set the range selection */ 622 writel(range, dev->mmio + 96);
|
H A D | vmk80xx.c | 110 const struct comedi_lrange *range; member in struct:vmk80xx_board 124 .range = &range_unipolar5, 134 .range = &vmk8061_range, 710 s->range_table = board->range; 719 s->range_table = board->range;
|
/linux-master/tools/testing/selftests/kvm/lib/ |
H A D | sparsebit.c | 126 * + Nodes never represent a range of bits that wrap around the 139 * + The range of bits described by any two nodes do not overlap. The 140 * range of bits described by a single node is: 697 * contains a single contiguous range of bits 707 * there is a single contiguous range of 1369 /* Sets the bits * in the inclusive range idx through idx + num - 1. */ 1451 /* Clears the bits * in the inclusive range idx through idx + num - 1. */ 1532 /* Sets the bits in the entire addressable range of the sparsebit array. */ 1540 /* Clears the bits in the entire addressable range of the sparsebit array. */ 1562 * have been printed, else print the range 1893 struct range { struct [all...] |
/linux-master/mm/ |
H A D | khugepaged.c | 1100 struct mmu_notifier_range range; local 1162 mmu_notifier_range_init(&range, MMU_NOTIFY_CLEAR, 0, mm, address, 1164 mmu_notifier_invalidate_range_start(&range); 1177 mmu_notifier_invalidate_range_end(&range); 1324 * the registered range. So, just be simple. 1483 struct mmu_notifier_range range; local 1578 mmu_notifier_range_init(&range, MMU_NOTIFY_CLEAR, 0, mm, 1580 mmu_notifier_invalidate_range_start(&range); 1584 * pmd_lock covers a wider range than ptl, and (if split from mm's 1656 mmu_notifier_invalidate_range_end(&range); 1692 struct mmu_notifier_range range; local [all...] |
/linux-master/drivers/md/ |
H A D | dm-cache-target.c | 2868 * We're already in a discard range, just extend it. 2874 * Emit the old range and start a new one. 3178 * Defines a range of cblocks, begin to (end - 1) are in the range. end is 3187 * A cache block range can take two forms: 3225 DMERR("%s: invalid cblock range '%s'", cache_device_name(cache), str); 3229 static int validate_cblock_range(struct cache *cache, struct cblock_range *range) argument 3231 uint64_t b = from_cblock(range->begin); 3232 uint64_t e = from_cblock(range->end); 3236 DMERR("%s: begin cblock out of range 3261 request_invalidation(struct cache *cache, struct cblock_range *range) argument 3288 struct cblock_range range; local [all...] |
/linux-master/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_vcap_impl.c | 206 /* Initializing a VCAP address range */ 307 /* Set the narrow range ingress port mask on a rule */ 313 u32 range; local 315 range = port->portno / BITS_PER_TYPE(u32); 319 vcap_rule_add_key_u32(rule, VCAP_KF_IF_IGR_PORT_MASK_RNG, range, 0xf); 323 /* Set the wide range ingress port mask on a rule */ 329 u32 range; local 334 range = port->portno / BITS_PER_BYTE; 335 port_mask.mask[range] = ~BIT(port->portno % BITS_PER_BYTE); 344 u32 range; local [all...] |
/linux-master/drivers/pinctrl/ |
H A D | pinctrl-single.c | 407 struct pinctrl_gpio_range *range, unsigned pin) 819 dev_err(pcs->dev, "mux offset out of range: 0x%x (0x%x)\n", 1340 const char *propname = "pinctrl-single,gpio-range"; 1341 const char *cellname = "#pinctrl-single,gpio-range-cells"; 1343 struct pcs_gpiofunc_range *range; local 1354 range = devm_kzalloc(pcs->dev, sizeof(*range), GFP_KERNEL); 1355 if (!range) { 1359 range->offset = gpiospec.args[0]; 1360 range 406 pcs_request_gpio(struct pinctrl_dev *pctldev, struct pinctrl_gpio_range *range, unsigned pin) argument [all...] |
/linux-master/drivers/iio/imu/bmi160/ |
H A D | bmi160_core.c | 153 u8 range; member in struct:bmi160_regs 164 .range = BMI160_REG_ACCEL_RANGE, 173 .range = BMI160_REG_GYRO_RANGE, 338 return regmap_write(data->regmap, bmi160_regs[t].range, 348 ret = regmap_read(data->regmap, bmi160_regs[t].range, &val);
|
/linux-master/drivers/misc/mei/ |
H A D | hw-txe.c | 1217 * @addr: physical address start of the range 1218 * @range: physical range size 1222 int mei_txe_setup_satt2(struct mei_device *dev, phys_addr_t addr, u32 range) argument 1238 /* SATT range has to be 4Bytes aligned */ 1239 if (range & 0x4) 1242 /* SATT is limited to 32 MB range*/ 1243 if (range > SATT_RANGE_MAX) 1249 mei_txe_br_reg_write(hw, SATT2_SAP_SIZE_REG, range); 1253 range, lo3 [all...] |
/linux-master/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common-v2.c | 82 if (hw->soc->reg_cal && hw->soc->reg_cal[field].range) { 94 if (desc->number >= rc->range[check].s_pin 95 && desc->number <= rc->range[check].e_pin) { 100 else if (desc->number < rc->range[check].s_pin) 112 c = rc->range + check; 123 * range use the same field with the s_pin.
|
/linux-master/drivers/gpu/drm/arm/ |
H A D | malidp_planes.c | 674 enum drm_color_range range) 680 malidp_hw_write(plane->hwdev, malidp_yuv2rgb_coeffs[enc][range][i], 1008 enum drm_color_range range = DRM_COLOR_YCBCR_LIMITED_RANGE; local 1016 enc, range); 1019 malidp_de_set_color_encoding(plane, enc, range); 672 malidp_de_set_color_encoding(struct malidp_plane *plane, enum drm_color_encoding enc, enum drm_color_range range) argument
|
/linux-master/drivers/bus/ |
H A D | mvebu-mbus.c | 292 * proposed physical range 1187 struct of_range range; local 1193 for_each_of_range(&parser, &range) { 1194 u32 windowid = upper_32_bits(range.bus_addr); 1207 ret = mbus_dt_setup_win(mbus, range.cpu_addr, range.size, target, attr);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | fs_dr.c | 229 dst->dest_attr.range.field, 230 dst->dest_attr.range.hit_ft, 231 dst->dest_attr.range.miss_ft, 232 dst->dest_attr.range.min, 233 dst->dest_attr.range.max);
|
/linux-master/drivers/pinctrl/nomadik/ |
H A D | pinctrl-nomadik.c | 201 * @prcm_base: PRCM register range virtual base 691 /* test if out of range */ 987 struct pinctrl_gpio_range *range, 995 if (!range) { 996 dev_err(npct->dev, "invalid range\n"); 999 if (!range->gc) { 1000 dev_err(npct->dev, "missing GPIO chip in range\n"); 1003 chip = range->gc; 1019 struct pinctrl_gpio_range *range, 986 nmk_gpio_request_enable(struct pinctrl_dev *pctldev, struct pinctrl_gpio_range *range, unsigned int pin) argument 1018 nmk_gpio_disable_free(struct pinctrl_dev *pctldev, struct pinctrl_gpio_range *range, unsigned int pin) argument
|
/linux-master/arch/x86/kernel/cpu/mtrr/ |
H A D | generic.c | 69 * accounting for MTRR_MAX_VAR_RANGES * 2 - 1 range entries 70 * - a TOP_MEM2 area (even with overlapping an UC MTRR can't add 2 range entries 124 /* Get the size of contiguous MTRR range */ 348 /* Build the cache_map containing the cache modes per memory range. */ 435 * @var: MTRR variable range array to use 502 * @start: Begin of the physical address range 503 * @end: End of the physical address range 555 /* Get the MSR pair relating to a var range */ 563 /* Fill the MSR pair relating to a var range */ 759 * set_fixed_range - checks & updates a fixed-range MTR 867 int block = -1, range; local [all...] |