/linux-master/sound/pci/echoaudio/ |
H A D | echo3g_dsp.c | 31 static int load_asic(struct echoaudio *chip); 32 static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode); 33 static int set_digital_mode(struct echoaudio *chip, u8 mode); 34 static int check_asic_status(struct echoaudio *chip); 35 static int set_sample_rate(struct echoaudio *chip, u32 rate); 36 static int set_input_clock(struct echoaudio *chip, u16 clock); 37 static int set_professional_spdif(struct echoaudio *chip, char prof); 38 static int set_phantom_power(struct echoaudio *chip, char on); 39 static int write_control_reg(struct echoaudio *chip, u32 ctl, u32 frq, 44 static int init_hw(struct echoaudio *chip, u1 argument 107 set_mixer_defaults(struct echoaudio *chip) argument 119 set_phantom_power(struct echoaudio *chip, char on) argument [all...] |
H A D | indigoio_dsp.c | 32 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, 34 static int update_vmixer_level(struct echoaudio *chip); 37 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) argument 44 err = init_dsp_comm_page(chip); 46 dev_err(chip->card->dev, 51 chip->device_id = device_id; 52 chip->subdevice_id = subdevice_id; 53 chip->bad_board = true; 54 chip->dsp_code_to_load = FW_INDIGO_IO_DSP; 57 chip 70 set_mixer_defaults(struct echoaudio *chip) argument 77 detect_input_clocks(const struct echoaudio *chip) argument 85 load_asic(struct echoaudio *chip) argument 92 set_sample_rate(struct echoaudio *chip, u32 rate) argument 106 set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, int gain) argument 130 update_vmixer_level(struct echoaudio *chip) argument [all...] |
H A D | echoaudio_gml.c | 40 static int check_asic_status(struct echoaudio *chip) argument 44 send_vector(chip, DSP_VC_TEST_ASIC); 48 if (read_dsp(chip, &asic_status) < 0) { 49 dev_err(chip->card->dev, 51 chip->asic_loaded = false; 55 chip->asic_loaded = (asic_status == ASIC_ALREADY_LOADED); 56 return chip->asic_loaded ? 0 : -EIO; 64 static int write_control_reg(struct echoaudio *chip, u32 value, char force) argument 69 if (chip->digital_in_automute) 74 dev_dbg(chip 95 set_input_auto_mute(struct echoaudio *chip, int automute) argument 109 set_digital_mode(struct echoaudio *chip, u8 mode) argument 156 set_professional_spdif(struct echoaudio *chip, char prof) argument [all...] |
H A D | indigodjx_dsp.c | 29 static int update_vmixer_level(struct echoaudio *chip); 30 static int set_vmixer_gain(struct echoaudio *chip, u16 output, 34 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) argument 41 err = init_dsp_comm_page(chip); 43 dev_err(chip->card->dev, 48 chip->device_id = device_id; 49 chip->subdevice_id = subdevice_id; 50 chip->bad_board = true; 51 chip->dsp_code_to_load = FW_INDIGO_DJX_DSP; 54 chip 67 set_mixer_defaults(struct echoaudio *chip) argument [all...] |
H A D | indigoiox_dsp.c | 29 static int update_vmixer_level(struct echoaudio *chip); 30 static int set_vmixer_gain(struct echoaudio *chip, u16 output, 34 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) argument 41 err = init_dsp_comm_page(chip); 43 dev_err(chip->card->dev, 48 chip->device_id = device_id; 49 chip->subdevice_id = subdevice_id; 50 chip->bad_board = true; 51 chip->dsp_code_to_load = FW_INDIGO_IOX_DSP; 54 chip 67 set_mixer_defaults(struct echoaudio *chip) argument [all...] |
H A D | gina20_dsp.c | 32 static int set_professional_spdif(struct echoaudio *chip, char prof); 33 static int update_flags(struct echoaudio *chip); 36 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) argument 43 err = init_dsp_comm_page(chip); 45 dev_err(chip->card->dev, 50 chip->device_id = device_id; 51 chip->subdevice_id = subdevice_id; 52 chip->bad_board = true; 53 chip->dsp_code_to_load = FW_GINA20_DSP; 54 chip 72 set_mixer_defaults(struct echoaudio *chip) argument 80 detect_input_clocks(const struct echoaudio *chip) argument 99 load_asic(struct echoaudio *chip) argument 106 set_sample_rate(struct echoaudio *chip, u32 rate) argument 151 set_input_clock(struct echoaudio *chip, u16 clock) argument 180 set_input_gain(struct echoaudio *chip, u16 input, int gain) argument 197 update_flags(struct echoaudio *chip) argument 207 set_professional_spdif(struct echoaudio *chip, char prof) argument [all...] |
H A D | mia_dsp.c | 32 static int set_input_clock(struct echoaudio *chip, u16 clock); 33 static int set_professional_spdif(struct echoaudio *chip, char prof); 34 static int update_flags(struct echoaudio *chip); 35 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, 37 static int update_vmixer_level(struct echoaudio *chip); 40 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) argument 47 err = init_dsp_comm_page(chip); 49 dev_err(chip->card->dev, 54 chip->device_id = device_id; 55 chip 76 set_mixer_defaults(struct echoaudio *chip) argument 83 detect_input_clocks(const struct echoaudio *chip) argument 102 load_asic(struct echoaudio *chip) argument 109 set_sample_rate(struct echoaudio *chip, u32 rate) argument 156 set_input_clock(struct echoaudio *chip, u16 clock) argument 170 set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, int gain) argument 194 update_vmixer_level(struct echoaudio *chip) argument 205 update_flags(struct echoaudio *chip) argument 215 set_professional_spdif(struct echoaudio *chip, char prof) argument [all...] |
H A D | darla24_dsp.c | 32 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) argument 39 err = init_dsp_comm_page(chip); 41 dev_err(chip->card->dev, 46 chip->device_id = device_id; 47 chip->subdevice_id = subdevice_id; 48 chip->bad_board = true; 49 chip->dsp_code_to_load = FW_DARLA24_DSP; 52 chip->asic_loaded = true; 53 chip->input_clock_types = ECHO_CLOCK_BIT_INTERNAL | 56 err = load_firmware(chip); 66 set_mixer_defaults(struct echoaudio *chip) argument 73 detect_input_clocks(const struct echoaudio *chip) argument 92 load_asic(struct echoaudio *chip) argument 99 set_sample_rate(struct echoaudio *chip, u32 rate) argument 157 set_input_clock(struct echoaudio *chip, u16 clock) argument [all...] |
H A D | darla20_dsp.c | 32 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) argument 39 err = init_dsp_comm_page(chip); 41 dev_err(chip->card->dev, 46 chip->device_id = device_id; 47 chip->subdevice_id = subdevice_id; 48 chip->bad_board = true; 49 chip->dsp_code_to_load = FW_DARLA20_DSP; 50 chip->spdif_status = GD_SPDIF_STATUS_UNDEF; 51 chip->clock_state = GD_CLOCK_UNDEF; 54 chip 67 set_mixer_defaults(struct echoaudio *chip) argument 75 detect_input_clocks(const struct echoaudio *chip) argument 83 load_asic(struct echoaudio *chip) argument 90 set_sample_rate(struct echoaudio *chip, u32 rate) argument [all...] |
H A D | indigo_express_dsp.c | 29 static int set_sample_rate(struct echoaudio *chip, u32 rate) argument 33 if (wait_handshake(chip)) 36 old_control_reg = le32_to_cpu(chip->comm_page->control_register); 64 dev_dbg(chip->card->dev, 66 chip->comm_page->control_register = cpu_to_le32(control_reg); 67 chip->sample_rate = rate; 68 clear_handshake(chip); 69 return send_vector(chip, DSP_VC_UPDATE_CLOCKS); 77 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, argument 82 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || 101 update_vmixer_level(struct echoaudio *chip) argument 111 detect_input_clocks(const struct echoaudio *chip) argument 119 load_asic(struct echoaudio *chip) argument [all...] |
H A D | indigodj_dsp.c | 32 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, 34 static int update_vmixer_level(struct echoaudio *chip); 37 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) argument 44 err = init_dsp_comm_page(chip); 46 dev_err(chip->card->dev, 51 chip->device_id = device_id; 52 chip->subdevice_id = subdevice_id; 53 chip->bad_board = true; 54 chip->dsp_code_to_load = FW_INDIGO_DJ_DSP; 57 chip 70 set_mixer_defaults(struct echoaudio *chip) argument 77 detect_input_clocks(const struct echoaudio *chip) argument 85 load_asic(struct echoaudio *chip) argument 92 set_sample_rate(struct echoaudio *chip, u32 rate) argument 136 set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, int gain) argument 160 update_vmixer_level(struct echoaudio *chip) argument [all...] |
/linux-master/drivers/staging/rts5208/ |
H A D | rtsx_card.c | 23 void do_remaining_work(struct rtsx_chip *chip) argument 25 struct sd_info *sd_card = &chip->sd_card; 27 struct xd_info *xd_card = &chip->xd_card; 29 struct ms_info *ms_card = &chip->ms_card; 31 if (chip->card_ready & SD_CARD) { 33 rtsx_set_stat(chip, RTSX_STAT_RUN); 41 if (chip->card_ready & XD_CARD) { 43 rtsx_set_stat(chip, RTSX_STAT_RUN); 51 if (chip->card_ready & MS_CARD) { 54 rtsx_set_stat(chip, RTSX_STAT_RU 81 try_to_switch_sdio_ctrl(struct rtsx_chip *chip) argument 99 dynamic_configure_sdio_aspm(struct rtsx_chip *chip) argument 138 do_reset_sd_card(struct rtsx_chip *chip) argument 192 do_reset_xd_card(struct rtsx_chip *chip) argument 240 do_reset_ms_card(struct rtsx_chip *chip) argument 288 release_sdio(struct rtsx_chip *chip) argument 308 rtsx_power_off_card(struct rtsx_chip *chip) argument 326 rtsx_release_cards(struct rtsx_chip *chip) argument 349 rtsx_reset_cards(struct rtsx_chip *chip) argument 397 rtsx_reinit_cards(struct rtsx_chip *chip, int reset_chip) argument 440 card_cd_debounce(struct rtsx_chip *chip, unsigned long *need_reset, unsigned long *need_release) argument 514 rtsx_init_cards(struct rtsx_chip *chip) argument 622 switch_ssc_clock(struct rtsx_chip *chip, int clk) argument 692 switch_normal_clock(struct rtsx_chip *chip, int clk) argument 820 trans_dma_enable(enum dma_data_direction dir, struct rtsx_chip *chip, u32 byte_cnt, u8 pack_size) argument 846 enable_card_clock(struct rtsx_chip *chip, u8 card) argument 865 disable_card_clock(struct rtsx_chip *chip, u8 card) argument 884 card_power_on(struct rtsx_chip *chip, u8 card) argument 918 card_power_off(struct rtsx_chip *chip, u8 card) argument 938 card_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 sec_addr, u16 sec_cnt) argument 977 card_share_mode(struct rtsx_chip *chip, int card) argument 1015 select_card(struct rtsx_chip *chip, int card) argument 1046 toggle_gpio(struct rtsx_chip *chip, u8 gpio) argument 1055 turn_on_led(struct rtsx_chip *chip, u8 gpio) argument 1064 turn_off_led(struct rtsx_chip *chip, u8 gpio) argument 1073 detect_card_cd(struct rtsx_chip *chip, int card) argument 1095 check_card_exist(struct rtsx_chip *chip, unsigned int lun) argument 1103 check_card_ready(struct rtsx_chip *chip, unsigned int lun) argument 1111 check_card_wp(struct rtsx_chip *chip, unsigned int lun) argument 1119 get_lun_card(struct rtsx_chip *chip, unsigned int lun) argument 1131 eject_card(struct rtsx_chip *chip, unsigned int lun) argument [all...] |
H A D | rtsx_chip.c | 23 static void rtsx_calibration(struct rtsx_chip *chip) argument 25 rtsx_write_phy_register(chip, 0x1B, 0x135E); 27 rtsx_write_phy_register(chip, 0x00, 0x0280); 28 rtsx_write_phy_register(chip, 0x01, 0x7112); 29 rtsx_write_phy_register(chip, 0x01, 0x7110); 30 rtsx_write_phy_register(chip, 0x01, 0x7112); 31 rtsx_write_phy_register(chip, 0x01, 0x7113); 32 rtsx_write_phy_register(chip, 0x00, 0x0288); 35 void rtsx_enable_card_int(struct rtsx_chip *chip) argument 37 u32 reg = rtsx_readl(chip, RTSX_BIE 54 rtsx_enable_bus_int(struct rtsx_chip *chip) argument 93 rtsx_disable_bus_int(struct rtsx_chip *chip) argument 98 rtsx_pre_handle_sdio_old(struct rtsx_chip *chip) argument 142 rtsx_pre_handle_sdio_new(struct rtsx_chip *chip) argument 248 rtsx_reset_aspm(struct rtsx_chip *chip) argument 287 rtsx_enable_pcie_intr(struct rtsx_chip *chip) argument 334 rtsx_reset_chip(struct rtsx_chip *chip) argument 635 rts5208_init(struct rtsx_chip *chip) argument 694 rts5288_init(struct rtsx_chip *chip) argument 754 rtsx_init_chip(struct rtsx_chip *chip) argument 888 rtsx_release_chip(struct rtsx_chip *chip) argument 897 rtsx_blink_led(struct rtsx_chip *chip) argument 910 rtsx_monitor_aspm_config(struct rtsx_chip *chip) argument 959 rtsx_manage_ocp(struct rtsx_chip *chip) argument 978 rtsx_manage_sd_lock(struct rtsx_chip *chip) argument 1000 rtsx_is_ss_allowed(struct rtsx_chip *chip) argument 1016 rtsx_manage_ss(struct rtsx_chip *chip) argument 1032 rtsx_manage_aspm(struct rtsx_chip *chip) argument 1061 rtsx_manage_idle(struct rtsx_chip *chip) argument 1085 rtsx_manage_2lun_mode(struct rtsx_chip *chip) argument 1111 rtsx_manage_1lun_mode(struct rtsx_chip *chip) argument 1134 rtsx_delink_stage1(struct rtsx_chip *chip, int enter_L1, int stage3_cnt) argument 1166 rtsx_delink_stage(struct rtsx_chip *chip) argument 1205 rtsx_polling_func(struct rtsx_chip *chip) argument 1270 rtsx_stop_cmd(struct rtsx_chip *chip, int card) argument 1298 rtsx_write_register(struct rtsx_chip *chip, u16 addr, u8 mask, u8 data) argument 1322 rtsx_read_register(struct rtsx_chip *chip, u16 addr, u8 *data) argument 1349 rtsx_write_cfg_dw(struct rtsx_chip *chip, u8 func_no, u16 addr, u32 mask, u32 val) argument 1396 rtsx_read_cfg_dw(struct rtsx_chip *chip, u8 func_no, u16 addr, u32 *val) argument 1435 rtsx_write_cfg_seq(struct rtsx_chip *chip, u8 func, u16 addr, u8 *buf, int len) argument 1495 rtsx_read_cfg_seq(struct rtsx_chip *chip, u8 func, u16 addr, u8 *buf, int len) argument 1541 rtsx_write_phy_register(struct rtsx_chip *chip, u8 addr, u16 val) argument 1577 rtsx_read_phy_register(struct rtsx_chip *chip, u8 addr, u16 *val) argument 1620 rtsx_read_efuse(struct rtsx_chip *chip, u8 addr, u8 *val) argument 1651 rtsx_write_efuse(struct rtsx_chip *chip, u8 addr, u8 val) argument 1690 rtsx_clr_phy_reg_bit(struct rtsx_chip *chip, u8 reg, u8 bit) argument 1709 rtsx_set_phy_reg_bit(struct rtsx_chip *chip, u8 reg, u8 bit) argument 1728 rtsx_handle_pm_dstate(struct rtsx_chip *chip, u8 dstate) argument 1753 rtsx_enter_L1(struct rtsx_chip *chip) argument 1758 rtsx_exit_L1(struct rtsx_chip *chip) argument 1764 rtsx_enter_ss(struct rtsx_chip *chip) argument 1799 rtsx_exit_ss(struct rtsx_chip *chip) argument 1820 rtsx_pre_handle_interrupt(struct rtsx_chip *chip) argument 1911 rtsx_do_before_power_down(struct rtsx_chip *chip, int pm_stat) argument 1970 rtsx_enable_aspm(struct rtsx_chip *chip) argument 1995 rtsx_disable_aspm(struct rtsx_chip *chip) argument 2016 rtsx_read_ppbuf(struct rtsx_chip *chip, u8 *buf, int buf_len) argument 2058 rtsx_write_ppbuf(struct rtsx_chip *chip, u8 *buf, int buf_len) argument 2101 rtsx_check_chip_exist(struct rtsx_chip *chip) argument 2109 rtsx_force_power_on(struct rtsx_chip *chip, u8 ctl) argument 2137 rtsx_force_power_down(struct rtsx_chip *chip, u8 ctl) argument [all...] |
/linux-master/sound/usb/ |
H A D | midi2.h | 8 int snd_usb_midi_v2_create(struct snd_usb_audio *chip, 12 void snd_usb_midi_v2_suspend_all(struct snd_usb_audio *chip); 13 void snd_usb_midi_v2_resume_all(struct snd_usb_audio *chip); 14 void snd_usb_midi_v2_disconnect_all(struct snd_usb_audio *chip); 15 void snd_usb_midi_v2_free_all(struct snd_usb_audio *chip); 18 static inline int snd_usb_midi_v2_create(struct snd_usb_audio *chip, argument 23 return __snd_usbmidi_create(chip->card, iface, &chip->midi_list, 24 quirk, usb_id, &chip->num_rawmidis); 27 static inline void snd_usb_midi_v2_suspend_all(struct snd_usb_audio *chip) {} argument 28 snd_usb_midi_v2_resume_all(struct snd_usb_audio *chip) argument 29 snd_usb_midi_v2_disconnect_all(struct snd_usb_audio *chip) argument 30 snd_usb_midi_v2_free_all(struct snd_usb_audio *chip) argument [all...] |
/linux-master/drivers/char/tpm/ |
H A D | tpm-chip.c | 15 * TPM chip management routines. 40 static int tpm_request_locality(struct tpm_chip *chip) argument 44 if (!chip->ops->request_locality) 47 rc = chip->ops->request_locality(chip, 0); 51 chip->locality = rc; 55 static void tpm_relinquish_locality(struct tpm_chip *chip) argument 59 if (!chip->ops->relinquish_locality) 62 rc = chip->ops->relinquish_locality(chip, chi 69 tpm_cmd_ready(struct tpm_chip *chip) argument 77 tpm_go_idle(struct tpm_chip *chip) argument 85 tpm_clk_enable(struct tpm_chip *chip) argument 91 tpm_clk_disable(struct tpm_chip *chip) argument 105 tpm_chip_start(struct tpm_chip *chip) argument 138 tpm_chip_stop(struct tpm_chip *chip) argument 157 tpm_try_get_ops(struct tpm_chip *chip) argument 192 tpm_put_ops(struct tpm_chip *chip) argument 206 struct tpm_chip *chip, *res = NULL; local 243 tpm_find_get_ops(struct tpm_chip *chip) argument 272 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); local 298 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); local 326 struct tpm_chip *chip; local 400 struct tpm_chip *chip; local 419 tpm_add_char_device(struct tpm_chip *chip) argument 450 tpm_del_char_device(struct tpm_chip *chip) argument 479 tpm_del_legacy_sysfs(struct tpm_chip *chip) argument 497 tpm_add_legacy_sysfs(struct tpm_chip *chip) argument 526 struct tpm_chip *chip = container_of(rng, struct tpm_chip, hwrng); local 535 tpm_is_hwrng_enabled(struct tpm_chip *chip) argument 546 tpm_add_hwrng(struct tpm_chip *chip) argument 558 tpm_get_pcr_allocation(struct tpm_chip *chip) argument 582 tpm_chip_bootstrap(struct tpm_chip *chip) argument 622 tpm_chip_register(struct tpm_chip *chip) argument 675 tpm_chip_unregister(struct tpm_chip *chip) argument [all...] |
/linux-master/drivers/net/wireless/purelifi/plfxlc/ |
H A D | chip.c | 9 #include "chip.h" 13 void plfxlc_chip_init(struct plfxlc_chip *chip, argument 17 memset(chip, 0, sizeof(*chip)); 18 mutex_init(&chip->mutex); 19 plfxlc_usb_init(&chip->usb, hw, intf); 22 void plfxlc_chip_release(struct plfxlc_chip *chip) argument 24 plfxlc_usb_release(&chip->usb); 25 mutex_destroy(&chip->mutex); 28 int plfxlc_set_beacon_interval(struct plfxlc_chip *chip, u1 argument 43 plfxlc_chip_init_hw(struct plfxlc_chip *chip) argument 58 plfxlc_chip_switch_radio(struct plfxlc_chip *chip, u16 value) argument 70 plfxlc_chip_enable_rxtx(struct plfxlc_chip *chip) argument 76 plfxlc_chip_disable_rxtx(struct plfxlc_chip *chip) argument 86 plfxlc_chip_set_rate(struct plfxlc_chip *chip, u8 rate) argument [all...] |
/linux-master/sound/isa/sb/ |
H A D | sb8_midi.c | 22 irqreturn_t snd_sb8dsp_midi_interrupt(struct snd_sb *chip) argument 28 if (!chip) 31 rmidi = chip->rmidi; 33 inb(SBP(chip, DATA_AVAIL)); /* ack interrupt */ 37 spin_lock(&chip->midi_input_lock); 39 if (inb(SBP(chip, DATA_AVAIL)) & 0x80) { 40 byte = inb(SBP(chip, READ)); 41 if (chip->open & SB_OPEN_MIDI_INPUT_TRIGGER) { 42 snd_rawmidi_receive(chip->midi_substream_input, &byte, 1); 46 spin_unlock(&chip 53 struct snd_sb *chip; local 80 struct snd_sb *chip; local 107 struct snd_sb *chip; local 125 struct snd_sb *chip; local 144 struct snd_sb *chip; local 167 struct snd_sb *chip; local 202 struct snd_sb *chip = from_timer(chip, t, midi_timer); local 215 struct snd_sb *chip; local 249 snd_sb8dsp_midi(struct snd_sb *chip, int device) argument [all...] |
/linux-master/include/linux/irqchip/ |
H A D | chained_irq.h | 13 * Entry/exit functions for chained handlers where the primary IRQ chip 16 static inline void chained_irq_enter(struct irq_chip *chip, argument 20 if (chip->irq_eoi) 23 if (chip->irq_mask_ack) { 24 chip->irq_mask_ack(&desc->irq_data); 26 chip->irq_mask(&desc->irq_data); 27 if (chip->irq_ack) 28 chip->irq_ack(&desc->irq_data); 32 static inline void chained_irq_exit(struct irq_chip *chip, argument 35 if (chip [all...] |
/linux-master/drivers/char/tpm/eventlog/ |
H A D | common.h | 11 int tpm_read_log_acpi(struct tpm_chip *chip); 13 static inline int tpm_read_log_acpi(struct tpm_chip *chip) argument 19 int tpm_read_log_of(struct tpm_chip *chip); 21 static inline int tpm_read_log_of(struct tpm_chip *chip) argument 27 int tpm_read_log_efi(struct tpm_chip *chip); 29 static inline int tpm_read_log_efi(struct tpm_chip *chip) argument
|
/linux-master/arch/arm/mach-s3c/ |
H A D | gpio-cfg-helpers.h | 23 static inline int samsung_gpio_do_setcfg(struct samsung_gpio_chip *chip, argument 26 return (chip->config->set_config)(chip, off, config); 29 static inline int samsung_gpio_do_setpull(struct samsung_gpio_chip *chip, argument 32 return (chip->config->set_pull)(chip, off, pull);
|
/linux-master/drivers/mtd/nand/raw/ |
H A D | nand_sandisk.c | 6 sdtnqgama_choose_interface_config(struct nand_chip *chip, argument 9 onfi_fill_interface_config(chip, iface, NAND_SDR_IFACE, 0); 11 return nand_choose_best_sdr_timings(chip, iface, NULL); 14 static int sandisk_nand_init(struct nand_chip *chip) argument 16 if (!strncmp("SDTNQGAMA", chip->parameters.model, 18 chip->ops.choose_interface_config =
|
/linux-master/sound/pcmcia/pdaudiocf/ |
H A D | pdaudiocf_core.c | 20 struct snd_pdacf *chip = private_data; local 25 spin_lock_irqsave(&chip->ak4117_lock, flags); 27 while (pdacf_reg_read(chip, PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) { 30 spin_unlock_irqrestore(&chip->ak4117_lock, flags); 35 pdacf_reg_write(chip, PDAUDIOCF_REG_AK_IFR, (u16)reg << 8); 37 while (pdacf_reg_read(chip, PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) { 40 spin_unlock_irqrestore(&chip->ak4117_lock, flags); 45 res = (unsigned char)pdacf_reg_read(chip, PDAUDIOCF_REG_AK_IFR); 46 spin_unlock_irqrestore(&chip->ak4117_lock, flags); 52 struct snd_pdacf *chip local 91 pdacf_reset(struct snd_pdacf *chip, int powerdown) argument 114 pdacf_reinit(struct snd_pdacf *chip, int resume) argument 127 struct snd_pdacf *chip = entry->private_data; local 136 pdacf_proc_init(struct snd_pdacf *chip) argument 143 struct snd_pdacf *chip; local 159 struct snd_pdacf *chip = ak4117->change_callback_private; local 174 snd_pdacf_ak4117_create(struct snd_pdacf *chip) argument 230 snd_pdacf_powerdown(struct snd_pdacf *chip) argument 247 snd_pdacf_suspend(struct snd_pdacf *chip) argument 261 check_signal(struct snd_pdacf *chip) argument 266 snd_pdacf_resume(struct snd_pdacf *chip) argument [all...] |
/linux-master/drivers/net/dsa/mv88e6xxx/ |
H A D | phy.c | 13 #include "chip.h" 16 int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, argument 19 return mv88e6xxx_read(chip, addr, reg, val); 22 int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, argument 25 return mv88e6xxx_write(chip, addr, reg, val); 28 int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy, int reg, u16 *val) argument 33 bus = mv88e6xxx_default_mdio_bus(chip); 37 if (!chip->info->ops->phy_read) 40 return chip->info->ops->phy_read(chip, bu 43 mv88e6xxx_phy_write(struct mv88e6xxx_chip *chip, int phy, int reg, u16 val) argument 58 mv88e6xxx_phy_read_c45(struct mv88e6xxx_chip *chip, int phy, int devad, int reg, u16 *val) argument 74 mv88e6xxx_phy_write_c45(struct mv88e6xxx_chip *chip, int phy, int devad, int reg, u16 val) argument 90 mv88e6xxx_phy_page_get(struct mv88e6xxx_chip *chip, int phy, u8 page) argument 95 mv88e6xxx_phy_page_put(struct mv88e6xxx_chip *chip, int phy) argument 111 mv88e6xxx_phy_page_read(struct mv88e6xxx_chip *chip, int phy, u8 page, int reg, u16 *val) argument 129 mv88e6xxx_phy_page_write(struct mv88e6xxx_chip *chip, int phy, u8 page, int reg, u16 val) argument 150 mv88e6xxx_phy_ppu_disable(struct mv88e6xxx_chip *chip) argument 158 mv88e6xxx_phy_ppu_enable(struct mv88e6xxx_chip *chip) argument 168 struct mv88e6xxx_chip *chip; local 185 struct mv88e6xxx_chip *chip = from_timer(chip, t, ppu_timer); local 190 mv88e6xxx_phy_ppu_access_get(struct mv88e6xxx_chip *chip) argument 216 mv88e6xxx_phy_ppu_access_put(struct mv88e6xxx_chip *chip) argument 223 mv88e6xxx_phy_ppu_state_init(struct mv88e6xxx_chip *chip) argument 230 mv88e6xxx_phy_ppu_state_destroy(struct mv88e6xxx_chip *chip) argument 235 mv88e6185_phy_ppu_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, int addr, int reg, u16 *val) argument 249 mv88e6185_phy_ppu_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, int addr, int reg, u16 val) argument 263 mv88e6xxx_phy_init(struct mv88e6xxx_chip *chip) argument 269 mv88e6xxx_phy_destroy(struct mv88e6xxx_chip *chip) argument 275 mv88e6xxx_phy_setup(struct mv88e6xxx_chip *chip) argument [all...] |
/linux-master/drivers/power/supply/ |
H A D | ug3105_battery.c | 104 static int ug3105_get_status(struct ug3105_chip *chip) argument 106 int full = chip->info->constant_charge_voltage_max_uv - UG3105_FULL_BAT_HYST_UV; 108 if (chip->curr > UG3105_CURR_HYST_UA) 111 if (chip->curr < -UG3105_CURR_HYST_UA) 114 if (chip->supplied && chip->ocv_avg > full) 120 static int ug3105_get_capacity(struct ug3105_chip *chip) argument 154 if (chip->ocv_avg < ocv_capacity_tbl[0]) 157 if (chip->status == POWER_SUPPLY_STATUS_FULL) 161 if (chip 178 struct ug3105_chip *chip = container_of(work, struct ug3105_chip, local 302 struct ug3105_chip *chip = power_supply_get_drvdata(psy); local 356 struct ug3105_chip *chip = power_supply_get_drvdata(psy); local 371 ug3105_init(struct ug3105_chip *chip) argument 390 struct ug3105_chip *chip; local 447 struct ug3105_chip *chip = dev_get_drvdata(dev); local 458 struct ug3105_chip *chip = dev_get_drvdata(dev); local [all...] |
/linux-master/drivers/input/misc/ |
H A D | max8997_haptic.c | 56 static int max8997_haptic_set_duty_cycle(struct max8997_haptic *chip) argument 60 if (chip->mode == MAX8997_EXTERNAL_MODE) { 61 unsigned int duty = chip->pwm_period * chip->level / 100; 62 ret = pwm_config(chip->pwm, duty, chip->pwm_period); 66 duty_index = DIV_ROUND_UP(chip->level * 64, 100); 68 switch (chip->internal_mode_pattern) { 70 max8997_write_reg(chip->client, 74 max8997_write_reg(chip 92 max8997_haptic_configure(struct max8997_haptic *chip) argument 152 max8997_haptic_enable(struct max8997_haptic *chip) argument 186 max8997_haptic_disable(struct max8997_haptic *chip) argument 203 struct max8997_haptic *chip = local 215 struct max8997_haptic *chip = input_get_drvdata(dev); local 228 struct max8997_haptic *chip = input_get_drvdata(dev); local 240 struct max8997_haptic *chip; local 356 struct max8997_haptic *chip = platform_get_drvdata(pdev); local 370 struct max8997_haptic *chip = platform_get_drvdata(pdev); local [all...] |