Lines Matching refs:maxlen
276 int total, maxlen, new_z2; in hfcpci_empty_fifo() local
304 maxlen = count; /* complete transfer */ in hfcpci_empty_fifo()
306 maxlen = B_FIFO_SIZE + B_SUB_VAL - zp->z2; /* maximum */ in hfcpci_empty_fifo()
309 memcpy(ptr, ptr1, maxlen); /* copy data */ in hfcpci_empty_fifo()
310 count -= maxlen; in hfcpci_empty_fifo()
313 ptr += maxlen; in hfcpci_empty_fifo()
332 int maxlen; in receive_dmsg() local
369 maxlen = rcnt; /* complete transfer */ in receive_dmsg()
371 maxlen = D_FIFO_SIZE - zp->z2; /* maximum */ in receive_dmsg()
374 memcpy(ptr, ptr1, maxlen); /* copy data */ in receive_dmsg()
375 rcnt -= maxlen; in receive_dmsg()
378 ptr += maxlen; in receive_dmsg()
401 int new_z2, fcnt, maxlen; in hfcpci_empty_fifo_trans() local
425 maxlen = fcnt; /* complete transfer */ in hfcpci_empty_fifo_trans()
427 maxlen = B_FIFO_SIZE + B_SUB_VAL - *z2r; /* maximum */ in hfcpci_empty_fifo_trans()
430 memcpy(ptr, ptr1, maxlen); /* copy data */ in hfcpci_empty_fifo_trans()
431 fcnt -= maxlen; in hfcpci_empty_fifo_trans()
434 ptr += maxlen; in hfcpci_empty_fifo_trans()
521 int count, new_z1, maxlen; in hfcpci_fill_dfifo() local
565 maxlen = D_FIFO_SIZE - df->za[df->f1 & D_FREG_MASK].z1; /* end fifo */ in hfcpci_fill_dfifo()
566 if (maxlen > count) in hfcpci_fill_dfifo()
567 maxlen = count; /* limit size */ in hfcpci_fill_dfifo()
568 memcpy(dst, src, maxlen); /* first copy */ in hfcpci_fill_dfifo()
570 count -= maxlen; /* remaining bytes */ in hfcpci_fill_dfifo()
573 src += maxlen; /* new position */ in hfcpci_fill_dfifo()
591 int maxlen, fcnt; in hfcpci_fill_fifo() local
632 maxlen = (B_FIFO_SIZE + B_SUB_VAL) - *z1t; /* end of fifo */ in hfcpci_fill_fifo()
633 if (maxlen > count) in hfcpci_fill_fifo()
634 maxlen = count; /* limit size */ in hfcpci_fill_fifo()
635 memcpy(dst, src, maxlen); /* first copy */ in hfcpci_fill_fifo()
637 count -= maxlen; /* remaining bytes */ in hfcpci_fill_fifo()
640 src += maxlen; /* new position */ in hfcpci_fill_fifo()
701 maxlen = (B_FIFO_SIZE + B_SUB_VAL) - bz->za[bz->f1].z1; /* end fifo */ in hfcpci_fill_fifo()
702 if (maxlen > count) in hfcpci_fill_fifo()
703 maxlen = count; /* limit size */ in hfcpci_fill_fifo()
704 memcpy(dst, src, maxlen); /* first copy */ in hfcpci_fill_fifo()
706 count -= maxlen; /* remaining bytes */ in hfcpci_fill_fifo()
709 src += maxlen; /* new position */ in hfcpci_fill_fifo()
837 int total, maxlen, new_z2; in receive_emsg() local
877 maxlen = rcnt; /* complete transfer */ in receive_emsg()
879 maxlen = B_FIFO_SIZE + B_SUB_VAL - zp->z2; /* maximum */ in receive_emsg()
882 memcpy(ptr, ptr1, maxlen); /* copy data */ in receive_emsg()
883 rcnt -= maxlen; in receive_emsg()
886 ptr += maxlen; in receive_emsg()