• Home
  • Raw
  • Download

Lines Matching refs:features

140 static int get_features(unsigned int fpga, struct fpga_features *features)  in get_features()  argument
187 memset(features, 0, sizeof(struct fpga_features)); in get_features()
194 features->video_channels = 0; in get_features()
198 features->video_channels = 1; in get_features()
203 features->video_channels = 2; in get_features()
209 features->carriers = 0; in get_features()
213 features->carriers = 1; in get_features()
217 features->carriers = 2; in get_features()
221 features->carriers = 4; in get_features()
227 features->carrier_speed = CARRIER_SPEED_1G; in get_features()
230 features->carrier_speed = CARRIER_SPEED_2_5G; in get_features()
233 features->carrier_speed = CARRIER_SPEED_10G; in get_features()
239 features->ram_config = RAM_DDR2_32BIT_295MBPS; in get_features()
243 features->ram_config = RAM_DDR3_32BIT_590MBPS; in get_features()
247 features->ram_config = RAM_DDR3_48BIT_590MBPS; in get_features()
251 features->ram_config = RAM_DDR3_64BIT_1800MBPS; in get_features()
255 features->ram_config = RAM_DDR3_48BIT_1800MBPS; in get_features()
259 features->pcm_tx = raw_features & FEATURE_PCM_TX; in get_features()
260 features->pcm_rx = raw_features & FEATURE_PCM_RX; in get_features()
261 features->spdif_tx = raw_features & FEATURE_SPDIF_TX; in get_features()
262 features->spdif_rx = raw_features & FEATURE_SPDIF_RX; in get_features()
263 features->usb2 = raw_features & FEATURE_USB2; in get_features()
264 features->rs232 = raw_extended_features & EXT_FEATURE_RS232; in get_features()
265 features->compression_type1 = raw_extended_features & EXT_FEATURE_COMPRESSION_TYPE1; in get_features()
266 features->compression_type2 = raw_extended_features & EXT_FEATURE_COMPRESSION_TYPE2; in get_features()
267 features->compression_type3 = raw_extended_features & EXT_FEATURE_COMPRESSION_TYPE3; in get_features()
268 features->interlace = raw_extended_features & EXT_FEATURE_INTERLACE; in get_features()
269 features->osd = raw_extended_features & EXT_FEATURE_OSD; in get_features()
270 features->compression_pipes = raw_extended_features & EXT_FEATURE_COMPRESSION_PERF_MASK; in get_features()
352 static int get_features(unsigned int fpga, struct fpga_features *features) in get_features() argument
383 memset(features, 0, sizeof(struct fpga_features)); in get_features()
390 features->video_channels = raw_features & 0x3; in get_features()
391 features->carriers = (raw_features >> 2) & 0x3; in get_features()
393 features->carrier_speed = (raw_features & FEATURE_CARRIER_SPEED_2_5) in get_features()
398 features->ram_config = RAM_DDR2_32BIT_295MBPS; in get_features()
402 features->ram_config = RAM_DDR3_32BIT_590MBPS; in get_features()
406 features->ram_config = RAM_DDR3_48BIT_590MBPS; in get_features()
410 features->pcm_tx = raw_features & FEATURE_PCM_AUDIO_TX; in get_features()
411 features->pcm_rx = raw_features & FEATURE_PCM_AUDIO_RX; in get_features()
413 features->spdif_tx = raw_extended_features & EXTENDED_FEATURE_SPDIF_AUDIO_TX; in get_features()
414 features->spdif_rx = raw_extended_features & EXTENDED_FEATURE_SPDIF_AUDIO_RX; in get_features()
417 features->usb2 = raw_features & FEATURE_USB20; in get_features()
419 features->rs232 = raw_extended_features & EXTENDED_FEATURE_RS232; in get_features()
422 features->compression_type1 = false; in get_features()
423 features->compression_type2 = false; in get_features()
424 features->compression_type3 = false; in get_features()
427 features->compression_type3 = true; in get_features()
429 features->compression_type2 = true; in get_features()
431 features->compression_type1 = true; in get_features()
436 features->interlace = raw_extended_features & EXTENDED_FEATURE_INTERLACE; in get_features()
438 features->osd = raw_features & FEATURE_OSD; in get_features()
440 features->compression_pipes = raw_extended_features & EXTENDED_FEATURE_COMPRESSION_PIPES; in get_features()
450 struct fpga_features features; in ioep_fpga_has_osd() local
452 get_features(fpga, &features); in ioep_fpga_has_osd()
454 return features.osd; in ioep_fpga_has_osd()
461 struct fpga_features features; in ioep_fpga_print_info() local
465 get_features(fpga, &features); in ioep_fpga_print_info()
518 if (!features.compression_type1 && in ioep_fpga_print_info()
519 !features.compression_type2 && in ioep_fpga_print_info()
520 !features.compression_type3) in ioep_fpga_print_info()
523 if (features.compression_type1) in ioep_fpga_print_info()
526 if (features.compression_type2) in ioep_fpga_print_info()
529 if (features.compression_type3) in ioep_fpga_print_info()
532 printf("%sosd", features.osd ? "" : "no "); in ioep_fpga_print_info()
534 if (features.pcm_rx && features.pcm_tx) in ioep_fpga_print_info()
536 else if(features.pcm_rx) in ioep_fpga_print_info()
538 else if(features.pcm_tx) in ioep_fpga_print_info()
541 if (features.spdif_rx && features.spdif_tx) in ioep_fpga_print_info()
543 else if(features.spdif_rx) in ioep_fpga_print_info()
545 else if(features.spdif_tx) in ioep_fpga_print_info()
550 switch (features.sysclock) { in ioep_fpga_print_info()
556 switch (features.ram_config) { in ioep_fpga_print_info()
572 printf(", %d carrier(s)", features.carriers); in ioep_fpga_print_info()
574 switch(features.carrier_speed) { in ioep_fpga_print_info()
586 printf(", %d video channel(s)\n", features.video_channels); in ioep_fpga_print_info()