Searched refs:kcqe (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/drivers/net/ethernet/broadcom/
H A Dcnic.c988 struct kcqe **kcq; cnic_alloc_kcq()
997 kcq = (struct kcqe **) info->dma.pg_arr; cnic_alloc_kcq()
1425 struct kcqe *cqes[], u32 num_cqes) cnic_reply_bnx2x_kcqes()
1551 struct iscsi_kcqe kcqe; cnic_bnx2x_iscsi_init2() local
1552 struct kcqe *cqes[1]; cnic_bnx2x_iscsi_init2()
1554 memset(&kcqe, 0, sizeof(kcqe)); cnic_bnx2x_iscsi_init2()
1556 kcqe.completion_status = cnic_bnx2x_iscsi_init2()
1578 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_SUCCESS; cnic_bnx2x_iscsi_init2()
1581 kcqe.op_code = ISCSI_KCQE_OPCODE_INIT; cnic_bnx2x_iscsi_init2()
1582 cqes[0] = (struct kcqe *) &kcqe; cnic_bnx2x_iscsi_init2()
1880 struct iscsi_kcqe kcqe; cnic_bnx2x_iscsi_ofld1() local
1881 struct kcqe *cqes[1]; cnic_bnx2x_iscsi_ofld1()
1902 memset(&kcqe, 0, sizeof(kcqe)); cnic_bnx2x_iscsi_ofld1()
1903 kcqe.op_code = ISCSI_KCQE_OPCODE_OFFLOAD_CONN; cnic_bnx2x_iscsi_ofld1()
1904 kcqe.iscsi_conn_id = l5_cid; cnic_bnx2x_iscsi_ofld1()
1905 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE; cnic_bnx2x_iscsi_ofld1()
1909 kcqe.completion_status = cnic_bnx2x_iscsi_ofld1()
1931 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_SUCCESS; cnic_bnx2x_iscsi_ofld1()
1932 kcqe.iscsi_conn_context_id = BNX2X_HW_CID(bp, cp->ctx_tbl[l5_cid].cid); cnic_bnx2x_iscsi_ofld1()
1935 cqes[0] = (struct kcqe *) &kcqe; cnic_bnx2x_iscsi_ofld1()
1999 struct iscsi_kcqe kcqe; cnic_bnx2x_iscsi_destroy() local
2000 struct kcqe *cqes[1]; cnic_bnx2x_iscsi_destroy()
2027 memset(&kcqe, 0, sizeof(kcqe)); cnic_bnx2x_iscsi_destroy()
2028 kcqe.op_code = ISCSI_KCQE_OPCODE_DESTROY_CONN; cnic_bnx2x_iscsi_destroy()
2029 kcqe.iscsi_conn_id = l5_cid; cnic_bnx2x_iscsi_destroy()
2030 kcqe.completion_status = ISCSI_KCQE_COMPLETION_STATUS_SUCCESS; cnic_bnx2x_iscsi_destroy()
2031 kcqe.iscsi_conn_context_id = req->context_id; cnic_bnx2x_iscsi_destroy()
2033 cqes[0] = (struct kcqe *) &kcqe; cnic_bnx2x_iscsi_destroy()
2228 struct l4_kcq kcqe; cnic_bnx2x_offload_pg() local
2229 struct kcqe *cqes[1]; cnic_bnx2x_offload_pg()
2231 memset(&kcqe, 0, sizeof(kcqe)); cnic_bnx2x_offload_pg()
2232 kcqe.pg_host_opaque = req->host_opaque; cnic_bnx2x_offload_pg()
2233 kcqe.pg_cid = req->host_opaque; cnic_bnx2x_offload_pg()
2234 kcqe.op_code = L4_KCQE_OPCODE_VALUE_OFFLOAD_PG; cnic_bnx2x_offload_pg()
2235 cqes[0] = (struct kcqe *) &kcqe; cnic_bnx2x_offload_pg()
2243 struct l4_kcq kcqe; cnic_bnx2x_update_pg() local
2244 struct kcqe *cqes[1]; cnic_bnx2x_update_pg()
2246 memset(&kcqe, 0, sizeof(kcqe)); cnic_bnx2x_update_pg()
2247 kcqe.pg_host_opaque = req->pg_host_opaque; cnic_bnx2x_update_pg()
2248 kcqe.pg_cid = req->pg_cid; cnic_bnx2x_update_pg()
2249 kcqe.op_code = L4_KCQE_OPCODE_VALUE_UPDATE_PG; cnic_bnx2x_update_pg()
2250 cqes[0] = (struct kcqe *) &kcqe; cnic_bnx2x_update_pg()
2353 struct fcoe_kcqe kcqe; cnic_bnx2x_fcoe_ofld1() local
2354 struct kcqe *cqes[1]; cnic_bnx2x_fcoe_ofld1()
2422 memset(&kcqe, 0, sizeof(kcqe)); cnic_bnx2x_fcoe_ofld1()
2423 kcqe.op_code = FCOE_KCQE_OPCODE_OFFLOAD_CONN; cnic_bnx2x_fcoe_ofld1()
2424 kcqe.fcoe_conn_id = req1->fcoe_conn_id; cnic_bnx2x_fcoe_ofld1()
2425 kcqe.completion_status = FCOE_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAILURE; cnic_bnx2x_fcoe_ofld1()
2427 cqes[0] = (struct kcqe *) &kcqe; cnic_bnx2x_fcoe_ofld1()
2500 struct fcoe_kcqe kcqe; cnic_bnx2x_fcoe_destroy() local
2501 struct kcqe *cqes[1]; cnic_bnx2x_fcoe_destroy()
2516 memset(&kcqe, 0, sizeof(kcqe)); cnic_bnx2x_fcoe_destroy()
2517 kcqe.completion_status = FCOE_KCQE_COMPLETION_STATUS_ERROR; cnic_bnx2x_fcoe_destroy()
2524 kcqe.completion_status = 0; cnic_bnx2x_fcoe_destroy()
2530 kcqe.op_code = FCOE_KCQE_OPCODE_DESTROY_CONN; cnic_bnx2x_fcoe_destroy()
2531 kcqe.fcoe_conn_id = req->conn_id; cnic_bnx2x_fcoe_destroy()
2532 kcqe.fcoe_conn_context_id = cid; cnic_bnx2x_fcoe_destroy()
2534 cqes[0] = (struct kcqe *) &kcqe; cnic_bnx2x_fcoe_destroy()
2586 struct kcqe kcqe; cnic_bnx2x_kwqe_err() local
2587 struct kcqe *cqes[1]; cnic_bnx2x_kwqe_err()
2595 memset(&kcqe, 0, sizeof(kcqe)); cnic_bnx2x_kwqe_err()
2613 kcqe.kcqe_op_flag = kcqe_op << KCQE_FLAGS_OPCODE_SHIFT; cnic_bnx2x_kwqe_err()
2614 kcqe.kcqe_op_flag |= KCQE_FLAGS_LAYER_MASK_L5_FCOE; cnic_bnx2x_kwqe_err()
2615 kcqe.kcqe_info1 = FCOE_KCQE_COMPLETION_STATUS_PARITY_ERROR; cnic_bnx2x_kwqe_err()
2616 kcqe.kcqe_info2 = cid; cnic_bnx2x_kwqe_err()
2617 kcqe.kcqe_info0 = l5_cid; cnic_bnx2x_kwqe_err()
2624 kcqe.kcqe_op_flag = (opcode + 0x10) << KCQE_FLAGS_OPCODE_SHIFT; cnic_bnx2x_kwqe_err()
2625 kcqe.kcqe_op_flag |= KCQE_FLAGS_LAYER_MASK_L5_ISCSI; cnic_bnx2x_kwqe_err()
2626 kcqe.kcqe_info1 = ISCSI_KCQE_COMPLETION_STATUS_PARITY_ERR; cnic_bnx2x_kwqe_err()
2627 kcqe.kcqe_info2 = cid; cnic_bnx2x_kwqe_err()
2628 cnic_get_l5_cid(cp, BNX2X_SW_CID(cid), &kcqe.kcqe_info0); cnic_bnx2x_kwqe_err()
2631 struct l4_kcq *l4kcqe = (struct l4_kcq *) &kcqe; cnic_bnx2x_kwqe_err()
2643 kcqe.kcqe_op_flag = (kcqe_op << KCQE_FLAGS_OPCODE_SHIFT) | cnic_bnx2x_kwqe_err()
2652 cqes[0] = &kcqe; cnic_bnx2x_kwqe_err()
2892 struct kcqe *kcqe; cnic_get_kcqes() local
2901 kcqe = &info->kcq[KCQ_PG(ri)][KCQ_IDX(ri)]; cnic_get_kcqes()
2902 cp->completed_kcq[kcqe_cnt++] = kcqe; cnic_get_kcqes()
2905 if (likely(!(kcqe->kcqe_op_flag & KCQE_FLAGS_NEXT))) { cnic_get_kcqes()
3945 static void cnic_cm_process_offld_pg(struct cnic_dev *dev, struct l4_kcq *kcqe) cnic_cm_process_offld_pg() argument
3948 u32 l5_cid = kcqe->pg_host_opaque; cnic_cm_process_offld_pg()
3949 u8 opcode = kcqe->op_code; cnic_cm_process_offld_pg()
3960 /* Possible PG kcqe status: SUCCESS, OFFLOADED_PG, or CTX_ALLOC_FAIL */ cnic_cm_process_offld_pg()
3961 if (kcqe->status == L4_KCQE_COMPLETION_STATUS_CTX_ALLOC_FAIL) { cnic_cm_process_offld_pg()
3968 csk->pg_cid = kcqe->pg_cid; cnic_cm_process_offld_pg()
3976 static void cnic_process_fcoe_term_conn(struct cnic_dev *dev, struct kcqe *kcqe) cnic_process_fcoe_term_conn() argument
3979 struct fcoe_kcqe *fc_kcqe = (struct fcoe_kcqe *) kcqe; cnic_process_fcoe_term_conn()
3988 static void cnic_cm_process_kcqe(struct cnic_dev *dev, struct kcqe *kcqe) cnic_cm_process_kcqe() argument
3991 struct l4_kcq *l4kcqe = (struct l4_kcq *) kcqe; cnic_cm_process_kcqe()
3997 cnic_process_fcoe_term_conn(dev, kcqe); cnic_cm_process_kcqe()
4041 struct iscsi_kcqe *l5kcqe = (struct iscsi_kcqe *) kcqe; cnic_cm_process_kcqe()
4076 static void cnic_cm_indicate_kcqe(void *data, struct kcqe *kcqe[], u32 num) cnic_cm_indicate_kcqe() argument
4082 cnic_cm_process_kcqe(dev, kcqe[i]); cnic_cm_indicate_kcqe()
4782 val = (CNIC_PAGE_SIZE / sizeof(struct kcqe) - 1) << 16; cnic_start_bnx2_hw()
4785 val = ((CNIC_PAGE_SIZE / sizeof(struct kcqe)) << 16) | KCQ_PAGE_CNT; cnic_start_bnx2_hw()
H A Dcnic.h85 #define KCQE_CNT (BNX2_PAGE_SIZE / sizeof(struct kcqe))
179 struct kcqe **kcq;
272 struct kcqe *completed_kcq[MAX_COMPLETED_KCQE];
H A Dcnic_if.h70 struct kcqe { struct
369 void (*indicate_kcqes)(void *ulp_ctx, struct kcqe *cqes[],
/linux-4.4.14/drivers/scsi/bnx2fc/
H A Dbnx2fc_hwi.c1115 * @ofld_kcqe: connection offload kcqe pointer
1169 * @ofld_kcqe: connection offload kcqe pointer
1306 * @kcqe: kcqe pointer
1311 void bnx2fc_indicate_kcqe(void *context, struct kcqe *kcq[], bnx2fc_indicate_kcqe()
1316 struct fcoe_kcqe *kcqe = NULL; bnx2fc_indicate_kcqe() local
1319 kcqe = (struct fcoe_kcqe *) kcq[i++]; bnx2fc_indicate_kcqe()
1321 switch (kcqe->op_code) { bnx2fc_indicate_kcqe()
1323 bnx2fc_fastpath_notification(hba, kcqe); bnx2fc_indicate_kcqe()
1327 bnx2fc_process_ofld_cmpl(hba, kcqe); bnx2fc_indicate_kcqe()
1331 bnx2fc_process_enable_conn_cmpl(hba, kcqe); bnx2fc_indicate_kcqe()
1335 if (kcqe->completion_status != bnx2fc_indicate_kcqe()
1338 kcqe->completion_status); bnx2fc_indicate_kcqe()
1348 if (kcqe->completion_status != bnx2fc_indicate_kcqe()
1360 bnx2fc_process_conn_disable_cmpl(hba, kcqe); bnx2fc_indicate_kcqe()
1364 bnx2fc_process_conn_destroy_cmpl(hba, kcqe); bnx2fc_indicate_kcqe()
1368 if (kcqe->completion_status != bnx2fc_indicate_kcqe()
1378 kcqe->op_code); bnx2fc_indicate_kcqe()
H A Dbnx2fc.h504 void bnx2fc_indicate_kcqe(void *context, struct kcqe *kcq[],
/linux-4.4.14/drivers/scsi/bnx2i/
H A Dbnx2i_hwi.c2137 * @update_kcqe: kcqe pointer
2188 * @tcp_err: tcp error kcqe pointer
2215 * @iscsi_err: iscsi error kcqe pointer
2408 * @conn_destroy: conn destroy kcqe pointer
2441 * @ofld_kcqe: conn offload kcqe pointer
2496 * @update_kcqe: kcqe pointer
2500 static void bnx2i_indicate_kcqe(void *context, struct kcqe *kcqe[], bnx2i_indicate_kcqe() argument
2508 ikcqe = (struct iscsi_kcqe *) kcqe[i++]; bnx2i_indicate_kcqe()
2644 * @update_kcqe: kcqe pointer
2661 * @update_kcqe: kcqe pointer

Completed in 259 milliseconds