Lines Matching refs:cmd

85 				       struct ethtool_link_ksettings *cmd);
3081 static long __tun_chr_ioctl(struct file *file, unsigned int cmd, in __tun_chr_ioctl() argument
3099 if (cmd == TUNSETIFF || cmd == TUNSETQUEUE || in __tun_chr_ioctl()
3100 (_IOC_TYPE(cmd) == SOCK_IOC_TYPE && cmd != SIOCGSKNS)) { in __tun_chr_ioctl()
3106 if (cmd == TUNGETFEATURES) { in __tun_chr_ioctl()
3113 } else if (cmd == TUNSETQUEUE) { in __tun_chr_ioctl()
3115 } else if (cmd == SIOCGSKNS) { in __tun_chr_ioctl()
3124 if (cmd == TUNSETIFF) { in __tun_chr_ioctl()
3140 if (cmd == TUNSETIFINDEX) { in __tun_chr_ioctl()
3160 netif_info(tun, drv, tun->dev, "tun_chr_ioctl cmd %u\n", cmd); in __tun_chr_ioctl()
3164 switch (cmd) { in __tun_chr_ioctl()
3416 unsigned int cmd, unsigned long arg) in tun_chr_ioctl() argument
3418 return __tun_chr_ioctl(file, cmd, arg, sizeof (struct ifreq)); in tun_chr_ioctl()
3423 unsigned int cmd, unsigned long arg) in tun_chr_compat_ioctl() argument
3425 switch (cmd) { in tun_chr_compat_ioctl()
3446 return __tun_chr_ioctl(file, cmd, arg, sizeof(struct compat_ifreq)); in tun_chr_compat_ioctl()
3566 struct ethtool_link_ksettings *cmd) in tun_default_link_ksettings() argument
3568 ethtool_link_ksettings_zero_link_mode(cmd, supported); in tun_default_link_ksettings()
3569 ethtool_link_ksettings_zero_link_mode(cmd, advertising); in tun_default_link_ksettings()
3570 cmd->base.speed = SPEED_10000; in tun_default_link_ksettings()
3571 cmd->base.duplex = DUPLEX_FULL; in tun_default_link_ksettings()
3572 cmd->base.port = PORT_TP; in tun_default_link_ksettings()
3573 cmd->base.phy_address = 0; in tun_default_link_ksettings()
3574 cmd->base.autoneg = AUTONEG_DISABLE; in tun_default_link_ksettings()
3578 struct ethtool_link_ksettings *cmd) in tun_get_link_ksettings() argument
3582 memcpy(cmd, &tun->link_ksettings, sizeof(*cmd)); in tun_get_link_ksettings()
3587 const struct ethtool_link_ksettings *cmd) in tun_set_link_ksettings() argument
3591 memcpy(&tun->link_ksettings, cmd, sizeof(*cmd)); in tun_set_link_ksettings()