Lines Matching refs:cmd
846 static inline void ace_issue_cmd(struct ace_regs __iomem *regs, struct cmd *cmd) in ace_issue_cmd() argument
852 writel(*(u32 *)(cmd), ®s->CmdRng[idx]); in ace_issue_cmd()
1664 struct cmd cmd; in ace_load_std_rx_ring() local
1665 cmd.evt = C_SET_RX_PRD_IDX; in ace_load_std_rx_ring()
1666 cmd.code = 0; in ace_load_std_rx_ring()
1667 cmd.idx = ap->rx_std_skbprd; in ace_load_std_rx_ring()
1668 ace_issue_cmd(regs, &cmd); in ace_load_std_rx_ring()
1781 struct cmd cmd; in ace_load_jumbo_rx_ring() local
1782 cmd.evt = C_SET_RX_JUMBO_PRD_IDX; in ace_load_jumbo_rx_ring()
1783 cmd.code = 0; in ace_load_jumbo_rx_ring()
1784 cmd.idx = ap->rx_jumbo_skbprd; in ace_load_jumbo_rx_ring()
1785 ace_issue_cmd(regs, &cmd); in ace_load_jumbo_rx_ring()
1884 struct cmd cmd; in ace_handle_event() local
1885 cmd.evt = C_SET_RX_JUMBO_PRD_IDX; in ace_handle_event()
1886 cmd.code = 0; in ace_handle_event()
1887 cmd.idx = 0; in ace_handle_event()
1888 ace_issue_cmd(ap->regs, &cmd); in ace_handle_event()
2224 struct cmd cmd; in ace_open() local
2233 cmd.evt = C_CLEAR_STATS; in ace_open()
2234 cmd.code = 0; in ace_open()
2235 cmd.idx = 0; in ace_open()
2236 ace_issue_cmd(regs, &cmd); in ace_open()
2238 cmd.evt = C_HOST_STATE; in ace_open()
2239 cmd.code = C_C_STACK_UP; in ace_open()
2240 cmd.idx = 0; in ace_open()
2241 ace_issue_cmd(regs, &cmd); in ace_open()
2248 cmd.evt = C_SET_PROMISC_MODE; in ace_open()
2249 cmd.code = C_C_PROMISC_ENABLE; in ace_open()
2250 cmd.idx = 0; in ace_open()
2251 ace_issue_cmd(regs, &cmd); in ace_open()
2259 cmd.evt = C_LNK_NEGOTIATION; in ace_open()
2260 cmd.code = 0; in ace_open()
2261 cmd.idx = 0; in ace_open()
2262 ace_issue_cmd(regs, &cmd); in ace_open()
2279 struct cmd cmd; in ace_close() local
2292 cmd.evt = C_SET_PROMISC_MODE; in ace_close()
2293 cmd.code = C_C_PROMISC_DISABLE; in ace_close()
2294 cmd.idx = 0; in ace_close()
2295 ace_issue_cmd(regs, &cmd); in ace_close()
2299 cmd.evt = C_HOST_STATE; in ace_close()
2300 cmd.code = C_C_STACK_DOWN; in ace_close()
2301 cmd.idx = 0; in ace_close()
2302 ace_issue_cmd(regs, &cmd); in ace_close()
2345 cmd.evt = C_RESET_JUMBO_RNG; in ace_close()
2346 cmd.code = 0; in ace_close()
2347 cmd.idx = 0; in ace_close()
2348 ace_issue_cmd(regs, &cmd); in ace_close()
2558 struct cmd cmd; in ace_change_mtu() local
2560 cmd.evt = C_RESET_JUMBO_RNG; in ace_change_mtu()
2561 cmd.code = 0; in ace_change_mtu()
2562 cmd.idx = 0; in ace_change_mtu()
2563 ace_issue_cmd(regs, &cmd); in ace_change_mtu()
2571 struct ethtool_link_ksettings *cmd) in ace_get_link_ksettings() argument
2578 memset(cmd, 0, sizeof(struct ethtool_link_ksettings)); in ace_get_link_ksettings()
2585 cmd->base.port = PORT_FIBRE; in ace_get_link_ksettings()
2589 cmd->base.speed = SPEED_1000; in ace_get_link_ksettings()
2593 cmd->base.speed = SPEED_100; in ace_get_link_ksettings()
2595 cmd->base.speed = SPEED_10; in ace_get_link_ksettings()
2597 cmd->base.speed = 0; in ace_get_link_ksettings()
2600 cmd->base.duplex = DUPLEX_FULL; in ace_get_link_ksettings()
2602 cmd->base.duplex = DUPLEX_HALF; in ace_get_link_ksettings()
2605 cmd->base.autoneg = AUTONEG_ENABLE; in ace_get_link_ksettings()
2607 cmd->base.autoneg = AUTONEG_DISABLE; in ace_get_link_ksettings()
2619 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in ace_get_link_ksettings()
2626 const struct ethtool_link_ksettings *cmd) in ace_set_link_ksettings() argument
2649 if (cmd->base.autoneg == AUTONEG_ENABLE) in ace_set_link_ksettings()
2651 if (cmd->base.speed != speed) { in ace_set_link_ksettings()
2653 switch (cmd->base.speed) { in ace_set_link_ksettings()
2666 if (cmd->base.duplex == DUPLEX_FULL) in ace_set_link_ksettings()
2670 struct cmd cmd; in ace_set_link_ksettings() local
2680 cmd.evt = C_LNK_NEGOTIATION; in ace_set_link_ksettings()
2681 cmd.code = 0; in ace_set_link_ksettings()
2682 cmd.idx = 0; in ace_set_link_ksettings()
2683 ace_issue_cmd(regs, &cmd); in ace_set_link_ksettings()
2712 struct cmd cmd; in ace_set_mac_addr() local
2725 cmd.evt = C_SET_MAC_ADDR; in ace_set_mac_addr()
2726 cmd.code = 0; in ace_set_mac_addr()
2727 cmd.idx = 0; in ace_set_mac_addr()
2728 ace_issue_cmd(regs, &cmd); in ace_set_mac_addr()
2738 struct cmd cmd; in ace_set_multicast_list() local
2741 cmd.evt = C_SET_MULTICAST_MODE; in ace_set_multicast_list()
2742 cmd.code = C_C_MCAST_ENABLE; in ace_set_multicast_list()
2743 cmd.idx = 0; in ace_set_multicast_list()
2744 ace_issue_cmd(regs, &cmd); in ace_set_multicast_list()
2747 cmd.evt = C_SET_MULTICAST_MODE; in ace_set_multicast_list()
2748 cmd.code = C_C_MCAST_DISABLE; in ace_set_multicast_list()
2749 cmd.idx = 0; in ace_set_multicast_list()
2750 ace_issue_cmd(regs, &cmd); in ace_set_multicast_list()
2755 cmd.evt = C_SET_PROMISC_MODE; in ace_set_multicast_list()
2756 cmd.code = C_C_PROMISC_ENABLE; in ace_set_multicast_list()
2757 cmd.idx = 0; in ace_set_multicast_list()
2758 ace_issue_cmd(regs, &cmd); in ace_set_multicast_list()
2761 cmd.evt = C_SET_PROMISC_MODE; in ace_set_multicast_list()
2762 cmd.code = C_C_PROMISC_DISABLE; in ace_set_multicast_list()
2763 cmd.idx = 0; in ace_set_multicast_list()
2764 ace_issue_cmd(regs, &cmd); in ace_set_multicast_list()
2775 cmd.evt = C_SET_MULTICAST_MODE; in ace_set_multicast_list()
2776 cmd.code = C_C_MCAST_ENABLE; in ace_set_multicast_list()
2777 cmd.idx = 0; in ace_set_multicast_list()
2778 ace_issue_cmd(regs, &cmd); in ace_set_multicast_list()
2780 cmd.evt = C_SET_MULTICAST_MODE; in ace_set_multicast_list()
2781 cmd.code = C_C_MCAST_DISABLE; in ace_set_multicast_list()
2782 cmd.idx = 0; in ace_set_multicast_list()
2783 ace_issue_cmd(regs, &cmd); in ace_set_multicast_list()