Lines Matching refs:acp_data
239 struct acp63_dev_data *acp_data; in acp_scan_sdw_devices() local
241 acp_data = dev_get_drvdata(dev); in acp_scan_sdw_devices()
249 acp_data->info.handle = sdw_dev->handle; in acp_scan_sdw_devices()
250 acp_data->info.count = AMD_SDW_MAX_MANAGERS; in acp_scan_sdw_devices()
251 return amd_sdw_scan_controller(&acp_data->info); in acp_scan_sdw_devices()
256 struct acp63_dev_data *acp_data; in amd_sdw_probe() local
260 acp_data = dev_get_drvdata(dev); in amd_sdw_probe()
262 sdw_res.addr = acp_data->addr; in amd_sdw_probe()
263 sdw_res.reg_range = acp_data->reg_range; in amd_sdw_probe()
264 sdw_res.handle = acp_data->info.handle; in amd_sdw_probe()
267 sdw_res.acp_lock = &acp_data->acp_lock; in amd_sdw_probe()
268 sdw_res.count = acp_data->info.count; in amd_sdw_probe()
269 sdw_res.mmio_base = acp_data->acp63_base; in amd_sdw_probe()
270 sdw_res.link_mask = acp_data->info.link_mask; in amd_sdw_probe()
271 ret = sdw_amd_probe(&sdw_res, &acp_data->sdw); in amd_sdw_probe()
277 static int amd_sdw_exit(struct acp63_dev_data *acp_data) in amd_sdw_exit() argument
279 if (acp_data->sdw) in amd_sdw_exit()
280 sdw_amd_exit(acp_data->sdw); in amd_sdw_exit()
281 acp_data->sdw = NULL; in amd_sdw_exit()
290 struct acp63_dev_data *acp_data = dev_get_drvdata(dev); in acp63_sdw_machine_select() local
293 if (acp_data->info.count) { in acp63_sdw_machine_select()
294 ret = sdw_amd_get_slave_info(acp_data->sdw); in acp63_sdw_machine_select()
299 for (mach = acp_data->machines; mach; mach++) { in acp63_sdw_machine_select()
303 for (i = 0; i < acp_data->info.count && link->num_adr; link++, i++) { in acp63_sdw_machine_select()
305 acp_data->sdw->ids, in acp63_sdw_machine_select()
306 acp_data->sdw->num_slaves)) in acp63_sdw_machine_select()
309 if (i == acp_data->info.count || !link->num_adr) in acp63_sdw_machine_select()
332 static int amd_sdw_exit(struct acp63_dev_data *acp_data) in amd_sdw_exit() argument
374 static int get_acp63_device_config(struct pci_dev *pci, struct acp63_dev_data *acp_data) in get_acp63_device_config() argument
383 config = readl(acp_data->acp63_base + ACP_PIN_CONFIG); in get_acp63_device_config()
389 acp_data->is_pdm_config = true; in get_acp63_device_config()
393 acp_data->is_sdw_config = true; in get_acp63_device_config()
401 acp_data->is_pdm_config = true; in get_acp63_device_config()
402 acp_data->is_sdw_config = true; in get_acp63_device_config()
408 if (acp_data->is_pdm_config) { in get_acp63_device_config()
419 if (acp_data->is_sdw_config) { in get_acp63_device_config()
421 if (!ret && acp_data->info.link_mask) in get_acp63_device_config()
425 acp_data->is_pdm_dev = is_dmic_dev; in get_acp63_device_config()
426 acp_data->is_sdw_dev = is_sdw_dev; in get_acp63_device_config()