Home
last modified time | relevance | path

Searched refs:uval (Results 1 – 25 of 55) sorted by relevance

123

/linux-6.6.21/drivers/hwmon/
Dmax31827.c133 unsigned int uval; in max31827_read() local
141 MAX31827_CONFIGURATION_REG, &uval); in max31827_read()
145 uval = FIELD_GET(MAX31827_CONFIGURATION_1SHOT_MASK | in max31827_read()
147 uval); in max31827_read()
148 *val = !!uval; in max31827_read()
172 ret = regmap_read(st->regmap, MAX31827_T_REG, &uval); in max31827_read()
179 *val = MAX31827_16_BIT_TO_M_DGR(uval); in max31827_read()
183 ret = regmap_read(st->regmap, MAX31827_TH_REG, &uval); in max31827_read()
187 *val = MAX31827_16_BIT_TO_M_DGR(uval); in max31827_read()
191 &uval); in max31827_read()
[all …]
/linux-6.6.21/kernel/futex/
Dpi.c202 static int attach_to_pi_state(u32 __user *uaddr, u32 uval, in attach_to_pi_state() argument
206 pid_t pid = uval & FUTEX_TID_MASK; in attach_to_pi_state()
245 if (uval != uval2) in attach_to_pi_state()
251 if (uval & FUTEX_OWNER_DIED) { in attach_to_pi_state()
320 static int handle_exit_race(u32 __user *uaddr, u32 uval, in handle_exit_race() argument
365 if (uval2 != uval) in handle_exit_race()
410 static int attach_to_pi_owner(u32 __user *uaddr, u32 uval, union futex_key *key, in attach_to_pi_owner() argument
414 pid_t pid = uval & FUTEX_TID_MASK; in attach_to_pi_owner()
428 return handle_exit_race(uaddr, uval, NULL); in attach_to_pi_owner()
447 int ret = handle_exit_race(uaddr, uval, p); in attach_to_pi_owner()
[all …]
Dwaitwake.c404 u32 uval; in futex_wait_multiple_setup() local
441 ret = futex_get_value_locked(&uval, uaddr); in futex_wait_multiple_setup()
443 if (!ret && uval == val) { in futex_wait_multiple_setup()
473 if (get_user(uval, uaddr)) in futex_wait_multiple_setup()
480 if (uval != val) in futex_wait_multiple_setup()
580 u32 uval; in futex_wait_setup() local
609 ret = futex_get_value_locked(&uval, uaddr); in futex_wait_setup()
614 ret = get_user(uval, uaddr); in futex_wait_setup()
624 if (uval != val) { in futex_wait_setup()
Dcore.c450 int futex_cmpxchg_value_locked(u32 *curval, u32 __user *uaddr, u32 uval, u32 newval) in futex_cmpxchg_value_locked() argument
455 ret = futex_atomic_cmpxchg_inatomic(curval, uaddr, uval, newval); in futex_cmpxchg_value_locked()
650 u32 uval, nval, mval; in handle_futex_death() local
659 if (get_user(uval, uaddr)) in handle_futex_death()
698 owner = uval & FUTEX_TID_MASK; in handle_futex_death()
718 mval = (uval & FUTEX_WAITERS) | FUTEX_OWNER_DIED; in handle_futex_death()
729 if ((err = futex_cmpxchg_value_locked(&nval, uaddr, uval, mval))) { in handle_futex_death()
746 if (nval != uval) in handle_futex_death()
753 if (!pi && (uval & FUTEX_WAITERS)) in handle_futex_death()
/linux-6.6.21/drivers/net/dsa/xrs700x/
Dxrs700x_mdio.c29 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.6.21/drivers/gpu/drm/i915/
Di915_hwmon.c286 static int hwm_pcode_read_i1(struct drm_i915_private *i915, u32 *uval) in hwm_pcode_read_i1() argument
293 POWER_SETUP_SUBCOMMAND_READ_I1, 0, uval); in hwm_pcode_read_i1()
296 static int hwm_pcode_write_i1(struct drm_i915_private *i915, u32 uval) in hwm_pcode_write_i1() argument
299 POWER_SETUP_SUBCOMMAND_WRITE_I1, 0, uval); in hwm_pcode_write_i1()
339 u32 uval; in hwm_power_is_visible() local
347 return (hwm_pcode_read_i1(i915, &uval) || in hwm_power_is_visible()
348 !(uval & POWER_SETUP_I1_WATTS)) ? 0 : 0644; in hwm_power_is_visible()
458 u32 uval; in hwm_power_read() local
471 ret = hwm_pcode_read_i1(ddat->uncore->i915, &uval); in hwm_power_read()
474 if (!(uval & POWER_SETUP_I1_WATTS)) in hwm_power_read()
[all …]
/linux-6.6.21/lib/
Dpacking.c77 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.6.21/include/asm-generic/
Dfutex.h16 #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.6.21/sound/firewire/bebob/
Dbebob_maudio.c368 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.6.21/arch/xtensa/include/asm/
Dfutex.h117 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.6.21/arch/arm/include/asm/
Dfutex.h46 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.6.21/arch/s390/include/asm/
Duaccess.h397 static __always_inline int __cmpxchg_user_key(unsigned long address, void *uval, in __cmpxchg_user_key() argument
447 *(unsigned char *)uval = prev >> shift; in __cmpxchg_user_key()
495 *(unsigned short *)uval = prev >> shift; in __cmpxchg_user_key()
518 *(unsigned int *)uval = prev; in __cmpxchg_user_key()
539 *(unsigned long *)uval = prev; in __cmpxchg_user_key()
560 *(__uint128_t *)uval = prev; in __cmpxchg_user_key()
589 #define cmpxchg_user_key(ptr, uval, old, new, key) \ argument
592 __typeof__(uval) __uval = (uval); \
/linux-6.6.21/arch/arc/kernel/
Dprocess.c49 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.6.21/arch/sh/include/asm/
Dfutex-llsc.h5 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()
Dfutex-cas.h5 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()
Dfutex-irq.h5 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()
Dfutex.h20 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.6.21/sound/core/
Dvmaster.c344 struct snd_ctl_elem_value *uval; in sync_followers() local
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()
356 kfree(uval); in sync_followers()
/linux-6.6.21/arch/mips/include/asm/
Dfutex.h132 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.6.21/arch/sparc/include/asm/
Dfutex_64.h68 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.6.21/arch/openrisc/include/asm/
Dfutex.h68 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.6.21/arch/hexagon/include/asm/
Dfutex.h73 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.6.21/arch/microblaze/include/asm/
Dfutex.h67 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.6.21/arch/alpha/include/asm/
Dfutex.h64 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, in futex_atomic_cmpxchg_inatomic() argument
90 *uval = prev; in futex_atomic_cmpxchg_inatomic()
/linux-6.6.21/arch/loongarch/include/asm/
Dfutex.h66 futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr, u32 oldval, u32 newval) in futex_atomic_cmpxchg_inatomic() argument
89 *uval = val; in futex_atomic_cmpxchg_inatomic()

123