Lines Matching refs:kcqe
955 struct kcqe **kcq; in cnic_alloc_kcq()
964 kcq = (struct kcqe **) info->dma.pg_arr; in cnic_alloc_kcq()
1371 struct kcqe *cqes[], u32 num_cqes) in cnic_reply_bnx2x_kcqes()
1471 struct iscsi_kcqe kcqe; in cnic_bnx2x_iscsi_init2() local
1472 struct kcqe *cqes[1]; in cnic_bnx2x_iscsi_init2()
1474 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_iscsi_init2()
1476 kcqe.completion_status = in cnic_bnx2x_iscsi_init2()
1498 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_SUCCESS; in cnic_bnx2x_iscsi_init2()
1501 kcqe.op_code = ISCSI_KCQE_OPCODE_INIT; in cnic_bnx2x_iscsi_init2()
1502 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_iscsi_init2()
1798 struct iscsi_kcqe kcqe; in cnic_bnx2x_iscsi_ofld1() local
1799 struct kcqe *cqes[1]; in cnic_bnx2x_iscsi_ofld1()
1820 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_iscsi_ofld1()
1821 kcqe.op_code = ISCSI_KCQE_OPCODE_OFFLOAD_CONN; in cnic_bnx2x_iscsi_ofld1()
1822 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_ofld1()
1823 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE; in cnic_bnx2x_iscsi_ofld1()
1827 kcqe.completion_status = in cnic_bnx2x_iscsi_ofld1()
1849 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_SUCCESS; in cnic_bnx2x_iscsi_ofld1()
1850 kcqe.iscsi_conn_context_id = BNX2X_HW_CID(cp, cp->ctx_tbl[l5_cid].cid); in cnic_bnx2x_iscsi_ofld1()
1853 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_iscsi_ofld1()
1916 struct iscsi_kcqe kcqe; in cnic_bnx2x_iscsi_destroy() local
1917 struct kcqe *cqes[1]; in cnic_bnx2x_iscsi_destroy()
1944 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_iscsi_destroy()
1945 kcqe.op_code = ISCSI_KCQE_OPCODE_DESTROY_CONN; in cnic_bnx2x_iscsi_destroy()
1946 kcqe.iscsi_conn_id = l5_cid; in cnic_bnx2x_iscsi_destroy()
1947 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_SUCCESS; in cnic_bnx2x_iscsi_destroy()
1948 kcqe.iscsi_conn_context_id = req->context_id; in cnic_bnx2x_iscsi_destroy()
1950 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_iscsi_destroy()
2168 struct l4_kcq kcqe; in cnic_bnx2x_offload_pg() local
2169 struct kcqe *cqes[1]; in cnic_bnx2x_offload_pg()
2171 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_offload_pg()
2172 kcqe.pg_host_opaque = req->host_opaque; in cnic_bnx2x_offload_pg()
2173 kcqe.pg_cid = req->host_opaque; in cnic_bnx2x_offload_pg()
2174 kcqe.op_code = L4_KCQE_OPCODE_VALUE_OFFLOAD_PG; in cnic_bnx2x_offload_pg()
2175 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_offload_pg()
2183 struct l4_kcq kcqe; in cnic_bnx2x_update_pg() local
2184 struct kcqe *cqes[1]; in cnic_bnx2x_update_pg()
2186 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_update_pg()
2187 kcqe.pg_host_opaque = req->pg_host_opaque; in cnic_bnx2x_update_pg()
2188 kcqe.pg_cid = req->pg_cid; in cnic_bnx2x_update_pg()
2189 kcqe.op_code = L4_KCQE_OPCODE_VALUE_UPDATE_PG; in cnic_bnx2x_update_pg()
2190 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_update_pg()
2290 struct fcoe_kcqe kcqe; in cnic_bnx2x_fcoe_ofld1() local
2291 struct kcqe *cqes[1]; in cnic_bnx2x_fcoe_ofld1()
2359 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_fcoe_ofld1()
2360 kcqe.op_code = FCOE_KCQE_OPCODE_OFFLOAD_CONN; in cnic_bnx2x_fcoe_ofld1()
2361 kcqe.fcoe_conn_id = req1->fcoe_conn_id; in cnic_bnx2x_fcoe_ofld1()
2362 kcqe.completion_status = FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE; in cnic_bnx2x_fcoe_ofld1()
2364 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_fcoe_ofld1()
2437 struct fcoe_kcqe kcqe; in cnic_bnx2x_fcoe_destroy() local
2438 struct kcqe *cqes[1]; in cnic_bnx2x_fcoe_destroy()
2453 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_fcoe_destroy()
2454 kcqe.completion_status = FCOE_KCQE_COMPLETION_STATUS_ERROR; in cnic_bnx2x_fcoe_destroy()
2461 kcqe.completion_status = 0; in cnic_bnx2x_fcoe_destroy()
2467 kcqe.op_code = FCOE_KCQE_OPCODE_DESTROY_CONN; in cnic_bnx2x_fcoe_destroy()
2468 kcqe.fcoe_conn_id = req->conn_id; in cnic_bnx2x_fcoe_destroy()
2469 kcqe.fcoe_conn_context_id = cid; in cnic_bnx2x_fcoe_destroy()
2471 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_fcoe_destroy()
2522 struct kcqe kcqe; in cnic_bnx2x_kwqe_err() local
2523 struct kcqe *cqes[1]; in cnic_bnx2x_kwqe_err()
2531 memset(&kcqe, 0, sizeof(kcqe)); in cnic_bnx2x_kwqe_err()
2549 kcqe.kcqe_op_flag = kcqe_op << KCQE_FLAGS_OPCODE_SHIFT; in cnic_bnx2x_kwqe_err()
2550 kcqe.kcqe_op_flag |= KCQE_FLAGS_LAYER_MASK_L5_FCOE; in cnic_bnx2x_kwqe_err()
2551 kcqe.kcqe_info1 = FCOE_KCQE_COMPLETION_STATUS_PARITY_ERROR; in cnic_bnx2x_kwqe_err()
2552 kcqe.kcqe_info2 = cid; in cnic_bnx2x_kwqe_err()
2553 kcqe.kcqe_info0 = l5_cid; in cnic_bnx2x_kwqe_err()
2560 kcqe.kcqe_op_flag = (opcode + 0x10) << KCQE_FLAGS_OPCODE_SHIFT; in cnic_bnx2x_kwqe_err()
2561 kcqe.kcqe_op_flag |= KCQE_FLAGS_LAYER_MASK_L5_ISCSI; in cnic_bnx2x_kwqe_err()
2562 kcqe.kcqe_info1 = ISCSI_KCQE_COMPLETION_STATUS_PARITY_ERR; in cnic_bnx2x_kwqe_err()
2563 kcqe.kcqe_info2 = cid; in cnic_bnx2x_kwqe_err()
2564 cnic_get_l5_cid(cp, BNX2X_SW_CID(cid), &kcqe.kcqe_info0); in cnic_bnx2x_kwqe_err()
2567 struct l4_kcq *l4kcqe = (struct l4_kcq *) &kcqe; in cnic_bnx2x_kwqe_err()
2579 kcqe.kcqe_op_flag = (kcqe_op << KCQE_FLAGS_OPCODE_SHIFT) | in cnic_bnx2x_kwqe_err()
2588 cqes[0] = (struct kcqe *) &kcqe; in cnic_bnx2x_kwqe_err()
2828 struct kcqe *kcqe; in cnic_get_kcqes() local
2837 kcqe = &info->kcq[KCQ_PG(ri)][KCQ_IDX(ri)]; in cnic_get_kcqes()
2838 cp->completed_kcq[kcqe_cnt++] = kcqe; in cnic_get_kcqes()
2841 if (likely(!(kcqe->kcqe_op_flag & KCQE_FLAGS_NEXT))) { in cnic_get_kcqes()
3851 static void cnic_cm_process_offld_pg(struct cnic_dev *dev, struct l4_kcq *kcqe) in cnic_cm_process_offld_pg() argument
3854 u32 l5_cid = kcqe->pg_host_opaque; in cnic_cm_process_offld_pg()
3855 u8 opcode = kcqe->op_code; in cnic_cm_process_offld_pg()
3867 if (kcqe->status == L4_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAIL) { in cnic_cm_process_offld_pg()
3874 csk->pg_cid = kcqe->pg_cid; in cnic_cm_process_offld_pg()
3882 static void cnic_process_fcoe_term_conn(struct cnic_dev *dev, struct kcqe *kcqe) in cnic_process_fcoe_term_conn() argument
3885 struct fcoe_kcqe *fc_kcqe = (struct fcoe_kcqe *) kcqe; in cnic_process_fcoe_term_conn()
3894 static void cnic_cm_process_kcqe(struct cnic_dev *dev, struct kcqe *kcqe) in cnic_cm_process_kcqe() argument
3897 struct l4_kcq *l4kcqe = (struct l4_kcq *) kcqe; in cnic_cm_process_kcqe()
3903 cnic_process_fcoe_term_conn(dev, kcqe); in cnic_cm_process_kcqe()
3970 static void cnic_cm_indicate_kcqe(void *data, struct kcqe *kcqe[], u32 num) in cnic_cm_indicate_kcqe() argument
3976 cnic_cm_process_kcqe(dev, kcqe[i]); in cnic_cm_indicate_kcqe()
4677 val = (BCM_PAGE_SIZE / sizeof(struct kcqe) - 1) << 16; in cnic_start_bnx2_hw()
4680 val = ((BCM_PAGE_SIZE / sizeof(struct kcqe)) << 16) | KCQ_PAGE_CNT; in cnic_start_bnx2_hw()