/linux-6.12.1/kernel/futex/ |
D | pi.c | 203 static int attach_to_pi_state(u32 __user *uaddr, u32 uval, in attach_to_pi_state() argument 207 pid_t pid = uval & FUTEX_TID_MASK; in attach_to_pi_state() 246 if (uval != uval2) in attach_to_pi_state() 252 if (uval & FUTEX_OWNER_DIED) { in attach_to_pi_state() 321 static int handle_exit_race(u32 __user *uaddr, u32 uval, in handle_exit_race() argument 366 if (uval2 != uval) in handle_exit_race() 411 static int attach_to_pi_owner(u32 __user *uaddr, u32 uval, union futex_key *key, in attach_to_pi_owner() argument 415 pid_t pid = uval & FUTEX_TID_MASK; in attach_to_pi_owner() 429 return handle_exit_race(uaddr, uval, NULL); in attach_to_pi_owner() 448 int ret = handle_exit_race(uaddr, uval, p); in attach_to_pi_owner() [all …]
|
D | waitwake.c | 419 u32 uval; in futex_wait_multiple_setup() local 456 ret = futex_get_value_locked(&uval, uaddr); in futex_wait_multiple_setup() 458 if (!ret && uval == val) { in futex_wait_multiple_setup() 488 if (get_user(uval, uaddr)) in futex_wait_multiple_setup() 495 if (uval != val) in futex_wait_multiple_setup() 595 u32 uval; in futex_wait_setup() local 624 ret = futex_get_value_locked(&uval, uaddr); in futex_wait_setup() 629 ret = get_user(uval, uaddr); in futex_wait_setup() 639 if (uval != val) { in futex_wait_setup()
|
D | core.c | 454 int futex_cmpxchg_value_locked(u32 *curval, u32 __user *uaddr, u32 uval, u32 newval) in futex_cmpxchg_value_locked() argument 459 ret = futex_atomic_cmpxchg_inatomic(curval, uaddr, uval, newval); in futex_cmpxchg_value_locked() 663 u32 uval, nval, mval; in handle_futex_death() local 672 if (get_user(uval, uaddr)) in handle_futex_death() 711 owner = uval & FUTEX_TID_MASK; in handle_futex_death() 732 mval = (uval & FUTEX_WAITERS) | FUTEX_OWNER_DIED; in handle_futex_death() 743 if ((err = futex_cmpxchg_value_locked(&nval, uaddr, uval, mval))) { in handle_futex_death() 760 if (nval != uval) in handle_futex_death() 767 if (!pi && (uval & FUTEX_WAITERS)) { in handle_futex_death()
|
/linux-6.12.1/drivers/hwmon/ |
D | max31827.c | 207 unsigned int uval; in max31827_read() local 215 MAX31827_CONFIGURATION_REG, &uval); in max31827_read() 219 uval = FIELD_GET(MAX31827_CONFIGURATION_1SHOT_MASK | in max31827_read() 221 uval); in max31827_read() 222 *val = !!uval; in max31827_read() 255 ret = regmap_read(st->regmap, MAX31827_T_REG, &uval); in max31827_read() 262 *val = MAX31827_16_BIT_TO_M_DGR(uval); in max31827_read() 266 ret = regmap_read(st->regmap, MAX31827_TH_REG, &uval); in max31827_read() 270 *val = MAX31827_16_BIT_TO_M_DGR(uval); in max31827_read() 274 &uval); in max31827_read() [all …]
|
/linux-6.12.1/drivers/net/dsa/xrs700x/ |
D | xrs700x_mdio.c | 29 u16 uval; in xrs700x_mdio_reg_read() local 32 uval = (u16)FIELD_GET(GENMASK(31, 16), reg); in xrs700x_mdio_reg_read() 34 ret = mdiodev_write(mdiodev, XRS_MDIO_IBA1, uval); in xrs700x_mdio_reg_read() 40 uval = (u16)((reg & GENMASK(15, 1)) | XRS_IB_READ); in xrs700x_mdio_reg_read() 42 ret = mdiodev_write(mdiodev, XRS_MDIO_IBA0, uval); in xrs700x_mdio_reg_read() 64 u16 uval; in xrs700x_mdio_reg_write() local 73 uval = (u16)FIELD_GET(GENMASK(31, 16), reg); in xrs700x_mdio_reg_write() 75 ret = mdiodev_write(mdiodev, XRS_MDIO_IBA1, uval); in xrs700x_mdio_reg_write() 81 uval = (u16)((reg & GENMASK(15, 1)) | XRS_IB_WRITE); in xrs700x_mdio_reg_write() 83 ret = mdiodev_write(mdiodev, XRS_MDIO_IBA0, uval); in xrs700x_mdio_reg_write()
|
/linux-6.12.1/drivers/gpu/drm/i915/ |
D | i915_hwmon.c | 297 static int hwm_pcode_read_i1(struct drm_i915_private *i915, u32 *uval) in hwm_pcode_read_i1() argument 304 POWER_SETUP_SUBCOMMAND_READ_I1, 0, uval); in hwm_pcode_read_i1() 307 static int hwm_pcode_write_i1(struct drm_i915_private *i915, u32 uval) in hwm_pcode_write_i1() argument 310 POWER_SETUP_SUBCOMMAND_WRITE_I1, 0, uval); in hwm_pcode_write_i1() 350 u32 uval; in hwm_power_is_visible() local 358 return (hwm_pcode_read_i1(i915, &uval) || in hwm_power_is_visible() 359 !(uval & POWER_SETUP_I1_WATTS)) ? 0 : 0644; in hwm_power_is_visible() 468 u32 uval; in hwm_power_read() local 481 ret = hwm_pcode_read_i1(ddat->uncore->i915, &uval); in hwm_power_read() 484 if (!(uval & POWER_SETUP_I1_WATTS)) in hwm_power_read() [all …]
|
/linux-6.12.1/lib/ |
D | packing.c | 77 int packing(void *pbuf, u64 *uval, int startbit, int endbit, size_t pbuflen, in packing() argument 102 if (op == PACK && value_width < 64 && (*uval >= (1ull << value_width))) in packing() 111 *uval = 0; in packing() 178 *uval &= ~proj_mask; in packing() 179 *uval |= pval; in packing() 184 pval = (*uval) & proj_mask; in packing()
|
/linux-6.12.1/drivers/gpu/drm/xe/ |
D | xe_hwmon.c | 443 static int xe_hwmon_pcode_read_i1(const struct xe_hwmon *hwmon, u32 *uval) in xe_hwmon_pcode_read_i1() argument 453 uval, NULL); in xe_hwmon_pcode_read_i1() 456 static int xe_hwmon_pcode_write_i1(const struct xe_hwmon *hwmon, u32 uval) in xe_hwmon_pcode_write_i1() argument 462 (uval & POWER_SETUP_I1_DATA_MASK)); in xe_hwmon_pcode_write_i1() 469 u32 uval; in xe_hwmon_power_curr_crit_read() local 473 ret = xe_hwmon_pcode_read_i1(hwmon, &uval); in xe_hwmon_power_curr_crit_read() 477 *value = mul_u64_u32_shr(REG_FIELD_GET(POWER_SETUP_I1_DATA_MASK, uval), in xe_hwmon_power_curr_crit_read() 488 u32 uval; in xe_hwmon_power_curr_crit_write() local 492 uval = DIV_ROUND_CLOSEST_ULL(value << POWER_SETUP_I1_SHIFT, scale_factor); in xe_hwmon_power_curr_crit_write() 493 ret = xe_hwmon_pcode_write_i1(hwmon, uval); in xe_hwmon_power_curr_crit_write() [all …]
|
/linux-6.12.1/include/asm-generic/ |
D | futex.h | 16 #define futex_atomic_cmpxchg_inatomic(uval, uaddr, oldval, newval) \ argument 17 futex_atomic_cmpxchg_inatomic_local(uval, uaddr, oldval, newval) 99 futex_atomic_cmpxchg_inatomic_local(u32 *uval, u32 __user *uaddr, in futex_atomic_cmpxchg_inatomic_local() argument 115 *uval = val; in futex_atomic_cmpxchg_inatomic_local()
|
/linux-6.12.1/sound/firewire/bebob/ |
D | bebob_maudio.c | 368 struct snd_ctl_elem_value *uval) in special_clk_ctl_get() argument 372 uval->value.enumerated.item[0] = params->clk_src; in special_clk_ctl_get() 376 struct snd_ctl_elem_value *uval) in special_clk_ctl_put() argument 382 id = uval->value.enumerated.item[0]; in special_clk_ctl_put() 420 struct snd_ctl_elem_value *uval) in special_sync_ctl_get() argument 428 uval->value.integer.value[0] = synced; in special_sync_ctl_get() 452 struct snd_ctl_elem_value *uval) in special_dig_in_iface_ctl_get() argument 476 uval->value.enumerated.item[0] = val; in special_dig_in_iface_ctl_get() 482 struct snd_ctl_elem_value *uval) in special_dig_in_iface_ctl_set() argument 489 id = uval->value.enumerated.item[0]; in special_dig_in_iface_ctl_set() [all …]
|
/linux-6.12.1/arch/xtensa/include/asm/ |
D | futex.h | 117 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, in futex_atomic_cmpxchg_inatomic() argument 157 : [addr] "r" (uaddr), [oldval] "r" (oldval), [uval] "r" (uval), in futex_atomic_cmpxchg_inatomic() 163 return futex_atomic_cmpxchg_inatomic_local(uval, uaddr, oldval, newval); in futex_atomic_cmpxchg_inatomic()
|
/linux-6.12.1/arch/arm/include/asm/ |
D | futex.h | 46 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, in futex_atomic_cmpxchg_inatomic() argument 75 *uval = val; in futex_atomic_cmpxchg_inatomic() 100 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, in futex_atomic_cmpxchg_inatomic() argument 124 *uval = val; in futex_atomic_cmpxchg_inatomic()
|
/linux-6.12.1/arch/arc/kernel/ |
D | process.c | 49 u32 uval; in SYSCALL_DEFINE3() local 70 ret = __get_user(uval, uaddr); in SYSCALL_DEFINE3() 74 if (uval != expected) in SYSCALL_DEFINE3() 85 return uval; in SYSCALL_DEFINE3()
|
/linux-6.12.1/arch/s390/include/asm/ |
D | uaccess.h | 451 static __always_inline int __cmpxchg_user_key(unsigned long address, void *uval, in __cmpxchg_user_key() argument 501 *(unsigned char *)uval = prev >> shift; in __cmpxchg_user_key() 549 *(unsigned short *)uval = prev >> shift; in __cmpxchg_user_key() 572 *(unsigned int *)uval = prev; in __cmpxchg_user_key() 593 *(unsigned long *)uval = prev; in __cmpxchg_user_key() 614 *(__uint128_t *)uval = prev; in __cmpxchg_user_key() 643 #define cmpxchg_user_key(ptr, uval, old, new, key) \ argument 646 __typeof__(uval) __uval = (uval); \
|
/linux-6.12.1/arch/sh/include/asm/ |
D | futex-llsc.h | 5 static inline int atomic_futex_op_cmpxchg_inatomic(u32 *uval, in atomic_futex_op_cmpxchg_inatomic() argument 35 :"+r" (err), "=&r" (*uval) in atomic_futex_op_cmpxchg_inatomic()
|
D | futex-cas.h | 5 static inline int atomic_futex_op_cmpxchg_inatomic(u32 *uval, in atomic_futex_op_cmpxchg_inatomic() argument 31 *uval = newval; in atomic_futex_op_cmpxchg_inatomic()
|
D | futex-irq.h | 5 static inline int atomic_futex_op_cmpxchg_inatomic(u32 *uval, in atomic_futex_op_cmpxchg_inatomic() argument 21 *uval = prev; in atomic_futex_op_cmpxchg_inatomic()
|
D | futex.h | 20 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, in futex_atomic_cmpxchg_inatomic() argument 26 return atomic_futex_op_cmpxchg_inatomic(uval, uaddr, oldval, newval); in futex_atomic_cmpxchg_inatomic()
|
/linux-6.12.1/arch/mips/include/asm/ |
D | futex.h | 132 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, in futex_atomic_cmpxchg_inatomic() argument 202 return futex_atomic_cmpxchg_inatomic_local(uval, uaddr, oldval, newval); in futex_atomic_cmpxchg_inatomic() 205 *uval = val; in futex_atomic_cmpxchg_inatomic()
|
/linux-6.12.1/sound/core/ |
D | vmaster.c | 344 struct snd_ctl_elem_value *uval __free(kfree) = NULL; in sync_followers() 346 uval = kmalloc(sizeof(*uval), GFP_KERNEL); in sync_followers() 347 if (!uval) in sync_followers() 351 uval->id = follower->follower.id; in sync_followers() 352 follower_get_val(follower, uval); in sync_followers() 354 follower_put_val(follower, uval); in sync_followers()
|
/linux-6.12.1/arch/sparc/include/asm/ |
D | futex_64.h | 68 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, in futex_atomic_cmpxchg_inatomic() argument 90 *uval = newval; in futex_atomic_cmpxchg_inatomic()
|
/linux-6.12.1/arch/openrisc/include/asm/ |
D | futex.h | 68 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, in futex_atomic_cmpxchg_inatomic() argument 98 *uval = prev; in futex_atomic_cmpxchg_inatomic()
|
/linux-6.12.1/arch/microblaze/include/asm/ |
D | futex.h | 67 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, in futex_atomic_cmpxchg_inatomic() argument 93 *uval = prev; in futex_atomic_cmpxchg_inatomic()
|
/linux-6.12.1/arch/hexagon/include/asm/ |
D | futex.h | 73 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, in futex_atomic_cmpxchg_inatomic() argument 102 *uval = prev; in futex_atomic_cmpxchg_inatomic()
|
/linux-6.12.1/arch/alpha/include/asm/ |
D | futex.h | 64 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, in futex_atomic_cmpxchg_inatomic() argument 90 *uval = prev; in futex_atomic_cmpxchg_inatomic()
|