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