Lines Matching refs:intel_vsec_dev

86 	struct intel_vsec_device *intel_vsec_dev = dev_to_ivdev(dev);  in intel_vsec_dev_release()  local
88 xa_erase(&auxdev_array, intel_vsec_dev->id); in intel_vsec_dev_release()
91 ida_free(intel_vsec_dev->ida, intel_vsec_dev->auxdev.id); in intel_vsec_dev_release()
94 kfree(intel_vsec_dev->resource); in intel_vsec_dev_release()
95 kfree(intel_vsec_dev); in intel_vsec_dev_release()
99 struct intel_vsec_device *intel_vsec_dev, in intel_vsec_add_aux() argument
102 struct auxiliary_device *auxdev = &intel_vsec_dev->auxdev; in intel_vsec_add_aux()
108 ret = xa_alloc(&auxdev_array, &intel_vsec_dev->id, intel_vsec_dev, in intel_vsec_add_aux()
111 kfree(intel_vsec_dev->resource); in intel_vsec_add_aux()
112 kfree(intel_vsec_dev); in intel_vsec_add_aux()
117 id = ida_alloc(intel_vsec_dev->ida, GFP_KERNEL); in intel_vsec_add_aux()
120 xa_erase(&auxdev_array, intel_vsec_dev->id); in intel_vsec_add_aux()
121 kfree(intel_vsec_dev->resource); in intel_vsec_add_aux()
122 kfree(intel_vsec_dev); in intel_vsec_add_aux()
151 struct intel_vsec_device __free(kfree) *intel_vsec_dev = NULL; in intel_vsec_add_dev()
177 intel_vsec_dev = kzalloc(sizeof(*intel_vsec_dev), GFP_KERNEL); in intel_vsec_add_dev()
178 if (!intel_vsec_dev) in intel_vsec_add_dev()
210 intel_vsec_dev->pcidev = pdev; in intel_vsec_add_dev()
211 intel_vsec_dev->resource = no_free_ptr(res); in intel_vsec_add_dev()
212 intel_vsec_dev->num_resources = header->num_entries; in intel_vsec_add_dev()
213 intel_vsec_dev->quirks = info->quirks; in intel_vsec_add_dev()
214 intel_vsec_dev->base_addr = info->base_addr; in intel_vsec_add_dev()
215 intel_vsec_dev->priv_data = info->priv_data; in intel_vsec_add_dev()
218 intel_vsec_dev->ida = &intel_vsec_sdsi_ida; in intel_vsec_add_dev()
220 intel_vsec_dev->ida = &intel_vsec_ida; in intel_vsec_add_dev()
226 return intel_vsec_add_aux(pdev, parent, no_free_ptr(intel_vsec_dev), in intel_vsec_add_dev()
462 struct intel_vsec_device *intel_vsec_dev; in intel_vsec_pci_slot_reset() local
478 xa_for_each(&auxdev_array, index, intel_vsec_dev) { in intel_vsec_pci_slot_reset()
480 if (pdev != intel_vsec_dev->pcidev) in intel_vsec_pci_slot_reset()
483 &intel_vsec_dev->auxdev); in intel_vsec_pci_slot_reset()