Lines Matching refs:cdx
85 struct cdx_controller *cdx = cdx_dev->cdx; in cdx_dev_reset() local
96 ret = cdx->ops->dev_configure(cdx, cdx_dev->bus_num, in cdx_dev_reset()
386 struct cdx_controller *cdx; in rescan_store() local
400 xa_for_each(&cdx_controllers, index, cdx) { in rescan_store()
403 ret = cdx->ops->scan(cdx); in rescan_store()
405 dev_err(cdx->dev, "cdx bus scanning failed\n"); in rescan_store()
465 struct cdx_controller *cdx = dev_params->cdx; in cdx_device_add() local
466 struct device *parent = cdx->dev; in cdx_device_add()
485 cdx_dev->cdx = dev_params->cdx; in cdx_device_add()
497 ((cdx->id << CDX_CONTROLLER_ID_SHIFT) | (cdx_dev->bus_num & CDX_BUS_NUM_MASK)), in cdx_device_add()
519 int cdx_register_controller(struct cdx_controller *cdx) in cdx_register_controller() argument
523 ret = xa_alloc(&cdx_controllers, &cdx->id, cdx, in cdx_register_controller()
526 dev_err(cdx->dev, in cdx_register_controller()
528 cdx->id = (u8)MAX_CDX_CONTROLLERS; in cdx_register_controller()
533 cdx->ops->scan(cdx); in cdx_register_controller()
539 void cdx_unregister_controller(struct cdx_controller *cdx) in cdx_unregister_controller() argument
541 if (cdx->id >= MAX_CDX_CONTROLLERS) in cdx_unregister_controller()
544 device_for_each_child(cdx->dev, NULL, cdx_unregister_device); in cdx_unregister_controller()
545 xa_erase(&cdx_controllers, cdx->id); in cdx_unregister_controller()