Searched refs:cur_wr_offset (Results 1 – 2 of 2) sorted by relevance
78 int32_t cur_wr_offset; in pktlog_getbuf_intsafe() local111 cur_wr_offset = log_buf->wr_offset; in pktlog_getbuf_intsafe()114 if ((cur_wr_offset <= log_buf->rd_offset) in pktlog_getbuf_intsafe()115 && (cur_wr_offset + sizeof(struct ath_pktlog_hdr)) > in pktlog_getbuf_intsafe()121 log_buf->rd_offset = cur_wr_offset; in pktlog_getbuf_intsafe()124 log_hdr = (struct ath_pktlog_hdr *)(log_buf->log_data + cur_wr_offset); in pktlog_getbuf_intsafe()138 cur_wr_offset += sizeof(*log_hdr); in pktlog_getbuf_intsafe()140 if ((buf_size - cur_wr_offset) < log_size) { in pktlog_getbuf_intsafe()141 while ((cur_wr_offset <= log_buf->rd_offset) in pktlog_getbuf_intsafe()146 cur_wr_offset = 0; in pktlog_getbuf_intsafe()[all …]
745 int fold_offset, ppos_data, cur_rd_offset, cur_wr_offset; in pktlog_read_proc_entry() local779 cur_wr_offset = log_buf->wr_offset; in pktlog_read_proc_entry()805 && (cur_rd_offset != cur_wr_offset)) in pktlog_read_proc_entry()809 } while (cur_rd_offset != cur_wr_offset); in pktlog_read_proc_entry()862 if (cur_wr_offset != log_buf->wr_offset) { in pktlog_read_proc_entry()