• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/pps/

Lines Matching refs:source

63 /* pps_get_source - find a PPS source
64 * @source: the PPS source ID.
66 * This function is used to find an already registered PPS source into the
70 * to the PPS source data struct (the refcounter is incremented by 1).
73 struct pps_device *pps_get_source(int source)
80 pps = idr_find(&pps_idr, source);
89 /* pps_put_source - free the PPS source data
90 * @pps: a pointer to the PPS source.
107 /* No more reference to the PPS source. We can safely remove the
117 /* pps_register_source - add a PPS source in the system
119 * @default_params: the default PPS parameters of the new source
121 * This function is used to add a new PPS source in the system. The new
122 * source is described by info's fields and it will have, as default PPS
125 * The function returns, in case of success, the PPS source ID.
155 /* Allocate memory for the new PPS source struct */
173 /* Get new ID for the new PPS source */
181 /* Now really allocate the PPS source.
182 * After idr_get_new() calling the new source will be freely available
212 pr_info("new PPS source %s at ID %d\n", info->name, id);
225 printk(KERN_ERR "pps: %s: unable to register source\n", info->name);
231 /* pps_unregister_source - remove a PPS source from the system
232 * @source: the PPS source ID
234 * This function is used to remove a previously registered PPS source from
238 void pps_unregister_source(int source)
243 pps = idr_find(&pps_idr, source);
258 * @source: the PPS source ID
266 * If an echo function is associated with the PPS source it will be called
268 * pps->info.echo(source, event, data);
271 void pps_event(int source, struct pps_ktime *ts, int event, void *data)
278 printk(KERN_ERR "pps: unknown event (%x) for source %d\n",
279 event, source);
283 pps = pps_get_source(source);
287 pr_debug("PPS event on source %d at %llu.%06u\n",
294 pps->info.echo(source, event, data);
307 pr_debug("capture assert seq #%u for source %d\n",
308 pps->assert_sequence, source);
321 pr_debug("capture clear seq #%u for source %d\n",
322 pps->clear_sequence, source);
337 /* Now we can release the PPS source for (possible) deregistration */