Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/ethernet/neterion/
Ds2io.c120 #define LINK_IS_UP(val64) (!(val64 & (ADAPTER_STATUS_RMAC_REMOTE_FAULT | \ argument
1010 register u64 val64 = 0; in s2io_verify_pci_mode() local
1013 val64 = readq(&bar0->pci_mode); in s2io_verify_pci_mode()
1014 mode = (u8)GET_PCI_MODE(val64); in s2io_verify_pci_mode()
1016 if (val64 & PCI_MODE_UNKNOWN_MODE) in s2io_verify_pci_mode()
1044 register u64 val64 = 0; in s2io_print_pci_mode() local
1049 val64 = readq(&bar0->pci_mode); in s2io_print_pci_mode()
1050 mode = (u8)GET_PCI_MODE(val64); in s2io_print_pci_mode()
1052 if (val64 & PCI_MODE_UNKNOWN_MODE) in s2io_print_pci_mode()
1094 nic->dev->name, val64 & PCI_MODE_32_BITS ? 32 : 64, pcimode); in s2io_print_pci_mode()
[all …]
/linux-6.1.9/drivers/hwtracing/coresight/
Dcoresight-config.c27 *((u64 *)reg_csdev->driver_regval) = reg_csdev->reg_desc.val64; in cscfg_set_reg()
47 reg_csdev->reg_desc.val64 = *(u64 *)(reg_csdev->driver_regval); in cscfg_save_reg()
65 param_csdev->val64 = reg_csdev->reg_desc.type & CS_CFG_REG_TYPE_VAL_64BIT; in cscfg_init_reg_param()
67 if (param_csdev->val64) in cscfg_init_reg_param()
68 reg_csdev->reg_desc.val64 = param_csdev->current_value; in cscfg_init_reg_param()
130 reg_csdev->reg_desc.val64 = reg_desc->val64; in cscfg_reset_feat()
169 if (param_csdev->val64) { in cscfg_update_presets()
172 param_csdev->reg_csdev->reg_desc.val64 = val; in cscfg_update_presets()
208 if (param_csdev->val64) { in cscfg_update_curr_params()
211 param_csdev->reg_csdev->reg_desc.val64 = val; in cscfg_update_curr_params()
Dcoresight-config.h79 u64 val64; member
182 bool val64; member
/linux-6.1.9/drivers/gpu/drm/i915/gvt/
Dgtt.c172 memcpy(&(e)->val64, &v, sizeof(v)); \
335 &e->val64, 8); in gtt_get_entry64()
339 e->val64 = read_pte64(vgpu->gvt->gt->ggtt, index); in gtt_get_entry64()
341 e->val64 = *((u64 *)pt + index); in gtt_get_entry64()
360 &e->val64, 8); in gtt_set_entry64()
364 write_pte64(vgpu->gvt->gt->ggtt, index, e->val64); in gtt_set_entry64()
366 *((u64 *)pt + index) = e->val64; in gtt_set_entry64()
388 pfn = (e->val64 & ADDR_1G_MASK) >> PAGE_SHIFT; in gen8_gtt_get_pfn()
390 pfn = (e->val64 & ADDR_2M_MASK) >> PAGE_SHIFT; in gen8_gtt_get_pfn()
392 pfn = (e->val64 & ADDR_64K_MASK) >> PAGE_SHIFT; in gen8_gtt_get_pfn()
[all …]
/linux-6.1.9/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_accel.c367 int64_t val64; in inv_icm42600_accel_read_offset() local
425 val64 = (int64_t)offset * 5LL * 9806650LL; in inv_icm42600_accel_read_offset()
427 if (val64 >= 0) in inv_icm42600_accel_read_offset()
428 val64 += 10000LL / 2LL; in inv_icm42600_accel_read_offset()
430 val64 -= 10000LL / 2LL; in inv_icm42600_accel_read_offset()
431 bias = div_s64(val64, 10000L); in inv_icm42600_accel_read_offset()
443 int64_t val64; in inv_icm42600_accel_write_offset() local
471 val64 = (int64_t)val * 1000000LL + (int64_t)val2; in inv_icm42600_accel_write_offset()
472 if (val64 < min || val64 > max) in inv_icm42600_accel_write_offset()
482 val64 = val64 * 10000LL; in inv_icm42600_accel_write_offset()
[all …]
Dinv_icm42600_gyro.c379 int64_t val64; in inv_icm42600_gyro_read_offset() local
437 val64 = (int64_t)offset * 64LL * 3141592653LL; in inv_icm42600_gyro_read_offset()
439 if (val64 >= 0) in inv_icm42600_gyro_read_offset()
440 val64 += 2048 * 180 / 2; in inv_icm42600_gyro_read_offset()
442 val64 -= 2048 * 180 / 2; in inv_icm42600_gyro_read_offset()
443 bias = div_s64(val64, 2048 * 180); in inv_icm42600_gyro_read_offset()
455 int64_t val64, min, max; in inv_icm42600_gyro_write_offset() local
482 val64 = (int64_t)val * 1000000000LL + (int64_t)val2; in inv_icm42600_gyro_write_offset()
483 if (val64 < min || val64 > max) in inv_icm42600_gyro_write_offset()
493 val64 = val64 * 180LL * 2048LL; in inv_icm42600_gyro_write_offset()
[all …]
/linux-6.1.9/arch/mips/include/asm/
Dmips-cps.h26 uint64_t val64; \
36 val64 = __raw_readl(addr_##unit##_##name() + 4); \
37 val64 <<= 32; \
38 val64 |= __raw_readl(addr_##unit##_##name()); \
39 return val64; \
/linux-6.1.9/lib/zstd/common/
Dmem.h68 MEM_STATIC void MEM_writeLE64(void* memPtr, U64 val64);
77 MEM_STATIC void MEM_writeBE64(void* memPtr, U64 val64);
182 MEM_STATIC void MEM_writeLE64(void *memPtr, U64 val64) in MEM_writeLE64() argument
184 put_unaligned_le64(val64, memPtr); in MEM_writeLE64()
220 MEM_STATIC void MEM_writeBE64(void *memPtr, U64 val64) in MEM_writeBE64() argument
222 put_unaligned_be64(val64, memPtr); in MEM_writeBE64()
/linux-6.1.9/drivers/net/ethernet/marvell/octeon_ep/
Doctep_main.h290 #define octep_write_csr64(octep_dev, reg_off, val64) \ argument
291 writeq(val64, (octep_dev)->mmio[0].hw_addr + (reg_off))
311 u64 val64; in OCTEP_PCI_WIN_READ() local
315 val64 = readq(oct->pci_win_regs.pci_win_rd_data); in OCTEP_PCI_WIN_READ()
318 "%s: reg: 0x%016llx val: 0x%016llx\n", __func__, addr, val64); in OCTEP_PCI_WIN_READ()
320 return val64; in OCTEP_PCI_WIN_READ()
/linux-6.1.9/tools/lib/perf/Documentation/examples/
Dsampling.c19 __u64 val64; member
94 u.val64 = *array; in main()
99 u.val64 = *array; in main()
/linux-6.1.9/drivers/infiniband/hw/hfi1/
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-6.1.9/drivers/thermal/intel/
Dintel_powerclamp.c322 u64 val64; in powerclamp_adjust_controls() local
332 val64 = 100*(msr_now-msr_last); in powerclamp_adjust_controls()
333 do_div(val64, (tsc_now-tsc_last)); in powerclamp_adjust_controls()
334 current_ratio = val64; in powerclamp_adjust_controls()
435 u64 val64; in poll_pkg_cstate() local
445 val64 = 100 * (msr_now - msr_last); in poll_pkg_cstate()
446 do_div(val64, (tsc_now - tsc_last)); in poll_pkg_cstate()
447 pkg_cstate_ratio_cur = val64; in poll_pkg_cstate()
/linux-6.1.9/drivers/iio/light/
Dcros_ec_light_prox.c45 s64 val64; in cros_ec_light_prox_read() local
109 val64 = st->core.resp->sensor_range.ret; in cros_ec_light_prox_read()
110 *val = val64 >> 16; in cros_ec_light_prox_read()
111 *val2 = (val64 & 0xffff) * 100; in cros_ec_light_prox_read()
/linux-6.1.9/drivers/iio/common/cros_ec_sensors/
Dcros_ec_sensors.c42 s64 val64; in cros_ec_sensors_read() local
105 val64 = st->core.resp->sensor_range.ret; in cros_ec_sensors_read()
112 *val = div_s64(val64 * 980665, 10); in cros_ec_sensors_read()
123 *val2 = div_s64(val64 * 3141592653ULL, in cros_ec_sensors_read()
132 *val = val64; in cros_ec_sensors_read()
/linux-6.1.9/drivers/iio/dac/
Dad5791.c253 u64 val64; in ad5791_read_raw() local
269 val64 = (((u64)st->vref_neg_mv) << chan->scan_type.realbits); in ad5791_read_raw()
270 do_div(val64, st->vref_mv); in ad5791_read_raw()
271 *val = -val64; in ad5791_read_raw()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Datomics.c162 __u64 val64 = 2; in xchg() local
165 xchg64_result = __sync_lock_test_and_set(&xchg64_value, val64); in xchg()
/linux-6.1.9/arch/loongarch/include/asm/
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()
Dprocessor.h61 __u64 val64[FPU_REG_WIDTH / 64]; member
/linux-6.1.9/tools/perf/util/
Dmemswap.h8 u64 val64; member
Devsel.c2229 u.val64 = *array; in perf_evsel__parse_id_sample()
2232 u.val64 = bswap_64(u.val64); in perf_evsel__parse_id_sample()
2256 u.val64 = *array; in perf_evsel__parse_id_sample()
2259 u.val64 = bswap_64(u.val64); in perf_evsel__parse_id_sample()
2404 u.val64 = *array; in evsel__parse_sample()
2407 u.val64 = bswap_64(u.val64); in evsel__parse_sample()
2439 u.val64 = *array; in evsel__parse_sample()
2442 u.val64 = bswap_64(u.val64); in evsel__parse_sample()
2518 u.val64 = *array; in evsel__parse_sample()
2527 u.val64 = bswap_64(u.val64); in evsel__parse_sample()
/linux-6.1.9/drivers/input/touchscreen/
Dtsc2007_core.c235 u64 val64; in tsc2007_probe_properties() local
251 if (!device_property_read_u64(dev, "ti,poll-period", &val64)) in tsc2007_probe_properties()
252 ts->poll_period = msecs_to_jiffies(val64); in tsc2007_probe_properties()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Datom.c691 uint64_t val64; in atom_op_div32() local
699 val64 = dst; in atom_op_div32()
700 val64 |= ((uint64_t)ctx->ctx->divmul[1]) << 32; in atom_op_div32()
701 do_div(val64, src); in atom_op_div32()
702 ctx->ctx->divmul[0] = lower_32_bits(val64); in atom_op_div32()
703 ctx->ctx->divmul[1] = upper_32_bits(val64); in atom_op_div32()
816 uint64_t val64; in atom_op_mul32() local
823 val64 = (uint64_t)dst * (uint64_t)src; in atom_op_mul32()
824 ctx->ctx->divmul[0] = lower_32_bits(val64); in atom_op_mul32()
825 ctx->ctx->divmul[1] = upper_32_bits(val64); in atom_op_mul32()
/linux-6.1.9/drivers/hv/
Dhv_kvp.c381 __u64 val64; in kvp_send_key() local
449 val64 = in_msg->body.kvp_set.data.value_u64; in kvp_send_key()
452 "%llu", val64) + 1; in kvp_send_key()
/linux-6.1.9/drivers/usb/early/
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-6.1.9/tools/lib/perf/Documentation/
Dlibperf-sampling.txt201 94 u.val64 = *array;
206 99 u.val64 = *array;

12