Lines Matching refs:ca_buf
194 struct dax_cca *ca_buf;
195 u64 ca_buf_ra; /* cached RA of ca_buf */
509 if (ctx->ca_buf[idx].status == CCA_STAT_NOT_COMPLETED)
530 if (ctx->ca_buf[i].status == CCA_STAT_NOT_COMPLETED) {
538 kfree(ctx->ca_buf);
607 ctx->ca_buf[idx].status = CCA_STAT_KILLED;
608 ctx->ca_buf[idx].err = CCA_ERR_KILLED;
631 if (ctx->ca_buf[i].status !=
661 ctx->ca_buf = kzalloc(DAX_MMAP_LEN, GFP_KERNEL);
662 if (ctx->ca_buf == NULL)
665 ctx->ca_buf[i].status = CCA_STAT_COMPLETED;
667 ctx->ca_buf_ra = virt_to_phys(ctx->ca_buf);
668 dax_dbg("ctx=0x%p, ctx->ca_buf=0x%p, ca_buf_ra=0x%llx",
669 (void *)ctx, (void *)ctx->ca_buf, ctx->ca_buf_ra);
837 memset(&ctx->ca_buf[idx + i], 0, sizeof(struct dax_cca));
867 /* for given index and length, verify ca_buf range exists */
883 /* check to see if ca_buf[idx] .. ca_buf[idx + nccbs] are available */
885 if (ctx->ca_buf[i].status == CCA_STAT_NOT_COMPLETED) {
978 ctx->ca_buf[i].status = CCA_STAT_COMPLETED;