Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 2117) sorted by relevance

12345678910>>...85

/Linux-v4.19/drivers/staging/media/zoran/
Dzr36050.c68 zr36050_read (struct zr36050 *ptr, in zr36050_read() argument
74 if (ptr->codec->master_data->readreg) in zr36050_read()
75 value = (ptr->codec->master_data->readreg(ptr->codec, in zr36050_read()
80 ptr->name); in zr36050_read()
82 dprintk(4, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, in zr36050_read()
89 zr36050_write (struct zr36050 *ptr, in zr36050_write() argument
93 dprintk(4, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, in zr36050_write()
97 if (ptr->codec->master_data->writereg) in zr36050_write()
98 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36050_write()
103 ptr->name); in zr36050_write()
[all …]
Dzr36060.c72 zr36060_read (struct zr36060 *ptr, in zr36060_read() argument
78 if (ptr->codec->master_data->readreg) in zr36060_read()
79 value = (ptr->codec->master_data->readreg(ptr->codec, in zr36060_read()
84 ptr->name); in zr36060_read()
92 zr36060_write(struct zr36060 *ptr, in zr36060_write() argument
100 if (ptr->codec->master_data->writereg) in zr36060_write()
101 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36060_write()
106 ptr->name); in zr36060_write()
117 zr36060_read_status (struct zr36060 *ptr) in zr36060_read_status() argument
119 ptr->status = zr36060_read(ptr, ZR060_CFSR); in zr36060_read_status()
[all …]
Dzr36016.c70 zr36016_read (struct zr36016 *ptr, in zr36016_read() argument
76 if (ptr->codec->master_data->readreg) in zr36016_read()
78 (ptr->codec->master_data-> in zr36016_read()
79 readreg(ptr->codec, reg)) & 0xFF; in zr36016_read()
83 ptr->name); in zr36016_read()
85 dprintk(4, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, in zr36016_read()
92 zr36016_write (struct zr36016 *ptr, in zr36016_write() argument
96 dprintk(4, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, in zr36016_write()
100 if (ptr->codec->master_data->writereg) { in zr36016_write()
101 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36016_write()
[all …]
/Linux-v4.19/arch/riscv/include/asm/
Dcmpxchg.h22 #define __xchg_relaxed(ptr, new, size) \ argument
24 __typeof__(ptr) __ptr = (ptr); \
26 __typeof__(*(ptr)) __ret; \
48 #define xchg_relaxed(ptr, x) \ argument
50 __typeof__(*(ptr)) _x_ = (x); \
51 (__typeof__(*(ptr))) __xchg_relaxed((ptr), \
52 _x_, sizeof(*(ptr))); \
55 #define __xchg_acquire(ptr, new, size) \ argument
57 __typeof__(ptr) __ptr = (ptr); \
59 __typeof__(*(ptr)) __ret; \
[all …]
/Linux-v4.19/arch/arm/include/asm/
Dcmpxchg.h28 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size) in __xchg() argument
39 prefetchw((const void *)ptr); in __xchg()
51 : "r" (x), "r" (ptr) in __xchg()
61 : "r" (x), "r" (ptr) in __xchg()
72 : "r" (x), "r" (ptr) in __xchg()
81 ret = *(volatile unsigned char *)ptr; in __xchg()
82 *(volatile unsigned char *)ptr = x; in __xchg()
88 ret = *(volatile unsigned long *)ptr; in __xchg()
89 *(volatile unsigned long *)ptr = x; in __xchg()
97 : "r" (x), "r" (ptr) in __xchg()
[all …]
/Linux-v4.19/arch/x86/include/asm/
Duaccess.h171 #define get_user(x, ptr) \ argument
174 register __inttype(*(ptr)) __val_gu asm("%"_ASM_DX); \
175 __chk_user_ptr(ptr); \
180 : "0" (ptr), "i" (sizeof(*(ptr)))); \
181 (x) = (__force __typeof__(*(ptr))) __val_gu; \
185 #define __put_user_x(size, x, ptr, __ret_pu) \ argument
187 : "0" ((typeof(*(ptr)))(x)), "c" (ptr) : "ebx")
215 #define __put_user_x8(x, ptr, __ret_pu) \ argument
217 : "A" ((typeof(*(ptr)))(x)), "c" (ptr) : "ebx")
219 #define __put_user_asm_u64(x, ptr, retval, errret) \ argument
[all …]
/Linux-v4.19/arch/xtensa/variants/test_kc705_hifi/include/variant/
Dtie-asm.h77 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0
81 xchal_sa_align \ptr, 0, 1020, 4, 4
83 s32i \at1, \ptr, .Lxchal_ofs_+0
86 xchal_sa_align \ptr, 0, 1020, 4, 4
91 xchal_sa_align \ptr, 0, 1016, 4, 4
93 s32i \at1, \ptr, .Lxchal_ofs_+0
95 s32i \at1, \ptr, .Lxchal_ofs_+4
98 xchal_sa_align \ptr, 0, 1016, 4, 4
103 xchal_sa_align \ptr, 0, 1000, 4, 4
105 s32i \at1, \ptr, .Lxchal_ofs_+0
[all …]
/Linux-v4.19/arch/powerpc/include/asm/
Dcmpxchg.h159 __xchg_local(void *ptr, unsigned long x, unsigned int size) in __xchg_local() argument
163 return __xchg_u8_local(ptr, x); in __xchg_local()
165 return __xchg_u16_local(ptr, x); in __xchg_local()
167 return __xchg_u32_local(ptr, x); in __xchg_local()
170 return __xchg_u64_local(ptr, x); in __xchg_local()
178 __xchg_relaxed(void *ptr, unsigned long x, unsigned int size) in __xchg_relaxed() argument
182 return __xchg_u8_relaxed(ptr, x); in __xchg_relaxed()
184 return __xchg_u16_relaxed(ptr, x); in __xchg_relaxed()
186 return __xchg_u32_relaxed(ptr, x); in __xchg_relaxed()
189 return __xchg_u64_relaxed(ptr, x); in __xchg_relaxed()
[all …]
Duaccess.h88 #define get_user(x, ptr) \ argument
89 __get_user_check((x), (ptr), sizeof(*(ptr)))
90 #define put_user(x, ptr) \ argument
91 __put_user_check((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
93 #define __get_user(x, ptr) \ argument
94 __get_user_nocheck((x), (ptr), sizeof(*(ptr)))
95 #define __put_user(x, ptr) \ argument
96 __put_user_nocheck((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
98 #define __get_user_inatomic(x, ptr) \ argument
99 __get_user_nosleep((x), (ptr), sizeof(*(ptr)))
[all …]
/Linux-v4.19/arch/parisc/include/asm/
Dcmpxchg.h25 __xchg(unsigned long x, __volatile__ void *ptr, int size) in __xchg() argument
29 case 8: return __xchg64(x, (unsigned long *) ptr); in __xchg()
31 case 4: return __xchg32((int) x, (int *) ptr); in __xchg()
32 case 1: return __xchg8((char) x, (char *) ptr); in __xchg()
47 #define xchg(ptr, x) \ argument
48 ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))
56 extern u64 __cmpxchg_u64(volatile u64 *ptr, u64 old, u64 new_);
60 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() argument
64 case 8: return __cmpxchg_u64((u64 *)ptr, old, new_); in __cmpxchg()
66 case 4: return __cmpxchg_u32((unsigned int *)ptr, in __cmpxchg()
[all …]
/Linux-v4.19/drivers/video/
Dhdmi.c34 static u8 hdmi_infoframe_checksum(u8 *ptr, size_t size) in hdmi_infoframe_checksum() argument
41 csum += ptr[i]; in hdmi_infoframe_checksum()
48 u8 *ptr = buffer; in hdmi_infoframe_set_checksum() local
50 ptr[3] = hdmi_infoframe_checksum(buffer, size); in hdmi_infoframe_set_checksum()
88 u8 *ptr = buffer; in hdmi_avi_infoframe_pack() local
101 ptr[0] = frame->type; in hdmi_avi_infoframe_pack()
102 ptr[1] = frame->version; in hdmi_avi_infoframe_pack()
103 ptr[2] = frame->length; in hdmi_avi_infoframe_pack()
104 ptr[3] = 0; /* checksum */ in hdmi_avi_infoframe_pack()
107 ptr += HDMI_INFOFRAME_HEADER_SIZE; in hdmi_avi_infoframe_pack()
[all …]
/Linux-v4.19/drivers/net/ethernet/neterion/vxge/
Dvxge-ethtool.c242 u64 *ptr = tmp_stats; in vxge_get_ethtool_stats() local
276 *ptr++ = 0; in vxge_get_ethtool_stats()
305 memset(ptr, 0, (VXGE_HW_VPATH_TX_STATS_LEN + in vxge_get_ethtool_stats()
307 ptr += (VXGE_HW_VPATH_TX_STATS_LEN + in vxge_get_ethtool_stats()
312 *ptr++ = vpath_info->tx_stats.tx_ttl_eth_frms; in vxge_get_ethtool_stats()
313 *ptr++ = vpath_info->tx_stats.tx_ttl_eth_octets; in vxge_get_ethtool_stats()
314 *ptr++ = vpath_info->tx_stats.tx_data_octets; in vxge_get_ethtool_stats()
315 *ptr++ = vpath_info->tx_stats.tx_mcast_frms; in vxge_get_ethtool_stats()
316 *ptr++ = vpath_info->tx_stats.tx_bcast_frms; in vxge_get_ethtool_stats()
317 *ptr++ = vpath_info->tx_stats.tx_ucast_frms; in vxge_get_ethtool_stats()
[all …]
/Linux-v4.19/arch/alpha/include/asm/
Dcmpxchg.h13 #define xchg_local(ptr, x) \ argument
15 __typeof__(*(ptr)) _x_ = (x); \
16 (__typeof__(*(ptr))) __xchg_local((ptr), (unsigned long)_x_, \
17 sizeof(*(ptr))); \
20 #define cmpxchg_local(ptr, o, n) \ argument
22 __typeof__(*(ptr)) _o_ = (o); \
23 __typeof__(*(ptr)) _n_ = (n); \
24 (__typeof__(*(ptr))) __cmpxchg_local((ptr), (unsigned long)_o_, \
26 sizeof(*(ptr))); \
29 #define cmpxchg64_local(ptr, o, n) \ argument
[all …]
/Linux-v4.19/arch/s390/include/asm/
Dbitops.h44 __bitops_word(unsigned long nr, volatile unsigned long *ptr) in __bitops_word() argument
48 addr = (unsigned long)ptr + ((nr ^ (nr & (BITS_PER_LONG - 1))) >> 3); in __bitops_word()
53 __bitops_byte(unsigned long nr, volatile unsigned long *ptr) in __bitops_byte() argument
55 return ((unsigned char *)ptr) + ((nr ^ (BITS_PER_LONG - 8)) >> 3); in __bitops_byte()
58 static inline void set_bit(unsigned long nr, volatile unsigned long *ptr) in set_bit() argument
60 unsigned long *addr = __bitops_word(nr, ptr); in set_bit()
65 unsigned char *caddr = __bitops_byte(nr, ptr); in set_bit()
79 static inline void clear_bit(unsigned long nr, volatile unsigned long *ptr) in clear_bit() argument
81 unsigned long *addr = __bitops_word(nr, ptr); in clear_bit()
86 unsigned char *caddr = __bitops_byte(nr, ptr); in clear_bit()
[all …]
/Linux-v4.19/lib/
Dtest_kasan.c32 char *ptr; in kmalloc_oob_right() local
36 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_right()
37 if (!ptr) { in kmalloc_oob_right()
42 ptr[size] = 'x'; in kmalloc_oob_right()
43 kfree(ptr); in kmalloc_oob_right()
48 char *ptr; in kmalloc_oob_left() local
52 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_left()
53 if (!ptr) { in kmalloc_oob_left()
58 *ptr = *(ptr - 1); in kmalloc_oob_left()
59 kfree(ptr); in kmalloc_oob_left()
[all …]
/Linux-v4.19/arch/m68k/include/asm/
Dcmpxchg.h13 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() argument
21 tmp = *(u8 *)ptr; in __xchg()
22 *(u8 *)ptr = x; in __xchg()
26 tmp = *(u16 *)ptr; in __xchg()
27 *(u16 *)ptr = x; in __xchg()
31 tmp = *(u32 *)ptr; in __xchg()
32 *(u32 *)ptr = x; in __xchg()
36 tmp = __invalid_xchg_size(x, ptr, size); in __xchg()
44 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() argument
53 : "=&d" (x) : "d" (x), "m" (*__xg(ptr)) : "memory"); in __xchg()
[all …]
/Linux-v4.19/arch/xtensa/variants/test_kc705_be/include/variant/
Dtie-asm.h76 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0
80 xchal_sa_align \ptr, 0, 1020, 4, 4
82 s32i \at1, \ptr, .Lxchal_ofs_+0
85 xchal_sa_align \ptr, 0, 1020, 4, 4
90 xchal_sa_align \ptr, 0, 1016, 4, 4
92 s32i \at1, \ptr, .Lxchal_ofs_+0
94 s32i \at1, \ptr, .Lxchal_ofs_+4
97 xchal_sa_align \ptr, 0, 1016, 4, 4
102 xchal_sa_align \ptr, 0, 1000, 4, 4
104 s32i \at1, \ptr, .Lxchal_ofs_+0
[all …]
/Linux-v4.19/include/linux/unaligned/
Dgeneric.h11 #define __get_unaligned_le(ptr) ((__force typeof(*(ptr)))({ \ argument
12 __builtin_choose_expr(sizeof(*(ptr)) == 1, *(ptr), \
13 __builtin_choose_expr(sizeof(*(ptr)) == 2, get_unaligned_le16((ptr)), \
14 __builtin_choose_expr(sizeof(*(ptr)) == 4, get_unaligned_le32((ptr)), \
15 __builtin_choose_expr(sizeof(*(ptr)) == 8, get_unaligned_le64((ptr)), \
19 #define __get_unaligned_be(ptr) ((__force typeof(*(ptr)))({ \ argument
20 __builtin_choose_expr(sizeof(*(ptr)) == 1, *(ptr), \
21 __builtin_choose_expr(sizeof(*(ptr)) == 2, get_unaligned_be16((ptr)), \
22 __builtin_choose_expr(sizeof(*(ptr)) == 4, get_unaligned_be32((ptr)), \
23 __builtin_choose_expr(sizeof(*(ptr)) == 8, get_unaligned_be64((ptr)), \
[all …]
/Linux-v4.19/arch/ia64/sn/pci/pcibr/
Dpcibr_reg.c28 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_control_bit_clr() local
33 __sn_clrq_relaxed(&ptr->tio.cp_control, bits); in pcireg_control_bit_clr()
36 __sn_clrq_relaxed(&ptr->pic.p_wid_control, bits); in pcireg_control_bit_clr()
41 ptr); in pcireg_control_bit_clr()
48 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_control_bit_set() local
53 __sn_setq_relaxed(&ptr->tio.cp_control, bits); in pcireg_control_bit_set()
56 __sn_setq_relaxed(&ptr->pic.p_wid_control, bits); in pcireg_control_bit_set()
61 ptr); in pcireg_control_bit_set()
71 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_tflush_get() local
77 ret = __sn_readq_relaxed(&ptr->tio.cp_tflush); in pcireg_tflush_get()
[all …]
/Linux-v4.19/include/asm-generic/
Dcmpxchg.h26 unsigned long __xchg(unsigned long x, volatile void *ptr, int size) in __xchg() argument
33 return __xchg_u8(x, ptr); in __xchg()
36 ret = *(volatile u8 *)ptr; in __xchg()
37 *(volatile u8 *)ptr = x; in __xchg()
44 return __xchg_u16(x, ptr); in __xchg()
47 ret = *(volatile u16 *)ptr; in __xchg()
48 *(volatile u16 *)ptr = x; in __xchg()
55 return __xchg_u32(x, ptr); in __xchg()
58 ret = *(volatile u32 *)ptr; in __xchg()
59 *(volatile u32 *)ptr = x; in __xchg()
[all …]
/Linux-v4.19/arch/parisc/lib/
Dbitops.c21 unsigned long __xchg64(unsigned long x, unsigned long *ptr) in __xchg64() argument
25 _atomic_spin_lock_irqsave(ptr, flags); in __xchg64()
26 temp = *ptr; in __xchg64()
27 *ptr = x; in __xchg64()
28 _atomic_spin_unlock_irqrestore(ptr, flags); in __xchg64()
33 unsigned long __xchg32(int x, int *ptr) in __xchg32() argument
38 _atomic_spin_lock_irqsave(ptr, flags); in __xchg32()
39 temp = (long) *ptr; /* XXX - sign extension wanted? */ in __xchg32()
40 *ptr = x; in __xchg32()
41 _atomic_spin_unlock_irqrestore(ptr, flags); in __xchg32()
[all …]
/Linux-v4.19/arch/sparc/include/asm/
Dcmpxchg_64.h55 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) argument
70 unsigned int *ptr = (unsigned int *) (maddr & ~2); in xchg16() local
74 load32 = *ptr; in xchg16()
79 load32 = __cmpxchg_u32(ptr, old32, new32); in xchg16()
85 static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, in __xchg() argument
90 return xchg16(ptr, x); in __xchg()
92 return xchg32(ptr, x); in __xchg()
94 return xchg64(ptr, x); in __xchg()
131 unsigned int *ptr = (unsigned int *) (maddr & ~3); in __cmpxchg_u8() local
133 unsigned int load32 = *ptr; in __cmpxchg_u8()
[all …]
/Linux-v4.19/arch/mips/include/asm/
Dcmpxchg.h73 extern unsigned long __xchg_small(volatile void *ptr, unsigned long val,
76 static inline unsigned long __xchg(volatile void *ptr, unsigned long x, in __xchg() argument
82 return __xchg_small(ptr, x, size); in __xchg()
85 return __xchg_asm("ll", "sc", (volatile u32 *)ptr, x); in __xchg()
91 return __xchg_asm("lld", "scd", (volatile u64 *)ptr, x); in __xchg()
98 #define xchg(ptr, x) \ argument
100 __typeof__(*(ptr)) __res; \
104 __res = (__typeof__(*(ptr))) \
105 __xchg((ptr), (unsigned long)(x), sizeof(*(ptr))); \
146 extern unsigned long __cmpxchg_small(volatile void *ptr, unsigned long old,
[all …]
/Linux-v4.19/arch/xtensa/variants/test_mmuhifi_c3/include/variant/
Dtie-asm.h36 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL
39 xchal_sa_align \ptr, 0, 1024-4, 4, 4
41 s32i \at1, \ptr, .Lxchal_ofs_ + 0
45 xchal_sa_align \ptr, 0, 1024-4, 4, 4
47 s32i \at1, \ptr, .Lxchal_ofs_ + 0
51 xchal_sa_align \ptr, 0, 1024-4, 4, 4
53 s32i \at1, \ptr, .Lxchal_ofs_ + 0
63 .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL
66 xchal_sa_align \ptr, 0, 1024-4, 4, 4
67 l32i \at1, \ptr, .Lxchal_ofs_ + 0
[all …]
/Linux-v4.19/crypto/
Ddh_helper.c46 u8 *ptr = buf; in crypto_dh_encode_key() local
47 u8 * const end = ptr + len; in crypto_dh_encode_key()
56 ptr = dh_pack_data(ptr, end, &secret, sizeof(secret)); in crypto_dh_encode_key()
57 ptr = dh_pack_data(ptr, end, &params->key_size, in crypto_dh_encode_key()
59 ptr = dh_pack_data(ptr, end, &params->p_size, sizeof(params->p_size)); in crypto_dh_encode_key()
60 ptr = dh_pack_data(ptr, end, &params->q_size, sizeof(params->q_size)); in crypto_dh_encode_key()
61 ptr = dh_pack_data(ptr, end, &params->g_size, sizeof(params->g_size)); in crypto_dh_encode_key()
62 ptr = dh_pack_data(ptr, end, params->key, params->key_size); in crypto_dh_encode_key()
63 ptr = dh_pack_data(ptr, end, params->p, params->p_size); in crypto_dh_encode_key()
64 ptr = dh_pack_data(ptr, end, params->q, params->q_size); in crypto_dh_encode_key()
[all …]

12345678910>>...85