Lines Matching refs:statptr
2844 unsigned int statptr, prev;
2847 statptr = host->status_ptr[devidx] - 10;
2849 if ((signed int)statptr < 0)
2850 statptr += STATUS_BUFFER_SIZE;
2852 prev = host->status[devidx][statptr].when;
2854 for (; statptr != host->status_ptr[devidx]; statptr = (statptr + 1) & (STATUS_BUFFER_SIZE - 1)) {
2855 if (host->status[devidx][statptr].when) {
2857 host->status[devidx][statptr].irq ? '-' : ' ',
2858 host->status[devidx][statptr].ph,
2859 host->status[devidx][statptr].ssr,
2860 (host->status[devidx][statptr].when - prev) < 100 ?
2861 (host->status[devidx][statptr].when - prev) : 99);
2862 prev = host->status[devidx][statptr].when;