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

Lines Matching refs:init

54 #include <linux/init.h>
852 static int do_dv1394_init(struct video_card *video, struct dv1394_init *init)
860 if (init->api_version != DV1394_API_VERSION)
864 if ( (init->n_frames < 2) || (init->n_frames > DV1394_MAX_FRAMES) )
867 if ( (init->format != DV1394_NTSC) && (init->format != DV1394_PAL) )
870 if ( (init->syt_offset == 0) || (init->syt_offset > 50) )
872 init->syt_offset = 3;
874 if (init->channel > 63)
875 init->channel = 63;
877 chan_mask = (u64)1 << init->channel;
880 if (init->format == DV1394_NTSC)
881 new_buf_size = DV1394_NTSC_FRAME_SIZE * init->n_frames;
883 new_buf_size = DV1394_PAL_FRAME_SIZE * init->n_frames;
909 video->channel = init->channel;
912 video->n_frames = init->n_frames;
913 video->pal_or_ntsc = init->format;
930 video->cip_n = init->cip_n != 0 ? init->cip_n : CIP_N_NTSC;
931 video->cip_d = init->cip_d != 0 ? init->cip_d : CIP_D_NTSC;
934 video->cip_n = init->cip_n != 0 ? init->cip_n : CIP_N_PAL;
935 video->cip_d = init->cip_d != 0 ? init->cip_d : CIP_D_PAL;
939 video->syt_offset = init->syt_offset;
971 for (i = 0; i < init->n_frames; i++) {
1047 struct dv1394_init init;
1049 init.api_version = DV1394_API_VERSION;
1050 init.n_frames = DV1394_MAX_FRAMES / 4;
1051 init.channel = video->channel;
1052 init.format = video->pal_or_ntsc;
1053 init.cip_n = video->cip_n;
1054 init.cip_d = video->cip_d;
1055 init.syt_offset = video->syt_offset;
1057 return do_dv1394_init(video, &init);
1665 struct dv1394_init init;
1669 if (copy_from_user(&init, argp, sizeof(init))) {
1673 ret = do_dv1394_init(video, &init);
1692 status.init.api_version = DV1394_API_VERSION;
1693 status.init.channel = video->channel;
1694 status.init.n_frames = video->n_frames;
1695 status.init.format = video->pal_or_ntsc;
1696 status.init.cip_n = video->cip_n;
1697 status.init.cip_d = video->cip_d;
1698 status.init.syt_offset = video->syt_offset;
2399 struct dv1394_init32 init;
2453 dv32.init.api_version = dv.init.api_version;
2454 dv32.init.channel = dv.init.channel;
2455 dv32.init.n_frames = dv.init.n_frames;
2456 dv32.init.format = dv.init.format;
2457 dv32.init.cip_n = (u32)dv.init.cip_n;
2458 dv32.init.cip_d = (u32)dv.init.cip_d;
2459 dv32.init.syt_offset = dv.init.syt_offset;