Home
last modified time | relevance | path

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

123

/linux-4.19.296/drivers/pci/hotplug/
Drpadlpar_core.c43 struct device_node *dn = NULL; in find_vio_slot_node() local
49 while ((dn = of_get_next_child(parent, dn))) { in find_vio_slot_node()
50 rc = rpaphp_check_drc_props(dn, drc_name, NULL); in find_vio_slot_node()
56 return dn; in find_vio_slot_node()
78 struct device_node *dn; in find_dlpar_node() local
80 dn = find_php_slot_pci_node(drc_name, "SLOT"); in find_dlpar_node()
81 if (dn) { in find_dlpar_node()
83 return dn; in find_dlpar_node()
86 dn = find_php_slot_pci_node(drc_name, "PHB"); in find_dlpar_node()
87 if (dn) { in find_dlpar_node()
[all …]
Dpnv_php.c30 static void pnv_php_register(struct device_node *dn);
31 static void pnv_php_unregister_one(struct device_node *dn);
32 static void pnv_php_unregister(struct device_node *dn);
87 static struct pnv_php_slot *pnv_php_match(struct device_node *dn, in pnv_php_match() argument
92 if (php_slot->dn == dn) { in pnv_php_match()
98 target = pnv_php_match(dn, tmp); in pnv_php_match()
106 struct pnv_php_slot *pnv_php_find_slot(struct device_node *dn) in pnv_php_find_slot() argument
113 php_slot = pnv_php_match(dn, tmp); in pnv_php_find_slot()
129 static void pnv_php_rmv_pdns(struct device_node *dn) in pnv_php_rmv_pdns() argument
133 for_each_child_of_node(dn, child) { in pnv_php_rmv_pdns()
[all …]
Drpaphp_core.c157 static int get_children_props(struct device_node *dn, const __be32 **drc_indexes, in get_children_props() argument
163 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); in get_children_props()
164 names = of_get_property(dn, "ibm,drc-names", NULL); in get_children_props()
165 types = of_get_property(dn, "ibm,drc-types", NULL); in get_children_props()
166 domains = of_get_property(dn, "ibm,drc-power-domains", NULL); in get_children_props()
193 static int rpaphp_check_drc_props_v1(struct device_node *dn, char *drc_name, in rpaphp_check_drc_props_v1() argument
201 rc = get_children_props(dn->parent, &indexes, &names, &types, &domains); in rpaphp_check_drc_props_v1()
225 static int rpaphp_check_drc_props_v2(struct device_node *dn, char *drc_name, in rpaphp_check_drc_props_v2() argument
235 info = of_find_property(dn->parent, "ibm,drc-info", NULL); in rpaphp_check_drc_props_v2()
268 int rpaphp_check_drc_props(struct device_node *dn, char *drc_name, in rpaphp_check_drc_props() argument
[all …]
Drpaphp.h67 struct device_node *dn; member
83 int rpaphp_add_slot(struct device_node *dn);
84 int rpaphp_check_drc_props(struct device_node *dn, char *drc_name,
89 struct slot *alloc_slot_struct(struct device_node *dn, int drc_index, char *drc_name, int power_dom…
Drpaphp_slot.c30 struct slot *alloc_slot_struct(struct device_node *dn, in alloc_slot_struct() argument
48 slot->dn = dn; in alloc_slot_struct()
103 __func__, slot->dn, slot->index, slot->name, in rpaphp_register_slot()
112 for_each_child_of_node(slot->dn, child) { in rpaphp_register_slot()
Drpaphp_pci.c82 bus = pci_find_bus_by_node(slot->dn); in rpaphp_enable_slot()
84 err("%s: no pci_bus for dn %pOF\n", __func__, slot->dn); in rpaphp_enable_slot()
98 if (!slot->dn->child) { in rpaphp_enable_slot()
114 dbg("%s: pci_devs of slot[%pOF]\n", __func__, slot->dn); in rpaphp_enable_slot()
/linux-4.19.296/fs/notify/dnotify/
Ddnotify.c43 struct dnotify_struct *dn; member
57 struct dnotify_struct *dn; in dnotify_recalc_inode_mask() local
64 for (dn = dn_mark->dn; dn != NULL; dn = dn->dn_next) in dnotify_recalc_inode_mask()
65 new_mask |= (dn->dn_mask & ~FS_DN_MULTISHOT); in dnotify_recalc_inode_mask()
89 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-4.19.296/fs/f2fs/
Dinline.c112 int f2fs_convert_inline_page(struct dnode_of_data *dn, struct page *page) in f2fs_convert_inline_page() argument
115 .sbi = F2FS_I_SB(dn->inode), in f2fs_convert_inline_page()
116 .ino = dn->inode->i_ino, in f2fs_convert_inline_page()
127 if (!f2fs_exist_data(dn->inode)) in f2fs_convert_inline_page()
130 err = f2fs_reserve_block(dn, 0); in f2fs_convert_inline_page()
134 err = f2fs_get_node_info(fio.sbi, dn->nid, &ni); in f2fs_convert_inline_page()
136 f2fs_truncate_data_blocks_range(dn, 1); in f2fs_convert_inline_page()
137 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
143 if (unlikely(dn->data_blkaddr != NEW_ADDR)) { in f2fs_convert_inline_page()
144 f2fs_put_dnode(dn); in f2fs_convert_inline_page()
[all …]
Drecovery.c357 block_t blkaddr, struct dnode_of_data *dn) in check_index_in_prev_nodes() argument
365 struct dnode_of_data tdn = *dn; in check_index_in_prev_nodes()
392 if (dn->inode->i_ino == nid) { in check_index_in_prev_nodes()
394 if (!dn->inode_page_locked) in check_index_in_prev_nodes()
395 lock_page(dn->inode_page); in check_index_in_prev_nodes()
396 tdn.node_page = dn->inode_page; in check_index_in_prev_nodes()
399 } else if (dn->nid == nid) { in check_index_in_prev_nodes()
413 if (ino != dn->inode->i_ino) { in check_index_in_prev_nodes()
427 inode = dn->inode; in check_index_in_prev_nodes()
437 if (ino == dn->inode->i_ino && dn->inode_page_locked) in check_index_in_prev_nodes()
[all …]
Ddata.c606 static void __set_data_blkaddr(struct dnode_of_data *dn) in __set_data_blkaddr() argument
608 struct f2fs_node *rn = F2FS_NODE(dn->node_page); in __set_data_blkaddr()
612 if (IS_INODE(dn->node_page) && f2fs_has_extra_attr(dn->inode)) in __set_data_blkaddr()
613 base = get_extra_isize(dn->inode); in __set_data_blkaddr()
617 addr_array[base + dn->ofs_in_node] = cpu_to_le32(dn->data_blkaddr); in __set_data_blkaddr()
626 void f2fs_set_data_blkaddr(struct dnode_of_data *dn) in f2fs_set_data_blkaddr() argument
628 f2fs_wait_on_page_writeback(dn->node_page, NODE, true); in f2fs_set_data_blkaddr()
629 __set_data_blkaddr(dn); in f2fs_set_data_blkaddr()
630 if (set_page_dirty(dn->node_page)) in f2fs_set_data_blkaddr()
631 dn->node_changed = true; in f2fs_set_data_blkaddr()
[all …]
Dfile.c53 struct dnode_of_data dn; in f2fs_vm_page_mkwrite() local
67 set_new_dnode(&dn, inode, NULL, NULL, 0); in f2fs_vm_page_mkwrite()
68 err = f2fs_reserve_block(&dn, page->index); in f2fs_vm_page_mkwrite()
73 f2fs_put_dnode(&dn); in f2fs_vm_page_mkwrite()
76 f2fs_balance_fs(sbi, dn.node_changed); in f2fs_vm_page_mkwrite()
115 f2fs_wait_on_block_writeback(inode, dn.data_blkaddr); in f2fs_vm_page_mkwrite()
377 struct dnode_of_data dn; in f2fs_seek_block() local
401 set_new_dnode(&dn, inode, NULL, NULL, 0); in f2fs_seek_block()
402 err = f2fs_get_dnode_of_data(&dn, pgofs, LOOKUP_NODE); in f2fs_seek_block()
408 pgofs = f2fs_get_next_page_offset(&dn, pgofs); in f2fs_seek_block()
[all …]
Dnode.c601 pgoff_t f2fs_get_next_page_offset(struct dnode_of_data *dn, pgoff_t pgofs) in f2fs_get_next_page_offset() argument
603 const long direct_index = ADDRS_PER_INODE(dn->inode); in f2fs_get_next_page_offset()
607 int cur_level = dn->cur_level; in f2fs_get_next_page_offset()
608 int max_level = dn->max_level; in f2fs_get_next_page_offset()
611 if (!dn->max_level) in f2fs_get_next_page_offset()
617 switch (dn->max_level) { in f2fs_get_next_page_offset()
626 f2fs_bug_on(F2FS_I_SB(dn->inode), 1); in f2fs_get_next_page_offset()
716 int f2fs_get_dnode_of_data(struct dnode_of_data *dn, pgoff_t index, int mode) in f2fs_get_dnode_of_data() argument
718 struct f2fs_sb_info *sbi = F2FS_I_SB(dn->inode); in f2fs_get_dnode_of_data()
727 level = get_node_path(dn->inode, index, offset, noffset); in f2fs_get_dnode_of_data()
[all …]
/linux-4.19.296/drivers/cpufreq/
Dpasemi-cpufreq.c144 struct device_node *cpu, *dn; in pas_cpufreq_cpu_init() local
161 dn = of_find_compatible_node(NULL, NULL, "1682m-sdc"); in pas_cpufreq_cpu_init()
162 if (!dn) in pas_cpufreq_cpu_init()
163 dn = of_find_compatible_node(NULL, NULL, in pas_cpufreq_cpu_init()
165 if (!dn) in pas_cpufreq_cpu_init()
167 err = of_address_to_resource(dn, 0, &res); in pas_cpufreq_cpu_init()
168 of_node_put(dn); in pas_cpufreq_cpu_init()
177 dn = of_find_compatible_node(NULL, NULL, "1682m-gizmo"); in pas_cpufreq_cpu_init()
178 if (!dn) in pas_cpufreq_cpu_init()
179 dn = of_find_compatible_node(NULL, NULL, in pas_cpufreq_cpu_init()
[all …]
/linux-4.19.296/drivers/irqchip/
Dirq-bcm7120-l2.c111 static int bcm7120_l2_intc_init_one(struct device_node *dn, in bcm7120_l2_intc_init_one() argument
119 parent_irq = irq_of_parse_and_map(dn, irq); in bcm7120_l2_intc_init_one()
152 static int __init bcm7120_l2_intc_iomap_7120(struct device_node *dn, in bcm7120_l2_intc_iomap_7120() argument
157 data->map_base[0] = of_iomap(dn, 0); in bcm7120_l2_intc_iomap_7120()
168 ret = of_property_read_u32_array(dn, "brcm,int-fwd-mask", in bcm7120_l2_intc_iomap_7120()
176 data->map_mask_prop = of_get_property(dn, "brcm,int-map-mask", &ret); in bcm7120_l2_intc_iomap_7120()
186 static int __init bcm7120_l2_intc_iomap_3380(struct device_node *dn, in bcm7120_l2_intc_iomap_3380() argument
193 void __iomem *en = of_iomap(dn, map_idx + 0); in bcm7120_l2_intc_iomap_3380()
194 void __iomem *stat = of_iomap(dn, map_idx + 1); in bcm7120_l2_intc_iomap_3380()
217 static int __init bcm7120_l2_intc_probe(struct device_node *dn, in bcm7120_l2_intc_probe() argument
[all …]
Dirq-bcm7038-l1.c247 static int __init bcm7038_l1_init_one(struct device_node *dn, in bcm7038_l1_init_one() argument
256 if (of_address_to_resource(dn, idx, &res)) in bcm7038_l1_init_one()
282 parent_irq = irq_of_parse_and_map(dn, idx); in bcm7038_l1_init_one()
288 if (of_property_read_bool(dn, "brcm,irq-can-wake")) in bcm7038_l1_init_one()
321 int __init bcm7038_l1_of_init(struct device_node *dn, in bcm7038_l1_of_init() argument
333 ret = bcm7038_l1_init_one(dn, idx, intc); in bcm7038_l1_of_init()
342 intc->domain = irq_domain_add_linear(dn, IRQS_PER_WORD * intc->n_words, in bcm7038_l1_of_init()
/linux-4.19.296/fs/ubifs/
Dcrypto.c27 int ubifs_encrypt(const struct inode *inode, struct ubifs_data_node *dn, in ubifs_encrypt() argument
31 void *p = &dn->data; in ubifs_encrypt()
36 dn->compr_size = cpu_to_le16(in_len); in ubifs_encrypt()
42 ret = fscrypt_encrypt_page(inode, virt_to_page(&dn->data), pad_len, in ubifs_encrypt()
43 offset_in_page(&dn->data), block, GFP_NOFS); in ubifs_encrypt()
53 int ubifs_decrypt(const struct inode *inode, struct ubifs_data_node *dn, in ubifs_decrypt() argument
58 unsigned int clen = le16_to_cpu(dn->compr_size); in ubifs_decrypt()
67 err = fscrypt_decrypt_page(inode, virt_to_page(&dn->data), dlen, in ubifs_decrypt()
68 offset_in_page(&dn->data), block); in ubifs_decrypt()
Dfile.c58 struct ubifs_data_node *dn) in read_block() argument
66 err = ubifs_tnc_lookup(c, &key, dn); in read_block()
74 ubifs_assert(c, 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()
83 err = ubifs_decrypt(inode, dn, &dlen, block); in read_block()
89 err = ubifs_decompress(c, &dn->data, dlen, addr, &out_len, in read_block()
90 le16_to_cpu(dn->compr_type)); in read_block()
107 ubifs_dump_node(c, dn); in read_block()
116 struct ubifs_data_node *dn; in do_readpage() local
[all …]
/linux-4.19.296/drivers/char/tpm/
Dtpm_atmel.h48 struct device_node *dn; in atmel_get_base_addr() local
55 dn = of_find_node_by_name(NULL, "tpm"); in atmel_get_base_addr()
57 if (!dn) in atmel_get_base_addr()
60 if (!of_device_is_compatible(dn, "AT97SC3201")) { in atmel_get_base_addr()
61 of_node_put(dn); in atmel_get_base_addr()
65 reg = of_get_property(dn, "reg", &reglen); in atmel_get_base_addr()
66 naddrc = of_n_addr_cells(dn); in atmel_get_base_addr()
67 nsizec = of_n_size_cells(dn); in atmel_get_base_addr()
69 of_node_put(dn); in atmel_get_base_addr()
/linux-4.19.296/fs/ceph/
Dinode.c1116 static struct dentry *splice_dentry(struct dentry *dn, struct inode *in) in splice_dentry() argument
1120 BUG_ON(d_inode(dn)); in splice_dentry()
1144 if (!d_unhashed(dn)) in splice_dentry()
1145 d_drop(dn); in splice_dentry()
1146 realdn = d_splice_alias(in, dn); in splice_dentry()
1149 PTR_ERR(realdn), dn, in, ceph_vinop(in)); in splice_dentry()
1150 dn = realdn; in splice_dentry()
1160 dn, d_count(dn), in splice_dentry()
1163 dput(dn); in splice_dentry()
1164 dn = realdn; in splice_dentry()
[all …]
/linux-4.19.296/include/linux/
Dof.h100 struct device_node *dn; member
272 #define for_each_of_allnodes_from(from, dn) \ argument
273 for (dn = __of_find_all_nodes(from); dn; dn = __of_find_all_nodes(dn))
274 #define for_each_of_allnodes(dn) for_each_of_allnodes_from(NULL, dn) argument
361 #define for_each_property_of_node(dn, pp) \ argument
362 for (pp = dn->properties; pp != NULL; pp = pp->next)
554 bool of_console_check(struct device_node *dn, char *name, int index);
906 static inline bool of_console_check(const struct device_node *dn, const char *name, int index) in of_console_check() argument
1208 #define for_each_node_by_name(dn, name) \ argument
1209 for (dn = of_find_node_by_name(NULL, name); dn; \
[all …]
Darm-cci.h38 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
Dof_iommu.h11 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.19.296/drivers/bus/
Darm-cci.c110 struct device_node *dn; member
161 static int __cci_ace_get_port(struct device_node *dn, int type) in __cci_ace_get_port() argument
167 cci_portn = of_parse_phandle(dn, "cci-control-port", 0); in __cci_ace_get_port()
170 if (ace_match && cci_portn == ports[i].dn) in __cci_ace_get_port()
176 int cci_ace_get_port(struct device_node *dn) in cci_ace_get_port() argument
178 return __cci_ace_get_port(dn, ACE_LITE_PORT); in cci_ace_get_port()
388 int notrace __cci_control_port_by_device(struct device_node *dn, bool enable) in __cci_control_port_by_device() argument
392 if (!dn) in __cci_control_port_by_device()
395 port = __cci_ace_get_port(dn, ACE_LITE_PORT); in __cci_control_port_by_device()
397 dn)) in __cci_control_port_by_device()
[all …]
/linux-4.19.296/drivers/i2c/
Di2c-core-of.c246 adap = of_find_i2c_adapter_by_node(rd->dn->parent); in of_i2c_notify()
250 if (of_node_test_and_set_flag(rd->dn, OF_POPULATED)) { in of_i2c_notify()
255 client = of_i2c_register_device(adap, rd->dn); in of_i2c_notify()
258 rd->dn); in of_i2c_notify()
260 of_node_clear_flag(rd->dn, OF_POPULATED); in of_i2c_notify()
267 if (!of_node_check_flag(rd->dn, OF_POPULATED)) in of_i2c_notify()
271 client = of_find_i2c_device_by_node(rd->dn); in of_i2c_notify()
/linux-4.19.296/include/linux/usb/
Dwusb.h209 static inline int wusb_dn_connect_prev_dev_addr(const struct wusb_dn_connect *dn) in wusb_dn_connect_prev_dev_addr() argument
211 return le16_to_cpu(dn->attributes) & 0xff; in wusb_dn_connect_prev_dev_addr()
214 static inline int wusb_dn_connect_new_connection(const struct wusb_dn_connect *dn) in wusb_dn_connect_new_connection() argument
216 return (le16_to_cpu(dn->attributes) >> 8) & 0x1; in wusb_dn_connect_new_connection()
219 static inline int wusb_dn_connect_beacon_behavior(const struct wusb_dn_connect *dn) in wusb_dn_connect_beacon_behavior() argument
221 return (le16_to_cpu(dn->attributes) >> 9) & 0x03; in wusb_dn_connect_beacon_behavior()

123