Lines Matching refs:data_left
248 p += (xfer->data_len - xfer->data_left) / 4; in hci_pio_do_rx()
250 while (xfer->data_left >= 4) { in hci_pio_do_rx()
254 nr_words = min(xfer->data_left / 4, pio->rx_thresh_size); in hci_pio_do_rx()
256 xfer->data_left -= nr_words * 4; in hci_pio_do_rx()
257 DBG("now %d left %d", nr_words * 4, xfer->data_left); in hci_pio_do_rx()
263 return !xfer->data_left; in hci_pio_do_rx()
275 p += (xfer->data_len - xfer->data_left) / 4; in hci_pio_do_trailing_rx()
280 xfer->data_left -= nr_words * 4; in hci_pio_do_trailing_rx()
281 DBG("now %d left %d", nr_words * 4, xfer->data_left); in hci_pio_do_trailing_rx()
298 xfer->data_left -= count; in hci_pio_do_trailing_rx()
314 p += (xfer->data_len - xfer->data_left) / 4; in hci_pio_do_tx()
316 while (xfer->data_left >= 4) { in hci_pio_do_tx()
321 nr_words = min(xfer->data_left / 4, pio->tx_thresh_size); in hci_pio_do_tx()
323 xfer->data_left -= nr_words * 4; in hci_pio_do_tx()
324 DBG("now %d left %d", nr_words * 4, xfer->data_left); in hci_pio_do_tx()
329 if (xfer->data_left) { in hci_pio_do_tx()
339 DBG("trailing %d", xfer->data_left); in hci_pio_do_tx()
341 xfer->data_left = 0; in hci_pio_do_tx()
367 xfer->data_len = xfer->data_left = 0; in hci_pio_queue_data()
401 received = (xfer->data_len - xfer->data_left) / 4; in hci_pio_push_to_next_rx()
402 if ((xfer->data_len - xfer->data_left) & 3) { in hci_pio_push_to_next_rx()
422 left = DIV_ROUND_UP(xfer->data_left, 4); in hci_pio_push_to_next_rx()
427 xfer->data_left = left * 4; in hci_pio_push_to_next_rx()
430 bytes_to_move = xfer->data_len - xfer->data_left; in hci_pio_push_to_next_rx()
443 xfer->data_left -= chunk * 4; in hci_pio_push_to_next_rx()
448 if (xfer->data_left < 4) { in hci_pio_push_to_next_rx()
459 while (xfer->data_left--) { in hci_pio_push_to_next_rx()
467 xfer->data_left -= 4; in hci_pio_push_to_next_rx()
503 received = xfer->data_len - xfer->data_left; in hci_pio_process_resp()
530 } else if (xfer->data_left) { in hci_pio_process_resp()
532 xfer->data_left); in hci_pio_process_resp()
601 xfer[i].data_left = xfer[i].data_len; in hci_pio_queue_xfer()
730 if (pio->curr_tx && pio->curr_tx->data_left != pio->curr_tx->data_len) in hci_pio_err()