/linux-master/drivers/ata/ |
H A D | pata_of_platform.c | 25 struct device_node *dn = ofdev->dev.of_node; local 35 ret = of_address_to_resource(dn, 0, &io_res); 42 ret = of_address_to_resource(dn, 1, &ctl_res); 59 of_property_read_u32(dn, "reg-shift", ®_shift); 61 if (!of_property_read_u32(dn, "pio-mode", &pio_mode)) { 70 use16bit = of_property_read_bool(dn, "ata-generic,use16bit");
|
H A D | pata_atiixp.c | 108 int dn = 2 * ap->port_no + adev->devno; local 114 pio_mode_data &= ~(0x7 << (4 * dn)); 115 pio_mode_data |= pio << (4 * dn); 156 int dn = 2 * ap->port_no + adev->devno; local 168 udma_mode_data &= ~(0x7 << (4 * dn)); 169 udma_mode_data |= dma << (4 * dn); 218 int dn = (2 * ap->port_no) + adev->devno; local 223 tmp16 |= (1 << dn); 225 tmp16 &= ~(1 << dn); 245 int dn local [all...] |
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | pci_dlpar.c | 21 struct pci_controller *init_phb_dynamic(struct device_node *dn) argument 25 pr_debug("PCI: Initializing new hotplug PHB %pOF\n", dn); 27 phb = pcibios_alloc_controller(dn); 31 pci_process_bridge_OF_ranges(phb, dn, 0); 43 if (dn->child) 44 pseries_eeh_init_edev_recursive(PCI_DN(dn));
|
H A D | msi.c | 118 struct device_node *dn; local 122 dn = pci_device_to_OF_node(pdev); 124 p = of_get_property(dn, prop_name, NULL); 126 pr_debug("rtas_msi: No %s on %pOF\n", prop_name, dn); 157 struct device_node *dn; local 160 dn = of_node_get(node); 161 while (dn) { 162 p = of_get_property(dn, "ibm,pe-total-#msi", NULL); 164 pr_debug("rtas_msi: found prop on dn %pOF\n", 165 dn); 183 struct device_node *dn; local 222 count_non_bridge_devices(struct device_node *dn, void *data) argument 239 count_spare_msis(struct device_node *dn, void *data) argument [all...] |
H A D | pseries_energy.c | 38 struct device_node *dn = NULL; local 44 dn = of_find_node_by_path("/cpus"); 45 if (dn == NULL) 51 info = of_find_property(dn, "ibm,drc-info", NULL); 84 rc = of_property_read_u32_index(dn, "ibm,drc-indexes", 90 rc = of_property_read_u32_index(dn, "ibm,drc-indexes", 102 of_node_put(dn); 111 struct device_node *dn = NULL; local 117 dn = of_find_node_by_path("/cpus"); 118 if (dn [all...] |
H A D | mobility.c | 90 static int delete_dt_node(struct device_node *dn) argument 95 pdn = of_get_parent(dn); 96 is_platfac = of_node_is_type(dn, "ibm,platform-facilities") || 109 pr_notice("ignoring remove operation for %pOFfp\n", dn); 113 pr_debug("removing node %pOFfp\n", dn); 114 dlpar_detach_node(dn); 118 static int update_dt_property(struct device_node *dn, struct property **prop, argument 171 pr_debug("updating node %pOF property %s\n", dn, name); 172 of_update_property(dn, new_prop); 179 static int update_dt_node(struct device_node *dn, s3 argument 265 struct device_node *dn; local [all...] |
/linux-master/drivers/pci/hotplug/ |
H A D | rpaphp_core.c | 159 static int get_children_props(struct device_node *dn, const __be32 **drc_indexes, argument 165 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); 166 names = of_get_property(dn, "ibm,drc-names", NULL); 167 types = of_get_property(dn, "ibm,drc-types", NULL); 168 domains = of_get_property(dn, "ibm,drc-power-domains", NULL); 195 static int rpaphp_check_drc_props_v1(struct device_node *dn, char *drc_name, argument 203 rc = get_children_props(dn->parent, &indexes, &names, &types, &domains); 227 static int rpaphp_check_drc_props_v2(struct device_node *dn, char *drc_name, argument 237 info = of_find_property(dn->parent, "ibm,drc-info", NULL); 270 int rpaphp_check_drc_props(struct device_node *dn, cha argument 316 is_php_dn(struct device_node *dn, const __be32 **indexes, const __be32 **names, const __be32 **types, const __be32 **power_domains) argument 334 rpaphp_drc_info_add_slot(struct device_node *dn) argument 375 rpaphp_drc_add_slot(struct device_node *dn) argument 438 rpaphp_add_slot(struct device_node *dn) argument 469 struct device_node *dn; local [all...] |
H A D | rpaphp.h | 68 struct device_node *dn; member in struct:slot 89 int rpaphp_add_slot(struct device_node *dn); 90 int rpaphp_check_drc_props(struct device_node *dn, char *drc_name, 95 struct slot *alloc_slot_struct(struct device_node *dn, int drc_index, char *drc_name, int power_domain);
|
H A D | rpaphp_pci.c | 78 struct pci_controller *phb = PCI_DN(slot->dn)->phb; 87 pdn = list_first_entry_or_null(&PCI_DN(phb->dn)->child_list, 158 bus = pci_find_bus_by_node(slot->dn); 160 err("%s: no pci_bus for dn %pOF\n", __func__, slot->dn); 172 if (!slot->dn->child) { 179 pseries_eeh_init_edev_recursive(PCI_DN(slot->dn)); 189 dbg("%s: pci_devs of slot[%pOF]\n", __func__, slot->dn);
|
H A D | rpaphp_slot.c | 25 of_node_put(slot->dn); 30 struct slot *alloc_slot_struct(struct device_node *dn, argument 41 slot->dn = of_node_get(dn); 91 __func__, slot->dn, slot->index, slot->name, 100 for_each_child_of_node(slot->dn, child) {
|
/linux-master/drivers/irqchip/ |
H A D | irq-bcm7120-l2.c | 106 static int bcm7120_l2_intc_init_one(struct device_node *dn, argument 114 parent_irq = irq_of_parse_and_map(dn, irq); 150 static int __init bcm7120_l2_intc_iomap_7120(struct device_node *dn, argument 155 data->map_base[0] = of_iomap(dn, 0); 166 ret = of_property_read_u32_array(dn, "brcm,int-fwd-mask", 174 data->map_mask_prop = of_get_property(dn, "brcm,int-map-mask", &ret); 184 static int __init bcm7120_l2_intc_iomap_3380(struct device_node *dn, argument 191 void __iomem *en = of_iomap(dn, map_idx + 0); 192 void __iomem *stat = of_iomap(dn, map_idx + 1); 215 static int __init bcm7120_l2_intc_probe(struct device_node *dn, argument 346 bcm7120_l2_intc_probe_7120(struct device_node *dn, struct device_node *parent) argument 353 bcm7120_l2_intc_probe_3380(struct device_node *dn, struct device_node *parent) argument [all...] |
/linux-master/arch/arm/mach-tegra/ |
H A D | irq.c | 69 struct device_node *dn; local 71 dn = of_find_matching_node(NULL, tegra114_dt_gic_match); 72 if (!dn) 75 tegra_gic_cpu_base = of_iomap(dn, 1);
|
/linux-master/drivers/usb/host/ |
H A D | ehci-ppc-of.c | 79 ppc44x_enable_bmt(struct device_node *dn) argument 83 insreg_virt = of_iomap(dn, 1); 96 struct device_node *dn = op->dev.of_node; local 110 rv = of_address_to_resource(dn, 0, &res); 121 irq = irq_of_parse_and_map(dn, 0); 154 if (of_property_read_bool(dn, "big-endian")) { 158 if (of_property_read_bool(dn, "big-endian-regs")) 160 if (of_property_read_bool(dn, "big-endian-desc")) 165 if (of_device_is_compatible(dn, "ibm,usb-ehci-440epx")) { 166 rv = ppc44x_enable_bmt(dn); [all...] |
H A D | ohci-ppc-of.c | 87 struct device_node *dn = op->dev.of_node; local 101 of_device_is_compatible(dn, "ohci-bigendian") || 102 of_device_is_compatible(dn, "ohci-be"); 106 rv = of_address_to_resource(dn, 0, &res); 123 irq = irq_of_parse_and_map(dn, 0); 134 if (of_device_is_compatible(dn, "fsl,mpc5200-ohci")) 136 if (of_device_is_compatible(dn, "mpc5200-ohci"))
|
/linux-master/drivers/power/reset/ |
H A D | linkstation-poweroff.c | 160 struct device_node *dn; local 163 dn = of_find_matching_node(NULL, ls_poweroff_of_match); 164 if (!dn) 166 of_node_put(dn); 168 match = of_match_node(ls_poweroff_of_match, dn); 171 dn = of_find_node_by_name(NULL, cfg->mdio_node_name); 172 if (!dn) 175 bus = of_mdio_find_bus(dn); 176 of_node_put(dn);
|
/linux-master/drivers/i2c/ |
H A D | i2c-core-of.c | 172 adap = of_find_i2c_adapter_by_node(rd->dn->parent); 176 if (of_node_test_and_set_flag(rd->dn, OF_POPULATED)) { 185 rd->dn->fwnode.flags &= ~FWNODE_FLAG_NOT_DEVICE; 186 client = of_i2c_register_device(adap, rd->dn); 189 rd->dn); 191 of_node_clear_flag(rd->dn, OF_POPULATED); 198 if (!of_node_check_flag(rd->dn, OF_POPULATED)) 202 client = of_find_i2c_device_by_node(rd->dn);
|
/linux-master/include/net/caif/ |
H A D | cffrml.h | 16 void cffrml_set_dnlayer(struct cflayer *this, struct cflayer *dn);
|
/linux-master/arch/arm/kernel/ |
H A D | cpuidle.c | 74 * @dn: a pointer to a struct device node corresponding to a cpu node 86 static int __init arm_cpuidle_read_ops(struct device_node *dn, int cpu) argument 91 enable_method = of_get_property(dn, "enable-method", NULL); 98 dn, enable_method);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | shadowof.c | 57 struct device_node *dn; local 59 if (!(dn = pci_device_to_OF_node(pdev))) 63 if ((priv->data = of_get_property(dn, "NVDA,BMP", &priv->size)))
|
/linux-master/fs/f2fs/ |
H A D | recovery.c | 494 block_t blkaddr, struct dnode_of_data *dn) argument 502 struct dnode_of_data tdn = *dn; 534 max_addrs = ADDRS_PER_PAGE(dn->node_page, dn->inode); 537 ofs_in_node, dn->inode->i_ino, nid, max_addrs); 542 if (dn->inode->i_ino == nid) { 544 if (!dn->inode_page_locked) 545 lock_page(dn->inode_page); 546 tdn.node_page = dn->inode_page; 549 } else if (dn 614 f2fs_reserve_new_block_retry(struct dnode_of_data *dn) argument 630 struct dnode_of_data dn; local [all...] |
H A D | inline.c | 127 int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page) argument 130 .sbi = F2FS_I_SB(dn->inode), 131 .ino = dn->inode->i_ino, 142 if (!f2fs_exist_data(dn->inode)) 145 err = f2fs_reserve_block(dn, 0); 149 err = f2fs_get_node_info(fio.sbi, dn->nid, &ni, false); 151 f2fs_truncate_data_blocks_range(dn, 1); 152 f2fs_put_dnode(dn); 158 if (unlikely(dn->data_blkaddr != NEW_ADDR)) { 159 f2fs_put_dnode(dn); 202 struct dnode_of_data dn; local 245 struct dnode_of_data dn; local 394 struct dnode_of_data dn; local [all...] |
/linux-master/drivers/usb/misc/ |
H A D | brcmstb-usb-pinmap.c | 112 static void get_pin_counts(struct device_node *dn, int *in_count, argument 120 in = of_property_count_strings(dn, "brcm,in-functions"); 123 out = of_property_count_strings(dn, "brcm,out-functions"); 130 static int parse_pins(struct device *dev, struct device_node *dn, argument 147 res = of_property_read_string_index(dn, "brcm,in-functions", x, 154 res = of_property_read_u32_index(dn, "brcm,in-masks", index++, 161 res = of_property_read_u32_index(dn, "brcm,in-masks", index++, 179 res = of_property_read_string_index(dn, "brcm,out-functions", x, 186 res = of_property_read_u32_index(dn, "brcm,out-masks", index++, 193 res = of_property_read_u32_index(dn, "brc 251 struct device_node *dn = pdev->dev.of_node; local [all...] |
/linux-master/drivers/crypto/nx/ |
H A D | nx-common-powernv.c | 765 static int __init vas_cfg_coproc_info(struct device_node *dn, int chip_id, argument 776 ret = of_property_read_u64(dn, "rx-fifo-address", &rx_fifo); 782 ret = of_property_read_u32(dn, "rx-fifo-size", &fifo_size); 788 ret = of_property_read_u32(dn, "lpid", &lpid); 794 ret = of_property_read_u32(dn, "pid", &pid); 800 ret = of_property_read_u32(dn, "tid", &tid); 806 ret = of_property_read_string(dn, "priority", &priority); 891 static int __init find_nx_device_tree(struct device_node *dn, int chip_id, argument 897 if (of_device_is_compatible(dn, devname)) { 898 ret = vas_cfg_coproc_info(dn, chip_i 910 struct device_node *dn; local 951 nx842_powernv_probe(struct device_node *dn) argument 1055 struct device_node *dn; local [all...] |
/linux-master/arch/arm/mach-bcm/ |
H A D | platsmp.c | 226 struct device_node *dn; local 234 dn = of_find_compatible_node(NULL, NULL, name); 235 if (!dn) { 240 cdc_base = of_iomap(dn, 0); 241 of_node_put(dn); 288 struct device_node *dn; local 292 dn = of_find_compatible_node(NULL, NULL, name); 293 if (!dn) { 298 intc_base = of_iomap(dn, 0); 299 of_node_put(dn); [all...] |
/linux-master/net/caif/ |
H A D | cfsrvl.c | 99 caif_assert(layr->dn != NULL); 100 caif_assert(layr->dn->transmit != NULL); 125 return layr->dn->transmit(layr->dn, pkt); 146 return layr->dn->transmit(layr->dn, pkt); 201 if (adap_layer == NULL || adap_layer->dn == NULL) 203 servl = container_obj(adap_layer->dn); 214 if (WARN_ON(adapt_layer == NULL || adapt_layer->dn == NULL)) 216 service = container_of(adapt_layer->dn, struc [all...] |