Lines Matching refs:xp_cmd

856 	struct cmd_desc xp_cmd;  in typhoon_set_rx_mode()  local
876 INIT_COMMAND_NO_RESPONSE(&xp_cmd, in typhoon_set_rx_mode()
878 xp_cmd.parm1 = TYPHOON_MCAST_HASH_SET; in typhoon_set_rx_mode()
879 xp_cmd.parm2 = cpu_to_le32(mc_filter[0]); in typhoon_set_rx_mode()
880 xp_cmd.parm3 = cpu_to_le32(mc_filter[1]); in typhoon_set_rx_mode()
881 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_set_rx_mode()
886 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_RX_FILTER); in typhoon_set_rx_mode()
887 xp_cmd.parm1 = filter; in typhoon_set_rx_mode()
888 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_set_rx_mode()
896 struct cmd_desc xp_cmd; in typhoon_do_get_stats() local
901 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_STATS); in typhoon_do_get_stats()
902 err = typhoon_issue_command(tp, 1, &xp_cmd, 7, xp_resp); in typhoon_do_get_stats()
967 struct cmd_desc xp_cmd; in typhoon_get_drvinfo() local
975 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_VERSIONS); in typhoon_get_drvinfo()
976 if (typhoon_issue_command(tp, 1, &xp_cmd, 3, xp_resp) < 0) { in typhoon_get_drvinfo()
1059 struct cmd_desc xp_cmd; in typhoon_set_link_ksettings() local
1085 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_XCVR_SELECT); in typhoon_set_link_ksettings()
1086 xp_cmd.parm1 = xcvr; in typhoon_set_link_ksettings()
1087 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_set_link_ksettings()
1802 struct cmd_desc xp_cmd; in typhoon_sleep_early() local
1805 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_ENABLE_WAKE_EVENTS); in typhoon_sleep_early()
1806 xp_cmd.parm1 = events; in typhoon_sleep_early()
1807 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_sleep_early()
1814 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_GOTO_SLEEP); in typhoon_sleep_early()
1815 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_sleep_early()
1869 struct cmd_desc xp_cmd; in typhoon_start_runtime() local
1887 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAX_PKT_SIZE); in typhoon_start_runtime()
1888 xp_cmd.parm1 = cpu_to_le16(PKT_BUF_SZ); in typhoon_start_runtime()
1889 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1893 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAC_ADDRESS); in typhoon_start_runtime()
1894 xp_cmd.parm1 = cpu_to_le16(ntohs(*(__be16 *)&dev->dev_addr[0])); in typhoon_start_runtime()
1895 xp_cmd.parm2 = cpu_to_le32(ntohl(*(__be32 *)&dev->dev_addr[2])); in typhoon_start_runtime()
1896 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1903 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_IRQ_COALESCE_CTRL); in typhoon_start_runtime()
1904 xp_cmd.parm1 = 0; 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_XCVR_SELECT); in typhoon_start_runtime()
1910 xp_cmd.parm1 = tp->xcvr_select; 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_VLAN_TYPE_WRITE); in typhoon_start_runtime()
1916 xp_cmd.parm1 = cpu_to_le16(ETH_P_8021Q); in typhoon_start_runtime()
1917 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1921 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_OFFLOAD_TASKS); in typhoon_start_runtime()
1922 xp_cmd.parm2 = tp->offload; in typhoon_start_runtime()
1923 xp_cmd.parm3 = tp->offload; in typhoon_start_runtime()
1924 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1930 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_TX_ENABLE); in typhoon_start_runtime()
1931 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1935 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_RX_ENABLE); in typhoon_start_runtime()
1936 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1962 struct cmd_desc xp_cmd; in typhoon_stop_runtime() local
1971 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_RX_DISABLE); in typhoon_stop_runtime()
1972 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
1986 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_TX_DISABLE); in typhoon_stop_runtime()
1987 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
1997 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_HALT); in typhoon_stop_runtime()
1998 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
2158 struct cmd_desc xp_cmd; in typhoon_suspend() local
2184 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAC_ADDRESS); in typhoon_suspend()
2185 xp_cmd.parm1 = cpu_to_le16(ntohs(*(__be16 *)&dev->dev_addr[0])); in typhoon_suspend()
2186 xp_cmd.parm2 = cpu_to_le32(ntohl(*(__be32 *)&dev->dev_addr[2])); in typhoon_suspend()
2187 if (typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL) < 0) { in typhoon_suspend()
2192 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_RX_FILTER); in typhoon_suspend()
2193 xp_cmd.parm1 = TYPHOON_RX_FILTER_DIRECTED | TYPHOON_RX_FILTER_BROADCAST; in typhoon_suspend()
2194 if (typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL) < 0) { in typhoon_suspend()
2299 struct cmd_desc xp_cmd; in typhoon_init_one() local
2420 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_MAC_ADDRESS); in typhoon_init_one()
2421 err = typhoon_issue_command(tp, 1, &xp_cmd, 1, xp_resp); in typhoon_init_one()
2440 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_VERSIONS); in typhoon_init_one()
2441 err = typhoon_issue_command(tp, 1, &xp_cmd, 3, xp_resp); in typhoon_init_one()