Searched refs:hwts_cfg (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/net/can/dev/ |
H A D | dev.c | 332 struct hwtstamp_config hwts_cfg = { 0 }; in can_eth_ioctl_hwts() local 336 if (copy_from_user(&hwts_cfg, ifr->ifr_data, sizeof(hwts_cfg))) in can_eth_ioctl_hwts() 338 if (hwts_cfg.tx_type == HWTSTAMP_TX_ON && in can_eth_ioctl_hwts() 339 hwts_cfg.rx_filter == HWTSTAMP_FILTER_ALL) in can_eth_ioctl_hwts() 344 hwts_cfg.tx_type = HWTSTAMP_TX_ON; in can_eth_ioctl_hwts() 345 hwts_cfg.rx_filter = HWTSTAMP_FILTER_ALL; in can_eth_ioctl_hwts() 346 if (copy_to_user(ifr->ifr_data, &hwts_cfg, sizeof(hwts_cfg))) in can_eth_ioctl_hwts()
|
/openbmc/linux/drivers/net/can/peak_canfd/ |
H A D | peak_canfd.c | 748 struct hwtstamp_config hwts_cfg = { 0 }; in peak_eth_ioctl() local 752 if (copy_from_user(&hwts_cfg, ifr->ifr_data, sizeof(hwts_cfg))) in peak_eth_ioctl() 754 if (hwts_cfg.tx_type == HWTSTAMP_TX_OFF && in peak_eth_ioctl() 755 hwts_cfg.rx_filter == HWTSTAMP_FILTER_ALL) in peak_eth_ioctl() 760 hwts_cfg.tx_type = HWTSTAMP_TX_OFF; in peak_eth_ioctl() 761 hwts_cfg.rx_filter = HWTSTAMP_FILTER_ALL; in peak_eth_ioctl() 762 if (copy_to_user(ifr->ifr_data, &hwts_cfg, sizeof(hwts_cfg))) in peak_eth_ioctl()
|
/openbmc/linux/drivers/net/can/usb/peak_usb/ |
H A D | pcan_usb_core.c | 789 struct hwtstamp_config hwts_cfg = { 0 }; in peak_eth_ioctl() local 793 if (copy_from_user(&hwts_cfg, ifr->ifr_data, sizeof(hwts_cfg))) in peak_eth_ioctl() 795 if (hwts_cfg.tx_type == HWTSTAMP_TX_OFF && in peak_eth_ioctl() 796 hwts_cfg.rx_filter == HWTSTAMP_FILTER_ALL) in peak_eth_ioctl() 801 hwts_cfg.tx_type = HWTSTAMP_TX_OFF; in peak_eth_ioctl() 802 hwts_cfg.rx_filter = HWTSTAMP_FILTER_ALL; in peak_eth_ioctl() 803 if (copy_to_user(ifr->ifr_data, &hwts_cfg, sizeof(hwts_cfg))) in peak_eth_ioctl()
|