Lines Matching refs:mbox

211  *	@mbox: index of the mailbox to use
230 int t4_wr_mbox_meat(struct adapter *adap, int mbox, const void *cmd, int size,
246 u32 data_reg = PF_REG(mbox, A_CIM_PF_MAILBOX_DATA);
247 u32 ctl_reg = PF_REG(mbox, A_CIM_PF_MAILBOX_CTRL);
304 *(const u8 *)cmd, mbox);
1878 int t4_link_start(struct adapter *adap, unsigned int mbox, unsigned int port,
1905 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
1911 * @mbox: mbox to use for the FW command
1916 int t4_restart_aneg(struct adapter *adap, unsigned int mbox, unsigned int port)
1926 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
2734 * @mbox: mbox to use for the FW command
2748 int t4_config_rss_range(struct adapter *adapter, int mbox, unsigned int viid,
2821 ret = t4_wr_mbox(adapter, mbox, &cmd, sizeof(cmd), NULL);
2832 * @mbox: mbox to use for the FW command
2838 int t4_config_glbl_rss(struct adapter *adapter, int mbox, unsigned int mode,
2855 return t4_wr_mbox(adapter, mbox, &c, sizeof(c), NULL);
2861 * @mbox: mbox to use for the FW command
2868 int t4_config_vi_rss(struct adapter *adapter, int mbox, unsigned int viid,
2880 return t4_wr_mbox(adapter, mbox, &c, sizeof(c), NULL);
4131 int t4_fwaddrspace_write(struct adapter *adap, unsigned int mbox, u32 addr, u32 val)
4142 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
4148 * @mbox: mailbox to use for the FW command
4154 int t4_i2c_rd(struct adapter *adap, unsigned int mbox, unsigned int port_id,
4169 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
4178 * @mbox: mailbox to use for the FW command
4186 int t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
4200 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
4209 * @mbox: mailbox to use for the FW command
4217 int t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
4231 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
4237 * @mbox: mailbox to use for the FW command
4242 int t4_sge_ctxt_flush(struct adapter *adap, unsigned int mbox)
4254 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
4261 * @mbox: mailbox to use for the FW command
4268 int t4_sge_ctxt_rd(struct adapter *adap, unsigned int mbox, unsigned int cid,
4289 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
4327 * @mbox: mailbox to use for the FW command
4335 int t4_fw_hello(struct adapter *adap, unsigned int mbox, unsigned int evt_mbox,
4350 V_FW_HELLO_CMD_MBMASTER(master == MASTER_MUST ? mbox :
4363 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
4395 master_mbox != mbox) {
4457 * @mbox: mailbox to use for the FW command
4461 int t4_fw_bye(struct adapter *adap, unsigned int mbox)
4467 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
4473 * @mbox: mailbox to use for the FW command
4478 int t4_fw_reset(struct adapter *adap, unsigned int mbox, int reset)
4485 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
4491 * @mbox: mailbox to use for the FW RESET command (if desired)
4496 * will only be issued if a legitimate mailbox is provided (mbox <=
4504 int t4_fw_halt(struct adapter *adap, unsigned int mbox, int force)
4512 if (mbox <= M_PCIE_FW_MASTER) {
4519 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
4568 int t4_fw_restart(struct adapter *adap, unsigned int mbox, int reset)
4585 if (mbox <= M_PCIE_FW_MASTER) {
4588 if (t4_fw_reset(adap, mbox,
4613 * @mbox: mailbox to use for the FW RESET command (if desired)
4631 int t4_fw_upgrade(struct adapter *adap, unsigned int mbox,
4639 ret = t4_fw_halt(adap, mbox, force);
4657 return t4_fw_restart(adap, mbox, reset);
4663 * @mbox: mailbox to use for the FW command
4668 int t4_fw_initialize(struct adapter *adap, unsigned int mbox)
4674 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
4680 * @mbox: mailbox to use for the FW command
4690 int t4_query_params(struct adapter *adap, unsigned int mbox, unsigned int pf,
4710 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
4720 * @mbox: mailbox to use for the FW command
4730 int t4_set_params(struct adapter *adap, unsigned int mbox, unsigned int pf,
4753 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
4759 * @mbox: mailbox to use for the FW command
4777 int t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf,
4800 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
4806 * @mbox: mailbox to use for the FW command
4822 int t4_alloc_vi_func(struct adapter *adap, unsigned int mbox,
4840 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
4865 * @mbox: mailbox to use for the FW command
4877 int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port,
4881 return t4_alloc_vi_func(adap, mbox, port, pf, vf, nmac, mac, rss_size,
4888 * @mbox: mailbox to use for the FW command
4895 int t4_free_vi(struct adapter *adap, unsigned int mbox, unsigned int pf,
4909 return t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
4915 * @mbox: mailbox to use for the FW command
4926 int t4_set_rxmode(struct adapter *adap, unsigned int mbox, unsigned int viid,
4953 return t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), NULL, sleep_ok);
4959 * @mbox: mailbox to use for the FW command
4978 int t4_alloc_mac_filt(struct adapter *adap, unsigned int mbox,
5023 ret = t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), &c, sleep_ok);
5053 * @mbox: mailbox to use for the FW command
5072 int t4_change_mac(struct adapter *adap, unsigned int mbox, unsigned int viid,
5095 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
5107 * @mbox: mailbox to use for the FW command
5115 int t4_set_addr_hash(struct adapter *adap, unsigned int mbox, unsigned int viid,
5127 return t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), NULL, sleep_ok);
5133 * @mbox: mailbox to use for the FW command
5140 int t4_enable_vi(struct adapter *adap, unsigned int mbox, unsigned int viid,
5150 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
5156 * @mbox: mailbox to use for the FW command
5162 int t4_identify_port(struct adapter *adap, unsigned int mbox, unsigned int viid,
5172 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
5178 * @mbox: mailbox to use for the FW command
5188 int t4_iq_start_stop(struct adapter *adap, unsigned int mbox, bool start,
5203 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
5209 * @mbox: mailbox to use for the FW command
5219 int t4_iq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
5234 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
5240 * @mbox: mailbox to use for the FW command
5247 int t4_eth_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
5258 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
5264 * @mbox: mailbox to use for the FW command
5271 int t4_ctrl_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
5282 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
5288 * @mbox: mailbox to use for the FW command
5295 int t4_ofld_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
5306 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
5616 int __devinit t4_port_init(struct port_info *p, int mbox, int pf, int vf)
5638 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
5642 ret = t4_alloc_vi(adap, mbox, j, pf, vf, 1, addr, &rss_size);
5678 return t4_wr_mbox_meat(adapter,adapter->mbox, &cmd, sizeof(cmd),
5707 return t4_wr_mbox_meat(adapter,adapter->mbox, &cmd, sizeof(cmd),