Lines Matching refs:index
76 int count, index; in sdw_amd_probe_controller() local
118 for (index = 0; index < count; index++) { in sdw_amd_probe_controller()
119 if (!(link_mask & BIT(index))) in sdw_amd_probe_controller()
122 sdw_pdata[index].instance = index; in sdw_amd_probe_controller()
123 sdw_pdata[index].acp_sdw_lock = res->acp_lock; in sdw_amd_probe_controller()
124 pdevinfo[index].name = "amd_sdw_manager"; in sdw_amd_probe_controller()
125 pdevinfo[index].id = index; in sdw_amd_probe_controller()
126 pdevinfo[index].parent = res->parent; in sdw_amd_probe_controller()
127 pdevinfo[index].num_res = 1; in sdw_amd_probe_controller()
128 pdevinfo[index].res = sdw_res; in sdw_amd_probe_controller()
129 pdevinfo[index].data = &sdw_pdata[index]; in sdw_amd_probe_controller()
130 pdevinfo[index].size_data = sizeof(struct acp_sdw_pdata); in sdw_amd_probe_controller()
131 pdevinfo[index].fwnode = acpi_fwnode_handle(adev); in sdw_amd_probe_controller()
132 ctx->pdev[index] = platform_device_register_full(&pdevinfo[index]); in sdw_amd_probe_controller()
133 if (IS_ERR(ctx->pdev[index])) in sdw_amd_probe_controller()
138 while (index--) { in sdw_amd_probe_controller()
139 if (!(link_mask & BIT(index))) in sdw_amd_probe_controller()
142 platform_device_unregister(ctx->pdev[index]); in sdw_amd_probe_controller()
191 int index; in sdw_amd_get_slave_info() local
195 for (index = 0; index < ctx->count; index++) { in sdw_amd_get_slave_info()
196 if (!(ctx->link_mask & BIT(index))) in sdw_amd_get_slave_info()
198 amd_manager = dev_get_drvdata(&ctx->pdev[index]->dev); in sdw_amd_get_slave_info()
211 for (index = 0; index < ctx->count; index++) { in sdw_amd_get_slave_info()
212 if (!(ctx->link_mask & BIT(index))) in sdw_amd_get_slave_info()
214 amd_manager = dev_get_drvdata(&ctx->pdev[index]->dev); in sdw_amd_get_slave_info()