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 sdw_pdata[index].acp_rev = res->acp_rev; in sdw_amd_probe_controller()
125 pdevinfo[index].name = "amd_sdw_manager"; in sdw_amd_probe_controller()
126 pdevinfo[index].id = index; in sdw_amd_probe_controller()
127 pdevinfo[index].parent = res->parent; in sdw_amd_probe_controller()
128 pdevinfo[index].num_res = 1; in sdw_amd_probe_controller()
129 pdevinfo[index].res = sdw_res; in sdw_amd_probe_controller()
130 pdevinfo[index].data = &sdw_pdata[index]; in sdw_amd_probe_controller()
131 pdevinfo[index].size_data = sizeof(struct acp_sdw_pdata); in sdw_amd_probe_controller()
132 pdevinfo[index].fwnode = acpi_fwnode_handle(adev); in sdw_amd_probe_controller()
133 ctx->pdev[index] = platform_device_register_full(&pdevinfo[index]); in sdw_amd_probe_controller()
134 if (IS_ERR(ctx->pdev[index])) in sdw_amd_probe_controller()
139 while (index--) { in sdw_amd_probe_controller()
140 if (!(link_mask & BIT(index))) in sdw_amd_probe_controller()
143 platform_device_unregister(ctx->pdev[index]); in sdw_amd_probe_controller()
192 int index; in sdw_amd_get_slave_info() local
196 for (index = 0; index < ctx->count; index++) { in sdw_amd_get_slave_info()
197 if (!(ctx->link_mask & BIT(index))) in sdw_amd_get_slave_info()
199 amd_manager = dev_get_drvdata(&ctx->pdev[index]->dev); in sdw_amd_get_slave_info()
213 for (index = 0; index < ctx->count; index++) { in sdw_amd_get_slave_info()
214 if (!(ctx->link_mask & BIT(index))) in sdw_amd_get_slave_info()
216 amd_manager = dev_get_drvdata(&ctx->pdev[index]->dev); in sdw_amd_get_slave_info()