Lines Matching refs:kcqe
988 struct kcqe **kcq; in cnic_alloc_kcq()
997 kcq = (struct kcqe **) info->dma.pg_arr; in cnic_alloc_kcq()
1425 struct kcqe *cqes[], u32 num_cqes) in cnic_reply_bnx2x_kcqes()
1551 struct iscsi_kcqe kcqe; in cnic_bnx2x_iscsi_init2() local
1552 struct kcqe *cqes[1]; in cnic_bnx2x_iscsi_init2()
1554 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_iscsi_init2()
1556 kcqe.completion_status = in cnic_bnx2x_iscsi_init2()
1578 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_SUCCESS; in cnic_bnx2x_iscsi_init2()
1581 kcqe.op_code = ISCSI_KCQE_OPCODE_INIT; in cnic_bnx2x_iscsi_init2()
1582 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_iscsi_init2()
1880 struct iscsi_kcqe kcqe; in cnic_bnx2x_iscsi_ofld1() local
1881 struct kcqe *cqes[1]; in cnic_bnx2x_iscsi_ofld1()
1902 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_iscsi_ofld1()
1903 kcqe.op_code = ISCSI_KCQE_OPCODE_OFFLOAD_CONN; in cnic_bnx2x_iscsi_ofld1()
1904 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_ofld1()
1905 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE; in cnic_bnx2x_iscsi_ofld1()
1909 kcqe.completion_status = in cnic_bnx2x_iscsi_ofld1()
1930 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_SUCCESS; in cnic_bnx2x_iscsi_ofld1()
1931 kcqe.iscsi_conn_context_id = BNX2X_HW_CID(bp, cp->ctx_tbl[l5_cid].cid); in cnic_bnx2x_iscsi_ofld1()
1934 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_iscsi_ofld1()
1998 struct iscsi_kcqe kcqe; in cnic_bnx2x_iscsi_destroy() local
1999 struct kcqe *cqes[1]; in cnic_bnx2x_iscsi_destroy()
2026 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_iscsi_destroy()
2027 kcqe.op_code = ISCSI_KCQE_OPCODE_DESTROY_CONN; in cnic_bnx2x_iscsi_destroy()
2028 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_destroy()
2029 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_SUCCESS; in cnic_bnx2x_iscsi_destroy()
2030 kcqe.iscsi_conn_context_id = req->context_id; in cnic_bnx2x_iscsi_destroy()
2032 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_iscsi_destroy()
2227 struct l4_kcq kcqe; in cnic_bnx2x_offload_pg() local
2228 struct kcqe *cqes[1]; in cnic_bnx2x_offload_pg()
2230 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_offload_pg()
2231 kcqe.pg_host_opaque = req->host_opaque; in cnic_bnx2x_offload_pg()
2232 kcqe.pg_cid = req->host_opaque; in cnic_bnx2x_offload_pg()
2233 kcqe.op_code = L4_KCQE_OPCODE_VALUE_OFFLOAD_PG; in cnic_bnx2x_offload_pg()
2234 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_offload_pg()
2242 struct l4_kcq kcqe; in cnic_bnx2x_update_pg() local
2243 struct kcqe *cqes[1]; in cnic_bnx2x_update_pg()
2245 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_update_pg()
2246 kcqe.pg_host_opaque = req->pg_host_opaque; in cnic_bnx2x_update_pg()
2247 kcqe.pg_cid = req->pg_cid; in cnic_bnx2x_update_pg()
2248 kcqe.op_code = L4_KCQE_OPCODE_VALUE_UPDATE_PG; in cnic_bnx2x_update_pg()
2249 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_update_pg()
2352 struct fcoe_kcqe kcqe; in cnic_bnx2x_fcoe_ofld1() local
2353 struct kcqe *cqes[1]; in cnic_bnx2x_fcoe_ofld1()
2421 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_fcoe_ofld1()
2422 kcqe.op_code = FCOE_KCQE_OPCODE_OFFLOAD_CONN; in cnic_bnx2x_fcoe_ofld1()
2423 kcqe.fcoe_conn_id = req1->fcoe_conn_id; in cnic_bnx2x_fcoe_ofld1()
2424 kcqe.completion_status = FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE; in cnic_bnx2x_fcoe_ofld1()
2426 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_fcoe_ofld1()
2499 struct fcoe_kcqe kcqe; in cnic_bnx2x_fcoe_destroy() local
2500 struct kcqe *cqes[1]; in cnic_bnx2x_fcoe_destroy()
2515 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_fcoe_destroy()
2516 kcqe.completion_status = FCOE_KCQE_COMPLETION_STATUS_ERROR; in cnic_bnx2x_fcoe_destroy()
2523 kcqe.completion_status = 0; in cnic_bnx2x_fcoe_destroy()
2529 kcqe.op_code = FCOE_KCQE_OPCODE_DESTROY_CONN; in cnic_bnx2x_fcoe_destroy()
2530 kcqe.fcoe_conn_id = req->conn_id; in cnic_bnx2x_fcoe_destroy()
2531 kcqe.fcoe_conn_context_id = cid; in cnic_bnx2x_fcoe_destroy()
2533 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_fcoe_destroy()
2583 struct kcqe kcqe; in cnic_bnx2x_kwqe_err() local
2584 struct kcqe *cqes[1]; in cnic_bnx2x_kwqe_err()
2592 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_kwqe_err()
2610 kcqe.kcqe_op_flag = kcqe_op << KCQE_FLAGS_OPCODE_SHIFT; in cnic_bnx2x_kwqe_err()
2611 kcqe.kcqe_op_flag |= KCQE_FLAGS_LAYER_MASK_L5_FCOE; in cnic_bnx2x_kwqe_err()
2612 kcqe.kcqe_info1 = FCOE_KCQE_COMPLETION_STATUS_PARITY_ERROR; in cnic_bnx2x_kwqe_err()
2613 kcqe.kcqe_info2 = cid; in cnic_bnx2x_kwqe_err()
2614 kcqe.kcqe_info0 = l5_cid; in cnic_bnx2x_kwqe_err()
2621 kcqe.kcqe_op_flag = (opcode + 0x10) << KCQE_FLAGS_OPCODE_SHIFT; in cnic_bnx2x_kwqe_err()
2622 kcqe.kcqe_op_flag |= KCQE_FLAGS_LAYER_MASK_L5_ISCSI; in cnic_bnx2x_kwqe_err()
2623 kcqe.kcqe_info1 = ISCSI_KCQE_COMPLETION_STATUS_PARITY_ERR; in cnic_bnx2x_kwqe_err()
2624 kcqe.kcqe_info2 = cid; in cnic_bnx2x_kwqe_err()
2625 cnic_get_l5_cid(cp, BNX2X_SW_CID(cid), &kcqe.kcqe_info0); in cnic_bnx2x_kwqe_err()
2628 struct l4_kcq *l4kcqe = (struct l4_kcq *) &kcqe; in cnic_bnx2x_kwqe_err()
2640 kcqe.kcqe_op_flag = (kcqe_op << KCQE_FLAGS_OPCODE_SHIFT) | in cnic_bnx2x_kwqe_err()
2649 cqes[0] = &kcqe; in cnic_bnx2x_kwqe_err()
2889 struct kcqe *kcqe; in cnic_get_kcqes() local
2898 kcqe = &info->kcq[KCQ_PG(ri)][KCQ_IDX(ri)]; in cnic_get_kcqes()
2899 cp->completed_kcq[kcqe_cnt++] = kcqe; in cnic_get_kcqes()
2902 if (likely(!(kcqe->kcqe_op_flag & KCQE_FLAGS_NEXT))) { in cnic_get_kcqes()
3942 static void cnic_cm_process_offld_pg(struct cnic_dev *dev, struct l4_kcq *kcqe) in cnic_cm_process_offld_pg() argument
3945 u32 l5_cid = kcqe->pg_host_opaque; in cnic_cm_process_offld_pg()
3946 u8 opcode = kcqe->op_code; in cnic_cm_process_offld_pg()
3958 if (kcqe->status == L4_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAIL) { in cnic_cm_process_offld_pg()
3965 csk->pg_cid = kcqe->pg_cid; in cnic_cm_process_offld_pg()
3973 static void cnic_process_fcoe_term_conn(struct cnic_dev *dev, struct kcqe *kcqe) in cnic_process_fcoe_term_conn() argument
3976 struct fcoe_kcqe *fc_kcqe = (struct fcoe_kcqe *) kcqe; in cnic_process_fcoe_term_conn()
3985 static void cnic_cm_process_kcqe(struct cnic_dev *dev, struct kcqe *kcqe) in cnic_cm_process_kcqe() argument
3988 struct l4_kcq *l4kcqe = (struct l4_kcq *) kcqe; in cnic_cm_process_kcqe()
3994 cnic_process_fcoe_term_conn(dev, kcqe); in cnic_cm_process_kcqe()
4038 struct iscsi_kcqe *l5kcqe = (struct iscsi_kcqe *) kcqe; in cnic_cm_process_kcqe()
4072 static void cnic_cm_indicate_kcqe(void *data, struct kcqe *kcqe[], u32 num) in cnic_cm_indicate_kcqe() argument
4078 cnic_cm_process_kcqe(dev, kcqe[i]); in cnic_cm_indicate_kcqe()
4780 val = (CNIC_PAGE_SIZE / sizeof(struct kcqe) - 1) << 16; in cnic_start_bnx2_hw()
4783 val = ((CNIC_PAGE_SIZE / sizeof(struct kcqe)) << 16) | KCQ_PAGE_CNT; in cnic_start_bnx2_hw()