/include/linux/ |
H A D | hwmon-vid.h | 26 int vid_from_reg(int val, u8 vrm); 30 val is in mV to avoid floating point in the kernel. 33 static inline int vid_to_reg(int val, u8 vrm) argument 38 return ((val >= 1100) && (val <= 1850) ? 39 ((18499 - val * 10) / 25 + 5) / 10 : -1);
|
H A D | kbuild.h | 4 #define DEFINE(sym, val) \ 5 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
|
H A D | wlan_plat.h | 21 int (*set_power)(int val); 22 int (*set_reset)(int val); 23 int (*set_carddetect)(int val);
|
H A D | hash.h | 28 #define hash_long(val, bits) hash_32(val, bits) 30 #define hash_long(val, bits) hash_64(val, bits) 36 static __always_inline u64 hash_64(u64 val, unsigned int bits) argument 38 u64 hash = val; 63 static inline u32 hash_32(u32 val, unsigned int bits) argument 66 u32 hash = val * GOLDEN_RATIO_PRIME_32; 79 unsigned long val = (unsigned long)ptr; local 82 val [all...] |
H A D | ssbi.h | 24 ssbi_reg_read(void *context, unsigned int reg, unsigned int *val) argument 31 *val = v; 37 ssbi_reg_write(void *context, unsigned int reg, unsigned int val) argument 39 u8 v = val;
|
/include/asm-generic/ |
H A D | ptrace.h | 19 #define SET_IP(regs, val) (GET_IP(regs) = (val)) 27 unsigned long val) 29 SET_IP(regs, val); 41 #define SET_USP(regs, val) (GET_USP(regs) = (val)) 49 unsigned long val) 51 SET_USP(regs, val); 59 #define SET_FP(regs, val) (GET_FP(regs) = (val)) 26 instruction_pointer_set(struct pt_regs *regs, unsigned long val) argument 48 user_stack_pointer_set(struct pt_regs *regs, unsigned long val) argument 66 frame_pointer_set(struct pt_regs *regs, unsigned long val) argument [all...] |
H A D | percpu.h | 68 #define raw_cpu_generic_to_op(pcp, val, op) \ 70 *raw_cpu_ptr(&(pcp)) op val; \ 73 #define raw_cpu_generic_add_return(pcp, val) \ 75 raw_cpu_add(pcp, val); \ 117 #define this_cpu_generic_to_op(pcp, val, op) \ 121 *raw_cpu_ptr(&(pcp)) op val; \ 125 #define this_cpu_generic_add_return(pcp, val) \ 130 raw_cpu_add(pcp, val); \ 184 #define raw_cpu_write_1(pcp, val) raw_cpu_generic_to_op(pcp, val, [all...] |
/include/trace/events/ |
H A D | intel-sst.h | 13 TP_PROTO(unsigned int val), 15 TP_ARGS(val), 18 __field( unsigned int, val ) 22 __entry->val = val; 25 TP_printk("0x%8.8x", (unsigned int)__entry->val) 30 TP_PROTO(unsigned int val), 32 TP_ARGS(val) 38 TP_PROTO(unsigned int val), 40 TP_ARGS(val) [all...] |
/include/dt-bindings/pinctrl/ |
H A D | omap.h | 58 #define OMAP2420_CORE_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x0030) (val) 59 #define OMAP2430_CORE_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x2030) (val) 60 #define OMAP3_CORE1_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x2030) (val) 61 #define OMAP3430_CORE2_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x25d8) (val) 62 #define OMAP3630_CORE2_IOPAD(pa, val) OMAP_IOPAD_OFFSET((pa), 0x25a0) (val) [all...] |
/include/linux/unaligned/ |
H A D | be_byteshift.h | 22 static inline void __put_unaligned_be16(u16 val, u8 *p) argument 24 *p++ = val >> 8; 25 *p++ = val; 28 static inline void __put_unaligned_be32(u32 val, u8 *p) argument 30 __put_unaligned_be16(val >> 16, p); 31 __put_unaligned_be16(val, p + 2); 34 static inline void __put_unaligned_be64(u64 val, u8 *p) argument 36 __put_unaligned_be32(val >> 32, p); 37 __put_unaligned_be32(val, p + 4); 55 static inline void put_unaligned_be16(u16 val, voi argument 60 put_unaligned_be32(u32 val, void *p) argument 65 put_unaligned_be64(u64 val, void *p) argument [all...] |
H A D | le_byteshift.h | 22 static inline void __put_unaligned_le16(u16 val, u8 *p) argument 24 *p++ = val; 25 *p++ = val >> 8; 28 static inline void __put_unaligned_le32(u32 val, u8 *p) argument 30 __put_unaligned_le16(val >> 16, p + 2); 31 __put_unaligned_le16(val, p); 34 static inline void __put_unaligned_le64(u64 val, u8 *p) argument 36 __put_unaligned_le32(val >> 32, p + 4); 37 __put_unaligned_le32(val, p); 55 static inline void put_unaligned_le16(u16 val, voi argument 60 put_unaligned_le32(u32 val, void *p) argument 65 put_unaligned_le64(u64 val, void *p) argument [all...] |
H A D | be_memmove.h | 21 static inline void put_unaligned_be16(u16 val, void *p) argument 23 __put_unaligned_memmove16(val, p); 26 static inline void put_unaligned_be32(u32 val, void *p) argument 28 __put_unaligned_memmove32(val, p); 31 static inline void put_unaligned_be64(u64 val, void *p) argument 33 __put_unaligned_memmove64(val, p);
|
H A D | be_struct.h | 21 static inline void put_unaligned_be16(u16 val, void *p) argument 23 __put_unaligned_cpu16(val, p); 26 static inline void put_unaligned_be32(u32 val, void *p) argument 28 __put_unaligned_cpu32(val, p); 31 static inline void put_unaligned_be64(u64 val, void *p) argument 33 __put_unaligned_cpu64(val, p);
|
H A D | le_memmove.h | 21 static inline void put_unaligned_le16(u16 val, void *p) argument 23 __put_unaligned_memmove16(val, p); 26 static inline void put_unaligned_le32(u32 val, void *p) argument 28 __put_unaligned_memmove32(val, p); 31 static inline void put_unaligned_le64(u64 val, void *p) argument 33 __put_unaligned_memmove64(val, p);
|
H A D | le_struct.h | 21 static inline void put_unaligned_le16(u16 val, void *p) argument 23 __put_unaligned_cpu16(val, p); 26 static inline void put_unaligned_le32(u32 val, void *p) argument 28 __put_unaligned_cpu32(val, p); 31 static inline void put_unaligned_le64(u64 val, void *p) argument 33 __put_unaligned_cpu64(val, p);
|
H A D | memmove.h | 30 static inline void __put_unaligned_memmove16(u16 val, void *p) argument 32 memmove(p, &val, 2); 35 static inline void __put_unaligned_memmove32(u32 val, void *p) argument 37 memmove(p, &val, 4); 40 static inline void __put_unaligned_memmove64(u64 val, void *p) argument 42 memmove(p, &val, 8);
|
H A D | access_ok.h | 37 static inline void put_unaligned_le16(u16 val, void *p) argument 39 *((__le16 *)p) = cpu_to_le16(val); 42 static inline void put_unaligned_le32(u32 val, void *p) argument 44 *((__le32 *)p) = cpu_to_le32(val); 47 static inline void put_unaligned_le64(u64 val, void *p) argument 49 *((__le64 *)p) = cpu_to_le64(val); 52 static inline void put_unaligned_be16(u16 val, void *p) argument 54 *((__be16 *)p) = cpu_to_be16(val); 57 static inline void put_unaligned_be32(u32 val, void *p) argument 59 *((__be32 *)p) = cpu_to_be32(val); 62 put_unaligned_be64(u64 val, void *p) argument [all...] |
H A D | generic.h | 26 #define __put_unaligned_le(val, ptr) ({ \ 30 *(u8 *)__gu_p = (__force u8)(val); \ 33 put_unaligned_le16((__force u16)(val), __gu_p); \ 36 put_unaligned_le32((__force u32)(val), __gu_p); \ 39 put_unaligned_le64((__force u64)(val), __gu_p); \ 47 #define __put_unaligned_be(val, ptr) ({ \ 51 *(u8 *)__gu_p = (__force u8)(val); \ 54 put_unaligned_be16((__force u16)(val), __gu_p); \ 57 put_unaligned_be32((__force u32)(val), __gu_p); \ 60 put_unaligned_be64((__force u64)(val), __gu_ [all...] |
H A D | packed_struct.h | 28 static inline void __put_unaligned_cpu16(u16 val, void *p) argument 31 ptr->x = val; 34 static inline void __put_unaligned_cpu32(u32 val, void *p) argument 37 ptr->x = val; 40 static inline void __put_unaligned_cpu64(u64 val, void *p) argument 43 ptr->x = val;
|
/include/linux/mfd/ |
H A D | ti_am335x_tscadc.h | 48 #define STEPENB(val) ((val) << 0) 49 #define ENB(val) (1 << (val)) 65 #define STEPCONFIG_MODE(val) ((val) << 0) 69 #define STEPCONFIG_AVG(val) ((val) << 2) 78 #define STEPCONFIG_INM(val) ((val) << 1 [all...] |
/include/sound/ |
H A D | emu8000_reg.h | 122 #define EMU8000_CPF_WRITE(emu, chan, val) \ 123 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(0, (chan)), (val)) 124 #define EMU8000_PTRX_WRITE(emu, chan, val) \ 125 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(1, (chan)), (val)) 126 #define EMU8000_CVCF_WRITE(emu, chan, val) \ 127 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(2, (chan)), (val)) 128 #define EMU8000_VTFT_WRITE(emu, chan, val) \ 129 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(3, (chan)), (val)) 130 #define EMU8000_PSST_WRITE(emu, chan, val) \ 131 snd_emu8000_poke_dw((emu), EMU8000_DATA0(emu), EMU8000_CMD(6, (chan)), (val)) [all...] |
/include/net/ |
H A D | inetpeer.h | 69 static inline struct inet_peer *inetpeer_ptr(unsigned long val) argument 71 BUG_ON(val & INETPEER_BASE_BIT); 72 return (struct inet_peer *) val; 75 static inline struct inet_peer_base *inetpeer_base_ptr(unsigned long val) argument 77 if (!(val & INETPEER_BASE_BIT)) 79 val &= ~INETPEER_BASE_BIT; 80 return (struct inet_peer_base *) val; 83 static inline bool inetpeer_ptr_is_peer(unsigned long val) argument 85 return !(val & INETPEER_BASE_BIT); 88 static inline void __inetpeer_ptr_set_peer(unsigned long *val, struc argument 96 unsigned long val = (unsigned long) peer; local 112 unsigned long val = *from; local [all...] |
/include/linux/mfd/da9055/ |
H A D | core.h | 54 int val, ret; local 56 ret = regmap_read(da9055->regmap, reg, &val); 60 return val; 64 unsigned char val) 66 return regmap_write(da9055->regmap, reg, val); 70 unsigned reg_cnt, unsigned char *val) 72 return regmap_bulk_read(da9055->regmap, reg, val, reg_cnt); 76 unsigned reg_cnt, unsigned char *val) 78 return regmap_raw_write(da9055->regmap, reg, val, reg_cnt); 63 da9055_reg_write(struct da9055 *da9055, unsigned char reg, unsigned char val) argument 69 da9055_group_read(struct da9055 *da9055, unsigned char reg, unsigned reg_cnt, unsigned char *val) argument 75 da9055_group_write(struct da9055 *da9055, unsigned char reg, unsigned reg_cnt, unsigned char *val) argument
|
/include/linux/rtc/ |
H A D | sirfsoc_rtciobrg.h | 16 extern void sirfsoc_rtc_iobrg_writel(u32 val, u32 addr);
|
/include/video/ |
H A D | vga.h | 207 static inline void vga_io_w (unsigned short port, unsigned char val) argument 209 outb_p(val, port); 213 unsigned char val) 215 outw(VGA_OUT16VAL (val, reg), port); 223 static inline void vga_mm_w (void __iomem *regbase, unsigned short port, unsigned char val) argument 225 writeb (val, regbase + port); 229 unsigned char reg, unsigned char val) 231 writew (VGA_OUT16VAL (val, reg), regbase + port); 242 static inline void vga_w (void __iomem *regbase, unsigned short port, unsigned char val) argument 245 vga_mm_w (regbase, port, val); 212 vga_io_w_fast(unsigned short port, unsigned char reg, unsigned char val) argument 228 vga_mm_w_fast(void __iomem *regbase, unsigned short port, unsigned char reg, unsigned char val) argument 251 vga_w_fast(void __iomem *regbase, unsigned short port, unsigned char reg, unsigned char val) argument 271 vga_wcrt(void __iomem *regbase, unsigned char reg, unsigned char val) argument 287 vga_io_wcrt(unsigned char reg, unsigned char val) argument 303 vga_mm_wcrt(void __iomem *regbase, unsigned char reg, unsigned char val) argument 324 vga_wseq(void __iomem *regbase, unsigned char reg, unsigned char val) argument 340 vga_io_wseq(unsigned char reg, unsigned char val) argument 356 vga_mm_wseq(void __iomem *regbase, unsigned char reg, unsigned char val) argument 376 vga_wgfx(void __iomem *regbase, unsigned char reg, unsigned char val) argument 392 vga_io_wgfx(unsigned char reg, unsigned char val) argument 408 vga_mm_wgfx(void __iomem *regbase, unsigned char reg, unsigned char val) argument 429 vga_wattr(void __iomem *regbase, unsigned char reg, unsigned char val) argument 441 vga_io_wattr(unsigned char reg, unsigned char val) argument 453 vga_mm_wattr(void __iomem *regbase, unsigned char reg, unsigned char val) argument [all...] |