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

/linux-4.1.27/drivers/isdn/pcbit/
H A Ddrv.c702 static int stat_st = 0; variable
708 stat_count = stat_end - stat_st; pcbit_stat()
711 stat_count = STATBUF_LEN - stat_st + stat_end; pcbit_stat()
717 if (stat_st < stat_end) pcbit_stat()
719 if (copy_to_user(buf, statbuf + stat_st, len)) pcbit_stat()
721 stat_st += len; pcbit_stat()
725 if (len > STATBUF_LEN - stat_st) pcbit_stat()
727 if (copy_to_user(buf, statbuf + stat_st, pcbit_stat()
728 STATBUF_LEN - stat_st)) pcbit_stat()
731 len - (STATBUF_LEN - stat_st))) pcbit_stat()
734 stat_st = len - (STATBUF_LEN - stat_st); pcbit_stat()
738 if (copy_to_user(buf, statbuf + stat_st, len)) pcbit_stat()
741 stat_st += len; pcbit_stat()
743 if (stat_st == STATBUF_LEN) pcbit_stat()
744 stat_st = 0; pcbit_stat()
748 if (stat_st == stat_end) pcbit_stat()
749 stat_st = stat_end = 0; pcbit_stat()
763 if (stat_end == stat_st) pcbit_logstat()
764 stat_st = (stat_st + 1) % STATBUF_LEN; pcbit_logstat()

Completed in 55 milliseconds