Lines Matching refs:fh
147 struct saa7164_vbi_fh *fh = file->private_data;
149 return saa7164_s_std(fh->port->enc_port, id);
154 struct saa7164_encoder_fh *fh = file->private_data;
156 return saa7164_g_std(fh->port->enc_port, id);
161 struct saa7164_vbi_fh *fh = file->private_data;
163 return saa7164_g_input(fh->port->enc_port, i);
168 struct saa7164_vbi_fh *fh = file->private_data;
170 return saa7164_s_input(fh->port->enc_port, i);
176 struct saa7164_vbi_fh *fh = file->private_data;
178 return saa7164_g_frequency(fh->port->enc_port, f);
184 struct saa7164_vbi_fh *fh = file->private_data;
185 int ret = saa7164_s_frequency(fh->port->enc_port, f);
188 saa7164_vbi_initialize(fh->port);
195 struct saa7164_vbi_fh *fh = file->private_data;
196 struct saa7164_port *port = fh->port;
414 struct saa7164_vbi_fh *fh;
425 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
426 if (NULL == fh)
429 fh->port = port;
430 v4l2_fh_init(&fh->fh, video_devdata(file));
431 v4l2_fh_add(&fh->fh);
432 file->private_data = fh;
439 struct saa7164_vbi_fh *fh = file->private_data;
440 struct saa7164_port *port = fh->port;
446 if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) {
453 v4l2_fh_del(&fh->fh);
454 v4l2_fh_exit(&fh->fh);
455 kfree(fh);
492 struct saa7164_vbi_fh *fh = file->private_data;
493 struct saa7164_port *port = fh->port;
513 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) {
599 struct saa7164_vbi_fh *fh = (struct saa7164_vbi_fh *)file->private_data;
600 struct saa7164_port *port = fh->port;
614 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) {