Lines Matching refs:of_entry
104 struct mfd_of_node_entry *of_entry; in mfd_match_of_node_to_dev() local
108 list_for_each_entry(of_entry, &mfd_of_node_list, list) in mfd_match_of_node_to_dev()
109 if (of_entry->np == np) in mfd_match_of_node_to_dev()
126 of_entry = kzalloc(sizeof(*of_entry), GFP_KERNEL); in mfd_match_of_node_to_dev()
127 if (!of_entry) in mfd_match_of_node_to_dev()
130 of_entry->dev = &pdev->dev; in mfd_match_of_node_to_dev()
131 of_entry->np = np; in mfd_match_of_node_to_dev()
132 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
282 list_for_each_entry_safe(of_entry, tmp, &mfd_of_node_list, list) in mfd_add_device()
283 if (of_entry->dev == &pdev->dev) { in mfd_add_device()
284 list_del(&of_entry->list); in mfd_add_device()
285 kfree(of_entry); in mfd_add_device()
341 struct mfd_of_node_entry *of_entry, *tmp; in mfd_remove_devices_fn() local
356 list_for_each_entry_safe(of_entry, tmp, &mfd_of_node_list, list) in mfd_remove_devices_fn()
357 if (of_entry->dev == &pdev->dev) { in mfd_remove_devices_fn()
358 list_del(&of_entry->list); in mfd_remove_devices_fn()
359 kfree(of_entry); in mfd_remove_devices_fn()