/openbmc/linux/drivers/media/pci/ttpci/ |
H A D | budget-core.c | 51 saa7146_write(budget->dev, MC1, MASK_20); // DMA3 off in stop_ts_capture() 65 saa7146_write(dev, MC1, MASK_20); // DMA3 off in start_ts_capture() 69 saa7146_write(dev, PCI_BT_V1, 0x001c0000 | (saa7146_read(dev, PCI_BT_V1) & ~0x001f0000)); in start_ts_capture() 85 saa7146_write(dev, DD1_INIT, 0x04000000); in start_ts_capture() 86 saa7146_write(dev, MC2, (MASK_09 | MASK_25)); in start_ts_capture() 87 saa7146_write(dev, BRS_CTRL, 0x00000000); in start_ts_capture() 90 saa7146_write(dev, DD1_INIT, 0x00000200); in start_ts_capture() 91 saa7146_write(dev, MC2, (MASK_10 | MASK_26)); in start_ts_capture() 92 saa7146_write(dev, BRS_CTRL, 0x60000000); in start_ts_capture() 99 saa7146_write(dev, DD1_INIT, 0x06000200); in start_ts_capture() [all …]
|
H A D | budget-av.c | 336 saa7146_write(saa, MC1, MASK_27 | MASK_11); in ciintf_init() 362 saa7146_write(saa, MC1, MASK_27); in ciintf_init() 379 saa7146_write(saa, MC1, MASK_27); in ciintf_deinit() 1458 saa7146_write(dev, DD1_STREAM_B, 0x04000000); in budget_av_attach() 1459 saa7146_write(dev, DD1_INIT, 0x07000600); in budget_av_attach() 1460 saa7146_write(dev, MC2, MASK_09 | MASK_25 | MASK_10 | MASK_26); in budget_av_attach() 1491 saa7146_write(dev, PCI_BT_V1, 0x1c00101f); in budget_av_attach()
|
H A D | budget-ci.c | 449 saa7146_write(saa, MC1, MASK_27 | MASK_11); in ciintf_init() 523 saa7146_write(saa, MC1, MASK_27); in ciintf_init() 551 saa7146_write(saa, MC1, MASK_27); in ciintf_deinit()
|
/openbmc/linux/drivers/media/common/saa7146/ |
H A D | saa7146_i2c.c | 118 saa7146_write(dev, I2C_STATUS, dev->i2c_bitrate); in saa7146_i2c_reset() 119 saa7146_write(dev, I2C_TRANSFER, 0); in saa7146_i2c_reset() 128 saa7146_write(dev, I2C_STATUS, (dev->i2c_bitrate | MASK_07)); in saa7146_i2c_reset() 129 saa7146_write(dev, MC2, (MASK_00 | MASK_16)); in saa7146_i2c_reset() 133 saa7146_write(dev, I2C_STATUS, dev->i2c_bitrate); in saa7146_i2c_reset() 134 saa7146_write(dev, MC2, (MASK_00 | MASK_16)); in saa7146_i2c_reset() 147 saa7146_write(dev, I2C_STATUS, (dev->i2c_bitrate | MASK_07)); in saa7146_i2c_reset() 148 saa7146_write(dev, MC2, (MASK_00 | MASK_16)); in saa7146_i2c_reset() 152 saa7146_write(dev, I2C_STATUS, dev->i2c_bitrate); in saa7146_i2c_reset() 153 saa7146_write(dev, MC2, (MASK_00 | MASK_16)); in saa7146_i2c_reset() [all …]
|
H A D | saa7146_vbi.c | 30 saa7146_write(dev, BASE_EVEN3, dma_addr); in vbi_workaround() 31 saa7146_write(dev, BASE_ODD3, dma_addr+vbi_pixel_to_capture); in vbi_workaround() 32 saa7146_write(dev, PROT_ADDR3, dma_addr+4096); in vbi_workaround() 33 saa7146_write(dev, PITCH3, vbi_pixel_to_capture); in vbi_workaround() 34 saa7146_write(dev, BASE_PAGE3, 0x0); in vbi_workaround() 35 saa7146_write(dev, NUM_LINE_BYTE3, (2<<16)|((vbi_pixel_to_capture)<<0)); in vbi_workaround() 36 saa7146_write(dev, MC2, MASK_04|MASK_20); in vbi_workaround() 89 saa7146_write(dev, MC2, MASK_31|MASK_15); in vbi_workaround() 91 saa7146_write(dev, NUM_LINE_BYTE3, (1<<16)|(2<<0)); in vbi_workaround() 92 saa7146_write(dev, MC2, MASK_04|MASK_20); in vbi_workaround() [all …]
|
H A D | saa7146_hlp.c | 334 saa7146_write(dev, HPS_V_SCALE, hps_v_scale); in saa7146_set_window() 335 saa7146_write(dev, HPS_V_GAIN, hps_v_gain); in saa7146_set_window() 336 saa7146_write(dev, HPS_CTRL, hps_ctrl); in saa7146_set_window() 337 saa7146_write(dev, HPS_H_PRESCALE,hps_h_prescale); in saa7146_set_window() 338 saa7146_write(dev, HPS_H_SCALE, hps_h_scale); in saa7146_set_window() 341 saa7146_write(dev, MC2, (MASK_05 | MASK_06 | MASK_21 | MASK_22) ); in saa7146_set_window() 352 saa7146_write(dev, CLIP_FORMAT_CTRL, clip_format); in saa7146_set_output_format() 353 saa7146_write(dev, MC2, (MASK_05 | MASK_21)); in saa7146_set_output_format() 369 saa7146_write(dev, HPS_CTRL, hps_ctrl); in saa7146_set_hps_source_and_sync() 370 saa7146_write(dev, MC2, (MASK_05 | MASK_21)); in saa7146_set_hps_source_and_sync() [all …]
|
H A D | saa7146_fops.c | 126 saa7146_write(dev,MC1, MASK_20); in saa7146_buffer_next() 133 saa7146_write(dev, PROT_ADDR1, 0); in saa7146_buffer_next() 134 saa7146_write(dev, MC2, (MASK_02|MASK_18)); in saa7146_buffer_next() 137 saa7146_write(dev, RPS_ADDR0, dev->d_rps0.dma_handle); in saa7146_buffer_next() 139 saa7146_write(dev, MC1, (MASK_12 | MASK_28)); in saa7146_buffer_next() 226 saa7146_write(dev,MC2, MASK_31); in vv_callback() 283 saa7146_write(dev, BCS_CTRL, 0x80400040); in saa7146_vv_init() 286 saa7146_write(dev, MC1, (MASK_10 | MASK_26)); in saa7146_vv_init()
|
H A D | saa7146_core.c | 46 saa7146_write(dev, GPIO_CTRL, value); in saa7146_setgpio() 322 saa7146_write(dev, ISR, ack_isr); in interrupt_hw() 384 saa7146_write(dev, IER, 0); in saa7146_init_one() 387 saa7146_write(dev, MC1, 0x30ff0000); in saa7146_init_one() 390 saa7146_write(dev, MC2, 0xf8000000); in saa7146_init_one() 437 saa7146_write(dev, PCI_BT_V1, 0x1c00101f); in saa7146_init_one() 504 saa7146_write(dev, MC1, 0x00ff0000); in saa7146_remove_one() 507 saa7146_write(dev, IER, 0); in saa7146_remove_one()
|
H A D | saa7146_video.c | 209 saa7146_write(dev, MC2, MASK_27 ); in video_begin() 241 saa7146_write(dev, MC1, MASK_28); in video_end() 247 saa7146_write(dev, MC1, dmas); in video_end() 287 saa7146_write(dev, BCS_CTRL, val); in saa7146_s_ctrl() 288 saa7146_write(dev, MC2, MASK_22 | MASK_06); in saa7146_s_ctrl() 295 saa7146_write(dev, BCS_CTRL, val); in saa7146_s_ctrl() 296 saa7146_write(dev, MC2, MASK_22 | MASK_06); in saa7146_s_ctrl() 303 saa7146_write(dev, BCS_CTRL, val); in saa7146_s_ctrl() 304 saa7146_write(dev, MC2, MASK_22 | MASK_06); in saa7146_s_ctrl()
|
/openbmc/linux/drivers/staging/media/av7110/ |
H A D | budget-patch.c | 384 saa7146_write(dev, MC1, MASK_31); in budget_patch_attach() 390 saa7146_write(dev, DD1_STREAM_B, 0); in budget_patch_attach() 392 saa7146_write(dev, DD1_INIT, 0x00000200); // have this in budget-core too! in budget_patch_attach() 393 saa7146_write(dev, BRS_CTRL, 0x00000000); // VBI in budget_patch_attach() 399 saa7146_write(dev, HPS_H_PRESCALE, 0); // r68 in budget_patch_attach() 400 saa7146_write(dev, HPS_H_SCALE, 0); // r6c in budget_patch_attach() 401 saa7146_write(dev, BCS_CTRL, 0); // r70 in budget_patch_attach() 402 saa7146_write(dev, HPS_V_SCALE, 0); // r60 in budget_patch_attach() 403 saa7146_write(dev, HPS_V_GAIN, 0); // r64 in budget_patch_attach() 404 saa7146_write(dev, CHROMA_KEY_RANGE, 0); // r74 in budget_patch_attach() [all …]
|
H A D | av7110.c | 1183 saa7146_write(budget->dev, MC1, MASK_20); /* DMA3 off */ in stop_ts_capture() 1202 saa7146_write(budget->dev, MC1, (MASK_04 | MASK_20)); /* DMA3 on */ in start_ts_capture() 2379 saa7146_write(dev, MC1, MASK_31); in av7110_attach() 2385 saa7146_write(dev, DD1_STREAM_B, 0); in av7110_attach() 2387 saa7146_write(dev, DD1_INIT, 0x00000200); in av7110_attach() 2388 saa7146_write(dev, BRS_CTRL, 0x00000000); // VBI in av7110_attach() 2389 saa7146_write(dev, MC2, in av7110_attach() 2401 saa7146_write(dev, MC1, MASK_29); in av7110_attach() 2403 saa7146_write(dev, RPS_TOV1, 0); in av7110_attach() 2422 saa7146_write(dev, EC1SSR, (0x03<<2) | 3 ); in av7110_attach() [all …]
|
H A D | av7110_hw.c | 56 saa7146_write(dev, DEBI_CONFIG, config); in av7110_debiwrite() 58 saa7146_write(dev, DEBI_AD, val); in av7110_debiwrite() 60 saa7146_write(dev, DEBI_AD, av7110->debi_bus); in av7110_debiwrite() 61 saa7146_write(dev, DEBI_COMMAND, (count << 17) | (addr & 0xffff)); in av7110_debiwrite() 62 saa7146_write(dev, MC2, (2 << 16) | 2); in av7110_debiwrite() 79 saa7146_write(dev, DEBI_AD, av7110->debi_bus); in av7110_debiread() 80 saa7146_write(dev, DEBI_COMMAND, (count << 17) | 0x10000 | (addr & 0xffff)); in av7110_debiread() 82 saa7146_write(dev, DEBI_CONFIG, config); in av7110_debiread() 83 saa7146_write(dev, MC2, (2 << 16) | 2); in av7110_debiread() 213 saa7146_write(av7110->dev, MC1, 0x08800880); in av7110_bootarm() [all …]
|
H A D | av7110_v4l.c | 789 saa7146_write(av7110->dev, DD1_STREAM_B, 0x00000000); in av7110_init_analog_module() 790 saa7146_write(av7110->dev, DD1_INIT, 0x03000700); in av7110_init_analog_module() 791 saa7146_write(av7110->dev, MC2, (MASK_09 | MASK_25 | MASK_10 | MASK_26)); in av7110_init_analog_module()
|
/openbmc/linux/include/media/drv-intf/ |
H A D | saa7146.h | 22 #define saa7146_write(sxy,adr,dat) writel((dat),(sxy->mem+(adr))) macro 55 saa7146_write(x, ISR, (y)); 460 saa7146_write(x, IER, saa7146_read(x, IER) & ~y); in SAA7146_IER_DISABLE() 468 saa7146_write(x, IER, saa7146_read(x, IER) | y); in SAA7146_IER_ENABLE()
|
/openbmc/linux/drivers/media/pci/saa7146/ |
H A D | hexium_orion.c | 217 saa7146_write(dev, MC1, (MASK_08 | MASK_24 | MASK_10 | MASK_26)); in hexium_probe() 219 saa7146_write(dev, DD1_INIT, 0x01000100); in hexium_probe() 220 saa7146_write(dev, DD1_STREAM_B, 0x00000000); in hexium_probe() 221 saa7146_write(dev, MC2, (MASK_09 | MASK_25 | MASK_10 | MASK_26)); in hexium_probe()
|
H A D | hexium_gemini.c | 260 saa7146_write(dev, MC1, (MASK_08 | MASK_24 | MASK_10 | MASK_26)); in hexium_attach() 274 saa7146_write(dev, DD1_INIT, 0x07000700); in hexium_attach() 275 saa7146_write(dev, DD1_STREAM_B, 0x00000000); in hexium_attach() 276 saa7146_write(dev, MC2, (MASK_09 | MASK_25 | MASK_10 | MASK_26)); in hexium_attach()
|
H A D | mxb.c | 369 saa7146_write(dev, GPIO_CTRL, 0x00404050); in mxb_init_done() 433 saa7146_write(dev, DD1_STREAM_B, 0x00000000); in mxb_init_done() 434 saa7146_write(dev, DD1_INIT, 0x02000200); in mxb_init_done() 435 saa7146_write(dev, MC2, (MASK_09 | MASK_25 | MASK_10 | MASK_26)); in mxb_init_done() 668 saa7146_write(dev, reg->reg, reg->val); in vidioc_s_register() 772 saa7146_write(dev, GPIO_CTRL, 0x00404050); in std_callback() 784 saa7146_write(dev, GPIO_CTRL, 0x00404050); in std_callback()
|