Home
last modified time | relevance | path

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

123

/Linux-v5.15/drivers/net/ethernet/aquantia/atlantic/
Daq_main.c277 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in aq_ndev_hwtstamp_set()
285 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in aq_ndev_hwtstamp_set()
298 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in aq_ndev_hwtstamp_get()
/Linux-v5.15/drivers/net/dsa/hirschmann/
Dhellcreek_hwtstamp.c126 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in hellcreek_port_hwtstamp_set()
136 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in hellcreek_port_hwtstamp_set()
150 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in hellcreek_port_hwtstamp_get()
/Linux-v5.15/drivers/net/ethernet/freescale/
Dfec_ptp.c473 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in fec_ptp_set()
502 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in fec_ptp_set()
516 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in fec_ptp_get()
/Linux-v5.15/drivers/net/ethernet/cadence/
Dmacb_ptp.c426 if (copy_to_user(rq->ifr_data, tstamp_config, sizeof(*tstamp_config))) in gem_get_hwtst()
458 if (copy_from_user(tstamp_config, ifr->ifr_data, in gem_set_hwtst()
514 if (copy_to_user(ifr->ifr_data, tstamp_config, sizeof(*tstamp_config))) in gem_set_hwtst()
/Linux-v5.15/drivers/net/dsa/mv88e6xxx/
Dhwtstamp.c186 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in mv88e6xxx_port_hwtstamp_set()
196 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in mv88e6xxx_port_hwtstamp_set()
210 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in mv88e6xxx_port_hwtstamp_get()
/Linux-v5.15/tools/testing/selftests/net/
Dhwtstamp_config.c115 ifr.ifr_data = (caddr_t)&config; in main()
Dtimestamping.c394 hwtstamp.ifr_data = (void *)&hwconfig; in main()
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_ptp.c220 return copy_to_user(ifr->ifr_data, &hdev->ptp->ts_cfg, in hclge_ptp_get_cfg()
380 if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) in hclge_ptp_set_cfg()
389 return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; in hclge_ptp_set_cfg()
/Linux-v5.15/drivers/net/ethernet/pensando/ionic/
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()
/Linux-v5.15/include/uapi/linux/
Dif.h270 #define ifr_data ifr_ifru.ifru_data /* for use by interface */ macro
/Linux-v5.15/drivers/net/ethernet/qlogic/qede/
Dqede_ptp.c300 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in qede_ptp_hw_ts()
322 return copy_to_user(ifr->ifr_data, &config, in qede_ptp_hw_ts()
/Linux-v5.15/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ptp.c419 if (copy_from_user(&stmpconf, ifr->ifr_data, sizeof(stmpconf))) in bnxt_hwtstamp_set()
469 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? in bnxt_hwtstamp_set()
493 return copy_to_user(ifr->ifr_data, &stmpconf, sizeof(stmpconf)) ? in bnxt_hwtstamp_get()
/Linux-v5.15/drivers/net/ethernet/intel/igc/
Digc_ptp.c727 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in igc_ptp_set_ts_config()
738 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in igc_ptp_set_ts_config()
756 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in igc_ptp_get_ts_config()
/Linux-v5.15/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ptp.c956 return copy_to_user(ifr->ifr_data, config, in ixgbe_ptp_get_ts_config()
1150 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in ixgbe_ptp_set_ts_config()
1161 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in ixgbe_ptp_set_ts_config()
/Linux-v5.15/drivers/net/dsa/sja1105/
Dsja1105_ptp.c96 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in sja1105_hwtstamp_set()
132 if (copy_to_user(ifr->ifr_data, &config, sizeof(config))) in sja1105_hwtstamp_set()
152 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in sja1105_hwtstamp_get()
/Linux-v5.15/drivers/net/ethernet/intel/ice/
Dice_ptp.c921 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in ice_ptp_get_ts_config()
991 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in ice_ptp_set_ts_config()
1001 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in ice_ptp_set_ts_config()
/Linux-v5.15/drivers/net/ethernet/intel/igb/
Digb_ptp.c986 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in igb_ptp_get_ts_config()
1169 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in igb_ptp_set_ts_config()
1180 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in igb_ptp_set_ts_config()
/Linux-v5.15/drivers/ptp/
Dptp_ines.c338 if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) in ines_hwtstamp()
400 return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; in ines_hwtstamp()
/Linux-v5.15/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c948 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in i40e_ptp_get_ts_config()
1336 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in i40e_ptp_set_ts_config()
1346 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in i40e_ptp_set_ts_config()
/Linux-v5.15/drivers/net/ethernet/ti/
Dcpsw_priv.c626 if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) in cpsw_hwtstamp_set()
676 return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; in cpsw_hwtstamp_set()
694 return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; in cpsw_hwtstamp_get()
/Linux-v5.15/drivers/net/phy/
Dnxp-c45-tja11xx.c520 if (copy_from_user(&cfg, ifreq->ifr_data, sizeof(cfg))) in nxp_c45_hwtstamp()
566 return copy_to_user(ifreq->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; in nxp_c45_hwtstamp()
/Linux-v5.15/net/core/
Ddev_ioctl.c192 if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) in net_hwtstamp_validate()
/Linux-v5.15/drivers/net/ethernet/xscale/
Dixp4xx_eth.c382 if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) in hwtstamp_set()
420 return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; in hwtstamp_set()
446 return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; in hwtstamp_get()
/Linux-v5.15/drivers/net/ethernet/sfc/
Dptp.c1823 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in efx_ptp_set_ts_config()
1830 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) in efx_ptp_set_ts_config()
1839 return copy_to_user(ifr->ifr_data, &efx->ptp_data->config, in efx_ptp_get_ts_config()
/Linux-v5.15/drivers/net/ethernet/microchip/
Dlan743x_ptp.c1236 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in lan743x_ptp_ioctl()
1279 return copy_to_user(ifr->ifr_data, &config, in lan743x_ptp_ioctl()

123