Home
last modified time | relevance | path

Searched full:addr (Results 1 – 25 of 4966) sorted by relevance

12345678910>>...199

/linux/arch/mips/include/asm/
H A Dasm-eva.h19 #define kernel_ll(reg, addr) "ll " reg ", " addr "\n" argument
20 #define kernel_sc(reg, addr) "sc " reg ", " addr "\n" argument
21 #define kernel_lw(reg, addr) "lw " reg ", " addr "\n" argument
22 #define kernel_lwl(reg, addr) "lwl " reg ", " addr "\n" argument
23 #define kernel_lwr(reg, addr) "lwr " reg ", " addr "\n" argument
24 #define kernel_lh(reg, addr) "lh " reg ", " addr "\n" argument
25 #define kernel_lb(reg, addr) "lb " reg ", " addr "\n" argument
26 #define kernel_lbu(reg, addr) "lbu " reg ", " addr "\n" argument
27 #define kernel_sw(reg, addr) "sw " reg ", " addr "\n" argument
28 #define kernel_swl(reg, addr) "swl " reg ", " addr "\n" argument
[all …]
H A Dr4kcache.h47 #define _cache_op(insn, op, addr) \ argument
55 : "i" (op), "R" (*(unsigned char *)(addr)))
57 #define cache_op(op, addr) \ argument
58 _cache_op(kernel_cache, op, addr)
60 static inline void flush_icache_line_indexed(unsigned long addr) in flush_icache_line_indexed() argument
62 cache_op(Index_Invalidate_I, addr); in flush_icache_line_indexed()
65 static inline void flush_dcache_line_indexed(unsigned long addr) in flush_dcache_line_indexed() argument
67 cache_op(Index_Writeback_Inv_D, addr); in flush_dcache_line_indexed()
70 static inline void flush_scache_line_indexed(unsigned long addr) in flush_scache_line_indexed() argument
72 cache_op(Index_Writeback_Inv_SD, addr); in flush_scache_line_indexed()
[all …]
/linux/arch/parisc/lib/
H A Diomap.c32 * Technically, this should be 'if (VMALLOC_START < addr < VMALLOC_END),
36 #define INDIRECT_ADDR(addr) (((unsigned long)(addr) & 1UL<<63) != 0) argument
37 #define ADDR_TO_REGION(addr) (((unsigned long)addr >> 60) & 7) argument
40 #define INDIRECT_ADDR(addr) (((unsigned long)(addr) & 1UL<<31) != 0) argument
41 #define ADDR_TO_REGION(addr) (((unsigned long)addr >> 28) & 7) argument
74 #define ADDR2PORT(addr) ((unsigned long __force)(addr) & 0xffffff) argument
76 static unsigned int ioport_read8(const void __iomem *addr) in ioport_read8() argument
78 return inb(ADDR2PORT(addr)); in ioport_read8()
81 static unsigned int ioport_read16(const void __iomem *addr) in ioport_read16() argument
83 return inw(ADDR2PORT(addr)); in ioport_read16()
[all …]
/linux/lib/
H A Diomap.c52 #define IO_COND(addr, is_pio, is_mmio) do { \ argument
53 unsigned long port = (unsigned long __force)addr; \
69 #define mmio_read16be(addr) swab16(readw(addr)) argument
70 #define mmio_read32be(addr) swab32(readl(addr)) argument
71 #define mmio_read64be(addr) swab64(readq(addr)) argument
79 unsigned int ioread8(const void __iomem *addr) in ioread8() argument
81 IO_COND(addr, return inb(port), return readb(addr)); in ioread8()
85 unsigned int ioread16(const void __iomem *addr) in ioread16() argument
87 IO_COND(addr, return inw(port), return readw(addr)); in ioread16()
91 unsigned int ioread16be(const void __iomem *addr) in ioread16be() argument
[all …]
/linux/net/core/
H A Ddev_addr_lists_test.c66 u8 addr[ETH_ALEN]; in dev_addr_test_basic() local
71 memset(addr, 2, sizeof(addr)); in dev_addr_test_basic()
72 eth_hw_addr_set(netdev, addr); in dev_addr_test_basic()
73 KUNIT_EXPECT_MEMEQ(test, netdev->dev_addr, addr, sizeof(addr)); in dev_addr_test_basic()
75 memset(addr, 3, sizeof(addr)); in dev_addr_test_basic()
76 dev_addr_set(netdev, addr); in dev_addr_test_basic()
77 KUNIT_EXPECT_MEMEQ(test, netdev->dev_addr, addr, sizeof(addr)); in dev_addr_test_basic()
85 u8 addr[ETH_ALEN]; in dev_addr_test_sync_one() local
90 memset(addr, 1, sizeof(addr)); in dev_addr_test_sync_one()
91 eth_hw_addr_set(netdev, addr); in dev_addr_test_sync_one()
[all …]
/linux/rust/helpers/
H A Dio.c16 void rust_helper_iounmap(void __iomem *addr) in rust_helper_iounmap() argument
18 iounmap(addr); in rust_helper_iounmap()
21 u8 rust_helper_readb(const void __iomem *addr) in rust_helper_readb() argument
23 return readb(addr); in rust_helper_readb()
26 u16 rust_helper_readw(const void __iomem *addr) in rust_helper_readw() argument
28 return readw(addr); in rust_helper_readw()
31 u32 rust_helper_readl(const void __iomem *addr) in rust_helper_readl() argument
33 return readl(addr); in rust_helper_readl()
37 u64 rust_helper_readq(const void __iomem *addr) in rust_helper_readq() argument
39 return readq(addr); in rust_helper_readq()
[all …]
/linux/arch/powerpc/lib/
H A Dcode-patching.c44 int raw_patch_instruction(u32 *addr, ppc_inst_t instr) in raw_patch_instruction() argument
47 return __patch_mem(addr, ppc_inst_as_ulong(instr), addr, true); in raw_patch_instruction()
49 return __patch_mem(addr, ppc_inst_val(instr), addr, false); in raw_patch_instruction()
57 unsigned long addr; member
63 static int map_patch_area(void *addr, unsigned long text_poke_addr);
64 static void unmap_patch_area(unsigned long addr);
108 unsigned long addr; in text_area_cpu_up() local
119 addr = (unsigned long)area->addr; in text_area_cpu_up()
120 err = map_patch_area(empty_zero_page, addr); in text_area_cpu_up()
124 unmap_patch_area(addr); in text_area_cpu_up()
[all …]
/linux/include/trace/events/
H A Dthp.h14 TP_PROTO(unsigned long addr, unsigned long pte),
15 TP_ARGS(addr, pte),
17 __field(unsigned long, addr)
22 __entry->addr = addr;
26 TP_printk("Set page table entry with 0x%lx with 0x%lx", __entry->addr, __entry->pte)
30 TP_PROTO(unsigned long addr, unsigned long pmd),
31 TP_ARGS(addr, pmd)
35 TP_PROTO(unsigned long addr, unsigned long pud),
36 TP_ARGS(addr, pud)
41 TP_PROTO(unsigned long addr, unsigned long pte, unsigned long clr, unsigned long set),
[all …]
H A Dbridge.h15 const unsigned char *addr, u16 vid, u16 nlh_flags),
17 TP_ARGS(ndm, dev, addr, vid, nlh_flags),
22 __array(unsigned char, addr, ETH_ALEN)
29 memcpy(__entry->addr, addr, ETH_ALEN);
35 TP_printk("dev %s addr %02x:%02x:%02x:%02x:%02x:%02x vid %u nlh_flags %04x ndm_flags %02x",
36 __get_str(dev), __entry->addr[0], __entry->addr[1],
37 __entry->addr[2], __entry->addr[
[all...]
/linux/arch/alpha/include/asm/
H A Dio.h135 static inline TYPE generic_##NAME(QUAL void __iomem *addr) \
137 return alpha_mv.mv_##NAME(addr); \
141 static inline void generic_##NAME(TYPE b, QUAL void __iomem *addr) \
143 alpha_mv.mv_##NAME(b, addr); \
241 extern u8 readb(const volatile void __iomem *addr);
242 extern u16 readw(const volatile void __iomem *addr);
243 extern u32 readl(const volatile void __iomem *addr);
244 extern u64 readq(const volatile void __iomem *addr);
245 extern void writeb(u8 b, volatile void __iomem *addr);
246 extern void writew(u16 b, volatile void __iomem *addr);
[all …]
/linux/arch/sparc/include/asm/
H A Dbitops_32.h22 unsigned long sp32___set_bit(unsigned long *addr, unsigned long mask);
23 unsigned long sp32___clear_bit(unsigned long *addr, unsigned long mask);
24 unsigned long sp32___change_bit(unsigned long *addr, unsigned long mask);
27 * Set bit 'nr' in 32-bit quantity at address 'addr' where bit '0'
32 static inline int test_and_set_bit(unsigned long nr, volatile unsigned long *addr) in test_and_set_bit() argument
34 unsigned long *ADDR, mask; in test_and_set_bit() local
36 ADDR = ((unsigned long *) addr) + (nr >> 5); in test_and_set_bit()
39 return sp32___set_bit(ADDR, mask) != 0; in test_and_set_bit()
42 static inline void set_bit(unsigned long nr, volatile unsigned long *addr) in set_bit() argument
44 unsigned long *ADDR, mask; in set_bit() local
[all …]
H A Dio_64.h22 static inline u8 __raw_readb(const volatile void __iomem *addr) in __raw_readb() argument
28 : "r" (addr), "i" (ASI_PHYS_BYPASS_EC_E)); in __raw_readb()
34 static inline u16 __raw_readw(const volatile void __iomem *addr) in __raw_readw() argument
40 : "r" (addr), "i" (ASI_PHYS_BYPASS_EC_E)); in __raw_readw()
46 static inline u32 __raw_readl(const volatile void __iomem *addr) in __raw_readl() argument
52 : "r" (addr), "i" (ASI_PHYS_BYPASS_EC_E)); in __raw_readl()
58 static inline u64 __raw_readq(const volatile void __iomem *addr) in __raw_readq() argument
64 : "r" (addr), "i" (ASI_PHYS_BYPASS_EC_E)); in __raw_readq()
70 static inline void __raw_writeb(u8 b, const volatile void __iomem *addr) in __raw_writeb() argument
74 : "Jr" (b), "r" (addr), "i" (ASI_PHYS_BYPASS_EC_E)); in __raw_writeb()
[all …]
/linux/net/ceph/
H A Ddecode.c11 struct ceph_entity_addr *addr) in ceph_decode_entity_addr_versioned() argument
26 ceph_decode_copy_safe(p, end, &addr->type, sizeof(addr->type), bad); in ceph_decode_entity_addr_versioned()
28 ceph_decode_copy_safe(p, end, &addr->nonce, sizeof(addr->nonce), bad); in ceph_decode_entity_addr_versioned()
31 if (addr_len > sizeof(addr->in_addr)) in ceph_decode_entity_addr_versioned()
34 memset(&addr->in_addr, 0, sizeof(addr->in_addr)); in ceph_decode_entity_addr_versioned()
36 ceph_decode_copy_safe(p, end, &addr->in_addr, addr_len, bad); in ceph_decode_entity_addr_versioned()
38 addr->in_addr.ss_family = in ceph_decode_entity_addr_versioned()
39 le16_to_cpu((__force __le16)addr->in_addr.ss_family); in ceph_decode_entity_addr_versioned()
51 struct ceph_entity_addr *addr) in ceph_decode_entity_addr_legacy() argument
62 addr->type = CEPH_ENTITY_ADDR_TYPE_LEGACY; in ceph_decode_entity_addr_legacy()
[all …]
/linux/arch/powerpc/mm/book3s64/
H A Dsubpage_prot.c25 unsigned long i, j, addr; in subpage_prot_free() local
37 addr = 0; in subpage_prot_free()
43 for (j = 0; j < SBP_L2_COUNT && addr < spt->maxaddr; in subpage_prot_free()
44 ++j, addr += PAGE_SIZE) in subpage_prot_free()
53 static void hpte_flush_range(struct mm_struct *mm, unsigned long addr, in hpte_flush_range() argument
63 pgd = pgd_offset(mm, addr); in hpte_flush_range()
64 p4d = p4d_offset(pgd, addr); in hpte_flush_range()
67 pud = pud_offset(p4d, addr); in hpte_flush_range()
70 pmd = pmd_offset(pud, addr); in hpte_flush_range()
73 pte = pte_offset_map_lock(mm, pmd, addr, &ptl); in hpte_flush_range()
[all …]
/linux/arch/riscv/mm/
H A Dhugetlbpage.c6 pte_t huge_ptep_get(struct mm_struct *mm, unsigned long addr, pte_t *ptep) in huge_ptep_get() argument
32 unsigned long addr, in huge_pte_alloc() argument
42 pgd = pgd_offset(mm, addr); in huge_pte_alloc()
43 p4d = p4d_alloc(mm, pgd, addr); in huge_pte_alloc()
47 pud = pud_alloc(mm, p4d, addr); in huge_pte_alloc()
57 if (want_pmd_share(vma, addr) && pud_none(pudp_get(pud))) in huge_pte_alloc()
58 pte = huge_pmd_share(mm, vma, addr, pud); in huge_pte_alloc()
60 pte = (pte_t *)pmd_alloc(mm, pud, addr); in huge_pte_alloc()
64 pmd = pmd_alloc(mm, pud, addr); in huge_pte_alloc()
70 pte = pte_alloc_huge(mm, pmd, addr & napot_cont_mask(order)); in huge_pte_alloc()
[all …]
/linux/net/dsa/
H A Dtrace.h26 TP_PROTO(const struct dsa_port *dp, const unsigned char *addr, u16 vid,
29 TP_ARGS(dp, addr, vid, db, err),
35 __array(unsigned char, addr, ETH_ALEN)
45 ether_addr_copy(__entry->addr, addr);
51 TP_printk("%s %s port %d addr %pM vid %u db \"%s\" err %d",
52 __get_str(dev), __get_str(kind), __entry->port, __entry->addr,
61 TP_PROTO(const struct dsa_port *dp, const unsigned char *addr,
63 TP_ARGS(dp, addr, vid, db, err));
66 TP_PROTO(const struct dsa_port *dp, const unsigned char *addr,
[all...]
/linux/tools/testing/selftests/mm/
H A Dmadv_populate.c32 char *addr; in sense_support() local
35 addr = mmap(0, pagesize, PROT_READ | PROT_WRITE, in sense_support()
37 if (!addr) in sense_support()
40 ret = madvise(addr, pagesize, MADV_POPULATE_READ); in sense_support()
44 ret = madvise(addr, pagesize, MADV_POPULATE_WRITE); in sense_support()
48 munmap(addr, pagesize); in sense_support()
53 char *addr; in test_prot_read() local
58 addr = mmap(0, SIZE, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0); in test_prot_read()
59 if (addr == MAP_FAILED) in test_prot_read()
62 ret = madvise(addr, SIZ in test_prot_read()
74 char *addr; test_prot_write() local
95 char *addr; test_holes() local
165 char *addr; test_populate_read() local
187 char *addr; test_populate_write() local
237 char *addr; test_softdirty() local
[all...]
H A Dhugetlb-madvise.c40 void write_fault_pages(void *addr, unsigned long nr_pages) in write_fault_pages() argument
45 *((unsigned long *)(addr + (i * huge_page_size))) = i; in write_fault_pages()
48 void read_fault_pages(void *addr, unsigned long nr_pages) in read_fault_pages() argument
54 FORCE_READ(((unsigned long *)(addr + (i * huge_page_size)))); in read_fault_pages()
61 void *addr, *addr2; in main()
89 * Test validity of MADV_DONTNEED addr and length arguments. mmap in main()
94 addr = mmap(NULL, (NR_HUGE_PAGES + 2) * huge_page_size, in main()
98 if (addr == MAP_FAILED) { in main()
102 if (munmap(addr, huge_page_size) || in main()
103 munmap(addr in main()
64 void *addr, *addr2; main() local
[all...]
/linux/include/asm-generic/bitops/
H A Dinstrumented-non-atomic.h19 * @addr: the address to start counting from
26 ___set_bit(unsigned long nr, volatile unsigned long *addr) in ___set_bit() argument
28 instrument_write(addr + BIT_WORD(nr), sizeof(long)); in ___set_bit()
29 arch___set_bit(nr, addr); in ___set_bit()
35 * @addr: the address to start counting from
42 ___clear_bit(unsigned long nr, volatile unsigned long *addr) in ___clear_bit() argument
44 instrument_write(addr + BIT_WORD(nr), sizeof(long)); in ___clear_bit()
45 arch___clear_bit(nr, addr); in ___clear_bit()
51 * @addr: the address to start counting from
58 ___change_bit(unsigned long nr, volatile unsigned long *addr) in ___change_bit() argument
[all …]
/linux/drivers/media/pci/cx18/
H A Dcx18-io.h24 static inline u32 cx18_raw_readl(struct cx18 *cx, const void __iomem *addr) in cx18_raw_readl() argument
26 return __raw_readl(addr); in cx18_raw_readl()
30 void cx18_raw_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel_noretry() argument
32 __raw_writel(val, addr); in cx18_raw_writel_noretry()
35 static inline void cx18_raw_writel(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_raw_writel() argument
39 cx18_raw_writel_noretry(cx, val, addr); in cx18_raw_writel()
40 if (val == cx18_raw_readl(cx, addr)) in cx18_raw_writel()
46 static inline u32 cx18_readl(struct cx18 *cx, const void __iomem *addr) in cx18_readl() argument
48 return readl(addr); in cx18_readl()
52 void cx18_writel_noretry(struct cx18 *cx, u32 val, void __iomem *addr) in cx18_writel_noretry() argument
[all …]
/linux/drivers/net/ethernet/wiznet/
H A Dw5100-spi.c26 static int w5100_spi_read(struct net_device *ndev, u32 addr) in w5100_spi_read() argument
29 u8 cmd[3] = { W5100_SPI_READ_OPCODE, addr >> 8, addr & 0xff }; in w5100_spi_read()
38 static int w5100_spi_write(struct net_device *ndev, u32 addr, u8 data) in w5100_spi_write() argument
41 u8 cmd[4] = { W5100_SPI_WRITE_OPCODE, addr >> 8, addr & 0xff, data}; in w5100_spi_write()
46 static int w5100_spi_read16(struct net_device *ndev, u32 addr) in w5100_spi_read16() argument
51 ret = w5100_spi_read(ndev, addr); in w5100_spi_read16()
55 ret = w5100_spi_read(ndev, addr + 1); in w5100_spi_read16()
60 static int w5100_spi_write16(struct net_device *ndev, u32 addr, u16 data) in w5100_spi_write16() argument
64 ret = w5100_spi_write(ndev, addr, data >> 8); in w5100_spi_write16()
68 return w5100_spi_write(ndev, addr + 1, data & 0xff); in w5100_spi_write16()
[all …]
/linux/arch/alpha/kernel/
H A Dcore_irongate.c52 * addr[31:24] reserved
53 * addr[23:16] bus number (8 bits = 128 possible buses)
54 * addr[15:11] Device number (5 bits)
55 * addr[10: 8] function number
56 * addr[ 7: 2] register number
59 * if (bus = addr[23:16]) == 0
62 * addr_on_pci[31:11] = id selection for device = addr[15:11]
63 * addr_on_pci[10: 2] = addr[10: 2] ???
68 * addr_on_pci[23: 2] = addr[23: 2]
85 unsigned long addr; in mk_conf_addr() local
[all …]
/linux/arch/csky/kernel/probes/
H A Dsimulate-insn.c69 simulate_br16(u32 opcode, long addr, struct pt_regs *regs) in simulate_br16() argument
72 addr + sign_extend32((opcode & 0x3ff) << 1, 9)); in simulate_br16()
76 simulate_br32(u32 opcode, long addr, struct pt_regs *regs) in simulate_br32() argument
79 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_br32()
83 simulate_bt16(u32 opcode, long addr, struct pt_regs *regs) in simulate_bt16() argument
87 addr + sign_extend32((opcode & 0x3ff) << 1, 9)); in simulate_bt16()
89 instruction_pointer_set(regs, addr + 2); in simulate_bt16()
93 simulate_bt32(u32 opcode, long addr, struct pt_regs *regs) in simulate_bt32() argument
97 addr + sign_extend32((opcode & 0xffff0000) >> 15, 15)); in simulate_bt32()
99 instruction_pointer_set(regs, addr + 4); in simulate_bt32()
[all …]
/linux/arch/m68k/include/asm/
H A Dio_no.h16 #define __raw_readb(addr) \ argument
17 ({ u8 __v = (*(__force volatile u8 *) (addr)); __v; })
18 #define __raw_readw(addr) \ argument
19 ({ u16 __v = (*(__force volatile u16 *) (addr)); __v; })
20 #define __raw_readl(addr) \ argument
21 ({ u32 __v = (*(__force volatile u32 *) (addr)); __v; })
23 #define __raw_writeb(b, addr) (void)((*(__force volatile u8 *) (addr)) = (b)) argument
24 #define __raw_writew(b, addr) (void)((*(__force volatile u16 *) (addr)) = (b)) argument
25 #define __raw_writel(b, addr) (void)((*(__force volatile u32 *) (addr)) = (b)) argument
48 static int __cf_internalio(unsigned long addr) in __cf_internalio() argument
[all …]
/linux/include/linux/
H A Din.h38 static inline bool ipv4_is_loopback(__be32 addr) in ipv4_is_loopback() argument
40 return (addr & htonl(0xff000000)) == htonl(0x7f000000); in ipv4_is_loopback()
43 static inline bool ipv4_is_multicast(__be32 addr) in ipv4_is_multicast() argument
45 return (addr & htonl(0xf0000000)) == htonl(0xe0000000); in ipv4_is_multicast()
48 static inline bool ipv4_is_local_multicast(__be32 addr) in ipv4_is_local_multicast() argument
50 return (addr & htonl(0xffffff00)) == htonl(0xe0000000); in ipv4_is_local_multicast()
53 static inline bool ipv4_is_lbcast(__be32 addr) in ipv4_is_lbcast() argument
56 return addr == htonl(INADDR_BROADCAST); in ipv4_is_lbcast()
59 static inline bool ipv4_is_all_snoopers(__be32 addr) in ipv4_is_all_snoopers() argument
61 return addr == htonl(INADDR_ALLSNOOPERS_GROUP); in ipv4_is_all_snoopers()
[all …]

12345678910>>...199