Lines Matching refs:ctx_arr
831 if (cp->ctx_arr[i].ctx) { in cnic_free_context()
833 cp->ctx_arr[i].ctx, in cnic_free_context()
834 cp->ctx_arr[i].mapping); in cnic_free_context()
835 cp->ctx_arr[i].ctx = NULL; in cnic_free_context()
890 kfree(cp->ctx_arr); in cnic_free_resc()
891 cp->ctx_arr = NULL; in cnic_free_resc()
919 cp->ctx_arr = kzalloc(arr_size, GFP_KERNEL); in cnic_alloc_context()
920 if (cp->ctx_arr == NULL) in cnic_alloc_context()
936 cp->ctx_arr[k].cid = j; in cnic_alloc_context()
946 cp->ctx_arr[i].ctx = in cnic_alloc_context()
949 &cp->ctx_arr[i].mapping, in cnic_alloc_context()
951 if (cp->ctx_arr[i].ctx == NULL) in cnic_alloc_context()
1205 cp->ctx_arr = kcalloc(blks, sizeof(struct cnic_ctx), GFP_KERNEL); in cnic_alloc_bnx2x_context()
1206 if (cp->ctx_arr == NULL) in cnic_alloc_bnx2x_context()
1219 cp->ctx_arr[i].ctx = in cnic_alloc_bnx2x_context()
1221 &cp->ctx_arr[i].mapping, in cnic_alloc_bnx2x_context()
1223 if (cp->ctx_arr[i].ctx == NULL) in cnic_alloc_bnx2x_context()
1227 if (cp->ctx_arr[i].mapping & (cp->ctx_align - 1)) { in cnic_alloc_bnx2x_context()
1669 if (cp->ctx_arr[blk].mapping & mask) in cnic_get_bnx2x_ctx()
1671 (cp->ctx_arr[blk].mapping & mask); in cnic_get_bnx2x_ctx()
1673 ctx_map = cp->ctx_arr[blk].mapping + align_off + in cnic_get_bnx2x_ctx()
1675 ctx = cp->ctx_arr[blk].ctx + align_off + in cnic_get_bnx2x_ctx()
4391 u32 idx = cp->ctx_arr[i].cid / cp->cids_per_blk; in cnic_setup_5709_context()
4394 memset(cp->ctx_arr[i].ctx, 0, CNIC_PAGE_SIZE); in cnic_setup_5709_context()
4397 (cp->ctx_arr[i].mapping & 0xffffffff) | valid_bit); in cnic_setup_5709_context()
4399 (u64) cp->ctx_arr[i].mapping >> 32); in cnic_setup_5709_context()
4850 struct cnic_ctx *ctx = &cp->ctx_arr[i]; in cnic_setup_bnx2x_context()