/kernel/linux/linux-6.6/drivers/gpu/drm/bridge/adv7511/ |
H A D | adv7511_cec.c | 15 #include "adv7511.h" 34 static void adv_cec_tx_raw_status(struct adv7511 *adv7511, u8 tx_raw_status) in adv_cec_tx_raw_status() argument 36 unsigned int offset = adv7511->reg_cec_offset; in adv_cec_tx_raw_status() 39 if (regmap_read(adv7511->regmap_cec, in adv_cec_tx_raw_status() 47 cec_transmit_attempt_done(adv7511->cec_adap, in adv_cec_tx_raw_status() 63 if (regmap_read(adv7511->regmap_cec, in adv_cec_tx_raw_status() 75 cec_transmit_done(adv7511->cec_adap, status, in adv_cec_tx_raw_status() 80 cec_transmit_attempt_done(adv7511->cec_adap, CEC_TX_STATUS_OK); in adv_cec_tx_raw_status() 85 static void adv7511_cec_rx(struct adv7511 *adv751 argument 122 adv7511_cec_irq_process(struct adv7511 *adv7511, unsigned int irq1) adv7511_cec_irq_process() argument 179 struct adv7511 *adv7511 = cec_get_drvdata(adap); adv7511_cec_adap_enable() local 225 struct adv7511 *adv7511 = cec_get_drvdata(adap); adv7511_cec_adap_log_addr() local 294 struct adv7511 *adv7511 = cec_get_drvdata(adap); adv7511_cec_adap_transmit() local 332 adv7511_cec_parse_dt(struct device *dev, struct adv7511 *adv7511) adv7511_cec_parse_dt() argument 346 adv7511_cec_init(struct device *dev, struct adv7511 *adv7511) adv7511_cec_init() argument [all...] |
H A D | adv7511_drv.c | 23 #include "adv7511.h" 135 static void adv7511_set_colormap(struct adv7511 *adv7511, bool enable, in adv7511_set_colormap() argument 141 regmap_update_bits(adv7511->regmap, ADV7511_REG_CSC_UPPER(1), in adv7511_set_colormap() 146 regmap_update_bits(adv7511->regmap, in adv7511_set_colormap() 149 regmap_write(adv7511->regmap, in adv7511_set_colormap() 156 regmap_update_bits(adv7511->regmap, ADV7511_REG_CSC_UPPER(0), in adv7511_set_colormap() 159 regmap_update_bits(adv7511->regmap, ADV7511_REG_CSC_UPPER(0), in adv7511_set_colormap() 162 regmap_update_bits(adv7511->regmap, ADV7511_REG_CSC_UPPER(1), in adv7511_set_colormap() 166 static int adv7511_packet_enable(struct adv7511 *adv751 argument 181 adv7511_packet_disable(struct adv7511 *adv7511, unsigned int packet) adv7511_packet_disable() argument 203 adv7511_set_config_csc(struct adv7511 *adv7511, struct drm_connector *connector, bool rgb, bool hdmi_mode) adv7511_set_config_csc() argument 282 adv7511_set_link_config(struct adv7511 *adv7511, const struct adv7511_link_config *config) adv7511_set_link_config() argument 328 __adv7511_power_on(struct adv7511 *adv7511) __adv7511_power_on() argument 367 adv7511_power_on(struct adv7511 *adv7511) adv7511_power_on() argument 381 __adv7511_power_off(struct adv7511 *adv7511) __adv7511_power_off() argument 397 adv7511_power_off(struct adv7511 *adv7511) adv7511_power_off() argument 409 adv7511_hpd(struct adv7511 *adv7511) adv7511_hpd() argument 429 struct adv7511 *adv7511 = container_of(work, struct adv7511, hpd_work); adv7511_hpd_work() local 467 adv7511_irq_process(struct adv7511 *adv7511, bool process_hpd) adv7511_irq_process() argument 502 struct adv7511 *adv7511 = devid; adv7511_irq_handler() local 513 adv7511_wait_for_edid(struct adv7511 *adv7511, int timeout) adv7511_wait_for_edid() argument 539 struct adv7511 *adv7511 = data; adv7511_get_edid_block() local 607 adv7511_get_edid(struct adv7511 *adv7511, struct drm_connector *connector) adv7511_get_edid() argument 637 adv7511_get_modes(struct adv7511 *adv7511, struct drm_connector *connector) adv7511_get_modes() argument 654 adv7511_detect(struct adv7511 *adv7511, struct drm_connector *connector) adv7511_detect() argument 699 adv7511_mode_valid(struct adv7511 *adv7511, const struct drm_display_mode *mode) adv7511_mode_valid() argument 708 adv7511_mode_set(struct adv7511 *adv7511, const struct drm_display_mode *mode, const struct drm_display_mode *adj_mode) adv7511_mode_set() argument 1043 struct adv7511 *adv7511 = i2c_get_clientdata(i2c); adv7511_cec_register_volatile() local 1197 struct adv7511 *adv7511; adv7511_probe() local 1355 struct adv7511 *adv7511 = i2c_get_clientdata(i2c); adv7511_remove() local [all...] |
H A D | adv7511_audio.c | 15 #include "adv7511.h" 37 static int adv7511_update_cts_n(struct adv7511 *adv7511) in adv7511_update_cts_n() argument 42 adv7511_calc_cts_n(adv7511->f_tmds, adv7511->f_audio, &cts, &n); in adv7511_update_cts_n() 44 regmap_write(adv7511->regmap, ADV7511_REG_N0, (n >> 16) & 0xf); in adv7511_update_cts_n() 45 regmap_write(adv7511->regmap, ADV7511_REG_N1, (n >> 8) & 0xff); in adv7511_update_cts_n() 46 regmap_write(adv7511->regmap, ADV7511_REG_N2, n & 0xff); in adv7511_update_cts_n() 48 regmap_write(adv7511->regmap, ADV7511_REG_CTS_MANUAL0, in adv7511_update_cts_n() 50 regmap_write(adv7511 in adv7511_update_cts_n() 62 struct adv7511 *adv7511 = dev_get_drvdata(dev); adv7511_hdmi_hw_params() local 163 struct adv7511 *adv7511 = dev_get_drvdata(dev); audio_startup() local 199 struct adv7511 *adv7511 = dev_get_drvdata(dev); audio_shutdown() local 240 adv7511_audio_init(struct device *dev, struct adv7511 *adv7511) adv7511_audio_init() argument 250 adv7511_audio_exit(struct adv7511 *adv7511) adv7511_audio_exit() argument [all...] |
H A D | adv7511.h | 272 * struct adv7511_link_config - Describes adv7511 hardware configuration 312 * struct adv7511_video_config - Describes adv7511 hardware configuration 336 struct adv7511 { struct 392 int adv7511_cec_init(struct device *dev, struct adv7511 *adv7511); 393 void adv7511_cec_irq_process(struct adv7511 *adv7511, unsigned int irq1); 395 static inline int adv7511_cec_init(struct device *dev, struct adv7511 *adv7511) in adv7511_cec_init() argument 397 regmap_write(adv7511 in adv7511_cec_init() 416 adv7511_audio_init(struct device *dev, struct adv7511 *adv7511) adv7511_audio_init() argument 420 adv7511_audio_exit(struct adv7511 *adv7511) adv7511_audio_exit() argument [all...] |
H A D | Makefile | 2 adv7511-y := adv7511_drv.o adv7533.o 3 adv7511-$(CONFIG_DRM_I2C_ADV7511_AUDIO) += adv7511_audio.o 4 adv7511-$(CONFIG_DRM_I2C_ADV7511_CEC) += adv7511_cec.o 5 obj-$(CONFIG_DRM_I2C_ADV7511) += adv7511.o
|
H A D | adv7533.c | 8 #include "adv7511.h" 27 static void adv7511_dsi_config_timing_gen(struct adv7511 *adv) in adv7511_dsi_config_timing_gen() 66 void adv7533_dsi_power_on(struct adv7511 *adv) in adv7533_dsi_power_on() 95 void adv7533_dsi_power_off(struct adv7511 *adv) in adv7533_dsi_power_off() 103 enum drm_mode_status adv7533_mode_valid(struct adv7511 *adv, in adv7533_mode_valid() 123 int adv7533_patch_registers(struct adv7511 *adv) in adv7533_patch_registers() 130 int adv7533_patch_cec_registers(struct adv7511 *adv) in adv7533_patch_cec_registers() 137 int adv7533_attach_dsi(struct adv7511 *adv) in adv7533_attach_dsi() 172 int adv7533_parse_dt(struct device_node *np, struct adv7511 *adv) in adv7533_parse_dt()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/adv7511/ |
H A D | adv7511_drv.c | 23 #include "adv7511.h" 135 static void adv7511_set_colormap(struct adv7511 *adv7511, bool enable, in adv7511_set_colormap() argument 141 regmap_update_bits(adv7511->regmap, ADV7511_REG_CSC_UPPER(1), in adv7511_set_colormap() 146 regmap_update_bits(adv7511->regmap, in adv7511_set_colormap() 149 regmap_write(adv7511->regmap, in adv7511_set_colormap() 156 regmap_update_bits(adv7511->regmap, ADV7511_REG_CSC_UPPER(0), in adv7511_set_colormap() 159 regmap_update_bits(adv7511->regmap, ADV7511_REG_CSC_UPPER(0), in adv7511_set_colormap() 162 regmap_update_bits(adv7511->regmap, ADV7511_REG_CSC_UPPER(1), in adv7511_set_colormap() 166 static int adv7511_packet_enable(struct adv7511 *adv751 argument 181 adv7511_packet_disable(struct adv7511 *adv7511, unsigned int packet) adv7511_packet_disable() argument 203 adv7511_set_config_csc(struct adv7511 *adv7511, struct drm_connector *connector, bool rgb, bool hdmi_mode) adv7511_set_config_csc() argument 282 adv7511_set_link_config(struct adv7511 *adv7511, const struct adv7511_link_config *config) adv7511_set_link_config() argument 328 __adv7511_power_on(struct adv7511 *adv7511) __adv7511_power_on() argument 367 adv7511_power_on(struct adv7511 *adv7511) adv7511_power_on() argument 381 __adv7511_power_off(struct adv7511 *adv7511) __adv7511_power_off() argument 397 adv7511_power_off(struct adv7511 *adv7511) adv7511_power_off() argument 409 adv7511_hpd(struct adv7511 *adv7511) adv7511_hpd() argument 429 struct adv7511 *adv7511 = container_of(work, struct adv7511, hpd_work); adv7511_hpd_work() local 467 adv7511_irq_process(struct adv7511 *adv7511, bool process_hpd) adv7511_irq_process() argument 502 struct adv7511 *adv7511 = devid; adv7511_irq_handler() local 513 adv7511_wait_for_edid(struct adv7511 *adv7511, int timeout) adv7511_wait_for_edid() argument 539 struct adv7511 *adv7511 = data; adv7511_get_edid_block() local 607 adv7511_get_edid(struct adv7511 *adv7511, struct drm_connector *connector) adv7511_get_edid() argument 637 adv7511_get_modes(struct adv7511 *adv7511, struct drm_connector *connector) adv7511_get_modes() argument 654 adv7511_detect(struct adv7511 *adv7511, struct drm_connector *connector) adv7511_detect() argument 699 adv7511_mode_valid(struct adv7511 *adv7511, const struct drm_display_mode *mode) adv7511_mode_valid() argument 708 adv7511_mode_set(struct adv7511 *adv7511, const struct drm_display_mode *mode, const struct drm_display_mode *adj_mode) adv7511_mode_set() argument 1046 struct adv7511 *adv7511 = i2c_get_clientdata(i2c); adv7511_cec_register_volatile() local 1192 struct adv7511 *adv7511; adv7511_probe() local 1341 struct adv7511 *adv7511 = i2c_get_clientdata(i2c); adv7511_remove() local [all...] |
H A D | adv7511_cec.c | 29 #include "adv7511.h" 35 static void adv_cec_tx_raw_status(struct adv7511 *adv7511, u8 tx_raw_status) in adv_cec_tx_raw_status() argument 37 unsigned int offset = adv7511->type == ADV7533 ? in adv_cec_tx_raw_status() 41 if (regmap_read(adv7511->regmap_cec, in adv_cec_tx_raw_status() 49 cec_transmit_attempt_done(adv7511->cec_adap, in adv_cec_tx_raw_status() 65 if (regmap_read(adv7511->regmap_cec, in adv_cec_tx_raw_status() 77 cec_transmit_done(adv7511->cec_adap, status, in adv_cec_tx_raw_status() 82 cec_transmit_attempt_done(adv7511->cec_adap, CEC_TX_STATUS_OK); in adv_cec_tx_raw_status() 87 void adv7511_cec_irq_process(struct adv7511 *adv751 argument 133 struct adv7511 *adv7511 = cec_get_drvdata(adap); adv7511_cec_adap_enable() local 180 struct adv7511 *adv7511 = cec_get_drvdata(adap); adv7511_cec_adap_log_addr() local 250 struct adv7511 *adv7511 = cec_get_drvdata(adap); adv7511_cec_adap_transmit() local 289 adv7511_cec_parse_dt(struct device *dev, struct adv7511 *adv7511) adv7511_cec_parse_dt() argument 303 adv7511_cec_init(struct device *dev, struct adv7511 *adv7511) adv7511_cec_init() argument [all...] |
H A D | adv7511_audio.c | 15 #include "adv7511.h" 37 static int adv7511_update_cts_n(struct adv7511 *adv7511) in adv7511_update_cts_n() argument 42 adv7511_calc_cts_n(adv7511->f_tmds, adv7511->f_audio, &cts, &n); in adv7511_update_cts_n() 44 regmap_write(adv7511->regmap, ADV7511_REG_N0, (n >> 16) & 0xf); in adv7511_update_cts_n() 45 regmap_write(adv7511->regmap, ADV7511_REG_N1, (n >> 8) & 0xff); in adv7511_update_cts_n() 46 regmap_write(adv7511->regmap, ADV7511_REG_N2, n & 0xff); in adv7511_update_cts_n() 48 regmap_write(adv7511->regmap, ADV7511_REG_CTS_MANUAL0, in adv7511_update_cts_n() 50 regmap_write(adv7511 in adv7511_update_cts_n() 62 struct adv7511 *adv7511 = dev_get_drvdata(dev); adv7511_hdmi_hw_params() local 157 struct adv7511 *adv7511 = dev_get_drvdata(dev); audio_startup() local 193 struct adv7511 *adv7511 = dev_get_drvdata(dev); audio_shutdown() local 234 adv7511_audio_init(struct device *dev, struct adv7511 *adv7511) adv7511_audio_init() argument 244 adv7511_audio_exit(struct adv7511 *adv7511) adv7511_audio_exit() argument [all...] |
H A D | adv7511.h | 265 * struct adv7511_link_config - Describes adv7511 hardware configuration 305 * struct adv7511_video_config - Describes adv7511 hardware configuration 329 struct adv7511 { struct 384 int adv7511_cec_init(struct device *dev, struct adv7511 *adv7511); 385 void adv7511_cec_irq_process(struct adv7511 *adv7511, unsigned int irq1); 387 static inline int adv7511_cec_init(struct device *dev, struct adv7511 *adv7511) in adv7511_cec_init() argument 389 regmap_write(adv7511 in adv7511_cec_init() 409 adv7511_audio_init(struct device *dev, struct adv7511 *adv7511) adv7511_audio_init() argument 413 adv7511_audio_exit(struct adv7511 *adv7511) adv7511_audio_exit() argument [all...] |
H A D | Makefile | 2 adv7511-y := adv7511_drv.o adv7533.o 3 adv7511-$(CONFIG_DRM_I2C_ADV7511_AUDIO) += adv7511_audio.o 4 adv7511-$(CONFIG_DRM_I2C_ADV7511_CEC) += adv7511_cec.o 5 obj-$(CONFIG_DRM_I2C_ADV7511) += adv7511.o
|
H A D | adv7533.c | 8 #include "adv7511.h" 27 static void adv7511_dsi_config_timing_gen(struct adv7511 *adv) in adv7511_dsi_config_timing_gen() 66 void adv7533_dsi_power_on(struct adv7511 *adv) in adv7533_dsi_power_on() 95 void adv7533_dsi_power_off(struct adv7511 *adv) in adv7533_dsi_power_off() 103 enum drm_mode_status adv7533_mode_valid(struct adv7511 *adv, in adv7533_mode_valid() 123 int adv7533_patch_registers(struct adv7511 *adv) in adv7533_patch_registers() 130 int adv7533_patch_cec_registers(struct adv7511 *adv) in adv7533_patch_cec_registers() 137 int adv7533_attach_dsi(struct adv7511 *adv) in adv7533_attach_dsi() 182 void adv7533_detach_dsi(struct adv7511 *adv) in adv7533_detach_dsi() 188 int adv7533_parse_dt(struct device_node *np, struct adv7511 *ad [all...] |
/kernel/linux/linux-5.10/drivers/media/i2c/ |
H A D | Makefile | 39 obj-$(CONFIG_VIDEO_ADV7511) += adv7511-v4l2.o
|
H A D | adv7511-v4l2.c | 9 * This file is named adv7511-v4l2.c so it doesn't conflict with the Analog 28 #include <media/i2c/adv7511.h> 98 /* Is the adv7511 powered on? */ 674 /* Power up/down adv7511 */ 692 /* The adv7511 does not always come up immediately. in adv7511_s_power() 702 v4l2_dbg(1, debug, sd, "%s: failed to powerup the adv7511!\n", __func__); in adv7511_s_power() 707 v4l2_dbg(1, debug, sd, "%s: needed %d retries to powerup the adv7511\n", __func__, i); in adv7511_s_power() 1016 /* Enable/disable adv7511 output */ 1823 v4l2_dbg(1, debug, sd, "detecting adv7511 client on address 0x%x\n", in adv7511_probe() 1981 { "adv7511 [all...] |
/kernel/linux/linux-6.6/drivers/media/i2c/ |
H A D | Makefile | 15 obj-$(CONFIG_VIDEO_ADV7511) += adv7511-v4l2.o
|
H A D | adv7511-v4l2.c | 9 * This file is named adv7511-v4l2.c so it doesn't conflict with the Analog 27 #include <media/i2c/adv7511.h> 97 /* Is the adv7511 powered on? */ 640 /* Power up/down adv7511 */ 658 /* The adv7511 does not always come up immediately. in adv7511_s_power() 668 v4l2_dbg(1, debug, sd, "%s: failed to powerup the adv7511!\n", __func__); in adv7511_s_power() 673 v4l2_dbg(1, debug, sd, "%s: needed %d retries to powerup the adv7511\n", __func__, i); in adv7511_s_power() 982 /* Enable/disable adv7511 output */ 1794 v4l2_dbg(1, debug, sd, "detecting adv7511 client on address 0x%x\n", in adv7511_probe() 1951 { "adv7511 [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/cobalt/ |
H A D | cobalt-driver.c | 15 #include <media/i2c/adv7511.h> 588 .type = "adv7511-v4l2", in cobalt_subdevs_hsma_init()
|
/kernel/linux/linux-6.6/drivers/media/pci/cobalt/ |
H A D | cobalt-driver.c | 15 #include <media/i2c/adv7511.h> 588 .type = "adv7511-v4l2", in cobalt_subdevs_hsma_init()
|