Home
last modified time | relevance | path

Searched refs:val64 (Results 1 – 25 of 42) sorted by relevance

12

/linux/drivers/gpu/drm/i915/gvt/
H A Dgtt.c94 memcpy(&(e)->val64, &v, sizeof(v)); \
254 &e->val64, 8); in gtt_get_entry64()
258 e->val64 = read_pte64(vgpu->gvt->gt->ggtt, index); in gtt_get_entry64()
260 e->val64 = *((u64 *)pt + index); in gtt_get_entry64()
279 &e->val64, 8); in gtt_set_entry64()
283 write_pte64(vgpu->gvt->gt->ggtt, index, e->val64); in gtt_set_entry64()
285 *((u64 *)pt + index) = e->val64; in gtt_set_entry64()
307 pfn = (e->val64 & ADDR_1G_MASK) >> PAGE_SHIFT; in gen8_gtt_get_pfn()
309 pfn = (e->val64 & ADDR_2M_MASK) >> PAGE_SHIFT; in gen8_gtt_get_pfn()
311 pfn = (e->val64 & ADDR_64K_MASK) >> PAGE_SHIFT; in gen8_gtt_get_pfn()
[all …]
/linux/drivers/iio/imu/inv_icm45600/
H A Dinv_icm45600_gyro.c413 s64 val64; in inv_icm45600_gyro_read_offset() local
458 val64 = (s64)offset * 625LL * 3141592653LL; in inv_icm45600_gyro_read_offset()
460 if (val64 >= 0) in inv_icm45600_gyro_read_offset()
461 val64 += 81920 * 180 / 2; in inv_icm45600_gyro_read_offset()
463 val64 -= 81920 * 180 / 2; in inv_icm45600_gyro_read_offset()
464 bias = div_s64(val64, 81920 * 180); in inv_icm45600_gyro_read_offset()
476 s64 val64, min, max; in inv_icm45600_gyro_write_offset() local
503 val64 = (s64)val * 1000000000LL; in inv_icm45600_gyro_write_offset()
505 val64 += (s64)val2; in inv_icm45600_gyro_write_offset()
507 val64 -= (s64)val2; in inv_icm45600_gyro_write_offset()
[all …]
H A Dinv_icm45600_accel.c400 s64 val64; in inv_icm45600_accel_read_offset() local
445 val64 = (s64)offset * 9806650LL; in inv_icm45600_accel_read_offset()
447 if (val64 >= 0) in inv_icm45600_accel_read_offset()
448 val64 += 8192LL / 2LL; in inv_icm45600_accel_read_offset()
450 val64 -= 8192LL / 2LL; in inv_icm45600_accel_read_offset()
451 bias = div_s64(val64, 8192L); in inv_icm45600_accel_read_offset()
463 s64 val64; in inv_icm45600_accel_write_offset() local
491 val64 = (s64)val * 1000000LL; in inv_icm45600_accel_write_offset()
493 val64 += (s64)val2; in inv_icm45600_accel_write_offset()
495 val64 -= (s64)val2; in inv_icm45600_accel_write_offset()
[all …]
/linux/drivers/pci/
H A Dof_property.c112 u64 val64; in of_pci_prop_ranges() local
133 val64 = pci_bus_address(pdev, &res[j] - pdev->resource); in of_pci_prop_ranges()
134 of_pci_set_address(pdev, rp[i].parent_addr, val64, 0, flags, in of_pci_prop_ranges()
147 val64 = resource_size(&res[j]); in of_pci_prop_ranges()
148 rp[i].size[0] = upper_32_bits(val64); in of_pci_prop_ranges()
149 rp[i].size[1] = lower_32_bits(val64); in of_pci_prop_ranges()
428 u64 val64; in of_pci_host_bridge_prop_ranges() local
459 val64 = res->start; in of_pci_host_bridge_prop_ranges()
461 val64 - window->offset, 0, flags, false); in of_pci_host_bridge_prop_ranges()
466 ranges[ranges_sz++] = upper_32_bits(val64); in of_pci_host_bridge_prop_ranges()
[all …]
/linux/lib/zstd/common/
H A Dmem.h71 MEM_STATIC void MEM_writeLE64(void* memPtr, U64 val64);
80 MEM_STATIC void MEM_writeBE64(void* memPtr, U64 val64);
185 MEM_STATIC void MEM_writeLE64(void *memPtr, U64 val64) in MEM_writeLE64() argument
187 put_unaligned_le64(val64, memPtr); in MEM_writeLE64()
223 MEM_STATIC void MEM_writeBE64(void *memPtr, U64 val64) in MEM_writeBE64() argument
225 put_unaligned_be64(val64, memPtr); in MEM_writeBE64()
/linux/tools/lib/perf/Documentation/examples/
H A Dsampling.c19 __u64 val64; member
94 u.val64 = *array; in main()
99 u.val64 = *array; in main()
/linux/drivers/infiniband/hw/hfi1/
H A Dpio_copy.c108 val.val64 = 0; in pio_copy()
110 writeq(val.val64, dest); in pio_copy()
186 pbuf->carry.val64 = 0; in read_low_bytes()
223 temp = pbuf->carry.val64 | (new << mshift(pbuf->carry_bytes)); in merge_write8()
225 pbuf->carry.val64 = new >> zshift(pbuf->carry_bytes); in merge_write8()
233 writeq(carry.val64, dest); in carry8_write8()
245 writeq(pbuf->carry.val64, dest); in carry_write8()
/linux/drivers/hwmon/
H A Dina2xx.c288 s64 val64; in ina2xx_get_value() local
306 val64 = (s64)((s16)regval >> data->config->current_shift) * in ina2xx_get_value()
308 if (val64 < 0) in ina2xx_get_value()
309 val64 = -DIV_ROUND_CLOSEST_ULL(-val64, 1000); in ina2xx_get_value()
311 val64 = DIV_ROUND_CLOSEST_ULL(val64, 1000); in ina2xx_get_value()
312 val = clamp_val(val64, LONG_MIN, LONG_MAX); in ina2xx_get_value()
562 u64 val64; in sy24655_average_power_read() local
581 val64 = (u64)DIV_ROUND_CLOSEST(accumulator_24, sample_count) * data->power_lsb_uW; in sy24655_average_power_read()
582 *val = min_t(u64, val64, LONG_MAX); in sy24655_average_power_read()
H A Dhwmon.c432 s64 val64; in hwmon_attr_show() local
439 (hattr->type == hwmon_energy64) ? (long *)&val64 : &val); in hwmon_attr_show()
444 val64 = val; in hwmon_attr_show()
447 hattr->name, val64); in hwmon_attr_show()
449 return sysfs_emit(buf, "%lld\n", val64); in hwmon_attr_show()
/linux/drivers/iio/common/cros_ec_sensors/
H A Dcros_ec_sensors.c41 s64 val64; in cros_ec_sensors_read() local
104 val64 = st->core.resp->sensor_range.ret; in cros_ec_sensors_read()
111 *val = div_s64(val64 * 980665, 10); in cros_ec_sensors_read()
122 *val2 = div_s64(val64 * 3141592653ULL, in cros_ec_sensors_read()
131 *val = val64; in cros_ec_sensors_read()
/linux/drivers/iio/light/
H A Dcros_ec_light_prox.c44 s64 val64; in cros_ec_light_prox_read() local
108 val64 = st->core.resp->sensor_range.ret; in cros_ec_light_prox_read()
109 *val = val64 >> 16; in cros_ec_light_prox_read()
110 *val2 = (val64 & 0xffff) * 100; in cros_ec_light_prox_read()
/linux/arch/riscv/kernel/tests/module_test/
H A Dtest_module_linking_main.c50 int val64 = test_sub64(); in run_test_sub() local
56 CHECK_EQ(val64, 0); in run_test_sub()
/linux/drivers/hwtracing/coresight/
H A Dcoresight-config.h79 u64 val64; member
182 bool val64; member
/linux/tools/testing/selftests/bpf/progs/
H A Datomics.c162 __u64 val64 = 2; in xchg() local
165 xchg64_result = __sync_lock_test_and_set(&xchg64_value, val64); in xchg()
H A Darena_atomics.c206 __u64 val64 = 2; in xchg() local
209 xchg64_result = __sync_lock_test_and_set(&xchg64_value, val64); in xchg()
/linux/arch/loongarch/include/asm/
H A Dloongson.h53 static inline void xconf_writeq(u64 val64, volatile void __iomem *addr) in xconf_writeq() argument
59 : [hw] "r" (addr), [v] "r" (val64) in xconf_writeq()
H A Dprocessor.h62 __u64 val64[FPU_REG_WIDTH / 64]; member
/linux/tools/perf/util/
H A Dmemswap.h8 u64 val64; member
H A Devsel.c3201 u.val64 = array[i--]; in __set_offcpu_sample()
3204 u.val64 = bswap_64(u.val64); in evsel__parse_sample()
3235 u.val64 = array[i--]; in evsel__parse_sample()
3238 u.val64 = bswap_64(u.val64); in evsel__parse_sample()
3461 u.val64 = *array; in evsel__parse_sample()
3464 u.val64 = bswap_64(u.val64); in evsel__parse_sample()
3496 u.val64 in evsel__parse_sample()
[all...]
/linux/tools/testing/selftests/net/
H A Dip_local_port_range.c187 __u64 val64; in TEST_F() local
206 val64 = pack_port_range(40333, 40444); in TEST_F()
207 err = setsockopt(fd, SOL_IP, IP_LOCAL_PORT_RANGE, &val64, sizeof(val64)); in TEST_F()
/linux/drivers/input/touchscreen/
H A Dtsc2007_core.c224 u64 val64; in tsc2007_probe_properties() local
240 if (!device_property_read_u64(dev, "ti,poll-period", &val64)) in tsc2007_probe_properties()
241 ts->poll_period = msecs_to_jiffies(val64); in tsc2007_probe_properties()
/linux/tools/testing/selftests/iommu/
H A Diommufd.c133 TEST_LENGTH(iommu_option, IOMMU_OPTION, val64); in TEST_F()
169 .val64 = 1, in TEST_F()
174 ASSERT_EQ(0, cmd.val64); in TEST_F()
178 cmd.val64 = 1; in TEST_F()
180 cmd.val64 = 2; in TEST_F()
185 ASSERT_EQ(1, cmd.val64); in TEST_F()
188 cmd.val64 = 0; in TEST_F()
262 .val64 = (variant->accounting == IOPT_PAGES_ACCOUNT_MM), in FIXTURE_SETUP()
1461 .val64 = 3, in TEST_F()
1466 ASSERT_EQ(1, cmd.val64); in TEST_F()
[all...]
/linux/drivers/usb/early/
H A Dxhci-dbc.c40 u64 val64, sz64, mask64; in xdbc_map_pci_mmio() local
55 val64 = val & PCI_BASE_ADDRESS_MEM_MASK; in xdbc_map_pci_mmio()
65 val64 |= (u64)val << 32; in xdbc_map_pci_mmio()
86 xdbc.xhci_start = val64; in xdbc_map_pci_mmio()
88 base = early_ioremap(val64, sz64); in xdbc_map_pci_mmio()
/linux/tools/lib/perf/Documentation/
H A Dlibperf-sampling.txt201 94 u.val64 = *array;
206 99 u.val64 = *array;
/linux/drivers/net/ethernet/cavium/liquidio/
H A Docteon_device.h733 #define octeon_write_csr64(oct_dev, reg_off, val64) \ argument
734 writeq(val64, (oct_dev)->mmio[0].hw_addr + (reg_off))

12