Home
last modified time | relevance | path

Searched refs:mbx (Results 1 – 25 of 57) sorted by relevance

123

/drivers/net/ethernet/intel/fm10k/
Dfm10k_mbx.c149 static u16 fm10k_mbx_index_len(struct fm10k_mbx_info *mbx, u16 head, u16 tail) in fm10k_mbx_index_len() argument
157 return len & ((mbx->mbmem_len << 1) - 1); in fm10k_mbx_index_len()
168 static u16 fm10k_mbx_tail_add(struct fm10k_mbx_info *mbx, u16 offset) in fm10k_mbx_tail_add() argument
170 u16 tail = (mbx->tail + offset + 1) & ((mbx->mbmem_len << 1) - 1); in fm10k_mbx_tail_add()
173 return (tail > mbx->tail) ? --tail : ++tail; in fm10k_mbx_tail_add()
184 static u16 fm10k_mbx_tail_sub(struct fm10k_mbx_info *mbx, u16 offset) in fm10k_mbx_tail_sub() argument
186 u16 tail = (mbx->tail - offset - 1) & ((mbx->mbmem_len << 1) - 1); in fm10k_mbx_tail_sub()
189 return (tail < mbx->tail) ? ++tail : --tail; in fm10k_mbx_tail_sub()
200 static u16 fm10k_mbx_head_add(struct fm10k_mbx_info *mbx, u16 offset) in fm10k_mbx_head_add() argument
202 u16 head = (mbx->head + offset + 1) & ((mbx->mbmem_len << 1) - 1); in fm10k_mbx_head_add()
[all …]
Dfm10k_vf.c186 struct fm10k_mbx_info *mbx = &hw->mbx; in fm10k_update_vlan_vf() local
206 return mbx->ops.enqueue_tx(hw, mbx, msg); in fm10k_update_vlan_vf()
218 struct fm10k_mbx_info *mbx) in fm10k_msg_mac_vlan_vf() argument
290 struct fm10k_mbx_info *mbx = &hw->mbx; in fm10k_update_uc_addr_vf() local
315 return mbx->ops.enqueue_tx(hw, mbx, msg); in fm10k_update_uc_addr_vf()
332 struct fm10k_mbx_info *mbx = &hw->mbx; in fm10k_update_mc_addr_vf() local
353 return mbx->ops.enqueue_tx(hw, mbx, msg); in fm10k_update_mc_addr_vf()
365 struct fm10k_mbx_info *mbx = &hw->mbx; in fm10k_update_int_moderator_vf() local
372 mbx->ops.enqueue_tx(hw, mbx, msg); in fm10k_update_int_moderator_vf()
393 struct fm10k_mbx_info *mbx) in fm10k_msg_lport_state_vf() argument
[all …]
Dfm10k_iov.c26 struct fm10k_mbx_info *mbx) in fm10k_iov_msg_error() argument
28 struct fm10k_vf_info *vf_info = (struct fm10k_vf_info *)mbx; in fm10k_iov_msg_error()
35 return fm10k_tlv_msg_error(hw, results, mbx); in fm10k_iov_msg_error()
85 vf_info->mbx.ops.connect(hw, &vf_info->mbx); in fm10k_iov_event()
126 struct fm10k_mbx_info *mbx = &vf_info->mbx; in fm10k_iov_mbx() local
130 hw->mbx.ops.process(hw, &hw->mbx); in fm10k_iov_mbx()
137 if (!mbx->timeout) { in fm10k_iov_mbx()
139 mbx->ops.connect(hw, mbx); in fm10k_iov_mbx()
143 if (!hw->mbx.ops.tx_ready(&hw->mbx, FM10K_VFMBX_MSG_MTU)) { in fm10k_iov_mbx()
150 mbx->ops.process(hw, mbx); in fm10k_iov_mbx()
[all …]
Dfm10k_pf.c324 struct fm10k_mbx_info *mbx = &hw->mbx; in fm10k_update_xc_addr_pf() local
353 return mbx->ops.enqueue_tx(hw, mbx, msg); in fm10k_update_xc_addr_pf()
411 struct fm10k_mbx_info *mbx = &hw->mbx; in fm10k_update_xcast_mode_pf() local
432 return mbx->ops.enqueue_tx(hw, mbx, msg); in fm10k_update_xcast_mode_pf()
479 struct fm10k_mbx_info *mbx = &hw->mbx; in fm10k_update_lport_state_pf() local
503 return mbx->ops.enqueue_tx(hw, mbx, msg); in fm10k_update_lport_state_pf()
894 if (vf_info->mbx.ops.enqueue_tx) { in fm10k_iov_assign_default_mac_vlan_pf()
895 err = vf_info->mbx.ops.enqueue_tx(hw, &vf_info->mbx, msg); in fm10k_iov_assign_default_mac_vlan_pf()
977 vf_info->mbx.timeout = 0; in fm10k_iov_reset_resources_pf()
978 if (vf_info->mbx.ops.disconnect) in fm10k_iov_reset_resources_pf()
[all …]
Dfm10k_common.c492 struct fm10k_mbx_info *mbx = &hw->mbx; in fm10k_get_host_state_generic() local
498 mbx->ops.process(hw, mbx); in fm10k_get_host_state_generic()
515 if (!mbx->timeout) { in fm10k_get_host_state_generic()
521 if (!mbx->ops.tx_ready(mbx, FM10K_VFMBX_MSG_MTU)) in fm10k_get_host_state_generic()
Dfm10k_pci.c962 struct fm10k_mbx_info *mbx = &hw->mbx; in fm10k_msix_mbx_vf() local
971 mbx->ops.process(hw, mbx); in fm10k_msix_mbx_vf()
1085 vf_info->mbx.ops.connect(hw, &vf_info->mbx); in fm10k_handle_fault()
1157 struct fm10k_mbx_info *mbx = &hw->mbx; in fm10k_msix_mbx_pf() local
1175 err = mbx->ops.process(hw, mbx); in fm10k_msix_mbx_pf()
1221 hw->mbx.ops.disconnect(hw, &hw->mbx); in fm10k_mbx_free_irq()
1245 struct fm10k_mbx_info *mbx) in fm10k_mbx_mac_addr() argument
1252 err = fm10k_msg_mac_vlan_vf(hw, results, mbx); in fm10k_mbx_mac_addr()
1273 struct fm10k_mbx_info __always_unused *mbx) in fm10k_mbx_error() argument
1305 err = hw->mbx.ops.register_handlers(&hw->mbx, vf_mbx_data); in fm10k_mbx_request_irq_vf()
[all …]
Dfm10k_tlv.c561 struct fm10k_mbx_info *mbx, in fm10k_tlv_msg_parse() argument
593 return data->func(hw, results, mbx); in fm10k_tlv_msg_parse()
607 struct fm10k_mbx_info *mbx) in fm10k_tlv_msg_error() argument
723 struct fm10k_mbx_info *mbx) in fm10k_tlv_msg_test() argument
744 &mbx->test_result); in fm10k_tlv_msg_test()
864 return mbx->ops.enqueue_tx(hw, mbx, reply); in fm10k_tlv_msg_test()
/drivers/net/ethernet/intel/igb/
De1000_mbx.c38 struct e1000_mbx_info *mbx = &hw->mbx; in igb_read_mbx() local
42 if (size > mbx->size) in igb_read_mbx()
43 size = mbx->size; in igb_read_mbx()
45 if (mbx->ops.read) in igb_read_mbx()
46 ret_val = mbx->ops.read(hw, msg, size, mbx_id, unlock); in igb_read_mbx()
62 struct e1000_mbx_info *mbx = &hw->mbx; in igb_write_mbx() local
65 if (size > mbx->size) in igb_write_mbx()
68 else if (mbx->ops.write) in igb_write_mbx()
69 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in igb_write_mbx()
83 struct e1000_mbx_info *mbx = &hw->mbx; in igb_check_for_msg() local
[all …]
/drivers/crypto/cavium/cpt/
Dcptvf_mbox.c11 static void cptvf_send_msg_to_pf(struct cpt_vf *cptvf, struct cpt_mbox *mbx) in cptvf_send_msg_to_pf() argument
15 mbx->msg); in cptvf_send_msg_to_pf()
17 mbx->data); in cptvf_send_msg_to_pf()
22 void cptvf_mbox_send_ack(struct cpt_vf *cptvf, struct cpt_mbox *mbx) in cptvf_mbox_send_ack() argument
24 mbx->msg = CPT_MBOX_MSG_TYPE_ACK; in cptvf_mbox_send_ack()
25 cptvf_send_msg_to_pf(cptvf, mbx); in cptvf_mbox_send_ack()
31 void cptvf_mbox_send_nack(struct cpt_vf *cptvf, struct cpt_mbox *mbx) in cptvf_mbox_send_nack() argument
33 mbx->msg = CPT_MBOX_MSG_TYPE_NACK; in cptvf_mbox_send_nack()
34 cptvf_send_msg_to_pf(cptvf, mbx); in cptvf_mbox_send_nack()
40 struct cpt_mbox mbx = {}; in cptvf_handle_mbox_intr() local
[all …]
Dcptpf_mbox.c12 struct cpt_mbox *mbx) in cpt_send_msg_to_vf() argument
16 mbx->data); in cpt_send_msg_to_vf()
17 cpt_write_csr64(cpt->reg_base, CPTX_PF_VFX_MBOXX(0, vf, 0), mbx->msg); in cpt_send_msg_to_vf()
24 struct cpt_mbox *mbx) in cpt_mbox_send_ack() argument
26 mbx->data = 0ull; in cpt_mbox_send_ack()
27 mbx->msg = CPT_MBOX_MSG_TYPE_ACK; in cpt_mbox_send_ack()
28 cpt_send_msg_to_vf(cpt, vf, mbx); in cpt_mbox_send_ack()
92 struct cpt_mbox mbx = {}; in cpt_handle_mbox_intr() local
99 mbx.msg = cpt_read_csr64(cpt->reg_base, CPTX_PF_VFX_MBOXX(0, vf, 0)); in cpt_handle_mbox_intr()
100 mbx.data = cpt_read_csr64(cpt->reg_base, CPTX_PF_VFX_MBOXX(0, vf, 1)); in cpt_handle_mbox_intr()
[all …]
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_mbx.c45 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_read_mbx() local
48 if (size > mbx->size) in ixgbe_read_mbx()
49 size = mbx->size; in ixgbe_read_mbx()
51 if (!mbx->ops) in ixgbe_read_mbx()
54 return mbx->ops->read(hw, msg, size, mbx_id); in ixgbe_read_mbx()
68 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_write_mbx() local
70 if (size > mbx->size) in ixgbe_write_mbx()
73 if (!mbx->ops) in ixgbe_write_mbx()
76 return mbx->ops->write(hw, msg, size, mbx_id); in ixgbe_write_mbx()
88 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_check_for_msg() local
[all …]
/drivers/net/ethernet/intel/igbvf/
Dmbx.c37 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_poll_for_msg() local
38 int countdown = mbx->timeout; in e1000_poll_for_msg()
40 if (!mbx->ops.check_for_msg) in e1000_poll_for_msg()
43 while (countdown && mbx->ops.check_for_msg(hw)) { in e1000_poll_for_msg()
45 udelay(mbx->usec_delay); in e1000_poll_for_msg()
50 mbx->timeout = 0; in e1000_poll_for_msg()
63 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_poll_for_ack() local
64 int countdown = mbx->timeout; in e1000_poll_for_ack()
66 if (!mbx->ops.check_for_ack) in e1000_poll_for_ack()
69 while (countdown && mbx->ops.check_for_ack(hw)) { in e1000_poll_for_ack()
[all …]
Dvf.c85 hw->mbx.ops.init_params = e1000_init_mbx_params_vf; in e1000_init_function_pointers_vf()
127 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_reset_hw_vf() local
139 while (!mbx->ops.check_for_rst(hw) && timeout) { in e1000_reset_hw_vf()
146 mbx->timeout = E1000_VF_MBX_INIT_TIMEOUT; in e1000_reset_hw_vf()
150 mbx->ops.write_posted(hw, msgbuf, 1); in e1000_reset_hw_vf()
155 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in e1000_reset_hw_vf()
228 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_update_mc_addr_list_vf() local
254 ret_val = mbx->ops.write_posted(hw, msgbuf, E1000_VFMAILBOX_SIZE); in e1000_update_mc_addr_list_vf()
256 mbx->ops.read_posted(hw, msgbuf, 1); in e1000_update_mc_addr_list_vf()
267 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_set_vfta_vf() local
[all …]
/drivers/net/ethernet/intel/ixgbevf/
Dmbx.c38 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_poll_for_msg() local
39 int countdown = mbx->timeout; in ixgbevf_poll_for_msg()
41 while (countdown && mbx->ops.check_for_msg(hw)) { in ixgbevf_poll_for_msg()
43 udelay(mbx->udelay); in ixgbevf_poll_for_msg()
48 mbx->timeout = 0; in ixgbevf_poll_for_msg()
61 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_poll_for_ack() local
62 int countdown = mbx->timeout; in ixgbevf_poll_for_ack()
64 while (countdown && mbx->ops.check_for_ack(hw)) { in ixgbevf_poll_for_ack()
66 udelay(mbx->udelay); in ixgbevf_poll_for_ack()
71 mbx->timeout = 0; in ixgbevf_poll_for_ack()
[all …]
Dvf.c39 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_write_msg_read_ack() local
40 s32 retval = mbx->ops.write_posted(hw, msg, size); in ixgbevf_write_msg_read_ack()
45 return mbx->ops.read_posted(hw, retmsg, size); in ixgbevf_write_msg_read_ack()
90 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_reset_hw_vf() local
106 while (!mbx->ops.check_for_rst(hw) && timeout) { in ixgbevf_reset_hw_vf()
115 mbx->timeout = IXGBE_VF_MBX_INIT_TIMEOUT; in ixgbevf_reset_hw_vf()
118 mbx->ops.write_posted(hw, msgbuf, 1); in ixgbevf_reset_hw_vf()
126 ret_val = mbx->ops.read_posted(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN); in ixgbevf_reset_hw_vf()
345 err = hw->mbx.ops.write_posted(hw, msgbuf, 1); in ixgbevf_get_reta_locked()
350 err = hw->mbx.ops.read_posted(hw, msgbuf, dwords + 1); in ixgbevf_get_reta_locked()
[all …]
/drivers/net/ethernet/cavium/thunder/
Dnic_main.c140 static void nic_send_msg_to_vf(struct nicpf *nic, int vf, union nic_mbx *mbx) in nic_send_msg_to_vf() argument
143 u64 *msg = (u64 *)mbx; in nic_send_msg_to_vf()
167 union nic_mbx mbx = {}; in nic_mbx_send_ready() local
171 mbx.nic_cfg.msg = NIC_MBOX_MSG_READY; in nic_mbx_send_ready()
172 mbx.nic_cfg.vf_id = vf; in nic_mbx_send_ready()
174 mbx.nic_cfg.tns_mode = NIC_TNS_BYPASS_MODE; in nic_mbx_send_ready()
182 ether_addr_copy((u8 *)&mbx.nic_cfg.mac_addr, mac); in nic_mbx_send_ready()
184 mbx.nic_cfg.sqs_mode = (vf >= nic->num_vf_en) ? true : false; in nic_mbx_send_ready()
185 mbx.nic_cfg.node_id = nic->node; in nic_mbx_send_ready()
187 mbx.nic_cfg.loopback_supported = vf < nic->num_vf_en; in nic_mbx_send_ready()
[all …]
Dnicvf_main.c119 static void nicvf_write_to_mbx(struct nicvf *nic, union nic_mbx *mbx) in nicvf_write_to_mbx() argument
121 u64 *msg = (u64 *)mbx; in nicvf_write_to_mbx()
127 int nicvf_send_msg_to_pf(struct nicvf *nic, union nic_mbx *mbx) in nicvf_send_msg_to_pf() argument
135 nicvf_write_to_mbx(nic, mbx); in nicvf_send_msg_to_pf()
142 (mbx->msg.msg & 0xFF), nic->vf_id); in nicvf_send_msg_to_pf()
152 (mbx->msg.msg & 0xFF), nic->vf_id); in nicvf_send_msg_to_pf()
164 union nic_mbx mbx = {}; in nicvf_check_pf_ready() local
166 mbx.msg.msg = NIC_MBOX_MSG_READY; in nicvf_check_pf_ready()
167 if (nicvf_send_msg_to_pf(nic, &mbx)) { in nicvf_check_pf_ready()
178 union nic_mbx mbx = {}; in nicvf_send_cfg_done() local
[all …]
Dnicvf_queues.c644 union nic_mbx mbx = {}; in nicvf_reclaim_rcv_queue() local
647 mbx.msg.msg = NIC_MBOX_MSG_RQ_SW_SYNC; in nicvf_reclaim_rcv_queue()
648 nicvf_send_msg_to_pf(nic, &mbx); in nicvf_reclaim_rcv_queue()
735 union nic_mbx mbx = {}; in nicvf_reset_rcv_queue_stats() local
738 mbx.reset_stat.msg = NIC_MBOX_MSG_RESET_STAT_COUNTER; in nicvf_reset_rcv_queue_stats()
739 mbx.reset_stat.rx_stat_mask = 0x3FFF; in nicvf_reset_rcv_queue_stats()
740 mbx.reset_stat.tx_stat_mask = 0x1F; in nicvf_reset_rcv_queue_stats()
741 mbx.reset_stat.rq_stat_mask = 0xFFFF; in nicvf_reset_rcv_queue_stats()
742 mbx.reset_stat.sq_stat_mask = 0xFFFF; in nicvf_reset_rcv_queue_stats()
743 nicvf_send_msg_to_pf(nic, &mbx); in nicvf_reset_rcv_queue_stats()
[all …]
/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_vfpf.c1126 struct bnx2x_vf_mbx *mbx = BP_VF_MBX(bp, vf->index); in bnx2x_vf_mbx_resp_single_tlv() local
1130 type = mbx->first_tlv.tl.type; in bnx2x_vf_mbx_resp_single_tlv()
1134 bnx2x_add_tlv(bp, &mbx->msg->resp, 0, type, length); in bnx2x_vf_mbx_resp_single_tlv()
1135 bnx2x_add_tlv(bp, &mbx->msg->resp, length, CHANNEL_TLV_LIST_END, in bnx2x_vf_mbx_resp_single_tlv()
1143 struct bnx2x_vf_mbx *mbx = BP_VF_MBX(bp, vf->index); in bnx2x_vf_mbx_resp_send_msg() local
1144 struct pfvf_general_resp_tlv *resp = &mbx->msg->resp.general_resp; in bnx2x_vf_mbx_resp_send_msg()
1151 mbx->vf_addr_hi, mbx->vf_addr_lo, mbx->first_tlv.resp_msg_offset); in bnx2x_vf_mbx_resp_send_msg()
1156 vf_addr = HILO_U64(mbx->vf_addr_hi, mbx->vf_addr_lo) + in bnx2x_vf_mbx_resp_send_msg()
1157 mbx->first_tlv.resp_msg_offset; in bnx2x_vf_mbx_resp_send_msg()
1158 pf_addr = mbx->msg_mapping + in bnx2x_vf_mbx_resp_send_msg()
[all …]
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_hw.c494 static inline void qlcnic_83xx_notify_mbx_response(struct qlcnic_mailbox *mbx) in qlcnic_83xx_notify_mbx_response() argument
496 mbx->rsp_status = QLC_83XX_MBX_RESPONSE_ARRIVED; in qlcnic_83xx_notify_mbx_response()
497 complete(&mbx->completion); in qlcnic_83xx_notify_mbx_response()
503 struct qlcnic_mailbox *mbx = adapter->ahw->mailbox; in qlcnic_83xx_poll_process_aen() local
506 spin_lock_irqsave(&mbx->aen_lock, flags); in qlcnic_83xx_poll_process_aen()
515 if (mbx->rsp_status != rsp_status) in qlcnic_83xx_poll_process_aen()
516 qlcnic_83xx_notify_mbx_response(mbx); in qlcnic_83xx_poll_process_aen()
520 spin_unlock_irqrestore(&mbx->aen_lock, flags); in qlcnic_83xx_poll_process_aen()
852 struct qlcnic_mailbox *mbx = adapter->ahw->mailbox; in qlcnic_83xx_issue_cmd() local
857 if (!mbx) in qlcnic_83xx_issue_cmd()
[all …]
Dqlcnic_sriov_common.c314 struct qlcnic_mailbox *mbx = ahw->mailbox; in qlcnic_sriov_post_bc_msg() local
327 err = mbx->ops->enqueue_cmd(adapter, &cmd, &timeout); in qlcnic_sriov_post_bc_msg()
341 flush_workqueue(mbx->work_q); in qlcnic_sriov_post_bc_msg()
716 static int qlcnic_sriov_alloc_bc_mbx_args(struct qlcnic_cmd_args *mbx, u32 type) in qlcnic_sriov_alloc_bc_mbx_args() argument
726 mbx->op_type = QLC_BC_CMD; in qlcnic_sriov_alloc_bc_mbx_args()
727 mbx->req.num = mbx_tbl[i].in_args; in qlcnic_sriov_alloc_bc_mbx_args()
728 mbx->rsp.num = mbx_tbl[i].out_args; in qlcnic_sriov_alloc_bc_mbx_args()
729 mbx->req.arg = kcalloc(mbx->req.num, sizeof(u32), in qlcnic_sriov_alloc_bc_mbx_args()
731 if (!mbx->req.arg) in qlcnic_sriov_alloc_bc_mbx_args()
733 mbx->rsp.arg = kcalloc(mbx->rsp.num, sizeof(u32), in qlcnic_sriov_alloc_bc_mbx_args()
[all …]
/drivers/net/ethernet/qlogic/qed/
Dqed_sriov.c1216 struct qed_iov_vf_mbx *mbx = &p_vf->vf_mbx; in qed_iov_send_response() local
1220 mbx->reply_virt->default_resp.hdr.status = status; in qed_iov_send_response()
1222 qed_dp_tlv_list(p_hwfn, mbx->reply_virt); in qed_iov_send_response()
1230 qed_dmae_host2host(p_hwfn, p_ptt, mbx->reply_phys + sizeof(u64), in qed_iov_send_response()
1231 mbx->req_virt->first_tlv.reply_address + in qed_iov_send_response()
1244 qed_dmae_host2host(p_hwfn, p_ptt, mbx->reply_phys, in qed_iov_send_response()
1245 mbx->req_virt->first_tlv.reply_address, in qed_iov_send_response()
1323 struct qed_iov_vf_mbx *mbx = &vf_info->vf_mbx; in qed_iov_prepare_resp() local
1325 mbx->offset = (u8 *)mbx->reply_virt; in qed_iov_prepare_resp()
1327 qed_add_tlv(p_hwfn, &mbx->offset, type, length); in qed_iov_prepare_resp()
[all …]
/drivers/atm/
Dzatm.c360 static void poll_rx(struct atm_dev *dev,int mbx) in poll_rx() argument
369 pos = (zatm_dev->mbx_start[mbx] & ~0xffffUL) | zin(MTA(mbx)); in poll_rx()
370 while (x = zin(MWA(mbx)), (pos & 0xffff) != x) { in poll_rx()
378 if (((pos += 16) & 0xffff) == zatm_dev->mbx_end[mbx]) in poll_rx()
379 pos = zatm_dev->mbx_start[mbx]; in poll_rx()
475 zout(pos & 0xffff,MTA(mbx)); in poll_rx()
743 static void poll_tx(struct atm_dev *dev,int mbx) in poll_tx() argument
751 pos = (zatm_dev->mbx_start[mbx] & ~0xffffUL) | zin(MTA(mbx)); in poll_tx()
752 while (x = zin(MWA(mbx)), (pos & 0xffff) != x) { in poll_tx()
767 chan = (zatm_dev->mbx_start[mbx][pos >> 2] & uPD98401_TXI_CONN) in poll_tx()
[all …]
/drivers/scsi/qla2xxx/
Dqla_iocb.c2237 qla2x00_login_iocb(srb_t *sp, struct mbx_entry *mbx) in qla2x00_login_iocb() argument
2243 mbx->entry_type = MBX_IOCB_TYPE; in qla2x00_login_iocb()
2244 SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id); in qla2x00_login_iocb()
2245 mbx->mb0 = cpu_to_le16(MBC_LOGIN_FABRIC_PORT); in qla2x00_login_iocb()
2249 mbx->mb1 = cpu_to_le16(sp->fcport->loop_id); in qla2x00_login_iocb()
2250 mbx->mb10 = cpu_to_le16(opts); in qla2x00_login_iocb()
2252 mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | opts); in qla2x00_login_iocb()
2254 mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain); in qla2x00_login_iocb()
2255 mbx->mb3 = cpu_to_le16(sp->fcport->d_id.b.area << 8 | in qla2x00_login_iocb()
2257 mbx->mb9 = cpu_to_le16(sp->vha->vp_idx); in qla2x00_login_iocb()
[all …]
Dqla_isr.c623 uint16_t cnt, mbx; in qla2x00_async_event() local
707 mbx = (IS_QLA81XX(ha) || IS_QLA83XX(ha) || IS_QLA27XX(ha)) ? in qla2x00_async_event()
711 "mbx7=%xh.\n", mb[1], mb[2], mb[3], mbx); in qla2x00_async_event()
726 if ((mbx & MBX_3) && (ha->port_no == 0)) in qla2x00_async_event()
817 mbx = (IS_QLA81XX(ha) || IS_QLA8031(ha)) in qla2x00_async_event()
819 mbx = (IS_P3P_TYPE(ha)) ? RD_REG_WORD(&reg82->mailbox_out[4]) in qla2x00_async_event()
820 : mbx; in qla2x00_async_event()
823 mb[1], mb[2], mb[3], mbx); in qla2x00_async_event()
1333 struct mbx_entry *mbx) in qla2x00_mbx_iocb_entry() argument
1343 sp = qla2x00_get_sp_from_handle(vha, func, req, mbx); in qla2x00_mbx_iocb_entry()
[all …]

123