• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/cxgb4/

Lines Matching refs:mbox

148 static void dump_mbox(struct adapter *adap, int mbox, u32 data_reg)
151 "mbox %d: %llx %llx %llx %llx %llx %llx %llx %llx\n", mbox,
165 * @mbox: index of the mailbox to use
184 int t4_wr_mbox_meat(struct adapter *adap, int mbox, const void *cmd, int size,
195 u32 data_reg = PF_REG(mbox, CIM_PF_MAILBOX_DATA);
196 u32 ctl_reg = PF_REG(mbox, CIM_PF_MAILBOX_CTRL);
248 dump_mbox(adap, mbox, data_reg);
254 dump_mbox(adap, mbox, data_reg);
256 *(const u8 *)cmd, mbox);
822 int t4_link_start(struct adapter *adap, unsigned int mbox, unsigned int port,
849 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
855 * @mbox: mbox to use for the FW command
860 int t4_restart_aneg(struct adapter *adap, unsigned int mbox, unsigned int port)
870 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
1597 * @mbox: mbox to use for the FW command
1611 int t4_config_rss_range(struct adapter *adapter, int mbox, unsigned int viid,
1653 ret = t4_wr_mbox(adapter, mbox, &cmd, sizeof(cmd), NULL);
1663 * @mbox: mbox to use for the FW command
1669 int t4_config_glbl_rss(struct adapter *adapter, int mbox, unsigned int mode,
1686 return t4_wr_mbox(adapter, mbox, &c, sizeof(c), NULL);
2247 * @mbox: mailbox to use for the FW command
2255 int t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
2269 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
2278 * @mbox: mailbox to use for the FW command
2286 int t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
2300 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
2306 * @mbox: mailbox to use for the FW command
2313 int t4_fw_hello(struct adapter *adap, unsigned int mbox, unsigned int evt_mbox,
2323 FW_HELLO_CMD_MBMASTER(master == MASTER_MUST ? mbox : 0xff) |
2326 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
2342 * @mbox: mailbox to use for the FW command
2346 int t4_fw_bye(struct adapter *adap, unsigned int mbox)
2351 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
2357 * @mbox: mailbox to use for the FW command
2362 int t4_early_init(struct adapter *adap, unsigned int mbox)
2367 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
2373 * @mbox: mailbox to use for the FW command
2378 int t4_fw_reset(struct adapter *adap, unsigned int mbox, int reset)
2384 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
2390 * @mbox: mailbox to use for the FW command
2400 int t4_query_params(struct adapter *adap, unsigned int mbox, unsigned int pf,
2419 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
2429 * @mbox: mailbox to use for the FW command
2439 int t4_set_params(struct adapter *adap, unsigned int mbox, unsigned int pf,
2459 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
2465 * @mbox: mailbox to use for the FW command
2483 int t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf,
2506 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
2512 * @mbox: mailbox to use for the FW command
2526 int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port,
2541 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
2566 * @mbox: mailbox to use for the FW command
2573 int t4_free_vi(struct adapter *adap, unsigned int mbox, unsigned int pf,
2584 return t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
2590 * @mbox: mailbox to use for the FW command
2601 int t4_set_rxmode(struct adapter *adap, unsigned int mbox, unsigned int viid,
2628 return t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), NULL, sleep_ok);
2634 * @mbox: mailbox to use for the FW command
2653 int t4_alloc_mac_filt(struct adapter *adap, unsigned int mbox,
2677 ret = t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), &c, sleep_ok);
2697 * @mbox: mailbox to use for the FW command
2713 int t4_change_mac(struct adapter *adap, unsigned int mbox, unsigned int viid,
2733 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
2745 * @mbox: mailbox to use for the FW command
2753 int t4_set_addr_hash(struct adapter *adap, unsigned int mbox, unsigned int viid,
2765 return t4_wr_mbox_meat(adap, mbox, &c, sizeof(c), NULL, sleep_ok);
2771 * @mbox: mailbox to use for the FW command
2778 int t4_enable_vi(struct adapter *adap, unsigned int mbox, unsigned int viid,
2788 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
2794 * @mbox: mailbox to use for the FW command
2800 int t4_identify_port(struct adapter *adap, unsigned int mbox, unsigned int viid,
2809 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
2815 * @mbox: mailbox to use for the FW command
2825 int t4_iq_start_stop(struct adapter *adap, unsigned int mbox, bool start,
2840 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
2846 * @mbox: mailbox to use for the FW command
2856 int t4_iq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
2871 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
2877 * @mbox: mailbox to use for the FW command
2884 int t4_eth_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
2895 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
2901 * @mbox: mailbox to use for the FW command
2908 int t4_ctrl_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
2919 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
2925 * @mbox: mailbox to use for the FW command
2932 int t4_ofld_eq_free(struct adapter *adap, unsigned int mbox, unsigned int pf,
2943 return t4_wr_mbox(adap, mbox, &c, sizeof(c), NULL);
3108 int __devinit t4_port_init(struct adapter *adap, int mbox, int pf, int vf)
3131 ret = t4_wr_mbox(adap, mbox, &c, sizeof(c), &c);
3135 ret = t4_alloc_vi(adap, mbox, j, pf, vf, 1, addr, &rss_size);
3157 ret = t4_wr_mbox(adap, mbox, &rvc, sizeof(rvc), &rvc);