Lines Matching refs:compl
291 static inline bool be_mcc_compl_is_new(struct be_mcc_compl *compl) in be_mcc_compl_is_new() argument
293 if (compl->flags != 0) { in be_mcc_compl_is_new()
294 compl->flags = le32_to_cpu(compl->flags); in be_mcc_compl_is_new()
295 WARN_ON((compl->flags & CQE_FLAGS_VALID_MASK) == 0); in be_mcc_compl_is_new()
301 static inline void be_mcc_compl_use(struct be_mcc_compl *compl) in be_mcc_compl_use() argument
303 compl->flags = 0; in be_mcc_compl_use()
318 struct be_mcc_compl *compl) in be_mcc_compl_process() argument
326 be_dws_le_to_cpu(compl, 4); in be_mcc_compl_process()
328 compl_status = (compl->status >> CQE_STATUS_COMPL_SHIFT) & in be_mcc_compl_process()
331 extd_status = (compl->status >> CQE_STATUS_EXTD_SHIFT) & in be_mcc_compl_process()
353 struct be_mcc_compl *compl) in be_mcc_compl_process_isr() argument
359 be_dws_le_to_cpu(compl, 4); in be_mcc_compl_process_isr()
361 compl_status = (compl->status >> CQE_STATUS_COMPL_SHIFT) & in be_mcc_compl_process_isr()
367 tag = (compl->tag0 & 0x000000FF); in be_mcc_compl_process_isr()
368 extd_status = (compl->status >> CQE_STATUS_EXTD_SHIFT) & in be_mcc_compl_process_isr()
372 ctrl->mcc_numtag[tag] |= (compl->tag0 & 0x00FF0000); in be_mcc_compl_process_isr()
407 struct be_mcc_compl *compl = queue_tail_node(mcc_cq); in be_mcc_compl_get() local
409 if (be_mcc_compl_is_new(compl)) { in be_mcc_compl_get()
411 return compl; in be_mcc_compl_get()
465 struct be_mcc_compl *compl; in beiscsi_process_mcc() local
470 while ((compl = be_mcc_compl_get(phba))) { in beiscsi_process_mcc()
471 if (compl->flags & CQE_FLAGS_ASYNC_MASK) { in beiscsi_process_mcc()
473 if (is_link_state_evt(compl->flags)) in beiscsi_process_mcc()
476 (struct be_async_event_link_state *) compl); in beiscsi_process_mcc()
477 else if (is_iscsi_evt(compl->flags)) { in beiscsi_process_mcc()
478 switch (iscsi_evt_type(compl->flags)) { in beiscsi_process_mcc()
488 compl->flags); in beiscsi_process_mcc()
496 compl->flags); in beiscsi_process_mcc()
503 " = 0x%08x\n", compl->flags); in beiscsi_process_mcc()
505 } else if (compl->flags & CQE_FLAGS_COMPLETED_MASK) { in beiscsi_process_mcc()
506 status = be_mcc_compl_process(ctrl, compl); in beiscsi_process_mcc()
509 be_mcc_compl_use(compl); in beiscsi_process_mcc()
647 struct be_mcc_compl *compl = &mbox->compl; in be_mbox_notify() local
673 if (be_mcc_compl_is_new(compl)) { in be_mbox_notify()
674 status = be_mcc_compl_process(ctrl, &mbox->compl); in be_mbox_notify()
675 be_mcc_compl_use(compl); in be_mbox_notify()
704 struct be_mcc_compl *compl = &mbox->compl; in be_mbox_notify_wait() local
731 if (be_mcc_compl_is_new(compl)) { in be_mbox_notify_wait()
732 status = be_mcc_compl_process(ctrl, &mbox->compl); in be_mbox_notify_wait()
733 be_mcc_compl_use(compl); in be_mbox_notify_wait()