Lines Matching refs:channel
90 * @channel: RPC channel
95 static int vmw_open_channel(struct rpc_channel *channel, unsigned int protocol)
108 channel->channel_id = HIGH_WORD(edx);
109 channel->cookie_high = si;
110 channel->cookie_low = di;
120 * @channel: RPC channel
124 static int vmw_close_channel(struct rpc_channel *channel)
129 si = channel->cookie_high;
130 di = channel->cookie_low;
134 channel->channel_id << 16,
147 * @channel: The rpc channel.
153 static unsigned long vmw_port_hb_out(struct rpc_channel *channel,
161 unsigned long bp = channel->cookie_high;
164 di = channel->cookie_low;
169 VMWARE_HYPERVISOR_HB | (channel->channel_id << 16) |
186 si = channel->cookie_high;
187 di = channel->cookie_low;
191 channel->channel_id << 16,
202 * @channel: The rpc channel.
209 static unsigned long vmw_port_hb_in(struct rpc_channel *channel, char *reply,
216 unsigned long bp = channel->cookie_low;
218 si = channel->cookie_high;
224 VMWARE_HYPERVISOR_HB | (channel->channel_id << 16),
236 si = channel->cookie_high;
237 di = channel->cookie_low;
241 channel->channel_id << 16,
260 * @channel: RPC channel
265 static int vmw_send_msg(struct rpc_channel *channel, const char *msg)
275 si = channel->cookie_high;
276 di = channel->cookie_low;
280 channel->channel_id << 16,
290 ebx = vmw_port_hb_out(channel, msg,
313 * @channel: channel opened by vmw_open_channel
317 static int vmw_recv_msg(struct rpc_channel *channel, void **msg,
333 si = channel->cookie_high;
334 di = channel->cookie_low;
338 channel->channel_id << 16,
360 ebx = vmw_port_hb_in(channel, reply, reply_len,
377 si = channel->cookie_high;
378 di = channel->cookie_low;
382 channel->channel_id << 16,
426 struct rpc_channel channel;
443 if (vmw_open_channel(&channel, RPCI_PROTOCOL_NUM))
446 if (vmw_send_msg(&channel, msg) ||
447 vmw_recv_msg(&channel, (void *) &reply, &reply_len))
450 vmw_close_channel(&channel);
470 vmw_close_channel(&channel);
491 struct rpc_channel channel;
508 if (vmw_open_channel(&channel, RPCI_PROTOCOL_NUM))
511 if (vmw_send_msg(&channel, msg))
514 vmw_close_channel(&channel);
520 vmw_close_channel(&channel);
546 struct rpc_channel channel;
565 if (vmw_open_channel(&channel, RPCI_PROTOCOL_NUM)) {
566 DRM_ERROR("Failed to open channel.\n");
570 if (vmw_send_msg(&channel, msg)) {
579 if (vmw_recv_msg(&channel, (void *) &reply, &reply_len)) {
595 vmw_close_channel(&channel);
601 vmw_close_channel(&channel);