Lines Matching refs:xp_cmd

861 	struct cmd_desc xp_cmd;  in typhoon_set_rx_mode()  local
881 INIT_COMMAND_NO_RESPONSE(&xp_cmd, in typhoon_set_rx_mode()
883 xp_cmd.parm1 = TYPHOON_MCAST_HASH_SET; in typhoon_set_rx_mode()
884 xp_cmd.parm2 = cpu_to_le32(mc_filter[0]); in typhoon_set_rx_mode()
885 xp_cmd.parm3 = cpu_to_le32(mc_filter[1]); in typhoon_set_rx_mode()
886 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_set_rx_mode()
891 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_RX_FILTER); in typhoon_set_rx_mode()
892 xp_cmd.parm1 = filter; in typhoon_set_rx_mode()
893 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_set_rx_mode()
901 struct cmd_desc xp_cmd; in typhoon_do_get_stats() local
906 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_STATS); in typhoon_do_get_stats()
907 err = typhoon_issue_command(tp, 1, &xp_cmd, 7, xp_resp); in typhoon_do_get_stats()
972 struct cmd_desc xp_cmd; in typhoon_get_drvinfo() local
980 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_VERSIONS); in typhoon_get_drvinfo()
981 if (typhoon_issue_command(tp, 1, &xp_cmd, 3, xp_resp) < 0) { in typhoon_get_drvinfo()
1064 struct cmd_desc xp_cmd; in typhoon_set_link_ksettings() local
1090 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_XCVR_SELECT); in typhoon_set_link_ksettings()
1091 xp_cmd.parm1 = xcvr; in typhoon_set_link_ksettings()
1092 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_set_link_ksettings()
1805 struct cmd_desc xp_cmd; in typhoon_sleep_early() local
1808 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_ENABLE_WAKE_EVENTS); in typhoon_sleep_early()
1809 xp_cmd.parm1 = events; in typhoon_sleep_early()
1810 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_sleep_early()
1817 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_GOTO_SLEEP); in typhoon_sleep_early()
1818 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_sleep_early()
1872 struct cmd_desc xp_cmd; in typhoon_start_runtime() local
1890 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAX_PKT_SIZE); in typhoon_start_runtime()
1891 xp_cmd.parm1 = cpu_to_le16(PKT_BUF_SZ); in typhoon_start_runtime()
1892 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1896 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAC_ADDRESS); in typhoon_start_runtime()
1897 xp_cmd.parm1 = cpu_to_le16(ntohs(*(__be16 *)&dev->dev_addr[0])); in typhoon_start_runtime()
1898 xp_cmd.parm2 = cpu_to_le32(ntohl(*(__be32 *)&dev->dev_addr[2])); in typhoon_start_runtime()
1899 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1906 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_IRQ_COALESCE_CTRL); in typhoon_start_runtime()
1907 xp_cmd.parm1 = 0; in typhoon_start_runtime()
1908 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1912 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_XCVR_SELECT); in typhoon_start_runtime()
1913 xp_cmd.parm1 = tp->xcvr_select; in typhoon_start_runtime()
1914 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1918 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_VLAN_TYPE_WRITE); in typhoon_start_runtime()
1919 xp_cmd.parm1 = cpu_to_le16(ETH_P_8021Q); in typhoon_start_runtime()
1920 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1924 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_OFFLOAD_TASKS); in typhoon_start_runtime()
1925 xp_cmd.parm2 = tp->offload; in typhoon_start_runtime()
1926 xp_cmd.parm3 = tp->offload; in typhoon_start_runtime()
1927 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1933 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_TX_ENABLE); in typhoon_start_runtime()
1934 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1938 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_RX_ENABLE); in typhoon_start_runtime()
1939 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1965 struct cmd_desc xp_cmd; in typhoon_stop_runtime() local
1974 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_RX_DISABLE); in typhoon_stop_runtime()
1975 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
1989 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_TX_DISABLE); in typhoon_stop_runtime()
1990 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
2000 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_HALT); in typhoon_stop_runtime()
2001 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
2161 struct cmd_desc xp_cmd; in typhoon_suspend() local
2187 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAC_ADDRESS); in typhoon_suspend()
2188 xp_cmd.parm1 = cpu_to_le16(ntohs(*(__be16 *)&dev->dev_addr[0])); in typhoon_suspend()
2189 xp_cmd.parm2 = cpu_to_le32(ntohl(*(__be32 *)&dev->dev_addr[2])); in typhoon_suspend()
2190 if (typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL) < 0) { in typhoon_suspend()
2195 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_RX_FILTER); in typhoon_suspend()
2196 xp_cmd.parm1 = TYPHOON_RX_FILTER_DIRECTED | TYPHOON_RX_FILTER_BROADCAST; in typhoon_suspend()
2197 if (typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL) < 0) { in typhoon_suspend()
2282 struct cmd_desc xp_cmd; in typhoon_init_one() local
2403 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_MAC_ADDRESS); in typhoon_init_one()
2404 err = typhoon_issue_command(tp, 1, &xp_cmd, 1, xp_resp); in typhoon_init_one()
2422 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_VERSIONS); in typhoon_init_one()
2423 err = typhoon_issue_command(tp, 1, &xp_cmd, 3, xp_resp); in typhoon_init_one()