Lines Matching refs:compl
109 static inline bool be_mcc_compl_is_new(struct be_mcc_compl *compl) in be_mcc_compl_is_new() argument
113 if (compl->flags != 0) { in be_mcc_compl_is_new()
114 flags = le32_to_cpu(compl->flags); in be_mcc_compl_is_new()
116 compl->flags = flags; in be_mcc_compl_is_new()
124 static inline void be_mcc_compl_use(struct be_mcc_compl *compl) in be_mcc_compl_use() argument
126 compl->flags = 0; in be_mcc_compl_use()
155 struct be_mcc_compl *compl, in be_async_cmd_process() argument
158 enum mcc_base_status base_status = base_status(compl->status); in be_async_cmd_process()
175 adapter->flash_status = compl->status; in be_async_cmd_process()
204 struct be_mcc_compl *compl) in be_mcc_compl_process() argument
213 be_dws_le_to_cpu(compl, 4); in be_mcc_compl_process()
215 base_status = base_status(compl->status); in be_mcc_compl_process()
216 addl_status = addl_status(compl->status); in be_mcc_compl_process()
218 resp_hdr = be_decode_resp_hdr(compl->tag0, compl->tag1); in be_mcc_compl_process()
224 be_async_cmd_process(adapter, compl, resp_hdr); in be_mcc_compl_process()
238 return compl->status; in be_mcc_compl_process()
243 struct be_mcc_compl *compl) in be_async_link_state_process() argument
246 (struct be_async_event_link_state *)compl; in be_async_link_state_process()
269 struct be_mcc_compl *compl) in be_async_port_misconfig_event_process() argument
272 (struct be_async_event_misconfig_port *)compl; in be_async_port_misconfig_event_process()
293 struct be_mcc_compl *compl) in be_async_grp5_cos_priority_process() argument
296 (struct be_async_event_grp5_cos_priority *)compl; in be_async_grp5_cos_priority_process()
308 struct be_mcc_compl *compl) in be_async_grp5_qos_speed_process() argument
311 (struct be_async_event_grp5_qos_link_speed *)compl; in be_async_grp5_qos_speed_process()
320 struct be_mcc_compl *compl) in be_async_grp5_pvid_state_process() argument
323 (struct be_async_event_grp5_pvid_state *)compl; in be_async_grp5_pvid_state_process()
334 struct be_mcc_compl *compl) in be_async_grp5_evt_process() argument
336 u8 event_type = (compl->flags >> ASYNC_EVENT_TYPE_SHIFT) & in be_async_grp5_evt_process()
341 be_async_grp5_cos_priority_process(adapter, compl); in be_async_grp5_evt_process()
344 be_async_grp5_qos_speed_process(adapter, compl); in be_async_grp5_evt_process()
347 be_async_grp5_pvid_state_process(adapter, compl); in be_async_grp5_evt_process()
411 struct be_mcc_compl *compl) in be_mcc_event_process() argument
413 if (is_link_state_evt(compl->flags)) in be_mcc_event_process()
414 be_async_link_state_process(adapter, compl); in be_mcc_event_process()
415 else if (is_grp5_evt(compl->flags)) in be_mcc_event_process()
416 be_async_grp5_evt_process(adapter, compl); in be_mcc_event_process()
417 else if (is_dbg_evt(compl->flags)) in be_mcc_event_process()
418 be_async_dbg_evt_process(adapter, compl); in be_mcc_event_process()
419 else if (is_sliport_evt(compl->flags)) in be_mcc_event_process()
420 be_async_sliport_evt_process(adapter, compl); in be_mcc_event_process()
426 struct be_mcc_compl *compl = queue_tail_node(mcc_cq); in be_mcc_compl_get() local
428 if (be_mcc_compl_is_new(compl)) { in be_mcc_compl_get()
430 return compl; in be_mcc_compl_get()
457 struct be_mcc_compl *compl; in be_process_mcc() local
463 while ((compl = be_mcc_compl_get(adapter))) { in be_process_mcc()
464 if (compl->flags & CQE_FLAGS_ASYNC_MASK) { in be_process_mcc()
465 be_mcc_event_process(adapter, compl); in be_process_mcc()
466 } else if (compl->flags & CQE_FLAGS_COMPLETED_MASK) { in be_process_mcc()
467 status = be_mcc_compl_process(adapter, compl); in be_process_mcc()
470 be_mcc_compl_use(compl); in be_process_mcc()
577 struct be_mcc_compl *compl = &mbox->compl; in be_mbox_notify_wait() local
604 if (be_mcc_compl_is_new(compl)) { in be_mbox_notify_wait()
605 status = be_mcc_compl_process(adapter, &mbox->compl); in be_mbox_notify_wait()
606 be_mcc_compl_use(compl); in be_mbox_notify_wait()