Lines Matching refs:maxlen

293 	int total, maxlen, new_z2;  in hfcpci_empty_fifo()  local
323 maxlen = count; /* complete transfer */ in hfcpci_empty_fifo()
325 maxlen = B_FIFO_SIZE + B_SUB_VAL - zp->z2; /* maximum */ in hfcpci_empty_fifo()
328 memcpy(ptr, ptr1, maxlen); /* copy data */ in hfcpci_empty_fifo()
329 count -= maxlen; in hfcpci_empty_fifo()
332 ptr += maxlen; in hfcpci_empty_fifo()
352 int maxlen; in receive_dmsg() local
389 maxlen = rcnt; /* complete transfer */ in receive_dmsg()
391 maxlen = D_FIFO_SIZE - zp->z2; /* maximum */ in receive_dmsg()
394 memcpy(ptr, ptr1, maxlen); /* copy data */ in receive_dmsg()
395 rcnt -= maxlen; in receive_dmsg()
398 ptr += maxlen; in receive_dmsg()
421 int new_z2, fcnt, maxlen; in hfcpci_empty_fifo_trans() local
445 maxlen = fcnt; /* complete transfer */ in hfcpci_empty_fifo_trans()
447 maxlen = B_FIFO_SIZE + B_SUB_VAL - *z2r; /* maximum */ in hfcpci_empty_fifo_trans()
450 memcpy(ptr, ptr1, maxlen); /* copy data */ in hfcpci_empty_fifo_trans()
451 fcnt -= maxlen; in hfcpci_empty_fifo_trans()
454 ptr += maxlen; in hfcpci_empty_fifo_trans()
553 int count, new_z1, maxlen; in hfcpci_fill_dfifo() local
597 maxlen = D_FIFO_SIZE - df->za[df->f1 & D_FREG_MASK].z1; /* end fifo */ in hfcpci_fill_dfifo()
598 if (maxlen > count) in hfcpci_fill_dfifo()
599 maxlen = count; /* limit size */ in hfcpci_fill_dfifo()
600 memcpy(dst, src, maxlen); /* first copy */ in hfcpci_fill_dfifo()
602 count -= maxlen; /* remaining bytes */ in hfcpci_fill_dfifo()
605 src += maxlen; /* new position */ in hfcpci_fill_dfifo()
628 int maxlen, fcnt; in hfcpci_fill_fifo() local
672 maxlen = (B_FIFO_SIZE + B_SUB_VAL) - *z1t; /* end of fifo */ in hfcpci_fill_fifo()
673 if (maxlen > count) in hfcpci_fill_fifo()
674 maxlen = count; /* limit size */ in hfcpci_fill_fifo()
675 memcpy(dst, src, maxlen); /* first copy */ in hfcpci_fill_fifo()
677 count -= maxlen; /* remaining bytes */ in hfcpci_fill_fifo()
680 src += maxlen; /* new position */ in hfcpci_fill_fifo()
741 maxlen = (B_FIFO_SIZE + B_SUB_VAL) - bz->za[bz->f1].z1; /* end fifo */ in hfcpci_fill_fifo()
742 if (maxlen > count) in hfcpci_fill_fifo()
743 maxlen = count; /* limit size */ in hfcpci_fill_fifo()
744 memcpy(dst, src, maxlen); /* first copy */ in hfcpci_fill_fifo()
746 count -= maxlen; /* remaining bytes */ in hfcpci_fill_fifo()
749 src += maxlen; /* new position */ in hfcpci_fill_fifo()
878 int total, maxlen, new_z2; in receive_emsg() local
922 maxlen = rcnt; /* complete transfer */ in receive_emsg()
924 maxlen = B_FIFO_SIZE + B_SUB_VAL - zp->z2; /* maximum */ in receive_emsg()
927 memcpy(ptr, ptr1, maxlen); /* copy data */ in receive_emsg()
928 rcnt -= maxlen; in receive_emsg()
931 ptr += maxlen; in receive_emsg()