Lines Matching refs:fwping
4717 bfa_trc(diag, diag->fwping.lock); in bfa_diag_notify()
4723 if (diag->fwping.lock) { in bfa_diag_notify()
4724 diag->fwping.status = BFA_STATUS_IOC_FAILURE; in bfa_diag_notify()
4725 diag->fwping.cbfn(diag->fwping.cbarg, in bfa_diag_notify()
4726 diag->fwping.status); in bfa_diag_notify()
4727 diag->fwping.lock = 0; in bfa_diag_notify()
4815 bfa_trc(diag, diag->fwping.dbuf_pa); in diag_fwping_send()
4819 *((u32 *)diag->fwping.dbuf_kva + i) = diag->fwping.data; in diag_fwping_send()
4822 fwping_req = (struct bfi_diag_fwping_req_s *)diag->fwping.mbcmd.msg; in diag_fwping_send()
4826 diag->fwping.dbuf_pa); in diag_fwping_send()
4828 fwping_req->count = cpu_to_be32(diag->fwping.count); in diag_fwping_send()
4830 fwping_req->data = diag->fwping.data; in diag_fwping_send()
4837 bfa_ioc_mbox_queue(diag->ioc, &diag->fwping.mbcmd); in diag_fwping_send()
4852 pat = (diag->fwping.count & 0x1) ? ~(diag->fwping.data) : in diag_fwping_comp()
4853 diag->fwping.data; in diag_fwping_comp()
4855 if (diag->fwping.data != rsp_data) { in diag_fwping_comp()
4857 diag->fwping.result->dmastatus = in diag_fwping_comp()
4859 diag->fwping.status = BFA_STATUS_DATACORRUPTED; in diag_fwping_comp()
4860 diag->fwping.cbfn(diag->fwping.cbarg, in diag_fwping_comp()
4861 diag->fwping.status); in diag_fwping_comp()
4862 diag->fwping.lock = 0; in diag_fwping_comp()
4867 if (*((u32 *)diag->fwping.dbuf_kva + i) != pat) { in diag_fwping_comp()
4871 *((u32 *)diag->fwping.dbuf_kva + i)); in diag_fwping_comp()
4872 diag->fwping.result->dmastatus = in diag_fwping_comp()
4874 diag->fwping.status = BFA_STATUS_DATACORRUPTED; in diag_fwping_comp()
4875 diag->fwping.cbfn(diag->fwping.cbarg, in diag_fwping_comp()
4876 diag->fwping.status); in diag_fwping_comp()
4877 diag->fwping.lock = 0; in diag_fwping_comp()
4881 diag->fwping.result->dmastatus = BFA_STATUS_OK; in diag_fwping_comp()
4882 diag->fwping.status = BFA_STATUS_OK; in diag_fwping_comp()
4883 diag->fwping.cbfn(diag->fwping.cbarg, diag->fwping.status); in diag_fwping_comp()
4884 diag->fwping.lock = 0; in diag_fwping_comp()
4886 diag->fwping.status = BFA_STATUS_HDMA_FAILED; in diag_fwping_comp()
4887 diag->fwping.cbfn(diag->fwping.cbarg, diag->fwping.status); in diag_fwping_comp()
4888 diag->fwping.lock = 0; in diag_fwping_comp()
5120 if (diag->block || diag->fwping.lock) { in bfa_diag_fwping()
5122 bfa_trc(diag, diag->fwping.lock); in bfa_diag_fwping()
5127 diag->fwping.lock = 1; in bfa_diag_fwping()
5128 diag->fwping.cbfn = cbfn; in bfa_diag_fwping()
5129 diag->fwping.cbarg = cbarg; in bfa_diag_fwping()
5130 diag->fwping.result = result; in bfa_diag_fwping()
5131 diag->fwping.data = data; in bfa_diag_fwping()
5132 diag->fwping.count = cnt; in bfa_diag_fwping()
5135 diag->fwping.result->data = 0; in bfa_diag_fwping()
5136 diag->fwping.result->status = BFA_STATUS_OK; in bfa_diag_fwping()
5283 diag->fwping.dbuf_kva = dm_kva; in bfa_diag_memclaim()
5284 diag->fwping.dbuf_pa = dm_pa; in bfa_diag_memclaim()
5285 memset(diag->fwping.dbuf_kva, 0, BFI_DIAG_DMA_BUF_SZ); in bfa_diag_memclaim()