Lines Matching refs:bufs
107 return &fio->bufs[i][j * v->fec->rsn]; in fec_buffer_rs_block()
313 if (fio->bufs[n]) in fec_alloc_bufs()
316 fio->bufs[n] = mempool_alloc(&v->fec->prealloc_pool, GFP_NOWAIT); in fec_alloc_bufs()
317 if (unlikely(!fio->bufs[n])) { in fec_alloc_bufs()
325 if (fio->bufs[n]) in fec_alloc_bufs()
328 fio->bufs[n] = mempool_alloc(&v->fec->extra_pool, GFP_NOWAIT); in fec_alloc_bufs()
330 if (unlikely(!fio->bufs[n])) in fec_alloc_bufs()
350 memset(fio->bufs[n], 0, v->fec->rsn << DM_VERITY_FEC_BUF_RS_BITS); in fec_init_bufs()
497 mempool_free(fio->bufs[n], &f->prealloc_pool); in verity_fec_finish_io()
500 mempool_free(fio->bufs[n], &f->extra_pool); in verity_fec_finish_io()
516 memset(fio->bufs, 0, sizeof(fio->bufs)); in verity_fec_init_io()