/drivers/pps/ |
D | pps.c | 54 struct pps_device *pps = file->private_data; in pps_cdev_poll() local 56 poll_wait(file, &pps->queue, wait); in pps_cdev_poll() 63 struct pps_device *pps = file->private_data; in pps_cdev_fasync() local 64 return fasync_helper(fd, file, on, &pps->async_queue); in pps_cdev_fasync() 70 struct pps_device *pps = file->private_data; in pps_cdev_ioctl() local 78 dev_dbg(pps->dev, "PPS_GETPARAMS\n"); in pps_cdev_ioctl() 80 spin_lock_irq(&pps->lock); in pps_cdev_ioctl() 83 params = pps->params; in pps_cdev_ioctl() 85 spin_unlock_irq(&pps->lock); in pps_cdev_ioctl() 94 dev_dbg(pps->dev, "PPS_SETPARAMS\n"); in pps_cdev_ioctl() [all …]
|
D | kapi.c | 55 static void pps_echo_client_default(struct pps_device *pps, int event, in pps_echo_client_default() argument 58 dev_info(pps->dev, "echo %s %s\n", in pps_echo_client_default() 81 struct pps_device *pps; in pps_register_source() local 99 pps = kzalloc(sizeof(struct pps_device), GFP_KERNEL); in pps_register_source() 100 if (pps == NULL) { in pps_register_source() 108 pps->params.api_version = PPS_API_VERS; in pps_register_source() 109 pps->params.mode = default_params; in pps_register_source() 110 pps->info = *info; in pps_register_source() 113 if ((pps->info.mode & (PPS_ECHOASSERT | PPS_ECHOCLEAR)) && in pps_register_source() 114 pps->info.echo == NULL) in pps_register_source() [all …]
|
D | sysfs.c | 35 struct pps_device *pps = dev_get_drvdata(dev); in pps_show_assert() local 37 if (!(pps->info.mode & PPS_CAPTUREASSERT)) in pps_show_assert() 41 (long long) pps->assert_tu.sec, pps->assert_tu.nsec, in pps_show_assert() 42 pps->assert_sequence); in pps_show_assert() 48 struct pps_device *pps = dev_get_drvdata(dev); in pps_show_clear() local 50 if (!(pps->info.mode & PPS_CAPTURECLEAR)) in pps_show_clear() 54 (long long) pps->clear_tu.sec, pps->clear_tu.nsec, in pps_show_clear() 55 pps->clear_sequence); in pps_show_clear() 61 struct pps_device *pps = dev_get_drvdata(dev); in pps_show_mode() local 63 return sprintf(buf, "%4x\n", pps->info.mode); in pps_show_mode() [all …]
|
D | kc.c | 49 int pps_kc_bind(struct pps_device *pps, struct pps_bind_args *bind_args) in pps_kc_bind() argument 55 if (pps_kc_hardpps_dev == pps) { in pps_kc_bind() 59 dev_info(pps->dev, "unbound kernel" in pps_kc_bind() 63 dev_err(pps->dev, "selected kernel consumer" in pps_kc_bind() 69 pps_kc_hardpps_dev == pps) { in pps_kc_bind() 71 pps_kc_hardpps_dev = pps; in pps_kc_bind() 73 dev_info(pps->dev, "bound kernel consumer: " in pps_kc_bind() 77 dev_err(pps->dev, "another kernel consumer" in pps_kc_bind() 92 void pps_kc_remove(struct pps_device *pps) in pps_kc_remove() argument 95 if (pps == pps_kc_hardpps_dev) { in pps_kc_remove() [all …]
|
D | kc.h | 29 extern int pps_kc_bind(struct pps_device *pps, 31 extern void pps_kc_remove(struct pps_device *pps); 32 extern void pps_kc_event(struct pps_device *pps, 38 static inline int pps_kc_bind(struct pps_device *pps, in pps_kc_bind() argument 40 static inline void pps_kc_remove(struct pps_device *pps) {} in pps_kc_remove() argument 41 static inline void pps_kc_event(struct pps_device *pps, in pps_kc_event() argument
|
D | Kconfig | 43 source drivers/pps/clients/Kconfig 45 source drivers/pps/generators/Kconfig
|
D | Makefile | 5 pps_core-y := pps.o kapi.o sysfs.o
|
/drivers/pps/clients/ |
D | pps-ldisc.c | 34 struct pps_device *pps; in pps_tty_dcd_change() local 39 pps = pps_lookup_dev(tty); in pps_tty_dcd_change() 44 if (WARN_ON_ONCE(pps == NULL)) in pps_tty_dcd_change() 48 pps_event(pps, &ts, status ? PPS_CAPTUREASSERT : in pps_tty_dcd_change() 51 dev_dbg(pps->dev, "PPS %s at %lu\n", in pps_tty_dcd_change() 62 struct pps_device *pps; in pps_tty_open() local 73 pps = pps_register_source(&info, PPS_CAPTUREBOTH | \ in pps_tty_open() 75 if (pps == NULL) { in pps_tty_open() 79 pps->lookup_cookie = tty; in pps_tty_open() 88 dev_info(pps->dev, "source \"%s\" added\n", info.path); in pps_tty_open() [all …]
|
D | pps-ktimer.c | 35 static struct pps_device *pps; variable 49 pps_event(pps, &ts, PPS_CAPTUREASSERT, NULL); in pps_ktimer_event() 73 dev_info(pps->dev, "ktimer PPS source unregistered\n"); in pps_ktimer_exit() 76 pps_unregister_source(pps); in pps_ktimer_exit() 81 pps = pps_register_source(&pps_ktimer_info, in pps_ktimer_init() 83 if (pps == NULL) { in pps_ktimer_init() 91 dev_info(pps->dev, "ktimer PPS source registered\n"); in pps_ktimer_init()
|
D | pps_parport.c | 56 struct pps_device *pps; /* PPS device */ member 98 dev_err(dev->pps->dev, "lost the signal\n"); in parport_irq() 115 dev_err(dev->pps->dev, "disabled clear edge capture after %d" in parport_irq() 123 pps_event(dev->pps, &ts_assert, in parport_irq() 129 pps_event(dev->pps, &ts_assert, in parport_irq() 132 pps_event(dev->pps, &ts_clear, in parport_irq() 169 device->pps = pps_register_source(&info, in parport_attach() 171 if (device->pps == NULL) { in parport_attach() 205 pps_unregister_source(device->pps); in parport_detach()
|
D | pps-gpio.c | 40 struct pps_device *pps; /* PPS source device */ member 63 pps_event(info->pps, &ts, PPS_CAPTUREASSERT, NULL); in pps_gpio_irq_handler() 67 pps_event(info->pps, &ts, PPS_CAPTURECLEAR, NULL); in pps_gpio_irq_handler() 152 data->pps = pps_register_source(&data->info, pps_default_params); in pps_gpio_probe() 153 if (data->pps == NULL) { in pps_gpio_probe() 166 pps_unregister_source(data->pps); in pps_gpio_probe() 173 dev_info(data->pps->dev, "Registered IRQ %d as PPS source\n", irq); in pps_gpio_probe() 190 pps_unregister_source(data->pps); in pps_gpio_remove()
|
D | Makefile | 5 obj-$(CONFIG_PPS_CLIENT_KTIMER) += pps-ktimer.o 6 obj-$(CONFIG_PPS_CLIENT_LDISC) += pps-ldisc.o 8 obj-$(CONFIG_PPS_CLIENT_GPIO) += pps-gpio.o
|
D | Kconfig | 16 will be called pps-ktimer.
|
/drivers/ptp/ |
D | ptp_clock.c | 221 if (info->pps) { in ptp_clock_register() 222 struct pps_source_info pps; in ptp_clock_register() local 223 memset(&pps, 0, sizeof(pps)); in ptp_clock_register() 224 snprintf(pps.name, PPS_MAX_NAME_LEN, "ptp%d", index); in ptp_clock_register() 225 pps.mode = PTP_PPS_MODE; in ptp_clock_register() 226 pps.owner = info->owner; in ptp_clock_register() 227 ptp->pps_source = pps_register_source(&pps, PTP_PPS_DEFAULTS); in ptp_clock_register()
|
D | ptp_sysfs.c | 43 PTP_SHOW_INT(pps); 56 PTP_RO_ATTR(pps, pps_available), 188 if (info->pps) in ptp_cleanup_sysfs() 213 if (info->pps) { in ptp_populate_sysfs()
|
D | ptp_chardev.c | 53 caps.pps = ptp->info->pps; in ptp_ioctl()
|
/drivers/gpu/drm/gma500/ |
D | intel_bios.c | 93 dev_priv->edp.pps = *edp_pps; in parse_edp() 96 dev_priv->edp.pps.t1_t3, dev_priv->edp.pps.t8, in parse_edp() 97 dev_priv->edp.pps.t9, dev_priv->edp.pps.t10, in parse_edp() 98 dev_priv->edp.pps.t11_t12); in parse_edp()
|
/drivers/net/wireless/iwlegacy/ |
D | 3945-rs.c | 191 u32 packet_count, duration, pps; in il3945_bg_rate_scale_flush() local 212 pps = (packet_count * 1000) / duration; in il3945_bg_rate_scale_flush() 214 pps = 0; in il3945_bg_rate_scale_flush() 216 if (pps) { in il3945_bg_rate_scale_flush() 217 duration = (IL_AVERAGE_PACKETS * 1000) / pps; in il3945_bg_rate_scale_flush()
|
/drivers/net/ethernet/intel/igb/ |
D | igb_ptp.c | 725 adapter->ptp_caps.pps = 0; in igb_ptp_init() 745 adapter->ptp_caps.pps = 0; in igb_ptp_init() 764 adapter->ptp_caps.pps = 0; in igb_ptp_init()
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_ptp.c | 167 .pps = 0,
|
/drivers/net/ethernet/intel/e1000e/ |
D | ptp.c | 194 .pps = 0,
|
/drivers/ |
D | Makefile | 95 obj-$(CONFIG_PPS) += pps/
|
D | Kconfig | 59 source "drivers/pps/Kconfig"
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ptp.c | 849 adapter->ptp_caps.pps = 1; in ixgbe_ptp_init() 863 adapter->ptp_caps.pps = 0; in ixgbe_ptp_init()
|
/drivers/net/ethernet/freescale/ |
D | fec_ptp.c | 361 fep->ptp_caps.pps = 0; in fec_ptp_init()
|