Lines Matching refs:compl
139 static inline bool be_mcc_compl_is_new(struct be_mcc_compl *compl) in be_mcc_compl_is_new() argument
143 if (compl->flags != 0) { in be_mcc_compl_is_new()
144 flags = le32_to_cpu(compl->flags); in be_mcc_compl_is_new()
146 compl->flags = flags; in be_mcc_compl_is_new()
154 static inline void be_mcc_compl_use(struct be_mcc_compl *compl) in be_mcc_compl_use() argument
156 compl->flags = 0; in be_mcc_compl_use()
186 struct be_mcc_compl *compl, in be_async_cmd_process() argument
189 enum mcc_base_status base_status = base_status(compl->status); in be_async_cmd_process()
212 adapter->flash_status = compl->status; in be_async_cmd_process()
243 struct be_mcc_compl *compl) in be_mcc_compl_process() argument
252 be_dws_le_to_cpu(compl, 4); in be_mcc_compl_process()
254 base_status = base_status(compl->status); in be_mcc_compl_process()
255 addl_status = addl_status(compl->status); in be_mcc_compl_process()
257 resp_hdr = be_decode_resp_hdr(compl->tag0, compl->tag1); in be_mcc_compl_process()
263 be_async_cmd_process(adapter, compl, resp_hdr); in be_mcc_compl_process()
278 return compl->status; in be_mcc_compl_process()
283 struct be_mcc_compl *compl) in be_async_link_state_process() argument
286 (struct be_async_event_link_state *)compl; in be_async_link_state_process()
309 struct be_mcc_compl *compl) in be_async_port_misconfig_event_process() argument
312 (struct be_async_event_misconfig_port *)compl; in be_async_port_misconfig_event_process()
367 struct be_mcc_compl *compl) in be_async_grp5_cos_priority_process() argument
370 (struct be_async_event_grp5_cos_priority *)compl; in be_async_grp5_cos_priority_process()
381 struct be_mcc_compl *compl) in be_async_grp5_qos_speed_process() argument
384 (struct be_async_event_grp5_qos_link_speed *)compl; in be_async_grp5_qos_speed_process()
393 struct be_mcc_compl *compl) in be_async_grp5_pvid_state_process() argument
396 (struct be_async_event_grp5_pvid_state *)compl; in be_async_grp5_pvid_state_process()
408 struct be_mcc_compl *compl) in be_async_grp5_fw_control_process() argument
410 struct be_async_fw_control *evt = (struct be_async_fw_control *)compl; in be_async_grp5_fw_control_process()
422 struct be_mcc_compl *compl) in be_async_grp5_evt_process() argument
424 u8 event_type = (compl->flags >> ASYNC_EVENT_TYPE_SHIFT) & in be_async_grp5_evt_process()
429 be_async_grp5_cos_priority_process(adapter, compl); in be_async_grp5_evt_process()
432 be_async_grp5_qos_speed_process(adapter, compl); in be_async_grp5_evt_process()
435 be_async_grp5_pvid_state_process(adapter, compl); in be_async_grp5_evt_process()
439 be_async_grp5_fw_control_process(adapter, compl); in be_async_grp5_evt_process()
503 struct be_mcc_compl *compl) in be_mcc_event_process() argument
505 if (is_link_state_evt(compl->flags)) in be_mcc_event_process()
506 be_async_link_state_process(adapter, compl); in be_mcc_event_process()
507 else if (is_grp5_evt(compl->flags)) in be_mcc_event_process()
508 be_async_grp5_evt_process(adapter, compl); in be_mcc_event_process()
509 else if (is_dbg_evt(compl->flags)) in be_mcc_event_process()
510 be_async_dbg_evt_process(adapter, compl); in be_mcc_event_process()
511 else if (is_sliport_evt(compl->flags)) in be_mcc_event_process()
512 be_async_sliport_evt_process(adapter, compl); in be_mcc_event_process()
518 struct be_mcc_compl *compl = queue_tail_node(mcc_cq); in be_mcc_compl_get() local
520 if (be_mcc_compl_is_new(compl)) { in be_mcc_compl_get()
522 return compl; in be_mcc_compl_get()
549 struct be_mcc_compl *compl; in be_process_mcc() local
555 while ((compl = be_mcc_compl_get(adapter))) { in be_process_mcc()
556 if (compl->flags & CQE_FLAGS_ASYNC_MASK) { in be_process_mcc()
557 be_mcc_event_process(adapter, compl); in be_process_mcc()
558 } else if (compl->flags & CQE_FLAGS_COMPLETED_MASK) { in be_process_mcc()
559 status = be_mcc_compl_process(adapter, compl); in be_process_mcc()
562 be_mcc_compl_use(compl); in be_process_mcc()
671 struct be_mcc_compl *compl = &mbox->compl; in be_mbox_notify_wait() local
698 if (be_mcc_compl_is_new(compl)) { in be_mbox_notify_wait()
699 status = be_mcc_compl_process(adapter, &mbox->compl); in be_mbox_notify_wait()
700 be_mcc_compl_use(compl); in be_mbox_notify_wait()