Lines Matching refs:kp
177 static int get_video_tuner32(struct video_tuner *kp, struct video_tuner32 *up) in get_video_tuner32() argument
181 if(get_user(kp->tuner, &up->tuner)) in get_video_tuner32()
184 __get_user(kp->name[i], &up->name[i]); in get_video_tuner32()
185 __get_user(kp->rangelow, &up->rangelow); in get_video_tuner32()
186 __get_user(kp->rangehigh, &up->rangehigh); in get_video_tuner32()
187 __get_user(kp->flags, &up->flags); in get_video_tuner32()
188 __get_user(kp->mode, &up->mode); in get_video_tuner32()
189 __get_user(kp->signal, &up->signal); in get_video_tuner32()
193 static int put_video_tuner32(struct video_tuner *kp, struct video_tuner32 *up) in put_video_tuner32() argument
197 if(put_user(kp->tuner, &up->tuner)) in put_video_tuner32()
200 __put_user(kp->name[i], &up->name[i]); in put_video_tuner32()
201 __put_user(kp->rangelow, &up->rangelow); in put_video_tuner32()
202 __put_user(kp->rangehigh, &up->rangehigh); in put_video_tuner32()
203 __put_user(kp->flags, &up->flags); in put_video_tuner32()
204 __put_user(kp->mode, &up->mode); in put_video_tuner32()
205 __put_user(kp->signal, &up->signal); in put_video_tuner32()
214 static int get_video_buffer32(struct video_buffer *kp, struct video_buffer32 *up) in get_video_buffer32() argument
220 kp->base = (void *) ((unsigned long)tmp); in get_video_buffer32()
221 __get_user(kp->height, &up->height); in get_video_buffer32()
222 __get_user(kp->width, &up->width); in get_video_buffer32()
223 __get_user(kp->depth, &up->depth); in get_video_buffer32()
224 __get_user(kp->bytesperline, &up->bytesperline); in get_video_buffer32()
228 static int put_video_buffer32(struct video_buffer *kp, struct video_buffer32 *up) in put_video_buffer32() argument
230 u32 tmp = (u32)((unsigned long)kp->base); in put_video_buffer32()
234 __put_user(kp->height, &up->height); in put_video_buffer32()
235 __put_user(kp->width, &up->width); in put_video_buffer32()
236 __put_user(kp->depth, &up->depth); in put_video_buffer32()
237 __put_user(kp->bytesperline, &up->bytesperline); in put_video_buffer32()
252 static void free_kvideo_clips(struct video_window *kp) in free_kvideo_clips() argument
256 cp = kp->clips; in free_kvideo_clips()
261 static int get_video_window32(struct video_window *kp, struct video_window32 *up) in get_video_window32() argument
268 if(get_user(kp->x, &up->x)) in get_video_window32()
270 __get_user(kp->y, &up->y); in get_video_window32()
271 __get_user(kp->width, &up->width); in get_video_window32()
272 __get_user(kp->height, &up->height); in get_video_window32()
273 __get_user(kp->chromakey, &up->chromakey); in get_video_window32()
274 __get_user(kp->flags, &up->flags); in get_video_window32()
275 __get_user(kp->clipcount, &up->clipcount); in get_video_window32()
278 kp->clips = NULL; in get_video_window32()
280 nclips = kp->clipcount; in get_video_window32()
296 kp->clips = kcp; in get_video_window32()
308 free_kvideo_clips(kp); in get_video_window32()
313 static int put_video_window32(struct video_window *kp, struct video_window32 *up) in put_video_window32() argument
315 if(put_user(kp->x, &up->x)) in put_video_window32()
317 __put_user(kp->y, &up->y); in put_video_window32()
318 __put_user(kp->width, &up->width); in put_video_window32()
319 __put_user(kp->height, &up->height); in put_video_window32()
320 __put_user(kp->chromakey, &up->chromakey); in put_video_window32()
321 __put_user(kp->flags, &up->flags); in put_video_window32()
322 __put_user(kp->clipcount, &up->clipcount); in put_video_window32()