Lines Matching refs:cdx
11 int cdx_mcdi_get_num_buses(struct cdx_mcdi *cdx) in cdx_mcdi_get_num_buses() argument
17 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_ENUM_BUSES, NULL, 0, in cdx_mcdi_get_num_buses()
28 int cdx_mcdi_get_num_devs(struct cdx_mcdi *cdx, int bus_num) in cdx_mcdi_get_num_devs() argument
37 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_ENUM_DEVICES, inbuf, sizeof(inbuf), in cdx_mcdi_get_num_devs()
48 int cdx_mcdi_get_dev_config(struct cdx_mcdi *cdx, in cdx_mcdi_get_dev_config() argument
62 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_GET_DEVICE_CONFIG, inbuf, sizeof(inbuf), in cdx_mcdi_get_dev_config()
138 int cdx_mcdi_bus_enable(struct cdx_mcdi *cdx, u8 bus_num) in cdx_mcdi_bus_enable() argument
144 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_UP, inbuf, sizeof(inbuf), in cdx_mcdi_bus_enable()
150 int cdx_mcdi_bus_disable(struct cdx_mcdi *cdx, u8 bus_num) in cdx_mcdi_bus_disable() argument
156 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_BUS_DOWN, inbuf, sizeof(inbuf), in cdx_mcdi_bus_disable()
162 int cdx_mcdi_write_msi(struct cdx_mcdi *cdx, u8 bus_num, u8 dev_num, in cdx_mcdi_write_msi() argument
174 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_DEVICE_WRITE_MSI_MSG, inbuf, sizeof(inbuf), in cdx_mcdi_write_msi()
180 int cdx_mcdi_reset_device(struct cdx_mcdi *cdx, u8 bus_num, u8 dev_num) in cdx_mcdi_reset_device() argument
188 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_DEVICE_RESET, inbuf, sizeof(inbuf), in cdx_mcdi_reset_device()
194 static int cdx_mcdi_ctrl_flag_get(struct cdx_mcdi *cdx, u8 bus_num, in cdx_mcdi_ctrl_flag_get() argument
204 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_DEVICE_CONTROL_GET, inbuf, in cdx_mcdi_ctrl_flag_get()
217 static int cdx_mcdi_ctrl_flag_set(struct cdx_mcdi *cdx, u8 bus_num, in cdx_mcdi_ctrl_flag_set() argument
228 ret = cdx_mcdi_ctrl_flag_get(cdx, bus_num, dev_num, &flags); in cdx_mcdi_ctrl_flag_set()
239 ret = cdx_mcdi_rpc(cdx, MC_CMD_CDX_DEVICE_CONTROL_SET, inbuf, in cdx_mcdi_ctrl_flag_set()
245 int cdx_mcdi_bus_master_enable(struct cdx_mcdi *cdx, u8 bus_num, in cdx_mcdi_bus_master_enable() argument
248 return cdx_mcdi_ctrl_flag_set(cdx, bus_num, dev_num, enable, in cdx_mcdi_bus_master_enable()
252 int cdx_mcdi_msi_enable(struct cdx_mcdi *cdx, u8 bus_num, in cdx_mcdi_msi_enable() argument
255 return cdx_mcdi_ctrl_flag_set(cdx, bus_num, dev_num, enable, in cdx_mcdi_msi_enable()