Lines Matching refs:cmd

2388 static int velocity_mii_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)  in velocity_mii_ioctl()  argument
2396 switch (cmd) { in velocity_mii_ioctl()
2427 static int velocity_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) in velocity_ioctl() argument
2438 switch (cmd) { in velocity_ioctl()
2442 ret = velocity_mii_ioctl(dev, rq, cmd); in velocity_ioctl()
2593 td_ptr->tdesc1.cmd = TCPLS_NORMAL + (tdinfo->nskb_dma + 1) * 16; in velocity_xmit()
3296 struct ethtool_link_ksettings *cmd) in velocity_get_link_ksettings() argument
3346 cmd->base.speed = SPEED_1000; in velocity_get_link_ksettings()
3348 cmd->base.speed = SPEED_100; in velocity_get_link_ksettings()
3350 cmd->base.speed = SPEED_10; in velocity_get_link_ksettings()
3352 cmd->base.autoneg = (status & VELOCITY_AUTONEG_ENABLE) ? in velocity_get_link_ksettings()
3354 cmd->base.port = PORT_TP; in velocity_get_link_ksettings()
3355 cmd->base.phy_address = readb(&regs->MIIADR) & 0x1F; in velocity_get_link_ksettings()
3358 cmd->base.duplex = DUPLEX_FULL; in velocity_get_link_ksettings()
3360 cmd->base.duplex = DUPLEX_HALF; in velocity_get_link_ksettings()
3362 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.supported, in velocity_get_link_ksettings()
3364 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in velocity_get_link_ksettings()
3371 const struct ethtool_link_ksettings *cmd) in velocity_set_link_ksettings() argument
3374 u32 speed = cmd->base.speed; in velocity_set_link_ksettings()
3382 new_status |= ((cmd->base.autoneg) ? VELOCITY_AUTONEG_ENABLE : 0); in velocity_set_link_ksettings()
3386 new_status |= ((cmd->base.duplex == DUPLEX_FULL) ? in velocity_set_link_ksettings()