/** * xe_pci_graphics_ip_gen_param - Generate graphics struct xe_ip parameters * @prev: the pointer to the previous parameter to iterate from or NULL * @desc: output buffer with minimum size of KUNIT_PARAM_DESC_SIZE * * This function prepares struct xe_ip parameter. * * To be used only as a parameter generator function in &KUNIT_CASE_PARAM. * * Return: pointer to the next parameter or NULL if no more parameters
*/ constvoid *xe_pci_graphics_ip_gen_param(constvoid *prev, char *desc)
{ return graphics_ip_gen_params(prev, desc);
}
EXPORT_SYMBOL_IF_KUNIT(xe_pci_graphics_ip_gen_param);
/** * xe_pci_media_ip_gen_param - Generate media struct xe_ip parameters * @prev: the pointer to the previous parameter to iterate from or NULL * @desc: output buffer with minimum size of KUNIT_PARAM_DESC_SIZE * * This function prepares struct xe_ip parameter. * * To be used only as a parameter generator function in &KUNIT_CASE_PARAM. * * Return: pointer to the next parameter or NULL if no more parameters
*/ constvoid *xe_pci_media_ip_gen_param(constvoid *prev, char *desc)
{ return media_ip_gen_params(prev, desc);
}
EXPORT_SYMBOL_IF_KUNIT(xe_pci_media_ip_gen_param);
/** * xe_pci_id_gen_param - Generate struct pci_device_id parameters * @prev: the pointer to the previous parameter to iterate from or NULL * @desc: output buffer with minimum size of KUNIT_PARAM_DESC_SIZE * * This function prepares struct pci_device_id parameter. * * To be used only as a parameter generator function in &KUNIT_CASE_PARAM. * * Return: pointer to the next parameter or NULL if no more parameters
*/ constvoid *xe_pci_id_gen_param(constvoid *prev, char *desc)
{ conststruct pci_device_id *pci = pci_id_gen_params(prev, desc);
/** * xe_pci_live_device_gen_param - Helper to iterate Xe devices as KUnit parameters * @prev: the previously returned value, or NULL for the first iteration * @desc: the buffer for a parameter name * * Iterates over the available Xe devices on the system. Uses the device name * as the parameter name. * * To be used only as a parameter generator function in &KUNIT_CASE_PARAM. * * Return: pointer to the next &struct xe_device ready to be used as a parameter * or NULL if there are no more Xe devices on the system.
*/ constvoid *xe_pci_live_device_gen_param(constvoid *prev, char *desc)
{ conststruct xe_device *xe = prev; struct device *dev = xe ? xe->drm.dev : NULL; struct device *next;
next = driver_find_next_device(&xe_pci_driver.driver, dev); if (dev)
put_device(dev); if (!next) return NULL;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.