Home
last modified time | relevance | path

Searched refs:ifreq (Results 1 – 25 of 322) sorted by relevance

12345678910>>...13

/openbmc/phosphor-networkd/src/
H A Dsystem_queries.cpp35 static ifreq makeIFReq(std::string_view ifname) in makeIFReq()
37 ifreq ifr = {}; in makeIFReq()
43 static ifreq executeIFReq(std::string_view ifname, unsigned long cmd, in executeIFReq()
46 ifreq ifr = makeIFReq(ifname); in executeIFReq()
56 ifreq ifr; in optionalIFReq()
90 [&](const ifreq&) { in getEthInfo() argument
107 ifreq ifr = executeIFReq(ifname, SIOCGIFFLAGS); in setNICUp()
/openbmc/google-misc/subprojects/ncsid/src/
H A Dnet_iface.h68 virtual int ioctl(int request, struct ifreq* ifr) const = 0;
75 struct ifreq* ifr) const = 0;
99 int ioctl(int request, struct ifreq* ifr) const override;
104 int ioctl_sock(int sockfd, int request, struct ifreq* ifr) const override;
H A Dnet_iface.cpp41 struct ifreq ifr; in get_index()
64 struct ifreq ifr; in mod_sock_flags()
84 int IFace::ioctl_sock(int sockfd, int request, struct ifreq* ifr) const in ioctl_sock()
115 int IFace::ioctl(int request, struct ifreq* ifr) const in ioctl()
/openbmc/inarp/
H A Dinarp.c167 const char *ifname, struct ifreq *ifreq) in do_ifreq() argument
169 memset(ifreq, 0, sizeof(*ifreq)); in do_ifreq()
170 strncpy(ifreq->ifr_name, ifname, sizeof(ifreq->ifr_name)); in do_ifreq()
172 return ioctl(fd, type, ifreq); in do_ifreq()
179 struct ifreq ifreq; in get_local_ipaddr() local
182 rc = do_ifreq(inarp->arp_sd, SIOCGIFADDR, ifname, &ifreq); in get_local_ipaddr()
190 if (ifreq.ifr_addr.sa_family != AF_INET) { in get_local_ipaddr()
193 ifreq.ifr_addr.sa_family); in get_local_ipaddr()
197 sa = (struct sockaddr_in *)&ifreq.ifr_addr; in get_local_ipaddr()
/openbmc/linux/drivers/net/dsa/mv88e6xxx/
H A Dhwtstamp.h114 struct ifreq *ifr);
116 struct ifreq *ifr);
136 int port, struct ifreq *ifr) in mv88e6xxx_port_hwtstamp_set()
142 int port, struct ifreq *ifr) in mv88e6xxx_port_hwtstamp_get()
/openbmc/linux/net/core/
H A Ddev_ioctl.c27 static int dev_ifname(struct net *net, struct ifreq *ifr) in dev_ifname()
63 size = sizeof(struct ifreq); in dev_ifconf()
85 static int dev_getifmap(struct net_device *dev, struct ifreq *ifr) in dev_getifmap()
112 static int dev_setifmap(struct net_device *dev, struct ifreq *ifr) in dev_setifmap()
243 struct ifreq *ifr, unsigned int cmd) in dev_eth_ioctl()
280 static int dev_get_hwtstamp(struct net_device *dev, struct ifreq *ifr) in dev_get_hwtstamp()
367 static int dev_set_hwtstamp(struct net_device *dev, struct ifreq *ifr) in dev_set_hwtstamp()
418 struct ifreq ifrr; in generic_hwtstamp_ioctl_lower()
468 struct ifreq *ifr, unsigned int cmd) in dev_siocbond()
482 static int dev_siocdevprivate(struct net_device *dev, struct ifreq *ifr, in dev_siocdevprivate()
[all …]
/openbmc/qemu/net/
H A Dtap-linux.c43 struct ifreq ifr; in tap_open()
151 struct ifreq ifr; in tap_probe_vnet_hdr()
274 struct ifreq ifr; in tap_fd_enable()
292 struct ifreq ifr; in tap_fd_disable()
309 struct ifreq ifr; in tap_fd_get_ifname()
H A Dtap-bsd.c43 struct ifreq ifr; in tap_open()
112 struct ifreq ifr; in tap_open_clone()
/openbmc/google-misc/subprojects/ncsid/test/
H A Dnet_iface_mock.cpp29 int IFace::ioctl_sock(int, int request, struct ifreq* ifr) const in ioctl_sock()
34 int IFace::ioctl(int request, struct ifreq* ifr) const in ioctl()
H A Dnet_iface_mock.h39 int ioctl_sock(int sockfd, int request, struct ifreq* ifr) const override;
40 int ioctl(int request, struct ifreq* ifr) const override;
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_ptp.h262 int ice_ptp_set_ts_config(struct ice_pf *pf, struct ifreq *ifr);
263 int ice_ptp_get_ts_config(struct ice_pf *pf, struct ifreq *ifr);
280 static inline int ice_ptp_set_ts_config(struct ice_pf *pf, struct ifreq *ifr) in ice_ptp_set_ts_config()
285 static inline int ice_ptp_get_ts_config(struct ice_pf *pf, struct ifreq *ifr) in ice_ptp_get_ts_config()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_ptp.h12 struct ifreq;
136 int hclge_ptp_get_cfg(struct hclge_dev *hdev, struct ifreq *ifr);
137 int hclge_ptp_set_cfg(struct hclge_dev *hdev, struct ifreq *ifr);
/openbmc/linux/drivers/net/dsa/hirschmann/
H A Dhellcreek_hwtstamp.h41 struct ifreq *ifr);
43 struct ifreq *ifr);
/openbmc/linux/include/linux/
H A Dmii_timestamper.h54 struct ifreq *ifreq);
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dptp.h18 int efx_siena_ptp_set_ts_config(struct efx_nic *efx, struct ifreq *ifr);
19 int efx_siena_ptp_get_ts_config(struct efx_nic *efx, struct ifreq *ifr);
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dptp.h21 int efx_ptp_set_ts_config(struct efx_nic *efx, struct ifreq *ifr);
22 int efx_ptp_get_ts_config(struct efx_nic *efx, struct ifreq *ifr);
/openbmc/linux/drivers/net/dsa/microchip/
H A Dksz_ptp.h42 int ksz_hwtstamp_get(struct dsa_switch *ds, int port, struct ifreq *ifr);
43 int ksz_hwtstamp_set(struct dsa_switch *ds, int port, struct ifreq *ifr);
/openbmc/linux/tools/testing/selftests/net/
H A Dtun.c22 struct ifreq ifr; in tun_attach()
33 struct ifreq ifr; in tun_detach()
44 struct ifreq ifr; in tun_alloc()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ptp.h142 int bnxt_hwtstamp_set(struct net_device *dev, struct ifreq *ifr);
143 int bnxt_hwtstamp_get(struct net_device *dev, struct ifreq *ifr);
/openbmc/linux/drivers/net/wireless/intersil/hostap/
H A Dhostap.h95 int hostap_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
96 int hostap_siocdevprivate(struct net_device *dev, struct ifreq *ifr,
/openbmc/linux/drivers/staging/octeon/
H A Dethernet-mdio.h25 int cvm_oct_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
/openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-kernel/kexec/kexec-tools-klibc/
H A D0014-add-if_nameindex-from-musl.patch76 + idx = malloc(n * (sizeof(struct if_nameindex)+sizeof(struct ifreq)));
80 + conf.ifc_len = len = n * sizeof(struct ifreq);
90 + n = conf.ifc_len / sizeof(struct ifreq);
/openbmc/linux/include/uapi/linux/
H A Dif.h234 struct ifreq { struct
290 struct ifreq __user *ifcu_req;
/openbmc/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_lif.h342 int ionic_lif_hwstamp_set(struct ionic_lif *lif, struct ifreq *ifr);
343 int ionic_lif_hwstamp_get(struct ionic_lif *lif, struct ifreq *ifr);
353 static inline int ionic_lif_hwstamp_set(struct ionic_lif *lif, struct ifreq *ifr) in ionic_lif_hwstamp_set()
358 static inline int ionic_lif_hwstamp_get(struct ionic_lif *lif, struct ifreq *ifr) in ionic_lif_hwstamp_get()
/openbmc/linux/drivers/staging/rtl8712/
H A Dosdep_intf.h30 int r871x_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);

12345678910>>...13