Lines Matching defs:ca_buf
194 struct dax_cca *ca_buf;
195 u64 ca_buf_ra; /* cached RA of ca_buf */
508 if (ctx->ca_buf[idx].status == CCA_STAT_NOT_COMPLETED)
529 if (ctx->ca_buf[i].status == CCA_STAT_NOT_COMPLETED) {
537 kfree(ctx->ca_buf);
606 ctx->ca_buf[idx].status = CCA_STAT_KILLED;
607 ctx->ca_buf[idx].err = CCA_ERR_KILLED;
630 if (ctx->ca_buf[i].status !=
660 ctx->ca_buf = kzalloc(DAX_MMAP_LEN, GFP_KERNEL);
661 if (ctx->ca_buf == NULL)
664 ctx->ca_buf[i].status = CCA_STAT_COMPLETED;
666 ctx->ca_buf_ra = virt_to_phys(ctx->ca_buf);
667 dax_dbg("ctx=0x%p, ctx->ca_buf=0x%p, ca_buf_ra=0x%llx",
668 (void *)ctx, (void *)ctx->ca_buf, ctx->ca_buf_ra);
836 memset(&ctx->ca_buf[idx + i], 0, sizeof(struct dax_cca));
866 /* for given index and length, verify ca_buf range exists */
882 /* check to see if ca_buf[idx] .. ca_buf[idx + nccbs] are available */
884 if (ctx->ca_buf[i].status == CCA_STAT_NOT_COMPLETED) {
977 ctx->ca_buf[i].status = CCA_STAT_COMPLETED;