Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/drivers/net/
Deql.c279 return eql_enslave(dev, ifr->ifr_data); in eql_ioctl()
281 return eql_emancipate(dev, ifr->ifr_data); in eql_ioctl()
283 return eql_g_slave_cfg(dev, ifr->ifr_data); in eql_ioctl()
285 return eql_s_slave_cfg(dev, ifr->ifr_data); in eql_ioctl()
287 return eql_g_master_cfg(dev, ifr->ifr_data); in eql_ioctl()
289 return eql_s_master_cfg(dev, ifr->ifr_data); in eql_ioctl()
Dsb1000.c1014 if(copy_to_user(ifr->ifr_data, stats, sizeof(stats))) in sb1000_dev_ioctl()
1022 if(copy_to_user(ifr->ifr_data, version, sizeof(version))) in sb1000_dev_ioctl()
1029 if(put_user(frequency, (int __user *) ifr->ifr_data)) in sb1000_dev_ioctl()
1036 if(get_user(frequency, (int __user *) ifr->ifr_data)) in sb1000_dev_ioctl()
1045 if(copy_to_user(ifr->ifr_data, PID, sizeof(PID))) in sb1000_dev_ioctl()
1052 if(copy_from_user(PID, ifr->ifr_data, sizeof(PID))) in sb1000_dev_ioctl()
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/os_dep/
Drtw_android.c138 if (!ifr->ifr_data) in rtw_android_priv_cmd()
140 if (copy_from_user(&priv_cmd, ifr->ifr_data, sizeof(priv_cmd))) in rtw_android_priv_cmd()
/kernel/linux/linux-5.10/drivers/net/hamradio/
Dbaycom_par.c431 if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) in baycom_ioctl()
443 if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) in baycom_ioctl()
452 if (copy_from_user(&bi, ifr->ifr_data, sizeof(bi))) in baycom_ioctl()
467 if (copy_to_user(ifr->ifr_data, &bi, sizeof(bi))) in baycom_ioctl()
Dbaycom_ser_fdx.c522 if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) in baycom_ioctl()
534 if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) in baycom_ioctl()
543 if (copy_from_user(&bi, ifr->ifr_data, sizeof(bi))) in baycom_ioctl()
558 if (copy_to_user(ifr->ifr_data, &bi, sizeof(bi))) in baycom_ioctl()
Dbaycom_ser_hdx.c576 if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) in baycom_ioctl()
588 if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) in baycom_ioctl()
597 if (copy_from_user(&bi, ifr->ifr_data, sizeof(bi))) in baycom_ioctl()
612 if (copy_to_user(ifr->ifr_data, &bi, sizeof(bi))) in baycom_ioctl()
Dbpqether.c319 struct bpq_ethaddr __user *ethaddr = ifr->ifr_data; in bpq_ioctl()
328 if (copy_from_user(&req, ifr->ifr_data, sizeof(struct bpq_req))) in bpq_ioctl()
Dyam.c930 if (copy_from_user(&ioctl_cmd, ifr->ifr_data, sizeof(int))) in yam_ioctl()
950 ym = memdup_user(ifr->ifr_data, in yam_ioctl()
966 if (copy_from_user(&yi, ifr->ifr_data, sizeof(struct yamdrv_ioctl_cfg))) in yam_ioctl()
1046 if (copy_to_user(ifr->ifr_data, &yi, sizeof(struct yamdrv_ioctl_cfg))) in yam_ioctl()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/wan/lmc/
Dlmc_main.c127 if (copy_to_user(ifr->ifr_data, &sc->ictl, sizeof(lmc_ctl_t))) in lmc_ioctl()
144 if (copy_from_user(&ctl, ifr->ifr_data, sizeof(lmc_ctl_t))) { in lmc_ioctl()
174 if (copy_from_user(&new_type, ifr->ifr_data, sizeof(u16))) { in lmc_ioctl()
214 if (copy_to_user(ifr->ifr_data, &sc->lmc_xinfo, in lmc_ioctl()
248 if (copy_to_user(ifr->ifr_data, &sc->lmc_device->stats, in lmc_ioctl()
250 copy_to_user(ifr->ifr_data + sizeof(sc->lmc_device->stats), in lmc_ioctl()
285 if (copy_from_user(&ctl, ifr->ifr_data, sizeof(lmc_ctl_t))) { in lmc_ioctl()
317 if (copy_to_user(ifr->ifr_data, &lmcEventLogIndex, sizeof(u32))) { in lmc_ioctl()
321 if (copy_to_user(ifr->ifr_data + sizeof(u32), lmcEventLogBuf, in lmc_ioctl()
349 if (copy_from_user(&xc, ifr->ifr_data, sizeof(struct lmc_xilinx_control))) { in lmc_ioctl()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
Digc_ptp.c444 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in igc_ptp_set_ts_config()
455 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in igc_ptp_set_ts_config()
473 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in igc_ptp_get_ts_config()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/liteos_m/kal/libc/newlib/porting/include/net/
Dif.h125 #define ifr_data ifr_ifru.ifru_data macro
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_ptp.c526 return copy_to_user(ifr->ifr_data, config, sizeof(*config)) ? in i40e_ptp_get_ts_config()
676 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in i40e_ptp_set_ts_config()
686 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in i40e_ptp_set_ts_config()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dhwtstamp_config.c115 ifr.ifr_data = (caddr_t)&config; in main()
/kernel/linux/linux-5.10/include/uapi/linux/
Dif.h270 #define ifr_data ifr_ifru.ifru_data /* for use by interface */ macro
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dif.h177 #define ifr_data ifr_ifru.ifru_data macro
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dif.h170 #define ifr_data ifr_ifru.ifru_data macro
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/net/dsa/sja1105/
Dsja1105_ptp.c94 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in sja1105_hwtstamp_set()
130 if (copy_to_user(ifr->ifr_data, &config, sizeof(config))) in sja1105_hwtstamp_set()
150 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in sja1105_hwtstamp_get()
/kernel/linux/linux-5.10/drivers/net/wan/
Dfarsync.c1987 dbg(DBG_IOCTL, "ioctl: %x, %p\n", cmd, ifr->ifr_data); in fst_ioctl()
2011 if (ifr->ifr_data == NULL) { in fst_ioctl()
2014 if (copy_from_user(&wrthdr, ifr->ifr_data, in fst_ioctl()
2029 buf = memdup_user(ifr->ifr_data + sizeof(struct fstioc_write), in fst_ioctl()
2062 if (ifr->ifr_data == NULL) { in fst_ioctl()
2068 if (copy_to_user(ifr->ifr_data, &info, sizeof (info))) { in fst_ioctl()
2085 if (copy_from_user(&info, ifr->ifr_data, sizeof (info))) { in fst_ioctl()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ptp.c956 return copy_to_user(ifr->ifr_data, config, in ixgbe_ptp_get_ts_config()
1149 if (copy_from_user(&config, ifr->ifr_data, sizeof(config))) in ixgbe_ptp_set_ts_config()
1160 return copy_to_user(ifr->ifr_data, &config, sizeof(config)) ? in ixgbe_ptp_set_ts_config()
/kernel/linux/linux-5.10/drivers/net/appletalk/
Dipddp.c273 struct ipddp_route __user *rt = ifr->ifr_data; in ipddp_ioctl()

1234