Lines Matching refs:epf_group
51 struct pci_epf_group *epf_group = to_pci_epf_group(epf_item->ci_parent); in pci_secondary_epc_epf_link() local
54 struct pci_epf *epf = epf_group->epf; in pci_secondary_epc_epf_link()
75 struct pci_epf_group *epf_group = to_pci_epf_group(epf_item->ci_parent); in pci_secondary_epc_epf_unlink() local
83 epf = epf_group->epf; in pci_secondary_epc_epf_unlink()
99 *pci_ep_cfs_add_secondary_group(struct pci_epf_group *epf_group) in pci_ep_cfs_add_secondary_group() argument
103 secondary_epc_group = &epf_group->secondary_epc_group; in pci_ep_cfs_add_secondary_group()
106 configfs_register_group(&epf_group->group, secondary_epc_group); in pci_ep_cfs_add_secondary_group()
115 struct pci_epf_group *epf_group = to_pci_epf_group(epf_item->ci_parent); in pci_primary_epc_epf_link() local
118 struct pci_epf *epf = epf_group->epf; in pci_primary_epc_epf_link()
139 struct pci_epf_group *epf_group = to_pci_epf_group(epf_item->ci_parent); in pci_primary_epc_epf_unlink() local
147 epf = epf_group->epf; in pci_primary_epc_epf_unlink()
163 *pci_ep_cfs_add_primary_group(struct pci_epf_group *epf_group) in pci_ep_cfs_add_primary_group() argument
165 struct config_group *primary_epc_group = &epf_group->primary_epc_group; in pci_ep_cfs_add_primary_group()
169 configfs_register_group(&epf_group->group, primary_epc_group); in pci_ep_cfs_add_primary_group()
223 struct pci_epf_group *epf_group = to_pci_epf_group(epf_item); in pci_epc_epf_link() local
226 struct pci_epf *epf = epf_group->epf; in pci_epc_epf_link()
249 struct pci_epf_group *epf_group = to_pci_epf_group(epf_item); in pci_epc_epf_unlink() local
255 epf = epf_group->epf; in pci_epc_epf_unlink()
502 struct pci_epf_group *epf_group = to_pci_epf_group(item); in pci_epf_release() local
505 idr_remove(&functions_idr, epf_group->index); in pci_epf_release()
507 pci_epf_destroy(epf_group->epf); in pci_epf_release()
508 kfree(epf_group); in pci_epf_release()
559 static void pci_ep_cfs_add_type_group(struct pci_epf_group *epf_group) in pci_ep_cfs_add_type_group() argument
563 group = pci_epf_type_add_cfs(epf_group->epf, &epf_group->group); in pci_ep_cfs_add_type_group()
568 dev_err(&epf_group->epf->dev, in pci_ep_cfs_add_type_group()
573 configfs_register_group(&epf_group->group, group); in pci_ep_cfs_add_type_group()
578 struct pci_epf_group *epf_group; in pci_epf_cfs_work() local
581 epf_group = container_of(work, struct pci_epf_group, cfs_work.work); in pci_epf_cfs_work()
582 group = pci_ep_cfs_add_primary_group(epf_group); in pci_epf_cfs_work()
588 group = pci_ep_cfs_add_secondary_group(epf_group); in pci_epf_cfs_work()
594 pci_ep_cfs_add_type_group(epf_group); in pci_epf_cfs_work()
600 struct pci_epf_group *epf_group; in pci_epf_make() local
605 epf_group = kzalloc(sizeof(*epf_group), GFP_KERNEL); in pci_epf_make()
606 if (!epf_group) in pci_epf_make()
610 index = idr_alloc(&functions_idr, epf_group, 0, 0, GFP_KERNEL); in pci_epf_make()
617 epf_group->index = index; in pci_epf_make()
619 config_group_init_type_name(&epf_group->group, name, &pci_epf_type); in pci_epf_make()
622 group->cg_item.ci_name, epf_group->index); in pci_epf_make()
635 epf->group = &epf_group->group; in pci_epf_make()
636 epf_group->epf = epf; in pci_epf_make()
640 INIT_DELAYED_WORK(&epf_group->cfs_work, pci_epf_cfs_work); in pci_epf_make()
641 queue_delayed_work(system_wq, &epf_group->cfs_work, in pci_epf_make()
644 return &epf_group->group; in pci_epf_make()
651 idr_remove(&functions_idr, epf_group->index); in pci_epf_make()
655 kfree(epf_group); in pci_epf_make()