Lines Matching refs:chip
29 static void hdmi_write_command(struct oxygen *chip, u8 command, in hdmi_write_command() argument
35 oxygen_write_uart(chip, 0xfb); in hdmi_write_command()
36 oxygen_write_uart(chip, 0xef); in hdmi_write_command()
37 oxygen_write_uart(chip, command); in hdmi_write_command()
38 oxygen_write_uart(chip, count); in hdmi_write_command()
40 oxygen_write_uart(chip, params[i]); in hdmi_write_command()
44 oxygen_write_uart(chip, checksum); in hdmi_write_command()
47 static void xonar_hdmi_init_commands(struct oxygen *chip, in xonar_hdmi_init_commands() argument
52 oxygen_reset_uart(chip); in xonar_hdmi_init_commands()
54 hdmi_write_command(chip, 0x61, 1, ¶m); in xonar_hdmi_init_commands()
56 hdmi_write_command(chip, 0x74, 1, ¶m); in xonar_hdmi_init_commands()
57 hdmi_write_command(chip, 0x54, 5, hdmi->params); in xonar_hdmi_init_commands()
60 void xonar_hdmi_init(struct oxygen *chip, struct xonar_hdmi *hdmi) in xonar_hdmi_init() argument
64 xonar_hdmi_init_commands(chip, hdmi); in xonar_hdmi_init()
67 void xonar_hdmi_cleanup(struct oxygen *chip) in xonar_hdmi_cleanup() argument
71 hdmi_write_command(chip, 0x74, 1, ¶m); in xonar_hdmi_cleanup()
74 void xonar_hdmi_resume(struct oxygen *chip, struct xonar_hdmi *hdmi) in xonar_hdmi_resume() argument
76 xonar_hdmi_init_commands(chip, hdmi); in xonar_hdmi_resume()
91 void xonar_set_hdmi_params(struct oxygen *chip, struct xonar_hdmi *hdmi, in xonar_set_hdmi_params() argument
115 hdmi_write_command(chip, 0x54, 5, hdmi->params); in xonar_set_hdmi_params()
118 void xonar_hdmi_uart_input(struct oxygen *chip) in xonar_hdmi_uart_input() argument
120 if (chip->uart_input_count >= 2 && in xonar_hdmi_uart_input()
121 chip->uart_input[chip->uart_input_count - 2] == 'O' && in xonar_hdmi_uart_input()
122 chip->uart_input[chip->uart_input_count - 1] == 'K') { in xonar_hdmi_uart_input()
123 dev_dbg(chip->card->dev, "message from HDMI chip received:\n"); in xonar_hdmi_uart_input()
125 chip->uart_input, chip->uart_input_count); in xonar_hdmi_uart_input()
126 chip->uart_input_count = 0; in xonar_hdmi_uart_input()