/arch/mips/kernel/ |
D | unaligned.c | 112 #define _LoadHW(addr, value, res, type) \ argument 130 : "=&r" (value), "=r" (res) \ 135 #define _LoadW(addr, value, res, type) \ argument 151 : "=&r" (value), "=r" (res) \ 157 #define _LoadW(addr, value, res, type) \ argument 186 : "=&r" (value), "=r" (res) \ 192 #define _LoadHWU(addr, value, res, type) \ argument 212 : "=&r" (value), "=r" (res) \ 217 #define _LoadWU(addr, value, res, type) \ argument 235 : "=&r" (value), "=r" (res) \ [all …]
|
/arch/x86/pci/ |
D | broadcom_bus.c | 22 struct resource res; in cnb20le_res() local 49 res.start = ((resource_size_t) word1 << 16) | 0x0000; in cnb20le_res() 50 res.end = ((resource_size_t) word2 << 16) | 0xffff; in cnb20le_res() 51 res.flags = IORESOURCE_MEM; in cnb20le_res() 52 update_res(info, res.start, res.end, res.flags, 0); in cnb20le_res() 59 res.start = ((resource_size_t) word1 << 16) | 0x0000; in cnb20le_res() 60 res.end = ((resource_size_t) word2 << 16) | 0xffff; in cnb20le_res() 61 res.flags = IORESOURCE_MEM | IORESOURCE_PREFETCH; in cnb20le_res() 62 update_res(info, res.start, res.end, res.flags, 0); in cnb20le_res() 69 res.start = word1; in cnb20le_res() [all …]
|
D | bus_numa.c | 46 if (window->res->flags & IORESOURCE_BUS) { in x86_pci_root_bus_resources() 55 pci_add_resource(resources, &root_res->res); in x86_pci_root_bus_resources() 98 struct resource *res; in update_res() local 115 res = &root_res->res; in update_res() 116 if (res->flags != flags) in update_res() 119 common_start = max(res->start, start); in update_res() 120 common_end = min(res->end, end); in update_res() 124 final_start = min(res->start, start); in update_res() 125 final_end = max(res->end, end); in update_res() 127 res->start = final_start; in update_res() [all …]
|
/arch/mips/pci/ |
D | pci-bcm47xx.c | 39 int res; in bcm47xx_pcibios_plat_dev_init_ssb() local 42 res = ssb_pcibios_plat_dev_init(dev); in bcm47xx_pcibios_plat_dev_init_ssb() 43 if (res < 0) { in bcm47xx_pcibios_plat_dev_init_ssb() 46 return res; in bcm47xx_pcibios_plat_dev_init_ssb() 51 res = ssb_pcibios_map_irq(dev, slot, pin); in bcm47xx_pcibios_plat_dev_init_ssb() 54 if (res < 2) { in bcm47xx_pcibios_plat_dev_init_ssb() 57 return res; in bcm47xx_pcibios_plat_dev_init_ssb() 60 dev->irq = res; in bcm47xx_pcibios_plat_dev_init_ssb() 68 int res; in bcm47xx_pcibios_plat_dev_init_bcma() local 70 res = bcma_core_pci_plat_dev_init(dev); in bcm47xx_pcibios_plat_dev_init_bcma() [all …]
|
D | ops-sni.c | 43 int res; in pcimt_read() local 45 if ((res = set_config_address(bus->number, devfn, reg))) in pcimt_read() 46 return res; in pcimt_read() 66 int res; in pcimt_write() local 68 if ((res = set_config_address(bus->number, devfn, reg))) in pcimt_write() 69 return res; in pcimt_write() 103 int res; in pcit_read() local 113 if ((res = pcit_set_config_address(0, devfn, 0))) in pcit_read() 114 return res; in pcit_read() 120 if ((res = pcit_set_config_address(bus->number, devfn, reg))) in pcit_read() [all …]
|
D | fixup-loongson3.c | 43 struct resource *res = &pdev->resource[PCI_ROM_RESOURCE]; in pci_fixup_radeon() local 45 if (res->start) in pci_fixup_radeon() 52 if (res->parent) in pci_fixup_radeon() 53 release_resource(res); in pci_fixup_radeon() 55 res->start = virt_to_phys((void *) loongson_sysconf.vgabios_addr); in pci_fixup_radeon() 56 res->end = res->start + 256*1024 - 1; in pci_fixup_radeon() 57 res->flags = IORESOURCE_MEM | IORESOURCE_ROM_SHADOW | in pci_fixup_radeon() 61 PCI_ROM_RESOURCE, res); in pci_fixup_radeon()
|
/arch/sparc/kernel/ |
D | ioport.c | 66 static void __iomem *_sparc_ioremap(struct resource *res, u32 bus, u32 pa, int sz); 69 static void _sparc_free_io(struct resource *res); 139 struct resource *res; in iounmap() local 145 if ((res = lookup_resource(&sparc_iomap, vaddr)) == NULL) { in iounmap() 149 _sparc_free_io(res); in iounmap() 151 if ((char *)res >= (char*)xresv && (char *)res < (char *)&xresv[XNRES]) { in iounmap() 152 xres_free((struct xresource *)res); in iounmap() 154 kfree(res); in iounmap() 159 void __iomem *of_ioremap(struct resource *res, unsigned long offset, in of_ioremap() argument 162 return _sparc_alloc_io(res->flags & 0xF, in of_ioremap() [all …]
|
/arch/m68k/amiga/ |
D | chipram.c | 47 struct resource *res; in amiga_chip_alloc() local 50 res = kzalloc(sizeof(struct resource), GFP_KERNEL); in amiga_chip_alloc() 51 if (!res) in amiga_chip_alloc() 54 res->name = name; in amiga_chip_alloc() 55 p = amiga_chip_alloc_res(size, res); in amiga_chip_alloc() 57 kfree(res); in amiga_chip_alloc() 73 void *amiga_chip_alloc_res(unsigned long size, struct resource *res) in amiga_chip_alloc_res() argument 81 error = allocate_resource(&chipram_res, res, size, 0, UINT_MAX, in amiga_chip_alloc_res() 90 pr_debug("amiga_chip_alloc_res: returning %pR\n", res); in amiga_chip_alloc_res() 91 return ZTWO_VADDR(res->start); in amiga_chip_alloc_res() [all …]
|
/arch/m68k/include/asm/ |
D | uaccess_mm.h | 38 #define __put_user_asm(res, x, ptr, bwl, reg, err) \ argument 53 : "+d" (res), "=m" (*(ptr)) \ 109 #define __get_user_asm(res, x, ptr, type, bwl, reg, err) ({ \ argument 125 : "+d" (res), "=&" #reg (__gu_val) \ 190 #define ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\ argument 225 : "+d" (res), "+&a" (to), "+a" (from), "=&d" (tmp) \ 228 #define ___constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\ argument 229 ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3) 230 #define __constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3) \ argument 231 ___constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, \ [all …]
|
/arch/x86/lib/ |
D | string_32.c | 98 int res; in strcmp() local 109 : "=a" (res), "=&S" (d0), "=&D" (d1) in strcmp() 112 return res; in strcmp() 120 int res; in strncmp() local 134 : "=a" (res), "=&S" (d0), "=&D" (d1), "=&c" (d2) in strncmp() 137 return res; in strncmp() 146 char *res; in strchr() local 156 : "=a" (res), "=&S" (d0) in strchr() 159 return res; in strchr() 168 size_t res; in strlen() local [all …]
|
/arch/mips/lib/ |
D | multi3.c | 17 long long res; in dmulu() local 19 asm ("dmulu %0,%1,%2" : "=r" (res) : "r" (a), "r" (b)); in dmulu() 20 return res; in dmulu() 26 long long res; in dmuhu() local 28 asm ("dmuhu %0,%1,%2" : "=r" (res) : "r" (a), "r" (b)); in dmuhu() 29 return res; in dmuhu() 35 TWunion res, aa, bb; in __multi3() local 45 res.s.low = dmulu(aa.s.low, bb.s.low); in __multi3() 46 res.s.high = dmuhu(aa.s.low, bb.s.low); in __multi3() 47 res.s.high += dmulu(aa.s.high, bb.s.low); in __multi3() [all …]
|
/arch/microblaze/pci/ |
D | pci-common.c | 422 struct resource *res; in pci_process_bridge_OF_ranges() local 450 res = NULL; in pci_process_bridge_OF_ranges() 481 res = &hose->io_resource; in pci_process_bridge_OF_ranges() 524 res = &hose->mem_resources[memno++]; in pci_process_bridge_OF_ranges() 527 if (res != NULL) { in pci_process_bridge_OF_ranges() 528 res->name = dev->full_name; in pci_process_bridge_OF_ranges() 529 res->flags = range.flags; in pci_process_bridge_OF_ranges() 530 res->start = range.cpu_addr; in pci_process_bridge_OF_ranges() 531 res->end = range.cpu_addr + range.size - 1; in pci_process_bridge_OF_ranges() 532 res->parent = res->child = res->sibling = NULL; in pci_process_bridge_OF_ranges() [all …]
|
/arch/powerpc/platforms/52xx/ |
D | mpc52xx_pci.c | 241 struct resource *res; in mpc52xx_pci_setup() local 258 res = &hose->mem_resources[0]; in mpc52xx_pci_setup() 259 if (res->flags) { in mpc52xx_pci_setup() 262 (unsigned long long)res->start, in mpc52xx_pci_setup() 263 (unsigned long long)res->end, in mpc52xx_pci_setup() 264 (unsigned long long)res->flags); in mpc52xx_pci_setup() 266 MPC52xx_PCI_IWBTAR_TRANSLATION(res->start, res->start, in mpc52xx_pci_setup() 267 resource_size(res))); in mpc52xx_pci_setup() 269 if (res->flags & IORESOURCE_PREFETCH) in mpc52xx_pci_setup() 275 res = &hose->mem_resources[1]; in mpc52xx_pci_setup() [all …]
|
/arch/x86/platform/olpc/ |
D | olpc_dt.c | 25 void *res[] = { &node }; in olpc_dt_getsibling() local 30 if (olpc_ofw("peer", args, res) || (s32)node == -1) in olpc_dt_getsibling() 39 void *res[] = { &node }; in olpc_dt_getchild() local 44 if (olpc_ofw("child", args, res) || (s32)node == -1) { in olpc_dt_getchild() 56 void *res[] = { &len }; in olpc_dt_getproplen() local 61 if (olpc_ofw("getproplen", args, res)) { in olpc_dt_getproplen() 79 void *res[] = { &plen }; in olpc_dt_getproperty() local 81 if (olpc_ofw("getprop", args, res)) { in olpc_dt_getproperty() 94 void *res[] = { &success }; in olpc_dt_nextprop() local 101 if (olpc_ofw("nextprop", args, res) || success != 1) in olpc_dt_nextprop() [all …]
|
/arch/arc/include/asm/ |
D | uaccess.h | 170 long res = 0; in raw_copy_from_user() local 217 res = orig_n; in raw_copy_from_user() 246 : "+r" (res), "+r"(to), "+r"(from), in raw_copy_from_user() 270 : "+r" (res), "+r"(to), "+r"(from), in raw_copy_from_user() 291 : "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1) in raw_copy_from_user() 311 : "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1) in raw_copy_from_user() 329 : "+r" (res), "+r"(to), "+r"(from), "=r"(tmp1) in raw_copy_from_user() 385 : "=r" (res), "+r"(to), "+r"(from), "+r"(n), "=r"(val), in raw_copy_from_user() 391 return res; in raw_copy_from_user() 397 long res = 0; in raw_copy_to_user() local [all …]
|
/arch/m68k/lib/ |
D | uaccess.c | 13 unsigned long tmp, res; in __generic_copy_from_user() local 49 : "=d" (res), "+a" (from), "+a" (to), "=&d" (tmp) in __generic_copy_from_user() 52 return res; in __generic_copy_from_user() 59 unsigned long tmp, res; in __generic_copy_to_user() local 93 : "=d" (res), "+a" (from), "+a" (to), "=&d" (tmp) in __generic_copy_to_user() 96 return res; in __generic_copy_to_user() 106 unsigned long res; in __clear_user() local 137 : "=d" (res), "+a" (to) in __clear_user() 140 return res; in __clear_user()
|
/arch/mips/ar7/ |
D | platform.c | 554 int res; in ar7_register_uarts() local 573 res = early_serial_setup(&uart_port); in ar7_register_uarts() 574 if (res) in ar7_register_uarts() 575 return res; in ar7_register_uarts() 584 res = early_serial_setup(&uart_port); in ar7_register_uarts() 585 if (res) in ar7_register_uarts() 586 return res; in ar7_register_uarts() 642 int res; in ar7_register_devices() local 644 res = ar7_gpio_init(); in ar7_register_devices() 645 if (res) in ar7_register_devices() [all …]
|
/arch/arm/kernel/ |
D | swp_emulate.c | 35 #define __user_swpX_asm(data, addr, res, temp, B) \ argument 53 : "=&r" (res), "+r" (data), "=&r" (temp) \ 57 #define __user_swp_asm(data, addr, res, temp) \ argument 58 __user_swpX_asm(data, addr, res, temp, "") 59 #define __user_swpb_asm(data, addr, res, temp) \ argument 60 __user_swpX_asm(data, addr, res, temp, "b") 119 unsigned int res = 0; in emulate_swpX() local 133 __user_swpb_asm(*data, address, res, temp); in emulate_swpX() 135 __user_swp_asm(*data, address, res, temp); in emulate_swpX() 138 if (likely(res != -EAGAIN) || signal_pending(current)) in emulate_swpX() [all …]
|
/arch/powerpc/sysdev/ |
D | rtc_cmos_setup.c | 24 struct resource res[2]; in add_rtc() local 28 memset(&res, 0, sizeof(res)); in add_rtc() 34 ret = of_address_to_resource(np, 0, &res[0]); in add_rtc() 43 if (res[0].start != RTC_PORT(0)) in add_rtc() 56 res[1].start = 8; in add_rtc() 57 res[1].end = 8; in add_rtc() 58 res[1].flags = IORESOURCE_IRQ; in add_rtc() 63 &res[0], num_res); in add_rtc()
|
D | of_rtc.c | 32 struct resource *res; in of_instantiate_rtc() local 34 res = kmalloc(sizeof(*res), GFP_KERNEL); in of_instantiate_rtc() 35 if (!res) { in of_instantiate_rtc() 42 err = of_address_to_resource(node, 0, res); in of_instantiate_rtc() 52 (unsigned long long)res->start, in of_instantiate_rtc() 53 (unsigned long long)res->end); in of_instantiate_rtc() 54 platform_device_register_simple(plat_name, -1, res, 1); in of_instantiate_rtc()
|
/arch/m68k/atari/ |
D | stram.c | 157 struct resource *res; in atari_stram_alloc() local 165 res = kzalloc(sizeof(struct resource), GFP_KERNEL); in atari_stram_alloc() 166 if (!res) in atari_stram_alloc() 169 res->name = owner; in atari_stram_alloc() 170 error = allocate_resource(&stram_pool, res, size, 0, UINT_MAX, in atari_stram_alloc() 175 kfree(res); in atari_stram_alloc() 179 pr_debug("atari_stram_alloc: returning %pR\n", res); in atari_stram_alloc() 180 return atari_stram_to_virt(res->start); in atari_stram_alloc() 188 struct resource *res; in atari_stram_free() local 191 res = lookup_resource(&stram_pool, start); in atari_stram_free() [all …]
|
/arch/ia64/pci/ |
D | fixup.c | 35 struct resource *res; in pci_fixup_video() local 64 res = &pdev->resource[PCI_ROM_RESOURCE]; in pci_fixup_video() 67 if (res->parent) in pci_fixup_video() 68 release_resource(res); in pci_fixup_video() 70 res->start = 0xC0000; in pci_fixup_video() 71 res->end = res->start + 0x20000 - 1; in pci_fixup_video() 72 res->flags = IORESOURCE_MEM | IORESOURCE_ROM_SHADOW | in pci_fixup_video() 75 res); in pci_fixup_video()
|
/arch/x86/kernel/ |
D | resource.c | 5 static void resource_clip(struct resource *res, resource_size_t start, in resource_clip() argument 10 if (res->end < start || res->start > end) in resource_clip() 13 if (res->start < start) in resource_clip() 14 low = start - res->start; in resource_clip() 16 if (res->end > end) in resource_clip() 17 high = res->end - end; in resource_clip() 21 res->end = start - 1; in resource_clip() 23 res->start = end + 1; in resource_clip()
|
/arch/csky/lib/ |
D | usercopy.c | 31 #define __do_strncpy_from_user(dst, src, count, res) \ argument 57 : "=r"(res), "=r"(count), "=r"(dst), \ 87 long res; in __strncpy_from_user() local 89 __do_strncpy_from_user(dst, src, count, res); in __strncpy_from_user() 90 return res; in __strncpy_from_user() 114 long res = -EFAULT; in strncpy_from_user() local 117 __do_strncpy_from_user(dst, src, count, res); in strncpy_from_user() 118 return res; in strncpy_from_user() 135 unsigned long res, tmp; in strnlen_user() local 161 : "=r"(n), "=r"(s), "=r"(res), "=r"(tmp) in strnlen_user() [all …]
|
/arch/powerpc/kernel/ |
D | pci-common.c | 672 struct resource *res; in pci_process_bridge_OF_ranges() local 694 res = NULL; in pci_process_bridge_OF_ranges() 729 res = &hose->io_resource; in pci_process_bridge_OF_ranges() 757 res = &hose->mem_resources[memno++]; in pci_process_bridge_OF_ranges() 760 if (res != NULL) { in pci_process_bridge_OF_ranges() 761 res->name = dev->full_name; in pci_process_bridge_OF_ranges() 762 res->flags = range.flags; in pci_process_bridge_OF_ranges() 763 res->start = range.cpu_addr; in pci_process_bridge_OF_ranges() 764 res->end = range.cpu_addr + range.size - 1; in pci_process_bridge_OF_ranges() 765 res->parent = res->child = res->sibling = NULL; in pci_process_bridge_OF_ranges() [all …]
|