Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 1403) sorted by relevance

12345678910>>...57

/u-boot/board/gdsys/common/
A Ddp501.c30 val = i2c_reg_read(addr, reg); in dp501_setbits()
32 i2c_reg_write(addr, reg, val); in dp501_setbits()
39 val = i2c_reg_read(addr, reg); in dp501_clrbits()
41 i2c_reg_write(addr, reg, val); in dp501_clrbits()
46 u8 val = i2c_reg_read(addr, 0x00); in dp501_detect_cable_adapter()
58 val = i2c_reg_read(addr, 0x51); in dp501_link_training()
67 val = i2c_reg_read(addr, 0x52); in dp501_link_training()
77 val = i2c_reg_read(addr, 0x53); in dp501_link_training()
83 void dp501_powerup(u8 addr) in dp501_powerup() argument
131 dp501_link_training(addr); in dp501_powerup()
[all …]
/u-boot/arch/powerpc/include/asm/
A Dpci_io.h12 "r" (addr), "m" (*addr));
21 "r" (addr), "m" (*addr));
27 #define pci_readb(addr,b) ((b) = *(volatile u8 *) (addr)) argument
28 #define pci_writeb(b,addr) ((*(volatile u8 *) (addr)) = (b)) argument
31 #define pci_readw(addr,b) ((b) = *(volatile u16 *) (addr)) argument
32 #define pci_readl(addr,b) ((b) = *(volatile u32 *) (addr)) argument
33 #define pci_writew(b,addr) ((*(volatile u16 *) (addr)) = (b)) argument
34 #define pci_writel(b,addr) ((*(volatile u32 *) (addr)) = (b)) argument
36 #define pci_readw(addr,b) pci_read_le16((volatile u16 *)(addr),(b)) argument
37 #define pci_readl(addr,b) pci_read_le32((volatile u32 *)(addr),(b)) argument
[all …]
A Dio.h26 #define readb(addr) in_8((volatile u8 *)(addr)) argument
27 #define writeb(b,addr) out_8((volatile u8 *)(addr), (b)) argument
29 #define readw(addr) (*(volatile u16 *) (addr)) argument
30 #define readl(addr) (*(volatile u32 *) (addr)) argument
34 #define readw(addr) in_le16((volatile u16 *)(addr)) argument
35 #define readl(addr) in_le32((volatile u32 *)(addr)) argument
135 #define PCI_FIX_ADDR(addr) (addr) argument
195 "r" (addr), "m" (*addr)); in in_le16()
227 "r" (addr), "m" (*addr)); in in_le32()
260 out_##type((addr), in_##type(addr) & ~(clear))
[all …]
A Dbyteorder.h8 static __inline__ unsigned ld_le16(const volatile unsigned short *addr) in ld_le16() argument
12 __asm__ __volatile__ ("lhbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr)); in ld_le16()
18 __asm__ __volatile__ ("sthbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr)); in st_le16()
21 static __inline__ unsigned ld_le32(const volatile unsigned *addr) in ld_le32() argument
25 __asm__ __volatile__ ("lwbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr)); in ld_le32()
29 static __inline__ void st_le32(volatile unsigned *addr, const unsigned val) in st_le32() argument
31 __asm__ __volatile__ ("stwbrx %1,0,%2" : "=m" (*addr) : "r" (val), "r" (addr)); in st_le32()
70 #define __arch__swab16p(addr) ld_le16(addr) argument
71 #define __arch__swab32p(addr) ld_le32(addr) argument
74 #define __arch__swab16s(addr) st_le16(addr,*addr) argument
[all …]
A Dbitops.h234 #define find_first_zero_bit(addr, size) \ argument
235 find_next_zero_bit((addr), (size), 0)
281 #define ext2_set_bit(nr, addr) test_and_set_bit((nr) ^ 0x18, addr) argument
282 #define ext2_clear_bit(nr, addr) test_and_clear_bit((nr) ^ 0x18, addr) argument
288 unsigned char *ADDR = (unsigned char *) addr; in ext2_set_bit()
325 ext2_find_next_zero_bit((addr), (size), 0)
364 #define minix_test_and_set_bit(nr,addr) ext2_set_bit(nr,addr) argument
365 #define minix_set_bit(nr,addr) ((void)ext2_set_bit(nr,addr)) argument
366 #define minix_test_and_clear_bit(nr,addr) ext2_clear_bit(nr,addr) argument
367 #define minix_test_bit(nr,addr) ext2_test_bit(nr,addr) argument
[all …]
/u-boot/arch/sandbox/include/asm/
A Dio.h93 out_##type((addr), in_##type(addr) & ~(clear))
96 out_##type((addr), in_##type(addr) | (set))
118 #define setbits_8(addr, set) setbits(8, addr, set) argument
157 out_##type((addr), in_##type(addr) & ~(clear))
160 out_##type((addr), in_##type(addr) | (set))
182 #define setbits_8(addr, set) setbits(8, addr, set) argument
210 out##type(in##type(addr) & ~(clear), (addr))
213 out##type(in##type(addr) | (set), (addr))
222 #define setio_32(addr, set) setio(l, addr, set) argument
223 #define setio_16(addr, set) setio(w, addr, set) argument
[all …]
A Dbitops.h37 extern void set_bit(int nr, void *addr);
39 extern void clear_bit(int nr, void *addr);
41 extern void change_bit(int nr, void *addr);
43 static inline void __change_bit(int nr, void *addr) in __change_bit() argument
67 out = __test_and_set_bit(nr, addr); in test_and_set_bit()
89 out = __test_and_clear_bit(nr, addr); in test_and_clear_bit()
161 #define minix_test_and_set_bit(nr, addr) test_and_set_bit(nr, addr) argument
162 #define minix_set_bit(nr, addr) set_bit(nr, addr) argument
163 #define minix_test_and_clear_bit(nr, addr) test_and_clear_bit(nr, addr) argument
164 #define minix_test_bit(nr, addr) test_bit(nr, addr) argument
[all …]
/u-boot/arch/m68k/include/asm/
A Dio.h18 #define __raw_readb(addr) (*(volatile u8 *)(addr)) argument
19 #define __raw_readw(addr) (*(volatile u16 *)(addr)) argument
20 #define __raw_readl(addr) (*(volatile u32 *)(addr)) argument
26 #define readb(addr) in_8((volatile u8 *)(addr)) argument
27 #define writeb(b,addr) out_8((volatile u8 *)(addr), (b)) argument
29 #define readw(addr) (*(volatile u16 *) (addr)) argument
30 #define readl(addr) (*(volatile u32 *) (addr)) argument
34 #define readw(addr) in_be16((volatile u16 *)(addr)) argument
35 #define readl(addr) in_be32((volatile u32 *)(addr)) argument
219 out_##type((addr), in_##type(addr) & ~(clear))
[all …]
A Dbyteorder.h32 static __inline__ unsigned ld_le16(const volatile unsigned short *addr) in ld_le16() argument
34 return __sw16(*addr); in ld_le16()
37 static __inline__ void st_le16(volatile unsigned short *addr, in st_le16() argument
40 *addr = __sw16(val); in st_le16()
43 static __inline__ unsigned ld_le32(const volatile unsigned *addr) in ld_le32() argument
45 return __sw32(*addr); in ld_le32()
50 *addr = __sw32(val); in st_le32()
81 #define __arch__swab16p(addr) ld_le16(addr)
82 #define __arch__swab32p(addr) ld_le32(addr)
85 #define __arch__swab16s(addr) st_le16(addr,*addr)
[all …]
/u-boot/arch/x86/include/asm/
A Dio.h60 #define readb(addr) (*(volatile u8 *)(uintptr_t)(addr)) argument
69 #define writeb(b, addr) (*(volatile u8 *)(addr) = (b)) argument
103 out_##type((addr), in_##type(addr) & ~(clear))
106 out_##type((addr), in_##type(addr) | (set))
128 #define setbits_8(addr, set) setbits(8, addr, set) argument
212 out##type(in##type(addr) & ~(clear), (addr)) in __INS()
215 out##type(in##type(addr) | (set), (addr)) in __INS()
222 #define clrio_8(addr, clear) clrio(b, addr, clear) in __INS() argument
224 #define setio_32(addr, set) setio(l, addr, set) in __INS() argument
225 #define setio_16(addr, set) setio(w, addr, set) in __INS() argument
[all …]
A Dbitops.h27 #define ADDR (*(volatile long *) addr)
39 static __inline__ void set_bit(int nr, volatile void * addr) in set_bit() argument
254 #define test_bit(nr,addr) \ argument
256 constant_test_bit((nr),(addr)) : \
257 variable_test_bit((nr),(addr)))
287 :"1" ((size + 31) >> 5), "2" (addr), "b" (addr)); in find_first_zero_bit()
402 #define minix_test_and_set_bit(nr,addr) __test_and_set_bit(nr,addr) argument
403 #define minix_set_bit(nr,addr) __set_bit(nr,addr) argument
404 #define minix_test_and_clear_bit(nr,addr) __test_and_clear_bit(nr,addr) argument
405 #define minix_test_bit(nr,addr) test_bit(nr,addr) argument
[all …]
/u-boot/arch/nios2/include/asm/
A Dio.h75 #define inb(addr) readb(addr) argument
76 #define inw(addr) readw(addr) argument
77 #define inl(addr) readl(addr) argument
78 #define outb(val, addr) writeb(val,addr) argument
79 #define outw(val, addr) writew(val,addr) argument
80 #define outl(val, addr) writel(val,addr) argument
142 out_##type((addr), in_##type(addr) & ~(clear))
145 out_##type((addr), in_##type(addr) | (set))
151 #define setbits_be32(addr, set) setbits(be32, addr, set) argument
166 #define clrbits_8(addr, clear) clrbits(8, addr, clear) argument
[all …]
/u-boot/arch/microblaze/include/asm/
A Dio.h46 #define inb(addr) readb(addr) argument
47 #define inw(addr) readw(addr) argument
48 #define inl(addr) readl(addr) argument
49 #define outb(x, addr) ((void)writeb(x, addr)) argument
50 #define outw(x, addr) ((void)writew(x, addr)) argument
51 #define outl(x, addr) ((void)writel(x, addr)) argument
61 #define in_le16(addr) in_arch(w, le16, addr) argument
62 #define in_le32(addr) in_arch(l, le32, addr) argument
64 #define in_8(addr) readb(addr) argument
65 #define in_be16(addr) in_arch(w, be16, addr) argument
[all …]
A Dbitops.h38 int * a = (int *) addr; in set_bit()
51 int * a = (int *) addr; in __set_bit()
68 int * a = (int *) addr; in clear_bit()
79 #define __clear_bit(nr, addr) clear_bit(nr, addr) argument
199 int * a = (int *) addr; in __test_bit()
210 __test_bit((nr),(addr)))
356 #define minix_test_and_set_bit(nr,addr) test_and_set_bit(nr,addr) argument
357 #define minix_set_bit(nr,addr) set_bit(nr,addr) argument
358 #define minix_test_and_clear_bit(nr,addr) test_and_clear_bit(nr,addr) argument
359 #define minix_test_bit(nr,addr) test_bit(nr,addr) argument
[all …]
/u-boot/drivers/usb/musb-new/
A Dmusb_io.h28 { insl((unsigned long)addr, buf, len); } in readsl()
30 { insw((unsigned long)addr, buf, len); } in readsw()
32 { insb((unsigned long)addr, buf, len); } in readsb()
35 { outsl((unsigned long)addr, buf, len); } in writesl()
37 { outsw((unsigned long)addr, buf, len); } in writesw()
46 { return __raw_readw(addr + offset); } in musb_readw()
49 { return __raw_readl(addr + offset); } in musb_readl()
53 { __raw_writew(data, addr + offset); } in musb_writew()
56 { __raw_writel(data, addr + offset); } in musb_writel()
94 { return __raw_readb(addr + offset); } in musb_readb()
[all …]
/u-boot/arch/nds32/include/asm/
A Dbitops.h35 extern void set_bit(int nr, void *addr);
39 int *a = (int *)addr; in __set_bit()
53 int *a = (int *)addr; in __clear_bit()
83 unsigned int *a = (unsigned int *)addr; in __test_and_set_bit()
97 unsigned int *a = (unsigned int *)addr; in __test_and_clear_bit()
111 unsigned int *a = (unsigned int *)addr; in __test_and_change_bit()
186 #define minix_test_and_set_bit(nr, addr) test_and_set_bit(nr, addr) argument
187 #define minix_set_bit(nr, addr) set_bit(nr, addr) argument
188 #define minix_test_and_clear_bit(nr, addr) test_and_clear_bit(nr, addr) argument
189 #define minix_test_bit(nr, addr) test_bit(nr, addr) argument
[all …]
A Dio.h184 out_##type((addr), in_##type(addr) & ~(clear))
187 out_##type((addr), in_##type(addr) | (set))
193 #define setbits_be32(addr, set) setbits(be32, addr, set) argument
197 #define setbits_le32(addr, set) setbits(le32, addr, set) argument
201 #define setbits_be16(addr, set) setbits(be16, addr, set) argument
205 #define setbits_le16(addr, set) setbits(le16, addr, set) argument
208 #define clrbits_8(addr, clear) clrbits(8, addr, clear) argument
209 #define setbits_8(addr, set) setbits(8, addr, set) argument
405 #define isa_readb(addr) __raw_readb(__mem_isa(addr)) argument
406 #define isa_readw(addr) __raw_readw(__mem_isa(addr)) argument
[all …]
/u-boot/arch/mips/include/asm/
A Dbitops.h202 volatile int *a = addr; in __test_and_set_bit()
254 volatile int *a = addr; in __test_and_clear_bit()
305 volatile int *a = addr; in __test_and_change_bit()
883 #define ext2_set_bit(nr, addr) test_and_set_bit((nr), (addr)) argument
884 #define ext2_clear_bit(nr, addr) test_and_clear_bit((nr), (addr)) argument
885 #define ext2_test_bit(nr, addr) test_bit((nr), (addr)) argument
897 #define minix_test_and_set_bit(nr,addr) test_and_set_bit(nr,addr) argument
898 #define minix_set_bit(nr,addr) set_bit(nr,addr) argument
899 #define minix_test_and_clear_bit(nr,addr) test_and_clear_bit(nr,addr) argument
900 #define minix_test_bit(nr,addr) test_bit(nr,addr) argument
[all …]
/u-boot/arch/xtensa/include/asm/
A Dio.h89 # define in_8(addr) (*(u8 *)(addr)) argument
90 # define in_le16(addr) _swapw(*(u16 *)(addr)) argument
91 # define in_le32(addr) _swapl(*(u32 *)(addr)) argument
92 # define out_8(b, addr) *(u8 *)(addr) = (b) argument
93 # define out_le16(b, addr) *(u16 *)(addr) = _swapw(b) argument
96 # define in_8(addr) (*(u8 *)(addr)) argument
97 # define in_le16(addr) (*(u16 *)(addr)) argument
98 # define in_le32(addr) (*(u32 *)(addr)) argument
99 # define out_8(b, addr) *(u8 *)(addr) = (b) argument
100 # define out_le16(b, addr) *(u16 *)(addr) = (b) argument
[all …]
/u-boot/include/linux/
A Diopoll.h33 (val) = op(addr); \
37 (val) = op(addr); \
53 read_poll_timeout(op, addr, val, cond, false, timeout_us)
55 #define readb_poll_timeout(addr, val, cond, timeout_us) \ argument
56 readx_poll_timeout(readb, addr, val, cond, timeout_us)
58 #define readw_poll_timeout(addr, val, cond, timeout_us) \ argument
59 readx_poll_timeout(readw, addr, val, cond, timeout_us)
61 #define readl_poll_timeout(addr, val, cond, timeout_us) \ argument
62 readx_poll_timeout(readl, addr, val, cond, timeout_us)
64 #define readq_poll_timeout(addr, val, cond, timeout_us) \ argument
[all …]
A Dio.h11 static inline u8 ioread8(const volatile void __iomem *addr) in ioread8() argument
13 return readb(addr); in ioread8()
16 static inline u16 ioread16(const volatile void __iomem *addr) in ioread16() argument
18 return readw(addr); in ioread16()
23 return readl(addr); in ioread32()
30 return readq(addr); in ioread64()
37 writeb(value, addr); in iowrite8()
42 writew(value, addr); in iowrite16()
47 writel(value, addr); in iowrite32()
54 writeq(value, addr); in iowrite64()
[all …]
/u-boot/arch/arm/include/asm/
A Dbitops.h36 extern void set_bit(int nr, volatile void * addr);
38 extern void clear_bit(int nr, volatile void * addr);
66 out = __test_and_set_bit(nr, addr); in test_and_set_bit()
88 out = __test_and_clear_bit(nr, addr); in test_and_clear_bit()
167 #define find_first_zero_bit(addr, size) \ argument
168 find_next_zero_bit((addr), (size), 0)
177 #define minix_test_and_set_bit(nr,addr) test_and_set_bit(nr,addr) argument
178 #define minix_set_bit(nr,addr) set_bit(nr,addr) argument
179 #define minix_test_and_clear_bit(nr,addr) test_and_clear_bit(nr,addr) argument
180 #define minix_test_bit(nr,addr) test_bit(nr,addr) argument
[all …]
/u-boot/arch/riscv/include/asm/
A Dbitops.h37 int *a = (int *)addr; in __set_bit()
49 int *a = (int *)addr; in __clear_bit()
62 unsigned long *ADDR = (unsigned long *)addr; in __change_bit()
72 unsigned int *a = (unsigned int *)addr; in __test_and_set_bit()
84 unsigned int *a = (unsigned int *)addr; in __test_and_clear_bit()
96 unsigned int *a = (unsigned int *)addr; in __test_and_change_bit()
168 #define minix_test_and_set_bit(nr, addr) test_and_set_bit(nr, addr) argument
169 #define minix_set_bit(nr, addr) set_bit(nr, addr) argument
170 #define minix_test_and_clear_bit(nr, addr) test_and_clear_bit(nr, addr) argument
171 #define minix_test_bit(nr, addr) test_bit(nr, addr) argument
[all …]
A Dio.h171 out_##type((addr), in_##type(addr) & ~(clear))
174 out_##type((addr), in_##type(addr) | (set))
180 #define setbits_be32(addr, set) setbits(be32, addr, set) argument
184 #define setbits_le32(addr, set) setbits(le32, addr, set) argument
188 #define setbits_be16(addr, set) setbits(be16, addr, set) argument
192 #define setbits_le16(addr, set) setbits(le16, addr, set) argument
195 #define clrbits_8(addr, clear) clrbits(8, addr, clear) argument
196 #define setbits_8(addr, set) setbits(8, addr, set) argument
410 #define isa_readb(addr) __raw_readb(__mem_isa(addr)) argument
411 #define isa_readw(addr) __raw_readw(__mem_isa(addr)) argument
[all …]
/u-boot/lib/
A Dnet_utils.c17 struct in_addr addr; in string_to_ip() local
21 addr.s_addr = 0; in string_to_ip()
23 return addr; in string_to_ip()
28 addr.s_addr = 0; in string_to_ip()
29 return addr; in string_to_ip()
32 addr.s_addr = 0; in string_to_ip()
33 return addr; in string_to_ip()
42 addr.s_addr = htonl(addr.s_addr); in string_to_ip()
43 return addr; in string_to_ip()
55 enetaddr[i] = addr ? simple_strtoul(addr, &end, 16) : 0; in string_to_enetaddr()
[all …]

Completed in 44 milliseconds

12345678910>>...57