/linux-4.1.27/drivers/gpu/host1x/hw/ |
D | hw_host1x02_uclass.h | 60 static inline u32 host1x_uclass_incr_syncpt_cond_f(u32 v) in host1x_uclass_incr_syncpt_cond_f() argument 62 return (v & 0xff) << 8; in host1x_uclass_incr_syncpt_cond_f() 64 #define HOST1X_UCLASS_INCR_SYNCPT_COND_F(v) \ argument 65 host1x_uclass_incr_syncpt_cond_f(v) 66 static inline u32 host1x_uclass_incr_syncpt_indx_f(u32 v) in host1x_uclass_incr_syncpt_indx_f() argument 68 return (v & 0xff) << 0; in host1x_uclass_incr_syncpt_indx_f() 70 #define HOST1X_UCLASS_INCR_SYNCPT_INDX_F(v) \ argument 71 host1x_uclass_incr_syncpt_indx_f(v) 78 static inline u32 host1x_uclass_wait_syncpt_indx_f(u32 v) in host1x_uclass_wait_syncpt_indx_f() argument 80 return (v & 0xff) << 24; in host1x_uclass_wait_syncpt_indx_f() [all …]
|
D | hw_host1x04_uclass.h | 60 static inline u32 host1x_uclass_incr_syncpt_cond_f(u32 v) in host1x_uclass_incr_syncpt_cond_f() argument 62 return (v & 0xff) << 8; in host1x_uclass_incr_syncpt_cond_f() 64 #define HOST1X_UCLASS_INCR_SYNCPT_COND_F(v) \ argument 65 host1x_uclass_incr_syncpt_cond_f(v) 66 static inline u32 host1x_uclass_incr_syncpt_indx_f(u32 v) in host1x_uclass_incr_syncpt_indx_f() argument 68 return (v & 0xff) << 0; in host1x_uclass_incr_syncpt_indx_f() 70 #define HOST1X_UCLASS_INCR_SYNCPT_INDX_F(v) \ argument 71 host1x_uclass_incr_syncpt_indx_f(v) 78 static inline u32 host1x_uclass_wait_syncpt_indx_f(u32 v) in host1x_uclass_wait_syncpt_indx_f() argument 80 return (v & 0xff) << 24; in host1x_uclass_wait_syncpt_indx_f() [all …]
|
D | hw_host1x01_uclass.h | 60 static inline u32 host1x_uclass_incr_syncpt_cond_f(u32 v) in host1x_uclass_incr_syncpt_cond_f() argument 62 return (v & 0xff) << 8; in host1x_uclass_incr_syncpt_cond_f() 64 #define HOST1X_UCLASS_INCR_SYNCPT_COND_F(v) \ argument 65 host1x_uclass_incr_syncpt_cond_f(v) 66 static inline u32 host1x_uclass_incr_syncpt_indx_f(u32 v) in host1x_uclass_incr_syncpt_indx_f() argument 68 return (v & 0xff) << 0; in host1x_uclass_incr_syncpt_indx_f() 70 #define HOST1X_UCLASS_INCR_SYNCPT_INDX_F(v) \ argument 71 host1x_uclass_incr_syncpt_indx_f(v) 78 static inline u32 host1x_uclass_wait_syncpt_indx_f(u32 v) in host1x_uclass_wait_syncpt_indx_f() argument 80 return (v & 0xff) << 24; in host1x_uclass_wait_syncpt_indx_f() [all …]
|
D | hw_host1x01_sync.h | 134 static inline u32 host1x_sync_mlock_owner_chid_f(u32 v) in host1x_sync_mlock_owner_chid_f() argument 136 return (v & 0xf) << 8; in host1x_sync_mlock_owner_chid_f() 138 #define HOST1X_SYNC_MLOCK_OWNER_CHID_F(v) \ argument 139 host1x_sync_mlock_owner_chid_f(v) 182 static inline u32 host1x_sync_cfpeek_ctrl_addr_f(u32 v) in host1x_sync_cfpeek_ctrl_addr_f() argument 184 return (v & 0x1ff) << 0; in host1x_sync_cfpeek_ctrl_addr_f() 186 #define HOST1X_SYNC_CFPEEK_CTRL_ADDR_F(v) \ argument 187 host1x_sync_cfpeek_ctrl_addr_f(v) 188 static inline u32 host1x_sync_cfpeek_ctrl_channr_f(u32 v) in host1x_sync_cfpeek_ctrl_channr_f() argument 190 return (v & 0x7) << 16; in host1x_sync_cfpeek_ctrl_channr_f() [all …]
|
D | hw_host1x04_sync.h | 134 static inline u32 host1x_sync_mlock_owner_chid_f(u32 v) in host1x_sync_mlock_owner_chid_f() argument 136 return (v & 0xf) << 8; in host1x_sync_mlock_owner_chid_f() 138 #define HOST1X_SYNC_MLOCK_OWNER_CHID_F(v) \ argument 139 host1x_sync_mlock_owner_chid_f(v) 182 static inline u32 host1x_sync_cfpeek_ctrl_addr_f(u32 v) in host1x_sync_cfpeek_ctrl_addr_f() argument 184 return (v & 0x3ff) << 0; in host1x_sync_cfpeek_ctrl_addr_f() 186 #define HOST1X_SYNC_CFPEEK_CTRL_ADDR_F(v) \ argument 187 host1x_sync_cfpeek_ctrl_addr_f(v) 188 static inline u32 host1x_sync_cfpeek_ctrl_channr_f(u32 v) in host1x_sync_cfpeek_ctrl_channr_f() argument 190 return (v & 0xf) << 16; in host1x_sync_cfpeek_ctrl_channr_f() [all …]
|
D | hw_host1x02_sync.h | 134 static inline u32 host1x_sync_mlock_owner_chid_f(u32 v) in host1x_sync_mlock_owner_chid_f() argument 136 return (v & 0xf) << 8; in host1x_sync_mlock_owner_chid_f() 138 #define HOST1X_SYNC_MLOCK_OWNER_CHID_F(v) \ argument 139 host1x_sync_mlock_owner_chid_f(v) 182 static inline u32 host1x_sync_cfpeek_ctrl_addr_f(u32 v) in host1x_sync_cfpeek_ctrl_addr_f() argument 184 return (v & 0x3ff) << 0; in host1x_sync_cfpeek_ctrl_addr_f() 186 #define HOST1X_SYNC_CFPEEK_CTRL_ADDR_F(v) \ argument 187 host1x_sync_cfpeek_ctrl_addr_f(v) 188 static inline u32 host1x_sync_cfpeek_ctrl_channr_f(u32 v) in host1x_sync_cfpeek_ctrl_channr_f() argument 190 return (v & 0xf) << 16; in host1x_sync_cfpeek_ctrl_channr_f() [all …]
|
/linux-4.1.27/arch/sh/mm/ |
D | flush-sh4.c | 15 reg_size_t aligned_start, v, cnt, end; in sh4__flush_wback_region() local 18 v = aligned_start & ~(L1_CACHE_BYTES-1); in sh4__flush_wback_region() 21 cnt = (end - v) / L1_CACHE_BYTES; in sh4__flush_wback_region() 24 __ocbwb(v); v += L1_CACHE_BYTES; in sh4__flush_wback_region() 25 __ocbwb(v); v += L1_CACHE_BYTES; in sh4__flush_wback_region() 26 __ocbwb(v); v += L1_CACHE_BYTES; in sh4__flush_wback_region() 27 __ocbwb(v); v += L1_CACHE_BYTES; in sh4__flush_wback_region() 28 __ocbwb(v); v += L1_CACHE_BYTES; in sh4__flush_wback_region() 29 __ocbwb(v); v += L1_CACHE_BYTES; in sh4__flush_wback_region() 30 __ocbwb(v); v += L1_CACHE_BYTES; in sh4__flush_wback_region() [all …]
|
D | cache-sh2a.c | 27 static void sh2a_flush_oc_line(unsigned long v, int way) in sh2a_flush_oc_line() argument 29 unsigned long addr = (v & 0x000007f0) | (way << 11); in sh2a_flush_oc_line() 33 if ((data & CACHE_PHYSADDR_MASK) == (v & CACHE_PHYSADDR_MASK)) { in sh2a_flush_oc_line() 40 static void sh2a_invalidate_line(unsigned long cache_addr, unsigned long v) in sh2a_invalidate_line() argument 43 unsigned long addr = (v & 0x000007f0) | SH_CACHE_ASSOC; in sh2a_invalidate_line() 53 unsigned long v; in sh2a__flush_wback_region() local 71 for (v = begin; v < end; v += L1_CACHE_BYTES) { in sh2a__flush_wback_region() 72 unsigned long data = __raw_readl(v); in sh2a__flush_wback_region() 74 __raw_writel(data & ~SH_CACHE_UPDATED, v); in sh2a__flush_wback_region() 79 for (v = begin; v < end; v += L1_CACHE_BYTES) in sh2a__flush_wback_region() [all …]
|
D | cache-sh2.c | 21 unsigned long v; in sh2__flush_wback_region() local 27 for (v = begin; v < end; v+=L1_CACHE_BYTES) { in sh2__flush_wback_region() 28 unsigned long addr = CACHE_OC_ADDRESS_ARRAY | (v & 0x00000ff0); in sh2__flush_wback_region() 32 if ((data & CACHE_PHYSADDR_MASK) == (v & CACHE_PHYSADDR_MASK)) { in sh2__flush_wback_region() 42 unsigned long v; in sh2__flush_purge_region() local 49 for (v = begin; v < end; v+=L1_CACHE_BYTES) in sh2__flush_purge_region() 50 __raw_writel((v & CACHE_PHYSADDR_MASK), in sh2__flush_purge_region() 51 CACHE_OC_ADDRESS_ARRAY | (v & 0x00000ff0) | 0x00000008); in sh2__flush_purge_region() 73 unsigned long v; in sh2__flush_invalidate_region() 80 for (v = begin; v < end; v+=L1_CACHE_BYTES) in sh2__flush_invalidate_region() [all …]
|
D | cache-sh3.c | 37 unsigned long v, j; in sh3__flush_wback_region() local 45 for (v = begin; v < end; v+=L1_CACHE_BYTES) { in sh3__flush_wback_region() 50 p = __pa(v); in sh3__flush_wback_region() 51 addr = addrstart | (v & current_cpu_data.dcache.entry_mask); in sh3__flush_wback_region() 76 unsigned long v; in sh3__flush_purge_region() local 83 for (v = begin; v < end; v+=L1_CACHE_BYTES) { in sh3__flush_purge_region() 86 data = (v & 0xfffffc00); /* _Virtual_ address, ~U, ~V */ in sh3__flush_purge_region() 88 (v & current_cpu_data.dcache.entry_mask) | SH_CACHE_ASSOC; in sh3__flush_purge_region()
|
/linux-4.1.27/arch/frv/include/asm/ |
D | atomic.h | 34 #define atomic_read(v) ACCESS_ONCE((v)->counter) argument 35 #define atomic_set(v, i) (((v)->counter) = (i)) argument 38 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() argument 51 : "+U"(v->counter), "=&r"(val) in atomic_add_return() 59 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() argument 72 : "+U"(v->counter), "=&r"(val) in atomic_sub_return() 82 extern int atomic_add_return(int i, atomic_t *v); 83 extern int atomic_sub_return(int i, atomic_t *v); 87 static inline int atomic_add_negative(int i, atomic_t *v) in atomic_add_negative() argument 89 return atomic_add_return(i, v) < 0; in atomic_add_negative() [all …]
|
/linux-4.1.27/arch/ia64/include/asm/ |
D | atomic.h | 24 #define atomic_read(v) ACCESS_ONCE((v)->counter) argument 25 #define atomic64_read(v) ACCESS_ONCE((v)->counter) argument 27 #define atomic_set(v,i) (((v)->counter) = (i)) argument 28 #define atomic64_set(v,i) (((v)->counter) = (i)) argument 32 ia64_atomic_##op (int i, atomic_t *v) \ 38 CMPXCHG_BUGCHECK(v); \ 39 old = atomic_read(v); \ 41 } while (ia64_cmpxchg(acq, v, old, new, sizeof(atomic_t)) != old); \ 50 #define atomic_add_return(i,v) \ argument 58 ? ia64_fetch_and_add(__ia64_aar_i, &(v)->counter) \ [all …]
|
D | unwind.h | 198 unw_set_gr (struct unw_frame_info *i, int n, unsigned long v, char nat) in unw_set_gr() argument 200 return unw_access_gr(i, n, &v, &nat, 1); in unw_set_gr() 204 unw_set_br (struct unw_frame_info *i, int n, unsigned long v) in unw_set_br() argument 206 return unw_access_br(i, n, &v, 1); in unw_set_br() 210 unw_set_fr (struct unw_frame_info *i, int n, struct ia64_fpreg v) in unw_set_fr() argument 212 return unw_access_fr(i, n, &v, 1); in unw_set_fr() 216 unw_set_ar (struct unw_frame_info *i, int n, unsigned long v) in unw_set_ar() argument 218 return unw_access_ar(i, n, &v, 1); in unw_set_ar() 222 unw_set_pr (struct unw_frame_info *i, unsigned long v) in unw_set_pr() argument 224 return unw_access_pr(i, &v, 1); in unw_set_pr() [all …]
|
D | io.h | 303 #define outb(v,p) __outb(v,p) argument 304 #define outw(v,p) __outw(v,p) argument 305 #define outl(v,p) __outl(v,p) argument 392 #define writeb(v,a) __writeb((v), (a)) argument 393 #define writew(v,a) __writew((v), (a)) argument 394 #define writel(v,a) __writel((v), (a)) argument 395 #define writeq(v,a) __writeq((v), (a)) argument 396 #define writeb_relaxed(v,a) __writeb((v), (a)) argument 397 #define writew_relaxed(v,a) __writew((v), (a)) argument 398 #define writel_relaxed(v,a) __writel((v), (a)) argument [all …]
|
/linux-4.1.27/arch/x86/lib/ |
D | atomic64_386_32.S | 34 LOCK v; 39 UNLOCK v; \ 46 #define v %ecx macro 48 movl (v), %eax 49 movl 4(v), %edx 51 #undef v 53 #define v %esi macro 55 movl %ebx, (v) 56 movl %ecx, 4(v) 58 #undef v [all …]
|
/linux-4.1.27/arch/sparc/include/asm/ |
D | atomic_64.h | 17 #define atomic_read(v) ACCESS_ONCE((v)->counter) argument 18 #define atomic64_read(v) ACCESS_ONCE((v)->counter) argument 20 #define atomic_set(v, i) (((v)->counter) = i) argument 21 #define atomic64_set(v, i) (((v)->counter) = i) argument 40 #define atomic_dec_return(v) atomic_sub_return(1, v) in ATOMIC_OPS() argument 41 #define atomic64_dec_return(v) atomic64_sub_return(1, v) in ATOMIC_OPS() argument 43 #define atomic_inc_return(v) atomic_add_return(1, v) in ATOMIC_OPS() argument 44 #define atomic64_inc_return(v) atomic64_add_return(1, v) in ATOMIC_OPS() argument 54 #define atomic_inc_and_test(v) (atomic_inc_return(v) == 0) in ATOMIC_OPS() argument 55 #define atomic64_inc_and_test(v) (atomic64_inc_return(v) == 0) in ATOMIC_OPS() argument [all …]
|
D | atomic_32.h | 29 #define atomic_read(v) ACCESS_ONCE((v)->counter) argument 31 #define atomic_add(i, v) ((void)atomic_add_return( (int)(i), (v))) argument 32 #define atomic_sub(i, v) ((void)atomic_add_return(-(int)(i), (v))) argument 33 #define atomic_inc(v) ((void)atomic_add_return( 1, (v))) argument 34 #define atomic_dec(v) ((void)atomic_add_return( -1, (v))) argument 36 #define atomic_sub_return(i, v) (atomic_add_return(-(int)(i), (v))) argument 37 #define atomic_inc_return(v) (atomic_add_return( 1, (v))) argument 38 #define atomic_dec_return(v) (atomic_add_return( -1, (v))) argument 40 #define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0) argument 50 #define atomic_inc_and_test(v) (atomic_inc_return(v) == 0) argument [all …]
|
/linux-4.1.27/arch/alpha/include/asm/ |
D | atomic.h | 20 #define atomic_read(v) ACCESS_ONCE((v)->counter) argument 21 #define atomic64_read(v) ACCESS_ONCE((v)->counter) argument 23 #define atomic_set(v,i) ((v)->counter = (i)) argument 24 #define atomic64_set(v,i) ((v)->counter = (i)) argument 33 static __inline__ void atomic_##op(int i, atomic_t * v) \ 44 :"=&r" (temp), "=m" (v->counter) \ 45 :"Ir" (i), "m" (v->counter)); \ 49 static inline int atomic_##op##_return(int i, atomic_t *v) \ 62 :"=&r" (temp), "=m" (v->counter), "=&r" (result) \ 63 :"Ir" (i), "m" (v->counter) : "memory"); \ [all …]
|
/linux-4.1.27/arch/parisc/include/asm/ |
D | atomic.h | 58 static __inline__ void atomic_set(atomic_t *v, int i) in atomic_set() argument 61 _atomic_spin_lock_irqsave(v, flags); in atomic_set() 63 v->counter = i; in atomic_set() 65 _atomic_spin_unlock_irqrestore(v, flags); in atomic_set() 68 static __inline__ int atomic_read(const atomic_t *v) in atomic_read() argument 70 return ACCESS_ONCE((v)->counter); in atomic_read() 74 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) argument 75 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) argument 86 static __inline__ int __atomic_add_unless(atomic_t *v, int a, int u) in __atomic_add_unless() argument 89 c = atomic_read(v); in __atomic_add_unless() [all …]
|
/linux-4.1.27/drivers/md/ |
D | dm-verity.c | 88 struct dm_verity *v; member 114 struct dm_verity *v; member 119 static struct shash_desc *io_hash_desc(struct dm_verity *v, struct dm_verity_io *io) in io_hash_desc() argument 124 static u8 *io_real_digest(struct dm_verity *v, struct dm_verity_io *io) in io_real_digest() argument 126 return (u8 *)(io + 1) + v->shash_descsize; in io_real_digest() 129 static u8 *io_want_digest(struct dm_verity *v, struct dm_verity_io *io) in io_want_digest() argument 131 return (u8 *)(io + 1) + v->shash_descsize + v->digest_size; in io_want_digest() 163 static sector_t verity_map_sector(struct dm_verity *v, sector_t bi_sector) in verity_map_sector() argument 165 return v->data_start + dm_target_offset(v->ti, bi_sector); in verity_map_sector() 174 static sector_t verity_position_at_level(struct dm_verity *v, sector_t block, in verity_position_at_level() argument [all …]
|
/linux-4.1.27/arch/avr32/include/asm/ |
D | atomic.h | 22 #define atomic_read(v) ACCESS_ONCE((v)->counter) argument 23 #define atomic_set(v, i) (((v)->counter) = i) argument 26 static inline int __atomic_##op##_return(int i, atomic_t *v) \ 37 : "=&r" (result), "=o" (v->counter) \ 38 : "m" (v->counter), #asm_con (i) \ 70 static inline int atomic_add_return(int i, atomic_t *v) in ATOMIC_OP_RETURN() 73 return __atomic_sub_return(-i, v); in ATOMIC_OP_RETURN() 75 return __atomic_add_return(i, v); in ATOMIC_OP_RETURN() 85 static inline int atomic_sub_return(int i, atomic_t *v) in atomic_sub_return() argument 88 return __atomic_sub_return(i, v); in atomic_sub_return() [all …]
|
/linux-4.1.27/arch/mips/include/asm/ |
D | atomic.h | 33 #define atomic_read(v) ACCESS_ONCE((v)->counter) argument 42 #define atomic_set(v, i) ((v)->counter = (i)) argument 45 static __inline__ void atomic_##op(int i, atomic_t * v) \ 57 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (v->counter) \ 69 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (v->counter) \ 76 v->counter c_op i; \ 82 static __inline__ int atomic_##op##_return(int i, atomic_t * v) \ 100 "+" GCC_OFF_SMALL_ASM() (v->counter) \ 113 "+" GCC_OFF_SMALL_ASM() (v->counter) \ 122 result = v->counter; \ [all …]
|
/linux-4.1.27/arch/arm/include/asm/ |
D | atomic.h | 30 #define atomic_read(v) ACCESS_ONCE((v)->counter) argument 31 #define atomic_set(v,i) (((v)->counter) = (i)) argument 42 static inline void atomic_##op(int i, atomic_t *v) \ 47 prefetchw(&v->counter); \ 54 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \ 55 : "r" (&v->counter), "Ir" (i) \ 60 static inline int atomic_##op##_return(int i, atomic_t *v) \ 66 prefetchw(&v->counter); \ 74 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \ 75 : "r" (&v->counter), "Ir" (i) \ [all …]
|
D | io.h | 65 #define __raw_writew(v,a) ((void)(__chk_io_ptr(a), *(volatile unsigned short __force *)(a) = (… argument 255 #define outb(v,p) ({ __iowmb(); __raw_writeb(v,__io(p)); }) argument 256 #define outw(v,p) ({ __iowmb(); __raw_writew((__force __u16) \ argument 257 cpu_to_le16(v),__io(p)); }) 258 #define outl(v,p) ({ __iowmb(); __raw_writel((__force __u32) \ argument 259 cpu_to_le32(v),__io(p)); }) 302 #define writeb_relaxed(v,c) __raw_writeb(v,c) argument 303 #define writew_relaxed(v,c) __raw_writew((__force u16) cpu_to_le16(v),c) argument 304 #define writel_relaxed(v,c) __raw_writel((__force u32) cpu_to_le32(v),c) argument 310 #define writeb(v,c) ({ __iowmb(); writeb_relaxed(v,c); }) argument [all …]
|
/linux-4.1.27/drivers/isdn/i4l/ |
D | isdn_v110.c | 93 isdn_v110_stream *v; in isdn_v110_open() local 95 if ((v = kzalloc(sizeof(isdn_v110_stream), GFP_ATOMIC)) == NULL) in isdn_v110_open() 97 v->key = key; in isdn_v110_open() 98 v->nbits = 0; in isdn_v110_open() 100 v->nbits++; in isdn_v110_open() 102 v->nbytes = 8 / v->nbits; in isdn_v110_open() 103 v->decodelen = 0; in isdn_v110_open() 107 v->OnlineFrame = V110_OnMatrix_38400; in isdn_v110_open() 108 v->OfflineFrame = V110_OffMatrix_38400; in isdn_v110_open() 111 v->OnlineFrame = V110_OnMatrix_19200; in isdn_v110_open() [all …]
|
/linux-4.1.27/arch/arm64/include/asm/ |
D | atomic.h | 38 #define atomic_read(v) ACCESS_ONCE((v)->counter) argument 39 #define atomic_set(v,i) (((v)->counter) = (i)) argument 48 static inline void atomic_##op(int i, atomic_t *v) \ 58 : "=&r" (result), "=&r" (tmp), "+Q" (v->counter) \ 63 static inline int atomic_##op##_return(int i, atomic_t *v) \ 73 : "=&r" (result), "=&r" (tmp), "+Q" (v->counter) \ 114 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) argument 116 static inline int __atomic_add_unless(atomic_t *v, int a, int u) in __atomic_add_unless() argument 120 c = atomic_read(v); in __atomic_add_unless() 121 while (c != u && (old = atomic_cmpxchg((v), c, c + a)) != c) in __atomic_add_unless() [all …]
|
D | io.h | 125 #define writeb_relaxed(v,c) ((void)__raw_writeb((v),(c))) argument 126 #define writew_relaxed(v,c) ((void)__raw_writew((__force u16)cpu_to_le16(v),(c))) argument 127 #define writel_relaxed(v,c) ((void)__raw_writel((__force u32)cpu_to_le32(v),(c))) argument 128 #define writeq_relaxed(v,c) ((void)__raw_writeq((__force u64)cpu_to_le64(v),(c))) argument 140 #define writeb(v,c) ({ __iowmb(); writeb_relaxed((v),(c)); }) argument 141 #define writew(v,c) ({ __iowmb(); writew_relaxed((v),(c)); }) argument 142 #define writel(v,c) ({ __iowmb(); writel_relaxed((v),(c)); }) argument 143 #define writeq(v,c) ({ __iowmb(); writeq_relaxed((v),(c)); }) argument 159 #define memset_io(c,v,l) __memset_io((c),(v),(l)) argument 181 #define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force __u16)cpu_to_be16(v), p); }) argument [all …]
|
D | kvm_host.h | 145 #define vcpu_gp_regs(v) (&(v)->arch.ctxt.gp_regs) argument 146 #define vcpu_sys_reg(v,r) ((v)->arch.ctxt.sys_regs[(r)]) argument 151 #define vcpu_cp14(v,r) ((v)->arch.ctxt.copro[(r)]) argument 152 #define vcpu_cp15(v,r) ((v)->arch.ctxt.copro[(r)]) argument 155 #define vcpu_cp15_64_high(v,r) vcpu_cp15((v),(r)) argument 156 #define vcpu_cp15_64_low(v,r) vcpu_cp15((v),(r) + 1) argument 158 #define vcpu_cp15_64_high(v,r) vcpu_cp15((v),(r) + 1) argument 159 #define vcpu_cp15_64_low(v,r) vcpu_cp15((v),(r)) argument
|
/linux-4.1.27/arch/x86/include/asm/ |
D | atomic64_64.h | 19 static inline long atomic64_read(const atomic64_t *v) in atomic64_read() argument 21 return ACCESS_ONCE((v)->counter); in atomic64_read() 31 static inline void atomic64_set(atomic64_t *v, long i) in atomic64_set() argument 33 v->counter = i; in atomic64_set() 43 static inline void atomic64_add(long i, atomic64_t *v) in atomic64_add() argument 46 : "=m" (v->counter) in atomic64_add() 47 : "er" (i), "m" (v->counter)); in atomic64_add() 57 static inline void atomic64_sub(long i, atomic64_t *v) in atomic64_sub() argument 60 : "=m" (v->counter) in atomic64_sub() 61 : "er" (i), "m" (v->counter)); in atomic64_sub() [all …]
|
D | atomic.h | 25 static inline int atomic_read(const atomic_t *v) in atomic_read() argument 27 return ACCESS_ONCE((v)->counter); in atomic_read() 37 static inline void atomic_set(atomic_t *v, int i) in atomic_set() argument 39 v->counter = i; in atomic_set() 49 static inline void atomic_add(int i, atomic_t *v) in atomic_add() argument 52 : "+m" (v->counter) in atomic_add() 63 static inline void atomic_sub(int i, atomic_t *v) in atomic_sub() argument 66 : "+m" (v->counter) in atomic_sub() 79 static inline int atomic_sub_and_test(int i, atomic_t *v) in atomic_sub_and_test() argument 81 GEN_BINARY_RMWcc(LOCK_PREFIX "subl", v->counter, "er", i, "%0", "e"); in atomic_sub_and_test() [all …]
|
D | atomic64_32.h | 74 static inline long long atomic64_cmpxchg(atomic64_t *v, long long o, long long n) in atomic64_cmpxchg() argument 76 return cmpxchg64(&v->counter, o, n); in atomic64_cmpxchg() 87 static inline long long atomic64_xchg(atomic64_t *v, long long n) in atomic64_xchg() argument 93 "S" (v), "b" (low), "c" (high) in atomic64_xchg() 105 static inline void atomic64_set(atomic64_t *v, long long i) in atomic64_set() argument 110 "S" (v), "b" (low), "c" (high) in atomic64_set() 120 static inline long long atomic64_read(const atomic64_t *v) in atomic64_read() argument 123 alternative_atomic64(read, "=&A" (r), "c" (v) : "memory"); in atomic64_read() 134 static inline long long atomic64_add_return(long long i, atomic64_t *v) in atomic64_add_return() argument 137 ASM_OUTPUT2("+A" (i), "+c" (v)), in atomic64_add_return() [all …]
|
D | mutex_64.h | 20 static inline void __mutex_fastpath_lock(atomic_t *v, in __mutex_fastpath_lock() argument 25 : : "m" (v->counter) in __mutex_fastpath_lock() 28 fail_fn(v); in __mutex_fastpath_lock() 33 #define __mutex_fastpath_lock(v, fail_fn) \ argument 37 typecheck(atomic_t *, v); \ 45 : "D" (v) \ 75 static inline void __mutex_fastpath_unlock(atomic_t *v, in __mutex_fastpath_unlock() argument 80 : : "m" (v->counter) in __mutex_fastpath_unlock() 83 fail_fn(v); in __mutex_fastpath_unlock() 88 #define __mutex_fastpath_unlock(v, fail_fn) \ argument [all …]
|
D | archrandom.h | 46 static inline int rdrand_long(unsigned long *v) in rdrand_long() argument 54 : "=r" (ok), "=a" (*v) in rdrand_long() 60 static inline bool rdseed_long(unsigned long *v) in rdseed_long() argument 65 : "=qm" (ok), "=a" (*v)); in rdseed_long() 70 static inline int name(type *v) \ 81 ASM_OUTPUT2("=r" (ok), "=a" (*v)), \ 87 static inline int name(type *v) \ 95 ASM_OUTPUT2("=q" (ok), "=a" (*v))); \ 122 static inline int rdrand_long(unsigned long *v) in rdrand_long() argument 127 static inline bool rdseed_long(unsigned long *v) in rdseed_long() argument
|
D | segment.h | 283 # define get_user_gs(regs) (u16)({ unsigned long v; savesegment(gs, v); v; }) 284 # define set_user_gs(regs, v) loadsegment(gs, (unsigned long)(v)) argument 286 # define lazy_save_gs(v) savesegment(gs, (v)) argument 287 # define lazy_load_gs(v) loadsegment(gs, (v)) argument 290 # define set_user_gs(regs, v) do { (regs)->gs = (v); } while (0) argument 292 # define lazy_save_gs(v) do { } while (0) argument 293 # define lazy_load_gs(v) do { } while (0) argument
|
/linux-4.1.27/arch/tile/include/asm/ |
D | atomic_64.h | 27 #define atomic_set(v, i) ((v)->counter = (i)) argument 35 static inline void atomic_add(int i, atomic_t *v) in atomic_add() argument 37 __insn_fetchadd4((void *)&v->counter, i); in atomic_add() 40 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() argument 44 val = __insn_fetchadd4((void *)&v->counter, i) + i; in atomic_add_return() 49 static inline int __atomic_add_unless(atomic_t *v, int a, int u) in __atomic_add_unless() argument 51 int guess, oldval = v->counter; in __atomic_add_unless() 56 oldval = cmpxchg(&v->counter, guess, guess + a); in __atomic_add_unless() 65 #define atomic64_read(v) ((v)->counter) argument 66 #define atomic64_set(v, i) ((v)->counter = (i)) argument [all …]
|
D | atomic.h | 35 static inline int atomic_read(const atomic_t *v) in atomic_read() argument 37 return ACCESS_ONCE(v->counter); in atomic_read() 47 #define atomic_sub_return(i, v) atomic_add_return((int)(-(i)), (v)) argument 56 #define atomic_sub(i, v) atomic_add((int)(-(i)), (v)) argument 66 #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0) argument 74 #define atomic_inc_return(v) atomic_add_return(1, (v)) argument 82 #define atomic_dec_return(v) atomic_sub_return(1, (v)) argument 90 #define atomic_inc(v) atomic_add(1, (v)) argument 98 #define atomic_dec(v) atomic_sub(1, (v)) argument 106 #define atomic_dec_and_test(v) (atomic_dec_return(v) == 0) argument [all …]
|
D | atomic_32.h | 32 static inline void atomic_add(int i, atomic_t *v) in atomic_add() argument 34 _atomic_xchg_add(&v->counter, i); in atomic_add() 44 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() argument 47 return _atomic_xchg_add(&v->counter, i) + i; in atomic_add_return() 59 static inline int __atomic_add_unless(atomic_t *v, int a, int u) in __atomic_add_unless() argument 62 return _atomic_xchg_add_unless(&v->counter, a, u); in __atomic_add_unless() 75 static inline void atomic_set(atomic_t *v, int n) in atomic_set() argument 77 _atomic_xchg(&v->counter, n); in atomic_set() 94 static inline long long atomic64_read(const atomic64_t *v) in atomic64_read() argument 101 return _atomic64_xchg_add((long long *)&v->counter, 0); in atomic64_read() [all …]
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | atomic.h | 15 static __inline__ int atomic_read(const atomic_t *v) in atomic_read() argument 19 __asm__ __volatile__("lwz%U1%X1 %0,%1" : "=r"(t) : "m"(v->counter)); in atomic_read() 24 static __inline__ void atomic_set(atomic_t *v, int i) in atomic_set() argument 26 __asm__ __volatile__("stw%U0%X0 %1,%0" : "=m"(v->counter) : "r"(i)); in atomic_set() 30 static __inline__ void atomic_##op(int a, atomic_t *v) \ 40 : "=&r" (t), "+m" (v->counter) \ 41 : "r" (a), "r" (&v->counter) \ 46 static __inline__ int atomic_##op##_return(int a, atomic_t *v) \ 59 : "r" (a), "r" (&v->counter) \ 74 #define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0) in ATOMIC_OPS() argument [all …]
|
D | archrandom.h | 8 static inline int arch_get_random_long(unsigned long *v) in arch_get_random_long() argument 11 return ppc_md.get_random_long(v); in arch_get_random_long() 16 static inline int arch_get_random_int(unsigned int *v) in arch_get_random_int() argument 23 *v = val; in arch_get_random_int() 33 static inline int arch_get_random_seed_long(unsigned long *v) in arch_get_random_seed_long() argument 37 static inline int arch_get_random_seed_int(unsigned int *v) in arch_get_random_seed_int() argument 50 int powernv_get_random_long(unsigned long *v); 51 int powernv_get_random_real_mode(unsigned long *v); 54 static inline int powernv_get_random_real_mode(unsigned long *v) { return 0; } in powernv_get_random_real_mode() argument
|
D | pmac_feature.h | 371 #define MACIO_OUT32(r,v) (out_le32(MACIO_FCR32(macio,r), (v))) argument 372 #define MACIO_BIS(r,v) (MACIO_OUT32((r), MACIO_IN32(r) | (v))) argument 373 #define MACIO_BIC(r,v) (MACIO_OUT32((r), MACIO_IN32(r) & ~(v))) argument 375 #define MACIO_OUT8(r,v) (out_8(MACIO_FCR8(macio,r), (v))) argument 391 #define UN_OUT(r,v) (out_be32(UN_REG(r), (v))) argument 392 #define UN_BIS(r,v) (UN_OUT((r), UN_IN(r) | (v))) argument 393 #define UN_BIC(r,v) (UN_OUT((r), UN_IN(r) & ~(v))) argument
|
/linux-4.1.27/include/asm-generic/ |
D | atomic-long.h | 29 atomic64_t *v = (atomic64_t *)l; in atomic_long_read() local 31 return (long)atomic64_read(v); in atomic_long_read() 36 atomic64_t *v = (atomic64_t *)l; in atomic_long_set() local 38 atomic64_set(v, i); in atomic_long_set() 43 atomic64_t *v = (atomic64_t *)l; in atomic_long_inc() local 45 atomic64_inc(v); in atomic_long_inc() 50 atomic64_t *v = (atomic64_t *)l; in atomic_long_dec() local 52 atomic64_dec(v); in atomic_long_dec() 57 atomic64_t *v = (atomic64_t *)l; in atomic_long_add() local 59 atomic64_add(i, v); in atomic_long_add() [all …]
|
D | atomic.h | 43 static inline void atomic_##op(int i, atomic_t *v) \ 47 c = v->counter; \ 48 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 53 static inline int atomic_##op##_return(int i, atomic_t *v) \ 57 c = v->counter; \ 58 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 69 static inline void atomic_##op(int i, atomic_t *v) \ 74 v->counter = v->counter c_op i; \ 79 static inline int atomic_##op##_return(int i, atomic_t *v) \ 85 ret = (v->counter = v->counter c_op i); \ [all …]
|
D | atomic64.h | 21 extern long long atomic64_read(const atomic64_t *v); 22 extern void atomic64_set(atomic64_t *v, long long i); 25 extern void atomic64_##op(long long a, atomic64_t *v); 28 extern long long atomic64_##op##_return(long long a, atomic64_t *v); 39 extern long long atomic64_dec_if_positive(atomic64_t *v); 40 extern long long atomic64_cmpxchg(atomic64_t *v, long long o, long long n); 41 extern long long atomic64_xchg(atomic64_t *v, long long new); 42 extern int atomic64_add_unless(atomic64_t *v, long long a, long long u); 44 #define atomic64_add_negative(a, v) (atomic64_add_return((a), (v)) < 0) argument 45 #define atomic64_inc(v) atomic64_add(1LL, (v)) argument [all …]
|
/linux-4.1.27/Documentation/powerpc/ |
D | cpu_families.txt | 19 v 25 v v 31 v v v 37 v v v 43 v v 49 v v 55 v v 61 v v v 67 v v v 73 v [all …]
|
/linux-4.1.27/lib/ |
D | atomic64_test.c | 19 #define INIT(c) do { atomic64_set(&v, c); r = c; } while (0) 28 atomic64_t v = ATOMIC64_INIT(v0); in test_atomic64() local 30 BUG_ON(v.counter != r); in test_atomic64() 32 atomic64_set(&v, v1); in test_atomic64() 34 BUG_ON(v.counter != r); in test_atomic64() 35 BUG_ON(atomic64_read(&v) != r); in test_atomic64() 38 atomic64_add(onestwos, &v); in test_atomic64() 40 BUG_ON(v.counter != r); in test_atomic64() 43 atomic64_add(-one, &v); in test_atomic64() 45 BUG_ON(v.counter != r); in test_atomic64() [all …]
|
D | iov_iter.c | 84 #define iterate_all_kinds(i, n, v, I, B, K) { \ argument 88 struct bio_vec v; \ 89 iterate_bvec(i, n, v, bvec, skip, (B)) \ 92 struct kvec v; \ 93 iterate_kvec(i, n, v, kvec, skip, (K)) \ 96 struct iovec v; \ 97 iterate_iovec(i, n, v, iov, skip, (I)) \ 101 #define iterate_and_advance(i, n, v, I, B, K) { \ argument 105 struct bio_vec v; \ 106 iterate_bvec(i, n, v, bvec, skip, (B)) \ [all …]
|
D | atomic64.c | 40 static inline raw_spinlock_t *lock_addr(const atomic64_t *v) in lock_addr() argument 42 unsigned long addr = (unsigned long) v; in lock_addr() 49 long long atomic64_read(const atomic64_t *v) in atomic64_read() argument 52 raw_spinlock_t *lock = lock_addr(v); in atomic64_read() 56 val = v->counter; in atomic64_read() 62 void atomic64_set(atomic64_t *v, long long i) in atomic64_set() argument 65 raw_spinlock_t *lock = lock_addr(v); in atomic64_set() 68 v->counter = i; in atomic64_set() 74 void atomic64_##op(long long a, atomic64_t *v) \ 77 raw_spinlock_t *lock = lock_addr(v); \ [all …]
|
/linux-4.1.27/arch/m68k/include/asm/ |
D | atomic.h | 20 #define atomic_read(v) ACCESS_ONCE((v)->counter) argument 21 #define atomic_set(v, i) (((v)->counter) = i) argument 34 static inline void atomic_##op(int i, atomic_t *v) \ 36 __asm__ __volatile__(#asm_op "l %1,%0" : "+m" (*v) : ASM_DI (i));\ 42 static inline int atomic_##op##_return(int i, atomic_t *v) \ 51 : "+m" (*v), "=&d" (t), "=&d" (tmp) \ 52 : "g" (i), "2" (atomic_read(v))); \ 59 static inline int atomic_##op##_return(int i, atomic_t * v) \ 65 t = (v->counter c_op i); \ 84 static inline void atomic_inc(atomic_t *v) in atomic_inc() argument [all …]
|
/linux-4.1.27/arch/arc/include/asm/ |
D | atomic.h | 20 #define atomic_read(v) ((v)->counter) argument 24 #define atomic_set(v, i) (((v)->counter) = (i)) argument 27 static inline void atomic_##op(int i, atomic_t *v) \ 37 : "r"(&v->counter), "ir"(i) \ 42 static inline int atomic_##op##_return(int i, atomic_t *v) \ 58 : "r"(&v->counter), "ir"(i) \ 71 #define atomic_set(v, i) (((v)->counter) = (i)) argument 75 static inline void atomic_set(atomic_t *v, int i) in atomic_set() argument 89 v->counter = i; in atomic_set() 101 static inline void atomic_##op(int i, atomic_t *v) \ [all …]
|
/linux-4.1.27/arch/xtensa/include/asm/ |
D | atomic.h | 50 #define atomic_read(v) ACCESS_ONCE((v)->counter) argument 59 #define atomic_set(v,i) ((v)->counter = (i)) argument 63 static inline void atomic_##op(int i, atomic_t * v) \ 75 : "a" (i), "a" (v) \ 81 static inline int atomic_##op##_return(int i, atomic_t * v) \ 94 : "a" (i), "a" (v) \ 104 static inline void atomic_##op(int i, atomic_t * v) \ 116 : "a" (i), "a" (v) \ 122 static inline int atomic_##op##_return(int i, atomic_t * v) \ 134 : "a" (i), "a" (v) \ [all …]
|
/linux-4.1.27/arch/mips/include/asm/lasat/ |
D | lasat.h | 103 #define LASAT_W0_DSCTYPE(v) (((v)) & 0xf) argument 104 #define LASAT_W0_BMID(v) (((v) >> 0x04) & 0xf) argument 105 #define LASAT_W0_CPUTYPE(v) (((v) >> 0x08) & 0xf) argument 106 #define LASAT_W0_BUSSPEED(v) (((v) >> 0x0c) & 0xf) argument 107 #define LASAT_W0_CPUCLK(v) (((v) >> 0x10) & 0xf) argument 108 #define LASAT_W0_SDRAMBANKSZ(v) (((v) >> 0x14) & 0xf) argument 109 #define LASAT_W0_SDRAMBANKS(v) (((v) >> 0x18) & 0xf) argument 110 #define LASAT_W0_L2CACHE(v) (((v) >> 0x1c) & 0xf) argument 112 #define LASAT_W1_EDHAC(v) (((v)) & 0xf) argument 113 #define LASAT_W1_HIFN(v) (((v) >> 0x04) & 0x1) argument [all …]
|
/linux-4.1.27/drivers/target/sbp/ |
D | sbp_target.h | 18 #define ORB_NOTIFY(v) (((v) >> 31) & 0x01) argument 19 #define ORB_REQUEST_FORMAT(v) (((v) >> 29) & 0x03) argument 21 #define MANAGEMENT_ORB_FUNCTION(v) (((v) >> 16) & 0x0f) argument 33 #define LOGIN_ORB_EXCLUSIVE(v) (((v) >> 28) & 0x01) argument 34 #define LOGIN_ORB_RESERVED(v) (((v) >> 24) & 0x0f) argument 35 #define LOGIN_ORB_RECONNECT(v) (((v) >> 20) & 0x0f) argument 36 #define LOGIN_ORB_LUN(v) (((v) >> 0) & 0xffff) argument 37 #define LOGIN_ORB_PASSWORD_LENGTH(v) (((v) >> 16) & 0xffff) argument 38 #define LOGIN_ORB_RESPONSE_LENGTH(v) (((v) >> 0) & 0xffff) argument 40 #define RECONNECT_ORB_LOGIN_ID(v) (((v) >> 0) & 0xffff) argument [all …]
|
/linux-4.1.27/drivers/iommu/ |
D | msm_iommu_hw-8xxx.h | 33 #define SET_GLOBAL_REG_N(b, n, r, v) SET_GLOBAL_REG(b, ((r) + (n << 2)), (v)) argument 41 #define SET_GLOBAL_FIELD(b, r, F, v) \ argument 42 SET_FIELD(((b) + (r)), F##_MASK, F##_SHIFT, (v)) 43 #define SET_CONTEXT_FIELD(b, c, r, F, v) \ argument 44 SET_FIELD(((b) + (r) + ((c) << CTX_SHIFT)), F##_MASK, F##_SHIFT, (v)) 48 #define SET_FIELD(addr, mask, shift, v) \ argument 51 writel((t & ~((mask) << (shift))) + (((v) & (mask)) << (shift)), addr);\ 97 #define SET_M2VCBR_N(b, N, v) SET_GLOBAL_REG_N(M2VCBR_N, N, (b), (v)) argument 98 #define SET_CBACR_N(b, N, v) SET_GLOBAL_REG_N(CBACR_N, N, (b), (v)) argument 99 #define SET_TLBRSW(b, v) SET_GLOBAL_REG(TLBRSW, (b), (v)) argument [all …]
|
/linux-4.1.27/arch/hexagon/include/asm/ |
D | atomic.h | 33 static inline void atomic_set(atomic_t *v, int new) in atomic_set() argument 40 : "r" (&v->counter), "r" (new) in atomic_set() 51 #define atomic_read(v) ((v)->counter) argument 58 #define atomic_xchg(v, new) (xchg(&((v)->counter), (new))) argument 78 static inline int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() argument 90 : "r" (&v->counter), "r" (old), "r" (new) in atomic_cmpxchg() 98 static inline void atomic_##op(int i, atomic_t *v) \ 108 : "r" (&v->counter), "r" (i) \ 114 static inline int atomic_##op##_return(int i, atomic_t *v) \ 124 : "r" (&v->counter), "r" (i) \ [all …]
|
/linux-4.1.27/arch/sh/include/asm/ |
D | atomic.h | 17 #define atomic_read(v) ACCESS_ONCE((v)->counter) argument 18 #define atomic_set(v,i) ((v)->counter = (i)) argument 28 #define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0) argument 29 #define atomic_dec_return(v) atomic_sub_return(1, (v)) argument 30 #define atomic_inc_return(v) atomic_add_return(1, (v)) argument 31 #define atomic_inc_and_test(v) (atomic_inc_return(v) == 0) argument 32 #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0) argument 33 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0) argument 35 #define atomic_inc(v) atomic_add(1, (v)) argument 36 #define atomic_dec(v) atomic_sub(1, (v)) argument [all …]
|
D | atomic-irq.h | 13 static inline void atomic_##op(int i, atomic_t *v) \ 18 v->counter c_op i; \ 23 static inline int atomic_##op##_return(int i, atomic_t *v) \ 28 temp = v->counter; \ 30 v->counter = temp; \ 45 static inline void atomic_clear_mask(unsigned int mask, atomic_t *v) in atomic_clear_mask() argument 50 v->counter &= ~mask; in atomic_clear_mask() 54 static inline void atomic_set_mask(unsigned int mask, atomic_t *v) in atomic_set_mask() argument 59 v->counter |= mask; in atomic_set_mask()
|
D | io.h | 28 #define __raw_writeb(v,a) (__chk_io_ptr(a), *(volatile u8 __force *)(a) = (v)) argument 29 #define __raw_writew(v,a) (__chk_io_ptr(a), *(volatile u16 __force *)(a) = (v)) argument 30 #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = (v)) argument 31 #define __raw_writeq(v,a) (__chk_io_ptr(a), *(volatile u64 __force *)(a) = (v)) argument 43 #define writeb_relaxed(v,c) ((void)__raw_writeb((__force u8)ioswabb(v),c)) argument 44 #define writew_relaxed(v,c) ((void)__raw_writew((__force u16)ioswabw(v),c)) argument 45 #define writel_relaxed(v,c) ((void)__raw_writel((__force u32)ioswabl(v),c)) argument 46 #define writeq_relaxed(v,c) ((void)__raw_writeq((__force u64)ioswabq(v),c)) argument 53 #define writeb(v,a) ({ wmb(); writeb_relaxed((v),(a)); }) argument 54 #define writew(v,a) ({ wmb(); writew_relaxed((v),(a)); }) argument [all …]
|
D | atomic-grb.h | 5 static inline void atomic_##op(int i, atomic_t *v) \ 19 "+r" (v) \ 25 static inline int atomic_##op##_return(int i, atomic_t *v) \ 39 "+r" (v) \ 55 static inline void atomic_clear_mask(unsigned int mask, atomic_t *v) in ATOMIC_OPS() 70 "+r" (v) in ATOMIC_OPS() 75 static inline void atomic_set_mask(unsigned int mask, atomic_t *v) in atomic_set_mask() argument 89 "+r" (v) in atomic_set_mask()
|
D | atomic-llsc.h | 19 static inline void atomic_##op(int i, atomic_t *v) \ 29 : "r" (i), "r" (&v->counter) \ 34 static inline int atomic_##op##_return(int i, atomic_t *v) \ 45 : "r" (i), "r" (&v->counter) \ 60 static inline void atomic_clear_mask(unsigned int mask, atomic_t *v) in ATOMIC_OPS() 70 : "r" (~mask), "r" (&v->counter) in ATOMIC_OPS() 74 static inline void atomic_set_mask(unsigned int mask, atomic_t *v) in atomic_set_mask() argument 84 : "r" (mask), "r" (&v->counter) in atomic_set_mask()
|
/linux-4.1.27/include/linux/ |
D | atomic.h | 15 static inline int atomic_add_unless(atomic_t *v, int a, int u) in atomic_add_unless() argument 17 return __atomic_add_unless(v, a, u) != u; in atomic_add_unless() 28 #define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0) argument 44 static inline int atomic_inc_not_zero_hint(atomic_t *v, int hint) in atomic_inc_not_zero_hint() argument 50 return atomic_inc_not_zero(v); in atomic_inc_not_zero_hint() 53 val = atomic_cmpxchg(v, c, c + 1); in atomic_inc_not_zero_hint() 66 int v, v1; in atomic_inc_unless_negative() local 67 for (v = 0; v >= 0; v = v1) { in atomic_inc_unless_negative() 68 v1 = atomic_cmpxchg(p, v, v + 1); in atomic_inc_unless_negative() 69 if (likely(v1 == v)) in atomic_inc_unless_negative() [all …]
|
/linux-4.1.27/sound/pci/emu10k1/ |
D | emu10k1_patch.c | 52 if (sp->v.size == 0) { in snd_emu10k1_sample_new() 54 "emu: rom font for sample %d\n", sp->v.sample); in snd_emu10k1_sample_new() 59 sp->v.end -= sp->v.start; in snd_emu10k1_sample_new() 60 sp->v.loopstart -= sp->v.start; in snd_emu10k1_sample_new() 61 sp->v.loopend -= sp->v.start; in snd_emu10k1_sample_new() 62 sp->v.start = 0; in snd_emu10k1_sample_new() 65 sampleend = sp->v.end; in snd_emu10k1_sample_new() 66 if (sampleend > sp->v.size) in snd_emu10k1_sample_new() 67 sampleend = sp->v.size; in snd_emu10k1_sample_new() 68 loopend = sp->v.loopend; in snd_emu10k1_sample_new() [all …]
|
/linux-4.1.27/arch/mn10300/include/asm/ |
D | atomic.h | 37 #define atomic_read(v) (ACCESS_ONCE((v)->counter)) argument 46 #define atomic_set(v, i) (((v)->counter) = (i)) argument 49 static inline void atomic_##op(int i, atomic_t *v) \ 62 : "=&r"(status), "=&r"(retval), "=m"(v->counter) \ 63 : "a"(ATOMIC_OPS_BASE_ADDR), "r"(&v->counter), "r"(i) \ 68 static inline int atomic_##op##_return(int i, atomic_t *v) \ 81 : "=&r"(status), "=&r"(retval), "=m"(v->counter) \ 82 : "a"(ATOMIC_OPS_BASE_ADDR), "r"(&v->counter), "r"(i) \ 96 static inline int atomic_add_negative(int i, atomic_t *v) in ATOMIC_OPS() 98 return atomic_add_return(i, v) < 0; in ATOMIC_OPS() [all …]
|
/linux-4.1.27/arch/x86/kernel/ |
D | bootflag.c | 22 static int __init parity(u8 v) in parity() argument 28 x ^= (v & 1); in parity() 29 v >>= 1; in parity() 35 static void __init sbf_write(u8 v) in sbf_write() argument 40 v &= ~SBF_PARITY; in sbf_write() 41 if (!parity(v)) in sbf_write() 42 v |= SBF_PARITY; in sbf_write() 45 sbf_port, v); in sbf_write() 48 CMOS_WRITE(v, sbf_port); in sbf_write() 56 u8 v; in sbf_read() local [all …]
|
/linux-4.1.27/arch/mips/include/asm/mach-bcm63xx/ |
D | bcm63xx_io.h | 57 #define bcm_writeb(v, a) (*(volatile unsigned char *) BCM_REGS_VA((a)) = (v)) argument 58 #define bcm_writew(v, a) (*(volatile unsigned short *) BCM_REGS_VA((a)) = (v)) argument 59 #define bcm_writel(v, a) (*(volatile unsigned int *) BCM_REGS_VA((a)) = (v)) argument 60 #define bcm_writeq(v, a) (*(volatile u64 *) BCM_REGS_VA((a)) = (v)) argument 68 #define bcm_rset_writeb(s, v, o) bcm_writeb((v), \ argument 70 #define bcm_rset_writew(s, v, o) bcm_writew((v), \ argument 72 #define bcm_rset_writel(s, v, o) bcm_writel((v), \ argument 79 #define bcm_perf_writel(v, o) bcm_rset_writel(RSET_PERF, (v), (o)) argument 81 #define bcm_timer_writel(v, o) bcm_rset_writel(RSET_TIMER, (v), (o)) argument 83 #define bcm_wdt_writel(v, o) bcm_rset_writel(RSET_WDT, (v), (o)) argument [all …]
|
/linux-4.1.27/arch/metag/include/asm/ |
D | atomic.h | 20 #define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0) argument 22 #define atomic_dec_return(v) atomic_sub_return(1, (v)) argument 23 #define atomic_inc_return(v) atomic_add_return(1, (v)) argument 33 #define atomic_inc_and_test(v) (atomic_inc_return(v) == 0) argument 35 #define atomic_sub_and_test(i, v) (atomic_sub_return((i), (v)) == 0) argument 36 #define atomic_dec_and_test(v) (atomic_sub_return(1, (v)) == 0) argument 38 #define atomic_inc(v) atomic_add(1, (v)) argument 39 #define atomic_dec(v) atomic_sub(1, (v)) argument 41 #define atomic_inc_not_zero(v) atomic_add_unless((v), 1, 0) argument 45 #define atomic_dec_if_positive(v) atomic_sub_if_positive(1, v) argument
|
D | atomic_lock1.h | 11 static inline int atomic_read(const atomic_t *v) in atomic_read() argument 13 return (v)->counter; in atomic_read() 29 static inline int atomic_set(atomic_t *v, int i) in atomic_set() argument 35 v->counter = i; in atomic_set() 41 static inline void atomic_##op(int i, atomic_t *v) \ 47 v->counter c_op i; \ 52 static inline int atomic_##op##_return(int i, atomic_t *v) \ 58 result = v->counter; \ 61 v->counter = result; \ 76 static inline void atomic_clear_mask(unsigned int mask, atomic_t *v) in atomic_clear_mask() argument [all …]
|
D | atomic_lnkget.h | 6 #define atomic_set(v, i) ((v)->counter = (i)) argument 18 static inline int atomic_read(const atomic_t *v) in atomic_read() argument 25 : "da" (&v->counter)); in atomic_read() 31 static inline void atomic_##op(int i, atomic_t *v) \ 44 : "da" (&v->counter), "bd" (i) \ 49 static inline int atomic_##op##_return(int i, atomic_t *v) \ 64 : "da" (&v->counter), "bd" (i) \ 81 static inline void atomic_clear_mask(unsigned int mask, atomic_t *v) in ATOMIC_OPS() 94 : "da" (&v->counter), "bd" (~mask) in ATOMIC_OPS() 98 static inline void atomic_set_mask(unsigned int mask, atomic_t *v) in atomic_set_mask() argument [all …]
|
/linux-4.1.27/arch/x86/kvm/ |
D | irq.c | 44 static int kvm_cpu_has_extint(struct kvm_vcpu *v) in kvm_cpu_has_extint() argument 46 if (kvm_apic_accept_pic_intr(v)) in kvm_cpu_has_extint() 47 return pic_irqchip(v->kvm)->output; /* PIC */ in kvm_cpu_has_extint() 58 int kvm_cpu_has_injectable_intr(struct kvm_vcpu *v) in kvm_cpu_has_injectable_intr() argument 60 if (!irqchip_in_kernel(v->kvm)) in kvm_cpu_has_injectable_intr() 61 return v->arch.interrupt.pending; in kvm_cpu_has_injectable_intr() 63 if (kvm_cpu_has_extint(v)) in kvm_cpu_has_injectable_intr() 66 if (kvm_apic_vid_enabled(v->kvm)) in kvm_cpu_has_injectable_intr() 69 return kvm_apic_has_interrupt(v) != -1; /* LAPIC */ in kvm_cpu_has_injectable_intr() 76 int kvm_cpu_has_interrupt(struct kvm_vcpu *v) in kvm_cpu_has_interrupt() argument [all …]
|
/linux-4.1.27/arch/tile/lib/ |
D | atomic_32.c | 26 int *__atomic_hashed_lock(volatile void *v) in __atomic_hashed_lock() argument 33 unsigned long ptr = __insn_mm((unsigned long)v >> 1, in __atomic_hashed_lock() 55 static inline int *__atomic_setup(volatile void *v) in __atomic_setup() argument 58 *(volatile int *)v; in __atomic_setup() 59 return __atomic_hashed_lock(v); in __atomic_setup() 62 int _atomic_xchg(int *v, int n) in _atomic_xchg() argument 64 return __atomic_xchg(v, __atomic_setup(v), n).val; in _atomic_xchg() 68 int _atomic_xchg_add(int *v, int i) in _atomic_xchg_add() argument 70 return __atomic_xchg_add(v, __atomic_setup(v), i).val; in _atomic_xchg_add() 74 int _atomic_xchg_add_unless(int *v, int a, int u) in _atomic_xchg_add_unless() argument [all …]
|
D | memcpy_user_64.c | 28 #define _ST(p, inst, v) \ argument 37 : "=m" (*(p)) : "r" (v), "r" (n)); \ 55 #define ST1(p, v) _ST((p), st1, (v)) argument 56 #define ST2(p, v) _ST((p), st2, (v)) argument 57 #define ST4(p, v) _ST((p), st4, (v)) argument 58 #define ST8(p, v) _ST((p), st, (v)) argument 77 #define ST1(p, v) _ST((p), st1, (v)) argument 78 #define ST2(p, v) _ST((p), st2, (v)) argument 79 #define ST4(p, v) _ST((p), st4, (v)) argument 80 #define ST8(p, v) _ST((p), st, (v)) argument
|
/linux-4.1.27/arch/mips/include/asm/netlogic/xlr/ |
D | fmn.h | 161 #define nlm_write_c2_cc0(s, v) __write_32bit_c2_register($16, s, v) argument 162 #define nlm_write_c2_cc1(s, v) __write_32bit_c2_register($17, s, v) argument 163 #define nlm_write_c2_cc2(s, v) __write_32bit_c2_register($18, s, v) argument 164 #define nlm_write_c2_cc3(s, v) __write_32bit_c2_register($19, s, v) argument 165 #define nlm_write_c2_cc4(s, v) __write_32bit_c2_register($20, s, v) argument 166 #define nlm_write_c2_cc5(s, v) __write_32bit_c2_register($21, s, v) argument 167 #define nlm_write_c2_cc6(s, v) __write_32bit_c2_register($22, s, v) argument 168 #define nlm_write_c2_cc7(s, v) __write_32bit_c2_register($23, s, v) argument 169 #define nlm_write_c2_cc8(s, v) __write_32bit_c2_register($24, s, v) argument 170 #define nlm_write_c2_cc9(s, v) __write_32bit_c2_register($25, s, v) argument [all …]
|
/linux-4.1.27/sound/isa/sb/ |
D | emu8000_patch.c | 162 if (sp->v.size == 0) in snd_emu8000_sample_new() 166 if (sp->v.loopstart > sp->v.loopend) { in snd_emu8000_sample_new() 167 int tmp = sp->v.loopstart; in snd_emu8000_sample_new() 168 sp->v.loopstart = sp->v.loopend; in snd_emu8000_sample_new() 169 sp->v.loopend = tmp; in snd_emu8000_sample_new() 173 truesize = sp->v.size; in snd_emu8000_sample_new() 174 if (sp->v.mode_flags & (SNDRV_SFNT_SAMPLE_BIDIR_LOOP|SNDRV_SFNT_SAMPLE_REVERSE_LOOP)) in snd_emu8000_sample_new() 175 truesize += sp->v.loopend - sp->v.loopstart; in snd_emu8000_sample_new() 176 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_NO_BLANK) in snd_emu8000_sample_new() 186 if (sp->v.mode_flags & SNDRV_SFNT_SAMPLE_8BITS) { in snd_emu8000_sample_new() [all …]
|
/linux-4.1.27/arch/s390/include/asm/ |
D | atomic.h | 73 static inline int atomic_read(const atomic_t *v) in atomic_read() argument 79 : "=d" (c) : "Q" (v->counter)); in atomic_read() 83 static inline void atomic_set(atomic_t *v, int i) in atomic_set() argument 87 : "=Q" (v->counter) : "d" (i)); in atomic_set() 90 static inline int atomic_add_return(int i, atomic_t *v) in atomic_add_return() argument 92 return __ATOMIC_LOOP(v, i, __ATOMIC_ADD, __ATOMIC_BARRIER) + i; in atomic_add_return() 95 static inline void atomic_add(int i, atomic_t *v) in atomic_add() argument 101 : "+Q" (v->counter) in atomic_add() 107 __ATOMIC_LOOP(v, i, __ATOMIC_ADD, __ATOMIC_NO_BARRIER); in atomic_add() 121 static inline void atomic_clear_mask(unsigned int mask, atomic_t *v) in atomic_clear_mask() argument [all …]
|
/linux-4.1.27/sound/soc/mxs/ |
D | mxs-saif.h | 33 #define BF_SAIF_CTRL_BITCLK_MULT_RATE(v) \ argument 34 (((v) << 27) & BM_SAIF_CTRL_BITCLK_MULT_RATE) 43 #define BF_SAIF_CTRL_DMAWAIT_COUNT(v) \ argument 44 (((v) << 16) & BM_SAIF_CTRL_DMAWAIT_COUNT) 47 #define BF_SAIF_CTRL_CHANNEL_NUM_SELECT(v) \ argument 48 (((v) << 14) & BM_SAIF_CTRL_CHANNEL_NUM_SELECT) 57 #define BF_SAIF_CTRL_WORD_LENGTH(v) \ argument 58 (((v) << 4) & BM_SAIF_CTRL_WORD_LENGTH) 68 #define BF_SAIF_STAT_RSRVD2(v) \ argument 69 (((v) << 17) & BM_SAIF_STAT_RSRVD2) [all …]
|
/linux-4.1.27/include/net/ |
D | red.h | 159 static inline void red_set_vars(struct red_vars *v) in red_set_vars() argument 165 v->qavg = 0; in red_set_vars() 167 v->qcount = -1; in red_set_vars() 208 static inline int red_is_idling(const struct red_vars *v) in red_is_idling() argument 210 return v->qidlestart.tv64 != 0; in red_is_idling() 213 static inline void red_start_of_idle_period(struct red_vars *v) in red_start_of_idle_period() argument 215 v->qidlestart = ktime_get(); in red_start_of_idle_period() 218 static inline void red_end_of_idle_period(struct red_vars *v) in red_end_of_idle_period() argument 220 v->qidlestart.tv64 = 0; in red_end_of_idle_period() 223 static inline void red_restart(struct red_vars *v) in red_restart() argument [all …]
|
/linux-4.1.27/drivers/net/ethernet/altera/ |
D | altera_tse.h | 63 #define GET_BIT_VALUE(v, bit) (((v) >> (bit)) & 0x1) argument 83 #define MAC_CMDCFG_TX_ADDR_SEL(v) (((v) & 0x7) << 16) argument 95 #define MAC_CMDCFG_TX_ENA_GET(v) GET_BIT_VALUE(v, 0) argument 96 #define MAC_CMDCFG_RX_ENA_GET(v) GET_BIT_VALUE(v, 1) argument 97 #define MAC_CMDCFG_XON_GEN_GET(v) GET_BIT_VALUE(v, 2) argument 98 #define MAC_CMDCFG_ETH_SPEED_GET(v) GET_BIT_VALUE(v, 3) argument 99 #define MAC_CMDCFG_PROMIS_EN_GET(v) GET_BIT_VALUE(v, 4) argument 100 #define MAC_CMDCFG_PAD_EN_GET(v) GET_BIT_VALUE(v, 5) argument 101 #define MAC_CMDCFG_CRC_FWD_GET(v) GET_BIT_VALUE(v, 6) argument 102 #define MAC_CMDCFG_PAUSE_FWD_GET(v) GET_BIT_VALUE(v, 7) argument [all …]
|
D | altera_msgdmahw.h | 116 #define MSGDMA_CSR_STAT_BUSY_GET(v) GET_BIT_VALUE(v, 0) argument 117 #define MSGDMA_CSR_STAT_DESC_BUF_EMPTY_GET(v) GET_BIT_VALUE(v, 1) argument 118 #define MSGDMA_CSR_STAT_DESC_BUF_FULL_GET(v) GET_BIT_VALUE(v, 2) argument 119 #define MSGDMA_CSR_STAT_RESP_BUF_EMPTY_GET(v) GET_BIT_VALUE(v, 3) argument 120 #define MSGDMA_CSR_STAT_RESP_BUF_FULL_GET(v) GET_BIT_VALUE(v, 4) argument 121 #define MSGDMA_CSR_STAT_STOPPED_GET(v) GET_BIT_VALUE(v, 5) argument 122 #define MSGDMA_CSR_STAT_RESETTING_GET(v) GET_BIT_VALUE(v, 6) argument 123 #define MSGDMA_CSR_STAT_STOPPED_ON_ERR_GET(v) GET_BIT_VALUE(v, 7) argument 124 #define MSGDMA_CSR_STAT_STOPPED_ON_EARLY_GET(v) GET_BIT_VALUE(v, 8) argument 125 #define MSGDMA_CSR_STAT_IRQ_GET(v) GET_BIT_VALUE(v, 9) argument [all …]
|
/linux-4.1.27/arch/m32r/include/asm/ |
D | atomic.h | 31 #define atomic_read(v) ACCESS_ONCE((v)->counter) argument 40 #define atomic_set(v,i) (((v)->counter) = (i)) argument 49 static __inline__ void atomic_##op(int i, atomic_t *v) \ 62 : "r" (&v->counter), "r" (i) \ 70 static __inline__ int atomic_##op##_return(int i, atomic_t *v) \ 83 : "r" (&v->counter), "r" (i) \ 110 #define atomic_sub_and_test(i,v) (atomic_sub_return((i), (v)) == 0) in ATOMIC_OPS() argument 118 static __inline__ int atomic_inc_return(atomic_t *v) in ATOMIC_OPS() 131 : "r" (&v->counter) in ATOMIC_OPS() 146 static __inline__ int atomic_dec_return(atomic_t *v) in atomic_dec_return() argument [all …]
|
/linux-4.1.27/arch/arm/mach-omap2/ |
D | prm33xx.c | 45 u32 v; in am33xx_prm_rmw_reg_bits() local 47 v = am33xx_prm_read_reg(inst, idx); in am33xx_prm_rmw_reg_bits() 48 v &= ~mask; in am33xx_prm_rmw_reg_bits() 49 v |= bits; in am33xx_prm_rmw_reg_bits() 50 am33xx_prm_write_reg(v, inst, idx); in am33xx_prm_rmw_reg_bits() 52 return v; in am33xx_prm_rmw_reg_bits() 70 u32 v; in am33xx_prm_is_hardreset_asserted() local 72 v = am33xx_prm_read_reg(inst, rstctrl_offs); in am33xx_prm_is_hardreset_asserted() 73 v &= 1 << shift; in am33xx_prm_is_hardreset_asserted() 74 v >>= shift; in am33xx_prm_is_hardreset_asserted() [all …]
|
D | cm33xx.c | 65 u32 v; in am33xx_cm_rmw_reg_bits() local 67 v = am33xx_cm_read_reg(inst, idx); in am33xx_cm_rmw_reg_bits() 68 v &= ~mask; in am33xx_cm_rmw_reg_bits() 69 v |= bits; in am33xx_cm_rmw_reg_bits() 70 am33xx_cm_write_reg(v, inst, idx); in am33xx_cm_rmw_reg_bits() 72 return v; in am33xx_cm_rmw_reg_bits() 85 u32 v = am33xx_cm_read_reg(inst, clkctrl_offs); in _clkctrl_idlest() local 86 v &= AM33XX_IDLEST_MASK; in _clkctrl_idlest() 87 v >>= AM33XX_IDLEST_SHIFT; in _clkctrl_idlest() 88 return v; in _clkctrl_idlest() [all …]
|
D | cm2xxx.c | 48 u32 v; in _write_clktrctrl() local 50 v = omap2_cm_read_mod_reg(module, OMAP2_CM_CLKSTCTRL); in _write_clktrctrl() 51 v &= ~mask; in _write_clktrctrl() 52 v |= c << __ffs(mask); in _write_clktrctrl() 53 omap2_cm_write_mod_reg(v, module, OMAP2_CM_CLKSTCTRL); in _write_clktrctrl() 58 u32 v; in omap2xxx_cm_is_clkdm_in_hwsup() local 60 v = omap2_cm_read_mod_reg(module, OMAP2_CM_CLKSTCTRL); in omap2xxx_cm_is_clkdm_in_hwsup() 61 v &= mask; in omap2xxx_cm_is_clkdm_in_hwsup() 62 v >>= __ffs(mask); in omap2xxx_cm_is_clkdm_in_hwsup() 64 return (v == OMAP24XX_CLKSTCTRL_ENABLE_AUTO) ? 1 : 0; in omap2xxx_cm_is_clkdm_in_hwsup() [all …]
|
D | prm44xx.c | 104 u32 v; in omap4_prm_rmw_inst_reg_bits() local 106 v = omap4_prm_read_inst_reg(inst, reg); in omap4_prm_rmw_inst_reg_bits() 107 v &= ~mask; in omap4_prm_rmw_inst_reg_bits() 108 v |= bits; in omap4_prm_rmw_inst_reg_bits() 109 omap4_prm_write_inst_reg(v, inst, reg); in omap4_prm_rmw_inst_reg_bits() 111 return v; in omap4_prm_rmw_inst_reg_bits() 366 u32 v; in omap44xx_prm_read_reset_sources() local 373 v = omap4_prm_read_inst_reg(inst, in omap44xx_prm_read_reset_sources() 378 if (v & (1 << p->reg_shift)) in omap44xx_prm_read_reset_sources() 430 u32 v; in omap4_pwrdm_read_next_pwrst() local [all …]
|
D | cminst44xx.c | 89 u32 v = omap4_cminst_read_inst_reg(part, inst, clkctrl_offs); in _clkctrl_idlest() local 90 v &= OMAP4430_IDLEST_MASK; in _clkctrl_idlest() 91 v >>= OMAP4430_IDLEST_SHIFT; in _clkctrl_idlest() 92 return v; in _clkctrl_idlest() 106 u32 v; in _is_module_ready() local 108 v = _clkctrl_idlest(part, inst, clkctrl_offs); in _is_module_ready() 110 return (v == CLKCTRL_IDLEST_FUNCTIONAL || in _is_module_ready() 111 v == CLKCTRL_IDLEST_INTERFACE_IDLE) ? true : false; in _is_module_ready() 136 u32 v; in omap4_cminst_rmw_inst_reg_bits() local 138 v = omap4_cminst_read_inst_reg(part, inst, idx); in omap4_cminst_rmw_inst_reg_bits() [all …]
|
D | dpll3xxx.c | 46 u32 v; in _omap3_dpll_write_clken() local 50 v = omap2_clk_readl(clk, dd->control_reg); in _omap3_dpll_write_clken() 51 v &= ~dd->enable_mask; in _omap3_dpll_write_clken() 52 v |= clken_bits << __ffs(dd->enable_mask); in _omap3_dpll_write_clken() 53 omap2_clk_writel(v, clk, dd->control_reg); in _omap3_dpll_write_clken() 301 u32 v; in omap3_noncore_dpll_program() local 311 v = omap2_clk_readl(clk, dd->control_reg); in omap3_noncore_dpll_program() 312 v &= ~dd->freqsel_mask; in omap3_noncore_dpll_program() 313 v |= freqsel << __ffs(dd->freqsel_mask); in omap3_noncore_dpll_program() 314 omap2_clk_writel(v, clk, dd->control_reg); in omap3_noncore_dpll_program() [all …]
|
D | prminst44xx.c | 80 u32 v; in omap4_prminst_rmw_inst_reg_bits() local 82 v = omap4_prminst_read_inst_reg(part, inst, idx); in omap4_prminst_rmw_inst_reg_bits() 83 v &= ~mask; in omap4_prminst_rmw_inst_reg_bits() 84 v |= bits; in omap4_prminst_rmw_inst_reg_bits() 85 omap4_prminst_write_inst_reg(v, part, inst, idx); in omap4_prminst_rmw_inst_reg_bits() 87 return v; in omap4_prminst_rmw_inst_reg_bits() 103 u32 v; in omap4_prminst_is_hardreset_asserted() local 105 v = omap4_prminst_read_inst_reg(part, inst, rstctrl_offs); in omap4_prminst_is_hardreset_asserted() 106 v &= 1 << shift; in omap4_prminst_is_hardreset_asserted() 107 v >>= shift; in omap4_prminst_is_hardreset_asserted() [all …]
|
D | cm2xxx_3xxx.h | 67 u32 v; in omap2_cm_rmw_mod_reg_bits() local 69 v = omap2_cm_read_mod_reg(module, idx); in omap2_cm_rmw_mod_reg_bits() 70 v &= ~mask; in omap2_cm_rmw_mod_reg_bits() 71 v |= bits; in omap2_cm_rmw_mod_reg_bits() 72 omap2_cm_write_mod_reg(v, module, idx); in omap2_cm_rmw_mod_reg_bits() 74 return v; in omap2_cm_rmw_mod_reg_bits() 80 u32 v; in omap2_cm_read_mod_bits_shift() local 82 v = omap2_cm_read_mod_reg(domain, idx); in omap2_cm_read_mod_bits_shift() 83 v &= mask; in omap2_cm_read_mod_bits_shift() 84 v >>= __ffs(mask); in omap2_cm_read_mod_bits_shift() [all …]
|
D | clkt_iclk.c | 28 u32 v; in omap2_clkt_iclk_allow_idle() local 34 v = omap2_clk_readl(clk, r); in omap2_clkt_iclk_allow_idle() 35 v |= (1 << clk->enable_bit); in omap2_clkt_iclk_allow_idle() 36 omap2_clk_writel(v, clk, r); in omap2_clkt_iclk_allow_idle() 42 u32 v; in omap2_clkt_iclk_deny_idle() local 48 v = omap2_clk_readl(clk, r); in omap2_clkt_iclk_deny_idle() 49 v &= ~(1 << clk->enable_bit); in omap2_clkt_iclk_deny_idle() 50 omap2_clk_writel(v, clk, r); in omap2_clkt_iclk_deny_idle()
|
D | clkt_dpll.c | 182 static int _omap2_dpll_is_in_bypass(u32 v) in _omap2_dpll_is_in_bypass() argument 196 if (v == val) in _omap2_dpll_is_in_bypass() 207 u32 v; in omap2_init_dpll_parent() local 214 v = omap2_clk_readl(clk, dd->control_reg); in omap2_init_dpll_parent() 215 v &= dd->enable_mask; in omap2_init_dpll_parent() 216 v >>= __ffs(dd->enable_mask); in omap2_init_dpll_parent() 219 if (_omap2_dpll_is_in_bypass(v)) in omap2_init_dpll_parent() 242 u32 dpll_mult, dpll_div, v; in omap2_get_dpll_rate() local 250 v = omap2_clk_readl(clk, dd->control_reg); in omap2_get_dpll_rate() 251 v &= dd->enable_mask; in omap2_get_dpll_rate() [all …]
|
D | dpll44xx.c | 41 u32 v; in omap4_dpllmx_allow_gatectrl() local 51 v = omap2_clk_readl(clk, clk->clksel_reg); in omap4_dpllmx_allow_gatectrl() 53 v &= ~mask; in omap4_dpllmx_allow_gatectrl() 54 omap2_clk_writel(v, clk, clk->clksel_reg); in omap4_dpllmx_allow_gatectrl() 59 u32 v; in omap4_dpllmx_deny_gatectrl() local 69 v = omap2_clk_readl(clk, clk->clksel_reg); in omap4_dpllmx_deny_gatectrl() 71 v |= mask; in omap4_dpllmx_deny_gatectrl() 72 omap2_clk_writel(v, clk, clk->clksel_reg); in omap4_dpllmx_deny_gatectrl() 118 u32 v; in omap4_dpll_regm4xen_recalc() local 130 v = omap2_clk_readl(clk, dd->control_reg); in omap4_dpll_regm4xen_recalc() [all …]
|
/linux-4.1.27/drivers/mtd/nand/gpmi-nand/ |
D | gpmi-regs.h | 31 #define BF_GPMI_CTRL0_COMMAND_MODE(v) \ argument 32 (((v) << BP_GPMI_CTRL0_COMMAND_MODE) & BM_GPMI_CTRL0_COMMAND_MODE) 50 #define BF_GPMI_CTRL0_LOCK_CS(v, x) 0x0 argument 56 #define BF_GPMI_CTRL0_CS(v, x) (((v) << BP_GPMI_CTRL0_CS) & \ argument 63 #define BF_GPMI_CTRL0_ADDRESS(v) \ argument 64 (((v) << BP_GPMI_CTRL0_ADDRESS) & BM_GPMI_CTRL0_ADDRESS) 75 #define BF_GPMI_CTRL0_XFER_COUNT(v) \ argument 76 (((v) << BP_GPMI_CTRL0_XFER_COUNT) & BM_GPMI_CTRL0_XFER_COUNT) 87 #define BF_GPMI_ECCCTRL_ECC_CMD(v) \ argument 88 (((v) << BP_GPMI_ECCCTRL_ECC_CMD) & BM_GPMI_ECCCTRL_ECC_CMD) [all …]
|
D | bch-regs.h | 43 #define BF_BCH_FLASH0LAYOUT0_NBLOCKS(v) \ argument 44 (((v) << BP_BCH_FLASH0LAYOUT0_NBLOCKS) & BM_BCH_FLASH0LAYOUT0_NBLOCKS) 48 #define BF_BCH_FLASH0LAYOUT0_META_SIZE(v) \ argument 49 (((v) << BP_BCH_FLASH0LAYOUT0_META_SIZE)\ 56 #define BF_BCH_FLASH0LAYOUT0_ECC0(v, x) \ argument 58 ? (((v) << MX6Q_BP_BCH_FLASH0LAYOUT0_ECC0) \ 60 : (((v) << BP_BCH_FLASH0LAYOUT0_ECC0) \ 67 #define BF_BCH_FLASH0LAYOUT0_GF(v, x) \ argument 68 ((GPMI_IS_MX6(x) && ((v) == 14)) \ 79 #define BF_BCH_FLASH0LAYOUT0_DATA0_SIZE(v, x) \ argument [all …]
|
/linux-4.1.27/arch/mips/kernel/ |
D | vpe.c | 55 struct vpe *res, *v; in get_vpe() local 62 list_for_each_entry(v, &vpecontrol.vpe_list, list) { in get_vpe() 63 if (v->minor == VPE_MODULE_MINOR) { in get_vpe() 64 res = v; in get_vpe() 94 struct vpe *v; in alloc_vpe() local 96 v = kzalloc(sizeof(struct vpe), GFP_KERNEL); in alloc_vpe() 97 if (v == NULL) in alloc_vpe() 100 INIT_LIST_HEAD(&v->tc); in alloc_vpe() 102 list_add_tail(&v->list, &vpecontrol.vpe_list); in alloc_vpe() 105 INIT_LIST_HEAD(&v->notify); in alloc_vpe() [all …]
|
D | module-rela.c | 26 extern int apply_r_mips_none(struct module *me, u32 *location, Elf_Addr v); 28 static int apply_r_mips_32_rela(struct module *me, u32 *location, Elf_Addr v) in apply_r_mips_32_rela() argument 30 *location = v; in apply_r_mips_32_rela() 35 static int apply_r_mips_26_rela(struct module *me, u32 *location, Elf_Addr v) in apply_r_mips_26_rela() argument 37 if (v % 4) { in apply_r_mips_26_rela() 43 if ((v & 0xf0000000) != (((unsigned long)location + 4) & 0xf0000000)) { in apply_r_mips_26_rela() 50 *location = (*location & ~0x03ffffff) | ((v >> 2) & 0x03ffffff); in apply_r_mips_26_rela() 55 static int apply_r_mips_hi16_rela(struct module *me, u32 *location, Elf_Addr v) in apply_r_mips_hi16_rela() argument 58 ((((long long) v + 0x8000LL) >> 16) & 0xffff); in apply_r_mips_hi16_rela() 63 static int apply_r_mips_lo16_rela(struct module *me, u32 *location, Elf_Addr v) in apply_r_mips_lo16_rela() argument [all …]
|
D | vpe-mt.c | 26 int vpe_run(struct vpe *v) in vpe_run() argument 46 if (list_empty(&v->tc)) { in vpe_run() 52 v->minor); in vpe_run() 57 t = list_first_entry(&v->tc, struct tc, tc); in vpe_run() 81 write_tc_c0_tcrestart((unsigned long)v->__start); in vpe_run() 99 mttgpr(6, v->ntcs); in vpe_run() 141 list_for_each_entry(notifier, &v->notify, list) in vpe_run() 181 struct vpe *v; in vpe_alloc() local 185 v = get_vpe(i); in vpe_alloc() 186 if (v != NULL) { in vpe_alloc() [all …]
|
D | module.c | 55 int apply_r_mips_none(struct module *me, u32 *location, Elf_Addr v) in apply_r_mips_none() argument 60 static int apply_r_mips_32_rel(struct module *me, u32 *location, Elf_Addr v) in apply_r_mips_32_rel() argument 62 *location += v; in apply_r_mips_32_rel() 67 static int apply_r_mips_26_rel(struct module *me, u32 *location, Elf_Addr v) in apply_r_mips_26_rel() argument 69 if (v % 4) { in apply_r_mips_26_rel() 75 if ((v & 0xf0000000) != (((unsigned long)location + 4) & 0xf0000000)) { in apply_r_mips_26_rel() 83 ((*location + (v >> 2)) & 0x03ffffff); in apply_r_mips_26_rel() 88 static int apply_r_mips_hi16_rel(struct module *me, u32 *location, Elf_Addr v) in apply_r_mips_hi16_rel() argument 102 n->value = v; in apply_r_mips_hi16_rel() 120 static int apply_r_mips_lo16_rel(struct module *me, u32 *location, Elf_Addr v) in apply_r_mips_lo16_rel() argument [all …]
|
/linux-4.1.27/arch/avr32/mm/ |
D | cache.c | 26 unsigned long v, begin, end, linesz, mask; in invalidate_dcache_region() local 47 for (v = begin; v < end; v += linesz) in invalidate_dcache_region() 48 invalidate_dcache_line((void *)v); in invalidate_dcache_region() 54 unsigned long v, begin, end, linesz; in clean_dcache_region() local 60 for (v = begin; v < end; v += linesz) in clean_dcache_region() 61 clean_dcache_line((void *)v); in clean_dcache_region() 67 unsigned long v, begin, end, linesz; in flush_dcache_region() local 73 for (v = begin; v < end; v += linesz) in flush_dcache_region() 74 flush_dcache_line((void *)v); in flush_dcache_region() 80 unsigned long v, begin, end, linesz; in invalidate_icache_region() local [all …]
|
/linux-4.1.27/arch/x86/boot/ |
D | boot.h | 43 static inline void outb(u8 v, u16 port) in outb() argument 45 asm volatile("outb %0,%1" : : "a" (v), "dN" (port)); in outb() 49 u8 v; in inb() local 50 asm volatile("inb %1,%0" : "=a" (v) : "dN" (port)); in inb() 51 return v; in inb() 54 static inline void outw(u16 v, u16 port) in outw() argument 56 asm volatile("outw %0,%1" : : "a" (v), "dN" (port)); in outw() 60 u16 v; in inw() local 61 asm volatile("inw %1,%0" : "=a" (v) : "dN" (port)); in inw() 62 return v; in inw() [all …]
|
/linux-4.1.27/drivers/media/pci/cx18/ |
D | cx18-av-audio.c | 306 u8 v; in cx18_av_audio_set_path() local 309 v = cx18_av_read(cx, 0x803) & ~0x10; in cx18_av_audio_set_path() 310 cx18_av_write_expect(cx, 0x803, v, v, 0x1f); in cx18_av_audio_set_path() 313 v = cx18_av_read(cx, 0x810) | 0x01; in cx18_av_audio_set_path() 314 cx18_av_write_expect(cx, 0x810, v, v, 0x0f); in cx18_av_audio_set_path() 334 v = cx18_av_read(cx, 0x810) & ~0x01; in cx18_av_audio_set_path() 335 cx18_av_write_expect(cx, 0x810, v, v, 0x0f); in cx18_av_audio_set_path() 340 v = cx18_av_read(cx, 0x803) | 0x10; in cx18_av_audio_set_path() 341 cx18_av_write_expect(cx, 0x803, v, v, 0x1f); in cx18_av_audio_set_path() 392 u8 v; in set_mute() local [all …]
|
D | cx18-av-firmware.c | 83 u32 u, v; in cx18_av_loadfw() local 186 v = cx18_read_reg(cx, CX18_AUDIO_ENABLE); in cx18_av_loadfw() 188 if (v & 0x800) in cx18_av_loadfw() 189 cx18_write_reg_expect(cx, v & 0xFFFFFBFF, CX18_AUDIO_ENABLE, in cx18_av_loadfw() 193 v = cx18_read_reg(cx, CX18_AUDIO_ENABLE); in cx18_av_loadfw() 194 u = v & CX18_AI1_MUX_MASK; in cx18_av_loadfw() 195 v &= ~CX18_AI1_MUX_MASK; in cx18_av_loadfw() 198 v |= CX18_AI1_MUX_I2S1; in cx18_av_loadfw() 199 cx18_write_reg_expect(cx, v | 0xb00, CX18_AUDIO_ENABLE, in cx18_av_loadfw() 200 v, CX18_AI1_MUX_MASK); in cx18_av_loadfw() [all …]
|
D | cx18-audio.c | 40 u32 u, v; in cx18_audio_set_io() local 60 v = u & ~CX18_AI1_MUX_MASK; in cx18_audio_set_io() 63 v |= CX18_AI1_MUX_I2S1; in cx18_audio_set_io() 66 v |= CX18_AI1_MUX_I2S2; in cx18_audio_set_io() 69 v |= CX18_AI1_MUX_843_I2S; in cx18_audio_set_io() 72 if (v == u) { in cx18_audio_set_io() 89 cx18_write_reg_expect(cx, v | 0xb00, CX18_AUDIO_ENABLE, in cx18_audio_set_io() 90 v, CX18_AI1_MUX_MASK); in cx18_audio_set_io()
|
/linux-4.1.27/drivers/bcma/ |
D | driver_pci.c | 36 u32 v; in bcma_pcie_mdio_set_phy() local 39 v = BCMA_CORE_PCI_MDIODATA_START; in bcma_pcie_mdio_set_phy() 40 v |= BCMA_CORE_PCI_MDIODATA_WRITE; in bcma_pcie_mdio_set_phy() 41 v |= (BCMA_CORE_PCI_MDIODATA_DEV_ADDR << in bcma_pcie_mdio_set_phy() 43 v |= (BCMA_CORE_PCI_MDIODATA_BLK_ADDR << in bcma_pcie_mdio_set_phy() 45 v |= BCMA_CORE_PCI_MDIODATA_TA; in bcma_pcie_mdio_set_phy() 46 v |= (phy << 4); in bcma_pcie_mdio_set_phy() 47 pcicore_write32(pc, BCMA_CORE_PCI_MDIO_DATA, v); in bcma_pcie_mdio_set_phy() 51 v = pcicore_read32(pc, BCMA_CORE_PCI_MDIO_CONTROL); in bcma_pcie_mdio_set_phy() 52 if (v & BCMA_CORE_PCI_MDIOCTL_ACCESS_DONE) in bcma_pcie_mdio_set_phy() [all …]
|
/linux-4.1.27/net/sched/ |
D | act_vlan.c | 27 struct tcf_vlan *v = a->priv; in tcf_vlan() local 31 spin_lock(&v->tcf_lock); in tcf_vlan() 32 v->tcf_tm.lastuse = jiffies; in tcf_vlan() 33 bstats_update(&v->tcf_bstats, skb); in tcf_vlan() 34 action = v->tcf_action; in tcf_vlan() 36 switch (v->tcfv_action) { in tcf_vlan() 43 err = skb_vlan_push(skb, v->tcfv_push_proto, v->tcfv_push_vid); in tcf_vlan() 55 v->tcf_qstats.drops++; in tcf_vlan() 57 spin_unlock(&v->tcf_lock); in tcf_vlan() 73 struct tcf_vlan *v; in tcf_vlan_init() local [all …]
|
/linux-4.1.27/drivers/usb/musb/ |
D | tusb6010.h | 54 #define TUSB_PHY_OTG_CTRL_PHYREF_CLKSEL(v) (((v) & 3) << 7) argument 78 # define TUSB_DEV_OTG_TIMER_VAL(v) ((v) & 0x07ffffff) argument 84 #define TUSB_PRCM_CONF_SYS_CLKSEL(v) (((v) & 3) << 16) argument 88 #define TUSB_PRCM_MNGMT_SRP_FIX_TIMER(v) (((v) & 0xf) << 25) argument 90 #define TUSB_PRCM_MNGMT_VBUS_VALID_TIMER(v) (((v) & 0xf) << 20) argument 197 #define TUSB_INT_CTRL_CONF_INT_RELCYC(v) (((v) & 0x7) << 18) argument 200 #define TUSB_GPIO_CONF_DMAREQ(v) (((v) & 0x3f) << 24) argument 201 #define TUSB_DMA_REQ_CONF_BURST_SIZE(v) (((v) & 3) << 26) argument 202 #define TUSB_DMA_REQ_CONF_DMA_REQ_EN(v) (((v) & 0x3f) << 20) argument 203 #define TUSB_DMA_REQ_CONF_DMA_REQ_ASSER(v) (((v) & 0xf) << 16) argument [all …]
|
/linux-4.1.27/arch/arm/mach-imx/ |
D | ehci-imx35.c | 43 unsigned int v; in mx35_initialize_usb_hw() local 45 v = readl(MX35_IO_ADDRESS(MX35_USB_BASE_ADDR + USBCTRL_OTGBASE_OFFSET)); in mx35_initialize_usb_hw() 49 v &= ~(MX35_OTG_SIC_MASK | MX35_OTG_PM_BIT | MX35_OTG_PP_BIT | in mx35_initialize_usb_hw() 51 v |= (flags & MXC_EHCI_INTERFACE_MASK) << MX35_OTG_SIC_SHIFT; in mx35_initialize_usb_hw() 54 v |= MX35_OTG_PM_BIT; in mx35_initialize_usb_hw() 57 v |= MX35_OTG_PP_BIT; in mx35_initialize_usb_hw() 60 v |= MX35_OTG_OCPOL_BIT; in mx35_initialize_usb_hw() 64 v &= ~(MX35_H1_SIC_MASK | MX35_H1_PM_BIT | MX35_H1_PP_BIT | in mx35_initialize_usb_hw() 67 v |= (flags & MXC_EHCI_INTERFACE_MASK) << MX35_H1_SIC_SHIFT; in mx35_initialize_usb_hw() 70 v |= MX35_H1_PM_BIT; in mx35_initialize_usb_hw() [all …]
|
D | ehci-imx31.c | 41 unsigned int v; in mx31_initialize_usb_hw() local 43 v = readl(MX31_IO_ADDRESS(MX31_USB_BASE_ADDR + USBCTRL_OTGBASE_OFFSET)); in mx31_initialize_usb_hw() 47 v &= ~(MX31_OTG_SIC_MASK | MX31_OTG_PM_BIT); in mx31_initialize_usb_hw() 48 v |= (flags & MXC_EHCI_INTERFACE_MASK) << MX31_OTG_SIC_SHIFT; in mx31_initialize_usb_hw() 51 v |= MX31_OTG_PM_BIT; in mx31_initialize_usb_hw() 55 v &= ~(MX31_H1_SIC_MASK | MX31_H1_PM_BIT | MX31_H1_DT_BIT); in mx31_initialize_usb_hw() 56 v |= (flags & MXC_EHCI_INTERFACE_MASK) << MX31_H1_SIC_SHIFT; in mx31_initialize_usb_hw() 59 v |= MX31_H1_PM_BIT; in mx31_initialize_usb_hw() 62 v |= MX31_H1_DT_BIT; in mx31_initialize_usb_hw() 66 v &= ~(MX31_H2_SIC_MASK | MX31_H2_PM_BIT | MX31_H2_DT_BIT); in mx31_initialize_usb_hw() [all …]
|
D | ehci-imx27.c | 41 unsigned int v; in mx27_initialize_usb_hw() local 43 v = readl(MX27_IO_ADDRESS(MX27_USB_BASE_ADDR + USBCTRL_OTGBASE_OFFSET)); in mx27_initialize_usb_hw() 47 v &= ~(MX27_OTG_SIC_MASK | MX27_OTG_PM_BIT); in mx27_initialize_usb_hw() 48 v |= (flags & MXC_EHCI_INTERFACE_MASK) << MX27_OTG_SIC_SHIFT; in mx27_initialize_usb_hw() 51 v |= MX27_OTG_PM_BIT; in mx27_initialize_usb_hw() 54 v &= ~(MX27_H1_SIC_MASK | MX27_H1_PM_BIT | MX27_H1_DT_BIT); in mx27_initialize_usb_hw() 55 v |= (flags & MXC_EHCI_INTERFACE_MASK) << MX27_H1_SIC_SHIFT; in mx27_initialize_usb_hw() 58 v |= MX27_H1_PM_BIT; in mx27_initialize_usb_hw() 61 v |= MX27_H1_DT_BIT; in mx27_initialize_usb_hw() 65 v &= ~(MX27_H2_SIC_MASK | MX27_H2_PM_BIT | MX27_H2_DT_BIT); in mx27_initialize_usb_hw() [all …]
|
/linux-4.1.27/arch/blackfin/include/asm/ |
D | bfin_serial.h | 299 #define UART_PUT_CHAR(p, v) bfin_write32(port_membase(p) + OFFSET_THR, v) argument 300 #define UART_PUT_CLK(p, v) bfin_write32(port_membase(p) + OFFSET_CLK, v) argument 301 #define UART_PUT_CTL(p, v) bfin_write32(port_membase(p) + OFFSET_CTL, v) argument 302 #define UART_PUT_GCTL(p, v) UART_PUT_CTL(p, v) argument 303 #define UART_PUT_LCR(p, v) UART_PUT_CTL(p, v) argument 304 #define UART_PUT_MCR(p, v) UART_PUT_CTL(p, v) argument 305 #define UART_PUT_STAT(p, v) bfin_write32(port_membase(p) + OFFSET_STAT, v) argument 307 #define UART_CLEAR_IER(p, v) bfin_write32(port_membase(p) + OFFSET_IER_CLEAR, v) argument 309 #define UART_SET_IER(p, v) bfin_write32(port_membase(p) + OFFSET_IER_SET, v) argument 316 #define UART_PUT_LSR(p, v) UART_PUT_STAT(p, v) argument [all …]
|
D | atomic.h | 25 #define atomic_read(v) __raw_uncached_fetch_asm(&(v)->counter) argument 27 #define atomic_add_return(i, v) __raw_atomic_update_asm(&(v)->counter, i) argument 28 #define atomic_sub_return(i, v) __raw_atomic_update_asm(&(v)->counter, -(i)) argument 30 #define atomic_clear_mask(m, v) __raw_atomic_clear_asm(&(v)->counter, m) argument 31 #define atomic_set_mask(m, v) __raw_atomic_set_asm(&(v)->counter, m) argument
|
/linux-4.1.27/drivers/staging/comedi/drivers/ |
D | s626.h | 504 #define S626_UNMAKE(v, w, p) (((v) >> (p)) & ((1 << (w)) - 1)) argument 560 #define S626_GET_CRA_INDXSRC_B(v) \ argument 561 S626_UNMAKE((v), S626_CRAWID_INDXSRC_B, S626_CRABIT_INDXSRC_B) 562 #define S626_GET_CRA_CNTSRC_B(v) \ argument 563 S626_UNMAKE((v), S626_CRAWID_CNTSRC_B, S626_CRABIT_CNTSRC_B) 564 #define S626_GET_CRA_INDXPOL_A(v) \ argument 565 S626_UNMAKE((v), S626_CRAWID_INDXPOL_A, S626_CRABIT_INDXPOL_A) 566 #define S626_GET_CRA_LOADSRC_A(v) \ argument 567 S626_UNMAKE((v), S626_CRAWID_LOADSRC_A, S626_CRABIT_LOADSRC_A) 568 #define S626_GET_CRA_CLKMULT_A(v) \ argument [all …]
|
/linux-4.1.27/tools/perf/util/ |
D | parse-options.h | 107 #define check_vtype(v, type) ( BUILD_BUG_ON_ZERO(!__builtin_types_compatible_p(typeof(v), type)) + … argument 112 #define OPT_BIT(s, l, v, h, b) { .type = OPTION_BIT, .short_name = (s), .long_name = (l), .val… argument 113 #define OPT_BOOLEAN(s, l, v, h) { .type = OPTION_BOOLEAN, .short_name = (s), .long_name = (l), … argument 114 #define OPT_BOOLEAN_SET(s, l, v, os, h) \ argument 116 .value = check_vtype(v, bool *), .help = (h), \ 118 #define OPT_INCR(s, l, v, h) { .type = OPTION_INCR, .short_name = (s), .long_name = (l), .va… argument 119 #define OPT_SET_UINT(s, l, v, h, i) { .type = OPTION_SET_UINT, .short_name = (s), .long_name = (l)… argument 120 #define OPT_SET_PTR(s, l, v, h, p) { .type = OPTION_SET_PTR, .short_name = (s), .long_name = (l), … argument 121 #define OPT_INTEGER(s, l, v, h) { .type = OPTION_INTEGER, .short_name = (s), .long_name = (l), … argument 122 #define OPT_UINTEGER(s, l, v, h) { .type = OPTION_UINTEGER, .short_name = (s), .long_name = (l),… argument [all …]
|
/linux-4.1.27/drivers/media/v4l2-core/ |
D | v4l2-of.c | 29 u32 v; in v4l2_of_parse_csi_bus() local 37 lane = of_prop_next_u32(prop, lane, &v); in v4l2_of_parse_csi_bus() 40 bus->data_lanes[i] = v; in v4l2_of_parse_csi_bus() 51 polarity = of_prop_next_u32(prop, polarity, &v); in v4l2_of_parse_csi_bus() 54 bus->lane_polarities[i] = v; in v4l2_of_parse_csi_bus() 64 if (!of_property_read_u32(node, "clock-lanes", &v)) { in v4l2_of_parse_csi_bus() 65 bus->clock_lane = v; in v4l2_of_parse_csi_bus() 69 if (of_get_property(node, "clock-noncontinuous", &v)) in v4l2_of_parse_csi_bus() 85 u32 v; in v4l2_of_parse_parallel_bus() local 87 if (!of_property_read_u32(node, "hsync-active", &v)) in v4l2_of_parse_parallel_bus() [all …]
|
/linux-4.1.27/drivers/clk/ti/ |
D | fapll.c | 86 u32 v = readl_relaxed(fd->base); in ti_fapll_clock_is_bypass() local 89 return !(v & FAPLL_MAIN_BP); in ti_fapll_clock_is_bypass() 91 return !!(v & FAPLL_MAIN_BP); in ti_fapll_clock_is_bypass() 96 u32 v = readl_relaxed(fd->base); in ti_fapll_set_bypass() local 99 v &= ~FAPLL_MAIN_BP; in ti_fapll_set_bypass() 101 v |= FAPLL_MAIN_BP; in ti_fapll_set_bypass() 102 writel_relaxed(v, fd->base); in ti_fapll_set_bypass() 107 u32 v = readl_relaxed(fd->base); in ti_fapll_clear_bypass() local 110 v |= FAPLL_MAIN_BP; in ti_fapll_clear_bypass() 112 v &= ~FAPLL_MAIN_BP; in ti_fapll_clear_bypass() [all …]
|
D | apll.c | 44 u32 v; in dra7_apll_enable() local 55 v = ti_clk_ll_ops->clk_readl(ad->idlest_reg); in dra7_apll_enable() 57 if ((v & ad->idlest_mask) == state) in dra7_apll_enable() 60 v = ti_clk_ll_ops->clk_readl(ad->control_reg); in dra7_apll_enable() 61 v &= ~ad->enable_mask; in dra7_apll_enable() 62 v |= APLL_FORCE_LOCK << __ffs(ad->enable_mask); in dra7_apll_enable() 63 ti_clk_ll_ops->clk_writel(v, ad->control_reg); in dra7_apll_enable() 68 v = ti_clk_ll_ops->clk_readl(ad->idlest_reg); in dra7_apll_enable() 69 if ((v & ad->idlest_mask) == state) in dra7_apll_enable() 93 u32 v; in dra7_apll_disable() local [all …]
|
/linux-4.1.27/drivers/tty/serial/ |
D | bfin_sport_uart.h | 62 #define SPORT_PUT_TCR1(sport, v) bfin_write16(((sport)->port.membase + OFFSET_TCR1), v) argument 63 #define SPORT_PUT_TCR2(sport, v) bfin_write16(((sport)->port.membase + OFFSET_TCR2), v) argument 64 #define SPORT_PUT_TCLKDIV(sport, v) bfin_write16(((sport)->port.membase + OFFSET_TCLKDIV), v) argument 65 #define SPORT_PUT_TFSDIV(sport, v) bfin_write16(((sport)->port.membase + OFFSET_TFSDIV), v) argument 66 #define SPORT_PUT_TX(sport, v) bfin_write16(((sport)->port.membase + OFFSET_TX), v) argument 67 #define SPORT_PUT_RX(sport, v) bfin_write16(((sport)->port.membase + OFFSET_RX), v) argument 68 #define SPORT_PUT_RCR1(sport, v) bfin_write16(((sport)->port.membase + OFFSET_RCR1), v) argument 69 #define SPORT_PUT_RCR2(sport, v) bfin_write16(((sport)->port.membase + OFFSET_RCR2), v) argument 70 #define SPORT_PUT_RCLKDIV(sport, v) bfin_write16(((sport)->port.membase + OFFSET_RCLKDIV), v) argument 71 #define SPORT_PUT_RFSDIV(sport, v) bfin_write16(((sport)->port.membase + OFFSET_RFSDIV), v) argument [all …]
|
D | mpsc.c | 333 u32 v; in mpsc_brg_init() local 335 v = (pi->mirror_regs) ? pi->BRG_BCR_m : readl(pi->brg_base + BRG_BCR); in mpsc_brg_init() 336 v = (v & ~(0xf << 18)) | ((clk_src & 0xf) << 18); in mpsc_brg_init() 339 v &= ~(1 << 25); in mpsc_brg_init() 342 pi->BRG_BCR_m = v; in mpsc_brg_init() 343 writel(v, pi->brg_base + BRG_BCR); in mpsc_brg_init() 351 u32 v; in mpsc_brg_enable() local 353 v = (pi->mirror_regs) ? pi->BRG_BCR_m : readl(pi->brg_base + BRG_BCR); in mpsc_brg_enable() 354 v |= (1 << 16); in mpsc_brg_enable() 357 pi->BRG_BCR_m = v; in mpsc_brg_enable() [all …]
|
/linux-4.1.27/drivers/media/platform/vivid/ |
D | vivid-tpg-colors.c | 724 static double transfer_srgb_to_rgb(double v) in transfer_srgb_to_rgb() argument 726 if (v < -0.04045) in transfer_srgb_to_rgb() 727 return pow((-v + 0.055) / 1.055, 2.4); in transfer_srgb_to_rgb() 728 return (v <= 0.04045) ? v / 12.92 : pow((v + 0.055) / 1.055, 2.4); in transfer_srgb_to_rgb() 731 static double transfer_rgb_to_srgb(double v) in transfer_rgb_to_srgb() argument 733 if (v <= -0.0031308) in transfer_rgb_to_srgb() 734 return -1.055 * pow(-v, 1.0 / 2.4) + 0.055; in transfer_rgb_to_srgb() 735 if (v <= 0.0031308) in transfer_rgb_to_srgb() 736 return v * 12.92; in transfer_rgb_to_srgb() 737 return 1.055 * pow(v, 1.0 / 2.4) - 0.055; in transfer_rgb_to_srgb() [all …]
|
/linux-4.1.27/arch/sparc/lib/ |
D | atomic32.c | 31 int atomic_##op##_return(int i, atomic_t *v) \ 35 spin_lock_irqsave(ATOMIC_HASH(v), flags); \ 37 ret = (v->counter cop i); \ 39 spin_unlock_irqrestore(ATOMIC_HASH(v), flags); \ 48 int atomic_xchg(atomic_t *v, int new) in atomic_xchg() argument 53 spin_lock_irqsave(ATOMIC_HASH(v), flags); in atomic_xchg() 54 ret = v->counter; in atomic_xchg() 55 v->counter = new; in atomic_xchg() 56 spin_unlock_irqrestore(ATOMIC_HASH(v), flags); in atomic_xchg() 61 int atomic_cmpxchg(atomic_t *v, int old, int new) in atomic_cmpxchg() argument [all …]
|
/linux-4.1.27/arch/sh/boards/mach-hp6xx/ |
D | setup.c | 58 u16 v; in dac_audio_start() local 62 v = inw(HD64461_GPADR); in dac_audio_start() 63 v &= ~HD64461_GPADR_SPEAKER; in dac_audio_start() 64 outw(v, HD64461_GPADR); in dac_audio_start() 76 u16 v; in dac_audio_stop() local 80 v = inw(HD64461_GPADR); in dac_audio_stop() 81 v |= HD64461_GPADR_SPEAKER; in dac_audio_stop() 82 outw(v, HD64461_GPADR); in dac_audio_stop() 129 u16 v; in hp6xx_setup() local 131 v = inw(HD64461_STBCR); in hp6xx_setup() [all …]
|
/linux-4.1.27/include/linux/ceph/ |
D | decode.h | 19 u64 v = get_unaligned_le64(*p); in ceph_decode_64() local 21 return v; in ceph_decode_64() 25 u32 v = get_unaligned_le32(*p); in ceph_decode_32() local 27 return v; in ceph_decode_32() 31 u16 v = get_unaligned_le16(*p); in ceph_decode_16() local 33 return v; in ceph_decode_16() 37 u8 v = *(u8 *)*p; in ceph_decode_8() local 39 return v; in ceph_decode_8() 61 #define ceph_decode_64_safe(p, end, v, bad) \ argument 64 v = ceph_decode_64(p); \ [all …]
|
/linux-4.1.27/arch/x86/kernel/apic/ |
D | vector.c | 532 unsigned int i, v, ver, maxlvt; in print_local_APIC() local 537 v = apic_read(APIC_ID); in print_local_APIC() 538 pr_info("... APIC ID: %08x (%01x)\n", v, read_apic_id()); in print_local_APIC() 539 v = apic_read(APIC_LVR); in print_local_APIC() 540 pr_info("... APIC VERSION: %08x\n", v); in print_local_APIC() 541 ver = GET_APIC_VERSION(v); in print_local_APIC() 544 v = apic_read(APIC_TASKPRI); in print_local_APIC() 545 pr_debug("... APIC TASKPRI: %08x (%02x)\n", v, v & APIC_TPRI_MASK); in print_local_APIC() 550 v = apic_read(APIC_ARBPRI); in print_local_APIC() 552 v, v & APIC_ARBPRI_MASK); in print_local_APIC() [all …]
|
/linux-4.1.27/drivers/gpu/drm/ |
D | drm_legacy.h | 50 int drm_legacy_resctx(struct drm_device *d, void *v, struct drm_file *f); 51 int drm_legacy_addctx(struct drm_device *d, void *v, struct drm_file *f); 52 int drm_legacy_getctx(struct drm_device *d, void *v, struct drm_file *f); 53 int drm_legacy_switchctx(struct drm_device *d, void *v, struct drm_file *f); 54 int drm_legacy_newctx(struct drm_device *d, void *v, struct drm_file *f); 55 int drm_legacy_rmctx(struct drm_device *d, void *v, struct drm_file *f); 57 int drm_legacy_setsareactx(struct drm_device *d, void *v, struct drm_file *f); 58 int drm_legacy_getsareactx(struct drm_device *d, void *v, struct drm_file *f); 66 int drm_legacy_addmap_ioctl(struct drm_device *d, void *v, struct drm_file *f); 67 int drm_legacy_rmmap_ioctl(struct drm_device *d, void *v, struct drm_file *f); [all …]
|
/linux-4.1.27/arch/sparc/kernel/ |
D | module.c | 95 Elf_Addr v; in apply_relocate_add() local 110 v = sym->st_value + rel[i].r_addend; in apply_relocate_add() 114 v -= (Elf_Addr) location; in apply_relocate_add() 115 *loc32 = v; in apply_relocate_add() 119 location[0] = v >> 56; in apply_relocate_add() 120 location[1] = v >> 48; in apply_relocate_add() 121 location[2] = v >> 40; in apply_relocate_add() 122 location[3] = v >> 32; in apply_relocate_add() 123 location[4] = v >> 24; in apply_relocate_add() 124 location[5] = v >> 16; in apply_relocate_add() [all …]
|
/linux-4.1.27/arch/ia64/include/uapi/asm/ |
D | intrinsics.h | 41 #define IA64_FETCHADD(tmp,v,n,sz,sem) \ argument 45 tmp = ia64_fetchadd4_##sem((unsigned int *) v, n); \ 49 tmp = ia64_fetchadd8_##sem((unsigned long *) v, n); \ 57 #define ia64_fetchadd(i,v,sem) \ argument 60 volatile __typeof__(*(v)) *_v = (v); \ 63 IA64_FETCHADD(_tmp, _v, -16, sizeof(*(v)), sem); \ 65 IA64_FETCHADD(_tmp, _v, -8, sizeof(*(v)), sem); \ 67 IA64_FETCHADD(_tmp, _v, -4, sizeof(*(v)), sem); \ 69 IA64_FETCHADD(_tmp, _v, -1, sizeof(*(v)), sem); \ 71 IA64_FETCHADD(_tmp, _v, 1, sizeof(*(v)), sem); \ [all …]
|
/linux-4.1.27/drivers/rtc/ |
D | rtc-da9052.c | 64 uint8_t v[2][5]; in da9052_read_alarm() local 68 ret = da9052_group_read(rtc->da9052, DA9052_ALARM_MI_REG, 5, &v[0][0]); in da9052_read_alarm() 76 DA9052_ALARM_MI_REG, 5, &v[idx][0]); in da9052_read_alarm() 82 if (memcmp(&v[0][0], &v[1][0], 5) == 0) { in da9052_read_alarm() 83 rtc_tm->tm_year = (v[0][4] & DA9052_RTC_YEAR) + 100; in da9052_read_alarm() 84 rtc_tm->tm_mon = (v[0][3] & DA9052_RTC_MONTH) - 1; in da9052_read_alarm() 85 rtc_tm->tm_mday = v[0][2] & DA9052_RTC_DAY; in da9052_read_alarm() 86 rtc_tm->tm_hour = v[0][1] & DA9052_RTC_HOUR; in da9052_read_alarm() 87 rtc_tm->tm_min = v[0][0] & DA9052_RTC_MIN; in da9052_read_alarm() 108 uint8_t v[3]; in da9052_set_alarm() local [all …]
|
D | rtc-da9055.c | 64 uint8_t v[5]; in da9055_read_alarm() local 66 ret = da9055_group_read(da9055, DA9055_REG_ALARM_MI, 5, v); in da9055_read_alarm() 72 rtc_tm->tm_year = (v[4] & DA9055_RTC_ALM_YEAR) + 100; in da9055_read_alarm() 73 rtc_tm->tm_mon = (v[3] & DA9055_RTC_ALM_MONTH) - 1; in da9055_read_alarm() 74 rtc_tm->tm_mday = v[2] & DA9055_RTC_ALM_DAY; in da9055_read_alarm() 75 rtc_tm->tm_hour = v[1] & DA9055_RTC_ALM_HOUR; in da9055_read_alarm() 76 rtc_tm->tm_min = v[0] & DA9055_RTC_ALM_MIN; in da9055_read_alarm() 84 uint8_t v[2]; in da9055_set_alarm() local 96 v[0] = rtc_tm->tm_hour; in da9055_set_alarm() 97 v[1] = rtc_tm->tm_mday; in da9055_set_alarm() [all …]
|
D | rtc-ls1x.c | 90 unsigned long v, t; in ls1x_rtc_read_time() local 92 v = readl(SYS_TOYREAD0); in ls1x_rtc_read_time() 96 t = mktime((t & LS1X_YEAR_MASK), ls1x_get_month(v), in ls1x_rtc_read_time() 97 ls1x_get_day(v), ls1x_get_hour(v), in ls1x_rtc_read_time() 98 ls1x_get_min(v), ls1x_get_sec(v)); in ls1x_rtc_read_time() 106 unsigned long v, t, c; in ls1x_rtc_set_time() local 109 v = ((rtm->tm_mon + 1) << LS1X_MONTH_OFFSET) in ls1x_rtc_set_time() 115 writel(v, SYS_TOYWRITE0); in ls1x_rtc_set_time() 149 unsigned long v; in ls1x_rtc_probe() local 152 v = readl(SYS_COUNTER_CNTRL); in ls1x_rtc_probe() [all …]
|
D | rtc-moxart.c | 188 unsigned char v; in moxart_rtc_read_time() local 192 v = moxart_rtc_read_register(dev, GPIO_RTC_SECONDS_R); in moxart_rtc_read_time() 193 tm->tm_sec = (((v & 0x70) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time() 195 v = moxart_rtc_read_register(dev, GPIO_RTC_MINUTES_R); in moxart_rtc_read_time() 196 tm->tm_min = (((v & 0x70) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time() 198 v = moxart_rtc_read_register(dev, GPIO_RTC_HOURS_R); in moxart_rtc_read_time() 199 if (v & 0x80) { /* 12-hour mode */ in moxart_rtc_read_time() 200 tm->tm_hour = (((v & 0x10) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time() 201 if (v & 0x20) { /* PM mode */ in moxart_rtc_read_time() 207 tm->tm_hour = (((v & 0x30) >> 4) * 10) + (v & 0x0F); in moxart_rtc_read_time() [all …]
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb3/ |
D | aq100x.c | 97 unsigned int v; in aq100x_intr_clear() local 99 t3_mdio_read(phy, MDIO_MMD_VEND1, AQ_IFLAG_GLOBAL, &v); in aq100x_intr_clear() 100 t3_mdio_read(phy, MDIO_MMD_PMAPMD, MDIO_STAT1, &v); in aq100x_intr_clear() 108 unsigned int cause, v; in aq100x_intr_handler() local 115 t3_mdio_read(phy, MDIO_MMD_PMAPMD, MDIO_STAT1, &v); in aq100x_intr_handler() 211 unsigned int v; in aq100x_get_link_status() local 214 err = t3_mdio_read(phy, MDIO_MMD_PMAPMD, AQ_LINK_STAT, &v); in aq100x_get_link_status() 218 *link_ok = v & 1; in aq100x_get_link_status() 223 err = t3_mdio_read(phy, MDIO_MMD_AN, AQ_ANEG_STAT, &v); in aq100x_get_link_status() 228 switch (v & 0x6) { in aq100x_get_link_status() [all …]
|
/linux-4.1.27/arch/mips/alchemy/common/ |
D | clock.c | 266 unsigned long v = (alchemy_rdsys(AU1000_SYS_POWERCTRL) & 3) + 2; in alchemy_clk_setup_sysbus() local 270 pn, 0, 1, v); in alchemy_clk_setup_sysbus() 295 unsigned long v; in alchemy_clk_setup_mem() local 302 v = __raw_readl(addr + AU1550_MEM_SDCONFIGB); in alchemy_clk_setup_mem() 303 div = (v & (1 << 15)) ? 1 : 2; in alchemy_clk_setup_mem() 306 v = __raw_readl(addr + AU1550_MEM_SDCONFIGB); in alchemy_clk_setup_mem() 307 div = (v & (1 << 31)) ? 1 : 2; in alchemy_clk_setup_mem() 336 unsigned long v = alchemy_rdsmem(AU1000_MEM_STCFG0); in alchemy_clk_setup_lrclk() local 341 v = 4 + ((v >> 11) & 1); in alchemy_clk_setup_lrclk() 344 v = ((v >> 13) & 7) + 1; in alchemy_clk_setup_lrclk() [all …]
|
/linux-4.1.27/lib/raid6/ |
D | mktables.c | 26 uint8_t v = 0; in gfmul() local 30 v ^= a; in gfmul() 35 return v; in gfmul() 40 uint8_t v = 1; in gfpow() local 48 v = gfmul(v, a); in gfpow() 53 return v; in gfpow() 59 uint8_t v; in main() local 110 v = 1; in main() 116 exptbl[i + j] = v; in main() 117 printf("0x%02x,%c", v, (j == 7) ? '\n' : ' '); in main() [all …]
|
/linux-4.1.27/sound/synth/emux/ |
D | soundfont.c | 370 init_voice_info(&zp->v); in sf_zone_new() 449 zp->v.low == map.map_key && in load_map() 450 zp->v.start == map.src_instr && in load_map() 451 zp->v.end == map.src_bank && in load_map() 452 zp->v.fixkey == map.src_key) { in load_map() 474 zp->v.low = map.map_key; in load_map() 475 zp->v.high = map.map_key; in load_map() 477 zp->v.start = map.src_instr; in load_map() 478 zp->v.end = map.src_bank; in load_map() 479 zp->v.fixkey = map.src_key; in load_map() [all …]
|
/linux-4.1.27/drivers/misc/c2port/ |
D | c2port-duramar2150.c | 34 u8 v; in duramar2150_c2port_access() local 38 v = inb(DIR_PORT); in duramar2150_c2port_access() 42 outb(v | (C2D | C2CK), DIR_PORT); in duramar2150_c2port_access() 46 outb(v & ~(C2D | C2CK), DIR_PORT); in duramar2150_c2port_access() 53 u8 v; in duramar2150_c2port_c2d_dir() local 57 v = inb(DIR_PORT); in duramar2150_c2port_c2d_dir() 60 outb(v & ~C2D, DIR_PORT); in duramar2150_c2port_c2d_dir() 62 outb(v | C2D, DIR_PORT); in duramar2150_c2port_c2d_dir() 74 u8 v; in duramar2150_c2port_c2d_set() local 78 v = inb(DATA_PORT); in duramar2150_c2port_c2d_set() [all …]
|
/linux-4.1.27/net/bridge/ |
D | br_vlan.c | 8 static void __vlan_add_pvid(struct net_port_vlans *v, u16 vid) in __vlan_add_pvid() argument 10 if (v->pvid == vid) in __vlan_add_pvid() 14 v->pvid = vid; in __vlan_add_pvid() 17 static void __vlan_delete_pvid(struct net_port_vlans *v, u16 vid) in __vlan_delete_pvid() argument 19 if (v->pvid != vid) in __vlan_delete_pvid() 23 v->pvid = 0; in __vlan_delete_pvid() 26 static void __vlan_add_flags(struct net_port_vlans *v, u16 vid, u16 flags) in __vlan_add_flags() argument 29 __vlan_add_pvid(v, vid); in __vlan_add_flags() 31 __vlan_delete_pvid(v, vid); in __vlan_add_flags() 34 set_bit(vid, v->untagged_bitmap); in __vlan_add_flags() [all …]
|
/linux-4.1.27/samples/bpf/ |
D | tracex2_kern.c | 43 static unsigned int log2(unsigned int v) in log2() argument 48 r = (v > 0xFFFF) << 4; v >>= r; in log2() 49 shift = (v > 0xFF) << 3; v >>= shift; r |= shift; in log2() 50 shift = (v > 0xF) << 2; v >>= shift; r |= shift; in log2() 51 shift = (v > 0x3) << 1; v >>= shift; r |= shift; in log2() 52 r |= (v >> 1); in log2() 56 static unsigned int log2l(unsigned long v) in log2l() argument 58 unsigned int hi = v >> 32; in log2l() 62 return log2(v); in log2l()
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
D | mb86a16.c | 754 int v, int R, in swp_info_get() argument 764 crnt_swp_freq = fOSC_start * 1000 + v * swp_ofs; in swp_info_get() 782 static int swp_freq_calcuation(struct mb86a16_state *state, int i, int v, int *V, int vmax, int vm… in swp_freq_calcuation() argument 787 if ((i % 2 == 1) && (v <= vmax)) { in swp_freq_calcuation() 789 if ((v - 1 == vmin) && in swp_freq_calcuation() 790 (*(V + 30 + v) >= 0) && in swp_freq_calcuation() 791 (*(V + 30 + v - 1) >= 0) && in swp_freq_calcuation() 792 (*(V + 30 + v - 1) > *(V + 30 + v)) && in swp_freq_calcuation() 793 (*(V + 30 + v - 1) > SIGMIN)) { in swp_freq_calcuation() 796 *SIG1 = *(V + 30 + v - 1); in swp_freq_calcuation() [all …]
|
D | bcm3510.c | 126 static int bcm3510_writeB(struct bcm3510_state *state, u8 reg, bcm3510_register_value v) in bcm3510_writeB() argument 128 return bcm3510_writebytes(state,reg,&v.raw,1); in bcm3510_writeB() 131 static int bcm3510_readB(struct bcm3510_state *state, u8 reg, bcm3510_register_value *v) in bcm3510_readB() argument 133 return bcm3510_readbytes(state,reg,&v->raw,1); in bcm3510_readB() 139 bcm3510_register_value v; in bcm3510_hab_get_response() local 142 v.HABADR_a6.HABADR = 0; in bcm3510_hab_get_response() 143 if ((ret = bcm3510_writeB(st,0xa6,v)) < 0) in bcm3510_hab_get_response() 147 if ((ret = bcm3510_readB(st,0xa7,&v)) < 0) in bcm3510_hab_get_response() 149 buf[i] = v.HABDATA_a7; in bcm3510_hab_get_response() 156 bcm3510_register_value v,hab; in bcm3510_hab_send_request() local [all …]
|
/linux-4.1.27/arch/powerpc/boot/ |
D | addnote.c | 72 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \ argument 73 buf[(off) + 1] = (v) & 0xff) 74 #define PUT_32BE(off, v)(PUT_16BE((off), (v) >> 16L), PUT_16BE((off) + 2, (v))) argument 75 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \ argument 76 PUT_32BE((off) + 4, (v)))) 82 #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \ argument 83 buf[(off) + 1] = ((v) >> 8) & 0xff) 84 #define PUT_32LE(off, v) (PUT_16LE((off), (v)), PUT_16LE((off) + 2, (v) >> 16L)) argument 85 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L)) argument 90 #define PUT_16(off, v) (e_data == ELFDATA2MSB ? PUT_16BE(off, v) : \ argument [all …]
|
D | mpsc.c | 106 void *v; in mpsc_get_virtreg_of_phandle() local 109 n = getprop(devp, prop, &v, sizeof(v)); in mpsc_get_virtreg_of_phandle() 110 if (n != sizeof(v)) in mpsc_get_virtreg_of_phandle() 113 devp = find_node_by_linuxphandle((u32)v); in mpsc_get_virtreg_of_phandle() 117 n = getprop(devp, "virtual-reg", &v, sizeof(v)); in mpsc_get_virtreg_of_phandle() 118 if (n == sizeof(v)) in mpsc_get_virtreg_of_phandle() 119 return v; in mpsc_get_virtreg_of_phandle() 127 void *v; in mpsc_console_init() local 131 n = getprop(devp, "virtual-reg", &v, sizeof(v)); in mpsc_console_init() 132 if (n != sizeof(v)) in mpsc_console_init() [all …]
|
/linux-4.1.27/drivers/scsi/arm/ |
D | cumana_1.c | 44 #define L(v) (((v)<<16)|((v) & 0x0000ffff)) argument 45 #define H(v) (((v)>>16)|((v) & 0xffff0000)) argument 60 unsigned long v; in NCR5380_pwrite() local 66 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite() 67 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite() 68 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite() 69 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite() 70 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite() 71 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite() 72 v=*laddr++; writew(L(v), dma); writew(H(v), dma); in NCR5380_pwrite() [all …]
|
/linux-4.1.27/include/uapi/linux/ |
D | pkt_cls.h | 13 #define _TC_MAKEMASK(v,n) (_TC_MAKE32((_TC_MAKE32(1)<<(v))-1) << _TC_MAKE32(n)) argument 14 #define _TC_MAKEVALUE(v,n) (_TC_MAKE32(v) << _TC_MAKE32(n)) argument 15 #define _TC_GETVALUE(v,n,m) ((_TC_MAKE32(v) & _TC_MAKE32(m)) >> _TC_MAKE32(n)) argument 39 #define SET_TC_MUNGED(v) ( TC_MUNGED | (v & ~TC_MUNGED)) argument 40 #define CLR_TC_MUNGED(v) ( v & ~TC_MUNGED) argument 43 #define SET_TC_OK2MUNGE(v) ( TC_OK2MUNGE | (v & ~TC_OK2MUNGE)) argument 44 #define CLR_TC_OK2MUNGE(v) ( v & ~TC_OK2MUNGE) argument 50 #define SET_TC_VERD(v,n) ((V_TC_VERD(n)) | (v & ~M_TC_VERD)) argument 56 #define SET_TC_FROM(v,n) ((V_TC_FROM(n)) | (v & ~M_TC_FROM)) argument 62 #define SET_TC_NCLS(v) ( TC_NCLS | (v & ~TC_NCLS)) argument [all …]
|
/linux-4.1.27/Documentation/hwmon/ |
D | ltc4245 | 45 in1_input 12v input voltage (mV) 46 in2_input 5v input voltage (mV) 47 in3_input 3v input voltage (mV) 48 in4_input Vee (-12v) input voltage (mV) 50 in1_min_alarm 12v input undervoltage alarm 51 in2_min_alarm 5v input undervoltage alarm 52 in3_min_alarm 3v input undervoltage alarm 53 in4_min_alarm Vee (-12v) input undervoltage alarm 55 curr1_input 12v current (mA) 56 curr2_input 5v current (mA) [all …]
|
/linux-4.1.27/arch/arm/mach-ixp4xx/include/mach/ |
D | io.h | 57 #define writeb(v, p) __indirect_writeb(v, p) argument 58 #define writew(v, p) __indirect_writew(v, p) argument 59 #define writel(v, p) __indirect_writel(v, p) argument 61 #define writeb_relaxed(v, p) __indirect_writeb(v, p) argument 62 #define writew_relaxed(v, p) __indirect_writew(v, p) argument 63 #define writel_relaxed(v, p) __indirect_writel(v, p) argument 65 #define writesb(p, v, l) __indirect_writesb(p, v, l) argument 66 #define writesw(p, v, l) __indirect_writesw(p, v, l) argument 67 #define writesl(p, v, l) __indirect_writesl(p, v, l) argument 77 #define readsb(p, v, l) __indirect_readsb(p, v, l) argument [all …]
|
/linux-4.1.27/arch/c6x/kernel/ |
D | module.c | 55 Elf32_Addr v; in apply_relocate_add() local 72 v = sym->st_value + rel[i].r_addend; in apply_relocate_add() 76 pr_debug("RELA ABS32: [%p] = 0x%x\n", location, v); in apply_relocate_add() 77 *location = v; in apply_relocate_add() 80 pr_debug("RELA ABS16: [%p] = 0x%x\n", location, v); in apply_relocate_add() 81 *(u16 *)location = v; in apply_relocate_add() 84 pr_debug("RELA ABS8: [%p] = 0x%x\n", location, v); in apply_relocate_add() 85 *(u8 *)location = v; in apply_relocate_add() 90 opcode |= ((v & 0xffff) << 7); in apply_relocate_add() 92 location, v, opcode); in apply_relocate_add() [all …]
|
/linux-4.1.27/arch/sh/include/cpu-sh3/cpu/ |
D | dac.h | 19 unsigned char v; in sh_dac_enable() local 20 v = __raw_readb(DACR); in sh_dac_enable() 21 if(channel) v |= DACR_DAOE1; in sh_dac_enable() 22 else v |= DACR_DAOE0; in sh_dac_enable() 23 __raw_writeb(v,DACR); in sh_dac_enable() 28 unsigned char v; in sh_dac_disable() local 29 v = __raw_readb(DACR); in sh_dac_disable() 30 if(channel) v &= ~DACR_DAOE1; in sh_dac_disable() 31 else v &= ~DACR_DAOE0; in sh_dac_disable() 32 __raw_writeb(v,DACR); in sh_dac_disable()
|
/linux-4.1.27/arch/arc/kernel/ |
D | unaligned.c | 48 unsigned int err = 0, v, a = addr; \ 49 __get8_unaligned_check(v, a, err); \ 50 val = v << ((BE) ? 8 : 0); \ 51 __get8_unaligned_check(v, a, err); \ 52 val |= v << ((BE) ? 0 : 8); \ 59 unsigned int err = 0, v, a = addr; \ 60 __get8_unaligned_check(v, a, err); \ 61 val = v << ((BE) ? 24 : 0); \ 62 __get8_unaligned_check(v, a, err); \ 63 val |= v << ((BE) ? 16 : 8); \ [all …]
|
/linux-4.1.27/sound/aoa/codecs/ |
D | onyx.c | 70 s32 v; in onyx_read_register() local 76 v = i2c_smbus_read_byte_data(onyx->i2c, reg); in onyx_read_register() 77 if (v < 0) in onyx_read_register() 79 *value = (u8)v; in onyx_read_register() 215 u8 v, n; in onyx_snd_inputgain_put() local 221 onyx_read_register(onyx, ONYX_REG_ADC_CONTROL, &v); in onyx_snd_inputgain_put() 222 n = v; in onyx_snd_inputgain_put() 229 return n != v; in onyx_snd_inputgain_put() 253 s8 v; in onyx_snd_capture_source_get() local 256 onyx_read_register(onyx, ONYX_REG_ADC_CONTROL, &v); in onyx_snd_capture_source_get() [all …]
|
/linux-4.1.27/sound/pci/au88x0/ |
D | au88x0_a3d.c | 487 static void a3dsrc_ZeroStateA3D(a3dsrc_t *a, vortex_t *v) in a3dsrc_ZeroStateA3D() argument 492 dev_err(v->card->dev, in a3dsrc_ZeroStateA3D() 554 static void vortex_A3dSourceHw_Initialize(vortex_t * v, int source, int slice) in vortex_A3dSourceHw_Initialize() argument 556 a3dsrc_t *a3dsrc = &(v->a3d[source + (slice * 4)]); in vortex_A3dSourceHw_Initialize() 559 a3dsrc->vortex = (void *)v; in vortex_A3dSourceHw_Initialize() 567 static int Vort3DRend_Initialize(vortex_t * v, unsigned short mode) in Vort3DRend_Initialize() argument 569 v->xt_mode = mode; /* this_14 */ in Vort3DRend_Initialize() 571 vortex_XtalkHw_init(v); in Vort3DRend_Initialize() 572 vortex_XtalkHw_SetGainsAllChan(v); in Vort3DRend_Initialize() 573 switch (v->xt_mode) { in Vort3DRend_Initialize() [all …]
|
/linux-4.1.27/arch/nios2/kernel/ |
D | module.c | 65 uint32_t v = sym->st_value + rela[i].r_addend; in apply_relocate_add() local 75 *loc += v; in apply_relocate_add() 78 v -= (uint32_t)loc + 4; in apply_relocate_add() 79 if ((int32_t)v > 0x7fff || in apply_relocate_add() 80 (int32_t)v < -(int32_t)0x8000) { in apply_relocate_add() 86 *loc = ((((word >> 22) << 16) | (v & 0xffff)) << 6) | in apply_relocate_add() 90 if (v & 3) { in apply_relocate_add() 95 if ((v >> 28) != ((uint32_t)loc >> 28)) { in apply_relocate_add() 100 *loc = (*loc & 0x3f) | ((v >> 2) << 6); in apply_relocate_add() 105 ((v >> 16) & 0xffff)) << 6) | (word & 0x3f); in apply_relocate_add() [all …]
|
/linux-4.1.27/net/x25/ |
D | x25_proc.c | 37 static void *x25_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_route_next() argument 39 return seq_list_next(v, &x25_route_list, pos); in x25_seq_route_next() 42 static void x25_seq_route_stop(struct seq_file *seq, void *v) in x25_seq_route_stop() argument 48 static int x25_seq_route_show(struct seq_file *seq, void *v) in x25_seq_route_show() argument 50 struct x25_route *rt = list_entry(v, struct x25_route, node); in x25_seq_route_show() 52 if (v == &x25_route_list) { in x25_seq_route_show() 57 rt = v; in x25_seq_route_show() 72 static void *x25_seq_socket_next(struct seq_file *seq, void *v, loff_t *pos) in x25_seq_socket_next() argument 74 return seq_hlist_next(v, &x25_list, pos); in x25_seq_socket_next() 77 static void x25_seq_socket_stop(struct seq_file *seq, void *v) in x25_seq_socket_stop() argument [all …]
|
/linux-4.1.27/arch/microblaze/include/asm/ |
D | io.h | 50 #define out_be32(a, v) __raw_writel((v), (void __iomem __force *)(a)) argument 51 #define out_be16(a, v) __raw_writew((v), (a)) argument 56 #define writel_be(v, a) out_be32((__force unsigned *)a, v) argument 60 #define out_le32(a, v) __raw_writel(__cpu_to_le32(v), (a)) argument 61 #define out_le16(a, v) __raw_writew(__cpu_to_le16(v), (a)) argument 67 #define out_8(a, v) __raw_writeb((v), (a)) argument
|
/linux-4.1.27/lib/mpi/ |
D | mpi-cmp.c | 23 int mpi_cmp_ui(MPI u, unsigned long v) in mpi_cmp_ui() argument 25 mpi_limb_t limb = v; in mpi_cmp_ui() 44 int mpi_cmp(MPI u, MPI v) in mpi_cmp() argument 50 mpi_normalize(v); in mpi_cmp() 52 vsize = v->nlimbs; in mpi_cmp() 53 if (!u->sign && v->sign) in mpi_cmp() 55 if (u->sign && !v->sign) in mpi_cmp() 57 if (usize != vsize && !u->sign && !v->sign) in mpi_cmp() 59 if (usize != vsize && u->sign && v->sign) in mpi_cmp() 63 cmp = mpihelp_cmp(u->d, v->d, usize); in mpi_cmp()
|
/linux-4.1.27/arch/c6x/include/asm/ |
D | unaligned.h | 84 #define put_unaligned_le32(v, p) put_unaligned32(__swab32(v), (p)) argument 85 #define put_unaligned_le64(v, p) put_unaligned64(__swab64(v), (p)) argument 86 #define put_unaligned_be32(v, p) put_unaligned32((v), (p)) argument 87 #define put_unaligned_be64(v, p) put_unaligned64((v), (p)) argument 97 #define put_unaligned_le32(v, p) put_unaligned32((v), (p)) argument 98 #define put_unaligned_le64(v, p) put_unaligned64((v), (p)) argument 99 #define put_unaligned_be32(v, p) put_unaligned32(__swab32(v), (p)) argument 100 #define put_unaligned_be64(v, p) put_unaligned64(__swab64(v), (p)) argument
|
/linux-4.1.27/arch/arm/mach-ebsa110/include/mach/ |
D | io.h | 42 #define outb(v,p) __outb16(v,p) argument 45 #define outb(v,p) __outb8(v,p) argument 49 #define outw(v,p) __outw(v,p) argument 52 #define outl(v,p) __outl(v,p) argument 61 #define writeb(v,b) __writeb(v,b) argument 62 #define writew(v,b) __writew(v,b) argument 63 #define writel(v,b) __writel(v,b) argument
|
/linux-4.1.27/drivers/mfd/ |
D | da903x.c | 268 uint8_t v[3]; in da9030_unmask_events() local 272 v[0] = (chip->events_mask & 0xff); in da9030_unmask_events() 273 v[1] = (chip->events_mask >> 8) & 0xff; in da9030_unmask_events() 274 v[2] = (chip->events_mask >> 16) & 0xff; in da9030_unmask_events() 276 return __da903x_writes(chip->client, DA9030_IRQ_MASK_A, 3, v); in da9030_unmask_events() 281 uint8_t v[3]; in da9030_mask_events() local 285 v[0] = (chip->events_mask & 0xff); in da9030_mask_events() 286 v[1] = (chip->events_mask >> 8) & 0xff; in da9030_mask_events() 287 v[2] = (chip->events_mask >> 16) & 0xff; in da9030_mask_events() 289 return __da903x_writes(chip->client, DA9030_IRQ_MASK_A, 3, v); in da9030_mask_events() [all …]
|
/linux-4.1.27/arch/arm/mm/ |
D | nommu.c | 29 static void rgnr_write(u32 v) in rgnr_write() argument 31 asm("mcr p15, 0, %0, c6, c2, 0" : : "r" (v)); in rgnr_write() 37 static void dracr_write(u32 v) in dracr_write() argument 39 asm("mcr p15, 0, %0, c6, c1, 4" : : "r" (v)); in dracr_write() 43 static void drsr_write(u32 v) in drsr_write() argument 45 asm("mcr p15, 0, %0, c6, c1, 2" : : "r" (v)); in drsr_write() 49 static void drbar_write(u32 v) in drbar_write() argument 51 asm("mcr p15, 0, %0, c6, c1, 0" : : "r" (v)); in drbar_write() 56 u32 v; in drbar_read() local 57 asm("mrc p15, 0, %0, c6, c1, 0" : "=r" (v)); in drbar_read() [all …]
|
/linux-4.1.27/arch/m68k/coldfire/ |
D | intc-5272.c | 86 u32 v; in intc_irq_mask() local 88 v = 0x8 << intc_irqmap[irq].index; in intc_irq_mask() 89 writel(v, intc_irqmap[irq].icr); in intc_irq_mask() 98 u32 v; in intc_irq_unmask() local 100 v = 0xd << intc_irqmap[irq].index; in intc_irq_unmask() 101 writel(v, intc_irqmap[irq].icr); in intc_irq_unmask() 113 u32 v; in intc_irq_ack() local 114 v = readl(intc_irqmap[irq].icr); in intc_irq_ack() 115 v &= (0x7 << intc_irqmap[irq].index); in intc_irq_ack() 116 v |= (0x8 << intc_irqmap[irq].index); in intc_irq_ack() [all …]
|
D | m5272.c | 63 u32 v; in m5272_uarts_init() local 66 v = readl(MCFSIM_PBCNT); in m5272_uarts_init() 67 v = (v & ~0x000000ff) | 0x00000055; in m5272_uarts_init() 68 writel(v, MCFSIM_PBCNT); in m5272_uarts_init() 70 v = readl(MCFSIM_PDCNT); in m5272_uarts_init() 71 v = (v & ~0x000003fc) | 0x000002a8; in m5272_uarts_init() 72 writel(v, MCFSIM_PDCNT); in m5272_uarts_init()
|
/linux-4.1.27/drivers/video/fbdev/ |
D | hitfb.c | 173 unsigned short v; in hitfb_blank() local 176 v = fb_readw(HD64461_LDR1); in hitfb_blank() 177 v &= ~HD64461_LDR1_DON; in hitfb_blank() 178 fb_writew(v, HD64461_LDR1); in hitfb_blank() 180 v = fb_readw(HD64461_LCDCCR); in hitfb_blank() 181 v |= HD64461_LCDCCR_MOFF; in hitfb_blank() 182 fb_writew(v, HD64461_LCDCCR); in hitfb_blank() 184 v = fb_readw(HD64461_STBCR); in hitfb_blank() 185 v |= HD64461_STBCR_SLCDST; in hitfb_blank() 186 fb_writew(v, HD64461_STBCR); in hitfb_blank() [all …]
|
D | atafb_iplan2p8.c | 114 u32 pval[4], v, v1, mask; in atafb_iplan2p8_copyarea() local 147 v = *src32++; in atafb_iplan2p8_copyarea() 148 v1 = v & mask; in atafb_iplan2p8_copyarea() 150 pval[0] = (v ^ v1) << 8; in atafb_iplan2p8_copyarea() 151 v = *src32++; in atafb_iplan2p8_copyarea() 152 v1 = v & mask; in atafb_iplan2p8_copyarea() 154 pval[1] = (v ^ v1) << 8; in atafb_iplan2p8_copyarea() 155 v = *src32++; in atafb_iplan2p8_copyarea() 156 v1 = v & mask; in atafb_iplan2p8_copyarea() 158 pval[2] = (v ^ v1) << 8; in atafb_iplan2p8_copyarea() [all …]
|
/linux-4.1.27/fs/xfs/libxfs/ |
D | xfs_bit.h | 42 static inline int xfs_highbit32(__uint32_t v) in xfs_highbit32() argument 44 return fls(v) - 1; in xfs_highbit32() 48 static inline int xfs_highbit64(__uint64_t v) in xfs_highbit64() argument 50 return fls64(v) - 1; in xfs_highbit64() 54 static inline int xfs_lowbit32(__uint32_t v) in xfs_lowbit32() argument 56 return ffs(v) - 1; in xfs_lowbit32() 60 static inline int xfs_lowbit64(__uint64_t v) in xfs_lowbit64() argument 62 __uint32_t w = (__uint32_t)v; in xfs_lowbit64() 68 w = (__uint32_t)(v >> 32); in xfs_lowbit64()
|
/linux-4.1.27/arch/arm/mach-s3c24xx/include/mach/ |
D | io.h | 115 unsigned long v = value; \ 120 : : "r" (v), "r" (PCIO_BASE), "Jr" ((port))); \ 124 : : "r" (v), \ 130 : : "r" (v), \ 135 : : "r" (v), "r" ((port))); \ 168 unsigned long v = value; \ 172 : : "r" (v), "r" (PCIO_BASE), "Jr" ((port))); \ 176 : : "r" (v), "r" ((port))); \ 198 #define outb(v,p) (__builtin_constant_p((p)) ? __outbc(v,p) : __outb(v,p)) argument 199 #define outw(v,p) (__builtin_constant_p((p)) ? __outwc(v,p) : __outw(v,p)) argument [all …]
|
/linux-4.1.27/fs/afs/ |
D | proc.c | 25 static void *afs_proc_cells_next(struct seq_file *p, void *v, loff_t *pos); 26 static void afs_proc_cells_stop(struct seq_file *p, void *v); 27 static int afs_proc_cells_show(struct seq_file *m, void *v); 60 static void *afs_proc_cell_volumes_next(struct seq_file *p, void *v, 62 static void afs_proc_cell_volumes_stop(struct seq_file *p, void *v); 63 static int afs_proc_cell_volumes_show(struct seq_file *m, void *v); 82 static void *afs_proc_cell_vlservers_next(struct seq_file *p, void *v, 84 static void afs_proc_cell_vlservers_stop(struct seq_file *p, void *v); 85 static int afs_proc_cell_vlservers_show(struct seq_file *m, void *v); 103 static void *afs_proc_cell_servers_next(struct seq_file *p, void *v, [all …]
|
/linux-4.1.27/arch/powerpc/mm/ |
D | 40x_mmu.c | 98 unsigned long v, s, mapped; in mmu_mapin_ram() local 101 v = KERNELBASE; in mmu_mapin_ram() 112 pmdp = pmd_offset(pud_offset(pgd_offset_k(v), v), v); in mmu_mapin_ram() 118 v += LARGE_PAGE_SIZE_16M; in mmu_mapin_ram() 127 pmdp = pmd_offset(pud_offset(pgd_offset_k(v), v), v); in mmu_mapin_ram() 130 v += LARGE_PAGE_SIZE_4M; in mmu_mapin_ram()
|
/linux-4.1.27/drivers/net/wireless/hostap/ |
D | hostap_pci.c | 55 static inline void hfa384x_outb_debug(struct net_device *dev, int a, u8 v) in hfa384x_outb_debug() argument 67 prism2_io_debug_add(dev, PRISM2_IO_DEBUG_CMD_OUTB, a, v); in hfa384x_outb_debug() 68 writeb(v, hw_priv->mem_start + a); in hfa384x_outb_debug() 78 u8 v; in hfa384x_inb_debug() local 85 v = readb(hw_priv->mem_start + a); in hfa384x_inb_debug() 86 prism2_io_debug_add(dev, PRISM2_IO_DEBUG_CMD_INB, a, v); in hfa384x_inb_debug() 88 return v; in hfa384x_inb_debug() 91 static inline void hfa384x_outw_debug(struct net_device *dev, int a, u16 v) in hfa384x_outw_debug() argument 103 prism2_io_debug_add(dev, PRISM2_IO_DEBUG_CMD_OUTW, a, v); in hfa384x_outw_debug() 104 writew(v, hw_priv->mem_start + a); in hfa384x_outw_debug() [all …]
|
/linux-4.1.27/arch/mips/include/asm/sibyte/ |
D | sb1250_defs.h | 235 #define _SB_MAKEMASK(v, n) (_SB_MAKE64((_SB_MAKE64(1)<<(v))-1) << _SB_MAKE64(n)) argument 236 #define _SB_MAKEMASK_32(v, n) (_SB_MAKE32((_SB_MAKE32(1)<<(v))-1) << _SB_MAKE32(n)) argument 242 #define _SB_MAKEVALUE(v, n) (_SB_MAKE64(v) << _SB_MAKE64(n)) argument 243 #define _SB_MAKEVALUE_32(v, n) (_SB_MAKE32(v) << _SB_MAKE32(n)) argument 245 #define _SB_GETVALUE(v, n, m) ((_SB_MAKE64(v) & _SB_MAKE64(m)) >> _SB_MAKE64(n)) argument 246 #define _SB_GETVALUE_32(v, n, m) ((_SB_MAKE32(v) & _SB_MAKE32(m)) >> _SB_MAKE32(n)) argument
|
/linux-4.1.27/net/appletalk/ |
D | atalk_proc.c | 39 static void *atalk_seq_interface_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_interface_next() argument 44 if (v == SEQ_START_TOKEN) { in atalk_seq_interface_next() 50 i = v; in atalk_seq_interface_next() 56 static void atalk_seq_interface_stop(struct seq_file *seq, void *v) in atalk_seq_interface_stop() argument 62 static int atalk_seq_interface_show(struct seq_file *seq, void *v) in atalk_seq_interface_show() argument 66 if (v == SEQ_START_TOKEN) { in atalk_seq_interface_show() 72 iface = v; in atalk_seq_interface_show() 100 static void *atalk_seq_route_next(struct seq_file *seq, void *v, loff_t *pos) in atalk_seq_route_next() argument 105 if (v == SEQ_START_TOKEN) { in atalk_seq_route_next() 111 r = v; in atalk_seq_route_next() [all …]
|
/linux-4.1.27/drivers/media/radio/ |
D | radio-sf16fmi.c | 130 struct v4l2_capability *v) in vidioc_querycap() argument 132 strlcpy(v->driver, "radio-sf16fmi", sizeof(v->driver)); in vidioc_querycap() 133 strlcpy(v->card, "SF16-FMI/FMP/FMD radio", sizeof(v->card)); in vidioc_querycap() 134 strlcpy(v->bus_info, "ISA:radio-sf16fmi", sizeof(v->bus_info)); in vidioc_querycap() 135 v->device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO; in vidioc_querycap() 136 v->capabilities = v->device_caps | V4L2_CAP_DEVICE_CAPS; in vidioc_querycap() 141 struct v4l2_tuner *v) in vidioc_g_tuner() argument 145 if (v->index > 0) in vidioc_g_tuner() 148 strlcpy(v->name, "FM", sizeof(v->name)); in vidioc_g_tuner() 149 v->type = V4L2_TUNER_RADIO; in vidioc_g_tuner() [all …]
|
D | radio-isa.c | 46 struct v4l2_capability *v) in radio_isa_querycap() argument 50 strlcpy(v->driver, isa->drv->driver.driver.name, sizeof(v->driver)); in radio_isa_querycap() 51 strlcpy(v->card, isa->drv->card, sizeof(v->card)); in radio_isa_querycap() 52 snprintf(v->bus_info, sizeof(v->bus_info), "ISA:%s", isa->v4l2_dev.name); in radio_isa_querycap() 54 v->device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO; in radio_isa_querycap() 55 v->capabilities = v->device_caps | V4L2_CAP_DEVICE_CAPS; in radio_isa_querycap() 60 struct v4l2_tuner *v) in radio_isa_g_tuner() argument 65 if (v->index > 0) in radio_isa_g_tuner() 68 strlcpy(v->name, "FM", sizeof(v->name)); in radio_isa_g_tuner() 69 v->type = V4L2_TUNER_RADIO; in radio_isa_g_tuner() [all …]
|
D | radio-raremono.c | 192 struct v4l2_capability *v) in vidioc_querycap() argument 196 strlcpy(v->driver, "radio-raremono", sizeof(v->driver)); in vidioc_querycap() 197 strlcpy(v->card, "Thanko's Raremono", sizeof(v->card)); in vidioc_querycap() 198 usb_make_path(radio->usbdev, v->bus_info, sizeof(v->bus_info)); in vidioc_querycap() 199 v->device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO; in vidioc_querycap() 200 v->capabilities = v->device_caps | V4L2_CAP_DEVICE_CAPS; in vidioc_querycap() 219 struct v4l2_tuner *v) in vidioc_g_tuner() argument 224 if (v->index > 0) in vidioc_g_tuner() 227 strlcpy(v->name, "AM/FM/SW", sizeof(v->name)); in vidioc_g_tuner() 228 v->capability = V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO | in vidioc_g_tuner() [all …]
|
D | tef6862.c | 80 static int tef6862_g_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *v) in tef6862_g_tuner() argument 82 if (v->index > 0) in tef6862_g_tuner() 86 strlcpy(v->name, "FM", sizeof(v->name)); in tef6862_g_tuner() 87 v->type = V4L2_TUNER_RADIO; in tef6862_g_tuner() 88 v->rangelow = TEF6862_LO_FREQ; in tef6862_g_tuner() 89 v->rangehigh = TEF6862_HI_FREQ; in tef6862_g_tuner() 90 v->rxsubchans = V4L2_TUNER_SUB_MONO; in tef6862_g_tuner() 91 v->capability = V4L2_TUNER_CAP_LOW; in tef6862_g_tuner() 92 v->audmode = V4L2_TUNER_MODE_STEREO; in tef6862_g_tuner() 93 v->signal = tef6862_sigstr(v4l2_get_subdevdata(sd)); in tef6862_g_tuner() [all …]
|
D | radio-tea5777.c | 269 struct v4l2_capability *v) in vidioc_querycap() argument 273 strlcpy(v->driver, tea->v4l2_dev->name, sizeof(v->driver)); in vidioc_querycap() 274 strlcpy(v->card, tea->card, sizeof(v->card)); in vidioc_querycap() 275 strlcat(v->card, " TEA5777", sizeof(v->card)); in vidioc_querycap() 276 strlcpy(v->bus_info, tea->bus_info, sizeof(v->bus_info)); in vidioc_querycap() 277 v->device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO; in vidioc_querycap() 278 v->device_caps |= V4L2_CAP_HW_FREQ_SEEK; in vidioc_querycap() 279 v->capabilities = v->device_caps | V4L2_CAP_DEVICE_CAPS; in vidioc_querycap() 297 struct v4l2_tuner *v) in vidioc_g_tuner() argument 302 if (v->index > 0) in vidioc_g_tuner() [all …]
|
D | tea575x.c | 235 struct v4l2_capability *v) in vidioc_querycap() argument 239 strlcpy(v->driver, tea->v4l2_dev->name, sizeof(v->driver)); in vidioc_querycap() 240 strlcpy(v->card, tea->card, sizeof(v->card)); in vidioc_querycap() 241 strlcat(v->card, tea->tea5759 ? " TEA5759" : " TEA5757", sizeof(v->card)); in vidioc_querycap() 242 strlcpy(v->bus_info, tea->bus_info, sizeof(v->bus_info)); in vidioc_querycap() 243 v->device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO; in vidioc_querycap() 245 v->device_caps |= V4L2_CAP_HW_FREQ_SEEK; in vidioc_querycap() 246 v->capabilities = v->device_caps | V4L2_CAP_DEVICE_CAPS; in vidioc_querycap() 291 int snd_tea575x_g_tuner(struct snd_tea575x *tea, struct v4l2_tuner *v) in snd_tea575x_g_tuner() argument 295 if (v->index > 0) in snd_tea575x_g_tuner() [all …]
|
D | radio-ma901.c | 200 struct v4l2_capability *v) in vidioc_querycap() argument 204 strlcpy(v->driver, "radio-ma901", sizeof(v->driver)); in vidioc_querycap() 205 strlcpy(v->card, "Masterkit MA901 USB FM Radio", sizeof(v->card)); in vidioc_querycap() 206 usb_make_path(radio->usbdev, v->bus_info, sizeof(v->bus_info)); in vidioc_querycap() 207 v->device_caps = V4L2_CAP_RADIO | V4L2_CAP_TUNER; in vidioc_querycap() 208 v->capabilities = v->device_caps | V4L2_CAP_DEVICE_CAPS; in vidioc_querycap() 214 struct v4l2_tuner *v) in vidioc_g_tuner() argument 218 if (v->index > 0) in vidioc_g_tuner() 221 v->signal = 0; in vidioc_g_tuner() 229 strcpy(v->name, "FM"); in vidioc_g_tuner() [all …]
|
D | dsbr100.c | 177 struct v4l2_capability *v) in vidioc_querycap() argument 181 strlcpy(v->driver, "dsbr100", sizeof(v->driver)); in vidioc_querycap() 182 strlcpy(v->card, "D-Link R-100 USB FM Radio", sizeof(v->card)); in vidioc_querycap() 183 usb_make_path(radio->usbdev, v->bus_info, sizeof(v->bus_info)); in vidioc_querycap() 184 v->device_caps = V4L2_CAP_RADIO | V4L2_CAP_TUNER; in vidioc_querycap() 185 v->capabilities = v->device_caps | V4L2_CAP_DEVICE_CAPS; in vidioc_querycap() 190 struct v4l2_tuner *v) in vidioc_g_tuner() argument 194 if (v->index > 0) in vidioc_g_tuner() 198 strcpy(v->name, "FM"); in vidioc_g_tuner() 199 v->type = V4L2_TUNER_RADIO; in vidioc_g_tuner() [all …]
|
D | radio-timb.c | 44 struct v4l2_capability *v) in timbradio_vidioc_querycap() argument 46 strlcpy(v->driver, DRIVER_NAME, sizeof(v->driver)); in timbradio_vidioc_querycap() 47 strlcpy(v->card, "Timberdale Radio", sizeof(v->card)); in timbradio_vidioc_querycap() 48 snprintf(v->bus_info, sizeof(v->bus_info), "platform:"DRIVER_NAME); in timbradio_vidioc_querycap() 49 v->device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO; in timbradio_vidioc_querycap() 50 v->capabilities = v->device_caps | V4L2_CAP_DEVICE_CAPS; in timbradio_vidioc_querycap() 55 struct v4l2_tuner *v) in timbradio_vidioc_g_tuner() argument 58 return v4l2_subdev_call(tr->sd_tuner, tuner, g_tuner, v); in timbradio_vidioc_g_tuner() 62 const struct v4l2_tuner *v) in timbradio_vidioc_s_tuner() argument 65 return v4l2_subdev_call(tr->sd_tuner, tuner, s_tuner, v); in timbradio_vidioc_s_tuner()
|
/linux-4.1.27/arch/arm/vfp/ |
D | vfp.h | 36 u32 v; in vfp_hi64to32jamming() local 42 : "=r" (v) : "r" (val) : "cc"); in vfp_hi64to32jamming() 44 return v; in vfp_hi64to32jamming() 180 #define vfp_single_packed_sign(v) ((v) & 0x80000000) argument 181 #define vfp_single_packed_negate(v) ((v) ^ 0x80000000) argument 182 #define vfp_single_packed_abs(v) ((v) & ~0x80000000) argument 183 #define vfp_single_packed_exponent(v) (((v) >> VFP_SINGLE_MANTISSA_BITS) & ((1 << VFP_SINGLE_EXPONE… argument 184 #define vfp_single_packed_mantissa(v) ((v) & ((1 << VFP_SINGLE_MANTISSA_BITS) - 1)) argument 289 #define vfp_double_packed_sign(v) ((v) & (1ULL << 63)) argument 290 #define vfp_double_packed_negate(v) ((v) ^ (1ULL << 63)) argument [all …]
|
/linux-4.1.27/drivers/irqchip/ |
D | irq-vic.c | 198 struct vic_device *v = d->host_data; in vic_irqdomain_map() local 201 if (!(v->valid_sources & (1 << hwirq))) in vic_irqdomain_map() 204 irq_set_chip_data(irq, v->base); in vic_irqdomain_map() 284 struct vic_device *v; in vic_register() local 292 v = &vic_devices[vic_id]; in vic_register() 293 v->base = base; in vic_register() 294 v->valid_sources = valid_sources; in vic_register() 295 v->resume_sources = resume_sources; in vic_register() 300 irq_set_handler_data(parent_irq, v); in vic_register() 304 v->domain = irq_domain_add_simple(node, fls(valid_sources), irq, in vic_register() [all …]
|
/linux-4.1.27/drivers/s390/char/ |
D | sclp_tty.c | 437 static inline void sclp_eval_textcmd(struct gds_vector *v) in sclp_eval_textcmd() argument 442 end = (void *) v + v->length; in sclp_eval_textcmd() 443 for (sv = (struct gds_subvector *) (v + 1); in sclp_eval_textcmd() 450 static inline void sclp_eval_cpmsu(struct gds_vector *v) in sclp_eval_cpmsu() argument 454 end = (void *) v + v->length; in sclp_eval_cpmsu() 455 for (v = v + 1; (void *) v < end; v = (void *) v + v->length) in sclp_eval_cpmsu() 456 if (v->gds_id == GDS_ID_TEXTCMD) in sclp_eval_cpmsu() 457 sclp_eval_textcmd(v); in sclp_eval_cpmsu() 461 static inline void sclp_eval_mdsmu(struct gds_vector *v) in sclp_eval_mdsmu() argument 463 v = sclp_find_gds_vector(v + 1, (void *) v + v->length, GDS_ID_CPMSU); in sclp_eval_mdsmu() [all …]
|
D | sclp_ocf.c | 44 struct gds_vector *v; in sclp_ocf_handler() local 49 v = sclp_find_gds_vector(evbuf + 1, (void *) evbuf + evbuf->length, in sclp_ocf_handler() 51 if (!v) in sclp_ocf_handler() 54 v = sclp_find_gds_vector(v + 1, (void *) v + v->length, 0x9f22); in sclp_ocf_handler() 55 if (!v) in sclp_ocf_handler() 58 sv = sclp_find_gds_subvector(v + 1, (void *) v + v->length, 0x81); in sclp_ocf_handler()
|
/linux-4.1.27/sound/soc/fsl/ |
D | fsl_asrc.h | 127 #define ASRCNCR_ANCi(i, v, b) ((v << ASRCNCR_ANCi_SHIFT(i, b)) & ASRCNCR_ANCi_MASK(i, b)) argument 139 #define ASRCFG_POSTMOD(i, v) ((v) << ASRCFG_POSTMODi_SHIFT(i)) argument 146 #define ASRCFG_PREMOD(i, v) ((v) << ASRCFG_PREMODi_SHIFT(i)) argument 157 #define ASRCSR_AOCS(i, v) ((v) << ASRCSR_AOCSi_SHIFT(i)) argument 160 #define ASRCSR_AICS(i, v) ((v) << ASRCSR_AICSi_SHIFT(i)) argument 166 #define ASRCDRi_AICP(i, v) ((v) << ASRCDRi_AICPi_SHIFT(i)) argument 169 #define ASRCDRi_AICD(i, v) ((v) << ASRCDRi_AICDi_SHIFT(i)) argument 172 #define ASRCDRi_AOCP(i, v) ((v) << ASRCDRi_AOCPi_SHIFT(i)) argument 175 #define ASRCDRi_AOCD(i, v) ((v) << ASRCDRi_AOCDi_SHIFT(i)) argument 235 #define ASRMCRi_OUTFIFO_THRESHOLD(v) (((v) << ASRMCRi_OUTFIFO_THRESHOLD_SHIFT) & ASRMCRi_OUTFIFO_TH… argument [all …]
|
/linux-4.1.27/arch/ia64/include/asm/uv/ |
D | uv_mmrs.h | 40 unsigned long v; member 176 unsigned long v; member 268 unsigned long v; member 306 unsigned long v; member 344 unsigned long v; member 382 unsigned long v; member 406 unsigned long v; member 422 unsigned long v; member 438 unsigned long v; member 466 unsigned long v; member [all …]
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb/ |
D | vsc7326.c | 436 u32 v; in mac_set_rx_mode() local 439 vsc_read(mac->adapter, REG_ING_FFILT_UM_EN, &v); in mac_set_rx_mode() 440 v |= 1 << 12; in mac_set_rx_mode() 443 v &= ~(1 << (port + 16)); in mac_set_rx_mode() 445 v |= 1 << (port + 16); in mac_set_rx_mode() 447 vsc_write(mac->adapter, REG_ING_FFILT_UM_EN, v); in mac_set_rx_mode() 466 u32 v; in mac_set_speed_duplex_fc() local 476 vsc_read(mac->adapter, REG_MODE_CFG(port), &v); in mac_set_speed_duplex_fc() 477 enable = v & 3; /* save tx/rx enables */ in mac_set_speed_duplex_fc() 478 v &= ~0xf; in mac_set_speed_duplex_fc() [all …]
|
D | suni1x10gexp_regs.h | 533 #define mSUNI1x10GEXP_CLR_MSBITS_1(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_15) argument 534 #define mSUNI1x10GEXP_CLR_MSBITS_2(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_14) argument 535 #define mSUNI1x10GEXP_CLR_MSBITS_3(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_13) argument 536 #define mSUNI1x10GEXP_CLR_MSBITS_4(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_12) argument 537 #define mSUNI1x10GEXP_CLR_MSBITS_5(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_11) argument 538 #define mSUNI1x10GEXP_CLR_MSBITS_6(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_10) argument 539 #define mSUNI1x10GEXP_CLR_MSBITS_7(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_9) argument 540 #define mSUNI1x10GEXP_CLR_MSBITS_8(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_8) argument 541 #define mSUNI1x10GEXP_CLR_MSBITS_9(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_7) argument 542 #define mSUNI1x10GEXP_CLR_MSBITS_10(v) ((v) & SUNI1x10GEXP_BITMSK_BITS_6) argument [all …]
|
/linux-4.1.27/drivers/isdn/capi/ |
D | kcapi_proc.c | 49 static void *controller_next(struct seq_file *seq, void *v, loff_t *pos) in controller_next() argument 58 static void controller_stop(struct seq_file *seq, void *v) in controller_stop() argument 64 static int controller_show(struct seq_file *seq, void *v) in controller_show() argument 66 struct capi_ctr *ctr = *(struct capi_ctr **) v; in controller_show() 80 static int contrstats_show(struct seq_file *seq, void *v) in contrstats_show() argument 82 struct capi_ctr *ctr = *(struct capi_ctr **) v; in contrstats_show() 155 applications_next(struct seq_file *seq, void *v, loff_t *pos) in applications_next() argument 164 static void applications_stop(struct seq_file *seq, void *v) in applications_stop() argument 171 applications_show(struct seq_file *seq, void *v) in applications_show() argument 173 struct capi20_appl *ap = *(struct capi20_appl **) v; in applications_show() [all …]
|
/linux-4.1.27/arch/x86/include/uapi/asm/ |
D | swab.h | 23 } v; in __arch_swab64() local 24 v.u = val; in __arch_swab64() 26 : "=r" (v.s.a), "=r" (v.s.b) in __arch_swab64() 27 : "0" (v.s.a), "1" (v.s.b)); in __arch_swab64() 28 return v.u; in __arch_swab64()
|
/linux-4.1.27/arch/cris/include/arch-v32/arch/hwregs/ |
D | supp_reg.h | 53 #define SPEC_REG_WR(r,v) \ argument 54 __asm__ __volatile__ ("move %0, $" r : : "r" (v)); 56 #define SPEC_REG_RD(r,v) \ argument 57 __asm__ __volatile__ ("move $" r ",%0" : "=r" (v)); 68 #define SUPP_REG_WR(r,v) \ argument 73 : : "r" (v)); 75 #define SUPP_REG_RD(r,v) \ argument 76 __asm__ __volatile__ ("move $S" STRINGIFYFY(r) ",%0" : "=r" (v));
|
/linux-4.1.27/drivers/pcmcia/ |
D | sa1111_badge4.c | 155 int v[4]; in pcmv_setup() local 157 s = get_options(s, ARRAY_SIZE(v), v); in pcmv_setup() 159 if (v[0] >= 1) badge4_pcmvcc = v[1]; in pcmv_setup() 160 if (v[0] >= 2) badge4_pcmvpp = v[2]; in pcmv_setup() 161 if (v[0] >= 3) badge4_cfvcc = v[3]; in pcmv_setup()
|
/linux-4.1.27/lib/lz4/ |
D | lz4defs.h | 24 typedef struct _U16_S { u16 v; } U16_S; member 25 typedef struct _U32_S { u32 v; } U32_S; member 26 typedef struct _U64_S { u64 v; } U64_S; member 31 #define A16(x) (((U16_S *)(x))->v) 32 #define A32(x) (((U32_S *)(x))->v) 33 #define A64(x) (((U64_S *)(x))->v) 41 #define LZ4_WRITE_LITTLEENDIAN_16(p, v) \ argument 43 A16(p) = v; \ 48 #define A64(x) get_unaligned((u64 *)&(((U16_S *)(x))->v)) 49 #define A32(x) get_unaligned((u32 *)&(((U16_S *)(x))->v)) [all …]
|
/linux-4.1.27/arch/mips/math-emu/ |
D | ieee754int.h | 58 #define EXPLODESP(v, vc, vs, ve, vm) \ argument 60 vs = SPSIGN(v); \ 61 ve = SPBEXP(v); \ 62 vm = SPMANT(v); \ 92 #define EXPLODEDP(v, vc, vs, ve, vm) \ argument 94 vm = DPMANT(v); \ 95 vs = DPSIGN(v); \ 96 ve = DPBEXP(v); \ 119 #define FLUSHDP(v, vc, vs, ve, vm) \ argument 126 v = ieee754dp_zero(vs); \ [all …]
|
/linux-4.1.27/drivers/power/ |
D | bq24190_charger.c | 213 static u8 bq24190_find_idx(const int tbl[], int tbl_size, int v) in bq24190_find_idx() argument 218 if (v < tbl[i]) in bq24190_find_idx() 246 u8 v; in bq24190_read_mask() local 249 ret = bq24190_read(bdi, reg, &v); in bq24190_read_mask() 253 v &= mask; in bq24190_read_mask() 254 v >>= shift; in bq24190_read_mask() 255 *data = v; in bq24190_read_mask() 263 u8 v; in bq24190_write_mask() local 266 ret = bq24190_read(bdi, reg, &v); in bq24190_write_mask() 270 v &= ~mask; in bq24190_write_mask() [all …]
|
/linux-4.1.27/arch/mips/include/asm/mach-au1x00/ |
D | gpio-au1300.h | 54 static inline int au1300_gpio_set_value(unsigned int gpio, int v) in au1300_gpio_set_value() argument 63 __raw_writel(bit, roff + (v ? AU1300_GPIC_PINVAL in au1300_gpio_set_value() 70 static inline int au1300_gpio_direction_output(unsigned int gpio, int v) in au1300_gpio_direction_output() argument 73 return au1300_gpio_set_value(gpio, v); in au1300_gpio_direction_output() 109 unsigned long v; in au1300_gpio_getinitlvl() local 118 v = __raw_readl(roff + AU1300_GPIC_RSTVAL); in au1300_gpio_getinitlvl() 119 return (v >> gpio) & 1; in au1300_gpio_getinitlvl() 159 static inline int gpio_direction_output(unsigned int gpio, int v) in gpio_direction_output() argument 161 return au1300_gpio_direction_output(gpio, v); in gpio_direction_output() 169 static inline void gpio_set_value(unsigned int gpio, int v) in gpio_set_value() argument [all …]
|
/linux-4.1.27/drivers/media/pci/b2c2/ |
D | flexcop-dma.c | 116 flexcop_ibi_value v = fc->read_ibi_reg(fc,r); in flexcop_dma_remap() local 118 v.dma_0xc.remap_enable = onoff; in flexcop_dma_remap() 119 fc->write_ibi_reg(fc,r,v); in flexcop_dma_remap() 127 flexcop_ibi_value v = fc->read_ibi_reg(fc,ctrl_208); in flexcop_dma_control_size_irq() local 130 v.ctrl_208.DMA1_IRQ_Enable_sig = onoff; in flexcop_dma_control_size_irq() 133 v.ctrl_208.DMA2_IRQ_Enable_sig = onoff; in flexcop_dma_control_size_irq() 135 fc->write_ibi_reg(fc,ctrl_208,v); in flexcop_dma_control_size_irq() 144 flexcop_ibi_value v = fc->read_ibi_reg(fc,ctrl_208); in flexcop_dma_control_timer_irq() local 147 v.ctrl_208.DMA1_Timer_Enable_sig = onoff; in flexcop_dma_control_timer_irq() 150 v.ctrl_208.DMA2_Timer_Enable_sig = onoff; in flexcop_dma_control_timer_irq() [all …]
|
/linux-4.1.27/drivers/ssb/ |
D | driver_pcicore.c | 580 u32 v; in ssb_pcie_mdio_set_phy() local 583 v = (1 << 30); /* Start of Transaction */ in ssb_pcie_mdio_set_phy() 584 v |= (1 << 28); /* Write Transaction */ in ssb_pcie_mdio_set_phy() 585 v |= (1 << 17); /* Turnaround */ in ssb_pcie_mdio_set_phy() 586 v |= (0x1F << 18); in ssb_pcie_mdio_set_phy() 587 v |= (phy << 4); in ssb_pcie_mdio_set_phy() 588 pcicore_write32(pc, mdio_data, v); in ssb_pcie_mdio_set_phy() 592 v = pcicore_read32(pc, mdio_control); in ssb_pcie_mdio_set_phy() 593 if (v & 0x100 /* Trans complete */) in ssb_pcie_mdio_set_phy() 605 u32 v; in ssb_pcie_mdio_read() local [all …]
|
/linux-4.1.27/sound/pci/hda/ |
D | hda_tegra.c | 136 u32 v; in hda_tegra_writew() local 138 v = readl(dword_addr); in hda_tegra_writew() 139 v &= ~(0xffff << shift); in hda_tegra_writew() 140 v |= value << shift; in hda_tegra_writew() 141 writel(v, dword_addr); in hda_tegra_writew() 148 u32 v; in hda_tegra_readw() local 150 v = readl(dword_addr); in hda_tegra_readw() 151 return (v >> shift) & 0xffff; in hda_tegra_readw() 158 u32 v; in hda_tegra_writeb() local 160 v = readl(dword_addr); in hda_tegra_writeb() [all …]
|
/linux-4.1.27/sound/pci/asihpi/ |
D | hpi_version.h | 26 #define HPI_VER_MAJOR(v) ((int)(v >> 16)) argument 28 #define HPI_VER_MINOR(v) ((int)((v >> 8) & 0xFF)) argument 30 #define HPI_VER_RELEASE(v) ((int)(v & 0xFF)) argument
|
/linux-4.1.27/include/linux/i2c/ |
D | mcs.h | 16 #define MCS_KEY_MAP(v, c) ((((v) & 0xff) << 16) | ((c) & 0xffff)) argument 17 #define MCS_KEY_VAL(v) (((v) >> 16) & 0xff) argument 18 #define MCS_KEY_CODE(v) ((v) & 0xffff) argument
|
/linux-4.1.27/sound/soc/bcm/ |
D | bcm2835-i2s.c | 56 #define BCM2835_CLK_MASH(v) ((v) << 9) argument 61 #define BCM2835_CLK_SRC(v) (v) argument 64 #define BCM2835_CLK_DIVI(v) ((v) << BCM2835_CLK_SHIFT) argument 65 #define BCM2835_CLK_DIVF(v) (v) argument 124 #define BCM2835_I2S_RXTHR(v) ((v) << 7) argument 125 #define BCM2835_I2S_TXTHR(v) ((v) << 5) argument 141 #define BCM2835_I2S_FLEN(v) ((v) << 10) argument 142 #define BCM2835_I2S_FSLEN(v) (v) argument 146 #define BCM2835_I2S_CHPOS(v) ((v) << 4) argument 147 #define BCM2835_I2S_CHWID(v) (v) argument [all …]
|
/linux-4.1.27/drivers/crypto/ccp/ |
D | ccp-pci.c | 50 int v, ret; in ccp_get_msix_irqs() local 52 for (v = 0; v < ARRAY_SIZE(msix_entry); v++) in ccp_get_msix_irqs() 53 msix_entry[v].entry = v; in ccp_get_msix_irqs() 55 ret = pci_enable_msix_range(pdev, msix_entry, 1, v); in ccp_get_msix_irqs() 60 for (v = 0; v < ccp_pci->msix_count; v++) { in ccp_get_msix_irqs() 62 snprintf(ccp_pci->msix[v].name, name_len, "ccp-%u", v); in ccp_get_msix_irqs() 63 ccp_pci->msix[v].vector = msix_entry[v].vector; in ccp_get_msix_irqs() 64 ret = request_irq(ccp_pci->msix[v].vector, ccp_irq_handler, in ccp_get_msix_irqs() 65 0, ccp_pci->msix[v].name, dev); in ccp_get_msix_irqs() 76 while (v--) in ccp_get_msix_irqs() [all …]
|
/linux-4.1.27/arch/mips/kvm/ |
D | mips.c | 536 s64 v; in kvm_mips_get_reg() local 543 v = (long)vcpu->arch.gprs[reg->id - KVM_REG_MIPS_R0]; in kvm_mips_get_reg() 546 v = (long)vcpu->arch.hi; in kvm_mips_get_reg() 549 v = (long)vcpu->arch.lo; in kvm_mips_get_reg() 552 v = (long)vcpu->arch.pc; in kvm_mips_get_reg() 562 v = get_fpr32(&fpu->fpr[idx], 0); in kvm_mips_get_reg() 564 v = get_fpr32(&fpu->fpr[idx & ~1], idx & 1); in kvm_mips_get_reg() 573 v = get_fpr64(&fpu->fpr[idx], 0); in kvm_mips_get_reg() 578 v = boot_cpu_data.fpu_id; in kvm_mips_get_reg() 583 v = fpu->fcr31; in kvm_mips_get_reg() [all …]
|
/linux-4.1.27/arch/unicore32/mm/ |
D | alignment.c | 103 unsigned int err = 0, v, a = addr; \ 105 get8_unaligned_check(v, a, err); \ 106 val |= v << 8; \ 113 unsigned int err = 0, v = val, a = addr; \ 129 : "=r" (err), "=&r" (v), "=&r" (a) \ 130 : "0" (err), "1" (v), "2" (a)); \ 137 unsigned int err = 0, v = val, a = addr; \ 159 : "=r" (err), "=&r" (v), "=&r" (a) \ 160 : "0" (err), "1" (v), "2" (a)); \ 167 unsigned int err = 0, v, a = addr; \ [all …]
|