Lines Matching refs:kcqe
989 struct kcqe **kcq; in cnic_alloc_kcq()
998 kcq = (struct kcqe **) info->dma.pg_arr; in cnic_alloc_kcq()
1432 struct kcqe *cqes[], u32 num_cqes) in cnic_reply_bnx2x_kcqes()
1558 struct iscsi_kcqe kcqe; in cnic_bnx2x_iscsi_init2() local
1559 struct kcqe *cqes[1]; in cnic_bnx2x_iscsi_init2()
1561 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_iscsi_init2()
1563 kcqe.completion_status = in cnic_bnx2x_iscsi_init2()
1585 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_SUCCESS; in cnic_bnx2x_iscsi_init2()
1588 kcqe.op_code = ISCSI_KCQE_OPCODE_INIT; in cnic_bnx2x_iscsi_init2()
1589 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_iscsi_init2()
1887 struct iscsi_kcqe kcqe; in cnic_bnx2x_iscsi_ofld1() local
1888 struct kcqe *cqes[1]; in cnic_bnx2x_iscsi_ofld1()
1909 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_iscsi_ofld1()
1910 kcqe.op_code = ISCSI_KCQE_OPCODE_OFFLOAD_CONN; in cnic_bnx2x_iscsi_ofld1()
1911 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_ofld1()
1912 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE; in cnic_bnx2x_iscsi_ofld1()
1916 kcqe.completion_status = in cnic_bnx2x_iscsi_ofld1()
1937 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_SUCCESS; in cnic_bnx2x_iscsi_ofld1()
1938 kcqe.iscsi_conn_context_id = BNX2X_HW_CID(bp, cp->ctx_tbl[l5_cid].cid); in cnic_bnx2x_iscsi_ofld1()
1941 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_iscsi_ofld1()
2005 struct iscsi_kcqe kcqe; in cnic_bnx2x_iscsi_destroy() local
2006 struct kcqe *cqes[1]; in cnic_bnx2x_iscsi_destroy()
2033 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_iscsi_destroy()
2034 kcqe.op_code = ISCSI_KCQE_OPCODE_DESTROY_CONN; in cnic_bnx2x_iscsi_destroy()
2035 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_destroy()
2036 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_SUCCESS; in cnic_bnx2x_iscsi_destroy()
2037 kcqe.iscsi_conn_context_id = req->context_id; in cnic_bnx2x_iscsi_destroy()
2039 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_iscsi_destroy()
2234 struct l4_kcq kcqe; in cnic_bnx2x_offload_pg() local
2235 struct kcqe *cqes[1]; in cnic_bnx2x_offload_pg()
2237 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_offload_pg()
2238 kcqe.pg_host_opaque = req->host_opaque; in cnic_bnx2x_offload_pg()
2239 kcqe.pg_cid = req->host_opaque; in cnic_bnx2x_offload_pg()
2240 kcqe.op_code = L4_KCQE_OPCODE_VALUE_OFFLOAD_PG; in cnic_bnx2x_offload_pg()
2241 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_offload_pg()
2249 struct l4_kcq kcqe; in cnic_bnx2x_update_pg() local
2250 struct kcqe *cqes[1]; in cnic_bnx2x_update_pg()
2252 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_update_pg()
2253 kcqe.pg_host_opaque = req->pg_host_opaque; in cnic_bnx2x_update_pg()
2254 kcqe.pg_cid = req->pg_cid; in cnic_bnx2x_update_pg()
2255 kcqe.op_code = L4_KCQE_OPCODE_VALUE_UPDATE_PG; in cnic_bnx2x_update_pg()
2256 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_update_pg()
2359 struct fcoe_kcqe kcqe; in cnic_bnx2x_fcoe_ofld1() local
2360 struct kcqe *cqes[1]; in cnic_bnx2x_fcoe_ofld1()
2428 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_fcoe_ofld1()
2429 kcqe.op_code = FCOE_KCQE_OPCODE_OFFLOAD_CONN; in cnic_bnx2x_fcoe_ofld1()
2430 kcqe.fcoe_conn_id = req1->fcoe_conn_id; in cnic_bnx2x_fcoe_ofld1()
2431 kcqe.completion_status = FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE; in cnic_bnx2x_fcoe_ofld1()
2433 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_fcoe_ofld1()
2506 struct fcoe_kcqe kcqe; in cnic_bnx2x_fcoe_destroy() local
2507 struct kcqe *cqes[1]; in cnic_bnx2x_fcoe_destroy()
2522 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_fcoe_destroy()
2523 kcqe.completion_status = FCOE_KCQE_COMPLETION_STATUS_ERROR; in cnic_bnx2x_fcoe_destroy()
2530 kcqe.completion_status = 0; in cnic_bnx2x_fcoe_destroy()
2536 kcqe.op_code = FCOE_KCQE_OPCODE_DESTROY_CONN; in cnic_bnx2x_fcoe_destroy()
2537 kcqe.fcoe_conn_id = req->conn_id; in cnic_bnx2x_fcoe_destroy()
2538 kcqe.fcoe_conn_context_id = cid; in cnic_bnx2x_fcoe_destroy()
2540 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_fcoe_destroy()
2590 struct kcqe kcqe; in cnic_bnx2x_kwqe_err() local
2591 struct kcqe *cqes[1]; in cnic_bnx2x_kwqe_err()
2599 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_kwqe_err()
2617 kcqe.kcqe_op_flag = kcqe_op << KCQE_FLAGS_OPCODE_SHIFT; in cnic_bnx2x_kwqe_err()
2618 kcqe.kcqe_op_flag |= KCQE_FLAGS_LAYER_MASK_L5_FCOE; in cnic_bnx2x_kwqe_err()
2619 kcqe.kcqe_info1 = FCOE_KCQE_COMPLETION_STATUS_PARITY_ERROR; in cnic_bnx2x_kwqe_err()
2620 kcqe.kcqe_info2 = cid; in cnic_bnx2x_kwqe_err()
2621 kcqe.kcqe_info0 = l5_cid; in cnic_bnx2x_kwqe_err()
2628 kcqe.kcqe_op_flag = (opcode + 0x10) << KCQE_FLAGS_OPCODE_SHIFT; in cnic_bnx2x_kwqe_err()
2629 kcqe.kcqe_op_flag |= KCQE_FLAGS_LAYER_MASK_L5_ISCSI; in cnic_bnx2x_kwqe_err()
2630 kcqe.kcqe_info1 = ISCSI_KCQE_COMPLETION_STATUS_PARITY_ERR; in cnic_bnx2x_kwqe_err()
2631 kcqe.kcqe_info2 = cid; in cnic_bnx2x_kwqe_err()
2632 cnic_get_l5_cid(cp, BNX2X_SW_CID(cid), &kcqe.kcqe_info0); in cnic_bnx2x_kwqe_err()
2635 struct l4_kcq *l4kcqe = (struct l4_kcq *) &kcqe; in cnic_bnx2x_kwqe_err()
2647 kcqe.kcqe_op_flag = (kcqe_op << KCQE_FLAGS_OPCODE_SHIFT) | in cnic_bnx2x_kwqe_err()
2656 cqes[0] = &kcqe; in cnic_bnx2x_kwqe_err()
2896 struct kcqe *kcqe; in cnic_get_kcqes() local
2905 kcqe = &info->kcq[KCQ_PG(ri)][KCQ_IDX(ri)]; in cnic_get_kcqes()
2906 cp->completed_kcq[kcqe_cnt++] = kcqe; in cnic_get_kcqes()
2909 if (likely(!(kcqe->kcqe_op_flag & KCQE_FLAGS_NEXT))) { in cnic_get_kcqes()
3950 static void cnic_cm_process_offld_pg(struct cnic_dev *dev, struct l4_kcq *kcqe) in cnic_cm_process_offld_pg() argument
3953 u32 l5_cid = kcqe->pg_host_opaque; in cnic_cm_process_offld_pg()
3954 u8 opcode = kcqe->op_code; in cnic_cm_process_offld_pg()
3966 if (kcqe->status == L4_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAIL) { in cnic_cm_process_offld_pg()
3973 csk->pg_cid = kcqe->pg_cid; in cnic_cm_process_offld_pg()
3981 static void cnic_process_fcoe_term_conn(struct cnic_dev *dev, struct kcqe *kcqe) in cnic_process_fcoe_term_conn() argument
3984 struct fcoe_kcqe *fc_kcqe = (struct fcoe_kcqe *) kcqe; in cnic_process_fcoe_term_conn()
3993 static void cnic_cm_process_kcqe(struct cnic_dev *dev, struct kcqe *kcqe) in cnic_cm_process_kcqe() argument
3996 struct l4_kcq *l4kcqe = (struct l4_kcq *) kcqe; in cnic_cm_process_kcqe()
4002 cnic_process_fcoe_term_conn(dev, kcqe); in cnic_cm_process_kcqe()
4046 struct iscsi_kcqe *l5kcqe = (struct iscsi_kcqe *) kcqe; in cnic_cm_process_kcqe()
4080 static void cnic_cm_indicate_kcqe(void *data, struct kcqe *kcqe[], u32 num) in cnic_cm_indicate_kcqe() argument
4086 cnic_cm_process_kcqe(dev, kcqe[i]); in cnic_cm_indicate_kcqe()
4788 val = (CNIC_PAGE_SIZE / sizeof(struct kcqe) - 1) << 16; in cnic_start_bnx2_hw()
4791 val = ((CNIC_PAGE_SIZE / sizeof(struct kcqe)) << 16) | KCQ_PAGE_CNT; in cnic_start_bnx2_hw()