Lines Matching refs:xp_cmd
698 struct cmd_desc xp_cmd; in typhoon_vlan_rx_register() local
716 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, in typhoon_vlan_rx_register()
718 xp_cmd.parm2 = tp->offload; in typhoon_vlan_rx_register()
719 xp_cmd.parm3 = tp->offload; in typhoon_vlan_rx_register()
721 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_vlan_rx_register()
918 struct cmd_desc xp_cmd; in typhoon_set_rx_mode() local
942 INIT_COMMAND_NO_RESPONSE(&xp_cmd, in typhoon_set_rx_mode()
944 xp_cmd.parm1 = TYPHOON_MCAST_HASH_SET; in typhoon_set_rx_mode()
945 xp_cmd.parm2 = cpu_to_le32(mc_filter[0]); in typhoon_set_rx_mode()
946 xp_cmd.parm3 = cpu_to_le32(mc_filter[1]); in typhoon_set_rx_mode()
947 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_set_rx_mode()
952 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_RX_FILTER); in typhoon_set_rx_mode()
953 xp_cmd.parm1 = filter; in typhoon_set_rx_mode()
954 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_set_rx_mode()
962 struct cmd_desc xp_cmd; in typhoon_do_get_stats() local
967 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_STATS); in typhoon_do_get_stats()
968 err = typhoon_issue_command(tp, 1, &xp_cmd, 7, xp_resp); in typhoon_do_get_stats()
1043 struct cmd_desc xp_cmd; in typhoon_ethtool_gdrvinfo() local
1050 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_VERSIONS); in typhoon_ethtool_gdrvinfo()
1051 if(typhoon_issue_command(tp, 1, &xp_cmd, 3, xp_resp) < 0) { in typhoon_ethtool_gdrvinfo()
1121 struct cmd_desc xp_cmd; in typhoon_ethtool_sset() local
1146 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_XCVR_SELECT); in typhoon_ethtool_sset()
1147 xp_cmd.parm1 = cpu_to_le16(xcvr); in typhoon_ethtool_sset()
1148 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_ethtool_sset()
1857 struct cmd_desc xp_cmd; in typhoon_sleep() local
1860 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_ENABLE_WAKE_EVENTS); in typhoon_sleep()
1861 xp_cmd.parm1 = events; in typhoon_sleep()
1862 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_sleep()
1869 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_GOTO_SLEEP); in typhoon_sleep()
1870 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_sleep()
1916 struct cmd_desc xp_cmd; in typhoon_start_runtime() local
1934 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAX_PKT_SIZE); in typhoon_start_runtime()
1935 xp_cmd.parm1 = cpu_to_le16(PKT_BUF_SZ); in typhoon_start_runtime()
1936 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1940 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAC_ADDRESS); in typhoon_start_runtime()
1941 xp_cmd.parm1 = cpu_to_le16(ntohs(*(u16 *)&dev->dev_addr[0])); in typhoon_start_runtime()
1942 xp_cmd.parm2 = cpu_to_le32(ntohl(*(u32 *)&dev->dev_addr[2])); in typhoon_start_runtime()
1943 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1950 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_IRQ_COALESCE_CTRL); in typhoon_start_runtime()
1951 xp_cmd.parm1 = 0; in typhoon_start_runtime()
1952 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1956 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_XCVR_SELECT); in typhoon_start_runtime()
1957 xp_cmd.parm1 = tp->xcvr_select; in typhoon_start_runtime()
1958 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1962 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_VLAN_TYPE_WRITE); in typhoon_start_runtime()
1963 xp_cmd.parm1 = __constant_cpu_to_le16(ETH_P_8021Q); in typhoon_start_runtime()
1964 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1968 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_OFFLOAD_TASKS); in typhoon_start_runtime()
1970 xp_cmd.parm2 = tp->offload; in typhoon_start_runtime()
1971 xp_cmd.parm3 = tp->offload; in typhoon_start_runtime()
1972 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1979 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_TX_ENABLE); in typhoon_start_runtime()
1980 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
1984 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_RX_ENABLE); in typhoon_start_runtime()
1985 err = typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_start_runtime()
2011 struct cmd_desc xp_cmd; in typhoon_stop_runtime() local
2020 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_RX_DISABLE); in typhoon_stop_runtime()
2021 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
2037 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_TX_DISABLE); in typhoon_stop_runtime()
2038 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
2048 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_HALT); in typhoon_stop_runtime()
2049 typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL); in typhoon_stop_runtime()
2205 struct cmd_desc xp_cmd; in typhoon_suspend() local
2236 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_MAC_ADDRESS); in typhoon_suspend()
2237 xp_cmd.parm1 = cpu_to_le16(ntohs(*(u16 *)&dev->dev_addr[0])); in typhoon_suspend()
2238 xp_cmd.parm2 = cpu_to_le32(ntohl(*(u32 *)&dev->dev_addr[2])); in typhoon_suspend()
2239 if(typhoon_issue_command(tp, 1, &xp_cmd, 0, NULL) < 0) { in typhoon_suspend()
2245 INIT_COMMAND_NO_RESPONSE(&xp_cmd, TYPHOON_CMD_SET_RX_FILTER); in typhoon_suspend()
2246 xp_cmd.parm1 = TYPHOON_RX_FILTER_DIRECTED | TYPHOON_RX_FILTER_BROADCAST; in typhoon_suspend()
2247 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
2410 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_MAC_ADDRESS); in typhoon_init_one()
2411 if(typhoon_issue_command(tp, 1, &xp_cmd, 1, xp_resp) < 0) { in typhoon_init_one()
2430 INIT_COMMAND_WITH_RESPONSE(&xp_cmd, TYPHOON_CMD_READ_VERSIONS); in typhoon_init_one()
2431 if(typhoon_issue_command(tp, 1, &xp_cmd, 3, xp_resp) < 0) { in typhoon_init_one()