Lines Matching defs:fh
149 struct saa7164_vbi_fh *fh = file->private_data;
151 return saa7164_s_std(fh->port->enc_port, id);
156 struct saa7164_encoder_fh *fh = file->private_data;
158 return saa7164_g_std(fh->port->enc_port, id);
163 struct saa7164_vbi_fh *fh = file->private_data;
165 return saa7164_g_input(fh->port->enc_port, i);
170 struct saa7164_vbi_fh *fh = file->private_data;
172 return saa7164_s_input(fh->port->enc_port, i);
178 struct saa7164_vbi_fh *fh = file->private_data;
180 return saa7164_g_frequency(fh->port->enc_port, f);
186 struct saa7164_vbi_fh *fh = file->private_data;
187 int ret = saa7164_s_frequency(fh->port->enc_port, f);
190 saa7164_vbi_initialize(fh->port);
197 struct saa7164_vbi_fh *fh = file->private_data;
198 struct saa7164_port *port = fh->port;
416 struct saa7164_vbi_fh *fh;
427 fh = kzalloc(sizeof(*fh), GFP_KERNEL);
428 if (NULL == fh)
431 fh->port = port;
432 v4l2_fh_init(&fh->fh, video_devdata(file));
433 v4l2_fh_add(&fh->fh);
434 file->private_data = fh;
441 struct saa7164_vbi_fh *fh = file->private_data;
442 struct saa7164_port *port = fh->port;
448 if (atomic_cmpxchg(&fh->v4l_reading, 1, 0) == 1) {
455 v4l2_fh_del(&fh->fh);
456 v4l2_fh_exit(&fh->fh);
457 kfree(fh);
494 struct saa7164_vbi_fh *fh = file->private_data;
495 struct saa7164_port *port = fh->port;
515 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) {
601 struct saa7164_vbi_fh *fh = (struct saa7164_vbi_fh *)file->private_data;
602 struct saa7164_port *port = fh->port;
616 if (atomic_cmpxchg(&fh->v4l_reading, 0, 1) == 0) {