Home
last modified time | relevance | path

Searched refs:chip (Results 1 - 25 of 3258) sorted by relevance

12345678910>>...131

/kernel/linux/linux-5.10/drivers/staging/rts5208/
H A Drtsx_chip.c23 static void rtsx_calibration(struct rtsx_chip *chip) in rtsx_calibration() argument
25 rtsx_write_phy_register(chip, 0x1B, 0x135E); in rtsx_calibration()
27 rtsx_write_phy_register(chip, 0x00, 0x0280); in rtsx_calibration()
28 rtsx_write_phy_register(chip, 0x01, 0x7112); in rtsx_calibration()
29 rtsx_write_phy_register(chip, 0x01, 0x7110); in rtsx_calibration()
30 rtsx_write_phy_register(chip, 0x01, 0x7112); in rtsx_calibration()
31 rtsx_write_phy_register(chip, 0x01, 0x7113); in rtsx_calibration()
32 rtsx_write_phy_register(chip, 0x00, 0x0288); in rtsx_calibration()
35 void rtsx_enable_card_int(struct rtsx_chip *chip) in rtsx_enable_card_int() argument
37 u32 reg = rtsx_readl(chip, RTSX_BIE in rtsx_enable_card_int()
54 rtsx_enable_bus_int(struct rtsx_chip *chip) rtsx_enable_bus_int() argument
93 rtsx_disable_bus_int(struct rtsx_chip *chip) rtsx_disable_bus_int() argument
98 rtsx_pre_handle_sdio_old(struct rtsx_chip *chip) rtsx_pre_handle_sdio_old() argument
142 rtsx_pre_handle_sdio_new(struct rtsx_chip *chip) rtsx_pre_handle_sdio_new() argument
248 rtsx_reset_aspm(struct rtsx_chip *chip) rtsx_reset_aspm() argument
287 rtsx_enable_pcie_intr(struct rtsx_chip *chip) rtsx_enable_pcie_intr() argument
334 rtsx_reset_chip(struct rtsx_chip *chip) rtsx_reset_chip() argument
635 rts5208_init(struct rtsx_chip *chip) rts5208_init() argument
694 rts5288_init(struct rtsx_chip *chip) rts5288_init() argument
754 rtsx_init_chip(struct rtsx_chip *chip) rtsx_init_chip() argument
888 rtsx_release_chip(struct rtsx_chip *chip) rtsx_release_chip() argument
897 rtsx_blink_led(struct rtsx_chip *chip) rtsx_blink_led() argument
910 rtsx_monitor_aspm_config(struct rtsx_chip *chip) rtsx_monitor_aspm_config() argument
959 rtsx_manage_ocp(struct rtsx_chip *chip) rtsx_manage_ocp() argument
978 rtsx_manage_sd_lock(struct rtsx_chip *chip) rtsx_manage_sd_lock() argument
1000 rtsx_is_ss_allowed(struct rtsx_chip *chip) rtsx_is_ss_allowed() argument
1016 rtsx_manage_ss(struct rtsx_chip *chip) rtsx_manage_ss() argument
1032 rtsx_manage_aspm(struct rtsx_chip *chip) rtsx_manage_aspm() argument
1061 rtsx_manage_idle(struct rtsx_chip *chip) rtsx_manage_idle() argument
1085 rtsx_manage_2lun_mode(struct rtsx_chip *chip) rtsx_manage_2lun_mode() argument
1111 rtsx_manage_1lun_mode(struct rtsx_chip *chip) rtsx_manage_1lun_mode() argument
1134 rtsx_delink_stage1(struct rtsx_chip *chip, int enter_L1, int stage3_cnt) rtsx_delink_stage1() argument
1166 rtsx_delink_stage(struct rtsx_chip *chip) rtsx_delink_stage() argument
1205 rtsx_polling_func(struct rtsx_chip *chip) rtsx_polling_func() argument
1270 rtsx_stop_cmd(struct rtsx_chip *chip, int card) rtsx_stop_cmd() argument
1298 rtsx_write_register(struct rtsx_chip *chip, u16 addr, u8 mask, u8 data) rtsx_write_register() argument
1322 rtsx_read_register(struct rtsx_chip *chip, u16 addr, u8 *data) rtsx_read_register() argument
1349 rtsx_write_cfg_dw(struct rtsx_chip *chip, u8 func_no, u16 addr, u32 mask, u32 val) rtsx_write_cfg_dw() argument
1396 rtsx_read_cfg_dw(struct rtsx_chip *chip, u8 func_no, u16 addr, u32 *val) rtsx_read_cfg_dw() argument
1435 rtsx_write_cfg_seq(struct rtsx_chip *chip, u8 func, u16 addr, u8 *buf, int len) rtsx_write_cfg_seq() argument
1495 rtsx_read_cfg_seq(struct rtsx_chip *chip, u8 func, u16 addr, u8 *buf, int len) rtsx_read_cfg_seq() argument
1541 rtsx_write_phy_register(struct rtsx_chip *chip, u8 addr, u16 val) rtsx_write_phy_register() argument
1577 rtsx_read_phy_register(struct rtsx_chip *chip, u8 addr, u16 *val) rtsx_read_phy_register() argument
1620 rtsx_read_efuse(struct rtsx_chip *chip, u8 addr, u8 *val) rtsx_read_efuse() argument
1651 rtsx_write_efuse(struct rtsx_chip *chip, u8 addr, u8 val) rtsx_write_efuse() argument
1690 rtsx_clr_phy_reg_bit(struct rtsx_chip *chip, u8 reg, u8 bit) rtsx_clr_phy_reg_bit() argument
1709 rtsx_set_phy_reg_bit(struct rtsx_chip *chip, u8 reg, u8 bit) rtsx_set_phy_reg_bit() argument
1728 rtsx_handle_pm_dstate(struct rtsx_chip *chip, u8 dstate) rtsx_handle_pm_dstate() argument
1753 rtsx_enter_L1(struct rtsx_chip *chip) rtsx_enter_L1() argument
1758 rtsx_exit_L1(struct rtsx_chip *chip) rtsx_exit_L1() argument
1764 rtsx_enter_ss(struct rtsx_chip *chip) rtsx_enter_ss() argument
1799 rtsx_exit_ss(struct rtsx_chip *chip) rtsx_exit_ss() argument
1820 rtsx_pre_handle_interrupt(struct rtsx_chip *chip) rtsx_pre_handle_interrupt() argument
1911 rtsx_do_before_power_down(struct rtsx_chip *chip, int pm_stat) rtsx_do_before_power_down() argument
1970 rtsx_enable_aspm(struct rtsx_chip *chip) rtsx_enable_aspm() argument
1995 rtsx_disable_aspm(struct rtsx_chip *chip) rtsx_disable_aspm() argument
2016 rtsx_read_ppbuf(struct rtsx_chip *chip, u8 *buf, int buf_len) rtsx_read_ppbuf() argument
2058 rtsx_write_ppbuf(struct rtsx_chip *chip, u8 *buf, int buf_len) rtsx_write_ppbuf() argument
2101 rtsx_check_chip_exist(struct rtsx_chip *chip) rtsx_check_chip_exist() argument
2109 rtsx_force_power_on(struct rtsx_chip *chip, u8 ctl) rtsx_force_power_on() argument
2137 rtsx_force_power_down(struct rtsx_chip *chip, u8 ctl) rtsx_force_power_down() argument
[all...]
H A Drtsx_card.c23 void do_remaining_work(struct rtsx_chip *chip) in do_remaining_work() argument
25 struct sd_info *sd_card = &chip->sd_card; in do_remaining_work()
27 struct xd_info *xd_card = &chip->xd_card; in do_remaining_work()
29 struct ms_info *ms_card = &chip->ms_card; in do_remaining_work()
31 if (chip->card_ready & SD_CARD) { in do_remaining_work()
33 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work()
41 if (chip->card_ready & XD_CARD) { in do_remaining_work()
43 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work()
51 if (chip->card_ready & MS_CARD) { in do_remaining_work()
54 rtsx_set_stat(chip, RTSX_STAT_RU in do_remaining_work()
81 try_to_switch_sdio_ctrl(struct rtsx_chip *chip) try_to_switch_sdio_ctrl() argument
99 dynamic_configure_sdio_aspm(struct rtsx_chip *chip) dynamic_configure_sdio_aspm() argument
138 do_reset_sd_card(struct rtsx_chip *chip) do_reset_sd_card() argument
192 do_reset_xd_card(struct rtsx_chip *chip) do_reset_xd_card() argument
240 do_reset_ms_card(struct rtsx_chip *chip) do_reset_ms_card() argument
288 release_sdio(struct rtsx_chip *chip) release_sdio() argument
308 rtsx_power_off_card(struct rtsx_chip *chip) rtsx_power_off_card() argument
326 rtsx_release_cards(struct rtsx_chip *chip) rtsx_release_cards() argument
349 rtsx_reset_cards(struct rtsx_chip *chip) rtsx_reset_cards() argument
397 rtsx_reinit_cards(struct rtsx_chip *chip, int reset_chip) rtsx_reinit_cards() argument
440 card_cd_debounce(struct rtsx_chip *chip, unsigned long *need_reset, unsigned long *need_release) card_cd_debounce() argument
514 rtsx_init_cards(struct rtsx_chip *chip) rtsx_init_cards() argument
622 switch_ssc_clock(struct rtsx_chip *chip, int clk) switch_ssc_clock() argument
692 switch_normal_clock(struct rtsx_chip *chip, int clk) switch_normal_clock() argument
820 trans_dma_enable(enum dma_data_direction dir, struct rtsx_chip *chip, u32 byte_cnt, u8 pack_size) trans_dma_enable() argument
846 enable_card_clock(struct rtsx_chip *chip, u8 card) enable_card_clock() argument
865 disable_card_clock(struct rtsx_chip *chip, u8 card) disable_card_clock() argument
884 card_power_on(struct rtsx_chip *chip, u8 card) card_power_on() argument
918 card_power_off(struct rtsx_chip *chip, u8 card) card_power_off() argument
938 card_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 sec_addr, u16 sec_cnt) card_rw() argument
977 card_share_mode(struct rtsx_chip *chip, int card) card_share_mode() argument
1015 select_card(struct rtsx_chip *chip, int card) select_card() argument
1046 toggle_gpio(struct rtsx_chip *chip, u8 gpio) toggle_gpio() argument
1055 turn_on_led(struct rtsx_chip *chip, u8 gpio) turn_on_led() argument
1064 turn_off_led(struct rtsx_chip *chip, u8 gpio) turn_off_led() argument
1073 detect_card_cd(struct rtsx_chip *chip, int card) detect_card_cd() argument
1095 check_card_exist(struct rtsx_chip *chip, unsigned int lun) check_card_exist() argument
1103 check_card_ready(struct rtsx_chip *chip, unsigned int lun) check_card_ready() argument
1111 check_card_wp(struct rtsx_chip *chip, unsigned int lun) check_card_wp() argument
1119 get_lun_card(struct rtsx_chip *chip, unsigned int lun) get_lun_card() argument
1131 eject_card(struct rtsx_chip *chip, unsigned int lun) eject_card() argument
[all...]
H A Dspi.c19 static inline void spi_set_err_code(struct rtsx_chip *chip, u8 err_code) in spi_set_err_code() argument
21 struct spi_info *spi = &chip->spi; in spi_set_err_code()
26 static int spi_init(struct rtsx_chip *chip) in spi_init() argument
30 retval = rtsx_write_register(chip, SPI_CONTROL, 0xFF, in spi_init()
35 retval = rtsx_write_register(chip, SPI_TCTL, EDO_TIMING_MASK, in spi_init()
43 static int spi_set_init_para(struct rtsx_chip *chip) in spi_set_init_para() argument
45 struct spi_info *spi = &chip->spi; in spi_set_init_para()
48 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER1, 0xFF, in spi_set_init_para()
52 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER0, 0xFF, in spi_set_init_para()
57 retval = switch_clock(chip, sp in spi_set_init_para()
83 sf_polling_status(struct rtsx_chip *chip, int msec) sf_polling_status() argument
105 sf_enable_write(struct rtsx_chip *chip, u8 ins) sf_enable_write() argument
133 sf_disable_write(struct rtsx_chip *chip, u8 ins) sf_disable_write() argument
161 sf_program(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr, u16 len) sf_program() argument
185 sf_erase(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr) sf_erase() argument
219 spi_init_eeprom(struct rtsx_chip *chip) spi_init_eeprom() argument
267 spi_eeprom_program_enable(struct rtsx_chip *chip) spi_eeprom_program_enable() argument
287 spi_erase_eeprom_chip(struct rtsx_chip *chip) spi_erase_eeprom_chip() argument
321 spi_erase_eeprom_byte(struct rtsx_chip *chip, u16 addr) spi_erase_eeprom_byte() argument
357 spi_read_eeprom(struct rtsx_chip *chip, u16 addr, u8 *val) spi_read_eeprom() argument
399 spi_write_eeprom(struct rtsx_chip *chip, u16 addr, u8 val) spi_write_eeprom() argument
436 spi_get_status(struct scsi_cmnd *srb, struct rtsx_chip *chip) spi_get_status() argument
449 spi_set_parameter(struct scsi_cmnd *srb, struct rtsx_chip *chip) spi_set_parameter() argument
471 spi_read_flash_id(struct scsi_cmnd *srb, struct rtsx_chip *chip) spi_read_flash_id() argument
554 spi_read_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip) spi_read_flash() argument
647 spi_write_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip) spi_write_flash() argument
822 spi_erase_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip) spi_erase_flash() argument
865 spi_write_flash_status(struct scsi_cmnd *srb, struct rtsx_chip *chip) spi_write_flash_status() argument
[all...]
/kernel/linux/linux-6.6/drivers/staging/rts5208/
H A Drtsx_chip.c23 static void rtsx_calibration(struct rtsx_chip *chip) in rtsx_calibration() argument
25 rtsx_write_phy_register(chip, 0x1B, 0x135E); in rtsx_calibration()
27 rtsx_write_phy_register(chip, 0x00, 0x0280); in rtsx_calibration()
28 rtsx_write_phy_register(chip, 0x01, 0x7112); in rtsx_calibration()
29 rtsx_write_phy_register(chip, 0x01, 0x7110); in rtsx_calibration()
30 rtsx_write_phy_register(chip, 0x01, 0x7112); in rtsx_calibration()
31 rtsx_write_phy_register(chip, 0x01, 0x7113); in rtsx_calibration()
32 rtsx_write_phy_register(chip, 0x00, 0x0288); in rtsx_calibration()
35 void rtsx_enable_card_int(struct rtsx_chip *chip) in rtsx_enable_card_int() argument
37 u32 reg = rtsx_readl(chip, RTSX_BIE in rtsx_enable_card_int()
54 rtsx_enable_bus_int(struct rtsx_chip *chip) rtsx_enable_bus_int() argument
93 rtsx_disable_bus_int(struct rtsx_chip *chip) rtsx_disable_bus_int() argument
98 rtsx_pre_handle_sdio_old(struct rtsx_chip *chip) rtsx_pre_handle_sdio_old() argument
142 rtsx_pre_handle_sdio_new(struct rtsx_chip *chip) rtsx_pre_handle_sdio_new() argument
248 rtsx_reset_aspm(struct rtsx_chip *chip) rtsx_reset_aspm() argument
287 rtsx_enable_pcie_intr(struct rtsx_chip *chip) rtsx_enable_pcie_intr() argument
334 rtsx_reset_chip(struct rtsx_chip *chip) rtsx_reset_chip() argument
635 rts5208_init(struct rtsx_chip *chip) rts5208_init() argument
694 rts5288_init(struct rtsx_chip *chip) rts5288_init() argument
754 rtsx_init_chip(struct rtsx_chip *chip) rtsx_init_chip() argument
888 rtsx_release_chip(struct rtsx_chip *chip) rtsx_release_chip() argument
897 rtsx_blink_led(struct rtsx_chip *chip) rtsx_blink_led() argument
910 rtsx_monitor_aspm_config(struct rtsx_chip *chip) rtsx_monitor_aspm_config() argument
959 rtsx_manage_ocp(struct rtsx_chip *chip) rtsx_manage_ocp() argument
978 rtsx_manage_sd_lock(struct rtsx_chip *chip) rtsx_manage_sd_lock() argument
1000 rtsx_is_ss_allowed(struct rtsx_chip *chip) rtsx_is_ss_allowed() argument
1016 rtsx_manage_ss(struct rtsx_chip *chip) rtsx_manage_ss() argument
1032 rtsx_manage_aspm(struct rtsx_chip *chip) rtsx_manage_aspm() argument
1061 rtsx_manage_idle(struct rtsx_chip *chip) rtsx_manage_idle() argument
1085 rtsx_manage_2lun_mode(struct rtsx_chip *chip) rtsx_manage_2lun_mode() argument
1111 rtsx_manage_1lun_mode(struct rtsx_chip *chip) rtsx_manage_1lun_mode() argument
1134 rtsx_delink_stage1(struct rtsx_chip *chip, int enter_L1, int stage3_cnt) rtsx_delink_stage1() argument
1166 rtsx_delink_stage(struct rtsx_chip *chip) rtsx_delink_stage() argument
1205 rtsx_polling_func(struct rtsx_chip *chip) rtsx_polling_func() argument
1270 rtsx_stop_cmd(struct rtsx_chip *chip, int card) rtsx_stop_cmd() argument
1298 rtsx_write_register(struct rtsx_chip *chip, u16 addr, u8 mask, u8 data) rtsx_write_register() argument
1322 rtsx_read_register(struct rtsx_chip *chip, u16 addr, u8 *data) rtsx_read_register() argument
1349 rtsx_write_cfg_dw(struct rtsx_chip *chip, u8 func_no, u16 addr, u32 mask, u32 val) rtsx_write_cfg_dw() argument
1396 rtsx_read_cfg_dw(struct rtsx_chip *chip, u8 func_no, u16 addr, u32 *val) rtsx_read_cfg_dw() argument
1435 rtsx_write_cfg_seq(struct rtsx_chip *chip, u8 func, u16 addr, u8 *buf, int len) rtsx_write_cfg_seq() argument
1495 rtsx_read_cfg_seq(struct rtsx_chip *chip, u8 func, u16 addr, u8 *buf, int len) rtsx_read_cfg_seq() argument
1541 rtsx_write_phy_register(struct rtsx_chip *chip, u8 addr, u16 val) rtsx_write_phy_register() argument
1577 rtsx_read_phy_register(struct rtsx_chip *chip, u8 addr, u16 *val) rtsx_read_phy_register() argument
1620 rtsx_read_efuse(struct rtsx_chip *chip, u8 addr, u8 *val) rtsx_read_efuse() argument
1651 rtsx_write_efuse(struct rtsx_chip *chip, u8 addr, u8 val) rtsx_write_efuse() argument
1690 rtsx_clr_phy_reg_bit(struct rtsx_chip *chip, u8 reg, u8 bit) rtsx_clr_phy_reg_bit() argument
1709 rtsx_set_phy_reg_bit(struct rtsx_chip *chip, u8 reg, u8 bit) rtsx_set_phy_reg_bit() argument
1728 rtsx_handle_pm_dstate(struct rtsx_chip *chip, u8 dstate) rtsx_handle_pm_dstate() argument
1753 rtsx_enter_L1(struct rtsx_chip *chip) rtsx_enter_L1() argument
1758 rtsx_exit_L1(struct rtsx_chip *chip) rtsx_exit_L1() argument
1764 rtsx_enter_ss(struct rtsx_chip *chip) rtsx_enter_ss() argument
1799 rtsx_exit_ss(struct rtsx_chip *chip) rtsx_exit_ss() argument
1820 rtsx_pre_handle_interrupt(struct rtsx_chip *chip) rtsx_pre_handle_interrupt() argument
1911 rtsx_do_before_power_down(struct rtsx_chip *chip, int pm_stat) rtsx_do_before_power_down() argument
1970 rtsx_enable_aspm(struct rtsx_chip *chip) rtsx_enable_aspm() argument
1995 rtsx_disable_aspm(struct rtsx_chip *chip) rtsx_disable_aspm() argument
2016 rtsx_read_ppbuf(struct rtsx_chip *chip, u8 *buf, int buf_len) rtsx_read_ppbuf() argument
2058 rtsx_write_ppbuf(struct rtsx_chip *chip, u8 *buf, int buf_len) rtsx_write_ppbuf() argument
2101 rtsx_check_chip_exist(struct rtsx_chip *chip) rtsx_check_chip_exist() argument
2109 rtsx_force_power_on(struct rtsx_chip *chip, u8 ctl) rtsx_force_power_on() argument
2137 rtsx_force_power_down(struct rtsx_chip *chip, u8 ctl) rtsx_force_power_down() argument
[all...]
H A Drtsx_card.c23 void do_remaining_work(struct rtsx_chip *chip) in do_remaining_work() argument
25 struct sd_info *sd_card = &chip->sd_card; in do_remaining_work()
27 struct xd_info *xd_card = &chip->xd_card; in do_remaining_work()
29 struct ms_info *ms_card = &chip->ms_card; in do_remaining_work()
31 if (chip->card_ready & SD_CARD) { in do_remaining_work()
33 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work()
41 if (chip->card_ready & XD_CARD) { in do_remaining_work()
43 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work()
51 if (chip->card_ready & MS_CARD) { in do_remaining_work()
54 rtsx_set_stat(chip, RTSX_STAT_RU in do_remaining_work()
81 try_to_switch_sdio_ctrl(struct rtsx_chip *chip) try_to_switch_sdio_ctrl() argument
99 dynamic_configure_sdio_aspm(struct rtsx_chip *chip) dynamic_configure_sdio_aspm() argument
138 do_reset_sd_card(struct rtsx_chip *chip) do_reset_sd_card() argument
192 do_reset_xd_card(struct rtsx_chip *chip) do_reset_xd_card() argument
240 do_reset_ms_card(struct rtsx_chip *chip) do_reset_ms_card() argument
288 release_sdio(struct rtsx_chip *chip) release_sdio() argument
308 rtsx_power_off_card(struct rtsx_chip *chip) rtsx_power_off_card() argument
326 rtsx_release_cards(struct rtsx_chip *chip) rtsx_release_cards() argument
349 rtsx_reset_cards(struct rtsx_chip *chip) rtsx_reset_cards() argument
397 rtsx_reinit_cards(struct rtsx_chip *chip, int reset_chip) rtsx_reinit_cards() argument
440 card_cd_debounce(struct rtsx_chip *chip, unsigned long *need_reset, unsigned long *need_release) card_cd_debounce() argument
514 rtsx_init_cards(struct rtsx_chip *chip) rtsx_init_cards() argument
622 switch_ssc_clock(struct rtsx_chip *chip, int clk) switch_ssc_clock() argument
692 switch_normal_clock(struct rtsx_chip *chip, int clk) switch_normal_clock() argument
820 trans_dma_enable(enum dma_data_direction dir, struct rtsx_chip *chip, u32 byte_cnt, u8 pack_size) trans_dma_enable() argument
846 enable_card_clock(struct rtsx_chip *chip, u8 card) enable_card_clock() argument
865 disable_card_clock(struct rtsx_chip *chip, u8 card) disable_card_clock() argument
884 card_power_on(struct rtsx_chip *chip, u8 card) card_power_on() argument
918 card_power_off(struct rtsx_chip *chip, u8 card) card_power_off() argument
938 card_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 sec_addr, u16 sec_cnt) card_rw() argument
977 card_share_mode(struct rtsx_chip *chip, int card) card_share_mode() argument
1015 select_card(struct rtsx_chip *chip, int card) select_card() argument
1046 toggle_gpio(struct rtsx_chip *chip, u8 gpio) toggle_gpio() argument
1055 turn_on_led(struct rtsx_chip *chip, u8 gpio) turn_on_led() argument
1064 turn_off_led(struct rtsx_chip *chip, u8 gpio) turn_off_led() argument
1073 detect_card_cd(struct rtsx_chip *chip, int card) detect_card_cd() argument
1095 check_card_exist(struct rtsx_chip *chip, unsigned int lun) check_card_exist() argument
1103 check_card_ready(struct rtsx_chip *chip, unsigned int lun) check_card_ready() argument
1111 check_card_wp(struct rtsx_chip *chip, unsigned int lun) check_card_wp() argument
1119 get_lun_card(struct rtsx_chip *chip, unsigned int lun) get_lun_card() argument
1131 eject_card(struct rtsx_chip *chip, unsigned int lun) eject_card() argument
[all...]
/kernel/linux/linux-5.10/sound/isa/wss/
H A Dwss_lib.c8 * Yamaha OPL3-SA3 chip
151 static inline void wss_outb(struct snd_wss *chip, u8 offset, u8 val) in wss_outb() argument
153 outb(val, chip->port + offset); in wss_outb()
156 static inline u8 wss_inb(struct snd_wss *chip, u8 offset) in wss_inb() argument
158 return inb(chip->port + offset); in wss_inb()
161 static void snd_wss_wait(struct snd_wss *chip) in snd_wss_wait() argument
166 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_wait()
171 static void snd_wss_dout(struct snd_wss *chip, unsigned char reg, in snd_wss_dout() argument
177 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_dout()
180 wss_outb(chip, CS4231 in snd_wss_dout()
185 snd_wss_out(struct snd_wss *chip, unsigned char reg, unsigned char value) snd_wss_out() argument
202 snd_wss_in(struct snd_wss *chip, unsigned char reg) snd_wss_in() argument
216 snd_cs4236_ext_out(struct snd_wss *chip, unsigned char reg, unsigned char val) snd_cs4236_ext_out() argument
230 snd_cs4236_ext_in(struct snd_wss *chip, unsigned char reg) snd_cs4236_ext_in() argument
346 snd_wss_busy_wait(struct snd_wss *chip) snd_wss_busy_wait() argument
360 snd_wss_mce_up(struct snd_wss *chip) snd_wss_mce_up() argument
385 snd_wss_mce_down(struct snd_wss *chip) snd_wss_mce_down() argument
469 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_trigger() local
529 snd_wss_get_format(struct snd_wss *chip, snd_pcm_format_t format, int channels) snd_wss_get_format() argument
551 snd_wss_calibrate_mute(struct snd_wss *chip, int mute) snd_wss_calibrate_mute() argument
611 snd_wss_playback_format(struct snd_wss *chip, struct snd_pcm_hw_params *params, unsigned char pdfr) snd_wss_playback_format() argument
672 snd_wss_capture_format(struct snd_wss *chip, struct snd_pcm_hw_params *params, unsigned char cdfr) snd_wss_capture_format() argument
745 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_resolution() local
756 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_start() local
779 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_stop() local
788 snd_wss_init(struct snd_wss *chip) snd_wss_init() argument
858 snd_wss_open(struct snd_wss *chip, unsigned int mode) snd_wss_open() argument
900 snd_wss_close(struct snd_wss *chip, unsigned int mode) snd_wss_close() argument
952 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_open() local
959 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_close() local
983 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_hw_params() local
995 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_prepare() local
1018 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_hw_params() local
1030 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_prepare() local
1060 snd_wss_overrange(struct snd_wss *chip) snd_wss_overrange() argument
1075 struct snd_wss *chip = dev_id; snd_wss_interrupt() local
1126 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_pointer() local
1137 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_pointer() local
1150 snd_ad1848_probe(struct snd_wss *chip) snd_ad1848_probe() argument
1232 snd_wss_probe(struct snd_wss *chip) snd_wss_probe() argument
1472 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_open() local
1514 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_open() local
1554 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_close() local
1563 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_close() local
1570 snd_wss_thinkpad_twiddle(struct snd_wss *chip, int on) snd_wss_thinkpad_twiddle() argument
1593 snd_wss_suspend(struct snd_wss *chip) snd_wss_suspend() argument
1607 snd_wss_resume(struct snd_wss *chip) snd_wss_resume() argument
1656 snd_wss_free(struct snd_wss *chip) snd_wss_free() argument
1682 struct snd_wss *chip = device->device_data; snd_wss_dev_free() local
1686 snd_wss_chip_id(struct snd_wss *chip) snd_wss_chip_id() argument
1736 struct snd_wss *chip; snd_wss_new() local
1778 struct snd_wss *chip; snd_wss_create() local
1890 snd_wss_pcm(struct snd_wss *chip, int device) snd_wss_pcm() argument
1921 struct snd_wss *chip = timer->private_data; snd_wss_timer_free() local
1925 snd_wss_timer(struct snd_wss *chip, int device) snd_wss_timer() argument
1965 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_info_mux() local
1986 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_get_mux() local
1999 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_put_mux() local
2036 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_get_single() local
2055 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_put_single() local
2093 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_get_double() local
2117 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_put_double() local
2207 snd_wss_mixer(struct snd_wss *chip) snd_wss_mixer() argument
[all...]
/kernel/linux/linux-6.6/sound/isa/wss/
H A Dwss_lib.c8 * Yamaha OPL3-SA3 chip
151 static inline void wss_outb(struct snd_wss *chip, u8 offset, u8 val) in wss_outb() argument
153 outb(val, chip->port + offset); in wss_outb()
156 static inline u8 wss_inb(struct snd_wss *chip, u8 offset) in wss_inb() argument
158 return inb(chip->port + offset); in wss_inb()
161 static void snd_wss_wait(struct snd_wss *chip) in snd_wss_wait() argument
166 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_wait()
171 static void snd_wss_dout(struct snd_wss *chip, unsigned char reg, in snd_wss_dout() argument
177 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_dout()
180 wss_outb(chip, CS4231 in snd_wss_dout()
185 snd_wss_out(struct snd_wss *chip, unsigned char reg, unsigned char value) snd_wss_out() argument
202 snd_wss_in(struct snd_wss *chip, unsigned char reg) snd_wss_in() argument
216 snd_cs4236_ext_out(struct snd_wss *chip, unsigned char reg, unsigned char val) snd_cs4236_ext_out() argument
230 snd_cs4236_ext_in(struct snd_wss *chip, unsigned char reg) snd_cs4236_ext_in() argument
346 snd_wss_busy_wait(struct snd_wss *chip) snd_wss_busy_wait() argument
360 snd_wss_mce_up(struct snd_wss *chip) snd_wss_mce_up() argument
385 snd_wss_mce_down(struct snd_wss *chip) snd_wss_mce_down() argument
469 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_trigger() local
529 snd_wss_get_format(struct snd_wss *chip, snd_pcm_format_t format, int channels) snd_wss_get_format() argument
551 snd_wss_calibrate_mute(struct snd_wss *chip, int mute) snd_wss_calibrate_mute() argument
611 snd_wss_playback_format(struct snd_wss *chip, struct snd_pcm_hw_params *params, unsigned char pdfr) snd_wss_playback_format() argument
672 snd_wss_capture_format(struct snd_wss *chip, struct snd_pcm_hw_params *params, unsigned char cdfr) snd_wss_capture_format() argument
745 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_resolution() local
756 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_start() local
779 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_stop() local
788 snd_wss_init(struct snd_wss *chip) snd_wss_init() argument
858 snd_wss_open(struct snd_wss *chip, unsigned int mode) snd_wss_open() argument
900 snd_wss_close(struct snd_wss *chip, unsigned int mode) snd_wss_close() argument
952 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_open() local
959 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_close() local
983 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_hw_params() local
995 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_prepare() local
1018 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_hw_params() local
1030 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_prepare() local
1060 snd_wss_overrange(struct snd_wss *chip) snd_wss_overrange() argument
1075 struct snd_wss *chip = dev_id; snd_wss_interrupt() local
1126 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_pointer() local
1137 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_pointer() local
1150 snd_ad1848_probe(struct snd_wss *chip) snd_ad1848_probe() argument
1232 snd_wss_probe(struct snd_wss *chip) snd_wss_probe() argument
1472 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_open() local
1515 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_open() local
1556 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_close() local
1565 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_close() local
1572 snd_wss_thinkpad_twiddle(struct snd_wss *chip, int on) snd_wss_thinkpad_twiddle() argument
1595 snd_wss_suspend(struct snd_wss *chip) snd_wss_suspend() argument
1609 snd_wss_resume(struct snd_wss *chip) snd_wss_resume() argument
1658 snd_wss_chip_id(struct snd_wss *chip) snd_wss_chip_id() argument
1708 struct snd_wss *chip; snd_wss_new() local
1747 struct snd_wss *chip; snd_wss_create() local
1847 snd_wss_pcm(struct snd_wss *chip, int device) snd_wss_pcm() argument
1878 struct snd_wss *chip = timer->private_data; snd_wss_timer_free() local
1882 snd_wss_timer(struct snd_wss *chip, int device) snd_wss_timer() argument
1923 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_info_mux() local
1944 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_get_mux() local
1957 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_put_mux() local
1994 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_get_single() local
2013 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_put_single() local
2051 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_get_double() local
2075 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_put_double() local
2165 snd_wss_mixer(struct snd_wss *chip) snd_wss_mixer() argument
[all...]
/kernel/linux/linux-6.6/drivers/char/tpm/
H A Dtpm-chip.c15 * TPM chip management routines.
40 static int tpm_request_locality(struct tpm_chip *chip) in tpm_request_locality() argument
44 if (!chip->ops->request_locality) in tpm_request_locality()
47 rc = chip->ops->request_locality(chip, 0); in tpm_request_locality()
51 chip->locality = rc; in tpm_request_locality()
55 static void tpm_relinquish_locality(struct tpm_chip *chip) in tpm_relinquish_locality() argument
59 if (!chip->ops->relinquish_locality) in tpm_relinquish_locality()
62 rc = chip->ops->relinquish_locality(chip, chi in tpm_relinquish_locality()
69 tpm_cmd_ready(struct tpm_chip *chip) tpm_cmd_ready() argument
77 tpm_go_idle(struct tpm_chip *chip) tpm_go_idle() argument
85 tpm_clk_enable(struct tpm_chip *chip) tpm_clk_enable() argument
91 tpm_clk_disable(struct tpm_chip *chip) tpm_clk_disable() argument
105 tpm_chip_start(struct tpm_chip *chip) tpm_chip_start() argument
138 tpm_chip_stop(struct tpm_chip *chip) tpm_chip_stop() argument
157 tpm_try_get_ops(struct tpm_chip *chip) tpm_try_get_ops() argument
189 tpm_put_ops(struct tpm_chip *chip) tpm_put_ops() argument
203 struct tpm_chip *chip, *res = NULL; tpm_default_chip() local
240 tpm_find_get_ops(struct tpm_chip *chip) tpm_find_get_ops() argument
269 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); tpm_dev_release() local
292 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); tpm_class_shutdown() local
320 struct tpm_chip *chip; tpm_chip_alloc() local
394 struct tpm_chip *chip; tpmm_chip_alloc() local
413 tpm_add_char_device(struct tpm_chip *chip) tpm_add_char_device() argument
444 tpm_del_char_device(struct tpm_chip *chip) tpm_del_char_device() argument
473 tpm_del_legacy_sysfs(struct tpm_chip *chip) tpm_del_legacy_sysfs() argument
491 tpm_add_legacy_sysfs(struct tpm_chip *chip) tpm_add_legacy_sysfs() argument
520 struct tpm_chip *chip = container_of(rng, struct tpm_chip, hwrng); tpm_hwrng_read() local
529 tpm_is_hwrng_enabled(struct tpm_chip *chip) tpm_is_hwrng_enabled() argument
540 tpm_add_hwrng(struct tpm_chip *chip) tpm_add_hwrng() argument
552 tpm_get_pcr_allocation(struct tpm_chip *chip) tpm_get_pcr_allocation() argument
576 tpm_chip_bootstrap(struct tpm_chip *chip) tpm_chip_bootstrap() argument
616 tpm_chip_register(struct tpm_chip *chip) tpm_chip_register() argument
669 tpm_chip_unregister(struct tpm_chip *chip) tpm_chip_unregister() argument
[all...]
/kernel/linux/linux-6.6/sound/pci/lola/
H A Dlola.c73 static int corb_send_verb(struct lola *chip, unsigned int nid, in corb_send_verb() argument
80 chip->last_cmd_nid = nid; in corb_send_verb()
81 chip->last_verb = verb; in corb_send_verb()
82 chip->last_data = data; in corb_send_verb()
83 chip->last_extdata = extdata; in corb_send_verb()
86 spin_lock_irqsave(&chip->reg_lock, flags); in corb_send_verb()
87 if (chip->rirb.cmds < LOLA_CORB_ENTRIES - 1) { in corb_send_verb()
88 unsigned int wp = chip->corb.wp + 1; in corb_send_verb()
90 chip->corb.wp = wp; in corb_send_verb()
91 chip in corb_send_verb()
102 lola_queue_unsol_event(struct lola *chip, unsigned int res, unsigned int res_ex) lola_queue_unsol_event() argument
109 lola_update_rirb(struct lola *chip) lola_update_rirb() argument
137 rirb_get_response(struct lola *chip, unsigned int *val, unsigned int *extval) rirb_get_response() argument
181 lola_codec_write(struct lola *chip, unsigned int nid, unsigned int verb, unsigned int data, unsigned int extdata) lola_codec_write() argument
190 lola_codec_read(struct lola *chip, unsigned int nid, unsigned int verb, unsigned int data, unsigned int extdata, unsigned int *val, unsigned int *extval) lola_codec_read() argument
206 lola_codec_flush(struct lola *chip) lola_codec_flush() argument
217 struct lola *chip = dev_id; lola_interrupt() local
295 reset_controller(struct lola *chip) reset_controller() argument
322 lola_irq_enable(struct lola *chip) lola_irq_enable() argument
338 lola_irq_disable(struct lola *chip) lola_irq_disable() argument
345 setup_corb_rirb(struct lola *chip) setup_corb_rirb() argument
409 stop_corb_rirb(struct lola *chip) stop_corb_rirb() argument
416 lola_reset_setups(struct lola *chip) lola_reset_setups() argument
432 lola_parse_tree(struct lola *chip) lola_parse_tree() argument
524 lola_stop_hw(struct lola *chip) lola_stop_hw() argument
532 struct lola *chip = card->private_data; lola_free() local
541 struct lola *chip = card->private_data; lola_create() local
645 struct lola *chip; __lola_probe() local
[all...]
/kernel/linux/linux-5.10/drivers/char/tpm/
H A Dtpm-chip.c15 * TPM chip management routines.
35 static int tpm_request_locality(struct tpm_chip *chip) in tpm_request_locality() argument
39 if (!chip->ops->request_locality) in tpm_request_locality()
42 rc = chip->ops->request_locality(chip, 0); in tpm_request_locality()
46 chip->locality = rc; in tpm_request_locality()
50 static void tpm_relinquish_locality(struct tpm_chip *chip) in tpm_relinquish_locality() argument
54 if (!chip->ops->relinquish_locality) in tpm_relinquish_locality()
57 rc = chip->ops->relinquish_locality(chip, chi in tpm_relinquish_locality()
64 tpm_cmd_ready(struct tpm_chip *chip) tpm_cmd_ready() argument
72 tpm_go_idle(struct tpm_chip *chip) tpm_go_idle() argument
80 tpm_clk_enable(struct tpm_chip *chip) tpm_clk_enable() argument
86 tpm_clk_disable(struct tpm_chip *chip) tpm_clk_disable() argument
100 tpm_chip_start(struct tpm_chip *chip) tpm_chip_start() argument
133 tpm_chip_stop(struct tpm_chip *chip) tpm_chip_stop() argument
152 tpm_try_get_ops(struct tpm_chip *chip) tpm_try_get_ops() argument
184 tpm_put_ops(struct tpm_chip *chip) tpm_put_ops() argument
198 struct tpm_chip *chip, *res = NULL; tpm_default_chip() local
235 tpm_find_get_ops(struct tpm_chip *chip) tpm_find_get_ops() argument
264 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); tpm_dev_release() local
288 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); tpm_class_shutdown() local
316 struct tpm_chip *chip; tpm_chip_alloc() local
386 struct tpm_chip *chip; tpmm_chip_alloc() local
405 tpm_add_char_device(struct tpm_chip *chip) tpm_add_char_device() argument
436 tpm_del_char_device(struct tpm_chip *chip) tpm_del_char_device() argument
457 tpm_del_legacy_sysfs(struct tpm_chip *chip) tpm_del_legacy_sysfs() argument
474 tpm_add_legacy_sysfs(struct tpm_chip *chip) tpm_add_legacy_sysfs() argument
502 struct tpm_chip *chip = container_of(rng, struct tpm_chip, hwrng); tpm_hwrng_read() local
507 tpm_add_hwrng(struct tpm_chip *chip) tpm_add_hwrng() argument
519 tpm_get_pcr_allocation(struct tpm_chip *chip) tpm_get_pcr_allocation() argument
544 tpm_chip_register(struct tpm_chip *chip) tpm_chip_register() argument
607 tpm_chip_unregister(struct tpm_chip *chip) tpm_chip_unregister() argument
[all...]
/kernel/linux/linux-5.10/sound/pci/oxygen/
H A Doxygen_lib.c29 static inline int oxygen_uart_input_ready(struct oxygen *chip) in oxygen_uart_input_ready() argument
31 return !(oxygen_read8(chip, OXYGEN_MPU401 + 1) & MPU401_RX_EMPTY); in oxygen_uart_input_ready()
34 static void oxygen_read_uart(struct oxygen *chip) in oxygen_read_uart() argument
36 if (unlikely(!oxygen_uart_input_ready(chip))) { in oxygen_read_uart()
38 oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart()
42 u8 data = oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart()
45 if (chip->uart_input_count >= ARRAY_SIZE(chip->uart_input)) in oxygen_read_uart()
46 chip->uart_input_count = 0; in oxygen_read_uart()
47 chip in oxygen_read_uart()
55 struct oxygen *chip = dev_id; oxygen_interrupt() local
120 struct oxygen *chip = container_of(work, struct oxygen, oxygen_spdif_input_bits_changed() local
181 struct oxygen *chip = container_of(work, struct oxygen, gpio_work); oxygen_gpio_changed() local
190 struct oxygen *chip = entry->private_data; oxygen_proc_read() local
233 oxygen_proc_init(struct oxygen *chip) oxygen_proc_init() argument
239 oxygen_search_pci_id(struct oxygen *chip, const struct pci_device_id ids[]) oxygen_search_pci_id() argument
269 oxygen_restore_eeprom(struct oxygen *chip, const struct pci_device_id *id) oxygen_restore_eeprom() argument
353 oxygen_init(struct oxygen *chip) oxygen_init() argument
558 oxygen_shutdown(struct oxygen *chip) oxygen_shutdown() argument
570 struct oxygen *chip = card->private_data; oxygen_card_free() local
584 oxygen_pci_probe(struct pci_dev *pci, int index, char *id, struct module *owner, const struct pci_device_id *ids, int (*get_model)(struct oxygen *chip, const struct pci_device_id *id ) ) oxygen_pci_probe() argument
593 struct oxygen *chip; oxygen_pci_probe() local
732 struct oxygen *chip = card->private_data; oxygen_pci_suspend() local
767 oxygen_restore_ac97(struct oxygen *chip, unsigned int codec) oxygen_restore_ac97() argument
782 struct oxygen *chip = card->private_data; oxygen_pci_resume() local
811 struct oxygen *chip = card->private_data; oxygen_pci_shutdown() local
[all...]
/kernel/linux/linux-6.6/sound/pci/oxygen/
H A Doxygen_lib.c29 static inline int oxygen_uart_input_ready(struct oxygen *chip) in oxygen_uart_input_ready() argument
31 return !(oxygen_read8(chip, OXYGEN_MPU401 + 1) & MPU401_RX_EMPTY); in oxygen_uart_input_ready()
34 static void oxygen_read_uart(struct oxygen *chip) in oxygen_read_uart() argument
36 if (unlikely(!oxygen_uart_input_ready(chip))) { in oxygen_read_uart()
38 oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart()
42 u8 data = oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart()
45 if (chip->uart_input_count >= ARRAY_SIZE(chip->uart_input)) in oxygen_read_uart()
46 chip->uart_input_count = 0; in oxygen_read_uart()
47 chip in oxygen_read_uart()
55 struct oxygen *chip = dev_id; oxygen_interrupt() local
120 struct oxygen *chip = container_of(work, struct oxygen, oxygen_spdif_input_bits_changed() local
181 struct oxygen *chip = container_of(work, struct oxygen, gpio_work); oxygen_gpio_changed() local
190 struct oxygen *chip = entry->private_data; oxygen_proc_read() local
233 oxygen_proc_init(struct oxygen *chip) oxygen_proc_init() argument
239 oxygen_search_pci_id(struct oxygen *chip, const struct pci_device_id ids[]) oxygen_search_pci_id() argument
269 oxygen_restore_eeprom(struct oxygen *chip, const struct pci_device_id *id) oxygen_restore_eeprom() argument
353 oxygen_init(struct oxygen *chip) oxygen_init() argument
558 oxygen_shutdown(struct oxygen *chip) oxygen_shutdown() argument
570 struct oxygen *chip = card->private_data; oxygen_card_free() local
579 __oxygen_pci_probe(struct pci_dev *pci, int index, char *id, struct module *owner, const struct pci_device_id *ids, int (*get_model)(struct oxygen *chip, const struct pci_device_id *id ) ) __oxygen_pci_probe() argument
588 struct oxygen *chip; __oxygen_pci_probe() local
705 oxygen_pci_probe(struct pci_dev *pci, int index, char *id, struct module *owner, const struct pci_device_id *ids, int (*get_model)(struct oxygen *chip, const struct pci_device_id *id)) oxygen_pci_probe() argument
720 struct oxygen *chip = card->private_data; oxygen_pci_suspend() local
755 oxygen_restore_ac97(struct oxygen *chip, unsigned int codec) oxygen_restore_ac97() argument
770 struct oxygen *chip = card->private_data; oxygen_pci_resume() local
799 struct oxygen *chip = card->private_data; oxygen_pci_shutdown() local
[all...]
/kernel/linux/linux-5.10/sound/pci/echoaudio/
H A Dechoaudio_dsp.c35 static int restore_dsp_rettings(struct echoaudio *chip);
42 static int wait_handshake(struct echoaudio *chip) in wait_handshake() argument
50 if (chip->comm_page->handshake) { in wait_handshake()
56 dev_err(chip->card->dev, "wait_handshake(): Timeout waiting for DSP\n"); in wait_handshake()
66 static int send_vector(struct echoaudio *chip, u32 command) in send_vector() argument
74 if (!(get_dsp_register(chip, CHI32_VECTOR_REG) & in send_vector()
76 set_dsp_register(chip, CHI32_VECTOR_REG, command); in send_vector()
83 dev_err(chip->card->dev, "timeout on send_vector\n"); in send_vector()
91 static int write_dsp(struct echoaudio *chip, u32 data) in write_dsp() argument
96 status = get_dsp_register(chip, CHI32_STATUS_RE in write_dsp()
115 read_dsp(struct echoaudio *chip, u32 *data) read_dsp() argument
145 read_sn(struct echoaudio *chip) read_sn() argument
167 check_asic_status(struct echoaudio *chip) check_asic_status() argument
180 load_asic_generic(struct echoaudio *chip, u32 cmd, short asic) load_asic_generic() argument
227 install_resident_loader(struct echoaudio *chip) install_resident_loader() argument
335 load_dsp(struct echoaudio *chip, u16 *code) load_dsp() argument
488 load_firmware(struct echoaudio *chip) load_firmware() argument
528 set_nominal_level(struct echoaudio *chip, u16 index, char consumer) set_nominal_level() argument
552 set_output_gain(struct echoaudio *chip, u16 channel, s8 gain) set_output_gain() argument
570 set_monitor_gain(struct echoaudio *chip, u16 output, u16 input, s8 gain) set_monitor_gain() argument
588 update_output_line_level(struct echoaudio *chip) update_output_line_level() argument
599 update_input_line_level(struct echoaudio *chip) update_input_line_level() argument
611 set_meters_on(struct echoaudio *chip, char on) set_meters_on() argument
636 get_audio_meters(struct echoaudio *chip, long *meters) get_audio_meters() argument
666 restore_dsp_rettings(struct echoaudio *chip) restore_dsp_rettings() argument
777 set_audio_format(struct echoaudio *chip, u16 pipe_index, const struct audioformat *format) set_audio_format() argument
855 start_transport(struct echoaudio *chip, u32 channel_mask, u32 cyclic_mask) start_transport() argument
881 pause_transport(struct echoaudio *chip, u32 channel_mask) pause_transport() argument
907 stop_transport(struct echoaudio *chip, u32 channel_mask) stop_transport() argument
933 is_pipe_allocated(struct echoaudio *chip, u16 pipe_index) is_pipe_allocated() argument
942 rest_in_peace(struct echoaudio *chip) rest_in_peace() argument
967 init_dsp_comm_page(struct echoaudio *chip) init_dsp_comm_page() argument
1004 init_line_levels(struct echoaudio *chip) init_line_levels() argument
1021 service_irq(struct echoaudio *chip) service_irq() argument
1050 allocate_pipes(struct echoaudio *chip, struct audiopipe *pipe, int pipe_index, int interleave) allocate_pipes() argument
1088 free_pipes(struct echoaudio *chip, struct audiopipe *pipe) free_pipes() argument
1112 sglist_init(struct echoaudio *chip, struct audiopipe *pipe) sglist_init() argument
1123 sglist_add_mapping(struct echoaudio *chip, struct audiopipe *pipe, dma_addr_t address, size_t length) sglist_add_mapping() argument
1142 sglist_add_irq(struct echoaudio *chip, struct audiopipe *pipe) sglist_add_irq() argument
1149 sglist_wrap(struct echoaudio *chip, struct audiopipe *pipe) sglist_wrap() argument
[all...]
/kernel/linux/linux-6.6/sound/pci/echoaudio/
H A Dechoaudio_dsp.c35 static int restore_dsp_rettings(struct echoaudio *chip);
42 static int wait_handshake(struct echoaudio *chip) in wait_handshake() argument
50 if (chip->comm_page->handshake) { in wait_handshake()
56 dev_err(chip->card->dev, "wait_handshake(): Timeout waiting for DSP\n"); in wait_handshake()
66 static int send_vector(struct echoaudio *chip, u32 command) in send_vector() argument
74 if (!(get_dsp_register(chip, CHI32_VECTOR_REG) & in send_vector()
76 set_dsp_register(chip, CHI32_VECTOR_REG, command); in send_vector()
83 dev_err(chip->card->dev, "timeout on send_vector\n"); in send_vector()
91 static int write_dsp(struct echoaudio *chip, u32 data) in write_dsp() argument
96 status = get_dsp_register(chip, CHI32_STATUS_RE in write_dsp()
115 read_dsp(struct echoaudio *chip, u32 *data) read_dsp() argument
145 read_sn(struct echoaudio *chip) read_sn() argument
167 check_asic_status(struct echoaudio *chip) check_asic_status() argument
180 load_asic_generic(struct echoaudio *chip, u32 cmd, short asic) load_asic_generic() argument
227 install_resident_loader(struct echoaudio *chip) install_resident_loader() argument
335 load_dsp(struct echoaudio *chip, u16 *code) load_dsp() argument
489 load_firmware(struct echoaudio *chip) load_firmware() argument
531 set_nominal_level(struct echoaudio *chip, u16 index, char consumer) set_nominal_level() argument
555 set_output_gain(struct echoaudio *chip, u16 channel, s8 gain) set_output_gain() argument
573 set_monitor_gain(struct echoaudio *chip, u16 output, u16 input, s8 gain) set_monitor_gain() argument
591 update_output_line_level(struct echoaudio *chip) update_output_line_level() argument
602 update_input_line_level(struct echoaudio *chip) update_input_line_level() argument
614 set_meters_on(struct echoaudio *chip, char on) set_meters_on() argument
639 get_audio_meters(struct echoaudio *chip, long *meters) get_audio_meters() argument
669 restore_dsp_rettings(struct echoaudio *chip) restore_dsp_rettings() argument
781 set_audio_format(struct echoaudio *chip, u16 pipe_index, const struct audioformat *format) set_audio_format() argument
859 start_transport(struct echoaudio *chip, u32 channel_mask, u32 cyclic_mask) start_transport() argument
885 pause_transport(struct echoaudio *chip, u32 channel_mask) pause_transport() argument
911 stop_transport(struct echoaudio *chip, u32 channel_mask) stop_transport() argument
937 is_pipe_allocated(struct echoaudio *chip, u16 pipe_index) is_pipe_allocated() argument
946 rest_in_peace(struct echoaudio *chip) rest_in_peace() argument
971 init_dsp_comm_page(struct echoaudio *chip) init_dsp_comm_page() argument
1008 init_line_levels(struct echoaudio *chip) init_line_levels() argument
1025 service_irq(struct echoaudio *chip) service_irq() argument
1054 allocate_pipes(struct echoaudio *chip, struct audiopipe *pipe, int pipe_index, int interleave) allocate_pipes() argument
1092 free_pipes(struct echoaudio *chip, struct audiopipe *pipe) free_pipes() argument
1116 sglist_init(struct echoaudio *chip, struct audiopipe *pipe) sglist_init() argument
1127 sglist_add_mapping(struct echoaudio *chip, struct audiopipe *pipe, dma_addr_t address, size_t length) sglist_add_mapping() argument
1146 sglist_add_irq(struct echoaudio *chip, struct audiopipe *pipe) sglist_add_irq() argument
1153 sglist_wrap(struct echoaudio *chip, struct audiopipe *pipe) sglist_wrap() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/dsa/mv88e6xxx/
H A Dglobal2.c15 #include "chip.h"
19 int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g2_read() argument
21 return mv88e6xxx_read(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_read()
24 int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g2_write() argument
26 return mv88e6xxx_write(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_write()
29 int mv88e6xxx_g2_wait_bit(struct mv88e6xxx_chip *chip, int reg, int in mv88e6xxx_g2_wait_bit() argument
32 return mv88e6xxx_wait_bit(chip, chip in mv88e6xxx_g2_wait_bit()
38 mv88e6xxx_g2_int_source(struct mv88e6xxx_chip *chip, u16 *src) mv88e6xxx_g2_int_source() argument
46 mv88e6xxx_g2_int_mask(struct mv88e6xxx_chip *chip, u16 mask) mv88e6xxx_g2_int_mask() argument
53 mv88e6xxx_g2_mgmt_enable_2x(struct mv88e6xxx_chip *chip, u16 en2x) mv88e6xxx_g2_mgmt_enable_2x() argument
60 mv88e6xxx_g2_mgmt_enable_0x(struct mv88e6xxx_chip *chip, u16 en0x) mv88e6xxx_g2_mgmt_enable_0x() argument
67 mv88e6xxx_g2_switch_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip, bool enable) mv88e6xxx_g2_switch_mgmt_rsvd2cpu() argument
85 mv88e6185_g2_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip) mv88e6185_g2_mgmt_rsvd2cpu() argument
99 mv88e6352_g2_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip) mv88e6352_g2_mgmt_rsvd2cpu() argument
115 mv88e6xxx_g2_device_mapping_write(struct mv88e6xxx_chip *chip, int target, int port) mv88e6xxx_g2_device_mapping_write() argument
129 mv88e6xxx_g2_trunk_mask_write(struct mv88e6xxx_chip *chip, int num, bool hash, u16 mask) mv88e6xxx_g2_trunk_mask_write() argument
143 mv88e6xxx_g2_trunk_mapping_write(struct mv88e6xxx_chip *chip, int id, u16 map) mv88e6xxx_g2_trunk_mapping_write() argument
153 mv88e6xxx_g2_trunk_clear(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_trunk_clear() argument
179 mv88e6xxx_g2_irl_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_irl_wait() argument
186 mv88e6xxx_g2_irl_op(struct mv88e6xxx_chip *chip, u16 op, int port, int res, int reg) mv88e6xxx_g2_irl_op() argument
200 mv88e6352_g2_irl_init_all(struct mv88e6xxx_chip *chip, int port) mv88e6352_g2_irl_init_all() argument
206 mv88e6390_g2_irl_init_all(struct mv88e6xxx_chip *chip, int port) mv88e6390_g2_irl_init_all() argument
216 mv88e6xxx_g2_pvt_op_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_pvt_op_wait() argument
223 mv88e6xxx_g2_pvt_op(struct mv88e6xxx_chip *chip, int src_dev, int src_port, u16 op) mv88e6xxx_g2_pvt_op() argument
242 mv88e6xxx_g2_pvt_read(struct mv88e6xxx_chip *chip, int src_dev, int src_port, u16 *data) mv88e6xxx_g2_pvt_read() argument
259 mv88e6xxx_g2_pvt_write(struct mv88e6xxx_chip *chip, int src_dev, int src_port, u16 data) mv88e6xxx_g2_pvt_write() argument
278 mv88e6xxx_g2_switch_mac_write(struct mv88e6xxx_chip *chip, unsigned int pointer, u8 data) mv88e6xxx_g2_switch_mac_write() argument
287 mv88e6xxx_g2_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr) mv88e6xxx_g2_set_switch_mac() argument
302 mv88e6xxx_g2_atu_stats_set(struct mv88e6xxx_chip *chip, u16 kind, u16 bin) mv88e6xxx_g2_atu_stats_set() argument
308 mv88e6xxx_g2_atu_stats_get(struct mv88e6xxx_chip *chip, u16 *stats) mv88e6xxx_g2_atu_stats_get() argument
315 mv88e6xxx_g2_pot_write(struct mv88e6xxx_chip *chip, int pointer, u8 data) mv88e6xxx_g2_pot_write() argument
324 mv88e6xxx_g2_pot_clear(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_pot_clear() argument
343 mv88e6xxx_g2_eeprom_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_eeprom_wait() argument
357 mv88e6xxx_g2_eeprom_cmd(struct mv88e6xxx_chip *chip, u16 cmd) mv88e6xxx_g2_eeprom_cmd() argument
369 mv88e6xxx_g2_eeprom_read8(struct mv88e6xxx_chip *chip, u16 addr, u8 *data) mv88e6xxx_g2_eeprom_read8() argument
396 mv88e6xxx_g2_eeprom_write8(struct mv88e6xxx_chip *chip, u16 addr, u8 data) mv88e6xxx_g2_eeprom_write8() argument
414 mv88e6xxx_g2_eeprom_read16(struct mv88e6xxx_chip *chip, u8 addr, u16 *data) mv88e6xxx_g2_eeprom_read16() argument
431 mv88e6xxx_g2_eeprom_write16(struct mv88e6xxx_chip *chip, u8 addr, u16 data) mv88e6xxx_g2_eeprom_write16() argument
448 mv88e6xxx_g2_get_eeprom8(struct mv88e6xxx_chip *chip, struct ethtool_eeprom *eeprom, u8 *data) mv88e6xxx_g2_get_eeprom8() argument
471 mv88e6xxx_g2_set_eeprom8(struct mv88e6xxx_chip *chip, struct ethtool_eeprom *eeprom, u8 *data) mv88e6xxx_g2_set_eeprom8() argument
494 mv88e6xxx_g2_get_eeprom16(struct mv88e6xxx_chip *chip, struct ethtool_eeprom *eeprom, u8 *data) mv88e6xxx_g2_get_eeprom16() argument
544 mv88e6xxx_g2_set_eeprom16(struct mv88e6xxx_chip *chip, struct ethtool_eeprom *eeprom, u8 *data) mv88e6xxx_g2_set_eeprom16() argument
614 mv88e6xxx_g2_smi_phy_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_smi_phy_wait() argument
621 mv88e6xxx_g2_smi_phy_cmd(struct mv88e6xxx_chip *chip, u16 cmd) mv88e6xxx_g2_smi_phy_cmd() argument
633 mv88e6xxx_g2_smi_phy_access(struct mv88e6xxx_chip *chip, bool external, bool c45, u16 op, int dev, int reg) mv88e6xxx_g2_smi_phy_access() argument
656 mv88e6xxx_g2_smi_phy_access_c22(struct mv88e6xxx_chip *chip, bool external, u16 op, int dev, int reg) mv88e6xxx_g2_smi_phy_access_c22() argument
664 mv88e6xxx_g2_smi_phy_read_data_c22(struct mv88e6xxx_chip *chip, bool external, int dev, int reg, u16 *data) mv88e6xxx_g2_smi_phy_read_data_c22() argument
683 mv88e6xxx_g2_smi_phy_write_data_c22(struct mv88e6xxx_chip *chip, bool external, int dev, int reg, u16 data) mv88e6xxx_g2_smi_phy_write_data_c22() argument
701 mv88e6xxx_g2_smi_phy_access_c45(struct mv88e6xxx_chip *chip, bool external, u16 op, int port, int dev) mv88e6xxx_g2_smi_phy_access_c45() argument
709 mv88e6xxx_g2_smi_phy_write_addr_c45(struct mv88e6xxx_chip *chip, bool external, int port, int dev, int addr) mv88e6xxx_g2_smi_phy_write_addr_c45() argument
728 mv88e6xxx_g2_smi_phy_read_data_c45(struct mv88e6xxx_chip *chip, bool external, int port, int dev, u16 *data) mv88e6xxx_g2_smi_phy_read_data_c45() argument
742 _mv88e6xxx_g2_smi_phy_read_c45(struct mv88e6xxx_chip *chip, bool external, int port, int devad, int reg, u16 *data) _mv88e6xxx_g2_smi_phy_read_c45() argument
758 mv88e6xxx_g2_smi_phy_write_data_c45(struct mv88e6xxx_chip *chip, bool external, int port, int dev, u16 data) mv88e6xxx_g2_smi_phy_write_data_c45() argument
772 _mv88e6xxx_g2_smi_phy_write_c45(struct mv88e6xxx_chip *chip, bool external, int port, int devad, int reg, u16 data) _mv88e6xxx_g2_smi_phy_write_c45() argument
787 mv88e6xxx_g2_smi_phy_read_c22(struct mv88e6xxx_chip *chip, struct mii_bus *bus, int addr, int reg, u16 *val) mv88e6xxx_g2_smi_phy_read_c22() argument
798 mv88e6xxx_g2_smi_phy_read_c45(struct mv88e6xxx_chip *chip, struct mii_bus *bus, int addr, int devad, int reg, u16 *val) mv88e6xxx_g2_smi_phy_read_c45() argument
809 mv88e6xxx_g2_smi_phy_write_c22(struct mv88e6xxx_chip *chip, struct mii_bus *bus, int addr, int reg, u16 val) mv88e6xxx_g2_smi_phy_write_c22() argument
820 mv88e6xxx_g2_smi_phy_write_c45(struct mv88e6xxx_chip *chip, struct mii_bus *bus, int addr, int devad, int reg, u16 val) mv88e6xxx_g2_smi_phy_write_c45() argument
832 mv88e6097_watchdog_action(struct mv88e6xxx_chip *chip, int irq) mv88e6097_watchdog_action() argument
843 mv88e6097_watchdog_free(struct mv88e6xxx_chip *chip) mv88e6097_watchdog_free() argument
855 mv88e6097_watchdog_setup(struct mv88e6xxx_chip *chip) mv88e6097_watchdog_setup() argument
869 mv88e6250_watchdog_free(struct mv88e6xxx_chip *chip) mv88e6250_watchdog_free() argument
881 mv88e6250_watchdog_setup(struct mv88e6xxx_chip *chip) mv88e6250_watchdog_setup() argument
895 mv88e6390_watchdog_setup(struct mv88e6xxx_chip *chip) mv88e6390_watchdog_setup() argument
906 mv88e6390_watchdog_action(struct mv88e6xxx_chip *chip, int irq) mv88e6390_watchdog_action() argument
933 mv88e6390_watchdog_free(struct mv88e6xxx_chip *chip) mv88e6390_watchdog_free() argument
946 mv88e6393x_watchdog_action(struct mv88e6xxx_chip *chip, int irq) mv88e6393x_watchdog_action() argument
968 struct mv88e6xxx_chip *chip = dev_id; mv88e6xxx_g2_watchdog_thread_fn() local
979 mv88e6xxx_g2_watchdog_free(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_watchdog_free() argument
990 mv88e6xxx_g2_watchdog_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_watchdog_setup() argument
1019 mv88e6xxx_g2_misc_5_bit_port(struct mv88e6xxx_chip *chip, bool port_5_bit) mv88e6xxx_g2_misc_5_bit_port() argument
1037 mv88e6xxx_g2_misc_4_bit_port(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_misc_4_bit_port() argument
1044 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_g2_irq_mask() local
1052 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_g2_irq_unmask() local
1060 struct mv88e6xxx_chip *chip = dev_id; mv88e6xxx_g2_irq_thread_fn() local
1086 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_g2_irq_bus_lock() local
1093 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_g2_irq_bus_sync_unlock() local
1115 struct mv88e6xxx_chip *chip = d->host_data; mv88e6xxx_g2_irq_domain_map() local
1129 mv88e6xxx_g2_irq_free(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_irq_free() argument
1146 mv88e6xxx_g2_irq_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_irq_setup() argument
1196 mv88e6xxx_g2_irq_mdio_setup(struct mv88e6xxx_chip *chip, struct mii_bus *bus) mv88e6xxx_g2_irq_mdio_setup() argument
1214 mv88e6xxx_g2_irq_mdio_free(struct mv88e6xxx_chip *chip, struct mii_bus *bus) mv88e6xxx_g2_irq_mdio_free() argument
[all...]
H A Dphy.c13 #include "chip.h"
16 int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_read() argument
19 return mv88e6xxx_read(chip, addr, reg, val); in mv88e6165_phy_read()
22 int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_write() argument
25 return mv88e6xxx_write(chip, addr, reg, val); in mv88e6165_phy_write()
28 int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy, int reg, u16 *val) in mv88e6xxx_phy_read() argument
33 bus = mv88e6xxx_default_mdio_bus(chip); in mv88e6xxx_phy_read()
37 if (!chip->info->ops->phy_read) in mv88e6xxx_phy_read()
40 return chip->info->ops->phy_read(chip, bu in mv88e6xxx_phy_read()
43 mv88e6xxx_phy_write(struct mv88e6xxx_chip *chip, int phy, int reg, u16 val) mv88e6xxx_phy_write() argument
58 mv88e6xxx_phy_read_c45(struct mv88e6xxx_chip *chip, int phy, int devad, int reg, u16 *val) mv88e6xxx_phy_read_c45() argument
74 mv88e6xxx_phy_write_c45(struct mv88e6xxx_chip *chip, int phy, int devad, int reg, u16 val) mv88e6xxx_phy_write_c45() argument
90 mv88e6xxx_phy_page_get(struct mv88e6xxx_chip *chip, int phy, u8 page) mv88e6xxx_phy_page_get() argument
95 mv88e6xxx_phy_page_put(struct mv88e6xxx_chip *chip, int phy) mv88e6xxx_phy_page_put() argument
111 mv88e6xxx_phy_page_read(struct mv88e6xxx_chip *chip, int phy, u8 page, int reg, u16 *val) mv88e6xxx_phy_page_read() argument
129 mv88e6xxx_phy_page_write(struct mv88e6xxx_chip *chip, int phy, u8 page, int reg, u16 val) mv88e6xxx_phy_page_write() argument
150 mv88e6xxx_phy_ppu_disable(struct mv88e6xxx_chip *chip) mv88e6xxx_phy_ppu_disable() argument
158 mv88e6xxx_phy_ppu_enable(struct mv88e6xxx_chip *chip) mv88e6xxx_phy_ppu_enable() argument
168 struct mv88e6xxx_chip *chip; mv88e6xxx_phy_ppu_reenable_work() local
185 struct mv88e6xxx_chip *chip = from_timer(chip, t, ppu_timer); mv88e6xxx_phy_ppu_reenable_timer() local
190 mv88e6xxx_phy_ppu_access_get(struct mv88e6xxx_chip *chip) mv88e6xxx_phy_ppu_access_get() argument
216 mv88e6xxx_phy_ppu_access_put(struct mv88e6xxx_chip *chip) mv88e6xxx_phy_ppu_access_put() argument
223 mv88e6xxx_phy_ppu_state_init(struct mv88e6xxx_chip *chip) mv88e6xxx_phy_ppu_state_init() argument
230 mv88e6xxx_phy_ppu_state_destroy(struct mv88e6xxx_chip *chip) mv88e6xxx_phy_ppu_state_destroy() argument
235 mv88e6185_phy_ppu_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, int addr, int reg, u16 *val) mv88e6185_phy_ppu_read() argument
249 mv88e6185_phy_ppu_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, int addr, int reg, u16 val) mv88e6185_phy_ppu_write() argument
263 mv88e6xxx_phy_init(struct mv88e6xxx_chip *chip) mv88e6xxx_phy_init() argument
269 mv88e6xxx_phy_destroy(struct mv88e6xxx_chip *chip) mv88e6xxx_phy_destroy() argument
275 mv88e6xxx_phy_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_phy_setup() argument
[all...]
/kernel/linux/linux-5.10/sound/ppc/
H A Dpmac.c50 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) in snd_pmac_dbdma_alloc() argument
54 rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, in snd_pmac_dbdma_alloc()
66 static void snd_pmac_dbdma_free(struct snd_pmac *chip, struct pmac_dbdma *rec) in snd_pmac_dbdma_free() argument
71 dma_free_coherent(&chip->pdev->dev, rsize, rec->space, rec->dma_base); in snd_pmac_dbdma_free()
84 unsigned int snd_pmac_rate_index(struct snd_pmac *chip, struct pmac_stream *rec, unsigned int rate) in snd_pmac_rate_index() argument
89 if (rate > chip->freq_table[0]) in snd_pmac_rate_index()
92 for (i = 0; i < chip->num_freqs; i++, ok >>= 1) { in snd_pmac_rate_index()
95 if (rate >= chip->freq_table[i]) in snd_pmac_rate_index()
113 static struct pmac_stream *snd_pmac_get_stream(struct snd_pmac *chip, int stream) in snd_pmac_get_stream() argument
117 return &chip in snd_pmac_get_stream()
141 snd_pmac_pcm_set_format(struct snd_pmac *chip) snd_pmac_pcm_set_format() argument
179 snd_pmac_pcm_prepare(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) snd_pmac_pcm_prepare() argument
243 snd_pmac_pcm_trigger(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs, int cmd) snd_pmac_pcm_trigger() argument
290 snd_pmac_pcm_pointer(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) snd_pmac_pcm_pointer() argument
317 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_prepare() local
324 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_trigger() local
330 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_pointer() local
341 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_prepare() local
348 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_trigger() local
354 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_pointer() local
431 snd_pmac_pcm_update(struct snd_pmac *chip, struct pmac_stream *rec) snd_pmac_pcm_update() argument
553 snd_pmac_pcm_open(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) snd_pmac_pcm_open() argument
602 snd_pmac_pcm_close(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) snd_pmac_pcm_close() argument
622 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_open() local
630 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_open() local
638 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_close() local
645 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_close() local
669 snd_pmac_pcm_new(struct snd_pmac *chip) snd_pmac_pcm_new() argument
708 snd_pmac_dbdma_reset(struct snd_pmac *chip) snd_pmac_dbdma_reset() argument
720 snd_pmac_beep_dma_start(struct snd_pmac *chip, int bytes, unsigned long addr, int speed) snd_pmac_beep_dma_start() argument
738 snd_pmac_beep_dma_stop(struct snd_pmac *chip) snd_pmac_beep_dma_stop() argument
752 struct snd_pmac *chip = devid; snd_pmac_tx_intr() local
761 struct snd_pmac *chip = devid; snd_pmac_rx_intr() local
770 struct snd_pmac *chip = devid; snd_pmac_ctrl_intr() local
793 snd_pmac_sound_feature(struct snd_pmac *chip, int enable) snd_pmac_sound_feature() argument
803 snd_pmac_free(struct snd_pmac *chip) snd_pmac_free() argument
859 struct snd_pmac *chip = device->device_data; snd_pmac_dev_free() local
868 detect_byte_swap(struct snd_pmac *chip) detect_byte_swap() argument
894 snd_pmac_detect(struct snd_pmac *chip) snd_pmac_detect() argument
1078 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); pmac_auto_mute_get() local
1086 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); pmac_auto_mute_put() local
1099 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); pmac_hp_detect_get() local
1122 snd_pmac_add_automute(struct snd_pmac *chip) snd_pmac_add_automute() argument
1141 struct snd_pmac *chip; snd_pmac_new() local
1324 snd_pmac_suspend(struct snd_pmac *chip) snd_pmac_suspend() argument
1343 snd_pmac_resume(struct snd_pmac *chip) snd_pmac_resume() argument
[all...]
/kernel/linux/linux-6.6/sound/ppc/
H A Dpmac.c50 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) in snd_pmac_dbdma_alloc() argument
54 rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, in snd_pmac_dbdma_alloc()
66 static void snd_pmac_dbdma_free(struct snd_pmac *chip, struct pmac_dbdma *rec) in snd_pmac_dbdma_free() argument
71 dma_free_coherent(&chip->pdev->dev, rsize, rec->space, rec->dma_base); in snd_pmac_dbdma_free()
84 unsigned int snd_pmac_rate_index(struct snd_pmac *chip, struct pmac_stream *rec, unsigned int rate) in snd_pmac_rate_index() argument
89 if (rate > chip->freq_table[0]) in snd_pmac_rate_index()
92 for (i = 0; i < chip->num_freqs; i++, ok >>= 1) { in snd_pmac_rate_index()
95 if (rate >= chip->freq_table[i]) in snd_pmac_rate_index()
113 static struct pmac_stream *snd_pmac_get_stream(struct snd_pmac *chip, int stream) in snd_pmac_get_stream() argument
117 return &chip in snd_pmac_get_stream()
141 snd_pmac_pcm_set_format(struct snd_pmac *chip) snd_pmac_pcm_set_format() argument
179 snd_pmac_pcm_prepare(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) snd_pmac_pcm_prepare() argument
243 snd_pmac_pcm_trigger(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs, int cmd) snd_pmac_pcm_trigger() argument
290 snd_pmac_pcm_pointer(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) snd_pmac_pcm_pointer() argument
317 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_prepare() local
324 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_trigger() local
330 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_pointer() local
341 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_prepare() local
348 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_trigger() local
354 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_pointer() local
431 snd_pmac_pcm_update(struct snd_pmac *chip, struct pmac_stream *rec) snd_pmac_pcm_update() argument
553 snd_pmac_pcm_open(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) snd_pmac_pcm_open() argument
602 snd_pmac_pcm_close(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_substream *subs) snd_pmac_pcm_close() argument
622 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_open() local
630 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_open() local
638 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_close() local
645 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_close() local
669 snd_pmac_pcm_new(struct snd_pmac *chip) snd_pmac_pcm_new() argument
708 snd_pmac_dbdma_reset(struct snd_pmac *chip) snd_pmac_dbdma_reset() argument
720 snd_pmac_beep_dma_start(struct snd_pmac *chip, int bytes, unsigned long addr, int speed) snd_pmac_beep_dma_start() argument
738 snd_pmac_beep_dma_stop(struct snd_pmac *chip) snd_pmac_beep_dma_stop() argument
752 struct snd_pmac *chip = devid; snd_pmac_tx_intr() local
761 struct snd_pmac *chip = devid; snd_pmac_rx_intr() local
770 struct snd_pmac *chip = devid; snd_pmac_ctrl_intr() local
793 snd_pmac_sound_feature(struct snd_pmac *chip, int enable) snd_pmac_sound_feature() argument
803 snd_pmac_free(struct snd_pmac *chip) snd_pmac_free() argument
859 struct snd_pmac *chip = device->device_data; snd_pmac_dev_free() local
868 detect_byte_swap(struct snd_pmac *chip) detect_byte_swap() argument
894 snd_pmac_detect(struct snd_pmac *chip) snd_pmac_detect() argument
1078 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); pmac_auto_mute_get() local
1086 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); pmac_auto_mute_put() local
1099 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); pmac_hp_detect_get() local
1122 snd_pmac_add_automute(struct snd_pmac *chip) snd_pmac_add_automute() argument
1141 struct snd_pmac *chip; snd_pmac_new() local
1326 snd_pmac_suspend(struct snd_pmac *chip) snd_pmac_suspend() argument
1345 snd_pmac_resume(struct snd_pmac *chip) snd_pmac_resume() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/
H A Dglobal2.c15 #include "chip.h"
19 int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g2_read() argument
21 return mv88e6xxx_read(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_read()
24 int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g2_write() argument
26 return mv88e6xxx_write(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_write()
29 int mv88e6xxx_g2_wait_bit(struct mv88e6xxx_chip *chip, int reg, int in mv88e6xxx_g2_wait_bit() argument
32 return mv88e6xxx_wait_bit(chip, chip in mv88e6xxx_g2_wait_bit()
38 mv88e6xxx_g2_int_source(struct mv88e6xxx_chip *chip, u16 *src) mv88e6xxx_g2_int_source() argument
46 mv88e6xxx_g2_int_mask(struct mv88e6xxx_chip *chip, u16 mask) mv88e6xxx_g2_int_mask() argument
53 mv88e6xxx_g2_mgmt_enable_2x(struct mv88e6xxx_chip *chip, u16 en2x) mv88e6xxx_g2_mgmt_enable_2x() argument
60 mv88e6xxx_g2_mgmt_enable_0x(struct mv88e6xxx_chip *chip, u16 en0x) mv88e6xxx_g2_mgmt_enable_0x() argument
67 mv88e6xxx_g2_switch_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip, bool enable) mv88e6xxx_g2_switch_mgmt_rsvd2cpu() argument
85 mv88e6185_g2_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip) mv88e6185_g2_mgmt_rsvd2cpu() argument
99 mv88e6352_g2_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip) mv88e6352_g2_mgmt_rsvd2cpu() argument
115 mv88e6xxx_g2_device_mapping_write(struct mv88e6xxx_chip *chip, int target, int port) mv88e6xxx_g2_device_mapping_write() argument
129 mv88e6xxx_g2_trunk_mask_write(struct mv88e6xxx_chip *chip, int num, bool hash, u16 mask) mv88e6xxx_g2_trunk_mask_write() argument
143 mv88e6xxx_g2_trunk_mapping_write(struct mv88e6xxx_chip *chip, int id, u16 map) mv88e6xxx_g2_trunk_mapping_write() argument
153 mv88e6xxx_g2_trunk_clear(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_trunk_clear() argument
179 mv88e6xxx_g2_irl_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_irl_wait() argument
186 mv88e6xxx_g2_irl_op(struct mv88e6xxx_chip *chip, u16 op, int port, int res, int reg) mv88e6xxx_g2_irl_op() argument
200 mv88e6352_g2_irl_init_all(struct mv88e6xxx_chip *chip, int port) mv88e6352_g2_irl_init_all() argument
206 mv88e6390_g2_irl_init_all(struct mv88e6xxx_chip *chip, int port) mv88e6390_g2_irl_init_all() argument
216 mv88e6xxx_g2_pvt_op_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_pvt_op_wait() argument
223 mv88e6xxx_g2_pvt_op(struct mv88e6xxx_chip *chip, int src_dev, int src_port, u16 op) mv88e6xxx_g2_pvt_op() argument
242 mv88e6xxx_g2_pvt_write(struct mv88e6xxx_chip *chip, int src_dev, int src_port, u16 data) mv88e6xxx_g2_pvt_write() argument
261 mv88e6xxx_g2_switch_mac_write(struct mv88e6xxx_chip *chip, unsigned int pointer, u8 data) mv88e6xxx_g2_switch_mac_write() argument
270 mv88e6xxx_g2_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr) mv88e6xxx_g2_set_switch_mac() argument
285 mv88e6xxx_g2_atu_stats_set(struct mv88e6xxx_chip *chip, u16 kind, u16 bin) mv88e6xxx_g2_atu_stats_set() argument
291 mv88e6xxx_g2_atu_stats_get(struct mv88e6xxx_chip *chip, u16 *stats) mv88e6xxx_g2_atu_stats_get() argument
298 mv88e6xxx_g2_pot_write(struct mv88e6xxx_chip *chip, int pointer, u8 data) mv88e6xxx_g2_pot_write() argument
307 mv88e6xxx_g2_pot_clear(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_pot_clear() argument
326 mv88e6xxx_g2_eeprom_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_eeprom_wait() argument
340 mv88e6xxx_g2_eeprom_cmd(struct mv88e6xxx_chip *chip, u16 cmd) mv88e6xxx_g2_eeprom_cmd() argument
352 mv88e6xxx_g2_eeprom_read8(struct mv88e6xxx_chip *chip, u16 addr, u8 *data) mv88e6xxx_g2_eeprom_read8() argument
379 mv88e6xxx_g2_eeprom_write8(struct mv88e6xxx_chip *chip, u16 addr, u8 data) mv88e6xxx_g2_eeprom_write8() argument
397 mv88e6xxx_g2_eeprom_read16(struct mv88e6xxx_chip *chip, u8 addr, u16 *data) mv88e6xxx_g2_eeprom_read16() argument
414 mv88e6xxx_g2_eeprom_write16(struct mv88e6xxx_chip *chip, u8 addr, u16 data) mv88e6xxx_g2_eeprom_write16() argument
431 mv88e6xxx_g2_get_eeprom8(struct mv88e6xxx_chip *chip, struct ethtool_eeprom *eeprom, u8 *data) mv88e6xxx_g2_get_eeprom8() argument
454 mv88e6xxx_g2_set_eeprom8(struct mv88e6xxx_chip *chip, struct ethtool_eeprom *eeprom, u8 *data) mv88e6xxx_g2_set_eeprom8() argument
477 mv88e6xxx_g2_get_eeprom16(struct mv88e6xxx_chip *chip, struct ethtool_eeprom *eeprom, u8 *data) mv88e6xxx_g2_get_eeprom16() argument
527 mv88e6xxx_g2_set_eeprom16(struct mv88e6xxx_chip *chip, struct ethtool_eeprom *eeprom, u8 *data) mv88e6xxx_g2_set_eeprom16() argument
597 mv88e6xxx_g2_smi_phy_wait(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_smi_phy_wait() argument
604 mv88e6xxx_g2_smi_phy_cmd(struct mv88e6xxx_chip *chip, u16 cmd) mv88e6xxx_g2_smi_phy_cmd() argument
616 mv88e6xxx_g2_smi_phy_access(struct mv88e6xxx_chip *chip, bool external, bool c45, u16 op, int dev, int reg) mv88e6xxx_g2_smi_phy_access() argument
639 mv88e6xxx_g2_smi_phy_access_c22(struct mv88e6xxx_chip *chip, bool external, u16 op, int dev, int reg) mv88e6xxx_g2_smi_phy_access_c22() argument
647 mv88e6xxx_g2_smi_phy_read_data_c22(struct mv88e6xxx_chip *chip, bool external, int dev, int reg, u16 *data) mv88e6xxx_g2_smi_phy_read_data_c22() argument
666 mv88e6xxx_g2_smi_phy_write_data_c22(struct mv88e6xxx_chip *chip, bool external, int dev, int reg, u16 data) mv88e6xxx_g2_smi_phy_write_data_c22() argument
684 mv88e6xxx_g2_smi_phy_access_c45(struct mv88e6xxx_chip *chip, bool external, u16 op, int port, int dev) mv88e6xxx_g2_smi_phy_access_c45() argument
692 mv88e6xxx_g2_smi_phy_write_addr_c45(struct mv88e6xxx_chip *chip, bool external, int port, int dev, int addr) mv88e6xxx_g2_smi_phy_write_addr_c45() argument
711 mv88e6xxx_g2_smi_phy_read_data_c45(struct mv88e6xxx_chip *chip, bool external, int port, int dev, u16 *data) mv88e6xxx_g2_smi_phy_read_data_c45() argument
725 mv88e6xxx_g2_smi_phy_read_c45(struct mv88e6xxx_chip *chip, bool external, int port, int reg, u16 *data) mv88e6xxx_g2_smi_phy_read_c45() argument
743 mv88e6xxx_g2_smi_phy_write_data_c45(struct mv88e6xxx_chip *chip, bool external, int port, int dev, u16 data) mv88e6xxx_g2_smi_phy_write_data_c45() argument
757 mv88e6xxx_g2_smi_phy_write_c45(struct mv88e6xxx_chip *chip, bool external, int port, int reg, u16 data) mv88e6xxx_g2_smi_phy_write_c45() argument
774 mv88e6xxx_g2_smi_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, int addr, int reg, u16 *val) mv88e6xxx_g2_smi_phy_read() argument
788 mv88e6xxx_g2_smi_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, int addr, int reg, u16 val) mv88e6xxx_g2_smi_phy_write() argument
803 mv88e6097_watchdog_action(struct mv88e6xxx_chip *chip, int irq) mv88e6097_watchdog_action() argument
814 mv88e6097_watchdog_free(struct mv88e6xxx_chip *chip) mv88e6097_watchdog_free() argument
826 mv88e6097_watchdog_setup(struct mv88e6xxx_chip *chip) mv88e6097_watchdog_setup() argument
840 mv88e6250_watchdog_free(struct mv88e6xxx_chip *chip) mv88e6250_watchdog_free() argument
852 mv88e6250_watchdog_setup(struct mv88e6xxx_chip *chip) mv88e6250_watchdog_setup() argument
866 mv88e6390_watchdog_setup(struct mv88e6xxx_chip *chip) mv88e6390_watchdog_setup() argument
877 mv88e6390_watchdog_action(struct mv88e6xxx_chip *chip, int irq) mv88e6390_watchdog_action() argument
904 mv88e6390_watchdog_free(struct mv88e6xxx_chip *chip) mv88e6390_watchdog_free() argument
919 struct mv88e6xxx_chip *chip = dev_id; mv88e6xxx_g2_watchdog_thread_fn() local
930 mv88e6xxx_g2_watchdog_free(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_watchdog_free() argument
941 mv88e6xxx_g2_watchdog_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_watchdog_setup() argument
970 mv88e6xxx_g2_misc_5_bit_port(struct mv88e6xxx_chip *chip, bool port_5_bit) mv88e6xxx_g2_misc_5_bit_port() argument
988 mv88e6xxx_g2_misc_4_bit_port(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_misc_4_bit_port() argument
995 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_g2_irq_mask() local
1003 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_g2_irq_unmask() local
1011 struct mv88e6xxx_chip *chip = dev_id; mv88e6xxx_g2_irq_thread_fn() local
1037 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_g2_irq_bus_lock() local
1044 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); mv88e6xxx_g2_irq_bus_sync_unlock() local
1066 struct mv88e6xxx_chip *chip = d->host_data; mv88e6xxx_g2_irq_domain_map() local
1080 mv88e6xxx_g2_irq_free(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_irq_free() argument
1097 mv88e6xxx_g2_irq_setup(struct mv88e6xxx_chip *chip) mv88e6xxx_g2_irq_setup() argument
1147 mv88e6xxx_g2_irq_mdio_setup(struct mv88e6xxx_chip *chip, struct mii_bus *bus) mv88e6xxx_g2_irq_mdio_setup() argument
1170 mv88e6xxx_g2_irq_mdio_free(struct mv88e6xxx_chip *chip, struct mii_bus *bus) mv88e6xxx_g2_irq_mdio_free() argument
[all...]
/kernel/linux/linux-5.10/sound/pci/lola/
H A Dlola.c74 static int corb_send_verb(struct lola *chip, unsigned int nid, in corb_send_verb() argument
81 chip->last_cmd_nid = nid; in corb_send_verb()
82 chip->last_verb = verb; in corb_send_verb()
83 chip->last_data = data; in corb_send_verb()
84 chip->last_extdata = extdata; in corb_send_verb()
87 spin_lock_irqsave(&chip->reg_lock, flags); in corb_send_verb()
88 if (chip->rirb.cmds < LOLA_CORB_ENTRIES - 1) { in corb_send_verb()
89 unsigned int wp = chip->corb.wp + 1; in corb_send_verb()
91 chip->corb.wp = wp; in corb_send_verb()
92 chip in corb_send_verb()
103 lola_queue_unsol_event(struct lola *chip, unsigned int res, unsigned int res_ex) lola_queue_unsol_event() argument
110 lola_update_rirb(struct lola *chip) lola_update_rirb() argument
138 rirb_get_response(struct lola *chip, unsigned int *val, unsigned int *extval) rirb_get_response() argument
182 lola_codec_write(struct lola *chip, unsigned int nid, unsigned int verb, unsigned int data, unsigned int extdata) lola_codec_write() argument
191 lola_codec_read(struct lola *chip, unsigned int nid, unsigned int verb, unsigned int data, unsigned int extdata, unsigned int *val, unsigned int *extval) lola_codec_read() argument
207 lola_codec_flush(struct lola *chip) lola_codec_flush() argument
218 struct lola *chip = dev_id; lola_interrupt() local
296 reset_controller(struct lola *chip) reset_controller() argument
323 lola_irq_enable(struct lola *chip) lola_irq_enable() argument
339 lola_irq_disable(struct lola *chip) lola_irq_disable() argument
346 setup_corb_rirb(struct lola *chip) setup_corb_rirb() argument
412 stop_corb_rirb(struct lola *chip) stop_corb_rirb() argument
419 lola_reset_setups(struct lola *chip) lola_reset_setups() argument
435 lola_parse_tree(struct lola *chip) lola_parse_tree() argument
527 lola_stop_hw(struct lola *chip) lola_stop_hw() argument
533 lola_free(struct lola *chip) lola_free() argument
559 struct lola *chip; lola_create() local
694 struct lola *chip; lola_probe() local
[all...]
/kernel/linux/linux-5.10/sound/sh/
H A Dsh_dac_audio.c54 static void dac_audio_start_timer(struct snd_sh_dac *chip) in dac_audio_start_timer() argument
56 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in dac_audio_start_timer()
60 static void dac_audio_stop_timer(struct snd_sh_dac *chip) in dac_audio_stop_timer() argument
62 hrtimer_cancel(&chip->hrtimer); in dac_audio_stop_timer()
65 static void dac_audio_reset(struct snd_sh_dac *chip) in dac_audio_reset() argument
67 dac_audio_stop_timer(chip); in dac_audio_reset()
68 chip->buffer_begin = chip->buffer_end = chip in dac_audio_reset()
73 dac_audio_set_rate(struct snd_sh_dac *chip) dac_audio_set_rate() argument
101 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_open() local
118 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_close() local
130 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_prepare() local
141 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_trigger() local
165 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_copy() local
184 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_copy_kernel() local
202 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_silence() local
218 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_pointer() local
237 snd_sh_dac_pcm(struct snd_sh_dac *chip, int device) snd_sh_dac_pcm() argument
268 snd_sh_dac_free(struct snd_sh_dac *chip) snd_sh_dac_free() argument
279 struct snd_sh_dac *chip = device->device_data; snd_sh_dac_dev_free() local
286 struct snd_sh_dac *chip = container_of(handle, struct snd_sh_dac, sh_dac_audio_timer() local
322 struct snd_sh_dac *chip; snd_sh_dac_create() local
366 struct snd_sh_dac *chip; snd_sh_dac_probe() local
[all...]
/kernel/linux/linux-5.10/drivers/input/misc/
H A Dmax8997_haptic.c56 static int max8997_haptic_set_duty_cycle(struct max8997_haptic *chip) in max8997_haptic_set_duty_cycle() argument
60 if (chip->mode == MAX8997_EXTERNAL_MODE) { in max8997_haptic_set_duty_cycle()
61 unsigned int duty = chip->pwm_period * chip->level / 100; in max8997_haptic_set_duty_cycle()
62 ret = pwm_config(chip->pwm, duty, chip->pwm_period); in max8997_haptic_set_duty_cycle()
68 if (chip->level <= i * 100 / 64) { in max8997_haptic_set_duty_cycle()
73 switch (chip->internal_mode_pattern) { in max8997_haptic_set_duty_cycle()
75 max8997_write_reg(chip->client, in max8997_haptic_set_duty_cycle()
79 max8997_write_reg(chip in max8997_haptic_set_duty_cycle()
97 max8997_haptic_configure(struct max8997_haptic *chip) max8997_haptic_configure() argument
157 max8997_haptic_enable(struct max8997_haptic *chip) max8997_haptic_enable() argument
191 max8997_haptic_disable(struct max8997_haptic *chip) max8997_haptic_disable() argument
208 struct max8997_haptic *chip = max8997_haptic_play_effect_work() local
220 struct max8997_haptic *chip = input_get_drvdata(dev); max8997_haptic_play_effect() local
233 struct max8997_haptic *chip = input_get_drvdata(dev); max8997_haptic_close() local
245 struct max8997_haptic *chip; max8997_haptic_probe() local
362 struct max8997_haptic *chip = platform_get_drvdata(pdev); max8997_haptic_remove() local
378 struct max8997_haptic *chip = platform_get_drvdata(pdev); max8997_haptic_suspend() local
[all...]
/kernel/linux/linux-6.6/drivers/input/misc/
H A Dmax8997_haptic.c56 static int max8997_haptic_set_duty_cycle(struct max8997_haptic *chip) in max8997_haptic_set_duty_cycle() argument
60 if (chip->mode == MAX8997_EXTERNAL_MODE) { in max8997_haptic_set_duty_cycle()
61 unsigned int duty = chip->pwm_period * chip->level / 100; in max8997_haptic_set_duty_cycle()
62 ret = pwm_config(chip->pwm, duty, chip->pwm_period); in max8997_haptic_set_duty_cycle()
66 duty_index = DIV_ROUND_UP(chip->level * 64, 100); in max8997_haptic_set_duty_cycle()
68 switch (chip->internal_mode_pattern) { in max8997_haptic_set_duty_cycle()
70 max8997_write_reg(chip->client, in max8997_haptic_set_duty_cycle()
74 max8997_write_reg(chip in max8997_haptic_set_duty_cycle()
92 max8997_haptic_configure(struct max8997_haptic *chip) max8997_haptic_configure() argument
152 max8997_haptic_enable(struct max8997_haptic *chip) max8997_haptic_enable() argument
186 max8997_haptic_disable(struct max8997_haptic *chip) max8997_haptic_disable() argument
203 struct max8997_haptic *chip = max8997_haptic_play_effect_work() local
215 struct max8997_haptic *chip = input_get_drvdata(dev); max8997_haptic_play_effect() local
228 struct max8997_haptic *chip = input_get_drvdata(dev); max8997_haptic_close() local
240 struct max8997_haptic *chip; max8997_haptic_probe() local
356 struct max8997_haptic *chip = platform_get_drvdata(pdev); max8997_haptic_remove() local
372 struct max8997_haptic *chip = platform_get_drvdata(pdev); max8997_haptic_suspend() local
[all...]
/kernel/linux/linux-5.10/sound/isa/sb/
H A Dsb16_main.c14 * Note: Some chip revisions have hardware bug. Changing capture
16 * 16bit DMA transfers from DSP chip (capture) until 8bit transfer
17 * to DSP chip (playback) starts. This bug can be avoided with
41 static void snd_sb16_csp_playback_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_prepare() argument
43 if (chip->hardware == SB_HW_16CSP) { in snd_sb16_csp_playback_prepare()
44 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_playback_prepare()
74 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_PLAYBACK_16) ? in snd_sb16_csp_playback_prepare()
82 chip->open = SNDRV_SB_CSP_MODE_DSP_WRITE; in snd_sb16_csp_playback_prepare()
89 static void snd_sb16_csp_capture_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_capture_prepare() argument
91 if (chip in snd_sb16_csp_capture_prepare()
127 snd_sb16_csp_update(struct snd_sb *chip) snd_sb16_csp_update() argument
140 snd_sb16_csp_playback_open(struct snd_sb *chip, struct snd_pcm_runtime *runtime) snd_sb16_csp_playback_open() argument
159 snd_sb16_csp_playback_close(struct snd_sb *chip) snd_sb16_csp_playback_close() argument
171 snd_sb16_csp_capture_open(struct snd_sb *chip, struct snd_pcm_runtime *runtime) snd_sb16_csp_capture_open() argument
190 snd_sb16_csp_capture_close(struct snd_sb *chip) snd_sb16_csp_capture_close() argument
212 snd_sb16_setup_rate(struct snd_sb *chip, unsigned short rate, int channel) snd_sb16_setup_rate() argument
238 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_playback_prepare() local
280 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_playback_trigger() local
308 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_capture_prepare() local
349 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_capture_trigger() local
376 struct snd_sb *chip = dev_id; snd_sb16dsp_interrupt() local
428 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_playback_pointer() local
439 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_capture_pointer() local
495 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_playback_open() local
557 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_playback_close() local
570 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_capture_open() local
632 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_capture_close() local
646 snd_sb16_set_dma_mode(struct snd_sb *chip, int what) snd_sb16_set_dma_mode() argument
665 snd_sb16_get_dma_mode(struct snd_sb *chip) snd_sb16_get_dma_mode() argument
690 struct snd_sb *chip = snd_kcontrol_chip(kcontrol); snd_sb16_dma_control_get() local
701 struct snd_sb *chip = snd_kcontrol_chip(kcontrol); snd_sb16_dma_control_put() local
728 snd_sb16dsp_configure(struct snd_sb * chip) snd_sb16dsp_configure() argument
833 snd_sb16dsp_pcm(struct snd_sb *chip, int device) snd_sb16dsp_pcm() argument
[all...]
/kernel/linux/linux-6.6/sound/isa/sb/
H A Dsb16_main.c14 * Note: Some chip revisions have hardware bug. Changing capture
16 * 16bit DMA transfers from DSP chip (capture) until 8bit transfer
17 * to DSP chip (playback) starts. This bug can be avoided with
41 static void snd_sb16_csp_playback_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_prepare() argument
43 if (chip->hardware == SB_HW_16CSP) { in snd_sb16_csp_playback_prepare()
44 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_playback_prepare()
74 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_PLAYBACK_16) ? in snd_sb16_csp_playback_prepare()
82 chip->open = SNDRV_SB_CSP_MODE_DSP_WRITE; in snd_sb16_csp_playback_prepare()
89 static void snd_sb16_csp_capture_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_capture_prepare() argument
91 if (chip in snd_sb16_csp_capture_prepare()
127 snd_sb16_csp_update(struct snd_sb *chip) snd_sb16_csp_update() argument
140 snd_sb16_csp_playback_open(struct snd_sb *chip, struct snd_pcm_runtime *runtime) snd_sb16_csp_playback_open() argument
159 snd_sb16_csp_playback_close(struct snd_sb *chip) snd_sb16_csp_playback_close() argument
171 snd_sb16_csp_capture_open(struct snd_sb *chip, struct snd_pcm_runtime *runtime) snd_sb16_csp_capture_open() argument
190 snd_sb16_csp_capture_close(struct snd_sb *chip) snd_sb16_csp_capture_close() argument
212 snd_sb16_setup_rate(struct snd_sb *chip, unsigned short rate, int channel) snd_sb16_setup_rate() argument
238 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_playback_prepare() local
280 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_playback_trigger() local
308 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_capture_prepare() local
349 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_capture_trigger() local
376 struct snd_sb *chip = dev_id; snd_sb16dsp_interrupt() local
428 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_playback_pointer() local
439 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_capture_pointer() local
495 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_playback_open() local
557 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_playback_close() local
570 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_capture_open() local
632 struct snd_sb *chip = snd_pcm_substream_chip(substream); snd_sb16_capture_close() local
646 snd_sb16_set_dma_mode(struct snd_sb *chip, int what) snd_sb16_set_dma_mode() argument
665 snd_sb16_get_dma_mode(struct snd_sb *chip) snd_sb16_get_dma_mode() argument
690 struct snd_sb *chip = snd_kcontrol_chip(kcontrol); snd_sb16_dma_control_get() local
701 struct snd_sb *chip = snd_kcontrol_chip(kcontrol); snd_sb16_dma_control_put() local
729 snd_sb16dsp_configure(struct snd_sb * chip) snd_sb16dsp_configure() argument
834 snd_sb16dsp_pcm(struct snd_sb *chip, int device) snd_sb16dsp_pcm() argument
[all...]

Completed in 21 milliseconds

12345678910>>...131