Lines Matching refs:to_v_msg
375 msg = entry->to_v_msg; in bcm_vk_drain_all_pend()
545 struct vk_msg_blk *msg = &entry->to_v_msg[0]; in bcm_vk_append_ib_sgl()
549 u8 *buf = (u8 *)&entry->to_v_msg[entry->to_v_blks]; in bcm_vk_append_ib_sgl()
597 struct vk_msg_blk *src = &entry->to_v_msg[0]; in bcm_to_v_msg_enqueue()
703 entry = kzalloc(struct_size(entry, to_v_msg, 1), GFP_KERNEL); in bcm_vk_send_shutdown_msg()
708 entry->to_v_msg[0].function_id = VK_FID_SHUTDOWN; in bcm_vk_send_shutdown_msg()
709 set_q_num(&entry->to_v_msg[0], q_num); in bcm_vk_send_shutdown_msg()
710 set_msg_id(&entry->to_v_msg[0], VK_SIMPLEX_MSG_ID); in bcm_vk_send_shutdown_msg()
713 entry->to_v_msg[0].cmd = shut_type; in bcm_vk_send_shutdown_msg()
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()
764 if (get_msg_id(&iter->to_v_msg[0]) == msg_id) { in bcm_vk_dequeue_pending()
1110 if (copy_from_user(&entry->to_v_msg[0], buf, count)) { in bcm_vk_write()
1119 q_num = get_q_num(&entry->to_v_msg[0]); in bcm_vk_write()
1131 entry->usr_msg_id = get_msg_id(&entry->to_v_msg[0]); in bcm_vk_write()
1138 set_msg_id(&entry->to_v_msg[0], rc); in bcm_vk_write()
1144 get_msg_id(&entry->to_v_msg[0])); in bcm_vk_write()
1146 if (entry->to_v_msg[0].function_id == VK_FID_TRANS_BUF) { in bcm_vk_write()
1163 num_planes = entry->to_v_msg[0].cmd & VK_CMD_PLANES_MASK; in bcm_vk_write()
1164 if ((entry->to_v_msg[0].cmd & VK_CMD_MASK) == VK_CMD_DOWNLOAD) in bcm_vk_write()
1171 msg_size = entry->to_v_msg[0].size; in bcm_vk_write()
1177 data = (struct _vk_data *)&entry->to_v_msg[msg_size + 1]; in bcm_vk_write()
1192 entry->to_v_msg[0].size += sgl_extra_blks; in bcm_vk_write()
1193 } else if (entry->to_v_msg[0].function_id == VK_FID_INIT && in bcm_vk_write()
1194 entry->to_v_msg[0].context_id == VK_NEW_CTX) { in bcm_vk_write()
1208 org_pid = (entry->to_v_msg[0].arg & VK_MSG_PID_MASK) in bcm_vk_write()
1212 entry->to_v_msg[0].arg = in bcm_vk_write()
1213 (entry->to_v_msg[0].arg & ~VK_MSG_PID_MASK) | in bcm_vk_write()
1235 get_msg_id(&entry->to_v_msg[0])); in bcm_vk_write()
1242 bcm_vk_msgid_bitmap_clear(vk, get_msg_id(&entry->to_v_msg[0]), 1); in bcm_vk_write()