Lines Matching refs:ctx_arr
831 if (cp->ctx_arr[i].ctx) {
833 cp->ctx_arr[i].ctx,
834 cp->ctx_arr[i].mapping);
835 cp->ctx_arr[i].ctx = NULL;
890 kfree(cp->ctx_arr);
891 cp->ctx_arr = NULL;
919 cp->ctx_arr = kzalloc(arr_size, GFP_KERNEL);
920 if (cp->ctx_arr == NULL)
936 cp->ctx_arr[k].cid = j;
946 cp->ctx_arr[i].ctx =
949 &cp->ctx_arr[i].mapping,
951 if (cp->ctx_arr[i].ctx == NULL)
1203 cp->ctx_arr = kcalloc(blks, sizeof(struct cnic_ctx), GFP_KERNEL);
1204 if (cp->ctx_arr == NULL)
1217 cp->ctx_arr[i].ctx =
1219 &cp->ctx_arr[i].mapping,
1221 if (cp->ctx_arr[i].ctx == NULL)
1225 if (cp->ctx_arr[i].mapping & (cp->ctx_align - 1)) {
1667 if (cp->ctx_arr[blk].mapping & mask)
1669 (cp->ctx_arr[blk].mapping & mask);
1671 ctx_map = cp->ctx_arr[blk].mapping + align_off +
1673 ctx = cp->ctx_arr[blk].ctx + align_off +
4389 u32 idx = cp->ctx_arr[i].cid / cp->cids_per_blk;
4392 memset(cp->ctx_arr[i].ctx, 0, CNIC_PAGE_SIZE);
4395 (cp->ctx_arr[i].mapping & 0xffffffff) | valid_bit);
4397 (u64) cp->ctx_arr[i].mapping >> 32);
4848 struct cnic_ctx *ctx = &cp->ctx_arr[i];