Lines Matching refs:ctx_arr

832 		if (cp->ctx_arr[i].ctx) {  in cnic_free_context()
834 cp->ctx_arr[i].ctx, in cnic_free_context()
835 cp->ctx_arr[i].mapping); in cnic_free_context()
836 cp->ctx_arr[i].ctx = NULL; in cnic_free_context()
891 kfree(cp->ctx_arr); in cnic_free_resc()
892 cp->ctx_arr = NULL; in cnic_free_resc()
920 cp->ctx_arr = kzalloc(arr_size, GFP_KERNEL); in cnic_alloc_context()
921 if (cp->ctx_arr == NULL) in cnic_alloc_context()
937 cp->ctx_arr[k].cid = j; in cnic_alloc_context()
947 cp->ctx_arr[i].ctx = in cnic_alloc_context()
950 &cp->ctx_arr[i].mapping, in cnic_alloc_context()
952 if (cp->ctx_arr[i].ctx == NULL) in cnic_alloc_context()
1211 cp->ctx_arr = kcalloc(blks, sizeof(struct cnic_ctx), GFP_KERNEL); in cnic_alloc_bnx2x_context()
1212 if (cp->ctx_arr == NULL) in cnic_alloc_bnx2x_context()
1225 cp->ctx_arr[i].ctx = in cnic_alloc_bnx2x_context()
1227 &cp->ctx_arr[i].mapping, in cnic_alloc_bnx2x_context()
1229 if (cp->ctx_arr[i].ctx == NULL) in cnic_alloc_bnx2x_context()
1233 if (cp->ctx_arr[i].mapping & (cp->ctx_align - 1)) { in cnic_alloc_bnx2x_context()
1676 if (cp->ctx_arr[blk].mapping & mask) in cnic_get_bnx2x_ctx()
1678 (cp->ctx_arr[blk].mapping & mask); in cnic_get_bnx2x_ctx()
1680 ctx_map = cp->ctx_arr[blk].mapping + align_off + in cnic_get_bnx2x_ctx()
1682 ctx = cp->ctx_arr[blk].ctx + align_off + in cnic_get_bnx2x_ctx()
4399 u32 idx = cp->ctx_arr[i].cid / cp->cids_per_blk; in cnic_setup_5709_context()
4402 memset(cp->ctx_arr[i].ctx, 0, CNIC_PAGE_SIZE); in cnic_setup_5709_context()
4405 (cp->ctx_arr[i].mapping & 0xffffffff) | valid_bit); in cnic_setup_5709_context()
4407 (u64) cp->ctx_arr[i].mapping >> 32); in cnic_setup_5709_context()
4858 struct cnic_ctx *ctx = &cp->ctx_arr[i]; in cnic_setup_bnx2x_context()