Lines Matching refs:threaded
231 clear_bit(index, bpmp->threaded.allocated); in tegra_bpmp_channel_read()
235 up(&bpmp->threaded.lock); in tegra_bpmp_channel_read()
264 err = down_timeout(&bpmp->threaded.lock, usecs_to_jiffies(timeout)); in tegra_bpmp_write_threaded()
270 index = find_first_zero_bit(bpmp->threaded.allocated, count); in tegra_bpmp_write_threaded()
283 set_bit(index, bpmp->threaded.allocated); in tegra_bpmp_write_threaded()
290 set_bit(index, bpmp->threaded.busy); in tegra_bpmp_write_threaded()
296 clear_bit(index, bpmp->threaded.allocated); in tegra_bpmp_write_threaded()
299 up(&bpmp->threaded.lock); in tegra_bpmp_write_threaded()
667 busy = bpmp->threaded.busy; in tegra_bpmp_handle_rx()
705 bpmp->threaded.count = bpmp->soc->channels.thread.count; in tegra_bpmp_probe()
706 sema_init(&bpmp->threaded.lock, bpmp->threaded.count); in tegra_bpmp_probe()
708 size = BITS_TO_LONGS(bpmp->threaded.count) * sizeof(long); in tegra_bpmp_probe()
710 bpmp->threaded.allocated = devm_kzalloc(&pdev->dev, size, GFP_KERNEL); in tegra_bpmp_probe()
711 if (!bpmp->threaded.allocated) in tegra_bpmp_probe()
714 bpmp->threaded.busy = devm_kzalloc(&pdev->dev, size, GFP_KERNEL); in tegra_bpmp_probe()
715 if (!bpmp->threaded.busy) in tegra_bpmp_probe()
729 bpmp->threaded_channels = devm_kcalloc(&pdev->dev, bpmp->threaded.count, in tegra_bpmp_probe()