/Linux-v5.15/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_main.c | 277 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/ |
D | hellcreek_hwtstamp.c | 126 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/ |
D | fec_ptp.c | 473 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/ |
D | macb_ptp.c | 426 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/ |
D | hwtstamp.c | 186 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/ |
D | hwtstamp_config.c | 115 ifr.ifr_data = (caddr_t)&config; in main()
|
D | timestamping.c | 394 hwtstamp.ifr_data = (void *)&hwconfig; in main()
|
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_ptp.c | 220 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/ |
D | ionic_phc.c | 194 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/ |
D | if.h | 270 #define ifr_data ifr_ifru.ifru_data /* for use by interface */ macro
|
/Linux-v5.15/drivers/net/ethernet/qlogic/qede/ |
D | qede_ptp.c | 300 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/ |
D | bnxt_ptp.c | 419 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/ |
D | igc_ptp.c | 727 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/ |
D | ixgbe_ptp.c | 956 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/ |
D | sja1105_ptp.c | 96 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/ |
D | ice_ptp.c | 921 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/ |
D | igb_ptp.c | 986 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/ |
D | ptp_ines.c | 338 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/ |
D | i40e_ptp.c | 948 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/ |
D | cpsw_priv.c | 626 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/ |
D | nxp-c45-tja11xx.c | 520 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/ |
D | dev_ioctl.c | 192 if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) in net_hwtstamp_validate()
|
/Linux-v5.15/drivers/net/ethernet/xscale/ |
D | ixp4xx_eth.c | 382 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/ |
D | ptp.c | 1823 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/ |
D | lan743x_ptp.c | 1236 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()
|