Lines Matching refs:xp_cmd
863 struct cmd_desc xp_cmd; in typhoon_set_rx_mode() local
883 INIT_COMMAND_NO_RESPONSE(&xp_cmd, in typhoon_set_rx_mode()
885 xp_cmd.parm1 = TYPHOON_MCAST_HASH_SET; in typhoon_set_rx_mode()
886 xp_cmd.parm2 = cpu_to_le32(mc_filter[0]); in typhoon_set_rx_mode()
887 xp_cmd.parm3 = cpu_to_le32(mc_filter[1]); in typhoon_set_rx_mode()
888 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_set_rx_mode()
893 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_RX_FILTER); in typhoon_set_rx_mode()
894 xp_cmd.parm1 = filter; in typhoon_set_rx_mode()
895 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_set_rx_mode()
903 struct cmd_desc xp_cmd; in typhoon_do_get_stats() local
908 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_STATS); in typhoon_do_get_stats()
909 err = typhoon_issue_command(tp, 1, &xp_cmd, 7, xp_resp); in typhoon_do_get_stats()
974 struct cmd_desc xp_cmd; in typhoon_get_drvinfo() local
982 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_VERSIONS); in typhoon_get_drvinfo()
983 if(typhoon_issue_command(tp, 1, &xp_cmd, 3, xp_resp) < 0) { in typhoon_get_drvinfo()
1061 struct cmd_desc xp_cmd; in typhoon_set_settings() local
1087 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_XCVR_SELECT); in typhoon_set_settings()
1088 xp_cmd.parm1 = xcvr; in typhoon_set_settings()
1089 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_set_settings()
1805 struct cmd_desc xp_cmd; in typhoon_sleep() local
1808 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_ENABLE_WAKE_EVENTS); in typhoon_sleep()
1809 xp_cmd.parm1 = events; in typhoon_sleep()
1810 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_sleep()
1817 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_GOTO_SLEEP); in typhoon_sleep()
1818 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_sleep()
1863 struct cmd_desc xp_cmd; in typhoon_start_runtime() local
1881 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAX_PKT_SIZE); in typhoon_start_runtime()
1882 xp_cmd.parm1 = cpu_to_le16(PKT_BUF_SZ); in typhoon_start_runtime()
1883 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1887 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAC_ADDRESS); in typhoon_start_runtime()
1888 xp_cmd.parm1 = cpu_to_le16(ntohs(*(__be16 *)&dev->dev_addr[0])); in typhoon_start_runtime()
1889 xp_cmd.parm2 = cpu_to_le32(ntohl(*(__be32 *)&dev->dev_addr[2])); in typhoon_start_runtime()
1890 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1897 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_IRQ_COALESCE_CTRL); in typhoon_start_runtime()
1898 xp_cmd.parm1 = 0; in typhoon_start_runtime()
1899 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1903 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_XCVR_SELECT); in typhoon_start_runtime()
1904 xp_cmd.parm1 = tp->xcvr_select; in typhoon_start_runtime()
1905 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1909 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_VLAN_TYPE_WRITE); in typhoon_start_runtime()
1910 xp_cmd.parm1 = cpu_to_le16(ETH_P_8021Q); in typhoon_start_runtime()
1911 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1915 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_OFFLOAD_TASKS); in typhoon_start_runtime()
1916 xp_cmd.parm2 = tp->offload; in typhoon_start_runtime()
1917 xp_cmd.parm3 = tp->offload; in typhoon_start_runtime()
1918 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1924 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_TX_ENABLE); in typhoon_start_runtime()
1925 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1929 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_RX_ENABLE); in typhoon_start_runtime()
1930 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1956 struct cmd_desc xp_cmd; in typhoon_stop_runtime() local
1965 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_RX_DISABLE); in typhoon_stop_runtime()
1966 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
1980 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_TX_DISABLE); in typhoon_stop_runtime()
1981 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
1991 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_HALT); in typhoon_stop_runtime()
1992 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
2149 struct cmd_desc xp_cmd; in typhoon_suspend() local
2175 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAC_ADDRESS); in typhoon_suspend()
2176 xp_cmd.parm1 = cpu_to_le16(ntohs(*(__be16 *)&dev->dev_addr[0])); in typhoon_suspend()
2177 xp_cmd.parm2 = cpu_to_le32(ntohl(*(__be32 *)&dev->dev_addr[2])); in typhoon_suspend()
2178 if(typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL) < 0) { in typhoon_suspend()
2183 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_RX_FILTER); in typhoon_suspend()
2184 xp_cmd.parm1 = TYPHOON_RX_FILTER_DIRECTED | TYPHOON_RX_FILTER_BROADCAST; in typhoon_suspend()
2185 if(typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL) < 0) { in typhoon_suspend()
2270 struct cmd_desc xp_cmd; in typhoon_init_one() local
2391 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_MAC_ADDRESS); in typhoon_init_one()
2392 if(typhoon_issue_command(tp, 1, &xp_cmd, 1, xp_resp) < 0) { in typhoon_init_one()
2409 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_VERSIONS); in typhoon_init_one()
2410 if(typhoon_issue_command(tp, 1, &xp_cmd, 3, xp_resp) < 0) { in typhoon_init_one()