Lines Matching defs:count
68 for (i = 0; i < ctx->count; i++, link++) {
89 u8 count;
95 count = 0;
97 "mipi-sdw-master-count", &count, 1);
105 * 'master-count' property then all the inits based on link
113 "Failed to read mipi-sdw-master-count: %d\n", ret);
117 /* Check count is within bounds */
118 if (count > SDW_MAX_LINKS) {
119 dev_err(&adev->dev, "Link count %d exceeds max %d\n",
120 count, SDW_MAX_LINKS);
124 if (!count) {
128 dev_dbg(&adev->dev, "ACPI reports %d SDW Link devices\n", count);
130 info->count = count;
133 for (i = 0; i < count; i++) {
202 int count;
211 if (!res->count)
214 count = res->count;
215 dev_dbg(&adev->dev, "Creating %d SDW Link devices\n", count);
221 ctx->count = count;
222 ctx->links = devm_kcalloc(&adev->dev, ctx->count,
227 ctx->count = count;
239 for (i = 0; i < count; i++, link++) {
305 ctx->count = i;
327 if (caps < ctx->count) {
329 "BIOS master count is larger than hardware capabilities\n");
340 for (i = 0; i < ctx->count; i++, link++) {
474 for (i = 0; i < ctx->count; i++, link++) {