Lines Matching refs:pid

210 static struct bcm_vk_ctx *bcm_vk_get_ctx(struct bcm_vk *vk, const pid_t pid)  in bcm_vk_get_ctx()  argument
214 u32 hash_idx = hash_32(pid, VK_PID_HT_SHIFT_BIT); in bcm_vk_get_ctx()
242 ctx->pid = pid; in bcm_vk_get_ctx()
295 pid_t pid; in bcm_vk_free_ctx() local
304 pid = ctx->pid; in bcm_vk_free_ctx()
318 if (entry->pid == pid) in bcm_vk_free_ctx()
686 const pid_t pid, const u32 q_num) in bcm_vk_send_shutdown_msg() argument
714 entry->to_v_msg[0].arg = pid; in bcm_vk_send_shutdown_msg()
720 get_q_num(&entry->to_v_msg[0]), pid); in bcm_vk_send_shutdown_msg()
727 static int bcm_vk_handle_last_sess(struct bcm_vk *vk, const pid_t pid, in bcm_vk_handle_last_sess() argument
738 if (vk->reset_pid == pid) in bcm_vk_handle_last_sess()
743 dev_dbg(dev, "No more sessions, shut down pid %d\n", pid); in bcm_vk_handle_last_sess()
746 if (vk->reset_pid != pid) in bcm_vk_handle_last_sess()
747 rc = bcm_vk_send_shutdown_msg(vk, VK_SHUTDOWN_PID, pid, q_num); in bcm_vk_handle_last_sess()
996 ctx->idx, ctx->pid); in bcm_vk_open()
1158 ctx->pid); in bcm_vk_write()
1199 pid_t org_pid, pid; in bcm_vk_write() local
1211 pid = task_tgid_nr(current); in bcm_vk_write()
1214 (pid << VK_MSG_PID_SH); in bcm_vk_write()
1215 if (org_pid != pid) in bcm_vk_write()
1217 org_pid, org_pid, pid, pid); in bcm_vk_write()
1277 pid_t pid = ctx->pid; in bcm_vk_release() local
1294 dma_cnt, ctx->idx, pid); in bcm_vk_release()
1302 ctx->idx, pid, jiffies_to_msecs(jiffies - start_time)); in bcm_vk_release()
1309 ret = bcm_vk_handle_last_sess(vk, pid, ctx->q_num); in bcm_vk_release()