Home
last modified time | relevance | path

Searched refs:dn (Results 1 – 25 of 202) sorted by relevance

123456789

/linux-3.4.99/arch/powerpc/platforms/pseries/
Deeh.c135 struct device_node *dn = eeh_dev_to_of_node(edev); in eeh_gather_pci_data() local
141 n += scnprintf(buf+n, len-n, "%s\n", dn->full_name); in eeh_gather_pci_data()
142 printk(KERN_WARNING "EEH: of node=%s\n", dn->full_name); in eeh_gather_pci_data()
144 eeh_ops->read_config(dn, PCI_VENDOR_ID, 4, &cfg); in eeh_gather_pci_data()
148 eeh_ops->read_config(dn, PCI_COMMAND, 4, &cfg); in eeh_gather_pci_data()
159 eeh_ops->read_config(dn, PCI_SEC_STATUS, 2, &cfg); in eeh_gather_pci_data()
163 eeh_ops->read_config(dn, PCI_BRIDGE_CONTROL, 2, &cfg); in eeh_gather_pci_data()
171 eeh_ops->read_config(dn, cap, 4, &cfg); in eeh_gather_pci_data()
175 eeh_ops->read_config(dn, cap+4, 4, &cfg); in eeh_gather_pci_data()
188 eeh_ops->read_config(dn, cap+4*i, 4, &cfg); in eeh_gather_pci_data()
[all …]
Ddlpar.c69 struct device_node *dn; in dlpar_parse_cc_node() local
72 dn = kzalloc(sizeof(*dn), GFP_KERNEL); in dlpar_parse_cc_node()
73 if (!dn) in dlpar_parse_cc_node()
81 dn->full_name = kasprintf(GFP_KERNEL, "/%s", name); in dlpar_parse_cc_node()
82 if (!dn->full_name) { in dlpar_parse_cc_node()
83 kfree(dn); in dlpar_parse_cc_node()
87 return dn; in dlpar_parse_cc_node()
90 static void dlpar_free_one_cc_node(struct device_node *dn) in dlpar_free_one_cc_node() argument
94 while (dn->properties) { in dlpar_free_one_cc_node()
95 prop = dn->properties; in dlpar_free_one_cc_node()
[all …]
Dmsi.c30 struct device_node *dn; in get_pdn() local
33 dn = pci_device_to_OF_node(pdev); in get_pdn()
34 if (!dn) { in get_pdn()
39 pdn = PCI_DN(dn); in get_pdn()
149 struct device_node *dn; in check_req() local
157 dn = pdn->node; in check_req()
159 req_msi = of_get_property(dn, prop_name, NULL); in check_req()
161 pr_debug("rtas_msi: No %s on %s\n", prop_name, dn->full_name); in check_req()
191 struct device_node *dn; in find_pe_total_msi() local
194 dn = of_node_get(pci_device_to_OF_node(dev)); in find_pe_total_msi()
[all …]
Dpci_dlpar.c37 struct device_node *dn) in find_bus_among_children() argument
44 if (busdn == dn) in find_bus_among_children()
48 child = find_bus_among_children(pci_bus_b(tmp), dn); in find_bus_among_children()
56 pcibios_find_pci_bus(struct device_node *dn) in pcibios_find_pci_bus() argument
58 struct pci_dn *pdn = dn->data; in pcibios_find_pci_bus()
63 return find_bus_among_children(pdn->phb->bus, dn); in pcibios_find_pci_bus()
106 struct device_node *dn = pci_bus_to_OF_node(bus); in pcibios_add_pci_devices() local
108 eeh_add_device_tree_early(dn); in pcibios_add_pci_devices()
116 of_rescan_bus(dn, bus); in pcibios_add_pci_devices()
119 slotno = PCI_SLOT(PCI_DN(dn->child)->devfn); in pcibios_add_pci_devices()
[all …]
Dmobility.c56 struct device_node *dn; in delete_dt_node() local
58 dn = of_find_node_by_phandle(phandle); in delete_dt_node()
59 if (!dn) in delete_dt_node()
62 dlpar_detach_node(dn); in delete_dt_node()
66 static int update_dt_property(struct device_node *dn, struct property **prop, in update_dt_property() argument
120 old_prop = of_find_property(dn, new_prop->name, NULL); in update_dt_property()
122 prom_update_property(dn, new_prop, old_prop); in update_dt_property()
124 prom_add_property(dn, new_prop); in update_dt_property()
135 struct device_node *dn; in update_dt_node() local
150 dn = of_find_node_by_phandle(phandle); in update_dt_node()
[all …]
Deeh_dev.c52 void * __devinit eeh_dev_init(struct device_node *dn, void *data) in eeh_dev_init() argument
65 PCI_DN(dn)->edev = edev; in eeh_dev_init()
66 edev->dn = dn; in eeh_dev_init()
81 struct device_node *dn = phb->dn; in eeh_dev_phb_init_dynamic() local
84 eeh_dev_init(dn, phb); in eeh_dev_phb_init_dynamic()
87 traverse_pci_devices(dn, eeh_dev_init, phb); in eeh_dev_phb_init_dynamic()
Deeh_pseries.c142 static int pseries_eeh_set_option(struct device_node *dn, int option) in pseries_eeh_set_option() argument
149 edev = of_node_to_eeh_dev(dn); in pseries_eeh_set_option()
160 reg = of_get_property(dn, "reg", NULL); in pseries_eeh_set_option()
197 static int pseries_eeh_get_pe_addr(struct device_node *dn) in pseries_eeh_get_pe_addr() argument
203 edev = of_node_to_eeh_dev(dn); in pseries_eeh_get_pe_addr()
223 __func__, dn->full_name); in pseries_eeh_get_pe_addr()
236 __func__, dn->full_name); in pseries_eeh_get_pe_addr()
259 static int pseries_eeh_get_state(struct device_node *dn, int *state) in pseries_eeh_get_state() argument
268 edev = of_node_to_eeh_dev(dn); in pseries_eeh_get_state()
340 static int pseries_eeh_reset(struct device_node *dn, int option) in pseries_eeh_reset() argument
[all …]
Diommu.c459 struct device_node *dn, in iommu_table_setparms() argument
466 node = phb->dn; in iommu_table_setparms()
472 "missing tce entries !\n", dn->full_name); in iommu_table_setparms()
524 struct device_node *dn, in iommu_table_setparms_lpar() argument
530 of_parse_dma_window(dn, dma_window, &tbl->it_index, &offset, &size); in iommu_table_setparms_lpar()
542 struct device_node *dn; in pci_dma_bus_setup_pSeries() local
549 dn = pci_bus_to_OF_node(bus); in pci_dma_bus_setup_pSeries()
551 pr_debug("pci_dma_bus_setup_pSeries: setting up bus %s\n", dn->full_name); in pci_dma_bus_setup_pSeries()
559 pci = PCI_DN(dn); in pci_dma_bus_setup_pSeries()
566 while (isa_dn && isa_dn != dn) in pci_dma_bus_setup_pSeries()
[all …]
/linux-3.4.99/drivers/pci/hotplug/
Drpadlpar_core.c46 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 …]
Drpaphp_core.c169 static int get_children_props(struct device_node *dn, const int **drc_indexes, in get_children_props() argument
175 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); in get_children_props()
176 names = of_get_property(dn, "ibm,drc-names", NULL); in get_children_props()
177 types = of_get_property(dn, "ibm,drc-types", NULL); in get_children_props()
178 domains = of_get_property(dn, "ibm,drc-power-domains", NULL); in get_children_props()
202 int rpaphp_get_drc_props(struct device_node *dn, int *drc_index, in rpaphp_get_drc_props() argument
211 my_index = of_get_property(dn, "ibm,my-drc-index", NULL); in rpaphp_get_drc_props()
217 rc = get_children_props(dn->parent, &indexes, &names, &types, &domains); in rpaphp_get_drc_props()
271 static int is_php_dn(struct device_node *dn, const int **indexes, in is_php_dn() argument
277 rc = get_children_props(dn, indexes, names, &drc_types, power_domains); in is_php_dn()
[all …]
/linux-3.4.99/arch/powerpc/kernel/
Dpci_dn.c39 void * __devinit update_dn_pci_info(struct device_node *dn, void *data) in update_dn_pci_info() argument
43 of_get_property(dn, "ibm,pci-config-space-type", NULL); in update_dn_pci_info()
50 dn->data = pdn; in update_dn_pci_info()
51 pdn->node = dn; in update_dn_pci_info()
56 regs = of_get_property(dn, "reg", NULL); in update_dn_pci_info()
88 struct device_node *dn, *nextdn; in traverse_pci_devices() local
92 for (dn = start->child; dn; dn = nextdn) { in traverse_pci_devices()
97 classp = of_get_property(dn, "class-code", NULL); in traverse_pci_devices()
100 if (pre && ((ret = pre(dn, data)) != NULL)) in traverse_pci_devices()
104 if (dn->child && ((class >> 8) == PCI_CLASS_BRIDGE_PCI || in traverse_pci_devices()
[all …]
Drtas_pci.c49 static inline int config_access_valid(struct pci_dn *dn, int where) in config_access_valid() argument
53 if (where < 4096 && dn->pci_ext_config_space) in config_access_valid()
94 struct device_node *busdn, *dn; in rtas_pci_read_config() local
99 for (dn = busdn->child; dn; dn = dn->sibling) { in rtas_pci_read_config()
100 struct pci_dn *pdn = PCI_DN(dn); in rtas_pci_read_config()
102 && of_device_is_available(dn)) in rtas_pci_read_config()
138 struct device_node *busdn, *dn; in rtas_pci_write_config() local
143 for (dn = busdn->child; dn; dn = dn->sibling) { in rtas_pci_write_config()
144 struct pci_dn *pdn = PCI_DN(dn); in rtas_pci_write_config()
146 && of_device_is_available(dn)) in rtas_pci_write_config()
[all …]
/linux-3.4.99/fs/notify/dnotify/
Ddnotify.c43 struct dnotify_struct *dn; member
57 struct dnotify_struct *dn; in dnotify_recalc_inode_mask() local
66 for (dn = dn_mark->dn; dn != NULL; dn = dn->dn_next) in dnotify_recalc_inode_mask()
67 new_mask |= (dn->dn_mask & ~FS_DN_MULTISHOT); in dnotify_recalc_inode_mask()
92 struct dnotify_struct *dn; in dnotify_handle_event() local
104 prev = &dn_mark->dn; in dnotify_handle_event()
105 while ((dn = *prev) != NULL) { in dnotify_handle_event()
106 if ((dn->dn_mask & test_mask) == 0) { in dnotify_handle_event()
107 prev = &dn->dn_next; in dnotify_handle_event()
110 fown = &dn->dn_filp->f_owner; in dnotify_handle_event()
[all …]
/linux-3.4.99/arch/powerpc/platforms/cell/
Daxon_msi.c81 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 …]
/linux-3.4.99/arch/powerpc/platforms/wsp/
Dsetup.c19 int wsp_get_chip_id(struct device_node *dn) in wsp_get_chip_id() argument
25 dn = of_node_get(dn); in wsp_get_chip_id()
26 while (dn && !(p = of_get_property(dn, "ibm,wsp-chip-id", NULL))) in wsp_get_chip_id()
27 dn = of_get_next_parent(dn); in wsp_get_chip_id()
29 if (!dn) in wsp_get_chip_id()
33 of_node_put(dn); in wsp_get_chip_id()
Dics.c34 struct device_node *dn; member
135 struct device_node *cpu_dn, *dn; in cpus_on_chip() local
150 dn = of_find_node_by_phandle(*prop); in cpus_on_chip()
153 chip = wsp_get_chip_id(dn); in cpus_on_chip()
157 of_node_put(dn); in cpus_on_chip()
375 static int wsp_ics_host_match(struct ics *ics, struct device_node *dn) in wsp_ics_host_match() argument
379 return of_device_is_compatible(dn, "ibm,ppc-xics"); in wsp_ics_host_match()
434 static struct wsp_ics *wsp_ics_find_dn_ics(struct device_node *dn) in wsp_ics_find_dn_ics() argument
439 iparent = of_irq_find_parent(dn); in wsp_ics_find_dn_ics()
446 if(ics_list[i].dn == iparent) in wsp_ics_find_dn_ics()
[all …]
/linux-3.4.99/include/linux/
Dof.h168 #define for_each_node_by_name(dn, name) \ argument
169 for (dn = of_find_node_by_name(NULL, name); dn; \
170 dn = of_find_node_by_name(dn, name))
173 #define for_each_node_by_type(dn, type) \ argument
174 for (dn = of_find_node_by_type(NULL, type); dn; \
175 dn = of_find_node_by_type(dn, type))
178 #define for_each_compatible_node(dn, type, compatible) \ argument
179 for (dn = of_find_compatible_node(NULL, type, compatible); dn; \
180 dn = of_find_compatible_node(dn, type, compatible))
183 #define for_each_matching_node(dn, matches) \ argument
[all …]
/linux-3.4.99/net/caif/
Dcfmuxl.c65 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 …]
/linux-3.4.99/net/decnet/
Ddn_neigh.c128 struct dn_neigh *dn = (struct dn_neigh *)neigh; in dn_neigh_construct() local
154 if (dn->flags & DN_NDFLAG_P3) in dn_neigh_construct()
163 dn_dn2eth(neigh->ha, dn->addr); in dn_neigh_construct()
183 dn->blksize = dev->mtu - 2; in dn_neigh_construct()
374 struct dn_neigh *dn; in dn_neigh_router_hello() local
382 dn = (struct dn_neigh *)neigh; in dn_neigh_router_hello()
396 dn->blksize = le16_to_cpu(msg->blksize); in dn_neigh_router_hello()
397 dn->priority = msg->priority; in dn_neigh_router_hello()
399 dn->flags &= ~DN_NDFLAG_P3; in dn_neigh_router_hello()
403 dn->flags &=~DN_NDFLAG_R2; in dn_neigh_router_hello()
[all …]
/linux-3.4.99/arch/powerpc/include/asm/
Deeh.h57 struct device_node *dn; /* Associated device node */ member
63 return edev->dn; in eeh_dev_to_of_node()
98 int (*set_option)(struct device_node *dn, int option);
99 int (*get_pe_addr)(struct device_node *dn);
100 int (*get_state)(struct device_node *dn, int *state);
101 int (*reset)(struct device_node *dn, int option);
102 int (*wait_state)(struct device_node *dn, int max_wait);
103 int (*get_log)(struct device_node *dn, int severity, char *drv_log, unsigned long len);
104 int (*configure_bridge)(struct device_node *dn);
105 int (*read_config)(struct device_node *dn, int where, int size, u32 *val);
[all …]
/linux-3.4.99/fs/ceph/
Dinode.c850 static void ceph_set_dentry_offset(struct dentry *dn) in ceph_set_dentry_offset() argument
852 struct dentry *dir = dn->d_parent; in ceph_set_dentry_offset()
860 di = ceph_dentry(dn); in ceph_set_dentry_offset()
871 spin_lock_nested(&dn->d_lock, DENTRY_D_LOCK_NESTED); in ceph_set_dentry_offset()
872 list_move(&dn->d_u.d_child, &dir->d_subdirs); in ceph_set_dentry_offset()
873 dout("set_dentry_offset %p %lld (%p %p)\n", dn, di->offset, in ceph_set_dentry_offset()
874 dn->d_u.d_child.prev, dn->d_u.d_child.next); in ceph_set_dentry_offset()
875 spin_unlock(&dn->d_lock); in ceph_set_dentry_offset()
887 static struct dentry *splice_dentry(struct dentry *dn, struct inode *in, in splice_dentry() argument
892 BUG_ON(dn->d_inode); in splice_dentry()
[all …]
/linux-3.4.99/net/netfilter/
Dnf_conntrack_proto_dccp.c429 struct dccp_net *dn; in dccp_new() local
440 dn = dccp_pernet(net); in dccp_new()
441 if (dn->dccp_loose == 0) { in dccp_new()
719 struct dccp_net *dn = dccp_pernet(&init_net); in dccp_timeout_nlattr_to_obj() local
725 timeouts[i] = dn->dccp_timeout[i]; in dccp_timeout_nlattr_to_obj()
884 struct dccp_net *dn = dccp_pernet(net); in dccp_net_init() local
887 dn->dccp_loose = 1; in dccp_net_init()
888 dn->dccp_timeout[CT_DCCP_REQUEST] = 2 * DCCP_MSL; in dccp_net_init()
889 dn->dccp_timeout[CT_DCCP_RESPOND] = 4 * DCCP_MSL; in dccp_net_init()
890 dn->dccp_timeout[CT_DCCP_PARTOPEN] = 4 * DCCP_MSL; in dccp_net_init()
[all …]
/linux-3.4.99/drivers/usb/host/whci/
Dint.c71 struct dn_buf_entry *dn; in process_dn_buf() local
74 for (dn = whc->dn_buf; dn < whc->dn_buf + WHC_N_DN_ENTRIES; dn++) { in process_dn_buf()
75 if (dn->status & WHC_DN_STATUS_VALID) { in process_dn_buf()
76 wusbhc_handle_dn(wusbhc, dn->src_addr, in process_dn_buf()
77 (struct wusb_dn_hdr *)dn->dn_data, in process_dn_buf()
78 dn->msg_size); in process_dn_buf()
79 dn->status &= ~WHC_DN_STATUS_VALID; in process_dn_buf()
/linux-3.4.99/drivers/char/tpm/
Dtpm_atmel.h41 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", &reglen); 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-3.4.99/arch/powerpc/platforms/pasemi/
Dcpufreq.c149 struct device_node *cpu, *dn; in pas_cpufreq_cpu_init() local
157 dn = of_find_compatible_node(NULL, NULL, "1682m-sdc"); in pas_cpufreq_cpu_init()
158 if (!dn) in pas_cpufreq_cpu_init()
159 dn = of_find_compatible_node(NULL, NULL, in pas_cpufreq_cpu_init()
161 if (!dn) in pas_cpufreq_cpu_init()
163 err = of_address_to_resource(dn, 0, &res); in pas_cpufreq_cpu_init()
164 of_node_put(dn); in pas_cpufreq_cpu_init()
173 dn = of_find_compatible_node(NULL, NULL, "1682m-gizmo"); in pas_cpufreq_cpu_init()
174 if (!dn) in pas_cpufreq_cpu_init()
175 dn = of_find_compatible_node(NULL, NULL, in pas_cpufreq_cpu_init()
[all …]

123456789