Lines Matching +full:data +full:- +full:addr

20 	for (k = 0; k < d->nr_windows; k++) {  in intc_phys_to_virt()
21 window = d->window + k; in intc_phys_to_virt()
23 if (address < window->phys) in intc_phys_to_virt()
26 if (address >= (window->phys + window->size)) in intc_phys_to_virt()
29 address -= window->phys; in intc_phys_to_virt()
30 address += (unsigned long)window->virt; in intc_phys_to_virt()
45 for (k = 0; k < d->nr_reg; k++) { in intc_get_reg()
46 if (d->reg[k] == address) in intc_get_reg()
61 value &= ~(((1 << width) - 1) << shift); in intc_set_field_from_handle()
70 unsigned int mask = ((1 << width) - 1) << shift; in intc_get_field_from_handle()
75 static unsigned long test_8(unsigned long addr, unsigned long h, in test_8() argument
78 void __iomem *ptr = (void __iomem *)addr; in test_8()
82 static unsigned long test_16(unsigned long addr, unsigned long h, in test_16() argument
85 void __iomem *ptr = (void __iomem *)addr; in test_16()
89 static unsigned long test_32(unsigned long addr, unsigned long h, in test_32() argument
92 void __iomem *ptr = (void __iomem *)addr; in test_32()
96 static unsigned long write_8(unsigned long addr, unsigned long h, in write_8() argument
97 unsigned long data) in write_8() argument
99 void __iomem *ptr = (void __iomem *)addr; in write_8()
100 __raw_writeb(intc_set_field_from_handle(0, data, h), ptr); in write_8()
105 static unsigned long write_16(unsigned long addr, unsigned long h, in write_16() argument
106 unsigned long data) in write_16() argument
108 void __iomem *ptr = (void __iomem *)addr; in write_16()
109 __raw_writew(intc_set_field_from_handle(0, data, h), ptr); in write_16()
114 static unsigned long write_32(unsigned long addr, unsigned long h, in write_32() argument
115 unsigned long data) in write_32() argument
117 void __iomem *ptr = (void __iomem *)addr; in write_32()
118 __raw_writel(intc_set_field_from_handle(0, data, h), ptr); in write_32()
123 static unsigned long modify_8(unsigned long addr, unsigned long h, in modify_8() argument
124 unsigned long data) in modify_8() argument
126 void __iomem *ptr = (void __iomem *)addr; in modify_8()
130 value = intc_set_field_from_handle(__raw_readb(ptr), data, h); in modify_8()
137 static unsigned long modify_16(unsigned long addr, unsigned long h, in modify_16() argument
138 unsigned long data) in modify_16() argument
140 void __iomem *ptr = (void __iomem *)addr; in modify_16()
144 value = intc_set_field_from_handle(__raw_readw(ptr), data, h); in modify_16()
151 static unsigned long modify_32(unsigned long addr, unsigned long h, in modify_32() argument
152 unsigned long data) in modify_32() argument
154 void __iomem *ptr = (void __iomem *)addr; in modify_32()
158 value = intc_set_field_from_handle(__raw_readl(ptr), data, h); in modify_32()
165 static unsigned long intc_mode_field(unsigned long addr, in intc_mode_field() argument
172 return fn(addr, handle, ((1 << _INTC_WIDTH(handle)) - 1)); in intc_mode_field()
175 static unsigned long intc_mode_zero(unsigned long addr, in intc_mode_zero() argument
182 return fn(addr, handle, 0); in intc_mode_zero()
185 static unsigned long intc_mode_prio(unsigned long addr, in intc_mode_prio() argument
192 return fn(addr, handle, intc_get_prio_level(irq)); in intc_mode_prio()
195 unsigned long (*intc_reg_fns[])(unsigned long addr,
197 unsigned long data) = {
209 unsigned long (*intc_enable_fns[])(unsigned long addr,
222 unsigned long (*intc_disable_fns[])(unsigned long addr,
235 unsigned long (*intc_enable_noprio_fns[])(unsigned long addr,