Lines Matching refs:of_entry
104 struct mfd_of_node_entry *of_entry; in mfd_match_of_node_to_dev() local
109 list_for_each_entry(of_entry, &mfd_of_node_list, list) in mfd_match_of_node_to_dev()
110 if (of_entry->np == np) in mfd_match_of_node_to_dev()
128 of_entry = kzalloc(sizeof(*of_entry), GFP_KERNEL); in mfd_match_of_node_to_dev()
129 if (!of_entry) in mfd_match_of_node_to_dev()
132 of_entry->dev = &pdev->dev; in mfd_match_of_node_to_dev()
133 of_entry->np = of_node_get(np); in mfd_match_of_node_to_dev()
135 list_add_tail(&of_entry->list, &mfd_of_node_list); in mfd_match_of_node_to_dev()
148 struct mfd_of_node_entry *of_entry, *tmp; in mfd_add_device() local
289 list_for_each_entry_safe(of_entry, tmp, &mfd_of_node_list, list) in mfd_add_device()
290 if (of_entry->dev == &pdev->dev) { in mfd_add_device()
291 list_del(&of_entry->list); in mfd_add_device()
292 kfree(of_entry); in mfd_add_device()
349 struct mfd_of_node_entry *of_entry, *tmp; in mfd_remove_devices_fn() local
365 list_for_each_entry_safe(of_entry, tmp, &mfd_of_node_list, list) in mfd_remove_devices_fn()
366 if (of_entry->dev == &pdev->dev) { in mfd_remove_devices_fn()
367 list_del(&of_entry->list); in mfd_remove_devices_fn()
368 kfree(of_entry); in mfd_remove_devices_fn()