Searched refs:hwts_cfg (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/drivers/net/can/dev/ |
D | dev.c | 330 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/ |
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()
|
/linux-6.1.9/drivers/net/can/usb/peak_usb/ |
D | pcan_usb_core.c | 780 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()
|