Searched refs:restlen (Results 1 – 3 of 3) sorted by relevance
608 int restlen = ic->parm.dss1_io.datalen; in interrogate_success() local613 if (restlen < 2) return(-100); /* frame too short */ in interrogate_success()616 restlen -= 2; /* remaining bytes */ in interrogate_success()618 { if (restlen < 2) return(-103); in interrogate_success()619 if ((*(src+restlen-1)) || (*(src+restlen-2))) return(-104); in interrogate_success()620 restlen -= 2; in interrogate_success()625 restlen--; in interrogate_success()626 if (n > restlen) return(-105); in interrogate_success()627 restlen = n; in interrogate_success()630 if (n > restlen) return(-106); in interrogate_success()[all …]
236 int restlen = ccp->readbuf->len - ccp->readoffset; in auerchar_ioctl() local237 if (restlen > 0) in auerchar_ioctl()362 int restlen = bp->len - ccp->readoffset; in auerchar_read() local363 if (restlen < 0) in auerchar_read()364 restlen = 0; in auerchar_read()365 if (count > restlen) in auerchar_read()366 count = restlen; in auerchar_read()378 restlen -= count; in auerchar_read()380 if (restlen <= 0) { in auerchar_read()
1859 unsigned int restlen, sentlen; in nsp32_adjust_busfree() local1891 restlen = sentlen - s_sacklen; in nsp32_adjust_busfree()1896 addr += (len - restlen); in nsp32_adjust_busfree()1898 sgt[new_entry].len = cpu_to_le32(restlen); in nsp32_adjust_busfree()