Lines Matching refs:val

161 		     unsigned int val, unsigned int size);
163 unsigned int *val, unsigned int size);
172 u8 val)
174 return __adis_write_reg(adis, reg, val, 1);
184 u16 val)
186 return __adis_write_reg(adis, reg, val, 2);
196 u32 val)
198 return __adis_write_reg(adis, reg, val, 4);
205 * @val: The value read back from the device
208 u16 *val)
215 *val = tmp;
224 * @val: The value read back from the device
227 u32 *val)
234 *val = tmp;
247 unsigned int val, unsigned int size)
252 ret = __adis_write_reg(adis, reg, val, size);
262 * @val: The value read back from the device
263 * @size: The size of the @val buffer
266 unsigned int *val, unsigned int size)
271 ret = __adis_read_reg(adis, reg, val, size);
284 u8 val)
286 return adis_write_reg(adis, reg, val, 1);
296 u16 val)
298 return adis_write_reg(adis, reg, val, 2);
308 u32 val)
310 return adis_write_reg(adis, reg, val, 4);
317 * @val: The value read back from the device
320 u16 *val)
327 *val = tmp;
336 * @val: The value read back from the device
339 u32 *val)
346 *val = tmp;
352 const u32 val, u8 size);
358 * @val: Value to be written
361 * Updates the desired bits of @reg in accordance with @mask and @val.
364 const u32 mask, const u32 val, u8 size)
369 ret = __adis_update_bits_base(adis, reg, mask, val, size);
379 * @val: Value to be written
381 * This macro evaluates the sizeof of @val at compile time and calls
383 * @val can lead to undesired behavior if the register to update is 16bit.
385 #define adis_update_bits(adis, reg, mask, val) ({ \
386 BUILD_BUG_ON(sizeof(val) != 2 && sizeof(val) != 4); \
387 adis_update_bits_base(adis, reg, mask, val, sizeof(val)); \
395 * @val: Value to be written
397 * This macro evaluates the sizeof of @val at compile time and calls
399 * @val can lead to undesired behavior if the register to update is 16bit.
401 #define __adis_update_bits(adis, reg, mask, val) ({ \
402 BUILD_BUG_ON(sizeof(val) != 2 && sizeof(val) != 4); \
403 __adis_update_bits_base(adis, reg, mask, val, sizeof(val)); \
444 unsigned int error_mask, int *val);