Home
last modified time | relevance | path

Searched refs:hwts_cfg (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/net/can/dev/
Ddev.c330 struct hwtstamp_config hwts_cfg = { 0 }; in can_eth_ioctl_hwts() local
334 if (copy_from_user(&hwts_cfg, ifr->ifr_data, sizeof(hwts_cfg))) in can_eth_ioctl_hwts()
336 if (hwts_cfg.tx_type == HWTSTAMP_TX_ON && in can_eth_ioctl_hwts()
337 hwts_cfg.rx_filter == HWTSTAMP_FILTER_ALL) in can_eth_ioctl_hwts()
342 hwts_cfg.tx_type = HWTSTAMP_TX_ON; in can_eth_ioctl_hwts()
343 hwts_cfg.rx_filter = HWTSTAMP_FILTER_ALL; in can_eth_ioctl_hwts()
344 if (copy_to_user(ifr->ifr_data, &hwts_cfg, sizeof(hwts_cfg))) in can_eth_ioctl_hwts()
/linux-6.1.9/drivers/net/can/peak_canfd/
Dpeak_canfd.c748 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()
/linux-6.1.9/drivers/net/can/usb/peak_usb/
Dpcan_usb_core.c780 struct hwtstamp_config hwts_cfg = { 0 }; in peak_eth_ioctl() local
784 if (copy_from_user(&hwts_cfg, ifr->ifr_data, sizeof(hwts_cfg))) in peak_eth_ioctl()
786 if (hwts_cfg.tx_type == HWTSTAMP_TX_OFF && in peak_eth_ioctl()
787 hwts_cfg.rx_filter == HWTSTAMP_FILTER_ALL) in peak_eth_ioctl()
792 hwts_cfg.tx_type = HWTSTAMP_TX_OFF; in peak_eth_ioctl()
793 hwts_cfg.rx_filter = HWTSTAMP_FILTER_ALL; in peak_eth_ioctl()
794 if (copy_to_user(ifr->ifr_data, &hwts_cfg, sizeof(hwts_cfg))) in peak_eth_ioctl()