Lines Matching refs:mbx
315 struct qlcnic_mailbox *mbx = ahw->mailbox; in qlcnic_sriov_post_bc_msg() local
328 err = mbx->ops->enqueue_cmd(adapter, &cmd, &timeout); in qlcnic_sriov_post_bc_msg()
342 flush_workqueue(mbx->work_q); in qlcnic_sriov_post_bc_msg()
718 static int qlcnic_sriov_alloc_bc_mbx_args(struct qlcnic_cmd_args *mbx, u32 type) in qlcnic_sriov_alloc_bc_mbx_args() argument
728 mbx->op_type = QLC_BC_CMD; in qlcnic_sriov_alloc_bc_mbx_args()
729 mbx->req.num = mbx_tbl[i].in_args; in qlcnic_sriov_alloc_bc_mbx_args()
730 mbx->rsp.num = mbx_tbl[i].out_args; in qlcnic_sriov_alloc_bc_mbx_args()
731 mbx->req.arg = kcalloc(mbx->req.num, sizeof(u32), in qlcnic_sriov_alloc_bc_mbx_args()
733 if (!mbx->req.arg) in qlcnic_sriov_alloc_bc_mbx_args()
735 mbx->rsp.arg = kcalloc(mbx->rsp.num, sizeof(u32), in qlcnic_sriov_alloc_bc_mbx_args()
737 if (!mbx->rsp.arg) { in qlcnic_sriov_alloc_bc_mbx_args()
738 kfree(mbx->req.arg); in qlcnic_sriov_alloc_bc_mbx_args()
739 mbx->req.arg = NULL; in qlcnic_sriov_alloc_bc_mbx_args()
742 mbx->req.arg[0] = (type | (mbx->req.num << 16) | in qlcnic_sriov_alloc_bc_mbx_args()
744 mbx->rsp.arg[0] = (type & 0xffff) | mbx->rsp.num << 16; in qlcnic_sriov_alloc_bc_mbx_args()
1376 struct qlcnic_mailbox *mbx = ahw->mailbox; in __qlcnic_sriov_issue_cmd() local
1393 if (!test_bit(QLC_83XX_MBX_READY, &mbx->status)) { in __qlcnic_sriov_issue_cmd()
1441 clear_bit(QLC_83XX_MBX_READY, &mbx->status); in __qlcnic_sriov_issue_cmd()
1770 struct qlcnic_mailbox *mbx = ahw->mailbox; in qlcnic_sriov_vf_handle_context_reset() local
1781 clear_bit(QLC_83XX_MBX_READY, &mbx->status); in qlcnic_sriov_vf_handle_context_reset()
1806 clear_bit(QLC_83XX_MBX_READY, &mbx->status); in qlcnic_sriov_vf_handle_context_reset()
1856 struct qlcnic_mailbox *mbx = adapter->ahw->mailbox; in qlcnic_sriov_vf_idc_need_quiescent_state() local
1864 clear_bit(QLC_83XX_MBX_READY, &mbx->status); in qlcnic_sriov_vf_idc_need_quiescent_state()
1873 struct qlcnic_mailbox *mbx = adapter->ahw->mailbox; in qlcnic_sriov_vf_idc_init_reset_state() local
1883 clear_bit(QLC_83XX_MBX_READY, &mbx->status); in qlcnic_sriov_vf_idc_init_reset_state()