Home
last modified time | relevance | path

Searched refs:cnt_to_end (Results 1 – 4 of 4) sorted by relevance

/drivers/scsi/arcmsr/
Darcmsr_attr.c85 unsigned int cnt_to_end = CIRC_CNT_TO_END(head, tail, ARCMSR_MAX_QBUFFER); in arcmsr_sysfs_iop_message_read() local
91 if (allxfer_len <= cnt_to_end) in arcmsr_sysfs_iop_message_read()
94 memcpy(ptmpQbuffer, acb->rqbuffer + tail, cnt_to_end); in arcmsr_sysfs_iop_message_read()
95 memcpy(ptmpQbuffer + cnt_to_end, acb->rqbuffer, allxfer_len - cnt_to_end); in arcmsr_sysfs_iop_message_read()
Darcmsr_hba.c2264 unsigned int cnt_to_end = CIRC_CNT_TO_END(head, tail, ARCMSR_MAX_QBUFFER); in arcmsr_iop_message_xfer() local
2270 if (allxfer_len <= cnt_to_end) in arcmsr_iop_message_xfer()
2273 memcpy(ptmpQbuffer, acb->rqbuffer + tail, cnt_to_end); in arcmsr_iop_message_xfer()
2274 memcpy(ptmpQbuffer + cnt_to_end, acb->rqbuffer, allxfer_len - cnt_to_end); in arcmsr_iop_message_xfer()
/drivers/video/adf/
Dadf_fops.c864 size_t cnt, cnt_to_end, copy_size = 0; in adf_file_copy_to_user() local
882 cnt_to_end = CIRC_CNT_TO_END(head, tail, sizeof(fpriv->event_buf)); in adf_file_copy_to_user()
885 if (cnt_to_end >= copy_size) { in adf_file_copy_to_user()
888 memcpy(event_buf, fpriv->event_buf + tail, cnt_to_end); in adf_file_copy_to_user()
889 memcpy(event_buf + cnt_to_end, fpriv->event_buf, in adf_file_copy_to_user()
890 copy_size - cnt_to_end); in adf_file_copy_to_user()
/drivers/tty/serial/
Dpch_uart.c826 int cnt_to_end = in pop_tx() local
828 int sz = min(size - count, cnt_to_end); in pop_tx()