Lines Matching refs:devs
461 INIT_LIST_HEAD(&pd->devs); in usnic_uiom_alloc_pd()
494 list_add_tail(&uiom_dev->link, &pd->devs); in usnic_uiom_attach_dev_to_pd()
513 list_for_each_entry(uiom_dev, &pd->devs, link) { in usnic_uiom_detach_dev_from_pd()
537 struct device **devs; in usnic_uiom_get_dev_list() local
541 devs = kcalloc(pd->dev_cnt + 1, sizeof(*devs), GFP_ATOMIC); in usnic_uiom_get_dev_list()
542 if (!devs) { in usnic_uiom_get_dev_list()
543 devs = ERR_PTR(-ENOMEM); in usnic_uiom_get_dev_list()
547 list_for_each_entry(uiom_dev, &pd->devs, link) { in usnic_uiom_get_dev_list()
548 devs[i++] = uiom_dev->dev; in usnic_uiom_get_dev_list()
552 return devs; in usnic_uiom_get_dev_list()
555 void usnic_uiom_free_dev_list(struct device **devs) in usnic_uiom_free_dev_list() argument
557 kfree(devs); in usnic_uiom_free_dev_list()