Lines Matching refs:threaded
230 clear_bit(index, bpmp->threaded.allocated);
234 up(&bpmp->threaded.lock);
263 err = down_timeout(&bpmp->threaded.lock, usecs_to_jiffies(timeout));
269 index = find_first_zero_bit(bpmp->threaded.allocated, count);
282 set_bit(index, bpmp->threaded.allocated);
289 set_bit(index, bpmp->threaded.busy);
295 clear_bit(index, bpmp->threaded.allocated);
298 up(&bpmp->threaded.lock);
684 busy = bpmp->threaded.busy;
725 bpmp->threaded.count = bpmp->soc->channels.thread.count;
726 sema_init(&bpmp->threaded.lock, bpmp->threaded.count);
728 size = BITS_TO_LONGS(bpmp->threaded.count) * sizeof(long);
730 bpmp->threaded.allocated = devm_kzalloc(&pdev->dev, size, GFP_KERNEL);
731 if (!bpmp->threaded.allocated)
734 bpmp->threaded.busy = devm_kzalloc(&pdev->dev, size, GFP_KERNEL);
735 if (!bpmp->threaded.busy)
749 bpmp->threaded_channels = devm_kcalloc(&pdev->dev, bpmp->threaded.count,