Lines Matching refs:threaded

192 	clear_bit(index, bpmp->threaded.allocated);  in tegra_bpmp_channel_read()
196 up(&bpmp->threaded.lock); in tegra_bpmp_channel_read()
225 err = down_timeout(&bpmp->threaded.lock, usecs_to_jiffies(timeout)); in tegra_bpmp_write_threaded()
231 index = find_first_zero_bit(bpmp->threaded.allocated, count); in tegra_bpmp_write_threaded()
244 set_bit(index, bpmp->threaded.allocated); in tegra_bpmp_write_threaded()
251 set_bit(index, bpmp->threaded.busy); in tegra_bpmp_write_threaded()
257 clear_bit(index, bpmp->threaded.allocated); in tegra_bpmp_write_threaded()
260 up(&bpmp->threaded.lock); in tegra_bpmp_write_threaded()
577 busy = bpmp->threaded.busy; in tegra_bpmp_handle_rx()
706 bpmp->threaded.count = bpmp->soc->channels.thread.count; in tegra_bpmp_probe()
707 sema_init(&bpmp->threaded.lock, bpmp->threaded.count); in tegra_bpmp_probe()
709 size = BITS_TO_LONGS(bpmp->threaded.count) * sizeof(long); in tegra_bpmp_probe()
711 bpmp->threaded.allocated = devm_kzalloc(&pdev->dev, size, GFP_KERNEL); in tegra_bpmp_probe()
712 if (!bpmp->threaded.allocated) { in tegra_bpmp_probe()
717 bpmp->threaded.busy = devm_kzalloc(&pdev->dev, size, GFP_KERNEL); in tegra_bpmp_probe()
718 if (!bpmp->threaded.busy) { in tegra_bpmp_probe()
738 bpmp->threaded_channels = devm_kcalloc(&pdev->dev, bpmp->threaded.count, in tegra_bpmp_probe()
756 for (i = 0; i < bpmp->threaded.count; i++) { in tegra_bpmp_probe()
780 for (i = 0; i < bpmp->threaded.count; i++) in tegra_bpmp_probe()
831 for (i = 0; i < bpmp->threaded.count; i++) { in tegra_bpmp_probe()