Home
last modified time | relevance | path

Searched refs:posix_clock (Results 1 – 5 of 5) sorted by relevance

/linux-4.1.27/include/linux/
Dposix-clock.h29 struct posix_clock;
60 int (*clock_adjtime)(struct posix_clock *pc, struct timex *tx);
62 int (*clock_gettime)(struct posix_clock *pc, struct timespec *ts);
64 int (*clock_getres) (struct posix_clock *pc, struct timespec *ts);
66 int (*clock_settime)(struct posix_clock *pc,
69 int (*timer_create) (struct posix_clock *pc, struct k_itimer *kit);
71 int (*timer_delete) (struct posix_clock *pc, struct k_itimer *kit);
73 void (*timer_gettime)(struct posix_clock *pc,
76 int (*timer_settime)(struct posix_clock *pc,
82 int (*fasync) (struct posix_clock *pc,
[all …]
/linux-4.1.27/kernel/time/
Dposix-clock.c33 static struct posix_clock *get_posix_clock(struct file *fp) in get_posix_clock()
35 struct posix_clock *clk = fp->private_data; in get_posix_clock()
47 static void put_posix_clock(struct posix_clock *clk) in put_posix_clock()
55 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_read()
71 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_poll()
87 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_fasync()
103 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_mmap()
120 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_ioctl()
138 struct posix_clock *clk = get_posix_clock(fp); in posix_clock_compat_ioctl()
156 struct posix_clock *clk = in posix_clock_open()
[all …]
/linux-4.1.27/drivers/ptp/
Dptp_private.h42 struct posix_clock clock;
80 long ptp_ioctl(struct posix_clock *pc,
83 int ptp_open(struct posix_clock *pc, fmode_t fmode);
85 ssize_t ptp_read(struct posix_clock *pc,
88 uint ptp_poll(struct posix_clock *pc,
Dptp_clock.c100 static int ptp_clock_getres(struct posix_clock *pc, struct timespec *tp) in ptp_clock_getres()
107 static int ptp_clock_settime(struct posix_clock *pc, const struct timespec *tp) in ptp_clock_settime()
115 static int ptp_clock_gettime(struct posix_clock *pc, struct timespec *tp) in ptp_clock_gettime()
127 static int ptp_clock_adjtime(struct posix_clock *pc, struct timex *tx) in ptp_clock_adjtime()
178 static void delete_ptp_clock(struct posix_clock *pc) in delete_ptp_clock()
Dptp_chardev.c113 int ptp_open(struct posix_clock *pc, fmode_t fmode) in ptp_open()
118 long ptp_ioctl(struct posix_clock *pc, unsigned int cmd, unsigned long arg) in ptp_ioctl()
259 unsigned int ptp_poll(struct posix_clock *pc, struct file *fp, poll_table *wait) in ptp_poll()
270 ssize_t ptp_read(struct posix_clock *pc, in ptp_read()