Lines Matching refs:avail
100 unsigned int avail; in xb_write() local
117 dst = get_output_chunk(cons, prod, intf->req, &avail); in xb_write()
118 if (avail == 0) in xb_write()
120 if (avail > len) in xb_write()
121 avail = len; in xb_write()
126 memcpy(dst, data, avail); in xb_write()
127 data += avail; in xb_write()
128 len -= avail; in xb_write()
132 intf->req_prod += avail; in xb_write()
159 unsigned int avail; in xb_read() local
174 src = get_input_chunk(cons, prod, intf->rsp, &avail); in xb_read()
175 if (avail == 0) in xb_read()
177 if (avail > len) in xb_read()
178 avail = len; in xb_read()
183 memcpy(data, src, avail); in xb_read()
184 data += avail; in xb_read()
185 len -= avail; in xb_read()
189 intf->rsp_cons += avail; in xb_read()
191 pr_debug("Finished read of %i bytes (%i to go)\n", avail, len); in xb_read()