Lines Matching refs:eb
82 struct ebuf *eb; in hast_proto_send() local
107 eb = nv_hton(nv); in hast_proto_send()
108 if (eb == NULL) in hast_proto_send()
112 hdr.size = htole32((uint32_t)ebuf_size(eb)); in hast_proto_send()
113 if (ebuf_add_head(eb, &hdr, sizeof(hdr)) == -1) in hast_proto_send()
116 hptr = ebuf_data(eb, &hsize); in hast_proto_send()
134 struct ebuf *eb; in hast_proto_recv_hdr() local
137 eb = NULL; in hast_proto_recv_hdr()
150 eb = ebuf_alloc(hdr.size); in hast_proto_recv_hdr()
151 if (eb == NULL) in hast_proto_recv_hdr()
153 if (ebuf_add_tail(eb, NULL, hdr.size) == -1) in hast_proto_recv_hdr()
155 hptr = ebuf_data(eb, NULL); in hast_proto_recv_hdr()
159 nv = nv_ntoh(eb); in hast_proto_recv_hdr()
166 if (eb != NULL) in hast_proto_recv_hdr()
167 ebuf_free(eb); in hast_proto_recv_hdr()