Lines Matching refs:stat_st
705 static int stat_st = 0; variable
711 stat_count = stat_end - stat_st; in pcbit_stat()
714 stat_count = STATBUF_LEN - stat_st + stat_end; in pcbit_stat()
720 if (stat_st < stat_end) in pcbit_stat()
722 if (copy_to_user(buf, statbuf + stat_st, len)) in pcbit_stat()
724 stat_st += len; in pcbit_stat()
728 if (len > STATBUF_LEN - stat_st) in pcbit_stat()
730 if (copy_to_user(buf, statbuf + stat_st, in pcbit_stat()
731 STATBUF_LEN - stat_st)) in pcbit_stat()
734 len - (STATBUF_LEN - stat_st))) in pcbit_stat()
737 stat_st = len - (STATBUF_LEN - stat_st); in pcbit_stat()
741 if (copy_to_user(buf, statbuf + stat_st, len)) in pcbit_stat()
744 stat_st += len; in pcbit_stat()
746 if (stat_st == STATBUF_LEN) in pcbit_stat()
747 stat_st = 0; in pcbit_stat()
751 if (stat_st == stat_end) in pcbit_stat()
752 stat_st = stat_end = 0; in pcbit_stat()
766 if (stat_end == stat_st) in pcbit_logstat()
767 stat_st = (stat_st + 1) % STATBUF_LEN; in pcbit_logstat()