Lines Matching refs:nbuf
89 int pg, nbuf, pad; in bts_buffer_setup_aux() local
92 for (pg = 0, nbuf = 0; pg < nr_pages;) { in bts_buffer_setup_aux()
95 nbuf++; in bts_buffer_setup_aux()
101 if (overwrite && nbuf > 1) in bts_buffer_setup_aux()
104 buf = kzalloc_node(offsetof(struct bts_buffer, buf[nbuf]), GFP_KERNEL, node); in bts_buffer_setup_aux()
109 buf->nr_bufs = nbuf; in bts_buffer_setup_aux()
114 for (pg = 0, nbuf = 0, offset = 0, pad = 0; nbuf < buf->nr_bufs; nbuf++) { in bts_buffer_setup_aux()
119 buf->buf[nbuf].page = page; in bts_buffer_setup_aux()
120 buf->buf[nbuf].offset = offset; in bts_buffer_setup_aux()
121 buf->buf[nbuf].displacement = (pad ? BTS_RECORD_SIZE - pad : 0); in bts_buffer_setup_aux()
122 buf->buf[nbuf].size = buf_size(page) - buf->buf[nbuf].displacement; in bts_buffer_setup_aux()
123 pad = buf->buf[nbuf].size % BTS_RECORD_SIZE; in bts_buffer_setup_aux()
124 buf->buf[nbuf].size -= pad; in bts_buffer_setup_aux()