/arch/sparc/kernel/ |
D | prom_64.c | 72 static void __init sun4v_path_component(struct device_node *dp, char *tmp_buf) in sun4v_path_component() argument 78 rprop = of_find_property(dp, "reg", NULL); in sun4v_path_component() 83 if (!of_node_is_root(dp->parent)) { in sun4v_path_component() 85 dp->name, in sun4v_path_component() 100 dp->name, prefix, in sun4v_path_component() 104 dp->name, in sun4v_path_component() 109 dp->name, high_bits); in sun4v_path_component() 113 static void __init sun4u_path_component(struct device_node *dp, char *tmp_buf) in sun4u_path_component() argument 118 prop = of_find_property(dp, "reg", NULL); in sun4u_path_component() 123 if (!of_node_is_root(dp->parent)) { in sun4u_path_component() [all …]
|
D | prom_32.c | 61 static void __init sparc32_path_component(struct device_node *dp, char *tmp_buf) in sparc32_path_component() argument 66 rprop = of_find_property(dp, "reg", NULL); in sparc32_path_component() 72 dp->name, in sparc32_path_component() 77 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf) in sbus_path_component() argument 82 prop = of_find_property(dp, "reg", NULL); in sbus_path_component() 88 dp->name, in sbus_path_component() 94 static void __init pci_path_component(struct device_node *dp, char *tmp_buf) in pci_path_component() argument 100 prop = of_find_property(dp, "reg", NULL); in pci_path_component() 108 dp->name, in pci_path_component() 113 dp->name, in pci_path_component() [all …]
|
D | prom_irqtrans.c | 42 static unsigned int psycho_irq_build(struct device_node *dp, in psycho_irq_build() argument 72 static void __init psycho_irq_trans_init(struct device_node *dp) in psycho_irq_trans_init() argument 76 dp->irq_trans = prom_early_alloc(sizeof(struct of_irq_controller)); in psycho_irq_trans_init() 77 dp->irq_trans->irq_build = psycho_irq_build; in psycho_irq_trans_init() 79 regs = of_get_property(dp, "reg", NULL); in psycho_irq_trans_init() 80 dp->irq_trans->data = (void *) regs[2].phys_addr; in psycho_irq_trans_init() 181 static int sabre_device_needs_wsync(struct device_node *dp) in sabre_device_needs_wsync() argument 183 struct device_node *parent = dp->parent; in sabre_device_needs_wsync() 220 static unsigned int sabre_irq_build(struct device_node *dp, in sabre_irq_build() argument 257 regs = of_get_property(dp, "reg", NULL); in sabre_irq_build() [all …]
|
D | ds.c | 133 void (*data)(struct ds_info *dp, 145 static void md_update_data(struct ds_info *dp, struct ds_cap_state *cp, 147 static void domain_shutdown_data(struct ds_info *dp, 150 static void domain_panic_data(struct ds_info *dp, 154 static void dr_cpu_data(struct ds_info *dp, 158 static void ds_pri_data(struct ds_info *dp, 161 static void ds_var_data(struct ds_info *dp, 219 static struct ds_cap_state *find_cap(struct ds_info *dp, u64 handle) in find_cap() argument 223 if (index >= dp->num_ds_states) in find_cap() 225 return &dp->ds_states[index]; in find_cap() [all …]
|
D | of_device_common.c | 59 struct device_node *dp; in of_propagate_archdata() local 61 for (dp = bus_dp->child; dp; dp = dp->sibling) { in of_propagate_archdata() 62 struct platform_device *op = of_find_device_by_node(dp); in of_propagate_archdata() 69 if (dp->child) in of_propagate_archdata() 74 static void get_cells(struct device_node *dp, int *addrc, int *sizec) in get_cells() argument 77 *addrc = of_n_addr_cells(dp); in get_cells() 79 *sizec = of_n_size_cells(dp); in get_cells() 150 struct device_node *dp = np; in of_bus_sbus_match() local 152 while (dp) { in of_bus_sbus_match() 153 if (!strcmp(dp->name, "sbus") || in of_bus_sbus_match() [all …]
|
D | sun4c_irq.c | 180 struct device_node *dp; in sun4c_init_timers() local 185 dp = of_find_node_by_name(NULL, "counter-timer"); in sun4c_init_timers() 186 if (!dp) { in sun4c_init_timers() 191 addr = of_get_property(dp, "address", NULL); in sun4c_init_timers() 199 prom_irqs = of_get_property(dp, "intr", NULL); in sun4c_init_timers() 200 of_node_put(dp); in sun4c_init_timers() 233 struct device_node *dp; in sun4c_init_IRQ() local 236 dp = of_find_node_by_name(NULL, "interrupt-enable"); in sun4c_init_IRQ() 237 if (!dp) { in sun4c_init_IRQ() 242 addr = of_get_property(dp, "address", NULL); in sun4c_init_IRQ() [all …]
|
D | of_device_64.c | 354 struct device_node *dp = op->dev.of_node; in build_device_resources() local 377 dp = pp; in build_device_resources() 378 pp = dp->parent; in build_device_resources() 385 pbus->count_cells(dp, &pna, &pns); in build_device_resources() 387 if (build_one_resource(dp, dbus, pbus, addr, in build_device_resources() 419 apply_interrupt_map(struct device_node *dp, struct device_node *pp, in apply_interrupt_map() argument 431 bus->count_cells(dp, &na, NULL); in apply_interrupt_map() 433 reg = of_get_property(dp, "reg", &num_reg); in apply_interrupt_map() 478 static unsigned int __init pci_irq_swizzle(struct device_node *dp, in pci_irq_swizzle() argument 488 regs = of_get_property(dp, "reg", NULL); in pci_irq_swizzle() [all …]
|
D | sun4d_irq.c | 262 struct device_node *dp; in sun4d_distribute_irqs() local 268 for_each_node_by_name(dp, "sbi") { in sun4d_distribute_irqs() 269 int devid = of_getintprop_default(dp, "device-id", 0); in sun4d_distribute_irqs() 270 int board = of_getintprop_default(dp, "board#", 0); in sun4d_distribute_irqs() 336 struct device_node *dp = op->dev.of_node; in sun4d_build_device_irq() local 337 struct device_node *board_parent, *bus = dp->parent; in sun4d_build_device_irq() 362 regs = of_get_property(dp, "reg", NULL); in sun4d_build_device_irq() 428 struct device_node *dp; in sun4d_init_timers() local 435 dp = of_find_node_by_name(NULL, "cpu-unit"); in sun4d_init_timers() 436 if (!dp) { in sun4d_init_timers() [all …]
|
D | of_device_32.c | 276 struct device_node *dp = op->dev.of_node; in build_device_resources() local 300 dp = pp; in build_device_resources() 301 pp = dp->parent; in build_device_resources() 308 pbus->count_cells(dp, &pna, &pns); in build_device_resources() 310 if (build_one_resource(dp, dbus, pbus, addr, in build_device_resources() 338 static struct platform_device * __init scan_one_device(struct device_node *dp, in scan_one_device() argument 352 op->dev.of_node = dp; in scan_one_device() 354 intr = of_get_property(dp, "intr", &len); in scan_one_device() 362 of_get_property(dp, "interrupts", &len); in scan_one_device() 381 dev_set_name(&op->dev, "%08x", dp->phandle); in scan_one_device() [all …]
|
D | vio.c | 150 struct device_node *dp; in show_pciobppath_attr() local 153 dp = vdev->dp; in show_pciobppath_attr() 155 return snprintf (buf, PAGE_SIZE, "%s\n", dp->full_name); in show_pciobppath_attr() 196 struct device_node *dp; in vio_create_one() local 290 dp = cdev_node; in vio_create_one() 292 dp = of_get_next_child(cdev_node, NULL); in vio_create_one() 293 while (dp) { in vio_create_one() 294 if (!strcmp(dp->type, type)) in vio_create_one() 297 dp = of_get_next_child(cdev_node, dp); in vio_create_one() 300 dp = to_vio_dev(parent)->dp; in vio_create_one() [all …]
|
D | auxio_64.c | 107 struct device_node *dp = dev->dev.of_node; in auxio_probe() local 110 if (!strcmp(dp->parent->name, "ebus")) { in auxio_probe() 113 } else if (!strcmp(dp->parent->name, "sbus")) { in auxio_probe() 118 dp->parent->name); in auxio_probe() 126 dp->full_name); in auxio_probe()
|
D | chmc.c | 280 struct jbusmc_dimm_group *dp = &p->dimm_groups[i]; in jbusmc_find_dimm_group() local 282 if (phys_addr < dp->base_addr || in jbusmc_find_dimm_group() 283 (dp->base_addr + dp->size) <= phys_addr) in jbusmc_find_dimm_group() 286 return dp; in jbusmc_find_dimm_group() 297 struct jbusmc_dimm_group *dp; in jbusmc_print_dimm() local 301 dp = jbusmc_find_dimm_group(phys_addr); in jbusmc_print_dimm() 302 if (dp == NULL || in jbusmc_print_dimm() 311 p = dp->controller; in jbusmc_print_dimm() 314 first_dimm = dp->index * JB_NUM_DIMMS_PER_GROUP; in jbusmc_print_dimm() 371 struct jbusmc_dimm_group *dp = &p->dimm_groups[index]; in jbusmc_construct_one_dimm_group() local [all …]
|
D | devices.c | 56 struct device_node *dp; in __cpu_find_by() local 60 for_each_node_by_type(dp, "cpu") { in __cpu_find_by() 61 int err = check_cpu_node(dp->phandle, &cur_inst, in __cpu_find_by() 65 of_node_put(dp); in __cpu_find_by()
|
/arch/ia64/kernel/ |
D | unwind_decoder.c | 85 unw_decode_x1 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_x1() argument 90 byte1 = *dp++; in unw_decode_x1() 91 t = unw_decode_uleb128 (&dp); in unw_decode_x1() 92 off = unw_decode_uleb128 (&dp); in unw_decode_x1() 98 return dp; in unw_decode_x1() 102 unw_decode_x2 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_x2() argument 107 byte1 = *dp++; byte2 = *dp++; in unw_decode_x2() 108 t = unw_decode_uleb128 (&dp); in unw_decode_x2() 116 return dp; in unw_decode_x2() 120 unw_decode_x3 (unsigned char *dp, unsigned char code, void *arg) in unw_decode_x3() argument [all …]
|
/arch/m68k/mm/ |
D | memory.c | 33 #define PD_MARKBITS(dp) (*(unsigned char *)&PD_PAGE(dp)->index) argument 39 ptable_desc *dp; in init_pointer_table() local 43 dp = PD_PTABLE(page); in init_pointer_table() 44 if (!(PD_MARKBITS(dp) & mask)) { in init_pointer_table() 45 PD_MARKBITS(dp) = 0xff; in init_pointer_table() 46 list_add(dp, &ptable_list); in init_pointer_table() 49 PD_MARKBITS(dp) &= ~mask; in init_pointer_table() 51 printk("init_pointer_table: %lx, %x\n", ptable, PD_MARKBITS(dp)); in init_pointer_table() 55 PD_PAGE(dp)->flags &= ~(1 << PG_reserved); in init_pointer_table() 56 init_page_count(PD_PAGE(dp)); in init_pointer_table() [all …]
|
/arch/powerpc/sysdev/ |
D | micropatch.c | 627 volatile uint *dp; /* Dual-ported RAM. */ in cpm_load_patch() local 644 dp = (uint *)(commproc->cp_dpmem); in cpm_load_patch() 646 *dp++ = patch_2000[i]; in cpm_load_patch() 648 dp = (uint *)&(commproc->cp_dpmem[0x0f00]); in cpm_load_patch() 650 *dp++ = patch_2f00[i]; in cpm_load_patch() 662 dp = (uint *)(commproc->cp_dpmem); in cpm_load_patch() 664 *dp++ = patch_2000[i]; in cpm_load_patch() 666 dp = (uint *)&(commproc->cp_dpmem[0x0f00]); in cpm_load_patch() 668 *dp++ = patch_2f00[i]; in cpm_load_patch() 692 dp = (uint *)&(commproc->cp_dpmem[0x0e00]); in cpm_load_patch() [all …]
|
D | dcr.c | 66 struct device_node *dp; in dcr_map_generic() local 71 dp = find_dcr_parent(dev); in dcr_map_generic() 72 if (dp == NULL) in dcr_map_generic() 75 prop = of_get_property(dp, "dcr-access-method", NULL); in dcr_map_generic() 87 of_node_put(dp); in dcr_map_generic() 159 struct device_node *dp; in of_translate_dcr_address() local 164 dp = find_dcr_parent(dev); in of_translate_dcr_address() 165 if (dp == NULL) in of_translate_dcr_address() 169 p = of_get_property(dp, "dcr-mmio-stride", NULL); in of_translate_dcr_address() 173 p = of_get_property(dp, "dcr-mmio-range", NULL); in of_translate_dcr_address() [all …]
|
/arch/mips/alchemy/common/ |
D | dbdma.c | 212 void *au1xxx_ddma_get_nextptr_virt(au1x_ddma_desc_t *dp) in au1xxx_ddma_get_nextptr_virt() argument 214 return phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr)); in au1xxx_ddma_get_nextptr_virt() 398 au1x_ddma_desc_t *dp; in au1xxx_dbdma_ring_alloc() local 436 dp = (au1x_ddma_desc_t *)desc_base; in au1xxx_dbdma_ring_alloc() 439 ctp->chan_desc_base = dp; in au1xxx_dbdma_ring_alloc() 564 dp->dscr_cmd0 = cmd0; in au1xxx_dbdma_ring_alloc() 565 dp->dscr_cmd1 = cmd1; in au1xxx_dbdma_ring_alloc() 566 dp->dscr_source0 = src0; in au1xxx_dbdma_ring_alloc() 567 dp->dscr_source1 = src1; in au1xxx_dbdma_ring_alloc() 568 dp->dscr_dest0 = dest0; in au1xxx_dbdma_ring_alloc() [all …]
|
/arch/powerpc/kernel/ |
D | proc_powerpc.c | 35 struct proc_dir_entry *dp = PDE(file->f_path.dentry->d_inode); in page_map_seek() local 45 new = dp->size + off; in page_map_seek() 50 if ( new < 0 || new > dp->size ) in page_map_seek() 58 struct proc_dir_entry *dp = PDE(file->f_path.dentry->d_inode); in page_map_read() local 59 return simple_read_from_buffer(buf, nbytes, ppos, dp->data, dp->size); in page_map_read() 64 struct proc_dir_entry *dp = PDE(file->f_path.dentry->d_inode); in page_map_mmap() local 66 if ((vma->vm_end - vma->vm_start) > dp->size) in page_map_mmap() 69 remap_pfn_range(vma, vma->vm_start, __pa(dp->data) >> PAGE_SHIFT, in page_map_mmap() 70 dp->size, vma->vm_page_prot); in page_map_mmap()
|
D | rtas_flash.c | 195 struct proc_dir_entry *dp = PDE(file->f_path.dentry->d_inode); in rtas_flash_release() local 198 uf = (struct rtas_update_flash_t *) dp->data; in rtas_flash_release() 218 atomic_dec(&dp->count); in rtas_flash_release() 257 struct proc_dir_entry *dp = PDE(file->f_path.dentry->d_inode); in rtas_flash_read() local 261 uf = dp->data; in rtas_flash_read() 263 if (!strcmp(dp->name, FIRMWARE_FLASH_NAME)) { in rtas_flash_read() 286 struct proc_dir_entry *dp = PDE(file->f_path.dentry->d_inode); in rtas_flash_write() local 292 uf = (struct rtas_update_flash_t *) dp->data; in rtas_flash_write() 339 struct proc_dir_entry *dp = PDE(inode); in rtas_excl_open() local 343 if (atomic_read(&dp->count) > 2) { in rtas_excl_open() [all …]
|
/arch/sparc/include/asm/ |
D | floppy_64.h | 533 static int __init ebus_fdthree_p(struct device_node *dp) in ebus_fdthree_p() argument 535 if (!strcmp(dp->name, "fdthree")) in ebus_fdthree_p() 537 if (!strcmp(dp->name, "floppy")) { in ebus_fdthree_p() 540 compat = of_get_property(dp, "compatible", NULL); in ebus_fdthree_p() 550 struct device_node *dp; in sun_floppy_init() local 561 for_each_node_by_name(dp, "SUNW,fdtwo") { in sun_floppy_init() 562 if (strcmp(dp->parent->name, "sbus")) in sun_floppy_init() 564 op = of_find_device_by_node(dp); in sun_floppy_init() 577 dp = NULL; in sun_floppy_init() 579 for (dp = ebus_dp->child; dp; dp = dp->sibling) { in sun_floppy_init() [all …]
|
D | prom.h | 47 extern int of_node_to_nid(struct device_node *dp); 63 extern void irq_trans_init(struct device_node *dp); 64 extern char *build_path_component(struct device_node *dp);
|
/arch/powerpc/platforms/pseries/ |
D | scanlog.c | 50 struct proc_dir_entry *dp; in scanlog_read() local 56 dp = PDE(inode); in scanlog_read() 57 data = (unsigned int *)dp->data; in scanlog_read() 142 struct proc_dir_entry *dp = PDE(inode); in scanlog_open() local 143 unsigned int *data = (unsigned int *)dp->data; in scanlog_open() 159 struct proc_dir_entry *dp = PDE(inode); in scanlog_release() local 160 unsigned int *data = (unsigned int *)dp->data; in scanlog_release()
|
/arch/mips/math-emu/ |
D | ieee754d.c | 55 #define DPSIGN(dp) (dp.parts.sign) argument 56 #define DPBEXP(dp) (dp.parts.bexp) argument 57 #define DPMANT(dp) (dp.parts.mant) argument
|
D | ieee754int.h | 53 #define DPSIGN(dp) (dp.parts.sign) argument 54 #define DPBEXP(dp) (dp.parts.bexp) argument 55 #define DPMANT(dp) (dp.parts.mant) argument
|