Lines Matching defs:length
83 unsigned char *buf, unsigned int length)
88 while (host->io_pos && length) {
91 length--;
95 if (!length)
99 if (length < 4)
103 length -= 4;
107 if (length
113 length--;
114 if (!length)
123 unsigned char *buf, unsigned int length)
129 while (host->io_pos < 4 && length) {
132 length--;
147 if (!length)
151 if (length < 4)
157 length -= 4;
161 switch (length) {
183 unsigned int length;
191 length = host->req->sg.length - host->block_pos;
194 length = host->req->data_len - host->block_pos;
197 dev_dbg(&sock->dev, "fifo data transfer, %d, %d\n", length,
200 while (length) {
208 p_cnt = min(p_cnt, length);
229 length -= t_size;
233 dev_dbg(&sock->dev, "fifo data transfer, %d remaining\n", length);
234 if (!length && (host->req->data_dir == WRITE)) {
249 return length;
266 data_len = host->req->sg.length;