Lines Matching refs:ctx_arr

781 		if (cp->ctx_arr[i].ctx) {  in cnic_free_context()
783 cp->ctx_arr[i].ctx, in cnic_free_context()
784 cp->ctx_arr[i].mapping); in cnic_free_context()
785 cp->ctx_arr[i].ctx = NULL; in cnic_free_context()
832 kfree(cp->ctx_arr); in cnic_free_resc()
833 cp->ctx_arr = NULL; in cnic_free_resc()
862 cp->ctx_arr = kzalloc(arr_size, GFP_KERNEL); in cnic_alloc_context()
863 if (cp->ctx_arr == NULL) in cnic_alloc_context()
879 cp->ctx_arr[k].cid = j; in cnic_alloc_context()
889 cp->ctx_arr[i].ctx = in cnic_alloc_context()
892 &cp->ctx_arr[i].mapping, in cnic_alloc_context()
894 if (cp->ctx_arr[i].ctx == NULL) in cnic_alloc_context()
1098 cp->ctx_arr = kcalloc(blks, sizeof(struct cnic_ctx), GFP_KERNEL); in cnic_alloc_bnx2x_context()
1099 if (cp->ctx_arr == NULL) in cnic_alloc_bnx2x_context()
1112 cp->ctx_arr[i].ctx = in cnic_alloc_bnx2x_context()
1114 &cp->ctx_arr[i].mapping, in cnic_alloc_bnx2x_context()
1116 if (cp->ctx_arr[i].ctx == NULL) in cnic_alloc_bnx2x_context()
1120 if (cp->ctx_arr[i].mapping & (cp->ctx_align - 1)) { in cnic_alloc_bnx2x_context()
1547 if (cp->ctx_arr[blk].mapping & mask) in cnic_get_bnx2x_ctx()
1549 (cp->ctx_arr[blk].mapping & mask); in cnic_get_bnx2x_ctx()
1551 ctx_map = cp->ctx_arr[blk].mapping + align_off + in cnic_get_bnx2x_ctx()
1553 ctx = cp->ctx_arr[blk].ctx + align_off + in cnic_get_bnx2x_ctx()
4073 u32 idx = cp->ctx_arr[i].cid / cp->cids_per_blk; in cnic_setup_5709_context()
4076 memset(cp->ctx_arr[i].ctx, 0, BCM_PAGE_SIZE); in cnic_setup_5709_context()
4079 (cp->ctx_arr[i].mapping & 0xffffffff) | valid_bit); in cnic_setup_5709_context()
4081 (u64) cp->ctx_arr[i].mapping >> 32); in cnic_setup_5709_context()
4541 struct cnic_ctx *ctx = &cp->ctx_arr[i]; in cnic_setup_bnx2x_context()