Lines Matching refs:nrels
42 static int i2c_parse_reals(int *nrels, char *buffer, int bufsize,
44 static int i2c_write_reals(int nrels, char *buffer, size_t *bufsize,
296 int i, oldlen, nrels, maxels,ret=0; in i2c_sysctl_chips() local
302 nrels = 0; in i2c_sysctl_chips()
303 for (i = 0; (i < SENSORS_ENTRY_MAX) && (nrels < maxels); in i2c_sysctl_chips()
317 nrels++; in i2c_sysctl_chips()
319 oldlen = nrels * sizeof(struct i2c_chips_data); in i2c_sysctl_chips()
348 int mag, nrels = MAX_RESULTS; in i2c_proc_real() local
369 res = i2c_parse_reals(&nrels, buffer, *lenp, results, mag); in i2c_proc_real()
373 if (!nrels) in i2c_proc_real()
378 &nrels, results); in i2c_proc_real()
385 &nrels, results); in i2c_proc_real()
388 res = i2c_write_reals(nrels, buffer, lenp, results, mag); in i2c_proc_real()
403 int oldlen, nrels = MAX_RESULTS,ret=0; in i2c_sysctl_real() local
410 &nrels, results); in i2c_sysctl_real()
413 if (nrels * sizeof(long) < oldlen) in i2c_sysctl_real()
414 oldlen = nrels * sizeof(long); in i2c_sysctl_real()
425 nrels = newlen / sizeof(long); in i2c_sysctl_real()
431 &nrels, results); in i2c_sysctl_real()
453 static int i2c_parse_reals(int *nrels, char *buffer, int bufsize, in i2c_parse_reals() argument
460 maxels = *nrels; in i2c_parse_reals()
461 *nrels = 0; in i2c_parse_reals()
463 while (bufsize && (*nrels < maxels)) { in i2c_parse_reals()
545 results[*nrels] = (min ? -1 : 1) * res; in i2c_parse_reals()
546 (*nrels)++; in i2c_parse_reals()
554 static int i2c_write_reals(int nrels, char *buffer, size_t *bufsize, in i2c_write_reals() argument
564 while ((nr < nrels) && (curbufsize < *bufsize)) { in i2c_write_reals()