/linux-4.1.27/drivers/pci/hotplug/ |
D | rpadlpar_core.c | 46 struct device_node *dn = NULL; in find_vio_slot_node() local 53 while ((dn = of_get_next_child(parent, dn))) { in find_vio_slot_node() 54 rc = rpaphp_get_drc_props(dn, NULL, &name, NULL, NULL); in find_vio_slot_node() 59 return dn; in find_vio_slot_node() 83 struct device_node *dn; in find_dlpar_node() local 85 dn = find_php_slot_pci_node(drc_name, "SLOT"); in find_dlpar_node() 86 if (dn) { in find_dlpar_node() 88 return dn; in find_dlpar_node() 91 dn = find_php_slot_pci_node(drc_name, "PHB"); in find_dlpar_node() 92 if (dn) { in find_dlpar_node() [all …]
|
D | rpaphp_core.c | 170 static int get_children_props(struct device_node *dn, const int **drc_indexes, in get_children_props() argument 176 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); in get_children_props() 177 names = of_get_property(dn, "ibm,drc-names", NULL); in get_children_props() 178 types = of_get_property(dn, "ibm,drc-types", NULL); in get_children_props() 179 domains = of_get_property(dn, "ibm,drc-power-domains", NULL); in get_children_props() 203 int rpaphp_get_drc_props(struct device_node *dn, int *drc_index, in rpaphp_get_drc_props() argument 212 my_index = of_get_property(dn, "ibm,my-drc-index", NULL); in rpaphp_get_drc_props() 218 rc = get_children_props(dn->parent, &indexes, &names, &types, &domains); in rpaphp_get_drc_props() 273 static int is_php_dn(struct device_node *dn, const int **indexes, in is_php_dn() argument 279 rc = get_children_props(dn, indexes, names, &drc_types, power_domains); in is_php_dn() [all …]
|
D | rpaphp_slot.c | 50 struct slot *alloc_slot_struct(struct device_node *dn, in alloc_slot_struct() argument 68 slot->dn = dn; in alloc_slot_struct() 124 __func__, slot->dn->full_name, slot->index, slot->name, in rpaphp_register_slot() 133 if (slot->dn->child) in rpaphp_register_slot() 134 slotno = PCI_SLOT(PCI_DN(slot->dn->child)->devfn); in rpaphp_register_slot()
|
D | rpaphp.h | 77 struct device_node *dn; member 93 int rpaphp_add_slot(struct device_node *dn); 94 int rpaphp_get_drc_props(struct device_node *dn, int *drc_index, 99 struct slot *alloc_slot_struct(struct device_node *dn, int drc_index, char *drc_name, int power_dom…
|
D | rpaphp_pci.c | 96 bus = pcibios_find_pci_bus(slot->dn); in rpaphp_enable_slot() 98 err("%s: no pci_bus for dn %s\n", __func__, slot->dn->full_name); in rpaphp_enable_slot() 112 if (!slot->dn->child) { in rpaphp_enable_slot() 128 dbg("%s: pci_devs of slot[%s]\n", __func__, slot->dn->full_name); in rpaphp_enable_slot()
|
/linux-4.1.27/fs/notify/dnotify/ |
D | dnotify.c | 42 struct dnotify_struct *dn; member 56 struct dnotify_struct *dn; in dnotify_recalc_inode_mask() local 65 for (dn = dn_mark->dn; dn != NULL; dn = dn->dn_next) in dnotify_recalc_inode_mask() 66 new_mask |= (dn->dn_mask & ~FS_DN_MULTISHOT); in dnotify_recalc_inode_mask() 92 struct dnotify_struct *dn; in dnotify_handle_event() local 106 prev = &dn_mark->dn; in dnotify_handle_event() 107 while ((dn = *prev) != NULL) { in dnotify_handle_event() 108 if ((dn->dn_mask & test_mask) == 0) { in dnotify_handle_event() 109 prev = &dn->dn_next; in dnotify_handle_event() 112 fown = &dn->dn_filp->f_owner; in dnotify_handle_event() [all …]
|
/linux-4.1.27/arch/powerpc/platforms/pseries/ |
D | dlpar.c | 71 struct device_node *dn; in dlpar_parse_cc_node() local 80 dn = kzalloc(sizeof(*dn), GFP_KERNEL); in dlpar_parse_cc_node() 81 if (!dn) in dlpar_parse_cc_node() 85 dn->full_name = kasprintf(GFP_KERNEL, "%s/%s", path, name); in dlpar_parse_cc_node() 86 if (!dn->full_name) { in dlpar_parse_cc_node() 87 kfree(dn); in dlpar_parse_cc_node() 91 of_node_set_flag(dn, OF_DYNAMIC); in dlpar_parse_cc_node() 92 of_node_init(dn); in dlpar_parse_cc_node() 94 return dn; in dlpar_parse_cc_node() 97 static void dlpar_free_one_cc_node(struct device_node *dn) in dlpar_free_one_cc_node() argument [all …]
|
D | msi.c | 132 struct device_node *dn; in check_req() local 141 dn = pdn->node; in check_req() 143 p = of_get_property(dn, prop_name, NULL); in check_req() 145 pr_debug("rtas_msi: No %s on %s\n", prop_name, dn->full_name); in check_req() 176 struct device_node *dn; in find_pe_total_msi() local 179 dn = of_node_get(pci_device_to_OF_node(dev)); in find_pe_total_msi() 180 while (dn) { in find_pe_total_msi() 181 p = of_get_property(dn, "ibm,pe-total-#msi", NULL); in find_pe_total_msi() 184 dn->full_name); in find_pe_total_msi() 186 return dn; in find_pe_total_msi() [all …]
|
D | pci_dlpar.c | 39 struct device_node *dn) in find_bus_among_children() argument 46 if (busdn == dn) in find_bus_among_children() 50 child = find_bus_among_children(tmp, dn); in find_bus_among_children() 58 pcibios_find_pci_bus(struct device_node *dn) in pcibios_find_pci_bus() argument 60 struct pci_dn *pdn = dn->data; in pcibios_find_pci_bus() 65 return find_bus_among_children(pdn->phb->bus, dn); in pcibios_find_pci_bus() 69 struct pci_controller *init_phb_dynamic(struct device_node *dn) in init_phb_dynamic() argument 73 pr_debug("PCI: Initializing new hotplug PHB %s\n", dn->full_name); in init_phb_dynamic() 75 phb = pcibios_alloc_controller(dn); in init_phb_dynamic() 79 pci_process_bridge_OF_ranges(phb, dn, 0); in init_phb_dynamic() [all …]
|
D | mobility.c | 59 struct device_node *dn; in delete_dt_node() local 61 dn = of_find_node_by_phandle(be32_to_cpu(phandle)); in delete_dt_node() 62 if (!dn) in delete_dt_node() 65 dlpar_detach_node(dn); in delete_dt_node() 66 of_node_put(dn); in delete_dt_node() 70 static int update_dt_property(struct device_node *dn, struct property **prop, in update_dt_property() argument 123 of_update_property(dn, new_prop); in update_dt_property() 133 struct device_node *dn; in update_dt_node() local 150 dn = of_find_node_by_phandle(be32_to_cpu(phandle)); in update_dt_node() 151 if (!dn) { in update_dt_node() [all …]
|
D | iommu.c | 466 struct device_node *dn, in iommu_table_setparms() argument 473 node = phb->dn; in iommu_table_setparms() 479 "missing tce entries !\n", dn->full_name); in iommu_table_setparms() 532 struct device_node *dn, in iommu_table_setparms_lpar() argument 538 of_parse_dma_window(dn, dma_window, &tbl->it_index, &offset, &size); in iommu_table_setparms_lpar() 551 struct device_node *dn; in pci_dma_bus_setup_pSeries() local 558 dn = pci_bus_to_OF_node(bus); in pci_dma_bus_setup_pSeries() 560 pr_debug("pci_dma_bus_setup_pSeries: setting up bus %s\n", dn->full_name); in pci_dma_bus_setup_pSeries() 568 pci = PCI_DN(dn); in pci_dma_bus_setup_pSeries() 575 while (isa_dn && isa_dn != dn) in pci_dma_bus_setup_pSeries() [all …]
|
D | pci.c | 37 struct device_node *dn; 42 dn = pci_device_to_OF_node(dev); 43 if (dn) { 44 const char *loc_code = of_get_property(dn, "ibm,loc-code", 115 struct device_node *dn, *pdn; in pseries_root_bridge_prepare() local 122 dn = pcibios_get_phb_of_node(bus); in pseries_root_bridge_prepare() 123 if (!dn) in pseries_root_bridge_prepare() 126 for (pdn = dn; pdn != NULL; pdn = of_get_next_parent(pdn)) { in pseries_root_bridge_prepare()
|
D | pseries_energy.c | 40 struct device_node *dn = NULL; in cpu_to_drc_index() local 46 dn = of_find_node_by_path("/cpus"); in cpu_to_drc_index() 47 if (dn == NULL) in cpu_to_drc_index() 49 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); in cpu_to_drc_index() 64 of_node_put(dn); in cpu_to_drc_index() 73 struct device_node *dn = NULL; in drc_index_to_cpu() local 78 dn = of_find_node_by_path("/cpus"); in drc_index_to_cpu() 79 if (dn == NULL) in drc_index_to_cpu() 81 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); in drc_index_to_cpu() 98 of_node_put(dn); in drc_index_to_cpu()
|
D | rng.c | 33 struct device_node *dn; in rng_init() local 35 dn = of_find_compatible_node(NULL, NULL, "ibm,random"); in rng_init() 36 if (!dn) in rng_init()
|
D | hotplug-memory.c | 79 static struct property *dlpar_clone_drconf_property(struct device_node *dn) in dlpar_clone_drconf_property() argument 86 prop = of_find_property(dn, "ibm,dynamic-memory", NULL); in dlpar_clone_drconf_property() 540 static void dlpar_update_drconf_property(struct device_node *dn, in dlpar_update_drconf_property() argument 561 of_update_property(dn, prop); in dlpar_update_drconf_property() 567 struct device_node *dn; in dlpar_memory() local 577 dn = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory"); in dlpar_memory() 578 if (!dn) { in dlpar_memory() 583 prop = dlpar_clone_drconf_property(dn); in dlpar_memory() 615 dlpar_update_drconf_property(dn, prop); in dlpar_memory() 618 of_node_put(dn); in dlpar_memory() [all …]
|
D | hotplug-cpu.c | 350 err = pseries_add_processor(rd->dn); in pseries_smp_notifier() 353 pseries_remove_processor(rd->dn); in pseries_smp_notifier()
|
/linux-4.1.27/arch/powerpc/platforms/cell/ |
D | axon_msi.c | 81 void axon_msi_debug_setup(struct device_node *dn, struct axon_msic *msic); 83 static inline void axon_msi_debug_setup(struct device_node *dn, in axon_msi_debug_setup() argument 156 struct device_node *dn, *tmp; in find_msi_translator() local 160 dn = of_node_get(pci_device_to_OF_node(dev)); in find_msi_translator() 161 if (!dn) { in find_msi_translator() 166 for (; dn; dn = of_get_next_parent(dn)) { in find_msi_translator() 167 ph = of_get_property(dn, "msi-translator", NULL); in find_msi_translator() 178 tmp = dn; in find_msi_translator() 179 dn = of_find_node_by_phandle(*ph); in find_msi_translator() 181 if (!dn) { in find_msi_translator() [all …]
|
D | setup.c | 103 if (!of_device_is_compatible(hose->dn, "pciex")) in cell_fixup_pcie_rootcomplex() 107 s = of_get_property(hose->dn, "model", NULL); in cell_fixup_pcie_rootcomplex() 132 np = phb->dn; in cell_setup_phb() 192 struct device_node *dn; in mpic_init_IRQ() local 195 for (dn = NULL; in mpic_init_IRQ() 196 (dn = of_find_node_by_name(dn, "interrupt-controller"));) { in mpic_init_IRQ() 197 if (!of_device_is_compatible(dn, "CBEA,platform-open-pic")) in mpic_init_IRQ() 203 mpic = mpic_alloc(dn, 0, MPIC_SECONDARY | MPIC_NO_RESET, in mpic_init_IRQ()
|
D | interrupt.c | 316 struct device_node *dn; in setup_iic() local 322 for (dn = NULL; in setup_iic() 323 (dn = of_find_node_by_name(dn,"interrupt-controller")) != NULL;) { in setup_iic() 324 if (!of_device_is_compatible(dn, in setup_iic() 327 np = of_get_property(dn, "ibm,interrupt-server-ranges", NULL); in setup_iic() 330 of_node_put(dn); in setup_iic() 333 if (of_address_to_resource(dn, 0, &r0) || in setup_iic() 334 of_address_to_resource(dn, 1, &r1)) { in setup_iic() 336 of_node_put(dn); in setup_iic() 340 init_one_iic(np[0], r0.start, dn); in setup_iic() [all …]
|
D | spider-pic.c | 333 struct device_node *dn; in spider_init_IRQ() local 343 for (dn = NULL; in spider_init_IRQ() 344 (dn = of_find_node_by_name(dn, "interrupt-controller"));) { in spider_init_IRQ() 345 if (of_device_is_compatible(dn, "CBEA,platform-spider-pic")) { in spider_init_IRQ() 346 if (of_address_to_resource(dn, 0, &r)) { in spider_init_IRQ() 350 } else if (of_device_is_compatible(dn, "sti,platform-spider-pic") in spider_init_IRQ() 357 spider_init_one(dn, chip++, r.start); in spider_init_IRQ()
|
D | spu_manage.c | 423 struct device_node *dn; in of_has_vicinity() local 425 for_each_node_by_type(dn, "spe") { in of_has_vicinity() 426 if (of_find_property(dn, "vicinity", NULL)) { in of_has_vicinity() 427 of_node_put(dn); in of_has_vicinity() 434 static struct spu *devnode_spu(int cbe, struct device_node *dn) in devnode_spu() argument 439 if (spu_devnode(spu) == dn) in devnode_spu()
|
D | spider-pci.c | 129 struct device_node *np = bus->phb->dn; in spiderpci_iowa_init()
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | pci_dn.c | 45 struct device_node *dn; in pci_bus_to_pdn() local 64 dn = pci_bus_to_OF_node(pbus); in pci_bus_to_pdn() 65 pdn = dn ? PCI_DN(dn) : NULL; in pci_bus_to_pdn() 73 struct device_node *dn = NULL; in pci_get_pdn_by_devfn() local 83 dn = pci_device_to_OF_node(pdev); in pci_get_pdn_by_devfn() 89 pdn = dn ? PCI_DN(dn) : NULL; in pci_get_pdn_by_devfn() 109 struct device_node *dn; in pci_get_pdn() local 117 dn = pci_device_to_OF_node(pdev); in pci_get_pdn() 118 pdn = dn ? PCI_DN(dn) : NULL; in pci_get_pdn() 272 void *update_dn_pci_info(struct device_node *dn, void *data) in update_dn_pci_info() argument [all …]
|
D | rtas_pci.c | 48 static inline int config_access_valid(struct pci_dn *dn, int where) in config_access_valid() argument 52 if (where < 4096 && dn->pci_ext_config_space) in config_access_valid() 94 struct device_node *busdn, *dn; in rtas_pci_read_config() local 102 for (dn = busdn->child; dn; dn = dn->sibling) { in rtas_pci_read_config() 103 pdn = PCI_DN(dn); in rtas_pci_read_config() 105 && of_device_is_available(dn)) { in rtas_pci_read_config() 156 struct device_node *busdn, *dn; in rtas_pci_write_config() local 162 for (dn = busdn->child; dn; dn = dn->sibling) { in rtas_pci_write_config() 163 pdn = PCI_DN(dn); in rtas_pci_write_config() 165 && of_device_is_available(dn)) { in rtas_pci_write_config() [all …]
|
D | prom_parse.c | 10 void of_parse_dma_window(struct device_node *dn, const __be32 *dma_window, in of_parse_dma_window() argument 21 prop = of_get_property(dn, "ibm,#dma-address-cells", NULL); in of_parse_dma_window() 23 prop = of_get_property(dn, "#address-cells", NULL); in of_parse_dma_window() 25 cells = prop ? of_read_number(prop, 1) : of_n_addr_cells(dn); in of_parse_dma_window() 30 prop = of_get_property(dn, "ibm,#dma-size-cells", NULL); in of_parse_dma_window() 31 cells = prop ? of_read_number(prop, 1) : of_n_size_cells(dn); in of_parse_dma_window()
|
D | pci_32.c | 113 struct device_node *dn; in pcibios_make_OF_bus_map() local 129 struct device_node* node = hose->dn; in pcibios_make_OF_bus_map() 135 dn = of_find_node_by_path("/"); in pcibios_make_OF_bus_map() 136 map_prop = of_find_property(dn, "pci-OF-bus-map", NULL); in pcibios_make_OF_bus_map() 141 of_node_put(dn); in pcibios_make_OF_bus_map() 200 struct device_node *dn; in pci_create_OF_bus_map() local 203 dn = of_find_node_by_path("/"); in pci_create_OF_bus_map() 204 if (dn) { in pci_create_OF_bus_map() 209 of_add_property(dn, of_prop); in pci_create_OF_bus_map() 210 of_node_put(dn); in pci_create_OF_bus_map()
|
D | setup-common.c | 444 struct device_node *dn = NULL; in smp_setup_cpu_maps() local 450 while ((dn = of_find_node_by_type(dn, "cpu")) && cpu < nr_cpu_ids) { in smp_setup_cpu_maps() 455 DBG(" * %s...\n", dn->full_name); in smp_setup_cpu_maps() 457 intserv = of_get_property(dn, "ibm,ppc-interrupt-server#s", in smp_setup_cpu_maps() 464 intserv = of_get_property(dn, "reg", &len); in smp_setup_cpu_maps() 480 avail = of_device_is_available(dn); in smp_setup_cpu_maps() 482 avail = !of_property_match_string(dn, in smp_setup_cpu_maps() 504 (dn = of_find_node_by_path("/rtas"))) { in smp_setup_cpu_maps() 508 num_addr_cell = of_n_addr_cells(dn); in smp_setup_cpu_maps() 509 num_size_cell = of_n_size_cells(dn); in smp_setup_cpu_maps() [all …]
|
D | pci-hotplug.c | 77 struct device_node *dn = pci_bus_to_OF_node(bus); in pcibios_add_pci_devices() local 79 eeh_add_device_tree_early(PCI_DN(dn)); in pcibios_add_pci_devices() 89 of_rescan_bus(dn, bus); in pcibios_add_pci_devices() 98 slotno = PCI_SLOT(PCI_DN(dn->child)->devfn); in pcibios_add_pci_devices()
|
D | ibmebus.c | 152 struct device_node *dn = to_platform_device(dev)->dev.of_node; in ibmebus_match_path() local 153 return (dn->full_name && in ibmebus_match_path() 154 (strcasecmp((char *)data, dn->full_name) == 0)); in ibmebus_match_path() 162 static int ibmebus_create_device(struct device_node *dn) in ibmebus_create_device() argument 167 dev = of_device_alloc(dn, NULL, &ibmebus_bus_device); in ibmebus_create_device() 264 struct device_node *dn = NULL; in ibmebus_store_probe() local 280 if ((dn = of_find_node_by_path(path))) { in ibmebus_store_probe() 281 rc = ibmebus_create_device(dn); in ibmebus_store_probe() 282 of_node_put(dn); in ibmebus_store_probe()
|
D | pci_of_scan.c | 305 struct device_node *dn) in of_scan_pci_dev() argument 311 struct eeh_dev *edev = pdn_to_eeh_dev(PCI_DN(dn)); in of_scan_pci_dev() 314 pr_debug(" * %s\n", dn->full_name); in of_scan_pci_dev() 315 if (!of_device_is_available(dn)) in of_scan_pci_dev() 318 reg = of_get_property(dn, "reg", ®len); in of_scan_pci_dev() 337 dev = of_create_pci_dev(dn, bus, devfn); in of_scan_pci_dev()
|
D | setup_64.c | 140 struct device_node *dn; in check_smt_enabled() local 162 dn = of_find_node_by_path("/options"); in check_smt_enabled() 163 if (dn) { in check_smt_enabled() 164 smt_option = of_get_property(dn, "ibm,smt-enabled", in check_smt_enabled() 174 of_node_put(dn); in check_smt_enabled()
|
D | pci_64.c | 114 pr_debug("IO unmapping for PHB %s\n", hose->dn->full_name); in pcibios_unmap_io_space() 154 pr_debug("IO mapping for PHB %s\n", hose->dn->full_name); in pcibios_map_phb_io_space()
|
D | eeh_pe.c | 864 struct device_node *dn; in eeh_pe_loc_get() local 868 dn = pci_bus_to_OF_node(bus); in eeh_pe_loc_get() 869 if (!dn) { in eeh_pe_loc_get() 875 loc = of_get_property(dn, "ibm,io-base-loc-code", NULL); in eeh_pe_loc_get() 877 loc = of_get_property(dn, "ibm,slot-location-code", in eeh_pe_loc_get()
|
D | vio.c | 1548 struct device_node *dn; in modalias_show() local 1551 dn = dev->of_node; in modalias_show() 1552 if (!dn) { in modalias_show() 1556 cp = of_get_property(dn, "compatible", NULL); in modalias_show() 1590 struct device_node *dn; in vio_hotplug() local 1593 dn = dev->of_node; in vio_hotplug() 1594 if (!dn) in vio_hotplug() 1596 cp = of_get_property(dn, "compatible", NULL); in vio_hotplug()
|
D | pci-common.c | 78 phb->dn = dev; in pcibios_alloc_controller() 221 if (hose->dn == node) in pci_find_hose_for_OF_device() 1509 hose->dn->full_name, hose->global_number); in pcibios_setup_phb_resources() 1528 hose->dn->full_name, hose->global_number); in pcibios_setup_phb_resources() 1618 return of_node_get(hose->dn); in pcibios_get_phb_of_node() 1629 struct device_node *node = hose->dn; in pcibios_scan_phb()
|
D | isa-bridge.c | 145 if (parent == hose->dn) { in isa_bridge_find_early()
|
/linux-4.1.27/fs/f2fs/ |
D | data.c | 203 void set_data_blkaddr(struct dnode_of_data *dn) in set_data_blkaddr() argument 207 struct page *node_page = dn->node_page; in set_data_blkaddr() 208 unsigned int ofs_in_node = dn->ofs_in_node; in set_data_blkaddr() 216 addr_array[ofs_in_node] = cpu_to_le32(dn->data_blkaddr); in set_data_blkaddr() 220 int reserve_new_block(struct dnode_of_data *dn) in reserve_new_block() argument 222 struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); in reserve_new_block() 224 if (unlikely(is_inode_flag_set(F2FS_I(dn->inode), FI_NO_ALLOC))) in reserve_new_block() 226 if (unlikely(!inc_valid_block_count(sbi, dn->inode, 1))) in reserve_new_block() 229 trace_f2fs_reserve_new_block(dn->inode, dn->nid, dn->ofs_in_node); in reserve_new_block() 231 dn->data_blkaddr = NEW_ADDR; in reserve_new_block() [all …]
|
D | recovery.c | 248 block_t blkaddr, struct dnode_of_data *dn) in check_index_in_prev_nodes() argument 256 struct dnode_of_data tdn = *dn; in check_index_in_prev_nodes() 283 if (dn->inode->i_ino == nid) { in check_index_in_prev_nodes() 285 if (!dn->inode_page_locked) in check_index_in_prev_nodes() 286 lock_page(dn->inode_page); in check_index_in_prev_nodes() 287 tdn.node_page = dn->inode_page; in check_index_in_prev_nodes() 290 } else if (dn->nid == nid) { in check_index_in_prev_nodes() 304 if (ino != dn->inode->i_ino) { in check_index_in_prev_nodes() 310 inode = dn->inode; in check_index_in_prev_nodes() 320 if (ino == dn->inode->i_ino && dn->inode_page_locked) in check_index_in_prev_nodes() [all …]
|
D | inline.c | 94 int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page) in f2fs_convert_inline_page() argument 103 f2fs_bug_on(F2FS_I_SB(dn->inode), page->index); in f2fs_convert_inline_page() 105 if (!f2fs_exist_data(dn->inode)) in f2fs_convert_inline_page() 108 err = f2fs_reserve_block(dn, 0); in f2fs_convert_inline_page() 120 src_addr = inline_data_addr(dn->inode_page); in f2fs_convert_inline_page() 132 fio.blk_addr = dn->data_blkaddr; in f2fs_convert_inline_page() 133 write_data_page(page, dn, &fio); in f2fs_convert_inline_page() 134 set_data_blkaddr(dn); in f2fs_convert_inline_page() 135 f2fs_update_extent_cache(dn); in f2fs_convert_inline_page() 138 inode_dec_dirty_pages(dn->inode); in f2fs_convert_inline_page() [all …]
|
D | node.c | 480 int get_dnode_of_data(struct dnode_of_data *dn, pgoff_t index, int mode) in get_dnode_of_data() argument 482 struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); in get_dnode_of_data() 491 level = get_node_path(F2FS_I(dn->inode), index, offset, noffset); in get_dnode_of_data() 493 nids[0] = dn->inode->i_ino; in get_dnode_of_data() 494 npage[0] = dn->inode_page; in get_dnode_of_data() 503 if (f2fs_has_inline_data(dn->inode) && index) { in get_dnode_of_data() 512 dn->inode_page = npage[0]; in get_dnode_of_data() 513 dn->inode_page_locked = true; in get_dnode_of_data() 526 dn->nid = nids[i]; in get_dnode_of_data() 527 npage[i] = new_node_page(dn, noffset[i], NULL); in get_dnode_of_data() [all …]
|
D | file.c | 38 struct dnode_of_data dn; in f2fs_vm_page_mkwrite() local 49 set_new_dnode(&dn, inode, NULL, NULL, 0); in f2fs_vm_page_mkwrite() 50 err = f2fs_reserve_block(&dn, page->index); in f2fs_vm_page_mkwrite() 55 f2fs_put_dnode(&dn); in f2fs_vm_page_mkwrite() 317 struct dnode_of_data dn; in f2fs_seek_block() local 341 set_new_dnode(&dn, inode, NULL, NULL, 0); in f2fs_seek_block() 342 err = get_dnode_of_data(&dn, pgofs, LOOKUP_NODE_RA); in f2fs_seek_block() 356 end_offset = ADDRS_PER_PAGE(dn.node_page, F2FS_I(inode)); in f2fs_seek_block() 359 for (; dn.ofs_in_node < end_offset; in f2fs_seek_block() 360 dn.ofs_in_node++, pgofs++, in f2fs_seek_block() [all …]
|
D | f2fs.h | 443 static inline void set_new_dnode(struct dnode_of_data *dn, struct inode *inode, in set_new_dnode() argument 446 memset(dn, 0, sizeof(*dn)); in set_new_dnode() 447 dn->inode = inode; in set_new_dnode() 448 dn->inode_page = ipage; in set_new_dnode() 449 dn->node_page = npage; in set_new_dnode() 450 dn->nid = nid; in set_new_dnode() 1127 static inline void f2fs_put_dnode(struct dnode_of_data *dn) in f2fs_put_dnode() argument 1129 if (dn->node_page) in f2fs_put_dnode() 1130 f2fs_put_page(dn->node_page, 1); in f2fs_put_dnode() 1131 if (dn->inode_page && dn->node_page != dn->inode_page) in f2fs_put_dnode() [all …]
|
D | xattr.c | 381 struct dnode_of_data dn; in write_all_xattrs() local 382 set_new_dnode(&dn, inode, NULL, NULL, new_nid); in write_all_xattrs() 383 xpage = new_node_page(&dn, XATTR_NODE_OFFSET, ipage); in write_all_xattrs()
|
/linux-4.1.27/net/caif/ |
D | cfmuxl.c | 65 int cfmuxl_set_dnlayer(struct cflayer *layr, struct cflayer *dn, u8 phyid) in cfmuxl_set_dnlayer() argument 70 list_add_rcu(&dn->node, &muxl->frml_list); in cfmuxl_set_dnlayer() 107 struct cflayer *dn; in cfmuxl_remove_dnlayer() local 112 dn = get_from_id(&muxl->frml_list, phyid); in cfmuxl_remove_dnlayer() 113 if (dn == NULL) in cfmuxl_remove_dnlayer() 116 list_del_rcu(&dn->node); in cfmuxl_remove_dnlayer() 117 caif_assert(dn != NULL); in cfmuxl_remove_dnlayer() 120 return dn; in cfmuxl_remove_dnlayer() 139 struct cflayer *dn; in get_dn() local 141 dn = rcu_dereference(muxl->dn_cache[idx]); in get_dn() [all …]
|
D | cfsrvl.c | 100 caif_assert(layr->dn != NULL); in cfservl_modemcmd() 101 caif_assert(layr->dn->transmit != NULL); in cfservl_modemcmd() 126 return layr->dn->transmit(layr->dn, pkt); in cfservl_modemcmd() 147 return layr->dn->transmit(layr->dn, pkt); in cfservl_modemcmd() 202 if (adap_layer == NULL || adap_layer->dn == NULL) in caif_free_client() 204 servl = container_obj(adap_layer->dn); in caif_free_client() 215 if (WARN_ON(adapt_layer == NULL || adapt_layer->dn == NULL)) in caif_client_register_refcnt() 217 service = container_of(adapt_layer->dn, struct cfsrvl, layer); in caif_client_register_refcnt()
|
D | cffrml.c | 69 void cffrml_set_dnlayer(struct cflayer *this, struct cflayer *dn) in cffrml_set_dnlayer() argument 71 this->dn = dn; in cffrml_set_dnlayer() 161 if (layr->dn == NULL) { in cffrml_transmit() 166 return layr->dn->transmit(layr->dn, pkt); in cffrml_transmit()
|
D | cfveil.c | 83 caif_assert(layr->dn != NULL); in cfvei_transmit() 84 caif_assert(layr->dn->transmit != NULL); in cfvei_transmit() 97 return layr->dn->transmit(layr->dn, pkt); in cfvei_transmit()
|
D | cfctrl.c | 180 struct cflayer *dn = cfctrl->serv.layer.dn; in cfctrl_enum_req() local 182 if (!dn) { in cfctrl_enum_req() 196 dn->transmit(dn, pkt); in cfctrl_enum_req() 211 struct cflayer *dn = cfctrl->serv.layer.dn; in cfctrl_linkup_request() local 213 if (!dn) { in cfctrl_linkup_request() 290 dn->transmit(dn, pkt); in cfctrl_linkup_request() 310 struct cflayer *dn = cfctrl->serv.layer.dn; in cfctrl_linkdown_req() local 312 if (!dn) { in cfctrl_linkdown_req() 324 dn->transmit(dn, pkt); in cfctrl_linkdown_req()
|
D | cfutill.c | 85 caif_assert(layr->dn != NULL); in cfutill_transmit() 86 caif_assert(layr->dn->transmit != NULL); in cfutill_transmit() 103 return layr->dn->transmit(layr->dn, pkt); in cfutill_transmit()
|
D | cfdbgl.c | 54 return layr->dn->transmit(layr->dn, pkt); in cfdbgl_transmit()
|
D | cfvidl.c | 64 return layr->dn->transmit(layr->dn, pkt); in cfvidl_transmit()
|
D | cfrfml.c | 210 return rfml->serv.layer.dn->transmit(rfml->serv.layer.dn, pkt); in cfrfml_transmit_segment() 222 caif_assert(layr->dn != NULL); in cfrfml_transmit() 223 caif_assert(layr->dn->transmit != NULL); in cfrfml_transmit()
|
D | cfdgml.c | 113 return layr->dn->transmit(layr->dn, pkt); in cfdgml_transmit()
|
D | cfserl.c | 181 return layer->dn->transmit(layer->dn, newpkt); in cfserl_transmit()
|
D | caif_socket.c | 116 if (cf_sk->layer.dn && cf_sk->layer.dn->modemcmd) in caif_flow_ctrl() 117 cf_sk->layer.dn->modemcmd(cf_sk->layer.dn, mode); in caif_flow_ctrl() 512 if (cf_sk->layer.dn == NULL) { in transmit_skb() 517 return cf_sk->layer.dn->transmit(cf_sk->layer.dn, pkt); in transmit_skb()
|
D | caif_usb.c | 75 return layr->dn->transmit(layr->dn, pkt); in cfusbl_transmit()
|
/linux-4.1.27/arch/powerpc/platforms/powernv/ |
D | rng.c | 85 struct device_node *dn) in rng_init_per_cpu() argument 89 chip_id = of_get_ibm_chip_id(dn); in rng_init_per_cpu() 91 pr_warn("No ibm,chip-id found for %s.\n", dn->full_name); in rng_init_per_cpu() 101 static __init int rng_create(struct device_node *dn) in rng_create() argument 111 if (of_address_to_resource(dn, 0, &res)) { in rng_create() 118 rng->regs = of_iomap(dn, 0); in rng_create() 127 rng_init_per_cpu(rng, dn); in rng_create() 138 struct device_node *dn; in rng_init() local 141 for_each_compatible_node(dn, NULL, "ibm,power-rng") { in rng_init() 142 rc = rng_create(dn); in rng_init() [all …]
|
D | pci-p5ioc2.c | 60 const __be32 *prop = of_get_property(phb->hose->dn, in pnv_pci_init_p5ioc2_msis() 68 if (of_device_is_compatible(phb->hose->dn, "ibm,p5ioc2-pcix")) in pnv_pci_init_p5ioc2_msis() 72 if (msi_bitmap_alloc(&phb->msi_bmp, count, phb->hose->dn)) { in pnv_pci_init_p5ioc2_msis()
|
D | pci-ioda.c | 358 struct device_node *dn = hose->dn; in pnv_ioda_parse_m64_window() local 374 r = of_get_property(dn, "ibm,opal-m64-window", NULL); in pnv_ioda_parse_m64_window() 377 dn->full_name); in pnv_ioda_parse_m64_window() 382 res->start = of_translate_address(dn, r + 2); in pnv_ioda_parse_m64_window() 1825 swinvp = of_get_property(phb->hose->dn, "ibm,opal-tce-kill", NULL); in pnv_pci_ioda_setup_dma_pe() 1966 swinvp = of_get_property(phb->hose->dn, "ibm,opal-tce-kill", NULL); in pnv_pci_ioda2_setup_dma_pe() 2112 return of_node_get(hose->dn); in pnv_pci_get_phb_node() 2326 const __be32 *prop = of_get_property(phb->hose->dn, in pnv_pci_init_ioda_msis() 2330 prop = of_get_property(phb->hose->dn, "msi-ranges", NULL); in pnv_pci_init_ioda_msis() 2337 if (msi_bitmap_alloc(&phb->msi_bmp, count, phb->hose->dn)) { in pnv_pci_init_ioda_msis()
|
/linux-4.1.27/net/decnet/ |
D | dn_neigh.c | 113 struct dn_neigh *dn = (struct dn_neigh *)neigh; in dn_neigh_construct() local 141 dn_dn2eth(neigh->ha, dn->addr); in dn_neigh_construct() 161 dn->blksize = dev->mtu - 2; in dn_neigh_construct() 339 struct dn_neigh *dn = (struct dn_neigh *)neigh; in dn_to_neigh_output() local 352 if (dn->flags & DN_NDFLAG_P3) in dn_to_neigh_output() 383 struct dn_neigh *dn; in dn_neigh_router_hello() local 391 dn = (struct dn_neigh *)neigh; in dn_neigh_router_hello() 405 dn->blksize = le16_to_cpu(msg->blksize); in dn_neigh_router_hello() 406 dn->priority = msg->priority; in dn_neigh_router_hello() 408 dn->flags &= ~DN_NDFLAG_P3; in dn_neigh_router_hello() [all …]
|
D | dn_rules.c | 70 struct flowidn *fld = &flp->u.dn; in dn_fib_rule_action() 110 struct flowidn *fld = &fl->u.dn; in dn_fib_rule_match()
|
D | dn_dev.c | 857 struct dn_neigh *dn = (struct dn_neigh *)dn_db->router; in dn_send_endnode_hello() local 858 dn_dn2eth(msg->neighbor, dn->addr); in dn_send_endnode_hello() 877 static int dn_am_i_a_router(struct dn_neigh *dn, struct dn_dev *dn_db, struct dn_ifaddr *ifa) in dn_am_i_a_router() argument 888 if (dn->priority < dn_db->parms.priority) in dn_am_i_a_router() 892 if (dn->priority != dn_db->parms.priority) in dn_am_i_a_router() 895 if (le16_to_cpu(dn->addr) < le16_to_cpu(ifa->ifa_local)) in dn_am_i_a_router() 905 struct dn_neigh *dn = (struct dn_neigh *)dn_db->router; in dn_send_router_hello() local 963 if (dn_am_i_a_router(dn, dn_db, ifa)) { in dn_send_router_hello()
|
D | dn_route.c | 276 struct dn_dev *dn; in dn_dst_update_pmtu() local 278 dn = n ? rcu_dereference_raw(n->dev->dn_ptr) : NULL; in dn_dst_update_pmtu() 280 if (dn && dn->use_long == 0) in dn_dst_update_pmtu() 635 struct dn_dev *dn = rcu_dereference(dev->dn_ptr); in dn_route_rcv() local 641 if (dn == NULL) in dn_route_rcv() 703 if (dn->parms.state != DN_DEV_S_RU) in dn_route_rcv() 728 if (dn->parms.state != DN_DEV_S_RU) in dn_route_rcv()
|
/linux-4.1.27/fs/ceph/ |
D | inode.c | 978 static struct dentry *splice_dentry(struct dentry *dn, struct inode *in, in splice_dentry() argument 983 BUG_ON(d_inode(dn)); in splice_dentry() 986 if (!d_unhashed(dn)) in splice_dentry() 987 d_drop(dn); in splice_dentry() 988 realdn = d_splice_alias(in, dn); in splice_dentry() 991 PTR_ERR(realdn), dn, in, ceph_vinop(in)); in splice_dentry() 994 dn = realdn; /* note realdn contains the error */ in splice_dentry() 999 dn, d_count(dn), in splice_dentry() 1002 dput(dn); in splice_dentry() 1003 dn = realdn; in splice_dentry() [all …]
|
D | dir.c | 1291 void ceph_dentry_lru_add(struct dentry *dn) in ceph_dentry_lru_add() argument 1293 struct ceph_dentry_info *di = ceph_dentry(dn); in ceph_dentry_lru_add() 1296 dout("dentry_lru_add %p %p '%pd'\n", di, dn, dn); in ceph_dentry_lru_add() 1297 mdsc = ceph_sb_to_client(dn->d_sb)->mdsc; in ceph_dentry_lru_add() 1304 void ceph_dentry_lru_touch(struct dentry *dn) in ceph_dentry_lru_touch() argument 1306 struct ceph_dentry_info *di = ceph_dentry(dn); in ceph_dentry_lru_touch() 1309 dout("dentry_lru_touch %p %p '%pd' (offset %lld)\n", di, dn, dn, in ceph_dentry_lru_touch() 1311 mdsc = ceph_sb_to_client(dn->d_sb)->mdsc; in ceph_dentry_lru_touch() 1317 void ceph_dentry_lru_del(struct dentry *dn) in ceph_dentry_lru_del() argument 1319 struct ceph_dentry_info *di = ceph_dentry(dn); in ceph_dentry_lru_del() [all …]
|
D | file.c | 236 struct dentry *dn; in ceph_atomic_open() local 285 dn = ceph_finish_lookup(req, dentry, err); in ceph_atomic_open() 286 if (IS_ERR(dn)) in ceph_atomic_open() 287 err = PTR_ERR(dn); in ceph_atomic_open() 290 dn = NULL; in ceph_atomic_open() 294 if (dn || d_really_is_negative(dentry) || d_is_symlink(dentry)) { in ceph_atomic_open() 296 dout("atomic_open finish_no_open on dn %p\n", dn); in ceph_atomic_open() 297 err = finish_no_open(file, dn); in ceph_atomic_open() 299 dout("atomic_open finish_open on dn %p\n", dn); in ceph_atomic_open()
|
D | super.h | 866 extern int ceph_encode_dentry_release(void **p, struct dentry *dn, 908 extern void ceph_dentry_lru_add(struct dentry *dn); 909 extern void ceph_dentry_lru_touch(struct dentry *dn); 910 extern void ceph_dentry_lru_del(struct dentry *dn); 912 extern unsigned ceph_dentry_hash(struct inode *dir, struct dentry *dn);
|
/linux-4.1.27/drivers/irqchip/ |
D | irq-bcm7120-l2.c | 108 static int bcm7120_l2_intc_init_one(struct device_node *dn, in bcm7120_l2_intc_init_one() argument 115 parent_irq = irq_of_parse_and_map(dn, irq); in bcm7120_l2_intc_init_one() 140 static int __init bcm7120_l2_intc_iomap_7120(struct device_node *dn, in bcm7120_l2_intc_iomap_7120() argument 145 data->map_base[0] = of_iomap(dn, 0); in bcm7120_l2_intc_iomap_7120() 156 ret = of_property_read_u32_array(dn, "brcm,int-fwd-mask", in bcm7120_l2_intc_iomap_7120() 164 data->map_mask_prop = of_get_property(dn, "brcm,int-map-mask", &ret); in bcm7120_l2_intc_iomap_7120() 174 static int __init bcm7120_l2_intc_iomap_3380(struct device_node *dn, in bcm7120_l2_intc_iomap_3380() argument 181 void __iomem *en = of_iomap(dn, map_idx + 0); in bcm7120_l2_intc_iomap_3380() 182 void __iomem *stat = of_iomap(dn, map_idx + 1); in bcm7120_l2_intc_iomap_3380() 205 int __init bcm7120_l2_intc_probe(struct device_node *dn, in bcm7120_l2_intc_probe() argument [all …]
|
D | irq-bcm7038-l1.c | 220 static int __init bcm7038_l1_init_one(struct device_node *dn, in bcm7038_l1_init_one() argument 229 if (of_address_to_resource(dn, idx, &res)) in bcm7038_l1_init_one() 255 parent_irq = irq_of_parse_and_map(dn, idx); in bcm7038_l1_init_one() 286 int __init bcm7038_l1_of_init(struct device_node *dn, in bcm7038_l1_of_init() argument 298 ret = bcm7038_l1_init_one(dn, idx, intc); in bcm7038_l1_of_init() 307 intc->domain = irq_domain_add_linear(dn, IRQS_PER_WORD * intc->n_words, in bcm7038_l1_of_init()
|
/linux-4.1.27/drivers/usb/host/whci/ |
D | int.c | 70 struct dn_buf_entry *dn; in process_dn_buf() local 73 for (dn = whc->dn_buf; dn < whc->dn_buf + WHC_N_DN_ENTRIES; dn++) { in process_dn_buf() 74 if (dn->status & WHC_DN_STATUS_VALID) { in process_dn_buf() 75 wusbhc_handle_dn(wusbhc, dn->src_addr, in process_dn_buf() 76 (struct wusb_dn_hdr *)dn->dn_data, in process_dn_buf() 77 dn->msg_size); in process_dn_buf() 78 dn->status &= ~WHC_DN_STATUS_VALID; in process_dn_buf()
|
/linux-4.1.27/include/linux/ |
D | of.h | 79 struct device_node *dn; member 238 #define for_each_of_allnodes_from(from, dn) \ argument 239 for (dn = __of_find_all_nodes(from); dn; dn = __of_find_all_nodes(dn)) 240 #define for_each_of_allnodes(dn) for_each_of_allnodes_from(NULL, dn) argument 315 #define for_each_property_of_node(dn, pp) \ argument 316 for (pp = dn->properties; pp != NULL; pp = pp->next) 377 bool of_console_check(struct device_node *dn, char *name, int index); 620 static inline bool of_console_check(const struct device_node *dn, const char *name, int index) in of_console_check() argument 877 #define for_each_node_by_name(dn, name) \ argument 878 for (dn = of_find_node_by_name(NULL, name); dn; \ [all …]
|
D | arm-cci.h | 38 extern int cci_ace_get_port(struct device_node *dn); 40 extern int __cci_control_port_by_device(struct device_node *dn, bool enable); 43 static inline int cci_ace_get_port(struct device_node *dn) in cci_ace_get_port() argument 48 static inline int __cci_control_port_by_device(struct device_node *dn, in __cci_control_port_by_device() argument
|
D | of_iommu.h | 10 extern int of_get_dma_window(struct device_node *dn, const char *prefix, 20 static inline int of_get_dma_window(struct device_node *dn, const char *prefix, in of_get_dma_window() argument
|
/linux-4.1.27/arch/x86/kernel/ |
D | devicetree.c | 122 struct device_node *dn; in dtb_setup_hpet() local 126 dn = of_find_compatible_node(NULL, NULL, "intel,ce4100-hpet"); in dtb_setup_hpet() 127 if (!dn) in dtb_setup_hpet() 129 ret = of_address_to_resource(dn, 0, &r); in dtb_setup_hpet() 141 struct device_node *dn; in dtb_lapic_setup() local 145 dn = of_find_compatible_node(NULL, NULL, "intel,ce4100-lapic"); in dtb_lapic_setup() 146 if (!dn) in dtb_lapic_setup() 149 ret = of_address_to_resource(dn, 0, &r); in dtb_lapic_setup() 233 static void __init dtb_add_ioapic(struct device_node *dn) in dtb_add_ioapic() argument 240 .dev = dn, in dtb_add_ioapic() [all …]
|
/linux-4.1.27/drivers/cpufreq/ |
D | pasemi-cpufreq.c | 144 struct device_node *cpu, *dn; in pas_cpufreq_cpu_init() local 152 dn = of_find_compatible_node(NULL, NULL, "1682m-sdc"); in pas_cpufreq_cpu_init() 153 if (!dn) in pas_cpufreq_cpu_init() 154 dn = of_find_compatible_node(NULL, NULL, in pas_cpufreq_cpu_init() 156 if (!dn) in pas_cpufreq_cpu_init() 158 err = of_address_to_resource(dn, 0, &res); in pas_cpufreq_cpu_init() 159 of_node_put(dn); in pas_cpufreq_cpu_init() 168 dn = of_find_compatible_node(NULL, NULL, "1682m-gizmo"); in pas_cpufreq_cpu_init() 169 if (!dn) in pas_cpufreq_cpu_init() 170 dn = of_find_compatible_node(NULL, NULL, in pas_cpufreq_cpu_init() [all …]
|
/linux-4.1.27/arch/arm64/kernel/ |
D | cpu_ops.c | 55 int __init cpu_read_ops(struct device_node *dn, int cpu) in cpu_read_ops() argument 57 const char *enable_method = of_get_property(dn, "enable-method", NULL); in cpu_read_ops() 65 dn->full_name); in cpu_read_ops() 72 dn->full_name, enable_method); in cpu_read_ops() 81 struct device_node *dn = of_get_cpu_node(0, NULL); in cpu_read_bootcpu_ops() local 82 if (!dn) { in cpu_read_bootcpu_ops() 86 cpu_read_ops(dn, 0); in cpu_read_bootcpu_ops()
|
D | smp.c | 328 struct device_node *dn = NULL; in of_smp_init_cpus() local 332 while ((dn = of_find_node_by_type(dn, "cpu"))) { in of_smp_init_cpus() 341 cell = of_get_property(dn, "reg", NULL); in of_smp_init_cpus() 343 pr_err("%s: missing reg property\n", dn->full_name); in of_smp_init_cpus() 346 hwid = of_read_number(cell, of_n_addr_cells(dn)); in of_smp_init_cpus() 352 pr_err("%s: invalid reg property\n", dn->full_name); in of_smp_init_cpus() 366 dn->full_name); in of_smp_init_cpus() 380 dn->full_name); in of_smp_init_cpus() 398 if (cpu_read_ops(dn, cpu) != 0) in of_smp_init_cpus() 401 if (cpu_ops[cpu]->cpu_init(dn, cpu)) in of_smp_init_cpus()
|
D | smp_spin_table.c | 52 static int smp_spin_table_cpu_init(struct device_node *dn, unsigned int cpu) in smp_spin_table_cpu_init() argument 57 if (of_property_read_u64(dn, "cpu-release-addr", in smp_spin_table_cpu_init()
|
D | perf_event.c | 1325 struct device_node *dn; in armpmu_device_probe() local 1328 dn = of_parse_phandle(pdev->dev.of_node, "interrupt-affinity", in armpmu_device_probe() 1330 if (!dn) { in armpmu_device_probe() 1337 if (arch_find_n_match_cpu_physical_id(dn, cpu, NULL)) in armpmu_device_probe() 1340 of_node_put(dn); in armpmu_device_probe() 1343 dn->name); in armpmu_device_probe()
|
/linux-4.1.27/drivers/char/tpm/ |
D | tpm_atmel.h | 41 struct device_node *dn; in atmel_get_base_addr() local 48 dn = of_find_node_by_name(NULL, "tpm"); in atmel_get_base_addr() 50 if (!dn) in atmel_get_base_addr() 53 if (!of_device_is_compatible(dn, "AT97SC3201")) { in atmel_get_base_addr() 54 of_node_put(dn); in atmel_get_base_addr() 58 reg = of_get_property(dn, "reg", ®len); in atmel_get_base_addr() 59 naddrc = of_n_addr_cells(dn); in atmel_get_base_addr() 60 nsizec = of_n_size_cells(dn); in atmel_get_base_addr() 62 of_node_put(dn); in atmel_get_base_addr()
|
/linux-4.1.27/drivers/staging/board/ |
D | board.c | 10 struct device_node *dn = of_find_all_nodes(NULL); in find_by_address() local 13 while (dn) { in find_by_address() 14 if (!of_address_to_resource(dn, 0, &res)) { in find_by_address() 16 of_node_put(dn); in find_by_address() 20 dn = of_find_all_nodes(dn); in find_by_address()
|
/linux-4.1.27/arch/powerpc/sysdev/ |
D | scom.c | 101 struct device_node *dn; member 122 map = scom_map(ent->dn, reg, reg_cnt); in scom_debug_read() 159 map = scom_map(ent->dn, reg, reg_cnt); in scom_debug_write() 186 static int scom_debug_init_one(struct dentry *root, struct device_node *dn, in scom_debug_init_one() argument 196 ent->dn = of_node_get(dn); in scom_debug_init_one() 198 ent->path.data = (void*) dn->full_name; in scom_debug_init_one() 199 ent->path.size = strlen(dn->full_name); in scom_debug_init_one() 203 of_node_put(dn); in scom_debug_init_one() 216 struct device_node *dn; in scom_debug_init() local 225 for_each_node_with_property(dn, "scom-controller") { in scom_debug_init() [all …]
|
D | dart_iommu.c | 374 struct device_node *dn; in iommu_init_early_dart() local 377 dn = of_find_compatible_node(NULL, "dart", "u3-dart"); in iommu_init_early_dart() 378 if (dn == NULL) { in iommu_init_early_dart() 379 dn = of_find_compatible_node(NULL, "dart", "u4-dart"); in iommu_init_early_dart() 380 if (dn == NULL) in iommu_init_early_dart() 386 if (dart_init(dn) != 0) in iommu_init_early_dart()
|
D | ppc4xx_pci.c | 68 if (!of_device_is_compatible(hose->dn, "ibm,plb-pciex") && in fixup_ppc4xx_pci_bridge() 69 !of_device_is_compatible(hose->dn, "ibm,plb-pcix") && in fixup_ppc4xx_pci_bridge() 70 !of_device_is_compatible(hose->dn, "ibm,plb-pci")) in fixup_ppc4xx_pci_bridge() 73 if (of_device_is_compatible(hose->dn, "ibm,plb440epx-pci") || in fixup_ppc4xx_pci_bridge() 74 of_device_is_compatible(hose->dn, "ibm,plb440grx-pci")) { in fixup_ppc4xx_pci_bridge() 98 int pna = of_n_addr_cells(hose->dn); in ppc4xx_parse_dma_ranges() 108 ranges = of_get_property(hose->dn, "dma-ranges", &rlen); in ppc4xx_parse_dma_ranges() 116 u64 cpu_addr = of_translate_dma_address(hose->dn, ranges + 3); in ppc4xx_parse_dma_ranges() 132 hose->dn->full_name, in ppc4xx_parse_dma_ranges() 156 hose->dn->full_name); in ppc4xx_parse_dma_ranges() [all …]
|
D | mpic_timer.c | 432 struct device_node *dn; in timer_group_get_freq() local 434 dn = of_find_compatible_node(NULL, NULL, "fsl,mpic"); in timer_group_get_freq() 435 if (dn) { in timer_group_get_freq() 436 of_property_read_u32(dn, "clock-frequency", in timer_group_get_freq() 438 of_node_put(dn); in timer_group_get_freq()
|
D | mpic_u3msi.c | 100 if (of_device_is_compatible(hose->dn, "u4-pcie") || in find_u4_magic_addr() 101 of_device_is_compatible(hose->dn, "U4-pcie")) in find_u4_magic_addr()
|
D | fsl_pci.c | 192 const char *name = hose->dn->full_name; in setup_pci_atmu() 294 reg = of_get_property(hose->dn, "msi-address-64", &len); in setup_pci_atmu() 636 struct mpc83xx_pcie_priv *pcie = hose->dn->data; in mpc83xx_pcie_remap_cfg() 704 WARN_ON(hose->dn->data); in mpc83xx_pcie_setup() 705 hose->dn->data = pcie; in mpc83xx_pcie_setup() 820 struct mpc83xx_pcie_priv *pcie = hose->dn->data; in fsl_pci_immrbar_base() 1104 pme_irq = irq_of_parse_and_map(hose->dn, 0); in fsl_pci_pme_probe()
|
D | xilinx_pci.c | 50 if (!of_match_node(xilinx_pci_match, hose->dn)) in xilinx_pci_fixup_bridge()
|
D | fsl_msi.c | 157 reg = of_get_property(hose->dn, "msi-address-64", &len); in fsl_compose_msi_msg() 209 np = of_parse_phandle(hose->dn, "fsl,msi", 0); in fsl_setup_msi_irqs() 218 hose->dn->full_name, np->phandle); in fsl_setup_msi_irqs()
|
/linux-4.1.27/drivers/usb/host/ |
D | ehci-ppc-of.c | 78 ppc44x_enable_bmt(struct device_node *dn) in ppc44x_enable_bmt() argument 82 insreg_virt = of_iomap(dn, 1); in ppc44x_enable_bmt() 95 struct device_node *dn = op->dev.of_node; in ehci_hcd_ppc_of_probe() local 109 rv = of_address_to_resource(dn, 0, &res); in ehci_hcd_ppc_of_probe() 120 irq = irq_of_parse_and_map(dn, 0); in ehci_hcd_ppc_of_probe() 152 if (of_get_property(dn, "big-endian", NULL)) { in ehci_hcd_ppc_of_probe() 156 if (of_get_property(dn, "big-endian-regs", NULL)) in ehci_hcd_ppc_of_probe() 158 if (of_get_property(dn, "big-endian-desc", NULL)) in ehci_hcd_ppc_of_probe() 163 if (of_device_is_compatible(dn, "ibm,usb-ehci-440epx")) { in ehci_hcd_ppc_of_probe() 164 rv = ppc44x_enable_bmt(dn); in ehci_hcd_ppc_of_probe()
|
D | ohci-ppc-of.c | 88 struct device_node *dn = op->dev.of_node; in ohci_hcd_ppc_of_probe() local 102 of_device_is_compatible(dn, "ohci-bigendian") || in ohci_hcd_ppc_of_probe() 103 of_device_is_compatible(dn, "ohci-be"); in ohci_hcd_ppc_of_probe() 107 rv = of_address_to_resource(dn, 0, &res); in ohci_hcd_ppc_of_probe() 124 irq = irq_of_parse_and_map(dn, 0); in ohci_hcd_ppc_of_probe() 135 if (of_device_is_compatible(dn, "fsl,mpc5200-ohci")) in ohci_hcd_ppc_of_probe() 137 if (of_device_is_compatible(dn, "mpc5200-ohci")) in ohci_hcd_ppc_of_probe()
|
D | ehci-xilinx-of.c | 132 struct device_node *dn = op->dev.of_node; in ehci_hcd_xilinx_of_probe() local 145 rv = of_address_to_resource(dn, 0, &res); in ehci_hcd_xilinx_of_probe() 157 irq = irq_of_parse_and_map(dn, 0); in ehci_hcd_xilinx_of_probe() 181 value = (int *)of_get_property(dn, "xlnx,support-usb-fs", NULL); in ehci_hcd_xilinx_of_probe()
|
D | ehci-grlib.c | 87 struct device_node *dn = op->dev.of_node; in ehci_hcd_grlib_probe() local 100 rv = of_address_to_resource(dn, 0, &res); in ehci_hcd_grlib_probe() 114 irq = irq_of_parse_and_map(dn, 0); in ehci_hcd_grlib_probe()
|
D | uhci-grlib.c | 91 struct device_node *dn = op->dev.of_node; in uhci_hcd_grlib_probe() local 103 rv = of_address_to_resource(dn, 0, &res); in uhci_hcd_grlib_probe() 117 irq = irq_of_parse_and_map(dn, 0); in uhci_hcd_grlib_probe()
|
/linux-4.1.27/drivers/ide/ |
D | it8172.c | 65 drive_enables &= drive->dn ? 0xc006 : 0xc060; in it8172_set_pio_mode() 68 drive_enables |= 0x0004 << (drive->dn * 4); in it8172_set_pio_mode() 71 drive_enables |= 0x0002 << (drive->dn * 4); in it8172_set_pio_mode() 73 drive_timing &= drive->dn ? 0x00003f00 : 0x000fc000; in it8172_set_pio_mode() 74 drive_timing |= timings[pio] << (drive->dn * 6 + 8); in it8172_set_pio_mode() 83 int a_speed = 3 << (drive->dn * 4); in it8172_set_dma_mode() 84 int u_flag = 1 << drive->dn; in it8172_set_dma_mode() 94 u_speed = udma << (drive->dn * 4); in it8172_set_dma_mode()
|
D | atiixp.c | 55 int timing_shift = (drive->dn ^ 1) * 8; in atiixp_set_pio_mode() 63 pio_mode_data &= ~(0x07 << (drive->dn * 4)); in atiixp_set_pio_mode() 64 pio_mode_data |= (pio << (drive->dn * 4)); in atiixp_set_pio_mode() 89 int timing_shift = (drive->dn ^ 1) * 8; in atiixp_set_dma_mode() 101 tmp16 &= ~(0x07 << (drive->dn * 4)); in atiixp_set_dma_mode() 102 tmp16 |= ((speed & 0x07) << (drive->dn * 4)); in atiixp_set_dma_mode() 105 udma_ctl |= (1 << drive->dn); in atiixp_set_dma_mode() 115 udma_ctl &= ~(1 << drive->dn); in atiixp_set_dma_mode()
|
D | aec62xx.c | 97 pci_read_config_word(dev, 0x40|(2*drive->dn), &d_conf); in aec6210_set_mode() 100 pci_write_config_word(dev, 0x40|(2*drive->dn), d_conf); in aec6210_set_mode() 105 tmp1 = ((0x00 << (2*drive->dn)) | (ultra & ~(3 << (2*drive->dn)))); in aec6210_set_mode() 107 tmp2 = ((ultra_conf << (2*drive->dn)) | (tmp1 & ~(3 << (2*drive->dn)))); in aec6210_set_mode() 117 u8 unit = drive->dn & 1; in aec6260_set_mode() 125 pci_read_config_byte(dev, 0x40|drive->dn, &drive_conf); in aec6260_set_mode() 127 pci_write_config_byte(dev, 0x40|drive->dn, drive_conf); in aec6260_set_mode()
|
D | it8213.c | 29 int is_slave = drive->dn & 1; in it8213_set_pio_mode() 87 int a_speed = 3 << (drive->dn * 4); in it8213_set_dma_mode() 88 int u_flag = 1 << drive->dn; in it8213_set_dma_mode() 89 int v_flag = 0x01 << drive->dn; in it8213_set_dma_mode() 90 int w_flag = 0x10 << drive->dn; in it8213_set_dma_mode() 105 u_speed = min_t(u8, 2 - (udma & 1), udma) << (drive->dn * 4); in it8213_set_dma_mode()
|
D | amd74xx.c | 50 static void amd_set_speed(struct pci_dev *dev, u8 dn, u8 udma_mask, in amd_set_speed() argument 56 t = (t & ~(3 << ((3 - dn) << 1))) | ((clamp_val(timing->setup, 1, 4) - 1) << ((3 - dn) << 1)); in amd_set_speed() 59 pci_write_config_byte(dev, AMD_8BIT_TIMING + offset + (1 - (dn >> 1)), in amd_set_speed() 62 pci_write_config_byte(dev, AMD_DRIVE_TIMING + offset + (3 - dn), in amd_set_speed() 74 pci_write_config_byte(dev, AMD_UDMA_TIMING + offset + 3 - dn, t); in amd_set_speed() 104 amd_set_speed(dev, drive->dn, udma_mask, &t); in amd_set_drive()
|
D | serverworks.c | 117 pci_write_config_byte(dev, drive_pci[drive->dn], pio_modes[pio]); in svwks_set_pio_mode() 124 csb_pio &= ~(0x0f << (4 * drive->dn)); in svwks_set_pio_mode() 125 csb_pio |= (pio << (4 * drive->dn)); in svwks_set_pio_mode() 139 u8 unit = drive->dn & 1; in svwks_set_dma_mode() 147 ultra_enable &= ~(0x01 << drive->dn); in svwks_set_dma_mode() 152 ultra_enable |= (0x01 << drive->dn); in svwks_set_dma_mode() 156 pci_write_config_byte(dev, drive_pci2[drive->dn], dma_timing); in svwks_set_dma_mode()
|
D | via82cxxx.c | 125 static void via_set_speed(ide_hwif_t *hwif, u8 dn, struct ide_timing *timing) in via_set_speed() argument 134 t = (t & ~(3 << ((3 - dn) << 1))) | ((clamp_val(timing->setup, 1, 4) - 1) << ((3 - dn) << 1)); in via_set_speed() 138 pci_write_config_byte(dev, VIA_8BIT_TIMING + (1 - (dn >> 1)), in via_set_speed() 141 pci_write_config_byte(dev, VIA_DRIVE_TIMING + (3 - dn), in via_set_speed() 155 pci_read_config_byte(dev, VIA_UDMA_TIMING + 3 - dn, &udma_etc); in via_set_speed() 166 pci_write_config_byte(dev, VIA_UDMA_TIMING + 3 - dn, udma_etc); in via_set_speed() 206 via_set_speed(hwif, drive->dn, &t); in via_set_drive()
|
D | cs5520.c | 63 int controller = drive->dn > 1 ? 1 : 0; in cs5520_set_pio_mode() 75 pci_write_config_byte(pdev, 0x64 + 4*controller + (drive->dn&1), in cs5520_set_pio_mode() 79 pci_write_config_byte(pdev, 0x66 + 4*controller + (drive->dn&1), in cs5520_set_pio_mode()
|
D | slc90e66.c | 24 int is_slave = drive->dn & 1; in slc90e66_set_pio_mode() 79 int sitre = 0, a_speed = 7 << (drive->dn * 4); in slc90e66_set_dma_mode() 80 int u_speed = 0, u_flag = 1 << drive->dn; in slc90e66_set_dma_mode() 91 u_speed = (speed - XFER_UDMA_0) << (drive->dn * 4); in slc90e66_set_dma_mode()
|
D | piix.c | 71 int is_slave = drive->dn & 1; in piix_set_pio_mode() 141 int a_speed = 3 << (drive->dn * 4); in piix_set_dma_mode() 142 int u_flag = 1 << drive->dn; in piix_set_dma_mode() 143 int v_flag = 0x01 << drive->dn; in piix_set_dma_mode() 144 int w_flag = 0x10 << drive->dn; in piix_set_dma_mode() 161 u_speed = min_t(u8, 2 - (udma & 1), udma) << (drive->dn * 4); in piix_set_dma_mode()
|
D | it821x.c | 144 u8 unit = drive->dn & 1, conf; in it821x_program_udma() 175 u8 unit = drive->dn & 1, v; in it821x_clock_strategy() 244 u8 unit = drive->dn & 1, set_pio = pio; in it821x_set_pio_mode() 286 u8 unit = drive->dn & 1, channel = hwif->channel, conf; in it821x_tune_mwdma() 323 u8 unit = drive->dn & 1, channel = hwif->channel, conf; in it821x_tune_udma() 365 u8 unit = drive->dn & 1; in it821x_dma_start() 388 u8 unit = drive->dn & 1; in it821x_dma_end()
|
D | cy82c693.c | 93 if (drive->dn > 1) { /* drive is on the secondary channel */ in cy82c693_set_pio_mode() 111 if ((drive->dn & 1) == 0) { in cy82c693_set_pio_mode() 144 if (drive->dn > 1) in cy82c693_set_pio_mode()
|
D | sis5513.c | 194 return ((reg54 & 0x40000000) ? 0x70 : 0x40) + drive->dn * 4; in sis_ata133_get_base() 201 u8 drive_pci = 0x40 + drive->dn * 2; in sis_ata16_program_timings() 223 u8 t1, drive_pci = 0x40 + drive->dn * 2; in sis_ata100_program_timings() 284 rw_prefetch = reg4bh & ~(0x11 << drive->dn); in config_drive_art_rwp() 287 rw_prefetch |= 0x11 << drive->dn; in config_drive_art_rwp() 321 u8 drive_pci = 0x40 + drive->dn * 2, reg = 0, i = chipset_family; in sis_ata33_program_udma_timings()
|
D | tc86c001.c | 19 unsigned long scr_port = hwif->config_data + (drive->dn ? 0x02 : 0x00); in tc86c001_set_mode() 76 unsigned long twcr_port = sc_base + (drive->dn ? 0x06 : 0x04); in tc86c001_timer_expiry() 116 unsigned long twcr_port = sc_base + (drive->dn ? 0x06 : 0x04); in tc86c001_dma_start()
|
D | cs5536.c | 95 int dshift = (drive->dn & 1) ? IDE_D1_SHIFT : IDE_D0_SHIFT; in cs5536_program_dtc() 148 int cshift = (drive->dn & 1) ? IDE_CAST_D1_SHIFT : IDE_CAST_D0_SHIFT; in cs5536_set_pio_mode() 191 int dshift = (drive->dn & 1) ? IDE_D1_SHIFT : IDE_D0_SHIFT; in cs5536_set_dma_mode()
|
D | cmd64x.c | 88 pci_write_config_byte(dev, drwtim_regs[drive->dn], in cmd64x_program_timings() 120 (void) pci_read_config_byte (dev, arttim_regs[drive->dn], &arttim); in cmd64x_program_timings() 125 (void) pci_write_config_byte(dev, arttim_regs[drive->dn], arttim); in cmd64x_program_timings() 150 u8 unit = drive->dn & 0x01; in cmd64x_set_dma_mode()
|
D | sl82c105.c | 70 int reg = 0x44 + drive->dn * 4; in sl82c105_set_pio_mode() 189 int reg = 0x44 + drive->dn * 4; in sl82c105_dma_start() 208 int reg = 0x44 + drive->dn * 4; in sl82c105_dma_end()
|
D | ide-pm.c | 16 if ((drive->dn & 1) == 0 || pair == NULL) in generic_ide_suspend() 34 if ((drive->dn & 1) || pair == NULL) in generic_ide_suspend() 52 if ((drive->dn & 1) == 0 || pair == NULL) { in generic_ide_resume()
|
D | tx4939ide.c | 109 int is_slave = drive->dn; in tx4939ide_set_pio_mode() 138 if (drive->dn) { in tx4939ide_set_dma_mode() 204 u8 unit = drive->dn; in tx4939ide_dma_host_set() 307 tx4939ide_writew(SECTOR_SIZE / 2, base, drive->dn ? in tx4939ide_dma_setup() 426 u16 sysctl = hwif->select_data >> (drive->dn ? 16 : 0); in tx4939ide_tf_load_fixup()
|
D | cs5530.c | 59 outl(cs5530_pio_timings[format][pio], basereg + ((drive->dn & 1)<<3)); in cs5530_set_pio_mode() 119 if ((drive-> dn & 1) == 0) { /* are we configuring drive0? */ in cs5530_set_dma_mode()
|
D | sc1200.c | 91 pci_write_config_dword(pdev, basereg + ((drive->dn & 1) << 3), in sc1200_tunepio() 158 if ((drive->dn & 1) == 0) { in sc1200_set_dma_mode()
|
D | ns87415.c | 141 bit = 1 << (20 + (drive->dn & 1) + (hwif->channel << 1)); in ns87415_prepare_drive() 142 other = 1 << (20 + (1 - (drive->dn & 1)) + (hwif->channel << 1)); in ns87415_prepare_drive()
|
D | ide-acpi.c | 368 DEBPRINT("call get_GTF, drive=%s port=%d\n", drive->name, drive->dn); in ide_acpi_exec_tfs() 586 drive->name, hwif->channel, drive->dn & 1); in ide_acpi_port_init_devices() 590 drive->dn & 1); in ide_acpi_port_init_devices()
|
D | triflex.c | 42 u8 channel_offset = hwif->channel ? 0x74 : 0x70, unit = drive->dn & 1; in triflex_set_mode()
|
D | palm_bk3710.c | 193 int is_slave = drive->dn & 1; in palm_bk3710_set_dma_mode() 210 int is_slave = drive->dn & 1; in palm_bk3710_set_pio_mode()
|
D | opti621.c | 113 write_reg(drive->dn & 1, MISC_REG); in opti621_set_pio_mode()
|
D | siimage.c | 118 u8 unit = drive->dn & 1; in siimage_seldev() 257 u8 unit = drive->dn & 1; in sil_set_pio_mode() 307 u8 mode = 0, unit = drive->dn & 1; in sil_set_dma_mode()
|
D | pdc202xx_new.c | 135 u8 adj = (drive->dn & 1) ? 0x08 : 0x00; in pdcnew_set_dma_mode() 173 u8 adj = (drive->dn & 1) ? 0x08 : 0x00; in pdcnew_set_pio_mode()
|
D | alim15x3.c | 56 int shift = 4 * (drive->dn & 1); in ali_fifo_control() 70 u8 unit = drive->dn & 1, udma; in ali_program_timings()
|
D | cs5535.c | 79 u8 unit = drive->dn & 1; in cs5535_set_speed()
|
D | ide-probe.c | 406 if (drive->dn & 1) { in do_probe() 451 if (drive->dn & 1) { in do_probe() 653 if ((dev1->dn & 1) == 0 || (dev0->dev_flags & IDE_DFLAG_PRESENT) == 0) in ide_undecoded_slave() 939 unsigned int unit = drive->dn & 1; in ide_init_disk() 1029 drive->dn = i + hwif->channel * 2; in ide_port_init_devices()
|
D | pmac.c | 421 if (drive->dn & 1) in pmac_ide_apply_timings() 438 if (drive->dn & 1) { in pmac_ide_kauai_apply_timings() 509 timings = &pmif->timings[drive->dn & 1]; in pmac_ide_set_pio_mode() 783 u8 unit = drive->dn & 1; in pmac_ide_set_dma_mode() 1538 u8 unit = drive->dn & 1, ata4 = (pmif->kind == controller_kl_ata4); in pmac_ide_dma_setup()
|
D | ali14xx.c | 135 driveNum = (drive->hwif->index << 1) + (drive->dn & 1); in ali14xx_set_pio_mode()
|
/linux-4.1.27/drivers/ata/ |
D | pata_atiixp.c | 106 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_pio_timing() local 112 pio_mode_data &= ~(0x7 << (4 * dn)); in atiixp_set_pio_timing() 113 pio_mode_data |= pio << (4 * dn); in atiixp_set_pio_timing() 154 int dn = 2 * ap->port_no + adev->devno; in atiixp_set_dmamode() local 166 udma_mode_data &= ~(0x7 << (4 * dn)); in atiixp_set_dmamode() 167 udma_mode_data |= dma << (4 * dn); in atiixp_set_dmamode() 216 int dn = (2 * ap->port_no) + adev->devno; in atiixp_bmdma_start() local 221 tmp16 |= (1 << dn); in atiixp_bmdma_start() 223 tmp16 &= ~(1 << dn); in atiixp_bmdma_start() 243 int dn = (2 * ap->port_no) + qc->dev->devno; in atiixp_bmdma_stop() local [all …]
|
D | pata_hpt3x3.c | 41 int dn = 2 * ap->port_no + adev->devno; in hpt3x3_set_piomode() local 46 r1 &= ~(7 << (3 * dn)); in hpt3x3_set_piomode() 47 r1 |= (adev->pio_mode - XFER_PIO_0) << (3 * dn); in hpt3x3_set_piomode() 48 r2 &= ~(0x11 << dn); /* Clear MWDMA and UDMA bits */ in hpt3x3_set_piomode() 71 int dn = 2 * ap->port_no + adev->devno; in hpt3x3_set_dmamode() local 77 r1 &= ~(7 << (3 * dn)); in hpt3x3_set_dmamode() 78 r1 |= (mode_num << (3 * dn)); in hpt3x3_set_dmamode() 79 r2 &= ~(0x11 << dn); /* Clear MWDMA and UDMA bits */ in hpt3x3_set_dmamode() 82 r2 |= (0x01 << dn); /* Ultra mode */ in hpt3x3_set_dmamode() 84 r2 |= (0x10 << dn); /* MWDMA */ in hpt3x3_set_dmamode()
|
D | pata_of_platform.c | 28 struct device_node *dn = ofdev->dev.of_node; in pata_of_platform_probe() local 37 ret = of_address_to_resource(dn, 0, &io_res); in pata_of_platform_probe() 44 ret = of_address_to_resource(dn, 1, &ctl_res); in pata_of_platform_probe() 53 prop = of_get_property(dn, "reg-shift", NULL); in pata_of_platform_probe() 57 prop = of_get_property(dn, "pio-mode", NULL); in pata_of_platform_probe()
|
D | pata_artop.c | 101 int dn = adev->devno + 2 * ap->port_no; in artop6210_load_piomode() local 108 pci_write_config_word(pdev, 0x40 + 2 * dn, timing[clock][pio]); in artop6210_load_piomode() 128 int dn = adev->devno + 2 * ap->port_no; in artop6210_set_piomode() local 135 ultra &= ~(3 << (2 * dn)); in artop6210_set_piomode() 155 int dn = adev->devno + 2 * ap->port_no; in artop6260_load_piomode() local 162 pci_write_config_byte(pdev, 0x40 + dn, timing[clock][pio]); in artop6260_load_piomode() 207 int dn = adev->devno + 2 * ap->port_no; in artop6210_set_dmamode() local 219 ultra &= ~(3 << (2 * dn)); in artop6210_set_dmamode() 226 ultra |= (mode << (2 * dn)); in artop6210_set_dmamode()
|
D | pata_amd.c | 50 int dn = ap->port_no * 2 + adev->devno; in timing_setup() local 85 t = (t & ~(3 << ((3 - dn) << 1))) | ((clamp_val(at.setup, 1, 4) - 1) << ((3 - dn) << 1)); in timing_setup() 89 pci_write_config_byte(pdev, offset + 0x0E + (1 - (dn >> 1)), in timing_setup() 93 pci_write_config_byte(pdev, offset + 0x08 + (3 - dn), in timing_setup() 119 pci_write_config_byte(pdev, offset + 0x10 + (3 - dn), t); in timing_setup()
|
/linux-4.1.27/drivers/iommu/ |
D | of_iommu.c | 44 int of_get_dma_window(struct device_node *dn, const char *prefix, int index, in of_get_dma_window() argument 51 if (!dn || !addr || !size) in of_get_dma_window() 61 dma_window = of_get_property(dn, propname, &bytes); in of_get_dma_window() 74 prop = of_get_property(dn, addrname, NULL); in of_get_dma_window() 76 prop = of_get_property(dn, "#address-cells", NULL); in of_get_dma_window() 78 cells = prop ? be32_to_cpup(prop) : of_n_addr_cells(dn); in of_get_dma_window() 84 prop = of_get_property(dn, sizename, NULL); in of_get_dma_window() 85 cells = prop ? be32_to_cpup(prop) : of_n_size_cells(dn); in of_get_dma_window()
|
/linux-4.1.27/arch/mips/bmips/ |
D | irq.c | 25 struct device_node *dn; in arch_init_irq() local 28 dn = of_find_compatible_node(NULL, NULL, "brcm,bcm7038-l1-intc"); in arch_init_irq() 29 if (dn) in arch_init_irq() 30 of_node_put(dn); in arch_init_irq()
|
/linux-4.1.27/net/netfilter/ |
D | nf_conntrack_proto_dccp.c | 426 struct dccp_net *dn; in dccp_new() local 437 dn = dccp_pernet(net); in dccp_new() 438 if (dn->dccp_loose == 0) { in dccp_new() 719 struct dccp_net *dn = dccp_pernet(net); in dccp_timeout_nlattr_to_obj() local 725 timeouts[i] = dn->dccp_timeout[i]; in dccp_timeout_nlattr_to_obj() 820 struct dccp_net *dn) in dccp_kmemdup_sysctl_table() argument 832 pn->ctl_table[0].data = &dn->dccp_timeout[CT_DCCP_REQUEST]; in dccp_kmemdup_sysctl_table() 833 pn->ctl_table[1].data = &dn->dccp_timeout[CT_DCCP_RESPOND]; in dccp_kmemdup_sysctl_table() 834 pn->ctl_table[2].data = &dn->dccp_timeout[CT_DCCP_PARTOPEN]; in dccp_kmemdup_sysctl_table() 835 pn->ctl_table[3].data = &dn->dccp_timeout[CT_DCCP_OPEN]; in dccp_kmemdup_sysctl_table() [all …]
|
/linux-4.1.27/arch/arm/mach-tegra/ |
D | irq.c | 76 struct device_node *dn; in tegra114_gic_cpu_pm_registration() local 78 dn = of_find_matching_node(NULL, tegra114_dt_gic_match); in tegra114_gic_cpu_pm_registration() 79 if (!dn) in tegra114_gic_cpu_pm_registration() 82 tegra_gic_cpu_base = of_iomap(dn, 1); in tegra114_gic_cpu_pm_registration()
|
/linux-4.1.27/drivers/isdn/sc/ |
D | ioctl.c | 25 char *dn; in sc_ioctl() local 269 dn = kzalloc(SCIOC_DNSIZE, GFP_KERNEL); in sc_ioctl() 270 if (!dn) { in sc_ioctl() 274 strlcpy(dn, rcvmsg->msg_data.byte_array, SCIOC_DNSIZE); in sc_ioctl() 280 if (copy_to_user(data->dataptr, dn, SCIOC_DNSIZE)) { in sc_ioctl() 281 kfree(dn); in sc_ioctl() 284 kfree(dn); in sc_ioctl() 296 dn = memdup_user(data->dataptr, SCIOC_DNSIZE); in sc_ioctl() 297 if (IS_ERR(dn)) { in sc_ioctl() 299 return PTR_ERR(dn); in sc_ioctl() [all …]
|
D | interrupt.c | 124 sc_adapter[card]->channel[rcvmsg.phy_link_no - 1].dn, in interrupt_handler() 187 strlcpy(sc_adapter[card]->channel[rcvmsg.phy_link_no - 1].dn, in interrupt_handler()
|
D | scioc.h | 51 char dn[49]; member
|
D | card.h | 60 char dn[50]; member
|
/linux-4.1.27/arch/powerpc/platforms/powermac/ |
D | setup.c | 185 struct device_node *dn = of_find_node_by_name(NULL, "via-cuda"); in find_via_cuda() local 187 if (!dn) in find_via_cuda() 189 of_node_put(dn); in find_via_cuda() 199 struct device_node *dn = of_find_node_by_name(NULL, "via-pmu"); in find_via_pmu() local 201 if (!dn) in find_via_pmu() 203 of_node_put(dn); in find_via_pmu() 223 struct device_node *dn; in ohare_init() local 234 dn = of_find_node_by_name(NULL, "ohare"); in ohare_init() 235 if (dn) { in ohare_init() 236 of_node_put(dn); in ohare_init()
|
D | pci.c | 235 struct device_node *busdn, *dn; in u3_ht_skip_device() local 248 busdn = hose->dn; in u3_ht_skip_device() 249 for (dn = busdn->child; dn; dn = dn->sibling) in u3_ht_skip_device() 250 if (PCI_DN(dn) && PCI_DN(dn)->devfn == devfn) in u3_ht_skip_device() 252 if (dn == NULL) in u3_ht_skip_device() 260 if (k2_skiplist[i] == dn) in u3_ht_skip_device() 694 hose->mem_resources[cur].name = hose->dn->full_name; in parse_region_decode() 709 struct device_node *np = hose->dn; in setup_u3_ht() 926 struct device_node *np = u3_agp->dn; in pmac_pci_init()
|
D | smp.c | 274 struct device_node *dn; in smp_psurge_probe() local 290 dn = of_find_node_by_name(NULL, "hammerhead"); in smp_psurge_probe() 291 if (dn == NULL) in smp_psurge_probe() 293 of_node_put(dn); in smp_psurge_probe()
|
/linux-4.1.27/drivers/of/ |
D | of_pci_irq.c | 19 struct device_node *dn, *ppnode; in of_irq_parse_pci() local 28 dn = pci_device_to_OF_node(pdev); in of_irq_parse_pci() 29 if (dn) { in of_irq_parse_pci() 30 rc = of_irq_parse_one(dn, 0, out_irq); in of_irq_parse_pci()
|
D | overlay.c | 411 struct device_node *dn) in overlay_subtree_check() argument 416 if (tree == dn) in overlay_subtree_check() 420 if (overlay_subtree_check(child, dn)) in overlay_subtree_check() 428 static int overlay_is_topmost(struct of_overlay *ov, struct device_node *dn) in overlay_is_topmost() argument 440 if (overlay_subtree_check(ce->np, dn)) { in overlay_is_topmost() 443 dn->full_name); in overlay_is_topmost()
|
D | platform.c | 514 if (!of_node_check_flag(rd->dn->parent, OF_POPULATED_BUS)) in of_platform_notify() 518 if (of_node_check_flag(rd->dn, OF_POPULATED)) in of_platform_notify() 522 pdev_parent = of_find_device_by_node(rd->dn->parent); in of_platform_notify() 523 pdev = of_platform_device_create(rd->dn, NULL, in of_platform_notify() 529 __func__, rd->dn->full_name); in of_platform_notify() 538 if (!of_node_check_flag(rd->dn, OF_POPULATED)) in of_platform_notify() 542 pdev = of_find_device_by_node(rd->dn); in of_platform_notify()
|
D | of_mdio.c | 265 struct device_node *dn; in of_phy_is_fixed_link() local 270 dn = of_get_child_by_name(np, "fixed-link"); in of_phy_is_fixed_link() 271 if (dn) { in of_phy_is_fixed_link() 272 of_node_put(dn); in of_phy_is_fixed_link()
|
D | dynamic.c | 100 pr->dn->full_name); in of_reconfig_notify() 106 pr->dn->full_name, pr->prop->name); in of_reconfig_notify() 133 prop = of_find_property(pr->dn, "status", NULL); in of_reconfig_get_state_change() 211 pr.dn = np; in of_property_notify() 247 rd.dn = np; in of_attach_node() 300 rd.dn = np; in of_detach_node() 519 rd.dn = ce->np; in __of_changeset_entry_notify()
|
D | address.c | 844 struct device_node *dn = of_find_matching_node(from, matches); in of_find_matching_node_by_address() local 847 while (dn) { in of_find_matching_node_by_address() 848 if (!of_address_to_resource(dn, 0, &res) && in of_find_matching_node_by_address() 850 return dn; in of_find_matching_node_by_address() 852 dn = of_find_matching_node(dn, matches); in of_find_matching_node_by_address()
|
/linux-4.1.27/arch/arm/vfp/ |
D | vfpdouble.c | 851 vfp_double_multiply_accumulate(int dd, int dn, int dm, u32 fpscr, u32 negate, char *func) in vfp_double_multiply_accumulate() argument 856 vfp_double_unpack(&vdn, vfp_get_double(dn)); in vfp_double_multiply_accumulate() 886 static u32 vfp_double_fmac(int dd, int dn, int dm, u32 fpscr) in vfp_double_fmac() argument 888 return vfp_double_multiply_accumulate(dd, dn, dm, fpscr, 0, "fmac"); in vfp_double_fmac() 894 static u32 vfp_double_fnmac(int dd, int dn, int dm, u32 fpscr) in vfp_double_fnmac() argument 896 return vfp_double_multiply_accumulate(dd, dn, dm, fpscr, NEG_MULTIPLY, "fnmac"); in vfp_double_fnmac() 902 static u32 vfp_double_fmsc(int dd, int dn, int dm, u32 fpscr) in vfp_double_fmsc() argument 904 return vfp_double_multiply_accumulate(dd, dn, dm, fpscr, NEG_SUBTRACT, "fmsc"); in vfp_double_fmsc() 910 static u32 vfp_double_fnmsc(int dd, int dn, int dm, u32 fpscr) in vfp_double_fnmsc() argument 912 return vfp_double_multiply_accumulate(dd, dn, dm, fpscr, NEG_SUBTRACT | NEG_MULTIPLY, "fnmsc"); in vfp_double_fnmsc() [all …]
|
/linux-4.1.27/drivers/tty/serial/ |
D | nwpserial.c | 343 struct device_node *dn; in nwpserial_register_port() local 347 dn = port->dev->of_node; in nwpserial_register_port() 348 if (dn == NULL) in nwpserial_register_port() 352 dcr_base = dcr_resource_start(dn, 0); in nwpserial_register_port() 399 dcr_len = dcr_resource_len(dn, 0); in nwpserial_register_port() 401 up->dcr_host = dcr_map(dn, dcr_base, dcr_len); in nwpserial_register_port() 435 struct device_node *dn; in nwpserial_console_init() local 455 dn = of_find_node_by_path(name); in nwpserial_console_init() 456 if (!dn) in nwpserial_console_init() 464 dcr_base = dcr_resource_start(dn, 0); in nwpserial_console_init() [all …]
|
/linux-4.1.27/drivers/net/ethernet/broadcom/genet/ |
D | bcmmii.c | 328 struct device_node *dn = priv->pdev->dev.of_node; in bcmgenet_mii_probe() local 342 if (dn) { in bcmgenet_mii_probe() 351 if (!priv->phy_dn && of_phy_is_fixed_link(dn)) { in bcmgenet_mii_probe() 352 ret = of_phy_register_fixed_link(dn); in bcmgenet_mii_probe() 356 priv->phy_dn = of_node_get(dn); in bcmgenet_mii_probe() 439 struct device_node *dn = priv->pdev->dev.of_node; in bcmgenet_mii_of_init() local 449 mdio_dn = of_find_compatible_node(dn, NULL, compat); in bcmgenet_mii_of_init() 463 priv->phy_dn = of_parse_phandle(dn, "phy-handle", 0); in bcmgenet_mii_of_init() 466 priv->phy_interface = of_get_phy_mode(dn); in bcmgenet_mii_of_init() 548 struct device_node *dn = priv->pdev->dev.of_node; in bcmgenet_mii_bus_init() local [all …]
|
/linux-4.1.27/include/linux/usb/ |
D | wusb.h | 208 static inline int wusb_dn_connect_prev_dev_addr(const struct wusb_dn_connect *dn) in wusb_dn_connect_prev_dev_addr() argument 210 return le16_to_cpu(dn->attributes) & 0xff; in wusb_dn_connect_prev_dev_addr() 213 static inline int wusb_dn_connect_new_connection(const struct wusb_dn_connect *dn) in wusb_dn_connect_new_connection() argument 215 return (le16_to_cpu(dn->attributes) >> 8) & 0x1; in wusb_dn_connect_new_connection() 218 static inline int wusb_dn_connect_beacon_behavior(const struct wusb_dn_connect *dn) in wusb_dn_connect_beacon_behavior() argument 220 return (le16_to_cpu(dn->attributes) >> 9) & 0x03; in wusb_dn_connect_beacon_behavior()
|
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | shadowof.c | 48 struct device_node *dn; in of_init() local 50 if (!(dn = pci_device_to_OF_node(pdev))) in of_init() 54 if ((priv->data = of_get_property(dn, "NVDA,BMP", &priv->size))) in of_init()
|
/linux-4.1.27/arch/powerpc/platforms/pasemi/ |
D | dma_lib.c | 484 struct device_node *dn; in map_onedev() local 487 dn = pci_device_to_OF_node(p); in map_onedev() 488 if (!dn) in map_onedev() 491 ret = of_iomap(dn, index); in map_onedev() 517 struct device_node *dn; in pasemi_dma_init() local 571 dn = pci_device_to_OF_node(iob_pdev); in pasemi_dma_init() 572 if (dn) in pasemi_dma_init() 573 err = of_address_to_resource(dn, 1, &res); in pasemi_dma_init() 574 if (!dn || err) { in pasemi_dma_init()
|
/linux-4.1.27/drivers/hwtracing/coresight/ |
D | of_coresight.c | 112 struct device_node *dn; in of_get_coresight_platform_data() local 181 dn = of_parse_phandle(node, "cpu", 0); in of_get_coresight_platform_data() 182 for (cpu = 0; dn && cpu < nr_cpu_ids; cpu++) { in of_get_coresight_platform_data() 183 if (dn == of_get_cpu_node(cpu, NULL)) { in of_get_coresight_platform_data()
|
/linux-4.1.27/arch/arm/kernel/ |
D | cpuidle.c | 97 static int __init arm_cpuidle_read_ops(struct device_node *dn, int cpu) in arm_cpuidle_read_ops() argument 102 enable_method = of_get_property(dn, "enable-method", NULL); in arm_cpuidle_read_ops() 109 dn->full_name, enable_method); in arm_cpuidle_read_ops()
|
D | perf_event_cpu.c | 319 struct device_node *dn; in of_pmu_irq_cfg() local 322 dn = of_parse_phandle(pdev->dev.of_node, "interrupt-affinity", in of_pmu_irq_cfg() 324 if (!dn) { in of_pmu_irq_cfg() 331 if (arch_find_n_match_cpu_physical_id(dn, cpu, NULL)) in of_pmu_irq_cfg() 334 of_node_put(dn); in of_pmu_irq_cfg() 337 dn->name); in of_pmu_irq_cfg()
|
/linux-4.1.27/fs/ubifs/ |
D | file.c | 58 struct ubifs_data_node *dn) in read_block() argument 66 err = ubifs_tnc_lookup(c, &key, dn); in read_block() 74 ubifs_assert(le64_to_cpu(dn->ch.sqnum) > in read_block() 76 len = le32_to_cpu(dn->size); in read_block() 80 dlen = le32_to_cpu(dn->ch.len) - UBIFS_DATA_NODE_SZ; in read_block() 82 err = ubifs_decompress(c, &dn->data, dlen, addr, &out_len, in read_block() 83 le16_to_cpu(dn->compr_type)); in read_block() 100 ubifs_dump_node(c, dn); in read_block() 109 struct ubifs_data_node *dn; in do_readpage() local 129 dn = kmalloc(UBIFS_MAX_DATA_NODE_SZ, GFP_NOFS); in do_readpage() [all …]
|
D | journal.c | 1104 struct ubifs_data_node *dn, int *new_len) in recomp_data_node() argument 1109 out_len = le32_to_cpu(dn->size); in recomp_data_node() 1114 len = le32_to_cpu(dn->ch.len) - UBIFS_DATA_NODE_SZ; in recomp_data_node() 1115 compr_type = le16_to_cpu(dn->compr_type); in recomp_data_node() 1116 err = ubifs_decompress(c, &dn->data, len, buf, &out_len, compr_type); in recomp_data_node() 1120 ubifs_compress(c, buf, *new_len, &dn->data, &out_len, &compr_type); in recomp_data_node() 1122 dn->compr_type = cpu_to_le16(compr_type); in recomp_data_node() 1123 dn->size = cpu_to_le32(*new_len); in recomp_data_node() 1151 struct ubifs_data_node *uninitialized_var(dn); in ubifs_jnl_truncate() 1179 dn = (void *)trun + UBIFS_TRUN_NODE_SZ; in ubifs_jnl_truncate() [all …]
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | pci-bridge.h | 44 struct device_node *dn; member 214 #define PCI_DN(dn) ((struct pci_dn *) (dn)->data) argument 221 extern void *update_dn_pci_info(struct device_node *dn, void *data); 243 extern struct pci_bus *pcibios_find_pci_bus(struct device_node *dn);
|
D | prom.h | 75 void of_parse_dma_window(struct device_node *dn, const __be32 *dma_window,
|
D | pci.h | 153 extern struct pci_controller *init_phb_dynamic(struct device_node *dn);
|
/linux-4.1.27/drivers/gpio/ |
D | gpio-tb10x.c | 188 struct device_node *dn = pdev->dev.of_node; in tb10x_gpio_probe() local 192 if (!dn) in tb10x_gpio_probe() 195 if (of_property_read_u32(dn, "abilis,ngpio", &ngpio)) in tb10x_gpio_probe() 209 tb10x_gpio->gc.label = of_node_full_name(dn); in tb10x_gpio_probe() 231 if (of_find_property(dn, "interrupt-controller", NULL)) { in tb10x_gpio_probe() 249 tb10x_gpio->domain = irq_domain_add_linear(dn, in tb10x_gpio_probe()
|
D | gpio-davinci.c | 146 struct device_node *dn = pdev->dev.of_node; in davinci_gpio_get_pdata() local 158 ret = of_property_read_u32(dn, "ti,ngpio", &val); in davinci_gpio_get_pdata() 164 ret = of_property_read_u32(dn, "ti,davinci-gpio-unbanked", &val); in davinci_gpio_get_pdata()
|
/linux-4.1.27/drivers/mtd/nand/ |
D | mpc5121_nfc.c | 286 struct device_node *dn; in ads5121_chipselect_init() local 288 dn = of_find_compatible_node(NULL, NULL, "fsl,mpc5121ads-cpld"); in ads5121_chipselect_init() 289 if (dn) { in ads5121_chipselect_init() 290 prv->csreg = of_iomap(dn, 0); in ads5121_chipselect_init() 291 of_node_put(dn); in ads5121_chipselect_init() 630 struct device_node *rootnode, *dn = op->dev.of_node; in mpc5121_nfc_probe() local 672 prv->irq = irq_of_parse_and_map(dn, 0); in mpc5121_nfc_probe() 678 retval = of_address_to_resource(dn, 0, &res); in mpc5121_nfc_probe() 684 chips_no = of_get_property(dn, "chips", &len); in mpc5121_nfc_probe() 705 ppdata.of_node = dn; in mpc5121_nfc_probe()
|
/linux-4.1.27/arch/arm/mach-cns3xxx/ |
D | core.c | 352 struct device_node *dn; in cns3xxx_init() local 356 dn = of_find_compatible_node(NULL, NULL, "cavium,cns3420-ahci"); in cns3xxx_init() 357 if (of_device_is_available(dn)) { in cns3xxx_init() 376 dn = of_find_compatible_node(NULL, NULL, "cavium,cns3420-sdhci"); in cns3xxx_init() 377 if (of_device_is_available(dn)) { in cns3xxx_init()
|
/linux-4.1.27/drivers/bus/ |
D | brcmstb_gisb.c | 270 struct device_node *dn = pdev->dev.of_node; in brcmstb_gisb_arb_probe() local 293 of_id = of_match_node(brcmstb_gisb_arb_of_match, dn); in brcmstb_gisb_arb_probe() 313 if (of_property_read_u32(dn, "brcm,gisb-arb-master-mask", in brcmstb_gisb_arb_probe() 320 num_masters = of_property_count_strings(dn, in brcmstb_gisb_arb_probe() 330 of_property_read_string_index(dn, in brcmstb_gisb_arb_probe()
|
D | arm-cci.c | 1063 struct device_node *dn; member 1114 static int __cci_ace_get_port(struct device_node *dn, int type) in __cci_ace_get_port() argument 1120 cci_portn = of_parse_phandle(dn, "cci-control-port", 0); in __cci_ace_get_port() 1123 if (ace_match && cci_portn == ports[i].dn) in __cci_ace_get_port() 1129 int cci_ace_get_port(struct device_node *dn) in cci_ace_get_port() argument 1131 return __cci_ace_get_port(dn, ACE_LITE_PORT); in cci_ace_get_port() 1343 int notrace __cci_control_port_by_device(struct device_node *dn, bool enable) in __cci_control_port_by_device() argument 1347 if (!dn) in __cci_control_port_by_device() 1350 port = __cci_ace_get_port(dn, ACE_LITE_PORT); in __cci_control_port_by_device() 1352 dn->full_name)) in __cci_control_port_by_device() [all …]
|
/linux-4.1.27/include/net/caif/ |
D | caif_layer.h | 150 struct cflayer *dn; member 247 #define layer_set_dn(layr, below) ((layr)->dn = (struct cflayer *)(below))
|
D | cffrml.h | 16 void cffrml_set_dnlayer(struct cflayer *this, struct cflayer *dn);
|
/linux-4.1.27/drivers/clk/mvebu/ |
D | clk-cpu.c | 173 struct device_node *dn; in of_cpu_clk_setup() local 185 for_each_node_by_type(dn, "cpu") in of_cpu_clk_setup() 196 for_each_node_by_type(dn, "cpu") { in of_cpu_clk_setup() 206 err = of_property_read_u32(dn, "reg", &cpu); in of_cpu_clk_setup()
|
/linux-4.1.27/drivers/amba/ |
D | tegra-ahb.c | 149 struct device_node *dn = data; in tegra_ahb_match_by_smmu() local 151 return (ahb->dev->of_node == dn) ? 1 : 0; in tegra_ahb_match_by_smmu() 154 int tegra_ahb_enable_smmu(struct device_node *dn) in tegra_ahb_enable_smmu() argument 160 dev = driver_find_device(&tegra_ahb_driver.driver, NULL, dn, in tegra_ahb_enable_smmu()
|
/linux-4.1.27/drivers/gpu/drm/exynos/ |
D | exynos_drm_dpi.c | 265 struct device_node *dn = dev->of_node; in exynos_dpi_parse_dt() local 270 np = of_get_child_by_name(dn, "display-timings"); in exynos_dpi_parse_dt() 281 ret = of_get_videomode(dn, vm, 0); in exynos_dpi_parse_dt()
|
/linux-4.1.27/Documentation/networking/caif/ |
D | Linux-CAIF.txt | 149 layer->up , layer->dn 153 layer->dn->transmit(layer->dn, packet); 164 receive of packets is handled as by the rest of the layers: the 'dn->transmit()'
|
/linux-4.1.27/arch/arm64/include/asm/ |
D | cpu_ops.h | 67 int __init cpu_read_ops(struct device_node *dn, int cpu);
|
/linux-4.1.27/drivers/usb/musb/ |
D | musb_dsps.c | 654 static int get_int_prop(struct device_node *dn, const char *s) in get_int_prop() argument 659 ret = of_property_read_u32(dn, s, &val); in get_int_prop() 693 struct device_node *dn = parent->dev.of_node; in dsps_create_musb_pdev() local 739 config->num_eps = get_int_prop(dn, "mentor,num-eps"); in dsps_create_musb_pdev() 740 config->ram_bits = get_int_prop(dn, "mentor,ram-bits"); in dsps_create_musb_pdev() 744 pdata.power = get_int_prop(dn, "mentor,power") / 2; in dsps_create_musb_pdev() 746 ret = of_property_read_u32(dn, "mentor,multipoint", &val); in dsps_create_musb_pdev()
|
/linux-4.1.27/drivers/media/rc/ |
D | sunxi-cir.c | 148 struct device_node *dn = dev->of_node; in sunxi_ir_probe() local 158 if (of_device_is_compatible(dn, "allwinner,sun5i-a13-ir")) in sunxi_ir_probe() 229 ir->map_name = of_get_property(dn, "linux,rc-map-name", NULL); in sunxi_ir_probe()
|
/linux-4.1.27/drivers/clocksource/ |
D | arm_arch_timer.c | 671 struct device_node *dn; in arch_timer_needs_probing() local 674 dn = of_find_matching_node(NULL, matches); in arch_timer_needs_probing() 675 if (dn && of_device_is_available(dn) && !(arch_timers_present & type)) in arch_timer_needs_probing() 677 of_node_put(dn); in arch_timer_needs_probing()
|
/linux-4.1.27/drivers/dma/ |
D | sirf-dma.c | 645 struct device_node *dn = op->dev.of_node; in sirfsoc_dma_probe() local 661 if (of_device_is_compatible(dn, "sirf,marco-dmac")) in sirfsoc_dma_probe() 664 if (of_property_read_u32(dn, "cell-index", &id)) { in sirfsoc_dma_probe() 669 sdma->irq = irq_of_parse_and_map(dn, 0); in sirfsoc_dma_probe() 681 ret = of_address_to_resource(dn, 0, &res); in sirfsoc_dma_probe() 753 ret = of_dma_controller_register(dn, of_dma_sirfsoc_xlate, sdma); in sirfsoc_dma_probe()
|
D | mpc512x_dma.c | 866 struct device_node *dn = op->dev.of_node; in mpc_dma_probe() local 883 mdma->irq = irq_of_parse_and_map(dn, 0); in mpc_dma_probe() 890 if (of_device_is_compatible(dn, "fsl,mpc8308-dma")) { in mpc_dma_probe() 892 mdma->irq2 = irq_of_parse_and_map(dn, 1); in mpc_dma_probe() 900 retval = of_address_to_resource(dn, 0, &res); in mpc_dma_probe()
|
/linux-4.1.27/arch/powerpc/platforms/82xx/ |
D | pq2.c | 61 hose->dn = np; in pq2_pci_add_bridge()
|
/linux-4.1.27/drivers/net/dsa/ |
D | bcm_sf2.c | 621 struct device_node *dn; in bcm_sf2_sw_setup() local 634 dn = ds->pd->of_node->parent; in bcm_sf2_sw_setup() 636 priv->irq0 = irq_of_parse_and_map(dn, 0); in bcm_sf2_sw_setup() 637 priv->irq1 = irq_of_parse_and_map(dn, 1); in bcm_sf2_sw_setup() 641 *base = of_iomap(dn, i); in bcm_sf2_sw_setup() 686 if (of_property_read_u32(dn, "brcm,num-gphy", in bcm_sf2_sw_setup()
|
/linux-4.1.27/include/net/ |
D | flow.h | 158 struct flowidn dn; member 182 return container_of(fldn, struct flowi, u.dn); in flowidn_to_flowi()
|
/linux-4.1.27/arch/powerpc/platforms/86xx/ |
D | mpc86xx_hpcn.c | 53 if (hose->dn == fsl_pci_primary) in mpc86xx_exclude_device()
|
/linux-4.1.27/drivers/isdn/mISDN/ |
D | socket.c | 689 struct mISDN_devrename dn; in base_sock_ioctl() local 690 if (copy_from_user(&dn, (void __user *)arg, in base_sock_ioctl() 691 sizeof(dn))) { in base_sock_ioctl() 695 dev = get_mdevice(dn.id); in base_sock_ioctl() 697 err = device_rename(&dev->dev, dn.name); in base_sock_ioctl()
|
/linux-4.1.27/arch/microblaze/include/asm/ |
D | pci-bridge.h | 32 struct device_node *dn; member
|
D | pci.h | 105 extern struct pci_controller *init_phb_dynamic(struct device_node *dn);
|
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/ |
D | inode.c | 658 struct device_node *dn; in spufs_init_isolated_loader() local 662 dn = of_find_node_by_path("/spu-isolation"); in spufs_init_isolated_loader() 663 if (!dn) in spufs_init_isolated_loader() 666 loader = of_get_property(dn, "loader", &size); in spufs_init_isolated_loader()
|
/linux-4.1.27/arch/microblaze/pci/ |
D | xilinx_pci.c | 50 if (!of_match_node(xilinx_pci_match, hose->dn)) in xilinx_pci_fixup_bridge()
|
D | pci-common.c | 64 phb->dn = dev; in pcibios_alloc_controller() 149 if (hose->dn == node) in pci_find_hose_for_OF_device() 1292 hose->dn->full_name, hose->global_number); in pcibios_setup_phb_resources() 1314 hose->dn->full_name, hose->global_number); in pcibios_setup_phb_resources() 1340 return of_node_get(hose->dn); in pcibios_get_phb_of_node() 1347 struct device_node *node = hose->dn; in pcibios_scan_phb()
|
/linux-4.1.27/Documentation/powerpc/ |
D | mpc52xx.txt | 28 DBug> dn -i zImage.initrd.lite5200
|
/linux-4.1.27/drivers/net/wireless/rtlwifi/btcoexist/ |
D | halbtc8821a1ant.c | 1311 static long up, dn, m, n, wait_count; in btc8821a1ant_tdma_dur_adj() local 1334 dn = 0; in btc8821a1ant_tdma_dur_adj() 1352 dn = 0; in btc8821a1ant_tdma_dur_adj() 1367 dn--; in btc8821a1ant_tdma_dur_adj() 1369 if (dn <= 0) in btc8821a1ant_tdma_dur_adj() 1370 dn = 0; in btc8821a1ant_tdma_dur_adj() 1379 dn = 0; in btc8821a1ant_tdma_dur_adj() 1388 dn++; in btc8821a1ant_tdma_dur_adj() 1393 if (dn == 2) { in btc8821a1ant_tdma_dur_adj() 1410 dn = 0; in btc8821a1ant_tdma_dur_adj() [all …]
|
D | halbtc8723b1ant.c | 1446 static s32 up, dn, m, n, wait_count; in btc8723b1ant_tdma_dur_adj_for_acl() local 1473 dn = 0; in btc8723b1ant_tdma_dur_adj_for_acl() 1491 dn = 0; in btc8723b1ant_tdma_dur_adj_for_acl() 1505 dn--; in btc8723b1ant_tdma_dur_adj_for_acl() 1507 if (dn <= 0) in btc8723b1ant_tdma_dur_adj_for_acl() 1508 dn = 0; in btc8723b1ant_tdma_dur_adj_for_acl() 1514 dn = 0; in btc8723b1ant_tdma_dur_adj_for_acl() 1522 dn++; in btc8723b1ant_tdma_dur_adj_for_acl() 1527 if (dn == 2) { in btc8723b1ant_tdma_dur_adj_for_acl() 1538 dn = 0; in btc8723b1ant_tdma_dur_adj_for_acl() [all …]
|
D | halbtc8821a2ant.c | 2081 static long up, dn, m, n, wait_count; in btc8821a2ant_tdma_dur_adj() local 2190 dn = 0; in btc8821a2ant_tdma_dur_adj() 2202 (int)up, (int)dn, (int)m, (int)n, (int)wait_count); in btc8821a2ant_tdma_dur_adj() 2209 dn--; in btc8821a2ant_tdma_dur_adj() 2211 if (dn <= 0) in btc8821a2ant_tdma_dur_adj() 2212 dn = 0; in btc8821a2ant_tdma_dur_adj() 2221 dn = 0; in btc8821a2ant_tdma_dur_adj() 2230 dn++; in btc8821a2ant_tdma_dur_adj() 2235 if (dn == 2) { in btc8821a2ant_tdma_dur_adj() 2251 dn = 0; in btc8821a2ant_tdma_dur_adj() [all …]
|
/linux-4.1.27/drivers/net/ethernet/toshiba/ |
D | spider_net.c | 1874 struct device_node *dn; in spider_net_init_firmware() local 1898 dn = pci_device_to_OF_node(card->pdev); in spider_net_init_firmware() 1899 if (!dn) in spider_net_init_firmware() 1902 fw_prop = of_get_property(dn, "firmware", &fw_size); in spider_net_init_firmware() 2273 struct device_node *dn; in spider_net_setup_netdev() local 2308 dn = pci_device_to_OF_node(card->pdev); in spider_net_setup_netdev() 2309 if (!dn) in spider_net_setup_netdev() 2312 mac = of_get_property(dn, "local-mac-address", NULL); in spider_net_setup_netdev()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
D | bcmsysport.c | 1661 struct device_node *dn; in bcm_sysport_probe() local 1668 dn = pdev->dev.of_node; in bcm_sysport_probe() 1672 if (of_property_read_u32(dn, "systemport,num-txq", &txq)) in bcm_sysport_probe() 1674 if (of_property_read_u32(dn, "systemport,num-rxq", &rxq)) in bcm_sysport_probe() 1702 priv->phy_interface = of_get_phy_mode(dn); in bcm_sysport_probe() 1710 if (of_phy_is_fixed_link(dn)) { in bcm_sysport_probe() 1711 ret = of_phy_register_fixed_link(dn); in bcm_sysport_probe() 1717 priv->phy_dn = dn; in bcm_sysport_probe() 1721 macaddr = of_get_mac_address(dn); in bcm_sysport_probe()
|
/linux-4.1.27/drivers/net/ethernet/marvell/ |
D | mvneta.c | 3025 struct device_node *dn = pdev->dev.of_node; in mvneta_probe() local 3048 dev->irq = irq_of_parse_and_map(dn, 0); in mvneta_probe() 3054 phy_node = of_parse_phandle(dn, "phy", 0); in mvneta_probe() 3056 if (!of_phy_is_fixed_link(dn)) { in mvneta_probe() 3062 err = of_phy_register_fixed_link(dn); in mvneta_probe() 3071 phy_node = of_node_get(dn); in mvneta_probe() 3074 phy_mode = of_get_phy_mode(dn); in mvneta_probe() 3091 err = of_property_read_string(dn, "managed", &managed); in mvneta_probe() 3117 dt_mac_addr = of_get_mac_address(dn); in mvneta_probe() 3132 if (of_device_is_compatible(dn, "marvell,armada-370-neta")) in mvneta_probe() [all …]
|
/linux-4.1.27/scripts/kconfig/ |
D | lkc.h | 17 static inline char *bind_textdomain_codeset(const char *dn, char *c) { return c; } in bind_textdomain_codeset() argument
|
/linux-4.1.27/arch/powerpc/platforms/85xx/ |
D | mpc85xx_ds.c | 124 if (hose->dn == pci_with_uli) in mpc85xx_exclude_device()
|