/arch/um/os-Linux/ |
D | execvp.c | 52 char *path = getenv("PATH"); in execvp_noalloc() local 53 if (path == NULL) in execvp_noalloc() 54 path = ":/bin:/usr/bin"; in execvp_noalloc() 57 pathlen = strlen(path); in execvp_noalloc() 64 p = path; in execvp_noalloc() 68 path = p; in execvp_noalloc() 71 p = strchr(path, ':'); in execvp_noalloc() 73 p = strchr(path, '\0'); in execvp_noalloc() 75 if (p == path) in execvp_noalloc() 80 startp = memcpy(name - (p - path), path, p - path); in execvp_noalloc()
|
/arch/sh/drivers/pci/ |
D | ops-cayman.c | 34 } path[4]; in pcibios_map_platform_irq() local 39 slot = path[i].slot = PCI_SLOT(dev->devfn); in pcibios_map_platform_irq() 40 pin = path[i].pin = pci_swizzle_interrupt_pin(dev, pin); in pcibios_map_platform_irq() 57 slot = path[i].slot; in pcibios_map_platform_irq() 58 pin = path[i].pin; in pcibios_map_platform_irq() 65 slot = path[i].slot; in pcibios_map_platform_irq() 66 pin = path[i].pin; in pcibios_map_platform_irq()
|
/arch/powerpc/boot/ |
D | install.sh | 43 path=$4 47 if [ -f $path/$image_name ]; then 48 mv $path/$image_name $path/$image_name.old 50 cat $1 > $path/$image_name
|
D | planetcore.c | 109 char *path; in planetcore_set_stdout_path() local 122 path = get_path(node, prop_buf, MAX_PROP_LEN); in planetcore_set_stdout_path() 123 if (!path) in planetcore_set_stdout_path() 132 setprop_str(chosen, "linux,stdout-path", path); in planetcore_set_stdout_path()
|
D | virtex.c | 83 char path[MAX_PATH_LEN]; in platform_specific_init() local 89 if (getprop(devp, "linux,stdout-path", path, MAX_PATH_LEN) > 0) { in platform_specific_init() 90 devp = finddevice(path); in platform_specific_init()
|
D | serial.c | 89 char path[MAX_PATH_LEN]; in serial_get_stdout_devp() local 95 if (getprop(devp, "linux,stdout-path", path, MAX_PATH_LEN) > 0) { in serial_get_stdout_devp() 96 devp = finddevice(path); in serial_get_stdout_devp()
|
D | ops.h | 176 char path[MAX_PATH_LEN]; in find_node_by_alias() local 177 if (getprop(devp, alias, path, MAX_PATH_LEN) > 0) in find_node_by_alias() 178 return finddevice(path); in find_node_by_alias() 195 void dt_fixup_clock(const char *path, u32 freq);
|
/arch/powerpc/kernel/ |
D | ibmebus.c | 257 char *path; in ibmebus_store_probe() local 260 path = ibmebus_chomp(buf, count); in ibmebus_store_probe() 261 if (!path) in ibmebus_store_probe() 264 if (bus_find_device(&ibmebus_bus_type, NULL, path, in ibmebus_store_probe() 267 __func__, path); in ibmebus_store_probe() 272 if ((dn = of_find_node_by_path(path))) { in ibmebus_store_probe() 277 __func__, path); in ibmebus_store_probe() 282 kfree(path); in ibmebus_store_probe() 292 char *path; in ibmebus_store_remove() local 294 path = ibmebus_chomp(buf, count); in ibmebus_store_remove() [all …]
|
D | prom_init.c | 955 char *path, type[64]; in prom_init_mem() local 974 path = RELOC(prom_scratch); in prom_init_mem() 999 memset(path, 0, PROM_SCRATCH_SIZE); in prom_init_mem() 1000 call_prom("package-to-path", 3, 1, node, path, PROM_SCRATCH_SIZE-1); in prom_init_mem() 1001 prom_debug(" node %s :\n", path); in prom_init_mem() 1120 char *path = RELOC(prom_scratch); in prom_initialize_tce_table() local 1194 memset(path, 0, PROM_SCRATCH_SIZE); in prom_initialize_tce_table() 1197 path, PROM_SCRATCH_SIZE-1) == PROM_ERROR) { in prom_initialize_tce_table() 1202 prom_setprop(node, path, "linux,tce-base", &base, sizeof(base)); in prom_initialize_tce_table() 1203 prom_setprop(node, path, "linux,tce-size", &minsize, sizeof(minsize)); in prom_initialize_tce_table() [all …]
|
/arch/parisc/kernel/ |
D | drivers.c | 303 static void get_node_path(struct device *dev, struct hardware_path *path) in get_node_path() argument 306 memset(&path->bc, -1, 6); in get_node_path() 310 path->mod = PCI_FUNC(devfn); in get_node_path() 311 path->bc[i--] = PCI_SLOT(devfn); in get_node_path() 318 path->bc[i--] = PCI_SLOT(devfn) | (PCI_FUNC(devfn)<< 5); in get_node_path() 320 path->bc[i--] = to_parisc_device(dev)->hw_path; in get_node_path() 326 static char *print_hwpath(struct hardware_path *path, char *output) in print_hwpath() argument 330 if (path->bc[i] == -1) in print_hwpath() 332 output += sprintf(output, "%u/", (unsigned char) path->bc[i]); in print_hwpath() 334 output += sprintf(output, "%u", (unsigned char) path->mod); in print_hwpath() [all …]
|
D | inventory.c | 433 dev = alloc_pa_dev(r_addr->hpa, &module_path->path); in legacy_create_device() 459 memset(module_path.path.bc, 0xff, 6); in snake_inventory() 460 module_path.path.mod = mod; in snake_inventory() 465 memset(module_path.path.bc, 0xff, 4); in snake_inventory() 466 module_path.path.bc[4] = mod; in snake_inventory() 469 module_path.path.bc[5] = 0; in snake_inventory() 470 module_path.path.mod = func; in snake_inventory() 543 dev = alloc_pa_dev(module_result.mod_addr, &module_path.path); in system_map_inventory()
|
D | sys_parisc.c | 160 asmlinkage long parisc_truncate64(const char __user * path, in parisc_truncate64() argument 163 return sys_truncate(path, (long)high << 32 | low); in parisc_truncate64() 174 asmlinkage long sys_truncate64(const char __user * path, unsigned long length) in sys_truncate64() argument 176 return sys_truncate(path, length); in sys_truncate64() 188 asmlinkage long parisc_truncate64(const char __user * path, in parisc_truncate64() argument 191 return sys_truncate64(path, (loff_t)high << 32 | low); in parisc_truncate64()
|
/arch/powerpc/platforms/pseries/ |
D | reconfig.c | 74 static struct device_node *derive_parent(const char *path) in derive_parent() argument 78 size_t parent_path_len = strrchr(path, '/') - path + 1; in derive_parent() 81 if (!strcmp(path, "/")) in derive_parent() 84 if (strrchr(path, '/') != path) { in derive_parent() 88 strlcpy(parent_path, path, parent_path_len); in derive_parent() 110 static int pSeries_reconfig_add_node(const char *path, struct property *proplist) in pSeries_reconfig_add_node() argument 119 np->full_name = kmalloc(strlen(path) + 1, GFP_KERNEL); in pSeries_reconfig_add_node() 123 strcpy(np->full_name, path); in pSeries_reconfig_add_node() 129 np->parent = derive_parent(path); in pSeries_reconfig_add_node() 138 printk(KERN_ERR "Failed to add device node %s\n", path); in pSeries_reconfig_add_node() [all …]
|
/arch/powerpc/platforms/cell/ |
D | beat.c | 209 u64 path[4], data[2]; in beat_register_event() local 243 path[0] = 0x1000000065780000ul; /* 1,ex */ in beat_register_event() 244 path[1] = 0x627574746f6e0000ul; /* button */ in beat_register_event() 245 path[2] = 0; in beat_register_event() 246 strncpy((char *)&path[2], ev->typecode, 8); in beat_register_event() 247 path[3] = 0; in beat_register_event() 250 beat_create_repository_node(path, data); in beat_register_event()
|
D | beat_wrapper.h | 270 static inline s64 beat_create_repository_node(u64 path[4], u64 data[2]) in beat_create_repository_node() 275 path[0], path[1], path[2], path[3], data[0], data[1]); in beat_create_repository_node() 279 static inline s64 beat_get_repository_node_value(u64 lpid, u64 path[4], in beat_get_repository_node_value() 285 lpid, path[0], path[1], path[2], path[3]); in beat_get_repository_node_value()
|
/arch/parisc/include/asm/ |
D | hardware.h | 107 struct hardware_path *path); 115 extern char *print_pa_hwpath(struct parisc_device *dev, char *path); 116 extern char *print_pci_hwpath(struct pci_dev *dev, char *path); 117 extern void get_pci_node_path(struct pci_dev *dev, struct hardware_path *path); 120 extern void device_to_hwpath(struct device *dev, struct hardware_path *path);
|
/arch/blackfin/kernel/ |
D | cplbinfo.c | 116 char buf[256], *path, *p; in cplbinfo_open() local 123 path = d_path(&file->f_path, buf, sizeof(buf)); in cplbinfo_open() 124 if (IS_ERR(path)) in cplbinfo_open() 125 return PTR_ERR(path); in cplbinfo_open() 126 s_cpu = strstr(path, "/cpu"); in cplbinfo_open() 127 s_cplb = strrchr(path, '/'); in cplbinfo_open()
|
/arch/powerpc/boot/dtc-src/ |
D | livetree.c | 222 struct node *get_node_by_path(struct node *tree, const char *path) in get_node_by_path() argument 227 if (!path || ! (*path)) in get_node_by_path() 230 while (path[0] == '/') in get_node_by_path() 231 path++; in get_node_by_path() 233 p = strchr(path, '/'); in get_node_by_path() 236 if (p && strneq(path, child->name, p-path)) in get_node_by_path() 238 else if (!p && streq(path, child->name)) in get_node_by_path()
|
D | dtc.c | 34 char *join_path(const char *path, const char *name) in join_path() argument 36 int lenp = strlen(path); in join_path() 43 if ((lenp > 0) && (path[lenp-1] == '/')) { in join_path() 49 memcpy(str, path, lenp); in join_path()
|
D | dtc-parser.y | 205 struct search_path path = { srcpos_file->dir, NULL, NULL }; variable 206 struct dtc_file *file = dtc_open_file($4.val, &path); 222 struct search_path path = { srcpos_file->dir, NULL, NULL }; variable 223 struct dtc_file *file = dtc_open_file($4.val, &path);
|
/arch/powerpc/sysdev/ |
D | mv64x60_udbg.c | 73 const char *path; in mv64x60_udbg_init() local 80 path = of_get_property(of_chosen, "linux,stdout-path", NULL); in mv64x60_udbg_init() 81 if (!path) in mv64x60_udbg_init() 84 stdout = of_find_node_by_path(path); in mv64x60_udbg_init()
|
/arch/powerpc/platforms/powermac/ |
D | udbg_scc.c | 75 const char *path; in udbg_scc_init() local 84 path = of_get_property(of_chosen, "linux,stdout-path", NULL); in udbg_scc_init() 85 if (path != NULL) in udbg_scc_init() 86 stdout = of_find_node_by_path(path); in udbg_scc_init()
|
/arch/sparc/kernel/ |
D | prom_32.c | 265 const char *path; in of_console_init() local 268 path = of_get_property(dp, "stdout-path", NULL); in of_console_init() 269 if (!path) { in of_console_init() 273 strcpy(of_console_path, path); in of_console_init()
|
/arch/powerpc/platforms/iseries/ |
D | vio.c | 83 static struct device_node *new_node(const char *path, in new_node() argument 90 np->full_name = kmalloc(strlen(path) + 1, GFP_KERNEL); in new_node() 95 strcpy(np->full_name, path); in new_node() 145 char path[32]; in do_device_node() local 147 snprintf(path, sizeof(path), "/vdevice/%s@%08x", name, reg); in do_device_node() 148 np = new_node(path, parent); in do_device_node()
|
/arch/powerpc/boot/libfdt/ |
D | fdt_ro.c | 129 int fdt_path_offset(const void *fdt, const char *path) in fdt_path_offset() argument 131 const char *end = path + strlen(path); in fdt_path_offset() 132 const char *p = path; in fdt_path_offset() 137 if (*path != '/') in fdt_path_offset()
|