Lines Matching refs:hdr
178 struct xsd_sockmsg hdr; in xenbus_send() local
191 hdr.type = type; in xenbus_send()
192 hdr.req_id = 0; /* We only ever issue one request at a time */ in xenbus_send()
193 hdr.tx_id = 0; /* We never use transactions */ in xenbus_send()
194 hdr.len = 0; in xenbus_send()
204 hdr.len += seg[i].len; in xenbus_send()
209 ring_write((char *) &hdr, sizeof hdr); in xenbus_send()
225 struct xsd_sockmsg hdr; in xenbus_recv() local
230 ring_read((char *) &hdr, sizeof(hdr)); in xenbus_recv()
231 ring_read(payload, hdr.len); in xenbus_recv()
233 payload[hdr.len] = '\0'; in xenbus_recv()
235 } while ( hdr.type == XS_DEBUG ); in xenbus_recv()
238 *reply_type = hdr.type; in xenbus_recv()
241 if ( hdr.type == XS_ERROR ) in xenbus_recv()
256 *reply_len = hdr.len; in xenbus_recv()