Home
last modified time | relevance | path

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

12

/linux-3.4.99/drivers/net/ethernet/intel/igb/
De1000_mbx.c41 struct e1000_mbx_info *mbx = &hw->mbx; in igb_read_mbx() local
45 if (size > mbx->size) in igb_read_mbx()
46 size = mbx->size; in igb_read_mbx()
48 if (mbx->ops.read) in igb_read_mbx()
49 ret_val = mbx->ops.read(hw, msg, size, mbx_id); in igb_read_mbx()
65 struct e1000_mbx_info *mbx = &hw->mbx; in igb_write_mbx() local
68 if (size > mbx->size) in igb_write_mbx()
71 else if (mbx->ops.write) in igb_write_mbx()
72 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in igb_write_mbx()
86 struct e1000_mbx_info *mbx = &hw->mbx; in igb_check_for_msg() local
[all …]
De1000_hw.h507 struct e1000_mbx_info mbx; member
/linux-3.4.99/drivers/net/ethernet/intel/igbvf/
Dmbx.c38 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_poll_for_msg() local
39 int countdown = mbx->timeout; in e1000_poll_for_msg()
41 if (!mbx->ops.check_for_msg) in e1000_poll_for_msg()
44 while (countdown && mbx->ops.check_for_msg(hw)) { in e1000_poll_for_msg()
46 udelay(mbx->usec_delay); in e1000_poll_for_msg()
51 mbx->timeout = 0; in e1000_poll_for_msg()
64 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_poll_for_ack() local
65 int countdown = mbx->timeout; in e1000_poll_for_ack()
67 if (!mbx->ops.check_for_ack) in e1000_poll_for_ack()
70 while (countdown && mbx->ops.check_for_ack(hw)) { in e1000_poll_for_ack()
[all …]
Dvf.c84 hw->mbx.ops.init_params = e1000_init_mbx_params_vf; in e1000_init_function_pointers_vf()
126 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_reset_hw_vf() local
138 while (!mbx->ops.check_for_rst(hw) && timeout) { in e1000_reset_hw_vf()
145 mbx->timeout = E1000_VF_MBX_INIT_TIMEOUT; in e1000_reset_hw_vf()
149 mbx->ops.write_posted(hw, msgbuf, 1); in e1000_reset_hw_vf()
154 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in e1000_reset_hw_vf()
227 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_update_mc_addr_list_vf() local
252 mbx->ops.write_posted(hw, msgbuf, E1000_VFMAILBOX_SIZE); in e1000_update_mc_addr_list_vf()
263 struct e1000_mbx_info *mbx = &hw->mbx; in e1000_set_vfta_vf() local
273 mbx->ops.write_posted(hw, msgbuf, 2); in e1000_set_vfta_vf()
[all …]
DMakefile35 mbx.o \
Dvf.h247 struct e1000_mbx_info mbx; member
Dnetdev.c1556 rc = adapter->hw.mbx.ops.init_params(&adapter->hw); in igbvf_sw_init()
/linux-3.4.99/drivers/net/ethernet/intel/ixgbe/
Dixgbe_mbx.c45 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_read_mbx() local
49 if (size > mbx->size) in ixgbe_read_mbx()
50 size = mbx->size; in ixgbe_read_mbx()
52 if (mbx->ops.read) in ixgbe_read_mbx()
53 ret_val = mbx->ops.read(hw, msg, size, mbx_id); in ixgbe_read_mbx()
69 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_write_mbx() local
72 if (size > mbx->size) in ixgbe_write_mbx()
75 else if (mbx->ops.write) in ixgbe_write_mbx()
76 ret_val = mbx->ops.write(hw, msg, size, mbx_id); in ixgbe_write_mbx()
90 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbe_check_for_msg() local
[all …]
Dixgbe_sriov.c149 memcpy(&hw->mbx.ops, ii->mbx_ops, in ixgbe_enable_sriov()
150 sizeof(hw->mbx.ops)); in ixgbe_enable_sriov()
Dixgbe_type.h2892 struct ixgbe_mbx_info mbx; member
/linux-3.4.99/drivers/net/ethernet/intel/ixgbevf/
Dmbx.c39 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_poll_for_msg() local
40 int countdown = mbx->timeout; in ixgbevf_poll_for_msg()
42 while (countdown && mbx->ops.check_for_msg(hw)) { in ixgbevf_poll_for_msg()
44 udelay(mbx->udelay); in ixgbevf_poll_for_msg()
49 mbx->timeout = 0; in ixgbevf_poll_for_msg()
62 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_poll_for_ack() local
63 int countdown = mbx->timeout; in ixgbevf_poll_for_ack()
65 while (countdown && mbx->ops.check_for_ack(hw)) { in ixgbevf_poll_for_ack()
67 udelay(mbx->udelay); in ixgbevf_poll_for_ack()
72 mbx->timeout = 0; in ixgbevf_poll_for_ack()
[all …]
Dvf.c73 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_reset_hw_vf() local
86 while (!mbx->ops.check_for_rst(hw) && timeout) { in ixgbevf_reset_hw_vf()
95 mbx->timeout = IXGBE_VF_MBX_INIT_TIMEOUT; in ixgbevf_reset_hw_vf()
98 mbx->ops.write_posted(hw, msgbuf, 1); in ixgbevf_reset_hw_vf()
105 ret_val = mbx->ops.read_posted(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN); in ixgbevf_reset_hw_vf()
222 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_set_uc_addr_vf() local
238 ret_val = mbx->ops.write_posted(hw, msgbuf, 3); in ixgbevf_set_uc_addr_vf()
241 ret_val = mbx->ops.read_posted(hw, msgbuf, 3); in ixgbevf_set_uc_addr_vf()
263 struct ixgbe_mbx_info *mbx = &hw->mbx; in ixgbevf_set_rar_vf() local
271 ret_val = mbx->ops.write_posted(hw, msgbuf, 3); in ixgbevf_set_rar_vf()
[all …]
DMakefile35 mbx.o \
Dvf.h131 struct ixgbe_mbx_info mbx; member
Dixgbevf_main.c928 if (!hw->mbx.ops.check_for_ack(hw)) in ixgbevf_msix_mbx()
931 if (!hw->mbx.ops.check_for_msg(hw)) { in ixgbevf_msix_mbx()
932 hw->mbx.ops.read(hw, &msg, 1); in ixgbevf_msix_mbx()
945 hw->mbx.v2p_mailbox |= IXGBE_VFMAILBOX_PFSTS; in ixgbevf_msix_mbx()
954 hw->mbx.v2p_mailbox |= IXGBE_VFMAILBOX_PFACK; in ixgbevf_msix_mbx()
2198 hw->mbx.ops.init_params(hw); in ixgbevf_sw_init()
3201 hw->mbx.ops.write_posted(hw, msg, 2); in ixgbevf_change_mtu()
3396 memcpy(&hw->mbx.ops, &ixgbevf_mbx_ops, in ixgbevf_probe()
/linux-3.4.99/drivers/atm/
Dzatm.c359 static void poll_rx(struct atm_dev *dev,int mbx) in poll_rx() argument
368 pos = (zatm_dev->mbx_start[mbx] & ~0xffffUL) | zin(MTA(mbx)); in poll_rx()
369 while (x = zin(MWA(mbx)), (pos & 0xffff) != x) { in poll_rx()
377 if (((pos += 16) & 0xffff) == zatm_dev->mbx_end[mbx]) in poll_rx()
378 pos = zatm_dev->mbx_start[mbx]; in poll_rx()
474 zout(pos & 0xffff,MTA(mbx)); in poll_rx()
741 static void poll_tx(struct atm_dev *dev,int mbx) in poll_tx() argument
749 pos = (zatm_dev->mbx_start[mbx] & ~0xffffUL) | zin(MTA(mbx)); in poll_tx()
750 while (x = zin(MWA(mbx)), (pos & 0xffff) != x) { in poll_tx()
765 chan = (zatm_dev->mbx_start[mbx][pos >> 2] & uPD98401_TXI_CONN) in poll_tx()
[all …]
/linux-3.4.99/drivers/scsi/qla2xxx/
Dqla_isr.c324 uint16_t cnt, mbx; in qla2x00_async_event() local
407 mbx = (IS_QLA81XX(ha) || IS_QLA83XX(ha)) ? in qla2x00_async_event()
411 "mbx7=%xh.\n", mb[1], mb[2], mb[3], mbx); in qla2x00_async_event()
424 if ((mbx & MBX_3) && (ha->flags.port0)) in qla2x00_async_event()
502 mbx = (IS_QLA81XX(ha) || IS_QLA8031(ha)) in qla2x00_async_event()
504 mbx = IS_QLA82XX(ha) ? RD_REG_WORD(&reg82->mailbox_out[4]) : mbx; in qla2x00_async_event()
507 mb[1], mb[2], mb[3], mbx); in qla2x00_async_event()
894 struct mbx_entry *mbx) in qla2x00_mbx_iocb_entry() argument
904 sp = qla2x00_get_sp_from_handle(vha, func, req, mbx); in qla2x00_mbx_iocb_entry()
916 if (mbx->entry_status) { in qla2x00_mbx_iocb_entry()
[all …]
Dqla_iocb.c1912 qla2x00_login_iocb(srb_t *sp, struct mbx_entry *mbx) in qla2x00_login_iocb() argument
1918 mbx->entry_type = MBX_IOCB_TYPE; in qla2x00_login_iocb()
1919 SET_TARGET_ID(ha, mbx->loop_id, sp->fcport->loop_id); in qla2x00_login_iocb()
1920 mbx->mb0 = cpu_to_le16(MBC_LOGIN_FABRIC_PORT); in qla2x00_login_iocb()
1924 mbx->mb1 = cpu_to_le16(sp->fcport->loop_id); in qla2x00_login_iocb()
1925 mbx->mb10 = cpu_to_le16(opts); in qla2x00_login_iocb()
1927 mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | opts); in qla2x00_login_iocb()
1929 mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain); in qla2x00_login_iocb()
1930 mbx->mb3 = cpu_to_le16(sp->fcport->d_id.b.area << 8 | in qla2x00_login_iocb()
1932 mbx->mb9 = cpu_to_le16(sp->fcport->vp_idx); in qla2x00_login_iocb()
[all …]
Dqla_fw.h724 uint16_t mbx[28]; member
/linux-3.4.99/arch/powerpc/boot/dts/
Dmpc5121ads.dts46 mbx@20000000 {
47 compatible = "fsl,mpc5121-mbx";
/linux-3.4.99/drivers/video/
DMakefile54 obj-$(CONFIG_FB_MBX) += mbx/
/linux-3.4.99/drivers/scsi/
Dipr.h239 #define IPR_GET_FMT2_BAR_SEL(mbx) \ argument
240 (((mbx) & IPR_FMT2_MBX_BAR_SEL_MASK) >> IPR_FMT2_MKR_BAR_SEL_SHIFT)
/linux-3.4.99/drivers/scsi/lpfc/
Dlpfc_mbox.c1401 mbx.us.s3_pgp.port); in lpfc_config_port()
1403 pgp_offset = offsetof(struct lpfc_sli2_slim, mbx.us.s2.port); in lpfc_config_port()
Dlpfc_bsg.c3780 uint8_t *mbx; in lpfc_bsg_sli_cfg_write_cmd_ext() local
3876 mbx = (uint8_t *)dmabuf->virt; in lpfc_bsg_sli_cfg_write_cmd_ext()
3877 memcpy(pmb, mbx, sizeof(*pmb)); in lpfc_bsg_sli_cfg_write_cmd_ext()
3888 dd_data->context_un.mbox.mb = (MAILBOX_t *)mbx; in lpfc_bsg_sli_cfg_write_cmd_ext()
Dlpfc_hw.h3782 MAILBOX_t mbx; member

12