Lines Matching refs:compl
111 static inline bool be_mcc_compl_is_new(struct be_mcc_compl *compl) in be_mcc_compl_is_new() argument
115 if (compl->flags != 0) { in be_mcc_compl_is_new()
116 flags = le32_to_cpu(compl->flags); in be_mcc_compl_is_new()
118 compl->flags = flags; in be_mcc_compl_is_new()
126 static inline void be_mcc_compl_use(struct be_mcc_compl *compl) in be_mcc_compl_use() argument
128 compl->flags = 0; in be_mcc_compl_use()
158 struct be_mcc_compl *compl, in be_async_cmd_process() argument
161 enum mcc_base_status base_status = base_status(compl->status); in be_async_cmd_process()
184 adapter->flash_status = compl->status; in be_async_cmd_process()
215 struct be_mcc_compl *compl) in be_mcc_compl_process() argument
224 be_dws_le_to_cpu(compl, 4); in be_mcc_compl_process()
226 base_status = base_status(compl->status); in be_mcc_compl_process()
227 addl_status = addl_status(compl->status); in be_mcc_compl_process()
229 resp_hdr = be_decode_resp_hdr(compl->tag0, compl->tag1); in be_mcc_compl_process()
235 be_async_cmd_process(adapter, compl, resp_hdr); in be_mcc_compl_process()
249 return compl->status; in be_mcc_compl_process()
254 struct be_mcc_compl *compl) in be_async_link_state_process() argument
257 (struct be_async_event_link_state *)compl; in be_async_link_state_process()
280 struct be_mcc_compl *compl) in be_async_port_misconfig_event_process() argument
283 (struct be_async_event_misconfig_port *)compl; in be_async_port_misconfig_event_process()
304 struct be_mcc_compl *compl) in be_async_grp5_cos_priority_process() argument
307 (struct be_async_event_grp5_cos_priority *)compl; in be_async_grp5_cos_priority_process()
319 struct be_mcc_compl *compl) in be_async_grp5_qos_speed_process() argument
322 (struct be_async_event_grp5_qos_link_speed *)compl; in be_async_grp5_qos_speed_process()
331 struct be_mcc_compl *compl) in be_async_grp5_pvid_state_process() argument
334 (struct be_async_event_grp5_pvid_state *)compl; in be_async_grp5_pvid_state_process()
346 struct be_mcc_compl *compl) in be_async_grp5_fw_control_process() argument
348 struct be_async_fw_control *evt = (struct be_async_fw_control *)compl; in be_async_grp5_fw_control_process()
360 struct be_mcc_compl *compl) in be_async_grp5_evt_process() argument
362 u8 event_type = (compl->flags >> ASYNC_EVENT_TYPE_SHIFT) & in be_async_grp5_evt_process()
367 be_async_grp5_cos_priority_process(adapter, compl); in be_async_grp5_evt_process()
370 be_async_grp5_qos_speed_process(adapter, compl); in be_async_grp5_evt_process()
373 be_async_grp5_pvid_state_process(adapter, compl); in be_async_grp5_evt_process()
377 be_async_grp5_fw_control_process(adapter, compl); in be_async_grp5_evt_process()
441 struct be_mcc_compl *compl) in be_mcc_event_process() argument
443 if (is_link_state_evt(compl->flags)) in be_mcc_event_process()
444 be_async_link_state_process(adapter, compl); in be_mcc_event_process()
445 else if (is_grp5_evt(compl->flags)) in be_mcc_event_process()
446 be_async_grp5_evt_process(adapter, compl); in be_mcc_event_process()
447 else if (is_dbg_evt(compl->flags)) in be_mcc_event_process()
448 be_async_dbg_evt_process(adapter, compl); in be_mcc_event_process()
449 else if (is_sliport_evt(compl->flags)) in be_mcc_event_process()
450 be_async_sliport_evt_process(adapter, compl); in be_mcc_event_process()
456 struct be_mcc_compl *compl = queue_tail_node(mcc_cq); in be_mcc_compl_get() local
458 if (be_mcc_compl_is_new(compl)) { in be_mcc_compl_get()
460 return compl; in be_mcc_compl_get()
487 struct be_mcc_compl *compl; in be_process_mcc() local
493 while ((compl = be_mcc_compl_get(adapter))) { in be_process_mcc()
494 if (compl->flags & CQE_FLAGS_ASYNC_MASK) { in be_process_mcc()
495 be_mcc_event_process(adapter, compl); in be_process_mcc()
496 } else if (compl->flags & CQE_FLAGS_COMPLETED_MASK) { in be_process_mcc()
497 status = be_mcc_compl_process(adapter, compl); in be_process_mcc()
500 be_mcc_compl_use(compl); in be_process_mcc()
609 struct be_mcc_compl *compl = &mbox->compl; in be_mbox_notify_wait() local
636 if (be_mcc_compl_is_new(compl)) { in be_mbox_notify_wait()
637 status = be_mcc_compl_process(adapter, &mbox->compl); in be_mbox_notify_wait()
638 be_mcc_compl_use(compl); in be_mbox_notify_wait()