Searched refs:restlen (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/isdn/divert/
H A Disdn_divert.c596 int restlen = ic->parm.dss1_io.datalen; interrogate_success() local
601 if (restlen < 2) return (-100); /* frame too short */ interrogate_success()
604 restlen -= 2; /* remaining bytes */ interrogate_success()
606 if (restlen < 2) return (-103); interrogate_success()
607 if ((*(src + restlen - 1)) || (*(src + restlen - 2))) return (-104); interrogate_success()
608 restlen -= 2; interrogate_success()
611 restlen--; interrogate_success()
612 if (n > restlen) return (-105); interrogate_success()
613 restlen = n; interrogate_success()
614 } else if (n > restlen) interrogate_success()
617 restlen = n; /* standard format */ interrogate_success()
618 if (restlen < 3) return (-107); /* no procedure */ interrogate_success()
620 restlen -= 3; interrogate_success()
621 if (restlen < 2) return (-109); /* list missing */ interrogate_success()
625 restlen -= 2; /* remaining bytes */ interrogate_success()
627 if (restlen < 2) return (-111); interrogate_success()
628 if ((*(src + restlen - 1)) || (*(src + restlen - 2))) return (-112); interrogate_success()
629 restlen -= 2; interrogate_success()
632 restlen--; interrogate_success()
633 if (n > restlen) return (-113); interrogate_success()
634 restlen = n; interrogate_success()
635 } else if (n > restlen) interrogate_success()
638 restlen = n; /* standard format */ interrogate_success()
641 while (restlen >= 2) { interrogate_success()
648 restlen -= 2; interrogate_success()
649 if (n > restlen) return (-116); /* enum length wrong */ interrogate_success()
650 restlen -= n; interrogate_success()
674 } /* while restlen */ interrogate_success()
675 if (restlen) return (-117); interrogate_success()
/linux-4.1.27/drivers/scsi/
H A Dnsp32.c1726 unsigned int restlen, sentlen; nsp32_adjust_busfree() local
1754 the head element of the sg. restlen is correctly calculated. */ nsp32_adjust_busfree()
1758 restlen = sentlen - s_sacklen; nsp32_adjust_busfree()
1763 addr += (len - restlen); nsp32_adjust_busfree()
1765 sgt[new_entry].len = cpu_to_le32(restlen); nsp32_adjust_busfree()

Completed in 179 milliseconds