Home
last modified time | relevance | path

Searched refs:ifr_data (Results 1 – 25 of 71) sorted by relevance

123

/openbmc/linux/drivers/net/dsa/hirschmann/
H A Dhellcreek_hwtstamp.c122 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in hellcreek_port_hwtstamp_set()
132 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in hellcreek_port_hwtstamp_set()
146 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in hellcreek_port_hwtstamp_get()
/openbmc/linux/drivers/net/ethernet/engleder/
H A Dtsnep_ptp.c31 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in tsnep_ptp_ioctl()
69 if (copy_to_user(ifr->ifr_data, &adapter->hwtstamp_config, in tsnep_ptp_ioctl()
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_main.c306 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in aq_ndev_hwtstamp_set()
314 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in aq_ndev_hwtstamp_set()
327 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in aq_ndev_hwtstamp_get()
/openbmc/linux/drivers/net/ethernet/cadence/
H A Dmacb_ptp.c386 if (copy_to_user(rq->ifr_data, tstamp_config, sizeof(*tstamp_config))) in gem_get_hwtst()
416 if (copy_from_user(tstamp_config, ifr->ifr_data, in gem_set_hwtst()
469 if (copy_to_user(ifr->ifr_data, tstamp_config, sizeof(*tstamp_config))) in gem_set_hwtst()
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/macchanger/macchanger/
H A D0001-Fix-musl-build.patch8 | req.ifr_data = (caddr_t)epa;
/openbmc/linux/drivers/net/dsa/mv88e6xxx/
H A Dhwtstamp.c182 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in mv88e6xxx_port_hwtstamp_set()
192 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in mv88e6xxx_port_hwtstamp_set()
206 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in mv88e6xxx_port_hwtstamp_get()
/openbmc/linux/tools/testing/selftests/net/
H A Dhwtstamp_config.c117 ifr.ifr_data = (caddr_t)&config; in main()
/openbmc/linux/net/core/
H A Ddev_ioctl.c304 if (copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg))) in dev_get_hwtstamp()
375 if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) in dev_set_hwtstamp()
408 if (copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg))) in dev_set_hwtstamp()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_ptp.c208 return copy_to_user(ifr->ifr_data, &hdev->ptp->ts_cfg, in hclge_ptp_get_cfg()
368 if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) in hclge_ptp_set_cfg()
377 return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; in hclge_ptp_set_cfg()
/openbmc/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_phc.c194 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in ionic_lif_hwstamp_set()
205 if (copy_to_user(ifr->ifr_data, &config, sizeof(config))) in ionic_lif_hwstamp_set()
260 if (copy_to_user(ifr->ifr_data, &config, sizeof(config))) in ionic_lif_hwstamp_get()
/openbmc/linux/drivers/net/can/dev/
H A Ddev.c336 if (copy_from_user(&hwts_cfg, ifr->ifr_data, sizeof(hwts_cfg))) in can_eth_ioctl_hwts()
346 if (copy_to_user(ifr->ifr_data, &hwts_cfg, sizeof(hwts_cfg))) in can_eth_ioctl_hwts()
/openbmc/linux/include/uapi/linux/
H A Dif.h270 #define ifr_data ifr_ifru.ifru_data /* for use by interface */ macro
/openbmc/phosphor-networkd/src/
H A Dsystem_queries.cpp47 ifr.ifr_data = reinterpret_cast<char*>(data); in executeIFReq()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dxdp_hw_metadata.c312 .ifr_data = (void *)&ch, in rxq_num()
333 .ifr_data = (void *)cfg, in hwtstamp_ioctl()
/openbmc/qemu/net/
H A Dtap-bsd.c138 ifr.ifr_data = ifname; in tap_open_clone()
/openbmc/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_ptp.c303 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in qede_ptp_hw_ts()
320 return copy_to_user(ifr->ifr_data, &config, in qede_ptp_hw_ts()
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_ptp.c66 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in sja1105_hwtstamp_set()
89 if (copy_to_user(ifr->ifr_data, &config, sizeof(config))) in sja1105_hwtstamp_set()
109 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in sja1105_hwtstamp_get()
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot_ptp.c541 return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; in ocelot_hwstamp_get()
554 if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) in ocelot_hwstamp_set()
596 if (copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg))) { in ocelot_hwstamp_set()
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ptp.c946 return copy_to_user(ifr->ifr_data, config, in ixgbe_ptp_get_ts_config()
1138 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in ixgbe_ptp_set_ts_config()
1149 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in ixgbe_ptp_set_ts_config()
/openbmc/linux/drivers/net/ethernet/intel/igc/
H A Digc_ptp.c851 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in igc_ptp_set_ts_config()
862 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in igc_ptp_set_ts_config()
880 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in igc_ptp_get_ts_config()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ptp.c549 if (copy_from_user(&stmpconf, ifr->ifr_data, sizeof(stmpconf))) in bnxt_hwtstamp_set()
602 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? in bnxt_hwtstamp_set()
626 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? in bnxt_hwtstamp_get()
/openbmc/linux/drivers/net/can/peak_canfd/
H A Dpeak_canfd.c752 if (copy_from_user(&hwts_cfg, ifr->ifr_data, sizeof(hwts_cfg))) in peak_eth_ioctl()
762 if (copy_to_user(ifr->ifr_data, &hwts_cfg, sizeof(hwts_cfg))) in peak_eth_ioctl()
/openbmc/linux/drivers/net/dsa/microchip/
H A Dksz_ptp.c331 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in ksz_hwtstamp_get()
416 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in ksz_hwtstamp_set()
425 if (copy_to_user(ifr->ifr_data, &config, sizeof(config))) in ksz_hwtstamp_set()
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ptp.c930 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in i40e_ptp_get_ts_config()
1314 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in i40e_ptp_set_ts_config()
1324 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in i40e_ptp_set_ts_config()
/openbmc/linux/drivers/ptp/
H A Dptp_ines.c338 if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) in ines_hwtstamp()
396 return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; in ines_hwtstamp()

123