Lines Matching defs:channel
100 * @channel: RPC channel
105 static int vmw_open_channel(struct rpc_channel *channel, unsigned int protocol)
118 channel->channel_id = HIGH_WORD(edx);
119 channel->cookie_high = si;
120 channel->cookie_low = di;
130 * @channel: RPC channel
134 static int vmw_close_channel(struct rpc_channel *channel)
139 si = channel->cookie_high;
140 di = channel->cookie_low;
144 channel->channel_id << 16,
157 * @channel: The rpc channel.
163 static unsigned long vmw_port_hb_out(struct rpc_channel *channel,
171 unsigned long bp = channel->cookie_high;
172 u32 channel_id = (channel->channel_id << 16);
175 di = channel->cookie_low;
197 si = channel->cookie_high;
198 di = channel->cookie_low;
202 channel->channel_id << 16,
213 * @channel: The rpc channel.
220 static unsigned long vmw_port_hb_in(struct rpc_channel *channel, char *reply,
227 unsigned long bp = channel->cookie_low;
228 u32 channel_id = (channel->channel_id << 16);
230 si = channel->cookie_high;
248 si = channel->cookie_high;
249 di = channel->cookie_low;
253 channel->channel_id << 16,
272 * @channel: RPC channel
277 static int vmw_send_msg(struct rpc_channel *channel, const char *msg)
287 si = channel->cookie_high;
288 di = channel->cookie_low;
292 channel->channel_id << 16,
302 ebx = vmw_port_hb_out(channel, msg,
325 * @channel: channel opened by vmw_open_channel
329 static int vmw_recv_msg(struct rpc_channel *channel, void **msg,
345 si = channel->cookie_high;
346 di = channel->cookie_low;
350 channel->channel_id << 16,
372 ebx = vmw_port_hb_in(channel, reply, reply_len,
389 si = channel->cookie_high;
390 di = channel->cookie_low;
394 channel->channel_id << 16,
438 struct rpc_channel channel;
455 if (vmw_open_channel(&channel, RPCI_PROTOCOL_NUM))
458 if (vmw_send_msg(&channel, msg) ||
459 vmw_recv_msg(&channel, (void *) &reply, &reply_len))
462 vmw_close_channel(&channel);
482 vmw_close_channel(&channel);
504 struct rpc_channel channel;
530 if (vmw_open_channel(&channel, RPCI_PROTOCOL_NUM))
533 if (vmw_send_msg(&channel, msg))
536 vmw_close_channel(&channel);
543 vmw_close_channel(&channel);
570 struct rpc_channel channel;
589 if (vmw_open_channel(&channel, RPCI_PROTOCOL_NUM)) {
590 DRM_ERROR("Failed to open channel.\n");
594 if (vmw_send_msg(&channel, msg)) {
603 if (vmw_recv_msg(&channel, (void *) &reply, &reply_len)) {
619 vmw_close_channel(&channel);
625 vmw_close_channel(&channel);