Lines Matching defs:pos
38 static void *controller_start(struct seq_file *seq, loff_t *pos)
40 if (*pos < CAPI_MAXCONTR)
41 return &capi_cards[*pos];
46 static void *controller_next(struct seq_file *seq, void *v, loff_t *pos)
48 ++*pos;
49 if (*pos < CAPI_MAXCONTR)
50 return &capi_cards[*pos];
137 applications_start(struct seq_file *seq, loff_t *pos)
139 if (*pos < CAPI_MAXAPPL)
140 return &capi_applications[*pos];
146 applications_next(struct seq_file *seq, void *v, loff_t *pos)
148 ++*pos;
149 if (*pos < CAPI_MAXAPPL)
150 return &capi_applications[*pos];
247 static __inline__ struct capi_driver *capi_driver_get_idx(loff_t pos)
256 if (i++ == pos)
262 static void *capi_driver_start(struct seq_file *seq, loff_t *pos)
266 drv = capi_driver_get_idx(*pos);
270 static void *capi_driver_next(struct seq_file *seq, void *v, loff_t *pos)
273 ++*pos;