Home
last modified time | relevance | path

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

123

/linux-6.6.21/drivers/net/dsa/hirschmann/
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()
/linux-6.6.21/drivers/net/ethernet/engleder/
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()
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/
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()
/linux-6.6.21/drivers/net/ethernet/cadence/
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()
/linux-6.6.21/drivers/net/dsa/mv88e6xxx/
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()
/linux-6.6.21/tools/testing/selftests/net/
Dhwtstamp_config.c117 ifr.ifr_data = (caddr_t)&config; in main()
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/
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()
/linux-6.6.21/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-6.6.21/net/core/
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()
/linux-6.6.21/drivers/net/can/dev/
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()
/linux-6.6.21/include/uapi/linux/
Dif.h270 #define ifr_data ifr_ifru.ifru_data /* for use by interface */ macro
/linux-6.6.21/tools/testing/selftests/bpf/
Dxdp_hw_metadata.c312 .ifr_data = (void *)&ch, in rxq_num()
333 .ifr_data = (void *)cfg, in hwtstamp_ioctl()
/linux-6.6.21/drivers/net/ethernet/qlogic/qede/
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()
/linux-6.6.21/drivers/net/ethernet/mscc/
Docelot_ptp.c517 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/
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()
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/
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()
/linux-6.6.21/drivers/net/ethernet/intel/igc/
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()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
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()
/linux-6.6.21/drivers/net/can/peak_canfd/
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()
/linux-6.6.21/drivers/net/dsa/microchip/
Dksz_ptp.c334 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/
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()
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c929 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/
Dpcan_usb_core.c793 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/
Dbcm-phy-ptp.c791 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/
Digb_ptp.c1118 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()

123