Lines Matching refs:curbufsize
257 int buflen, curbufsize, i; in i2c_proc_chips() local
271 curbufsize = 0; in i2c_proc_chips()
279 if (buflen + curbufsize > *lenp) in i2c_proc_chips()
280 buflen = *lenp - curbufsize; in i2c_proc_chips()
283 curbufsize += buflen; in i2c_proc_chips()
286 *lenp = curbufsize; in i2c_proc_chips()
287 filp->f_pos += curbufsize; in i2c_proc_chips()
562 int curbufsize = 0; in i2c_write_reals() local
564 while ((nr < nrels) && (curbufsize < *bufsize)) { in i2c_write_reals()
570 curbufsize++; in i2c_write_reals()
607 if (buflen + curbufsize > *bufsize) in i2c_write_reals()
608 buflen = *bufsize - curbufsize; in i2c_write_reals()
611 curbufsize += buflen; in i2c_write_reals()
616 if (curbufsize < *bufsize) { in i2c_write_reals()
619 curbufsize++; in i2c_write_reals()
621 *bufsize = curbufsize; in i2c_write_reals()