ifr 125 arch/um/drivers/vector_user.c struct ifreq ifr; ifr 134 arch/um/drivers/vector_user.c memset(&ifr, 0, sizeof(ifr)); ifr 135 arch/um/drivers/vector_user.c ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_VNET_HDR; ifr 136 arch/um/drivers/vector_user.c strncpy((char *)&ifr.ifr_name, iface, sizeof(ifr.ifr_name) - 1); ifr 138 arch/um/drivers/vector_user.c err = ioctl(fd, TUNSETIFF, (void *) &ifr); ifr 155 arch/um/drivers/vector_user.c struct ifreq ifr; ifr 165 arch/um/drivers/vector_user.c memset(&ifr, 0, sizeof(ifr)); ifr 166 arch/um/drivers/vector_user.c strncpy((char *)&ifr.ifr_name, iface, sizeof(ifr.ifr_name) - 1); ifr 167 arch/um/drivers/vector_user.c if (ioctl(fd, SIOCGIFINDEX, (void *) &ifr) < 0) { ifr 174 arch/um/drivers/vector_user.c sock.sll_ifindex = ifr.ifr_ifindex; ifr 130 arch/um/os-Linux/drivers/tuntap_user.c struct ifreq ifr; ifr 147 arch/um/os-Linux/drivers/tuntap_user.c memset(&ifr, 0, sizeof(ifr)); ifr 148 arch/um/os-Linux/drivers/tuntap_user.c ifr.ifr_flags = IFF_TAP | IFF_NO_PI; ifr 149 arch/um/os-Linux/drivers/tuntap_user.c strlcpy(ifr.ifr_name, pri->dev_name, sizeof(ifr.ifr_name)); ifr 150 arch/um/os-Linux/drivers/tuntap_user.c if (ioctl(pri->fd, TUNSETIFF, &ifr) < 0) { ifr 162 arch/xtensa/platforms/iss/network.c struct ifreq ifr; ifr 174 arch/xtensa/platforms/iss/network.c memset(&ifr, 0, sizeof(ifr)); ifr 175 arch/xtensa/platforms/iss/network.c ifr.ifr_flags = IFF_TAP | IFF_NO_PI; ifr 176 arch/xtensa/platforms/iss/network.c strlcpy(ifr.ifr_name, dev_name, sizeof(ifr.ifr_name)); ifr 178 arch/xtensa/platforms/iss/network.c err = simc_ioctl(fd, TUNSETIFF, &ifr); ifr 4068 drivers/char/pcmcia/synclink_cs.c static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 4072 drivers/char/pcmcia/synclink_cs.c sync_serial_settings __user *line = ifr->ifr_settings.ifs_ifsu.sync; ifr 4084 drivers/char/pcmcia/synclink_cs.c return hdlc_ioctl(dev, ifr, cmd); ifr 4088 drivers/char/pcmcia/synclink_cs.c switch(ifr->ifr_settings.type) { ifr 4091 drivers/char/pcmcia/synclink_cs.c ifr->ifr_settings.type = IF_IFACE_SYNC_SERIAL; ifr 4092 drivers/char/pcmcia/synclink_cs.c if (ifr->ifr_settings.size < size) { ifr 4093 drivers/char/pcmcia/synclink_cs.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 4163 drivers/char/pcmcia/synclink_cs.c return hdlc_ioctl(dev, ifr, cmd); ifr 101 drivers/infiniband/ulp/ipoib/ipoib_main.c static int ipoib_ioctl(struct net_device *dev, struct ifreq *ifr, ifr 1736 drivers/infiniband/ulp/ipoib/ipoib_main.c static int ipoib_ioctl(struct net_device *dev, struct ifreq *ifr, ifr 1744 drivers/infiniband/ulp/ipoib/ipoib_main.c return priv->rn_ops->ndo_do_ioctl(dev, ifr, cmd); ifr 50 drivers/irqchip/irq-csky-apb-intc.c unsigned long ifr = ct->regs.mask - 8; ifr 56 drivers/irqchip/irq-csky-apb-intc.c irq_reg_writel(gc, irq_reg_readl(gc, ifr) & ~mask, ifr); ifr 512 drivers/net/appletalk/cops.c struct ifreq ifr; ifr 513 drivers/net/appletalk/cops.c struct ltfirmware *ltf= (struct ltfirmware *)&ifr.ifr_ifru; ifr 518 drivers/net/appletalk/cops.c strcpy(ifr.ifr_name,"lt0"); ifr 928 drivers/net/appletalk/cops.c static int cops_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 931 drivers/net/appletalk/cops.c struct sockaddr_at *sa = (struct sockaddr_at *)&ifr->ifr_addr; ifr 57 drivers/net/appletalk/ipddp.c static int ipddp_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); ifr 271 drivers/net/appletalk/ipddp.c static int ipddp_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 273 drivers/net/appletalk/ipddp.c struct ipddp_route __user *rt = ifr->ifr_data; ifr 817 drivers/net/appletalk/ltpc.c static int ltpc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 819 drivers/net/appletalk/ltpc.c struct sockaddr_at *sa = (struct sockaddr_at *) &ifr->ifr_addr; ifr 435 drivers/net/bonding/bond_main.c struct ifreq ifr; ifr 465 drivers/net/bonding/bond_main.c strncpy(ifr.ifr_name, slave_dev->name, IFNAMSIZ); ifr 466 drivers/net/bonding/bond_main.c mii = if_mii(&ifr); ifr 467 drivers/net/bonding/bond_main.c if (ioctl(slave_dev, &ifr, SIOCGMIIPHY) == 0) { ifr 469 drivers/net/bonding/bond_main.c if (ioctl(slave_dev, &ifr, SIOCGMIIREG) == 0) ifr 3513 drivers/net/bonding/bond_main.c static int bond_do_ioctl(struct net_device *bond_dev, struct ifreq *ifr, int cmd) ifr 3530 drivers/net/bonding/bond_main.c mii = if_mii(ifr); ifr 3540 drivers/net/bonding/bond_main.c mii = if_mii(ifr); ifr 3553 drivers/net/bonding/bond_main.c u_binfo = (struct ifbond __user *)ifr->ifr_data; ifr 3565 drivers/net/bonding/bond_main.c u_sinfo = (struct ifslave __user *)ifr->ifr_data; ifr 3585 drivers/net/bonding/bond_main.c slave_dev = __dev_get_by_name(net, ifr->ifr_slave); ifr 176 drivers/net/dsa/mv88e6xxx/hwtstamp.c struct ifreq *ifr) ifr 186 drivers/net/dsa/mv88e6xxx/hwtstamp.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 196 drivers/net/dsa/mv88e6xxx/hwtstamp.c return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? ifr 201 drivers/net/dsa/mv88e6xxx/hwtstamp.c struct ifreq *ifr) ifr 210 drivers/net/dsa/mv88e6xxx/hwtstamp.c return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? ifr 114 drivers/net/dsa/mv88e6xxx/hwtstamp.h struct ifreq *ifr); ifr 116 drivers/net/dsa/mv88e6xxx/hwtstamp.h struct ifreq *ifr); ifr 136 drivers/net/dsa/mv88e6xxx/hwtstamp.h int port, struct ifreq *ifr) ifr 142 drivers/net/dsa/mv88e6xxx/hwtstamp.h int port, struct ifreq *ifr) ifr 1933 drivers/net/dsa/sja1105/sja1105_main.c struct ifreq *ifr) ifr 1940 drivers/net/dsa/sja1105/sja1105_main.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 1976 drivers/net/dsa/sja1105/sja1105_main.c if (copy_to_user(ifr->ifr_data, &config, sizeof(config))) ifr 1982 drivers/net/dsa/sja1105/sja1105_main.c struct ifreq *ifr) ifr 1997 drivers/net/dsa/sja1105/sja1105_main.c return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? ifr 134 drivers/net/eql.c static int eql_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); ifr 271 drivers/net/eql.c static int eql_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 279 drivers/net/eql.c return eql_enslave(dev, ifr->ifr_data); ifr 281 drivers/net/eql.c return eql_emancipate(dev, ifr->ifr_data); ifr 283 drivers/net/eql.c return eql_g_slave_cfg(dev, ifr->ifr_data); ifr 285 drivers/net/eql.c return eql_s_slave_cfg(dev, ifr->ifr_data); ifr 287 drivers/net/eql.c return eql_g_master_cfg(dev, ifr->ifr_data); ifr 289 drivers/net/eql.c return eql_s_master_cfg(dev, ifr->ifr_data); ifr 1462 drivers/net/ethernet/amd/amd8111e.c static int amd8111e_ioctl(struct net_device *dev , struct ifreq *ifr, int cmd) ifr 1464 drivers/net/ethernet/amd/amd8111e.c struct mii_ioctl_data *data = if_mii(ifr); ifr 1397 drivers/net/ethernet/atheros/ag71xx.c static int ag71xx_do_ioctl(struct net_device *ndev, struct ifreq *ifr, int cmd) ifr 1402 drivers/net/ethernet/atheros/ag71xx.c return phy_mii_ioctl(ndev->phydev, ifr, cmd); ifr 1599 drivers/net/ethernet/atheros/alx/main.c static int alx_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 1606 drivers/net/ethernet/atheros/alx/main.c return mdio_mii_ioctl(&alx->hw.mdio, if_mii(ifr), cmd); ifr 577 drivers/net/ethernet/atheros/atl1c/atl1c_main.c struct ifreq *ifr, int cmd) ifr 581 drivers/net/ethernet/atheros/atl1c/atl1c_main.c struct mii_ioctl_data *data = if_mii(ifr); ifr 626 drivers/net/ethernet/atheros/atl1c/atl1c_main.c static int atl1c_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 632 drivers/net/ethernet/atheros/atl1c/atl1c_main.c return atl1c_mii_ioctl(netdev, ifr, cmd); ifr 469 drivers/net/ethernet/atheros/atl1e/atl1e_main.c struct ifreq *ifr, int cmd) ifr 472 drivers/net/ethernet/atheros/atl1e/atl1e_main.c struct mii_ioctl_data *data = if_mii(ifr); ifr 518 drivers/net/ethernet/atheros/atl1e/atl1e_main.c static int atl1e_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 524 drivers/net/ethernet/atheros/atl1e/atl1e_main.c return atl1e_mii_ioctl(netdev, ifr, cmd); ifr 999 drivers/net/ethernet/atheros/atlx/atl1.c static int atl1_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 1009 drivers/net/ethernet/atheros/atlx/atl1.c retval = generic_mii_ioctl(&adapter->mii, if_mii(ifr), cmd, NULL); ifr 49 drivers/net/ethernet/atheros/atlx/atl1.h static int atl1_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, ifr 948 drivers/net/ethernet/atheros/atlx/atl2.c static int atl2_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 951 drivers/net/ethernet/atheros/atlx/atl2.c struct mii_ioctl_data *data = if_mii(ifr); ifr 984 drivers/net/ethernet/atheros/atlx/atl2.c static int atl2_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 990 drivers/net/ethernet/atheros/atlx/atl2.c return atl2_mii_ioctl(netdev, ifr, cmd); ifr 993 drivers/net/ethernet/atheros/atlx/atl2.c return ethtool_ioctl(ifr); ifr 32 drivers/net/ethernet/atheros/atlx/atl2.h int ethtool_ioctl(struct ifreq *ifr); ifr 42 drivers/net/ethernet/atheros/atlx/atlx.c static int atlx_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 48 drivers/net/ethernet/atheros/atlx/atlx.c return atlx_mii_ioctl(netdev, ifr, cmd); ifr 2139 drivers/net/ethernet/broadcom/b44.c static int b44_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 2150 drivers/net/ethernet/broadcom/b44.c err = phy_mii_ioctl(dev->phydev, ifr, cmd); ifr 2152 drivers/net/ethernet/broadcom/b44.c err = generic_mii_ioctl(&bp->mii_if, if_mii(ifr), cmd, NULL); ifr 1251 drivers/net/ethernet/broadcom/bgmac.c static int bgmac_ioctl(struct net_device *net_dev, struct ifreq *ifr, int cmd) ifr 1256 drivers/net/ethernet/broadcom/bgmac.c return phy_mii_ioctl(net_dev->phydev, ifr, cmd); ifr 7851 drivers/net/ethernet/broadcom/bnx2.c bnx2_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 7853 drivers/net/ethernet/broadcom/bnx2.c struct mii_ioctl_data *data = if_mii(ifr); ifr 298 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c static int bnx2x_hwtstamp_ioctl(struct bnx2x *bp, struct ifreq *ifr); ifr 12923 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c static int bnx2x_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 12926 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c struct mii_ioctl_data *mdio = if_mii(ifr); ifr 12933 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c return bnx2x_hwtstamp_ioctl(bp, ifr); ifr 15476 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c static int bnx2x_hwtstamp_ioctl(struct bnx2x *bp, struct ifreq *ifr) ifr 15483 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 15504 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? ifr 9390 drivers/net/ethernet/broadcom/bnxt/bnxt.c static int bnxt_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 9392 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct mii_ioctl_data *mdio = if_mii(ifr); ifr 13846 drivers/net/ethernet/broadcom/tg3.c static int tg3_hwtstamp_set(struct net_device *dev, struct ifreq *ifr) ifr 13854 drivers/net/ethernet/broadcom/tg3.c if (copy_from_user(&stmpconf, ifr->ifr_data, sizeof(stmpconf))) ifr 13929 drivers/net/ethernet/broadcom/tg3.c return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? ifr 13933 drivers/net/ethernet/broadcom/tg3.c static int tg3_hwtstamp_get(struct net_device *dev, struct ifreq *ifr) ifr 13990 drivers/net/ethernet/broadcom/tg3.c return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? ifr 13994 drivers/net/ethernet/broadcom/tg3.c static int tg3_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 13996 drivers/net/ethernet/broadcom/tg3.c struct mii_ioctl_data *data = if_mii(ifr); ifr 14005 drivers/net/ethernet/broadcom/tg3.c return phy_mii_ioctl(phydev, ifr, cmd); ifr 14047 drivers/net/ethernet/broadcom/tg3.c return tg3_hwtstamp_set(dev, ifr); ifr 14050 drivers/net/ethernet/broadcom/tg3.c return tg3_hwtstamp_get(dev, ifr); ifr 1083 drivers/net/ethernet/cadence/macb.h struct ifreq *ifr); ifr 1085 drivers/net/ethernet/cadence/macb.h struct ifreq *ifr, int cmd); ifr 1269 drivers/net/ethernet/cadence/macb.h int gem_set_hwtst(struct net_device *dev, struct ifreq *ifr, int cmd); ifr 437 drivers/net/ethernet/cadence/macb_ptp.c int gem_set_hwtst(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 449 drivers/net/ethernet/cadence/macb_ptp.c if (copy_from_user(tstamp_config, ifr->ifr_data, ifr 505 drivers/net/ethernet/cadence/macb_ptp.c if (copy_to_user(ifr->ifr_data, tstamp_config, sizeof(*tstamp_config))) ifr 2139 drivers/net/ethernet/cavium/liquidio/lio_main.c static int hwtstamp_ioctl(struct net_device *netdev, struct ifreq *ifr) ifr 2144 drivers/net/ethernet/cavium/liquidio/lio_main.c if (copy_from_user(&conf, ifr->ifr_data, sizeof(conf))) ifr 2188 drivers/net/ethernet/cavium/liquidio/lio_main.c return copy_to_user(ifr->ifr_data, &conf, sizeof(conf)) ? -EFAULT : 0; ifr 2197 drivers/net/ethernet/cavium/liquidio/lio_main.c static int liquidio_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 2204 drivers/net/ethernet/cavium/liquidio/lio_main.c return hwtstamp_ioctl(netdev, ifr); ifr 1239 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c static int hwtstamp_ioctl(struct net_device *netdev, struct ifreq *ifr) ifr 1244 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c if (copy_from_user(&conf, ifr->ifr_data, sizeof(conf))) ifr 1288 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c return copy_to_user(ifr->ifr_data, &conf, sizeof(conf)) ? -EFAULT : 0; ifr 1297 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c static int liquidio_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 1301 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c return hwtstamp_ioctl(netdev, ifr); ifr 1922 drivers/net/ethernet/cavium/thunder/nicvf_main.c static int nicvf_config_hwtstamp(struct net_device *netdev, struct ifreq *ifr) ifr 1930 drivers/net/ethernet/cavium/thunder/nicvf_main.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 1973 drivers/net/ethernet/cavium/thunder/nicvf_main.c if (copy_to_user(ifr->ifr_data, &config, sizeof(config))) ifr 1145 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c static int cxgb4vf_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 683 drivers/net/ethernet/cirrus/ep93xx_eth.c static int ep93xx_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 686 drivers/net/ethernet/cirrus/ep93xx_eth.c struct mii_ioctl_data *data = if_mii(ifr); ifr 780 drivers/net/ethernet/ethoc.c static int ethoc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 783 drivers/net/ethernet/ethoc.c struct mii_ioctl_data *mdio = if_mii(ifr); ifr 800 drivers/net/ethernet/ethoc.c return phy_mii_ioctl(phy, ifr, cmd); ifr 1537 drivers/net/ethernet/faraday/ftgmac100.c static int ftgmac100_do_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 1542 drivers/net/ethernet/faraday/ftgmac100.c return phy_mii_ioctl(netdev->phydev, ifr, cmd); ifr 1034 drivers/net/ethernet/faraday/ftmac100.c static int ftmac100_do_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 1037 drivers/net/ethernet/faraday/ftmac100.c struct mii_ioctl_data *data = if_mii(ifr); ifr 1542 drivers/net/ethernet/freescale/enetc/enetc.c static int enetc_hwtstamp_set(struct net_device *ndev, struct ifreq *ifr) ifr 1547 drivers/net/ethernet/freescale/enetc/enetc.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 1570 drivers/net/ethernet/freescale/enetc/enetc.c return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? ifr 1574 drivers/net/ethernet/freescale/enetc/enetc.c static int enetc_hwtstamp_get(struct net_device *ndev, struct ifreq *ifr) ifr 1589 drivers/net/ethernet/freescale/enetc/enetc.c return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? ifr 600 drivers/net/ethernet/freescale/fec.h int fec_ptp_set(struct net_device *ndev, struct ifreq *ifr); ifr 601 drivers/net/ethernet/freescale/fec.h int fec_ptp_get(struct net_device *ndev, struct ifreq *ifr); ifr 455 drivers/net/ethernet/freescale/fec_ptp.c int fec_ptp_set(struct net_device *ndev, struct ifreq *ifr) ifr 461 drivers/net/ethernet/freescale/fec_ptp.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 492 drivers/net/ethernet/freescale/fec_ptp.c return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? ifr 496 drivers/net/ethernet/freescale/fec_ptp.c int fec_ptp_get(struct net_device *ndev, struct ifreq *ifr) ifr 506 drivers/net/ethernet/freescale/fec_ptp.c return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? ifr 2103 drivers/net/ethernet/freescale/gianfar.c static int gfar_hwtstamp_set(struct net_device *netdev, struct ifreq *ifr) ifr 2108 drivers/net/ethernet/freescale/gianfar.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 2146 drivers/net/ethernet/freescale/gianfar.c return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? ifr 2150 drivers/net/ethernet/freescale/gianfar.c static int gfar_hwtstamp_get(struct net_device *netdev, struct ifreq *ifr) ifr 2160 drivers/net/ethernet/freescale/gianfar.c return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? ifr 1500 drivers/net/ethernet/hisilicon/hns/hns_enet.c static int hns_nic_do_ioctl(struct net_device *netdev, struct ifreq *ifr, ifr 1511 drivers/net/ethernet/hisilicon/hns/hns_enet.c return phy_mii_ioctl(phy_dev, ifr, cmd); ifr 431 drivers/net/ethernet/hisilicon/hns3/hnae3.h struct ifreq *ifr, int cmd); ifr 1434 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c struct ifreq *ifr, int cmd) ifr 1444 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c return h->ae_algo->ops->do_ioctl(h, ifr, cmd); ifr 7547 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c static int hclge_do_ioctl(struct hnae3_handle *handle, struct ifreq *ifr, ifr 7556 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c return phy_mii_ioctl(hdev->hw.mac.phydev, ifr, cmd); ifr 976 drivers/net/ethernet/ibm/ibmveth.c static int ibmveth_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 2749 drivers/net/ethernet/intel/e100.c static int e100_do_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 2753 drivers/net/ethernet/intel/e100.c return generic_mii_ioctl(&nic->mii, if_mii(ifr), cmd, NULL); ifr 132 drivers/net/ethernet/intel/e1000/e1000_main.c static int e1000_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd); ifr 133 drivers/net/ethernet/intel/e1000/e1000_main.c static int e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, ifr 4724 drivers/net/ethernet/intel/e1000/e1000_main.c static int e1000_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 4730 drivers/net/ethernet/intel/e1000/e1000_main.c return e1000_mii_ioctl(netdev, ifr, cmd); ifr 4742 drivers/net/ethernet/intel/e1000/e1000_main.c static int e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, ifr 4747 drivers/net/ethernet/intel/e1000/e1000_main.c struct mii_ioctl_data *data = if_mii(ifr); ifr 6079 drivers/net/ethernet/intel/e1000e/netdev.c static int e1000_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, ifr 6083 drivers/net/ethernet/intel/e1000e/netdev.c struct mii_ioctl_data *data = if_mii(ifr); ifr 6153 drivers/net/ethernet/intel/e1000e/netdev.c static int e1000e_hwtstamp_set(struct net_device *netdev, struct ifreq *ifr) ifr 6159 drivers/net/ethernet/intel/e1000e/netdev.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 6184 drivers/net/ethernet/intel/e1000e/netdev.c return copy_to_user(ifr->ifr_data, &config, ifr 6188 drivers/net/ethernet/intel/e1000e/netdev.c static int e1000e_hwtstamp_get(struct net_device *netdev, struct ifreq *ifr) ifr 6192 drivers/net/ethernet/intel/e1000e/netdev.c return copy_to_user(ifr->ifr_data, &adapter->hwtstamp_config, ifr 6196 drivers/net/ethernet/intel/e1000e/netdev.c static int e1000_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 6202 drivers/net/ethernet/intel/e1000e/netdev.c return e1000_mii_ioctl(netdev, ifr, cmd); ifr 6204 drivers/net/ethernet/intel/e1000e/netdev.c return e1000e_hwtstamp_set(netdev, ifr); ifr 6206 drivers/net/ethernet/intel/e1000e/netdev.c return e1000e_hwtstamp_get(netdev, ifr); ifr 1108 drivers/net/ethernet/intel/i40e/i40e.h int i40e_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd); ifr 1138 drivers/net/ethernet/intel/i40e/i40e.h int i40e_ptp_set_ts_config(struct i40e_pf *pf, struct ifreq *ifr); ifr 1139 drivers/net/ethernet/intel/i40e/i40e.h int i40e_ptp_get_ts_config(struct i40e_pf *pf, struct ifreq *ifr); ifr 2664 drivers/net/ethernet/intel/i40e/i40e_main.c int i40e_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 2671 drivers/net/ethernet/intel/i40e/i40e_main.c return i40e_ptp_get_ts_config(pf, ifr); ifr 2673 drivers/net/ethernet/intel/i40e/i40e_main.c return i40e_ptp_set_ts_config(pf, ifr); ifr 516 drivers/net/ethernet/intel/i40e/i40e_ptp.c int i40e_ptp_get_ts_config(struct i40e_pf *pf, struct ifreq *ifr) ifr 523 drivers/net/ethernet/intel/i40e/i40e_ptp.c return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? ifr 665 drivers/net/ethernet/intel/i40e/i40e_ptp.c int i40e_ptp_set_ts_config(struct i40e_pf *pf, struct ifreq *ifr) ifr 673 drivers/net/ethernet/intel/i40e/i40e_ptp.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 683 drivers/net/ethernet/intel/i40e/i40e_ptp.c return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? ifr 680 drivers/net/ethernet/intel/igb/igb.h int igb_ptp_set_ts_config(struct net_device *netdev, struct ifreq *ifr); ifr 681 drivers/net/ethernet/intel/igb/igb.h int igb_ptp_get_ts_config(struct net_device *netdev, struct ifreq *ifr); ifr 8515 drivers/net/ethernet/intel/igb/igb_main.c static int igb_mii_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 8518 drivers/net/ethernet/intel/igb/igb_main.c struct mii_ioctl_data *data = if_mii(ifr); ifr 8545 drivers/net/ethernet/intel/igb/igb_main.c static int igb_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 8551 drivers/net/ethernet/intel/igb/igb_main.c return igb_mii_ioctl(netdev, ifr, cmd); ifr 8553 drivers/net/ethernet/intel/igb/igb_main.c return igb_ptp_get_ts_config(netdev, ifr); ifr 8555 drivers/net/ethernet/intel/igb/igb_main.c return igb_ptp_set_ts_config(netdev, ifr); ifr 967 drivers/net/ethernet/intel/igb/igb_ptp.c int igb_ptp_get_ts_config(struct net_device *netdev, struct ifreq *ifr) ifr 972 drivers/net/ethernet/intel/igb/igb_ptp.c return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? ifr 1148 drivers/net/ethernet/intel/igb/igb_ptp.c int igb_ptp_set_ts_config(struct net_device *netdev, struct ifreq *ifr) ifr 1154 drivers/net/ethernet/intel/igb/igb_ptp.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 1165 drivers/net/ethernet/intel/igb/igb_ptp.c return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? ifr 2454 drivers/net/ethernet/intel/igbvf/netdev.c static int igbvf_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 890 drivers/net/ethernet/intel/ixgbe/ixgbe.h int ethtool_ioctl(struct ifreq *ifr); ifr 990 drivers/net/ethernet/intel/ixgbe/ixgbe.h int ixgbe_ptp_set_ts_config(struct ixgbe_adapter *adapter, struct ifreq *ifr); ifr 991 drivers/net/ethernet/intel/ixgbe/ixgbe.h int ixgbe_ptp_get_ts_config(struct ixgbe_adapter *adapter, struct ifreq *ifr); ifr 952 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c int ixgbe_ptp_get_ts_config(struct ixgbe_adapter *adapter, struct ifreq *ifr) ifr 956 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c return copy_to_user(ifr->ifr_data, config, ifr 1144 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c int ixgbe_ptp_set_ts_config(struct ixgbe_adapter *adapter, struct ifreq *ifr) ifr 1149 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 1160 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? ifr 458 drivers/net/ethernet/intel/ixgbevf/ixgbevf.h int ethtool_ioctl(struct ifreq *ifr); ifr 2541 drivers/net/ethernet/marvell/mv643xx_eth.c static int mv643xx_eth_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 2548 drivers/net/ethernet/marvell/mv643xx_eth.c ret = phy_mii_ioctl(dev->phydev, ifr, cmd); ifr 3942 drivers/net/ethernet/marvell/mvneta.c static int mvneta_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 3946 drivers/net/ethernet/marvell/mvneta.c return phylink_mii_ioctl(pp->phylink, ifr, cmd); ifr 3967 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c static int mvpp2_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 3974 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c return phylink_mii_ioctl(port->phylink, ifr, cmd); ifr 1347 drivers/net/ethernet/marvell/pxa168_eth.c static int pxa168_eth_do_ioctl(struct net_device *dev, struct ifreq *ifr, ifr 1351 drivers/net/ethernet/marvell/pxa168_eth.c return phy_mii_ioctl(dev->phydev, ifr, cmd); ifr 2436 drivers/net/ethernet/marvell/skge.c static int skge_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 2438 drivers/net/ethernet/marvell/skge.c struct mii_ioctl_data *data = if_mii(ifr); ifr 1364 drivers/net/ethernet/marvell/sky2.c static int sky2_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1366 drivers/net/ethernet/marvell/sky2.c struct mii_ioctl_data *data = if_mii(ifr); ifr 2475 drivers/net/ethernet/mediatek/mtk_eth_soc.c static int mtk_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 2483 drivers/net/ethernet/mediatek/mtk_eth_soc.c return phylink_mii_ioctl(mac->phylink, ifr, cmd); ifr 2406 drivers/net/ethernet/mellanox/mlx4/en_netdev.c static int mlx4_en_hwtstamp_set(struct net_device *dev, struct ifreq *ifr) ifr 2412 drivers/net/ethernet/mellanox/mlx4/en_netdev.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 2462 drivers/net/ethernet/mellanox/mlx4/en_netdev.c return copy_to_user(ifr->ifr_data, &config, ifr 2466 drivers/net/ethernet/mellanox/mlx4/en_netdev.c static int mlx4_en_hwtstamp_get(struct net_device *dev, struct ifreq *ifr) ifr 2470 drivers/net/ethernet/mellanox/mlx4/en_netdev.c return copy_to_user(ifr->ifr_data, &priv->hwtstamp_config, ifr 2474 drivers/net/ethernet/mellanox/mlx4/en_netdev.c static int mlx4_en_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 2478 drivers/net/ethernet/mellanox/mlx4/en_netdev.c return mlx4_en_hwtstamp_set(dev, ifr); ifr 2480 drivers/net/ethernet/mellanox/mlx4/en_netdev.c return mlx4_en_hwtstamp_get(dev, ifr); ifr 979 drivers/net/ethernet/mellanox/mlx5/core/en.h int mlx5e_hwstamp_set(struct mlx5e_priv *priv, struct ifreq *ifr); ifr 980 drivers/net/ethernet/mellanox/mlx5/core/en.h int mlx5e_hwstamp_get(struct mlx5e_priv *priv, struct ifreq *ifr); ifr 3990 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int mlx5e_hwstamp_set(struct mlx5e_priv *priv, struct ifreq *ifr) ifr 3999 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 4055 drivers/net/ethernet/mellanox/mlx5/core/en_main.c return copy_to_user(ifr->ifr_data, &config, ifr 4059 drivers/net/ethernet/mellanox/mlx5/core/en_main.c int mlx5e_hwstamp_get(struct mlx5e_priv *priv, struct ifreq *ifr) ifr 4066 drivers/net/ethernet/mellanox/mlx5/core/en_main.c return copy_to_user(ifr->ifr_data, cfg, sizeof(*cfg)) ? -EFAULT : 0; ifr 4069 drivers/net/ethernet/mellanox/mlx5/core/en_main.c static int mlx5e_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 4075 drivers/net/ethernet/mellanox/mlx5/core/en_main.c return mlx5e_hwstamp_set(priv, ifr); ifr 4077 drivers/net/ethernet/mellanox/mlx5/core/en_main.c return mlx5e_hwstamp_get(priv, ifr); ifr 489 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c int mlx5i_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 495 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c return mlx5e_hwstamp_set(priv, ifr); ifr 497 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c return mlx5e_hwstamp_get(priv, ifr); ifr 86 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.h int mlx5i_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); ifr 143 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c static int mlx5i_pkey_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); ifr 180 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c static int mlx5i_pkey_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 182 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c return mlx5i_ioctl(dev, ifr, cmd); ifr 1851 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct ifreq *ifr) ifr 1856 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 1864 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (copy_to_user(ifr->ifr_data, &config, sizeof(config))) ifr 1871 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct ifreq *ifr) ifr 1881 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (copy_to_user(ifr->ifr_data, &config, sizeof(config))) ifr 1895 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_port_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1901 drivers/net/ethernet/mellanox/mlxsw/spectrum.c return mlxsw_sp_port_hwtstamp_set(mlxsw_sp_port, ifr); ifr 1903 drivers/net/ethernet/mellanox/mlxsw/spectrum.c return mlxsw_sp_port_hwtstamp_get(mlxsw_sp_port, ifr); ifr 5824 drivers/net/ethernet/micrel/ksz884x.c static int netdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 5831 drivers/net/ethernet/micrel/ksz884x.c struct mii_ioctl_data *data = if_mii(ifr); ifr 2548 drivers/net/ethernet/microchip/lan743x_main.c struct ifreq *ifr, int cmd) ifr 2553 drivers/net/ethernet/microchip/lan743x_main.c return lan743x_ptp_ioctl(netdev, ifr, cmd); ifr 2554 drivers/net/ethernet/microchip/lan743x_main.c return phy_mii_ioctl(netdev->phydev, ifr, cmd); ifr 1106 drivers/net/ethernet/microchip/lan743x_ptp.c int lan743x_ptp_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 1113 drivers/net/ethernet/microchip/lan743x_ptp.c if (!ifr) { ifr 1119 drivers/net/ethernet/microchip/lan743x_ptp.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 1159 drivers/net/ethernet/microchip/lan743x_ptp.c return copy_to_user(ifr->ifr_data, &config, ifr 39 drivers/net/ethernet/microchip/lan743x_ptp.h int lan743x_ptp_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd); ifr 984 drivers/net/ethernet/mscc/ocelot.c static int ocelot_hwstamp_get(struct ocelot_port *port, struct ifreq *ifr) ifr 988 drivers/net/ethernet/mscc/ocelot.c return copy_to_user(ifr->ifr_data, &ocelot->hwtstamp_config, ifr 992 drivers/net/ethernet/mscc/ocelot.c static int ocelot_hwstamp_set(struct ocelot_port *port, struct ifreq *ifr) ifr 997 drivers/net/ethernet/mscc/ocelot.c if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) ifr 1053 drivers/net/ethernet/mscc/ocelot.c return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; ifr 1056 drivers/net/ethernet/mscc/ocelot.c static int ocelot_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1067 drivers/net/ethernet/mscc/ocelot.c return ocelot_hwstamp_set(port, ifr); ifr 1069 drivers/net/ethernet/mscc/ocelot.c return ocelot_hwstamp_get(port, ifr); ifr 210 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c static int hwtstamp_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 217 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) ifr 262 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; ifr 2258 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c static int pch_gbe_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 2265 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c return hwtstamp_ioctl(netdev, ifr, cmd); ifr 2267 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c return generic_mii_ioctl(&adapter->mii, if_mii(ifr), cmd, NULL); ifr 511 drivers/net/ethernet/qlogic/qede/qede_main.c static int qede_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 520 drivers/net/ethernet/qlogic/qede/qede_main.c return qede_ptp_hw_ts(edev, ifr); ifr 314 drivers/net/ethernet/qlogic/qede/qede_ptp.c int qede_ptp_hw_ts(struct qede_dev *edev, struct ifreq *ifr) ifr 324 drivers/net/ethernet/qlogic/qede/qede_ptp.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 346 drivers/net/ethernet/qlogic/qede/qede_ptp.c return copy_to_user(ifr->ifr_data, &config, ifr 293 drivers/net/ethernet/qualcomm/emac/emac.c static int emac_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 301 drivers/net/ethernet/qualcomm/emac/emac.c return phy_mii_ioctl(netdev->phydev, ifr, cmd); ifr 3916 drivers/net/ethernet/realtek/r8169_main.c static int rtl8169_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 3923 drivers/net/ethernet/realtek/r8169_main.c return phy_mii_ioctl(tp->phydev, ifr, cmd); ifr 2150 drivers/net/ethernet/sfc/efx.c static int efx_ioctl(struct net_device *net_dev, struct ifreq *ifr, int cmd) ifr 2153 drivers/net/ethernet/sfc/efx.c struct mii_ioctl_data *data = if_mii(ifr); ifr 2156 drivers/net/ethernet/sfc/efx.c return efx_ptp_set_ts_config(efx, ifr); ifr 2158 drivers/net/ethernet/sfc/efx.c return efx_ptp_get_ts_config(efx, ifr); ifr 2000 drivers/net/ethernet/sfc/falcon/efx.c static int ef4_ioctl(struct net_device *net_dev, struct ifreq *ifr, int cmd) ifr 2003 drivers/net/ethernet/sfc/falcon/efx.c struct mii_ioctl_data *data = if_mii(ifr); ifr 451 drivers/net/ethernet/sfc/nic.h int efx_ptp_set_ts_config(struct efx_nic *efx, struct ifreq *ifr); ifr 452 drivers/net/ethernet/sfc/nic.h int efx_ptp_get_ts_config(struct efx_nic *efx, struct ifreq *ifr); ifr 1816 drivers/net/ethernet/sfc/ptp.c int efx_ptp_set_ts_config(struct efx_nic *efx, struct ifreq *ifr) ifr 1825 drivers/net/ethernet/sfc/ptp.c if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) ifr 1832 drivers/net/ethernet/sfc/ptp.c return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ifr 1836 drivers/net/ethernet/sfc/ptp.c int efx_ptp_get_ts_config(struct efx_nic *efx, struct ifreq *ifr) ifr 1841 drivers/net/ethernet/sfc/ptp.c return copy_to_user(ifr->ifr_data, &efx->ptp_data->config, ifr 1813 drivers/net/ethernet/sis/sis190.c static int sis190_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1818 drivers/net/ethernet/sis/sis190.c generic_mii_ioctl(&tp->mii_if, if_mii(ifr), cmd, NULL); ifr 1947 drivers/net/ethernet/smsc/smsc911x.c static int smsc911x_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1952 drivers/net/ethernet/smsc/smsc911x.c return phy_mii_ioctl(dev->phydev, ifr, cmd); ifr 214 drivers/net/ethernet/smsc/smsc9420.c static int smsc9420_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 219 drivers/net/ethernet/smsc/smsc9420.c return phy_mii_ioctl(dev->phydev, ifr, cmd); ifr 1733 drivers/net/ethernet/socionext/netsec.c static int netsec_netdev_ioctl(struct net_device *ndev, struct ifreq *ifr, ifr 1736 drivers/net/ethernet/socionext/netsec.c return phy_mii_ioctl(ndev->phydev, ifr, cmd); ifr 1455 drivers/net/ethernet/socionext/sni_ave.c static int ave_ioctl(struct net_device *ndev, struct ifreq *ifr, int cmd) ifr 1457 drivers/net/ethernet/socionext/sni_ave.c return phy_mii_ioctl(ndev->phydev, ifr, cmd); ifr 509 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c static int stmmac_hwtstamp_set(struct net_device *dev, struct ifreq *ifr) ifr 537 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (copy_from_user(&config, ifr->ifr_data, ifr 727 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c return copy_to_user(ifr->ifr_data, &config, ifr 740 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c static int stmmac_hwtstamp_get(struct net_device *dev, struct ifreq *ifr) ifr 748 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c return copy_to_user(ifr->ifr_data, config, ifr 4763 drivers/net/ethernet/sun/cassini.c static int cas_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 4766 drivers/net/ethernet/sun/cassini.c struct mii_ioctl_data *data = if_mii(ifr); ifr 6405 drivers/net/ethernet/sun/niu.c static int niu_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 2698 drivers/net/ethernet/sun/sungem.c static int gem_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 2701 drivers/net/ethernet/sun/sungem.c struct mii_ioctl_data *data = if_mii(ifr); ifr 637 drivers/net/ethernet/tehuti/tehuti.c static int bdx_ioctl_priv(struct net_device *ndev, struct ifreq *ifr, int cmd) ifr 647 drivers/net/ethernet/tehuti/tehuti.c error = copy_from_user(data, ifr->ifr_data, sizeof(data)); ifr 669 drivers/net/ethernet/tehuti/tehuti.c error = copy_to_user(ifr->ifr_data, data, sizeof(data)); ifr 688 drivers/net/ethernet/tehuti/tehuti.c static int bdx_ioctl(struct net_device *ndev, struct ifreq *ifr, int cmd) ifr 692 drivers/net/ethernet/tehuti/tehuti.c RET(bdx_ioctl_priv(ndev, ifr, cmd)); ifr 819 drivers/net/ethernet/ti/cpmac.c static int cpmac_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 826 drivers/net/ethernet/ti/cpmac.c return phy_mii_ioctl(dev->phydev, ifr, cmd); ifr 1921 drivers/net/ethernet/ti/cpsw.c static int cpsw_hwtstamp_set(struct net_device *dev, struct ifreq *ifr) ifr 1932 drivers/net/ethernet/ti/cpsw.c if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) ifr 1985 drivers/net/ethernet/ti/cpsw.c return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; ifr 1988 drivers/net/ethernet/ti/cpsw.c static int cpsw_hwtstamp_get(struct net_device *dev, struct ifreq *ifr) ifr 2003 drivers/net/ethernet/ti/cpsw.c return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; ifr 2006 drivers/net/ethernet/ti/cpsw.c static int cpsw_hwtstamp_get(struct net_device *dev, struct ifreq *ifr) ifr 2011 drivers/net/ethernet/ti/cpsw.c static int cpsw_hwtstamp_set(struct net_device *dev, struct ifreq *ifr) ifr 2603 drivers/net/ethernet/ti/netcp_ethss.c static int gbe_hwtstamp_get(struct gbe_intf *gbe_intf, struct ifreq *ifr) ifr 2616 drivers/net/ethernet/ti/netcp_ethss.c return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; ifr 2649 drivers/net/ethernet/ti/netcp_ethss.c static int gbe_hwtstamp_set(struct gbe_intf *gbe_intf, struct ifreq *ifr) ifr 2658 drivers/net/ethernet/ti/netcp_ethss.c if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) ifr 2704 drivers/net/ethernet/ti/netcp_ethss.c return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; ifr 2748 drivers/net/ethernet/ti/netcp_ethss.c struct ifreq *ifr, int cmd) ifr 923 drivers/net/ethernet/toshiba/spider_net.c spider_net_do_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ifr 2369 drivers/net/ethernet/via/via-velocity.c static int velocity_mii_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 2374 drivers/net/ethernet/via/via-velocity.c struct mii_ioctl_data *miidata = if_mii(ifr); ifr 368 drivers/net/ethernet/xscale/ixp4xx_eth.c static int hwtstamp_set(struct net_device *netdev, struct ifreq *ifr) ifr 375 drivers/net/ethernet/xscale/ixp4xx_eth.c if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) ifr 409 drivers/net/ethernet/xscale/ixp4xx_eth.c return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; ifr 412 drivers/net/ethernet/xscale/ixp4xx_eth.c static int hwtstamp_get(struct net_device *netdev, struct ifreq *ifr) ifr 435 drivers/net/ethernet/xscale/ixp4xx_eth.c return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; ifr 1008 drivers/net/hamradio/baycom_epp.c static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1016 drivers/net/hamradio/baycom_epp.c if (copy_from_user(&hi, ifr->ifr_data, sizeof(hi))) ifr 1107 drivers/net/hamradio/baycom_epp.c if (copy_to_user(ifr->ifr_data, &hi, sizeof(hi))) ifr 383 drivers/net/hamradio/baycom_par.c static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr, ifr 411 drivers/net/hamradio/baycom_par.c static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr, ifr 431 drivers/net/hamradio/baycom_par.c if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) ifr 443 drivers/net/hamradio/baycom_par.c if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) ifr 452 drivers/net/hamradio/baycom_par.c if (copy_from_user(&bi, ifr->ifr_data, sizeof(bi))) ifr 467 drivers/net/hamradio/baycom_par.c if (copy_to_user(ifr->ifr_data, &bi, sizeof(bi))) ifr 465 drivers/net/hamradio/baycom_ser_fdx.c static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr, ifr 500 drivers/net/hamradio/baycom_ser_fdx.c static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr, ifr 522 drivers/net/hamradio/baycom_ser_fdx.c if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) ifr 534 drivers/net/hamradio/baycom_ser_fdx.c if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) ifr 543 drivers/net/hamradio/baycom_ser_fdx.c if (copy_from_user(&bi, ifr->ifr_data, sizeof(bi))) ifr 558 drivers/net/hamradio/baycom_ser_fdx.c if (copy_to_user(ifr->ifr_data, &bi, sizeof(bi))) ifr 524 drivers/net/hamradio/baycom_ser_hdx.c static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr, ifr 554 drivers/net/hamradio/baycom_ser_hdx.c static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr, ifr 576 drivers/net/hamradio/baycom_ser_hdx.c if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) ifr 588 drivers/net/hamradio/baycom_ser_hdx.c if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) ifr 597 drivers/net/hamradio/baycom_ser_hdx.c if (copy_from_user(&bi, ifr->ifr_data, sizeof(bi))) ifr 612 drivers/net/hamradio/baycom_ser_hdx.c if (copy_to_user(ifr->ifr_data, &bi, sizeof(bi))) ifr 296 drivers/net/hamradio/bpqether.c static int bpq_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 298 drivers/net/hamradio/bpqether.c struct bpq_ethaddr __user *ethaddr = ifr->ifr_data; ifr 307 drivers/net/hamradio/bpqether.c if (copy_from_user(&req, ifr->ifr_data, sizeof(struct bpq_req))) ifr 228 drivers/net/hamradio/dmascc.c static int scc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); ifr 884 drivers/net/hamradio/dmascc.c static int scc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 891 drivers/net/hamradio/dmascc.c (ifr->ifr_data, &priv->param, ifr 901 drivers/net/hamradio/dmascc.c (&priv->param, ifr->ifr_data, ifr 486 drivers/net/hamradio/hdlcdrv.c static int hdlcdrv_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 493 drivers/net/hamradio/hdlcdrv.c return s->ops->ioctl(dev, ifr, &bi, cmd); ifr 496 drivers/net/hamradio/hdlcdrv.c if (copy_from_user(&bi, ifr->ifr_data, sizeof(bi))) ifr 502 drivers/net/hamradio/hdlcdrv.c return s->ops->ioctl(dev, ifr, &bi, cmd); ifr 608 drivers/net/hamradio/hdlcdrv.c if (copy_to_user(ifr->ifr_data, &bi, sizeof(bi))) ifr 213 drivers/net/hamradio/scc.c static int scc_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); ifr 1706 drivers/net/hamradio/scc.c static int scc_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1715 drivers/net/hamradio/scc.c void __user *arg = ifr->ifr_data; ifr 923 drivers/net/hamradio/yam.c static int yam_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 930 drivers/net/hamradio/yam.c if (copy_from_user(&ioctl_cmd, ifr->ifr_data, sizeof(int))) ifr 950 drivers/net/hamradio/yam.c ym = memdup_user(ifr->ifr_data, ifr 968 drivers/net/hamradio/yam.c if (copy_from_user(&yi, ifr->ifr_data, sizeof(struct yamdrv_ioctl_cfg))) ifr 1048 drivers/net/hamradio/yam.c if (copy_to_user(ifr->ifr_data, &yi, sizeof(struct yamdrv_ioctl_cfg))) ifr 827 drivers/net/macvlan.c static int macvlan_do_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 835 drivers/net/macvlan.c ifrr.ifr_ifru = ifr->ifr_ifru; ifr 849 drivers/net/macvlan.c ifr->ifr_ifru = ifrr.ifr_ifru; ifr 1322 drivers/net/phy/dp83640.c static int dp83640_hwtstamp(struct phy_device *phydev, struct ifreq *ifr) ifr 1328 drivers/net/phy/dp83640.c if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) ifr 1405 drivers/net/phy/dp83640.c return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; ifr 398 drivers/net/phy/phy.c int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd) ifr 400 drivers/net/phy/phy.c struct mii_ioctl_data *mii_data = if_mii(ifr); ifr 485 drivers/net/phy/phy.c return phydev->drv->hwtstamp(phydev, ifr); ifr 1622 drivers/net/phy/phylink.c int phylink_mii_ioctl(struct phylink *pl, struct ifreq *ifr, int cmd) ifr 1624 drivers/net/phy/phylink.c struct mii_ioctl_data *mii = if_mii(ifr); ifr 1650 drivers/net/phy/phylink.c ret = phy_mii_ioctl(pl->phydev, ifr, cmd); ifr 153 drivers/net/plip/plip.c static int plip_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); ifr 1259 drivers/net/ppp/ppp_generic.c ppp_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1263 drivers/net/ppp/ppp_generic.c void __user *addr = (void __user *) ifr->ifr_ifru.ifru_data; ifr 81 drivers/net/sb1000.c static int sb1000_dev_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd); ifr 990 drivers/net/sb1000.c static int sb1000_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1014 drivers/net/sb1000.c if(copy_to_user(ifr->ifr_data, stats, sizeof(stats))) ifr 1022 drivers/net/sb1000.c if(copy_to_user(ifr->ifr_data, version, sizeof(version))) ifr 1029 drivers/net/sb1000.c if(put_user(frequency, (int __user *) ifr->ifr_data)) ifr 1036 drivers/net/sb1000.c if(get_user(frequency, (int __user *) ifr->ifr_data)) ifr 1045 drivers/net/sb1000.c if(copy_to_user(ifr->ifr_data, PID, sizeof(PID))) ifr 1052 drivers/net/sb1000.c if(copy_from_user(PID, ifr->ifr_data, sizeof(PID))) ifr 982 drivers/net/tap.c struct ifreq __user *ifr = argp; ifr 993 drivers/net/tap.c if (get_user(u, &ifr->ifr_flags)) ifr 1014 drivers/net/tap.c if (copy_to_user(&ifr->ifr_name, tap->dev->name, IFNAMSIZ) || ifr 1015 drivers/net/tap.c put_user(u, &ifr->ifr_flags)) ifr 1022 drivers/net/tap.c if (get_user(u, &ifr->ifr_flags)) ifr 1099 drivers/net/tap.c if (copy_to_user(&ifr->ifr_name, tap->dev->name, IFNAMSIZ) || ifr 1100 drivers/net/tap.c copy_to_user(&ifr->ifr_hwaddr.sa_data, tap->dev->dev_addr, ETH_ALEN) || ifr 1101 drivers/net/tap.c put_user(u, &ifr->ifr_hwaddr.sa_family)) ifr 1108 drivers/net/tap.c if (copy_from_user(&sa, &ifr->ifr_hwaddr, sizeof(sa))) ifr 2706 drivers/net/tun.c static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr) ifr 2716 drivers/net/tun.c if ((ifr->ifr_flags & IFF_NAPI_FRAGS)) { ifr 2720 drivers/net/tun.c if (!(ifr->ifr_flags & IFF_NAPI) || ifr 2721 drivers/net/tun.c (ifr->ifr_flags & TUN_TYPE_MASK) != IFF_TAP) ifr 2725 drivers/net/tun.c dev = __dev_get_by_name(net, ifr->ifr_name); ifr 2727 drivers/net/tun.c if (ifr->ifr_flags & IFF_TUN_EXCL) ifr 2729 drivers/net/tun.c if ((ifr->ifr_flags & IFF_TUN) && dev->netdev_ops == &tun_netdev_ops) ifr 2731 drivers/net/tun.c else if ((ifr->ifr_flags & IFF_TAP) && dev->netdev_ops == &tap_netdev_ops) ifr 2736 drivers/net/tun.c if (!!(ifr->ifr_flags & IFF_MULTI_QUEUE) != ifr 2746 drivers/net/tun.c err = tun_attach(tun, file, ifr->ifr_flags & IFF_NOFILTER, ifr 2747 drivers/net/tun.c ifr->ifr_flags & IFF_NAPI, ifr 2748 drivers/net/tun.c ifr->ifr_flags & IFF_NAPI_FRAGS, true); ifr 2762 drivers/net/tun.c (ifr->ifr_flags & TUN_FEATURES); ifr 2768 drivers/net/tun.c int queues = ifr->ifr_flags & IFF_MULTI_QUEUE ? ifr 2778 drivers/net/tun.c if (ifr->ifr_flags & IFF_TUN) { ifr 2782 drivers/net/tun.c } else if (ifr->ifr_flags & IFF_TAP) { ifr 2789 drivers/net/tun.c if (*ifr->ifr_name) ifr 2790 drivers/net/tun.c name = ifr->ifr_name; ifr 2843 drivers/net/tun.c (ifr->ifr_flags & TUN_FEATURES); ifr 2846 drivers/net/tun.c err = tun_attach(tun, file, false, ifr->ifr_flags & IFF_NAPI, ifr 2847 drivers/net/tun.c ifr->ifr_flags & IFF_NAPI_FRAGS, false); ifr 2870 drivers/net/tun.c strcpy(ifr->ifr_name, tun->dev->name); ifr 2888 drivers/net/tun.c static void tun_get_iff(struct tun_struct *tun, struct ifreq *ifr) ifr 2892 drivers/net/tun.c strcpy(ifr->ifr_name, tun->dev->name); ifr 2894 drivers/net/tun.c ifr->ifr_flags = tun_flags(tun); ifr 2982 drivers/net/tun.c static int tun_set_queue(struct file *file, struct ifreq *ifr) ifr 2990 drivers/net/tun.c if (ifr->ifr_flags & IFF_ATTACH_QUEUE) { ifr 3001 drivers/net/tun.c } else if (ifr->ifr_flags & IFF_DETACH_QUEUE) { ifr 3046 drivers/net/tun.c struct ifreq ifr; ifr 3057 drivers/net/tun.c if (copy_from_user(&ifr, argp, ifreq_len)) ifr 3060 drivers/net/tun.c memset(&ifr, 0, sizeof(ifr)); ifr 3070 drivers/net/tun.c return tun_set_queue(file, &ifr); ifr 3086 drivers/net/tun.c ifr.ifr_name[IFNAMSIZ-1] = '\0'; ifr 3088 drivers/net/tun.c ret = tun_set_iff(net, file, &ifr); ifr 3093 drivers/net/tun.c if (copy_to_user(argp, &ifr, ifreq_len)) ifr 3121 drivers/net/tun.c tun_get_iff(tun, &ifr); ifr 3124 drivers/net/tun.c ifr.ifr_flags |= IFF_DETACH_QUEUE; ifr 3126 drivers/net/tun.c ifr.ifr_flags |= IFF_NOFILTER; ifr 3128 drivers/net/tun.c if (copy_to_user(argp, &ifr, ifreq_len)) ifr 3218 drivers/net/tun.c memcpy(ifr.ifr_hwaddr.sa_data, tun->dev->dev_addr, ETH_ALEN); ifr 3219 drivers/net/tun.c ifr.ifr_hwaddr.sa_family = tun->dev->type; ifr 3220 drivers/net/tun.c if (copy_to_user(argp, &ifr, ifreq_len)) ifr 3227 drivers/net/tun.c ifr.ifr_hwaddr.sa_data); ifr 3229 drivers/net/tun.c ret = dev_set_mac_address(tun->dev, &ifr.ifr_hwaddr, NULL); ifr 3471 drivers/net/tun.c struct ifreq ifr; ifr 3473 drivers/net/tun.c memset(&ifr, 0, sizeof(ifr)); ifr 3478 drivers/net/tun.c tun_get_iff(tun, &ifr); ifr 3484 drivers/net/tun.c seq_printf(m, "iff:\t%s\n", ifr.ifr_name); ifr 256 drivers/net/usb/cdc-phonet.c static int usbpn_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 258 drivers/net/usb/cdc-phonet.c struct if_phonet_req *req = (struct if_phonet_req *)ifr; ifr 222 drivers/net/wan/c101.c static int c101_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 226 drivers/net/wan/c101.c sync_serial_settings __user *line = ifr->ifr_settings.ifs_ifsu.sync; ifr 241 drivers/net/wan/c101.c return hdlc_ioctl(dev, ifr, cmd); ifr 243 drivers/net/wan/c101.c switch(ifr->ifr_settings.type) { ifr 245 drivers/net/wan/c101.c ifr->ifr_settings.type = IF_IFACE_SYNC_SERIAL; ifr 246 drivers/net/wan/c101.c if (ifr->ifr_settings.size < size) { ifr 247 drivers/net/wan/c101.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 275 drivers/net/wan/c101.c return hdlc_ioctl(dev, ifr, cmd); ifr 276 drivers/net/wan/cosa.c static int cosa_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); ifr 1174 drivers/net/wan/cosa.c static int cosa_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1179 drivers/net/wan/cosa.c (unsigned long)ifr->ifr_data); ifr 1182 drivers/net/wan/cosa.c return hdlc_ioctl(dev, ifr, cmd); ifr 232 drivers/net/wan/dlci.c static int dlci_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 247 drivers/net/wan/dlci.c strncpy(ifr->ifr_slave, dlp->slave->name, sizeof(ifr->ifr_slave)); ifr 255 drivers/net/wan/dlci.c return dlci_config(dev, ifr->ifr_data, cmd == DLCI_GET_CONF); ifr 1849 drivers/net/wan/farsync.c struct ifreq *ifr) ifr 1854 drivers/net/wan/farsync.c if (ifr->ifr_settings.size != sizeof (sync)) { ifr 1859 drivers/net/wan/farsync.c (&sync, ifr->ifr_settings.ifs_ifsu.sync, sizeof (sync))) { ifr 1868 drivers/net/wan/farsync.c switch (ifr->ifr_settings.type) { ifr 1924 drivers/net/wan/farsync.c struct ifreq *ifr) ifr 1935 drivers/net/wan/farsync.c ifr->ifr_settings.type = IF_IFACE_E1; ifr 1938 drivers/net/wan/farsync.c ifr->ifr_settings.type = IF_IFACE_T1; ifr 1941 drivers/net/wan/farsync.c ifr->ifr_settings.type = IF_IFACE_V35; ifr 1944 drivers/net/wan/farsync.c ifr->ifr_settings.type = IF_IFACE_V24; ifr 1947 drivers/net/wan/farsync.c ifr->ifr_settings.type = IF_IFACE_X21D; ifr 1951 drivers/net/wan/farsync.c ifr->ifr_settings.type = IF_IFACE_X21; ifr 1954 drivers/net/wan/farsync.c if (ifr->ifr_settings.size == 0) { ifr 1957 drivers/net/wan/farsync.c if (ifr->ifr_settings.size < sizeof (sync)) { ifr 1969 drivers/net/wan/farsync.c if (copy_to_user(ifr->ifr_settings.ifs_ifsu.sync, &sync, sizeof (sync))) { ifr 1973 drivers/net/wan/farsync.c ifr->ifr_settings.size = sizeof (sync); ifr 1978 drivers/net/wan/farsync.c fst_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1987 drivers/net/wan/farsync.c dbg(DBG_IOCTL, "ioctl: %x, %p\n", cmd, ifr->ifr_data); ifr 2011 drivers/net/wan/farsync.c if (ifr->ifr_data == NULL) { ifr 2014 drivers/net/wan/farsync.c if (copy_from_user(&wrthdr, ifr->ifr_data, ifr 2029 drivers/net/wan/farsync.c buf = memdup_user(ifr->ifr_data + sizeof(struct fstioc_write), ifr 2062 drivers/net/wan/farsync.c if (ifr->ifr_data == NULL) { ifr 2068 drivers/net/wan/farsync.c if (copy_to_user(ifr->ifr_data, &info, sizeof (info))) { ifr 2085 drivers/net/wan/farsync.c if (copy_from_user(&info, ifr->ifr_data, sizeof (info))) { ifr 2092 drivers/net/wan/farsync.c switch (ifr->ifr_settings.type) { ifr 2094 drivers/net/wan/farsync.c return fst_get_iface(card, port, ifr); ifr 2103 drivers/net/wan/farsync.c return fst_set_iface(card, port, ifr); ifr 2111 drivers/net/wan/farsync.c ifr->ifr_settings.type = IF_PROTO_RAW; ifr 2114 drivers/net/wan/farsync.c return hdlc_ioctl(dev, ifr, cmd); ifr 2119 drivers/net/wan/farsync.c ifr->ifr_settings.type); ifr 2120 drivers/net/wan/farsync.c return hdlc_ioctl(dev, ifr, cmd); ifr 2125 drivers/net/wan/farsync.c return hdlc_ioctl(dev, ifr, cmd); ifr 675 drivers/net/wan/fsl_ucc_hdlc.c static int uhdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 682 drivers/net/wan/fsl_ucc_hdlc.c return hdlc_ioctl(dev, ifr, cmd); ifr 684 drivers/net/wan/fsl_ucc_hdlc.c switch (ifr->ifr_settings.type) { ifr 686 drivers/net/wan/fsl_ucc_hdlc.c ifr->ifr_settings.type = IF_IFACE_E1; ifr 687 drivers/net/wan/fsl_ucc_hdlc.c if (ifr->ifr_settings.size < size) { ifr 688 drivers/net/wan/fsl_ucc_hdlc.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 694 drivers/net/wan/fsl_ucc_hdlc.c if (copy_to_user(ifr->ifr_settings.ifs_ifsu.sync, &line, size)) ifr 699 drivers/net/wan/fsl_ucc_hdlc.c return hdlc_ioctl(dev, ifr, cmd); ifr 195 drivers/net/wan/hdlc.c int hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 204 drivers/net/wan/hdlc.c result = dev_to_hdlc(dev)->proto->ioctl(dev, ifr); ifr 212 drivers/net/wan/hdlc.c if ((result = proto->ioctl(dev, ifr)) != -EINVAL) ifr 63 drivers/net/wan/hdlc_cisco.c static int cisco_ioctl(struct net_device *dev, struct ifreq *ifr); ifr 326 drivers/net/wan/hdlc_cisco.c static int cisco_ioctl(struct net_device *dev, struct ifreq *ifr) ifr 328 drivers/net/wan/hdlc_cisco.c cisco_proto __user *cisco_s = ifr->ifr_settings.ifs_ifsu.cisco; ifr 334 drivers/net/wan/hdlc_cisco.c switch (ifr->ifr_settings.type) { ifr 338 drivers/net/wan/hdlc_cisco.c ifr->ifr_settings.type = IF_PROTO_CISCO; ifr 339 drivers/net/wan/hdlc_cisco.c if (ifr->ifr_settings.size < size) { ifr 340 drivers/net/wan/hdlc_cisco.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 153 drivers/net/wan/hdlc_fr.c static int fr_ioctl(struct net_device *dev, struct ifreq *ifr); ifr 381 drivers/net/wan/hdlc_fr.c static int pvc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 386 drivers/net/wan/hdlc_fr.c if (ifr->ifr_settings.type == IF_GET_PROTO) { ifr 388 drivers/net/wan/hdlc_fr.c ifr->ifr_settings.type = IF_PROTO_FR_ETH_PVC; ifr 390 drivers/net/wan/hdlc_fr.c ifr->ifr_settings.type = IF_PROTO_FR_PVC; ifr 392 drivers/net/wan/hdlc_fr.c if (ifr->ifr_settings.size < sizeof(info)) { ifr 394 drivers/net/wan/hdlc_fr.c ifr->ifr_settings.size = sizeof(info); ifr 400 drivers/net/wan/hdlc_fr.c if (copy_to_user(ifr->ifr_settings.ifs_ifsu.fr_pvc_info, ifr 1177 drivers/net/wan/hdlc_fr.c static int fr_ioctl(struct net_device *dev, struct ifreq *ifr) ifr 1179 drivers/net/wan/hdlc_fr.c fr_proto __user *fr_s = ifr->ifr_settings.ifs_ifsu.fr; ifr 1186 drivers/net/wan/hdlc_fr.c switch (ifr->ifr_settings.type) { ifr 1190 drivers/net/wan/hdlc_fr.c ifr->ifr_settings.type = IF_PROTO_FR; ifr 1191 drivers/net/wan/hdlc_fr.c if (ifr->ifr_settings.size < size) { ifr 1192 drivers/net/wan/hdlc_fr.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 1253 drivers/net/wan/hdlc_fr.c if (copy_from_user(&pvc, ifr->ifr_settings.ifs_ifsu.fr_pvc, ifr 1260 drivers/net/wan/hdlc_fr.c if (ifr->ifr_settings.type == IF_PROTO_FR_ADD_ETH_PVC || ifr 1261 drivers/net/wan/hdlc_fr.c ifr->ifr_settings.type == IF_PROTO_FR_DEL_ETH_PVC) ifr 1266 drivers/net/wan/hdlc_fr.c if (ifr->ifr_settings.type == IF_PROTO_FR_ADD_PVC || ifr 1267 drivers/net/wan/hdlc_fr.c ifr->ifr_settings.type == IF_PROTO_FR_ADD_ETH_PVC) ifr 102 drivers/net/wan/hdlc_ppp.c static int ppp_ioctl(struct net_device *dev, struct ifreq *ifr); ifr 647 drivers/net/wan/hdlc_ppp.c static int ppp_ioctl(struct net_device *dev, struct ifreq *ifr) ifr 653 drivers/net/wan/hdlc_ppp.c switch (ifr->ifr_settings.type) { ifr 657 drivers/net/wan/hdlc_ppp.c ifr->ifr_settings.type = IF_PROTO_PPP; ifr 22 drivers/net/wan/hdlc_raw.c static int raw_ioctl(struct net_device *dev, struct ifreq *ifr); ifr 36 drivers/net/wan/hdlc_raw.c static int raw_ioctl(struct net_device *dev, struct ifreq *ifr) ifr 38 drivers/net/wan/hdlc_raw.c raw_hdlc_proto __user *raw_s = ifr->ifr_settings.ifs_ifsu.raw_hdlc; ifr 44 drivers/net/wan/hdlc_raw.c switch (ifr->ifr_settings.type) { ifr 48 drivers/net/wan/hdlc_raw.c ifr->ifr_settings.type = IF_PROTO_HDLC; ifr 49 drivers/net/wan/hdlc_raw.c if (ifr->ifr_settings.size < size) { ifr 50 drivers/net/wan/hdlc_raw.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 23 drivers/net/wan/hdlc_raw_eth.c static int raw_eth_ioctl(struct net_device *dev, struct ifreq *ifr); ifr 51 drivers/net/wan/hdlc_raw_eth.c static int raw_eth_ioctl(struct net_device *dev, struct ifreq *ifr) ifr 53 drivers/net/wan/hdlc_raw_eth.c raw_hdlc_proto __user *raw_s = ifr->ifr_settings.ifs_ifsu.raw_hdlc; ifr 60 drivers/net/wan/hdlc_raw_eth.c switch (ifr->ifr_settings.type) { ifr 64 drivers/net/wan/hdlc_raw_eth.c ifr->ifr_settings.type = IF_PROTO_HDLC_ETH; ifr 65 drivers/net/wan/hdlc_raw_eth.c if (ifr->ifr_settings.size < size) { ifr 66 drivers/net/wan/hdlc_raw_eth.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 24 drivers/net/wan/hdlc_x25.c static int x25_ioctl(struct net_device *dev, struct ifreq *ifr); ifr 196 drivers/net/wan/hdlc_x25.c static int x25_ioctl(struct net_device *dev, struct ifreq *ifr) ifr 201 drivers/net/wan/hdlc_x25.c switch (ifr->ifr_settings.type) { ifr 205 drivers/net/wan/hdlc_x25.c ifr->ifr_settings.type = IF_PROTO_X25; ifr 152 drivers/net/wan/hostess_sv11.c static int hostess_ioctl(struct net_device *d, struct ifreq *ifr, int cmd) ifr 156 drivers/net/wan/hostess_sv11.c return hdlc_ioctl(d, ifr, cmd); ifr 1242 drivers/net/wan/ixp4xx_hss.c static int hss_hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1246 drivers/net/wan/ixp4xx_hss.c sync_serial_settings __user *line = ifr->ifr_settings.ifs_ifsu.sync; ifr 1252 drivers/net/wan/ixp4xx_hss.c return hdlc_ioctl(dev, ifr, cmd); ifr 1254 drivers/net/wan/ixp4xx_hss.c switch(ifr->ifr_settings.type) { ifr 1256 drivers/net/wan/ixp4xx_hss.c ifr->ifr_settings.type = IF_IFACE_V35; ifr 1257 drivers/net/wan/ixp4xx_hss.c if (ifr->ifr_settings.size < size) { ifr 1258 drivers/net/wan/ixp4xx_hss.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 1310 drivers/net/wan/ixp4xx_hss.c return hdlc_ioctl(dev, ifr, cmd); ifr 22 drivers/net/wan/lmc/lmc.h int lmc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); ifr 108 drivers/net/wan/lmc/lmc_main.c int lmc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) /*fold00*/ ifr 129 drivers/net/wan/lmc/lmc_main.c if (copy_to_user(ifr->ifr_data, &sc->ictl, sizeof(lmc_ctl_t))) ifr 146 drivers/net/wan/lmc/lmc_main.c if (copy_from_user(&ctl, ifr->ifr_data, sizeof(lmc_ctl_t))) { ifr 176 drivers/net/wan/lmc/lmc_main.c if (copy_from_user(&new_type, ifr->ifr_data, sizeof(u16))) { ifr 216 drivers/net/wan/lmc/lmc_main.c if (copy_to_user(ifr->ifr_data, &sc->lmc_xinfo, ifr 250 drivers/net/wan/lmc/lmc_main.c if (copy_to_user(ifr->ifr_data, &sc->lmc_device->stats, ifr 252 drivers/net/wan/lmc/lmc_main.c copy_to_user(ifr->ifr_data + sizeof(sc->lmc_device->stats), ifr 287 drivers/net/wan/lmc/lmc_main.c if (copy_from_user(&ctl, ifr->ifr_data, sizeof(lmc_ctl_t))) { ifr 319 drivers/net/wan/lmc/lmc_main.c if (copy_to_user(ifr->ifr_data, &lmcEventLogIndex, sizeof(u32))) { ifr 323 drivers/net/wan/lmc/lmc_main.c if (copy_to_user(ifr->ifr_data + sizeof(u32), lmcEventLogBuf, ifr 351 drivers/net/wan/lmc/lmc_main.c if (copy_from_user(&xc, ifr->ifr_data, sizeof(struct lmc_xilinx_control))) { ifr 618 drivers/net/wan/lmc/lmc_main.c ret = lmc_proto_ioctl (sc, ifr, cmd); ifr 63 drivers/net/wan/lmc/lmc_proto.c int lmc_proto_ioctl(lmc_softc_t *sc, struct ifreq *ifr, int cmd) ifr 67 drivers/net/wan/lmc/lmc_proto.c return hdlc_ioctl(sc->lmc_device, ifr, cmd); ifr 8 drivers/net/wan/lmc/lmc_proto.h int lmc_proto_ioctl(lmc_softc_t *sc, struct ifreq *ifr, int cmd); ifr 246 drivers/net/wan/n2.c static int n2_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 250 drivers/net/wan/n2.c sync_serial_settings __user *line = ifr->ifr_settings.ifs_ifsu.sync; ifr 260 drivers/net/wan/n2.c return hdlc_ioctl(dev, ifr, cmd); ifr 262 drivers/net/wan/n2.c switch(ifr->ifr_settings.type) { ifr 264 drivers/net/wan/n2.c ifr->ifr_settings.type = IF_IFACE_SYNC_SERIAL; ifr 265 drivers/net/wan/n2.c if (ifr->ifr_settings.size < size) { ifr 266 drivers/net/wan/n2.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 294 drivers/net/wan/n2.c return hdlc_ioctl(dev, ifr, cmd); ifr 191 drivers/net/wan/pc300too.c static int pc300_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 195 drivers/net/wan/pc300too.c sync_serial_settings __user *line = ifr->ifr_settings.ifs_ifsu.sync; ifr 206 drivers/net/wan/pc300too.c return hdlc_ioctl(dev, ifr, cmd); ifr 208 drivers/net/wan/pc300too.c if (ifr->ifr_settings.type == IF_GET_IFACE) { ifr 209 drivers/net/wan/pc300too.c ifr->ifr_settings.type = port->iface; ifr 210 drivers/net/wan/pc300too.c if (ifr->ifr_settings.size < size) { ifr 211 drivers/net/wan/pc300too.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 221 drivers/net/wan/pc300too.c (ifr->ifr_settings.type == IF_IFACE_SYNC_SERIAL || ifr 222 drivers/net/wan/pc300too.c ifr->ifr_settings.type == IF_IFACE_X21)) ifr 226 drivers/net/wan/pc300too.c (ifr->ifr_settings.type == IF_IFACE_SYNC_SERIAL || ifr 227 drivers/net/wan/pc300too.c ifr->ifr_settings.type == IF_IFACE_V35)) ifr 231 drivers/net/wan/pc300too.c ifr->ifr_settings.type == IF_IFACE_V24) ifr 235 drivers/net/wan/pc300too.c return hdlc_ioctl(dev, ifr, cmd); ifr 182 drivers/net/wan/pci200syn.c static int pci200_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 186 drivers/net/wan/pci200syn.c sync_serial_settings __user *line = ifr->ifr_settings.ifs_ifsu.sync; ifr 196 drivers/net/wan/pci200syn.c return hdlc_ioctl(dev, ifr, cmd); ifr 198 drivers/net/wan/pci200syn.c switch(ifr->ifr_settings.type) { ifr 200 drivers/net/wan/pci200syn.c ifr->ifr_settings.type = IF_IFACE_V35; ifr 201 drivers/net/wan/pci200syn.c if (ifr->ifr_settings.size < size) { ifr 202 drivers/net/wan/pci200syn.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 232 drivers/net/wan/pci200syn.c return hdlc_ioctl(dev, ifr, cmd); ifr 1289 drivers/net/wan/sbni.c sbni_ioctl( struct net_device *dev, struct ifreq *ifr, int cmd ) ifr 1302 drivers/net/wan/sbni.c if (copy_to_user( ifr->ifr_data, &nl->in_stats, ifr 1320 drivers/net/wan/sbni.c if (copy_to_user( ifr->ifr_data, &flags, sizeof flags )) ifr 1329 drivers/net/wan/sbni.c flags = *(struct sbni_flags*) &ifr->ifr_ifru; ifr 1349 drivers/net/wan/sbni.c if (copy_from_user( slave_name, ifr->ifr_data, sizeof slave_name )) ifr 276 drivers/net/wan/sdla.c static int sdla_cpuspeed(struct net_device *dev, struct ifreq *ifr) ifr 304 drivers/net/wan/sdla.c ifr->ifr_mtu = SDLA_CPU_16M; ifr 306 drivers/net/wan/sdla.c ifr->ifr_mtu = SDLA_CPU_10M; ifr 308 drivers/net/wan/sdla.c ifr->ifr_mtu = SDLA_CPU_8M; ifr 310 drivers/net/wan/sdla.c ifr->ifr_mtu = SDLA_CPU_7M; ifr 312 drivers/net/wan/sdla.c ifr->ifr_mtu = SDLA_CPU_5M; ifr 314 drivers/net/wan/sdla.c ifr->ifr_mtu = SDLA_CPU_3M; ifr 1248 drivers/net/wan/sdla.c static int sdla_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1264 drivers/net/wan/sdla.c return sdla_config(dev, ifr->ifr_data, cmd == FRAD_GET_CONF); ifr 1267 drivers/net/wan/sdla.c ifr->ifr_flags = flp->type; ifr 1271 drivers/net/wan/sdla.c return sdla_cpuspeed(dev, ifr); ifr 1283 drivers/net/wan/sdla.c switch (ifr->ifr_flags) ifr 1286 drivers/net/wan/sdla.c dev->type = ifr->ifr_flags; ifr 1301 drivers/net/wan/sdla.c return sdla_xfer(dev, ifr->ifr_data, cmd == SDLA_READMEM); ifr 144 drivers/net/wan/sealevel.c static int sealevel_ioctl(struct net_device *d, struct ifreq *ifr, int cmd) ifr 148 drivers/net/wan/sealevel.c return hdlc_ioctl(d, ifr, cmd); ifr 339 drivers/net/wan/wanxl.c static int wanxl_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 346 drivers/net/wan/wanxl.c return hdlc_ioctl(dev, ifr, cmd); ifr 348 drivers/net/wan/wanxl.c switch (ifr->ifr_settings.type) { ifr 350 drivers/net/wan/wanxl.c ifr->ifr_settings.type = IF_IFACE_SYNC_SERIAL; ifr 351 drivers/net/wan/wanxl.c if (ifr->ifr_settings.size < size) { ifr 352 drivers/net/wan/wanxl.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 360 drivers/net/wan/wanxl.c if (copy_to_user(ifr->ifr_settings.ifs_ifsu.sync, &line, size)) ifr 370 drivers/net/wan/wanxl.c if (copy_from_user(&line, ifr->ifr_settings.ifs_ifsu.sync, ifr 385 drivers/net/wan/wanxl.c return hdlc_ioctl(dev, ifr, cmd); ifr 93 drivers/net/wireless/intersil/hostap/hostap.h int hostap_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); ifr 3957 drivers/net/wireless/intersil/hostap/hostap_ioctl.c int hostap_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 3959 drivers/net/wireless/intersil/hostap/hostap_ioctl.c struct iwreq *wrq = (struct iwreq *) ifr; ifr 622 drivers/pinctrl/pinctrl-coh901.c u32 ifr; ifr 663 drivers/pinctrl/pinctrl-coh901.c ifr = U300_GPIO_PXIFR; ifr 710 drivers/pinctrl/pinctrl-coh901.c writel(0x0, gpio->base + portno * gpio->stride + ifr); ifr 219 drivers/spi/atmel-quadspi.c u32 iar, icr, ifr; ifr 225 drivers/spi/atmel-quadspi.c ifr = QSPI_IFR_INSTEN; ifr 230 drivers/spi/atmel-quadspi.c ifr |= atmel_qspi_modes[mode].config; ifr 252 drivers/spi/atmel-quadspi.c ifr |= QSPI_IFR_OPTEN | QSPI_IFR_OPTL_8BIT; ifr 257 drivers/spi/atmel-quadspi.c ifr &= ~QSPI_IFR_INSTEN; ifr 258 drivers/spi/atmel-quadspi.c ifr |= QSPI_IFR_ADDREN; ifr 262 drivers/spi/atmel-quadspi.c ifr |= QSPI_IFR_ADDREN; ifr 268 drivers/spi/atmel-quadspi.c ifr |= QSPI_IFR_ADDREN; ifr 272 drivers/spi/atmel-quadspi.c ifr |= QSPI_IFR_ADDREN | QSPI_IFR_ADDRL; ifr 285 drivers/spi/atmel-quadspi.c ifr |= QSPI_IFR_NBDUM(dummy_cycles); ifr 289 drivers/spi/atmel-quadspi.c ifr |= QSPI_IFR_DATAEN; ifr 305 drivers/spi/atmel-quadspi.c ifr |= QSPI_IFR_APBTFRTYP_READ; ifr 313 drivers/spi/atmel-quadspi.c writel_relaxed(ifr, aq->regs + QSPI_IFR); ifr 316 drivers/spi/atmel-quadspi.c ifr |= QSPI_IFR_SAMA5D2_WRITE_TRSFR; ifr 321 drivers/spi/atmel-quadspi.c writel_relaxed(ifr, aq->regs + QSPI_IFR); ifr 49 drivers/staging/rtl8188eu/include/rtw_android.h int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd); ifr 130 drivers/staging/rtl8188eu/os_dep/rtw_android.c int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd) ifr 138 drivers/staging/rtl8188eu/os_dep/rtw_android.c if (!ifr->ifr_data) ifr 140 drivers/staging/rtl8188eu/os_dep/rtw_android.c if (copy_from_user(&priv_cmd, ifr->ifr_data, sizeof(priv_cmd))) ifr 149 drivers/staging/rtl8188eu/os_dep/rtw_android.c __func__, command, ifr->ifr_name); ifr 159 drivers/staging/rtl8188eu/os_dep/rtw_android.c __func__, command, ifr->ifr_name); ifr 101 drivers/staging/wlan-ng/p80211netdev.c static int p80211knetdev_do_ioctl(struct net_device *dev, struct ifreq *ifr, ifr 541 drivers/staging/wlan-ng/p80211netdev.c struct ifreq *ifr, int cmd) ifr 544 drivers/staging/wlan-ng/p80211netdev.c struct p80211ioctl_req *req = (struct p80211ioctl_req *)ifr; ifr 553 drivers/staging/wlan-ng/p80211netdev.c p80211netdev_ethtool(wlandev, (void __user *)ifr->ifr_data); ifr 7740 drivers/tty/synclink.c static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 7744 drivers/tty/synclink.c sync_serial_settings __user *line = ifr->ifr_settings.ifs_ifsu.sync; ifr 7756 drivers/tty/synclink.c return hdlc_ioctl(dev, ifr, cmd); ifr 7758 drivers/tty/synclink.c switch(ifr->ifr_settings.type) { ifr 7761 drivers/tty/synclink.c ifr->ifr_settings.type = IF_IFACE_SYNC_SERIAL; ifr 7762 drivers/tty/synclink.c if (ifr->ifr_settings.size < size) { ifr 7763 drivers/tty/synclink.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 7831 drivers/tty/synclink.c return hdlc_ioctl(dev, ifr, cmd); ifr 1585 drivers/tty/synclink_gt.c static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1589 drivers/tty/synclink_gt.c sync_serial_settings __user *line = ifr->ifr_settings.ifs_ifsu.sync; ifr 1600 drivers/tty/synclink_gt.c return hdlc_ioctl(dev, ifr, cmd); ifr 1604 drivers/tty/synclink_gt.c switch(ifr->ifr_settings.type) { ifr 1607 drivers/tty/synclink_gt.c ifr->ifr_settings.type = IF_IFACE_SYNC_SERIAL; ifr 1608 drivers/tty/synclink_gt.c if (ifr->ifr_settings.size < size) { ifr 1609 drivers/tty/synclink_gt.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 1676 drivers/tty/synclink_gt.c return hdlc_ioctl(dev, ifr, cmd); ifr 1710 drivers/tty/synclinkmp.c static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1714 drivers/tty/synclinkmp.c sync_serial_settings __user *line = ifr->ifr_settings.ifs_ifsu.sync; ifr 1726 drivers/tty/synclinkmp.c return hdlc_ioctl(dev, ifr, cmd); ifr 1728 drivers/tty/synclinkmp.c switch(ifr->ifr_settings.type) { ifr 1731 drivers/tty/synclinkmp.c ifr->ifr_settings.type = IF_IFACE_SYNC_SERIAL; ifr 1732 drivers/tty/synclinkmp.c if (ifr->ifr_settings.size < size) { ifr 1733 drivers/tty/synclinkmp.c ifr->ifr_settings.size = size; /* data size wanted */ ifr 1801 drivers/tty/synclinkmp.c return hdlc_ioctl(dev, ifr, cmd); ifr 25 include/linux/hdlc.h int (*ioctl)(struct net_device *dev, struct ifreq *ifr); ifr 57 include/linux/hdlc.h int hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); ifr 1269 include/linux/netdevice.h struct ifreq *ifr, int cmd); ifr 3655 include/linux/netdevice.h int dev_ioctl(struct net *net, unsigned int cmd, struct ifreq *ifr, ifr 549 include/linux/phy.h int (*hwtstamp)(struct phy_device *phydev, struct ifreq *ifr); ifr 1156 include/linux/phy.h int phy_mii_ioctl(struct phy_device *phydev, struct ifreq *ifr, int cmd); ifr 533 include/net/dsa.h struct ifreq *ifr); ifr 535 include/net/dsa.h struct ifreq *ifr); ifr 357 net/8021q/vlan_dev.c static int vlan_dev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 365 net/8021q/vlan_dev.c ifrr.ifr_ifru = ifr->ifr_ifru; ifr 382 net/8021q/vlan_dev.c ifr->ifr_ifru = ifrr.ifr_ifru; ifr 21 net/core/dev_ioctl.c static int dev_ifname(struct net *net, struct ifreq *ifr) ifr 23 net/core/dev_ioctl.c ifr->ifr_name[IFNAMSIZ-1] = 0; ifr 24 net/core/dev_ioctl.c return netdev_get_name(net, ifr->ifr_name, ifr->ifr_ifindex); ifr 103 net/core/dev_ioctl.c static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cmd) ifr 106 net/core/dev_ioctl.c struct net_device *dev = dev_get_by_name_rcu(net, ifr->ifr_name); ifr 113 net/core/dev_ioctl.c ifr->ifr_flags = (short) dev_get_flags(dev); ifr 118 net/core/dev_ioctl.c ifr->ifr_metric = 0; ifr 122 net/core/dev_ioctl.c ifr->ifr_mtu = dev->mtu; ifr 127 net/core/dev_ioctl.c memset(ifr->ifr_hwaddr.sa_data, 0, ifr 128 net/core/dev_ioctl.c sizeof(ifr->ifr_hwaddr.sa_data)); ifr 130 net/core/dev_ioctl.c memcpy(ifr->ifr_hwaddr.sa_data, dev->dev_addr, ifr 131 net/core/dev_ioctl.c min(sizeof(ifr->ifr_hwaddr.sa_data), ifr 133 net/core/dev_ioctl.c ifr->ifr_hwaddr.sa_family = dev->type; ifr 141 net/core/dev_ioctl.c ifr->ifr_map.mem_start = dev->mem_start; ifr 142 net/core/dev_ioctl.c ifr->ifr_map.mem_end = dev->mem_end; ifr 143 net/core/dev_ioctl.c ifr->ifr_map.base_addr = dev->base_addr; ifr 144 net/core/dev_ioctl.c ifr->ifr_map.irq = dev->irq; ifr 145 net/core/dev_ioctl.c ifr->ifr_map.dma = dev->dma; ifr 146 net/core/dev_ioctl.c ifr->ifr_map.port = dev->if_port; ifr 150 net/core/dev_ioctl.c ifr->ifr_ifindex = dev->ifindex; ifr 154 net/core/dev_ioctl.c ifr->ifr_qlen = dev->tx_queue_len; ifr 169 net/core/dev_ioctl.c static int net_hwtstamp_validate(struct ifreq *ifr) ifr 177 net/core/dev_ioctl.c if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) ifr 224 net/core/dev_ioctl.c static int dev_ifsioc(struct net *net, struct ifreq *ifr, unsigned int cmd) ifr 227 net/core/dev_ioctl.c struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name); ifr 237 net/core/dev_ioctl.c return dev_change_flags(dev, ifr->ifr_flags, NULL); ifr 244 net/core/dev_ioctl.c return dev_set_mtu(dev, ifr->ifr_mtu); ifr 249 net/core/dev_ioctl.c return dev_set_mac_address(dev, &ifr->ifr_hwaddr, NULL); ifr 252 net/core/dev_ioctl.c if (ifr->ifr_hwaddr.sa_family != dev->type) ifr 254 net/core/dev_ioctl.c memcpy(dev->broadcast, ifr->ifr_hwaddr.sa_data, ifr 255 net/core/dev_ioctl.c min(sizeof(ifr->ifr_hwaddr.sa_data), ifr 264 net/core/dev_ioctl.c return ops->ndo_set_config(dev, &ifr->ifr_map); ifr 270 net/core/dev_ioctl.c ifr->ifr_hwaddr.sa_family != AF_UNSPEC) ifr 274 net/core/dev_ioctl.c return dev_mc_add_global(dev, ifr->ifr_hwaddr.sa_data); ifr 278 net/core/dev_ioctl.c ifr->ifr_hwaddr.sa_family != AF_UNSPEC) ifr 282 net/core/dev_ioctl.c return dev_mc_del_global(dev, ifr->ifr_hwaddr.sa_data); ifr 285 net/core/dev_ioctl.c if (ifr->ifr_qlen < 0) ifr 287 net/core/dev_ioctl.c return dev_change_tx_queue_len(dev, ifr->ifr_qlen); ifr 290 net/core/dev_ioctl.c ifr->ifr_newname[IFNAMSIZ-1] = '\0'; ifr 291 net/core/dev_ioctl.c return dev_change_name(dev, ifr->ifr_newname); ifr 294 net/core/dev_ioctl.c err = net_hwtstamp_validate(ifr); ifr 322 net/core/dev_ioctl.c err = ops->ndo_do_ioctl(dev, ifr, cmd); ifr 378 net/core/dev_ioctl.c int dev_ioctl(struct net *net, unsigned int cmd, struct ifreq *ifr, bool *need_copyout) ifr 386 net/core/dev_ioctl.c return dev_ifname(net, ifr); ifr 388 net/core/dev_ioctl.c ifr->ifr_name[IFNAMSIZ-1] = 0; ifr 390 net/core/dev_ioctl.c colon = strchr(ifr->ifr_name, ':'); ifr 413 net/core/dev_ioctl.c dev_load(net, ifr->ifr_name); ifr 415 net/core/dev_ioctl.c ret = dev_ifsioc_locked(net, ifr, cmd); ifr 422 net/core/dev_ioctl.c dev_load(net, ifr->ifr_name); ifr 424 net/core/dev_ioctl.c ret = dev_ethtool(net, ifr); ifr 439 net/core/dev_ioctl.c dev_load(net, ifr->ifr_name); ifr 443 net/core/dev_ioctl.c ret = dev_ifsioc(net, ifr, cmd); ifr 487 net/core/dev_ioctl.c dev_load(net, ifr->ifr_name); ifr 489 net/core/dev_ioctl.c ret = dev_ifsioc(net, ifr, cmd); ifr 512 net/core/dev_ioctl.c dev_load(net, ifr->ifr_name); ifr 514 net/core/dev_ioctl.c ret = dev_ifsioc(net, ifr, cmd); ifr 2561 net/core/ethtool.c int dev_ethtool(struct net *net, struct ifreq *ifr) ifr 2563 net/core/ethtool.c struct net_device *dev = __dev_get_by_name(net, ifr->ifr_name); ifr 2564 net/core/ethtool.c void __user *useraddr = ifr->ifr_data; ifr 416 net/decnet/dn_dev.c struct ifreq *ifr = (struct ifreq *)buffer; ifr 417 net/decnet/dn_dev.c struct sockaddr_dn *sdn = (struct sockaddr_dn *)&ifr->ifr_addr; ifr 424 net/decnet/dn_dev.c if (copy_from_user(ifr, arg, DN_IFREQ_SIZE)) ifr 426 net/decnet/dn_dev.c ifr->ifr_name[IFNAMSIZ-1] = 0; ifr 428 net/decnet/dn_dev.c dev_load(&init_net, ifr->ifr_name); ifr 445 net/decnet/dn_dev.c if ((dev = __dev_get_by_name(&init_net, ifr->ifr_name)) == NULL) { ifr 454 net/decnet/dn_dev.c if (strcmp(ifr->ifr_name, ifa->ifa_label) == 0) ifr 490 net/decnet/dn_dev.c if (copy_to_user(arg, ifr, DN_IFREQ_SIZE)) ifr 254 net/dsa/slave.c static int dsa_slave_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 264 net/dsa/slave.c return ds->ops->port_hwtstamp_get(ds, port, ifr); ifr 268 net/dsa/slave.c return ds->ops->port_hwtstamp_set(ds, port, ifr); ifr 272 net/dsa/slave.c return phylink_mii_ioctl(p->dp->pl, ifr, cmd); ifr 128 net/ieee802154/socket.c struct ifreq ifr; ifr 132 net/ieee802154/socket.c if (copy_from_user(&ifr, arg, sizeof(struct ifreq))) ifr 135 net/ieee802154/socket.c ifr.ifr_name[IFNAMSIZ-1] = 0; ifr 137 net/ieee802154/socket.c dev_load(sock_net(sk), ifr.ifr_name); ifr 138 net/ieee802154/socket.c dev = dev_get_by_name(sock_net(sk), ifr.ifr_name); ifr 144 net/ieee802154/socket.c ret = dev->netdev_ops->ndo_do_ioctl(dev, &ifr, cmd); ifr 146 net/ieee802154/socket.c if (!ret && copy_to_user(arg, &ifr, sizeof(struct ifreq))) ifr 919 net/ipv4/af_inet.c struct ifreq ifr; ifr 942 net/ipv4/af_inet.c if (copy_from_user(&ifr, p, sizeof(struct ifreq))) ifr 944 net/ipv4/af_inet.c err = devinet_ioctl(net, cmd, &ifr); ifr 945 net/ipv4/af_inet.c if (!err && copy_to_user(p, &ifr, sizeof(struct ifreq))) ifr 955 net/ipv4/af_inet.c if (copy_from_user(&ifr, p, sizeof(struct ifreq))) ifr 957 net/ipv4/af_inet.c err = devinet_ioctl(net, cmd, &ifr); ifr 1009 net/ipv4/devinet.c int devinet_ioctl(struct net *net, unsigned int cmd, struct ifreq *ifr) ifr 1012 net/ipv4/devinet.c struct sockaddr_in *sin = (struct sockaddr_in *)&ifr->ifr_addr; ifr 1021 net/ipv4/devinet.c ifr->ifr_name[IFNAMSIZ - 1] = 0; ifr 1026 net/ipv4/devinet.c colon = strchr(ifr->ifr_name, ':'); ifr 1030 net/ipv4/devinet.c dev_load(net, ifr->ifr_name); ifr 1070 net/ipv4/devinet.c dev = __dev_get_by_name(net, ifr->ifr_name); ifr 1089 net/ipv4/devinet.c if (!strcmp(ifr->ifr_name, ifa->ifa_label) && ifr 1103 net/ipv4/devinet.c if (!strcmp(ifr->ifr_name, ifa->ifa_label)) ifr 1139 net/ipv4/devinet.c if (!(ifr->ifr_flags & IFF_UP)) ifr 1143 net/ipv4/devinet.c ret = dev_change_flags(dev, ifr->ifr_flags, NULL); ifr 1158 net/ipv4/devinet.c memcpy(ifa->ifa_label, ifr->ifr_name, IFNAMSIZ); ifr 1251 net/ipv4/devinet.c struct ifreq ifr; ifr 1267 net/ipv4/devinet.c memset(&ifr, 0, sizeof(struct ifreq)); ifr 1268 net/ipv4/devinet.c strcpy(ifr.ifr_name, ifa->ifa_label); ifr 1270 net/ipv4/devinet.c (*(struct sockaddr_in *)&ifr.ifr_addr).sin_family = AF_INET; ifr 1271 net/ipv4/devinet.c (*(struct sockaddr_in *)&ifr.ifr_addr).sin_addr.s_addr = ifr 1274 net/ipv4/devinet.c if (copy_to_user(buf + done, &ifr, size)) { ifr 747 net/ipv4/ip_gre.c struct ifreq *ifr, int cmd) ifr 752 net/ipv4/ip_gre.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) ifr 782 net/ipv4/ip_gre.c if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) ifr 402 net/ipv4/ip_vti.c vti_tunnel_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 407 net/ipv4/ip_vti.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) ifr 432 net/ipv4/ip_vti.c if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) ifr 330 net/ipv4/ipip.c ipip_tunnel_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 335 net/ipv4/ipip.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) ifr 351 net/ipv4/ipip.c if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) ifr 429 net/ipv4/ipmr.c struct ifreq ifr; ifr 439 net/ipv4/ipmr.c ifr.ifr_ifru.ifru_data = (__force void __user *)&p; ifr 445 net/ipv4/ipmr.c ops->ndo_do_ioctl(dev, &ifr, SIOCDELTUNNEL); ifr 477 net/ipv4/ipmr.c struct ifreq ifr; ifr 487 net/ipv4/ipmr.c ifr.ifr_ifru.ifru_data = (__force void __user *)&p; ifr 493 net/ipv4/ipmr.c err = ops->ndo_do_ioctl(dev, &ifr, SIOCADDTUNNEL); ifr 2836 net/ipv6/addrconf.c struct ifreq ifr; ifr 2850 net/ipv6/addrconf.c ifr.ifr_ifru.ifru_data = (__force void __user *)&p; ifr 2856 net/ipv6/addrconf.c err = ops->ndo_do_ioctl(dev, &ifr, SIOCADDTUNNEL); ifr 1223 net/ipv6/ip6_gre.c struct ifreq *ifr, int cmd) ifr 1237 net/ipv6/ip6_gre.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) { ifr 1248 net/ipv6/ip6_gre.c if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) ifr 1259 net/ipv6/ip6_gre.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) ifr 1296 net/ipv6/ip6_gre.c if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) ifr 1309 net/ipv6/ip6_gre.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) ifr 1584 net/ipv6/ip6_tunnel.c ip6_tnl_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1598 net/ipv6/ip6_tunnel.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) { ifr 1610 net/ipv6/ip6_tunnel.c if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) { ifr 1620 net/ipv6/ip6_tunnel.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) ifr 1644 net/ipv6/ip6_tunnel.c if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) ifr 1658 net/ipv6/ip6_tunnel.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) ifr 790 net/ipv6/ip6_vti.c vti6_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 802 net/ipv6/ip6_vti.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) { ifr 814 net/ipv6/ip6_vti.c if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) ifr 823 net/ipv6/ip6_vti.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) ifr 844 net/ipv6/ip6_vti.c if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, sizeof(p))) ifr 857 net/ipv6/ip6_vti.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) ifr 1167 net/ipv6/sit.c ipip6_tunnel_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 1185 net/ipv6/sit.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) { ifr 1197 net/ipv6/sit.c if (copy_to_user(ifr->ifr_ifru.ifru_data, &p, ifr 1206 net/ipv6/sit.c if (copy_to_user(ifr->ifr_ifru.ifru_data, &ip6rd, ifr 1221 net/ipv6/sit.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) ifr 1255 net/ipv6/sit.c if (copy_to_user(ifr->ifr_ifru.ifru_data, &t->parms, sizeof(p))) ifr 1268 net/ipv6/sit.c if (copy_from_user(&p, ifr->ifr_ifru.ifru_data, sizeof(p))) ifr 1287 net/ipv6/sit.c err = ipip6_tunnel_get_prl(t, ifr->ifr_ifru.ifru_data); ifr 1300 net/ipv6/sit.c if (copy_from_user(&prl, ifr->ifr_ifru.ifru_data, sizeof(prl))) ifr 1325 net/ipv6/sit.c if (copy_from_user(&ip6rd, ifr->ifr_ifru.ifru_data, ifr 49 net/mac802154/iface.c mac802154_wpan_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ifr 54 net/mac802154/iface.c (struct sockaddr_ieee802154 *)&ifr->ifr_addr; ifr 934 net/qrtr/qrtr.c struct ifreq ifr; ifr 954 net/qrtr/qrtr.c if (copy_from_user(&ifr, argp, sizeof(ifr))) { ifr 959 net/qrtr/qrtr.c sq = (struct sockaddr_qrtr *)&ifr.ifr_addr; ifr 961 net/qrtr/qrtr.c if (copy_to_user(argp, &ifr, sizeof(ifr))) { ifr 1057 net/socket.c struct ifreq ifr; ifr 1059 net/socket.c if (copy_from_user(&ifr, argp, sizeof(struct ifreq))) ifr 1061 net/socket.c err = dev_ioctl(net, cmd, &ifr, &need_copyout); ifr 1063 net/socket.c if (copy_to_user(argp, &ifr, sizeof(struct ifreq))) ifr 1099 net/socket.c struct ifreq ifr; ifr 1101 net/socket.c if (copy_from_user(&ifr, argp, sizeof(struct ifreq))) ifr 1103 net/socket.c err = dev_ioctl(net, cmd, &ifr, &need_copyout); ifr 1105 net/socket.c if (copy_to_user(argp, &ifr, sizeof(struct ifreq))) ifr 3096 net/socket.c struct ifreq ifr; ifr 3137 net/socket.c if (copy_from_user(&ifr.ifr_name, &ifr32->ifr_name, IFNAMSIZ)) ifr 3140 net/socket.c ifr.ifr_data = convert_in ? rxnfc : (void __user *)compat_rxnfc; ifr 3173 net/socket.c ret = dev_ioctl(net, SIOCETHTOOL, &ifr, NULL); ifr 3215 net/socket.c struct ifreq ifr; ifr 3219 net/socket.c if (copy_from_user(&ifr, uifr32, sizeof(struct compat_ifreq))) ifr 3225 net/socket.c saved = ifr.ifr_settings.ifs_ifsu.raw_hdlc; ifr 3226 net/socket.c ifr.ifr_settings.ifs_ifsu.raw_hdlc = compat_ptr(uptr32); ifr 3228 net/socket.c err = dev_ioctl(net, SIOCWANDEV, &ifr, NULL); ifr 3230 net/socket.c ifr.ifr_settings.ifs_ifsu.raw_hdlc = saved; ifr 3231 net/socket.c if (copy_to_user(uifr32, &ifr, sizeof(struct compat_ifreq))) ifr 3304 net/socket.c struct ifreq ifr; ifr 3309 net/socket.c err = copy_from_user(&ifr, uifr32, sizeof(ifr.ifr_name)); ifr 3310 net/socket.c err |= get_user(ifr.ifr_map.mem_start, &uifmap32->mem_start); ifr 3311 net/socket.c err |= get_user(ifr.ifr_map.mem_end, &uifmap32->mem_end); ifr 3312 net/socket.c err |= get_user(ifr.ifr_map.base_addr, &uifmap32->base_addr); ifr 3313 net/socket.c err |= get_user(ifr.ifr_map.irq, &uifmap32->irq); ifr 3314 net/socket.c err |= get_user(ifr.ifr_map.dma, &uifmap32->dma); ifr 3315 net/socket.c err |= get_user(ifr.ifr_map.port, &uifmap32->port); ifr 3319 net/socket.c err = dev_ioctl(net, cmd, &ifr, NULL); ifr 3322 net/socket.c err = copy_to_user(uifr32, &ifr, sizeof(ifr.ifr_name)); ifr 3323 net/socket.c err |= put_user(ifr.ifr_map.mem_start, &uifmap32->mem_start); ifr 3324 net/socket.c err |= put_user(ifr.ifr_map.mem_end, &uifmap32->mem_end); ifr 3325 net/socket.c err |= put_user(ifr.ifr_map.base_addr, &uifmap32->base_addr); ifr 3326 net/socket.c err |= put_user(ifr.ifr_map.irq, &uifmap32->irq); ifr 3327 net/socket.c err |= put_user(ifr.ifr_map.dma, &uifmap32->dma); ifr 3328 net/socket.c err |= put_user(ifr.ifr_map.port, &uifmap32->port); ifr 75 samples/bpf/xdp_router_ipv4_user.c struct ifreq ifr; ifr 80 samples/bpf/xdp_router_ipv4_user.c ifr.ifr_addr.sa_family = AF_INET; ifr 81 samples/bpf/xdp_router_ipv4_user.c strncpy(ifr.ifr_name, iface, IFNAMSIZ - 1); ifr 82 samples/bpf/xdp_router_ipv4_user.c if (ioctl(fd, SIOCGIFHWADDR, &ifr) < 0) { ifr 87 samples/bpf/xdp_router_ipv4_user.c *((__u8 *)&mac + i) = (__u8)ifr.ifr_hwaddr.sa_data[i]; ifr 221 samples/mic/mpssd/mpssd.c struct ifreq ifr; ifr 232 samples/mic/mpssd/mpssd.c memset(&ifr, 0, sizeof(ifr)); ifr 234 samples/mic/mpssd/mpssd.c ifr.ifr_flags = IFF_TAP | IFF_NO_PI | IFF_VNET_HDR; ifr 236 samples/mic/mpssd/mpssd.c strncpy(ifr.ifr_name, dev, IFNAMSIZ); ifr 238 samples/mic/mpssd/mpssd.c err = ioctl(fd, TUNSETIFF, (void *)&ifr); ifr 256 samples/mic/mpssd/mpssd.c strcpy(dev, ifr.ifr_name); ifr 396 tools/lib/bpf/xsk.c struct ifreq ifr = {}; ifr 403 tools/lib/bpf/xsk.c ifr.ifr_data = (void *)&channels; ifr 404 tools/lib/bpf/xsk.c memcpy(ifr.ifr_name, xsk->ifname, IFNAMSIZ - 1); ifr 405 tools/lib/bpf/xsk.c ifr.ifr_name[IFNAMSIZ - 1] = '\0'; ifr 406 tools/lib/bpf/xsk.c err = ioctl(fd, SIOCETHTOOL, &ifr); ifr 389 tools/testing/selftests/bpf/prog_tests/flow_dissector.c struct ifreq ifr = { ifr 394 tools/testing/selftests/bpf/prog_tests/flow_dissector.c strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); ifr 400 tools/testing/selftests/bpf/prog_tests/flow_dissector.c ret = ioctl(fd, TUNSETIFF, &ifr); ifr 420 tools/testing/selftests/bpf/prog_tests/flow_dissector.c struct ifreq ifr = {}; ifr 423 tools/testing/selftests/bpf/prog_tests/flow_dissector.c strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); ifr 429 tools/testing/selftests/bpf/prog_tests/flow_dissector.c ret = ioctl(sk, SIOCGIFFLAGS, &ifr); ifr 435 tools/testing/selftests/bpf/prog_tests/flow_dissector.c ifr.ifr_flags |= IFF_UP; ifr 436 tools/testing/selftests/bpf/prog_tests/flow_dissector.c ret = ioctl(sk, SIOCSIFFLAGS, &ifr); ifr 279 tools/testing/selftests/net/udpgso.c struct ifreq ifr; ifr 281 tools/testing/selftests/net/udpgso.c memset(&ifr, 0, sizeof(ifr)); ifr 283 tools/testing/selftests/net/udpgso.c strcpy(ifr.ifr_name, ifname); ifr 285 tools/testing/selftests/net/udpgso.c if (ioctl(fd, SIOCGIFMTU, &ifr)) ifr 288 tools/testing/selftests/net/udpgso.c return ifr.ifr_mtu; ifr 293 tools/testing/selftests/net/udpgso.c struct ifreq ifr; ifr 295 tools/testing/selftests/net/udpgso.c memset(&ifr, 0, sizeof(ifr)); ifr 297 tools/testing/selftests/net/udpgso.c ifr.ifr_mtu = mtu; ifr 298 tools/testing/selftests/net/udpgso.c strcpy(ifr.ifr_name, ifname); ifr 300 tools/testing/selftests/net/udpgso.c if (ioctl(fd, SIOCSIFMTU, &ifr)) ifr 88 tools/testing/selftests/networking/timestamping/hwtstamp_config.c struct ifreq ifr; ifr 114 tools/testing/selftests/networking/timestamping/hwtstamp_config.c strcpy(ifr.ifr_name, argv[1]); ifr 115 tools/testing/selftests/networking/timestamping/hwtstamp_config.c ifr.ifr_data = (caddr_t)&config; ifr 117 tools/testing/selftests/networking/timestamping/hwtstamp_config.c if (ioctl(sock, (argc == 2) ? SIOCGHWTSTAMP : SIOCSHWTSTAMP, &ifr)) {