Lines Matching refs:compl
140 static inline bool be_mcc_compl_is_new(struct be_mcc_compl *compl) in be_mcc_compl_is_new() argument
144 if (compl->flags != 0) { in be_mcc_compl_is_new()
145 flags = le32_to_cpu(compl->flags); in be_mcc_compl_is_new()
147 compl->flags = flags; in be_mcc_compl_is_new()
155 static inline void be_mcc_compl_use(struct be_mcc_compl *compl) in be_mcc_compl_use() argument
157 compl->flags = 0; in be_mcc_compl_use()
187 struct be_mcc_compl *compl, in be_async_cmd_process() argument
190 enum mcc_base_status base_status = base_status(compl->status); in be_async_cmd_process()
213 adapter->flash_status = compl->status; in be_async_cmd_process()
244 struct be_mcc_compl *compl) in be_mcc_compl_process() argument
254 be_dws_le_to_cpu(compl, 4); in be_mcc_compl_process()
256 base_status = base_status(compl->status); in be_mcc_compl_process()
257 addl_status = addl_status(compl->status); in be_mcc_compl_process()
259 resp_hdr = be_decode_resp_hdr(compl->tag0, compl->tag1); in be_mcc_compl_process()
265 be_async_cmd_process(adapter, compl, resp_hdr); in be_mcc_compl_process()
280 return compl->status; in be_mcc_compl_process()
285 struct be_mcc_compl *compl) in be_async_link_state_process() argument
288 (struct be_async_event_link_state *)compl; in be_async_link_state_process()
311 struct be_mcc_compl *compl) in be_async_port_misconfig_event_process() argument
314 (struct be_async_event_misconfig_port *)compl; in be_async_port_misconfig_event_process()
369 struct be_mcc_compl *compl) in be_async_grp5_cos_priority_process() argument
372 (struct be_async_event_grp5_cos_priority *)compl; in be_async_grp5_cos_priority_process()
383 struct be_mcc_compl *compl) in be_async_grp5_qos_speed_process() argument
386 (struct be_async_event_grp5_qos_link_speed *)compl; in be_async_grp5_qos_speed_process()
395 struct be_mcc_compl *compl) in be_async_grp5_pvid_state_process() argument
398 (struct be_async_event_grp5_pvid_state *)compl; in be_async_grp5_pvid_state_process()
410 struct be_mcc_compl *compl) in be_async_grp5_fw_control_process() argument
412 struct be_async_fw_control *evt = (struct be_async_fw_control *)compl; in be_async_grp5_fw_control_process()
424 struct be_mcc_compl *compl) in be_async_grp5_evt_process() argument
426 u8 event_type = (compl->flags >> ASYNC_EVENT_TYPE_SHIFT) & in be_async_grp5_evt_process()
431 be_async_grp5_cos_priority_process(adapter, compl); in be_async_grp5_evt_process()
434 be_async_grp5_qos_speed_process(adapter, compl); in be_async_grp5_evt_process()
437 be_async_grp5_pvid_state_process(adapter, compl); in be_async_grp5_evt_process()
441 be_async_grp5_fw_control_process(adapter, compl); in be_async_grp5_evt_process()
505 struct be_mcc_compl *compl) in be_mcc_event_process() argument
507 if (is_link_state_evt(compl->flags)) in be_mcc_event_process()
508 be_async_link_state_process(adapter, compl); in be_mcc_event_process()
509 else if (is_grp5_evt(compl->flags)) in be_mcc_event_process()
510 be_async_grp5_evt_process(adapter, compl); in be_mcc_event_process()
511 else if (is_dbg_evt(compl->flags)) in be_mcc_event_process()
512 be_async_dbg_evt_process(adapter, compl); in be_mcc_event_process()
513 else if (is_sliport_evt(compl->flags)) in be_mcc_event_process()
514 be_async_sliport_evt_process(adapter, compl); in be_mcc_event_process()
520 struct be_mcc_compl *compl = queue_tail_node(mcc_cq); in be_mcc_compl_get() local
522 if (be_mcc_compl_is_new(compl)) { in be_mcc_compl_get()
524 return compl; in be_mcc_compl_get()
551 struct be_mcc_compl *compl; in be_process_mcc() local
557 while ((compl = be_mcc_compl_get(adapter))) { in be_process_mcc()
558 if (compl->flags & CQE_FLAGS_ASYNC_MASK) { in be_process_mcc()
559 be_mcc_event_process(adapter, compl); in be_process_mcc()
560 } else if (compl->flags & CQE_FLAGS_COMPLETED_MASK) { in be_process_mcc()
561 status = be_mcc_compl_process(adapter, compl); in be_process_mcc()
564 be_mcc_compl_use(compl); in be_process_mcc()
672 struct be_mcc_compl *compl = &mbox->compl; in be_mbox_notify_wait() local
699 if (be_mcc_compl_is_new(compl)) { in be_mbox_notify_wait()
700 status = be_mcc_compl_process(adapter, &mbox->compl); in be_mbox_notify_wait()
701 be_mcc_compl_use(compl); in be_mbox_notify_wait()