Lines Matching refs:xp_cmd

862 	struct cmd_desc xp_cmd;  in typhoon_set_rx_mode()  local
882 INIT_COMMAND_NO_RESPONSE(&xp_cmd, in typhoon_set_rx_mode()
884 xp_cmd.parm1 = TYPHOON_MCAST_HASH_SET; in typhoon_set_rx_mode()
885 xp_cmd.parm2 = cpu_to_le32(mc_filter[0]); in typhoon_set_rx_mode()
886 xp_cmd.parm3 = cpu_to_le32(mc_filter[1]); in typhoon_set_rx_mode()
887 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_set_rx_mode()
892 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_RX_FILTER); in typhoon_set_rx_mode()
893 xp_cmd.parm1 = filter; in typhoon_set_rx_mode()
894 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_set_rx_mode()
902 struct cmd_desc xp_cmd; in typhoon_do_get_stats() local
907 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_STATS); in typhoon_do_get_stats()
908 err = typhoon_issue_command(tp, 1, &xp_cmd, 7, xp_resp); in typhoon_do_get_stats()
973 struct cmd_desc xp_cmd; in typhoon_get_drvinfo() local
981 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_VERSIONS); in typhoon_get_drvinfo()
982 if(typhoon_issue_command(tp, 1, &xp_cmd, 3, xp_resp) < 0) { in typhoon_get_drvinfo()
1065 struct cmd_desc xp_cmd; in typhoon_set_link_ksettings() local
1091 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_XCVR_SELECT); in typhoon_set_link_ksettings()
1092 xp_cmd.parm1 = xcvr; in typhoon_set_link_ksettings()
1093 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_set_link_ksettings()
1809 struct cmd_desc xp_cmd; in typhoon_sleep() local
1812 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_ENABLE_WAKE_EVENTS); in typhoon_sleep()
1813 xp_cmd.parm1 = events; in typhoon_sleep()
1814 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_sleep()
1821 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_GOTO_SLEEP); in typhoon_sleep()
1822 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_sleep()
1867 struct cmd_desc xp_cmd; in typhoon_start_runtime() local
1885 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAX_PKT_SIZE); in typhoon_start_runtime()
1886 xp_cmd.parm1 = cpu_to_le16(PKT_BUF_SZ); in typhoon_start_runtime()
1887 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1891 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAC_ADDRESS); in typhoon_start_runtime()
1892 xp_cmd.parm1 = cpu_to_le16(ntohs(*(__be16 *)&dev->dev_addr[0])); in typhoon_start_runtime()
1893 xp_cmd.parm2 = cpu_to_le32(ntohl(*(__be32 *)&dev->dev_addr[2])); in typhoon_start_runtime()
1894 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1901 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_IRQ_COALESCE_CTRL); in typhoon_start_runtime()
1902 xp_cmd.parm1 = 0; in typhoon_start_runtime()
1903 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1907 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_XCVR_SELECT); in typhoon_start_runtime()
1908 xp_cmd.parm1 = tp->xcvr_select; in typhoon_start_runtime()
1909 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1913 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_VLAN_TYPE_WRITE); in typhoon_start_runtime()
1914 xp_cmd.parm1 = cpu_to_le16(ETH_P_8021Q); in typhoon_start_runtime()
1915 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1919 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_OFFLOAD_TASKS); in typhoon_start_runtime()
1920 xp_cmd.parm2 = tp->offload; in typhoon_start_runtime()
1921 xp_cmd.parm3 = tp->offload; in typhoon_start_runtime()
1922 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1928 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_TX_ENABLE); in typhoon_start_runtime()
1929 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1933 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_RX_ENABLE); in typhoon_start_runtime()
1934 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1960 struct cmd_desc xp_cmd; in typhoon_stop_runtime() local
1969 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_RX_DISABLE); in typhoon_stop_runtime()
1970 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
1984 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_TX_DISABLE); in typhoon_stop_runtime()
1985 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
1995 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_HALT); in typhoon_stop_runtime()
1996 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
2153 struct cmd_desc xp_cmd; in typhoon_suspend() local
2179 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAC_ADDRESS); in typhoon_suspend()
2180 xp_cmd.parm1 = cpu_to_le16(ntohs(*(__be16 *)&dev->dev_addr[0])); in typhoon_suspend()
2181 xp_cmd.parm2 = cpu_to_le32(ntohl(*(__be32 *)&dev->dev_addr[2])); in typhoon_suspend()
2182 if(typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL) < 0) { in typhoon_suspend()
2187 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_RX_FILTER); in typhoon_suspend()
2188 xp_cmd.parm1 = TYPHOON_RX_FILTER_DIRECTED | TYPHOON_RX_FILTER_BROADCAST; in typhoon_suspend()
2189 if(typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL) < 0) { in typhoon_suspend()
2273 struct cmd_desc xp_cmd; in typhoon_init_one() local
2394 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_MAC_ADDRESS); in typhoon_init_one()
2395 err = typhoon_issue_command(tp, 1, &xp_cmd, 1, xp_resp); in typhoon_init_one()
2413 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_VERSIONS); in typhoon_init_one()
2414 err = typhoon_issue_command(tp, 1, &xp_cmd, 3, xp_resp); in typhoon_init_one()