/linux-6.6.21/drivers/net/dsa/hirschmann/ |
D | hellcreek_hwtstamp.c | 122 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()
|
/linux-6.6.21/drivers/net/ethernet/engleder/ |
D | tsnep_ptp.c | 31 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()
|
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_main.c | 306 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()
|
/linux-6.6.21/drivers/net/ethernet/cadence/ |
D | macb_ptp.c | 386 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()
|
/linux-6.6.21/drivers/net/dsa/mv88e6xxx/ |
D | hwtstamp.c | 182 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()
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | hwtstamp_config.c | 117 ifr.ifr_data = (caddr_t)&config; in main()
|
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_ptp.c | 208 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()
|
/linux-6.6.21/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-6.6.21/net/core/ |
D | dev_ioctl.c | 304 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()
|
/linux-6.6.21/drivers/net/can/dev/ |
D | dev.c | 336 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()
|
/linux-6.6.21/include/uapi/linux/ |
D | if.h | 270 #define ifr_data ifr_ifru.ifru_data /* for use by interface */ macro
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | xdp_hw_metadata.c | 312 .ifr_data = (void *)&ch, in rxq_num() 333 .ifr_data = (void *)cfg, in hwtstamp_ioctl()
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qede/ |
D | qede_ptp.c | 303 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()
|
/linux-6.6.21/drivers/net/ethernet/mscc/ |
D | ocelot_ptp.c | 517 return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; in ocelot_hwstamp_get() 528 if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) in ocelot_hwstamp_set() 578 return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; in ocelot_hwstamp_set()
|
/linux-6.6.21/drivers/net/dsa/sja1105/ |
D | sja1105_ptp.c | 66 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()
|
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ptp.c | 946 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()
|
/linux-6.6.21/drivers/net/ethernet/intel/igc/ |
D | igc_ptp.c | 851 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()
|
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ptp.c | 549 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()
|
/linux-6.6.21/drivers/net/can/peak_canfd/ |
D | peak_canfd.c | 752 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()
|
/linux-6.6.21/drivers/net/dsa/microchip/ |
D | ksz_ptp.c | 334 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in ksz_hwtstamp_get() 419 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in ksz_hwtstamp_set() 428 if (copy_to_user(ifr->ifr_data, &config, sizeof(config))) in ksz_hwtstamp_set()
|
/linux-6.6.21/drivers/ptp/ |
D | ptp_ines.c | 338 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()
|
/linux-6.6.21/drivers/net/ethernet/intel/i40e/ |
D | i40e_ptp.c | 929 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in i40e_ptp_get_ts_config() 1313 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in i40e_ptp_set_ts_config() 1323 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in i40e_ptp_set_ts_config()
|
/linux-6.6.21/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_core.c | 793 if (copy_from_user(&hwts_cfg, ifr->ifr_data, sizeof(hwts_cfg))) in peak_eth_ioctl() 803 if (copy_to_user(ifr->ifr_data, &hwts_cfg, sizeof(hwts_cfg))) in peak_eth_ioctl()
|
/linux-6.6.21/drivers/net/phy/ |
D | bcm-phy-ptp.c | 791 if (copy_from_user(&cfg, ifr->ifr_data, sizeof(cfg))) in bcm_ptp_hwtstamp() 843 return copy_to_user(ifr->ifr_data, &cfg, sizeof(cfg)) ? -EFAULT : 0; in bcm_ptp_hwtstamp()
|
/linux-6.6.21/drivers/net/ethernet/intel/igb/ |
D | igb_ptp.c | 1118 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in igb_ptp_get_ts_config() 1297 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in igb_ptp_set_ts_config() 1308 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in igb_ptp_set_ts_config()
|