Home
last modified time | relevance | path

Searched refs:chip (Results 1 – 25 of 2444) sorted by relevance

12345678910>>...98

/linux/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
197 tpm_put_ops(struct tpm_chip * chip) tpm_put_ops() argument
211 struct tpm_chip *chip, *res = NULL; tpm_default_chip() local
248 tpm_find_get_ops(struct tpm_chip * chip) tpm_find_get_ops() argument
277 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); tpm_dev_release() local
303 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); tpm_class_shutdown() local
332 struct tpm_chip *chip; tpm_chip_alloc() local
406 struct tpm_chip *chip; tpmm_chip_alloc() local
425 tpm_add_char_device(struct tpm_chip * chip) tpm_add_char_device() argument
456 tpm_del_char_device(struct tpm_chip * chip) tpm_del_char_device() argument
485 tpm_del_legacy_sysfs(struct tpm_chip * chip) tpm_del_legacy_sysfs() argument
503 tpm_add_legacy_sysfs(struct tpm_chip * chip) tpm_add_legacy_sysfs() argument
532 struct tpm_chip *chip = container_of(rng, struct tpm_chip, hwrng); tpm_hwrng_read() local
537 tpm_is_hwrng_enabled(struct tpm_chip * chip) tpm_is_hwrng_enabled() argument
548 tpm_add_hwrng(struct tpm_chip * chip) tpm_add_hwrng() argument
560 tpm_get_pcr_allocation(struct tpm_chip * chip) tpm_get_pcr_allocation() argument
584 tpm_chip_bootstrap(struct tpm_chip * chip) tpm_chip_bootstrap() argument
624 tpm_chip_register(struct tpm_chip * chip) tpm_chip_register() argument
677 tpm_chip_unregister(struct tpm_chip * chip) tpm_chip_unregister() argument
[all...]
/linux/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
203 snd_wss_in(struct snd_wss * chip,unsigned char reg) snd_wss_in() argument
217 snd_cs4236_ext_out(struct snd_wss * chip,unsigned char reg,unsigned char val) snd_cs4236_ext_out() argument
231 snd_cs4236_ext_in(struct snd_wss * chip,unsigned char reg) snd_cs4236_ext_in() argument
347 snd_wss_busy_wait(struct snd_wss * chip) snd_wss_busy_wait() argument
361 snd_wss_mce_up(struct snd_wss * chip) snd_wss_mce_up() argument
386 snd_wss_mce_down(struct snd_wss * chip) snd_wss_mce_down() argument
472 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_trigger() local
532 snd_wss_get_format(struct snd_wss * chip,snd_pcm_format_t format,int channels) snd_wss_get_format() argument
554 snd_wss_calibrate_mute(struct snd_wss * chip,int mute) snd_wss_calibrate_mute() argument
614 snd_wss_playback_format(struct snd_wss * chip,struct snd_pcm_hw_params * params,unsigned char pdfr) snd_wss_playback_format() argument
675 snd_wss_capture_format(struct snd_wss * chip,struct snd_pcm_hw_params * params,unsigned char cdfr) snd_wss_capture_format() argument
748 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_resolution() local
759 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_start() local
782 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_stop() local
791 snd_wss_init(struct snd_wss * chip) snd_wss_init() argument
861 snd_wss_open(struct snd_wss * chip,unsigned int mode) snd_wss_open() argument
903 snd_wss_close(struct snd_wss * chip,unsigned int mode) snd_wss_close() argument
955 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_open() local
962 struct snd_wss *chip = snd_timer_chip(timer); snd_wss_timer_close() local
986 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_hw_params() local
998 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_prepare() local
1021 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_hw_params() local
1033 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_prepare() local
1063 snd_wss_overrange(struct snd_wss * chip) snd_wss_overrange() argument
1078 struct snd_wss *chip = dev_id; snd_wss_interrupt() local
1129 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_pointer() local
1140 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_pointer() local
1153 snd_ad1848_probe(struct snd_wss * chip) snd_ad1848_probe() argument
1235 snd_wss_probe(struct snd_wss * chip) snd_wss_probe() argument
1473 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_open() local
1516 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_open() local
1557 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_playback_close() local
1566 struct snd_wss *chip = snd_pcm_substream_chip(substream); snd_wss_capture_close() local
1573 snd_wss_thinkpad_twiddle(struct snd_wss * chip,int on) snd_wss_thinkpad_twiddle() argument
1596 snd_wss_suspend(struct snd_wss * chip) snd_wss_suspend() argument
1610 snd_wss_resume(struct snd_wss * chip) snd_wss_resume() argument
1660 snd_wss_chip_id(struct snd_wss * chip) snd_wss_chip_id() argument
1710 struct snd_wss *chip; snd_wss_new() local
1749 struct snd_wss *chip; snd_wss_create() local
1849 snd_wss_pcm(struct snd_wss * chip,int device) snd_wss_pcm() argument
1880 struct snd_wss *chip = timer->private_data; snd_wss_timer_free() local
1884 snd_wss_timer(struct snd_wss * chip,int device) snd_wss_timer() argument
1925 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_info_mux() local
1946 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_get_mux() local
1959 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_put_mux() local
1996 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_get_single() local
2015 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_put_single() local
2053 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_get_double() local
2077 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); snd_wss_put_double() local
2167 snd_wss_mixer(struct snd_wss * chip) snd_wss_mixer() argument
[all...]
/linux/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
651 struct lola *chip; __lola_probe() local
[all...]
/linux/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
582 __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
708 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
719 struct oxygen *chip = card->private_data; oxygen_pci_suspend() local
754 oxygen_restore_ac97(struct oxygen * chip,unsigned int codec) oxygen_restore_ac97() argument
769 struct oxygen *chip = card->private_data; oxygen_pci_resume() local
796 struct oxygen *chip = card->private_data; oxygen_pci_shutdown() local
[all...]
/linux/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...]
H A Dmidi.c37 static int enable_midi_input(struct echoaudio *chip, char enable) in enable_midi_input() argument
39 dev_dbg(chip->card->dev, "enable_midi_input(%d)\n", enable); in enable_midi_input()
41 if (wait_handshake(chip)) in enable_midi_input()
45 chip->mtc_state = MIDI_IN_STATE_NORMAL; in enable_midi_input()
46 chip->comm_page->flags |= in enable_midi_input()
49 chip->comm_page->flags &= in enable_midi_input()
52 clear_handshake(chip); in enable_midi_input()
53 return send_vector(chip, DSP_VC_UPDATE_FLAGS); in enable_midi_input()
60 static int write_midi(struct echoaudio *chip, u8 *data, int bytes) in write_midi() argument
65 if (wait_handshake(chip)) in write_midi()
90 mtc_process_data(struct echoaudio * chip,short midi_byte) mtc_process_data() argument
116 midi_service_irq(struct echoaudio * chip) midi_service_irq() argument
156 struct echoaudio *chip = substream->rmidi->private_data; snd_echo_midi_input_open() local
167 struct echoaudio *chip = substream->rmidi->private_data; snd_echo_midi_input_trigger() local
181 struct echoaudio *chip = substream->rmidi->private_data; snd_echo_midi_input_close() local
191 struct echoaudio *chip = substream->rmidi->private_data; snd_echo_midi_output_open() local
203 struct echoaudio *chip = timer_container_of(chip, t, timer); snd_echo_midi_output_write() local
253 struct echoaudio *chip = substream->rmidi->private_data; snd_echo_midi_output_trigger() local
282 struct echoaudio *chip = substream->rmidi->private_data; snd_echo_midi_output_close() local
306 snd_echo_midi_create(struct snd_card * card,struct echoaudio * chip) snd_echo_midi_create() argument
[all...]
/linux/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
289 snd_pmac_pcm_pointer(struct snd_pmac * chip,struct pmac_stream * rec,struct snd_pcm_substream * subs) snd_pmac_pcm_pointer() argument
315 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_prepare() local
322 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_trigger() local
328 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_pointer() local
339 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_prepare() local
346 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_trigger() local
352 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_pointer() local
427 snd_pmac_pcm_update(struct snd_pmac * chip,struct pmac_stream * rec) snd_pmac_pcm_update() argument
548 snd_pmac_pcm_open(struct snd_pmac * chip,struct pmac_stream * rec,struct snd_pcm_substream * subs) snd_pmac_pcm_open() argument
597 snd_pmac_pcm_close(struct snd_pmac * chip,struct pmac_stream * rec,struct snd_pcm_substream * subs) snd_pmac_pcm_close() argument
617 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_open() local
625 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_open() local
633 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_playback_close() local
640 struct snd_pmac *chip = snd_pcm_substream_chip(subs); snd_pmac_capture_close() local
664 snd_pmac_pcm_new(struct snd_pmac * chip) snd_pmac_pcm_new() argument
703 snd_pmac_dbdma_reset(struct snd_pmac * chip) snd_pmac_dbdma_reset() argument
715 snd_pmac_beep_dma_start(struct snd_pmac * chip,int bytes,unsigned long addr,int speed) snd_pmac_beep_dma_start() argument
733 snd_pmac_beep_dma_stop(struct snd_pmac * chip) snd_pmac_beep_dma_stop() argument
747 struct snd_pmac *chip = devid; snd_pmac_tx_intr() local
756 struct snd_pmac *chip = devid; snd_pmac_rx_intr() local
765 struct snd_pmac *chip = devid; snd_pmac_ctrl_intr() local
787 snd_pmac_sound_feature(struct snd_pmac * chip,int enable) snd_pmac_sound_feature() argument
797 snd_pmac_free(struct snd_pmac * chip) snd_pmac_free() argument
853 struct snd_pmac *chip = device->device_data; snd_pmac_dev_free() local
862 detect_byte_swap(struct snd_pmac * chip) detect_byte_swap() argument
888 snd_pmac_detect(struct snd_pmac * chip) snd_pmac_detect() argument
1071 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); pmac_auto_mute_get() local
1079 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); pmac_auto_mute_put() local
1092 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); pmac_hp_detect_get() local
1115 snd_pmac_add_automute(struct snd_pmac * chip) snd_pmac_add_automute() argument
1135 struct snd_pmac *chip; snd_pmac_new() local
1322 snd_pmac_suspend(struct snd_pmac * chip) snd_pmac_suspend() argument
1341 snd_pmac_resume(struct snd_pmac * chip) snd_pmac_resume() argument
[all...]
/linux/drivers/mtd/nand/raw/ !
H A Dnand_legacy.c23 * nand_read_byte - [DEFAULT] read one byte from the chip
24 * @chip: NAND chip object
28 static uint8_t nand_read_byte(struct nand_chip *chip) in nand_read_byte() argument
30 return readb(chip->legacy.IO_ADDR_R); in nand_read_byte()
34 * nand_read_byte16 - [DEFAULT] read one byte endianness aware from the chip
35 * @chip: NAND chip object
40 static uint8_t nand_read_byte16(struct nand_chip *chip) in nand_read_byte16() argument
42 return (uint8_t) cpu_to_le16(readw(chip in nand_read_byte16()
52 nand_select_chip(struct nand_chip * chip,int chipnr) nand_select_chip() argument
74 nand_write_byte(struct nand_chip * chip,uint8_t byte) nand_write_byte() argument
86 nand_write_byte16(struct nand_chip * chip,uint8_t byte) nand_write_byte16() argument
117 nand_write_buf(struct nand_chip * chip,const uint8_t * buf,int len) nand_write_buf() argument
130 nand_read_buf(struct nand_chip * chip,uint8_t * buf,int len) nand_read_buf() argument
143 nand_write_buf16(struct nand_chip * chip,const uint8_t * buf,int len) nand_write_buf16() argument
159 nand_read_buf16(struct nand_chip * chip,uint8_t * buf,int len) nand_read_buf16() argument
174 panic_nand_wait_ready(struct nand_chip * chip,unsigned long timeo) panic_nand_wait_ready() argument
193 nand_wait_ready(struct nand_chip * chip) nand_wait_ready() argument
221 nand_wait_status_ready(struct nand_chip * chip,unsigned long timeo) nand_wait_status_ready() argument
250 nand_command(struct nand_chip * chip,unsigned int command,int column,int page_addr) nand_command() argument
356 nand_ccs_delay(struct nand_chip * chip) nand_ccs_delay() argument
389 nand_command_lp(struct nand_chip * chip,unsigned int command,int column,int page_addr) nand_command_lp() argument
520 nand_get_set_features_notsupp(struct nand_chip * chip,int addr,u8 * subfeature_param) nand_get_set_features_notsupp() argument
533 nand_wait(struct nand_chip * chip) nand_wait() argument
581 nand_legacy_set_defaults(struct nand_chip * chip) nand_legacy_set_defaults() argument
614 nand_legacy_adjust_cmdfunc(struct nand_chip * chip) nand_legacy_adjust_cmdfunc() argument
623 nand_legacy_check_hooks(struct nand_chip * chip) nand_legacy_check_hooks() argument
[all...]
/linux/drivers/usb/typec/tcpm/ !
H A Dfusb302.c39 * for the current capability offered by the SRC. As FUSB302 chip fires
93 /* lock for sharing chip states */
96 /* chip status */
129 static bool fusb302_log_full(struct fusb302_chip *chip) in fusb302_log_full() argument
131 return chip->logbuffer_tail == in fusb302_log_full()
132 (chip->logbuffer_head + 1) % LOG_BUFFER_ENTRIES; in fusb302_log_full()
136 static void _fusb302_log(struct fusb302_chip *chip, const char *fmt, in _fusb302_log() argument
143 if (!chip->logbuffer[chip->logbuffer_head]) { in _fusb302_log()
144 chip in _fusb302_log()
184 fusb302_log(struct fusb302_chip * chip,const char * fmt,...) fusb302_log() argument
195 struct fusb302_chip *chip = s->private; fusb302_debug_show() local
212 fusb302_debugfs_init(struct fusb302_chip * chip) fusb302_debugfs_init() argument
223 fusb302_debugfs_exit(struct fusb302_chip * chip) fusb302_debugfs_exit() argument
230 fusb302_log(const struct fusb302_chip * chip,const char * fmt,...) fusb302_log() argument
232 fusb302_debugfs_init(const struct fusb302_chip * chip) fusb302_debugfs_init() argument
233 fusb302_debugfs_exit(const struct fusb302_chip * chip) fusb302_debugfs_exit() argument
237 fusb302_i2c_write(struct fusb302_chip * chip,u8 address,u8 data) fusb302_i2c_write() argument
250 fusb302_i2c_block_write(struct fusb302_chip * chip,u8 address,u8 length,const u8 * data) fusb302_i2c_block_write() argument
267 fusb302_i2c_read(struct fusb302_chip * chip,u8 address,u8 * data) fusb302_i2c_read() argument
280 fusb302_i2c_block_read(struct fusb302_chip * chip,u8 address,u8 length,u8 * data) fusb302_i2c_block_read() argument
305 fusb302_i2c_mask_write(struct fusb302_chip * chip,u8 address,u8 mask,u8 value) fusb302_i2c_mask_write() argument
323 fusb302_i2c_set_bits(struct fusb302_chip * chip,u8 address,u8 set_bits) fusb302_i2c_set_bits() argument
329 fusb302_i2c_clear_bits(struct fusb302_chip * chip,u8 address,u8 clear_bits) fusb302_i2c_clear_bits() argument
335 fusb302_sw_reset(struct fusb302_chip * chip) fusb302_sw_reset() argument
349 fusb302_enable_tx_auto_retries(struct fusb302_chip * chip,u8 retry_count) fusb302_enable_tx_auto_retries() argument
363 fusb302_init_interrupt(struct fusb302_chip * chip) fusb302_init_interrupt() argument
385 fusb302_set_power_mode(struct fusb302_chip * chip,u8 power_mode) fusb302_set_power_mode() argument
396 struct fusb302_chip *chip = container_of(dev, struct fusb302_chip, tcpm_init() local
427 struct fusb302_chip *chip = container_of(dev, struct fusb302_chip, tcpm_get_vbus() local
440 struct fusb302_chip *chip = container_of(dev, struct fusb302_chip, tcpm_get_current_limit() local
470 fusb302_set_src_current(struct fusb302_chip * chip,enum src_current_status status) fusb302_set_src_current() argument
499 fusb302_set_toggling(struct fusb302_chip * chip,enum toggling_mode mode) fusb302_set_toggling() argument
601 struct fusb302_chip *chip = container_of(dev, struct fusb302_chip, tcpm_set_cc() local
708 struct fusb302_chip *chip = container_of(dev, struct fusb302_chip, tcpm_get_cc() local
729 struct fusb302_chip *chip = container_of(dev, struct fusb302_chip, tcpm_set_vconn() local
760 struct fusb302_chip *chip = container_of(dev, struct fusb302_chip, tcpm_set_vbus() local
791 fusb302_pd_tx_flush(struct fusb302_chip * chip) fusb302_pd_tx_flush() argument
797 fusb302_pd_rx_flush(struct fusb302_chip * chip) fusb302_pd_rx_flush() argument
803 fusb302_pd_set_auto_goodcrc(struct fusb302_chip * chip,bool on) fusb302_pd_set_auto_goodcrc() argument
812 fusb302_pd_set_interrupts(struct fusb302_chip * chip,bool on) fusb302_pd_set_interrupts() argument
840 struct fusb302_chip *chip = container_of(dev, struct fusb302_chip, tcpm_set_pd_rx() local
894 struct fusb302_chip *chip = container_of(dev, struct fusb302_chip, tcpm_set_roles() local
926 struct fusb302_chip *chip = container_of(dev, struct fusb302_chip, tcpm_start_toggling() local
963 fusb302_pd_send_message(struct fusb302_chip * chip,const struct pd_message * msg) fusb302_pd_send_message() argument
1012 fusb302_pd_send_hardreset(struct fusb302_chip * chip) fusb302_pd_send_hardreset() argument
1032 struct fusb302_chip *chip = container_of(dev, struct fusb302_chip, tcpm_pd_transmit() local
1080 struct fusb302_chip *chip = container_of(work, struct fusb302_chip, fusb302_bc_lvl_handler_work() local
1147 fusb302_set_cc_polarity_and_pull(struct fusb302_chip * chip,enum typec_cc_polarity cc_polarity,bool pull_up,bool pull_down) fusb302_set_cc_polarity_and_pull() argument
1188 fusb302_handle_togdone_snk(struct fusb302_chip * chip,u8 togdone_result) fusb302_handle_togdone_snk() argument
1251 fusb302_get_src_cc_status(struct fusb302_chip * chip,enum typec_cc_polarity cc_polarity,enum typec_cc_status * cc) fusb302_get_src_cc_status() argument
1306 fusb302_handle_togdone_src(struct fusb302_chip * chip,u8 togdone_result) fusb302_handle_togdone_src() argument
1392 fusb302_handle_togdone(struct fusb302_chip * chip) fusb302_handle_togdone() argument
1424 fusb302_pd_reset(struct fusb302_chip * chip) fusb302_pd_reset() argument
1430 fusb302_pd_read_message(struct fusb302_chip * chip,struct pd_message * msg) fusb302_pd_read_message() argument
1485 struct fusb302_chip *chip = dev_id; fusb302_irq_intn() local
1500 struct fusb302_chip *chip = container_of(work, struct fusb302_chip, fusb302_irq_work() local
1632 init_gpio(struct fusb302_chip * chip) init_gpio() argument
1686 struct fusb302_chip *chip; fusb302_probe() local
1779 struct fusb302_chip *chip = i2c_get_clientdata(client); fusb302_remove() local
1792 struct fusb302_chip *chip = dev->driver_data; fusb302_pm_suspend() local
1806 struct fusb302_chip *chip = dev->driver_data; fusb302_pm_resume() local
[all...]
/linux/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
202 snd_sb16_csp_playback_prepare(chip,runtime) global() argument
203 snd_sb16_csp_capture_prepare(chip,runtime) global() argument
204 snd_sb16_csp_update(chip) global() argument
205 snd_sb16_csp_playback_open(chip,runtime) global() argument
206 snd_sb16_csp_playback_close(chip) global() argument
207 snd_sb16_csp_capture_open(chip,runtime) global() argument
208 snd_sb16_csp_capture_close(chip) global() 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
736 snd_sb16dsp_configure(struct snd_sb * chip) snd_sb16dsp_configure() argument
846 snd_sb16dsp_pcm(struct snd_sb * chip,int device) snd_sb16dsp_pcm() argument
[all...]
H A Dsb8_midi.c23 irqreturn_t snd_sb8dsp_midi_interrupt(struct snd_sb *chip) in snd_sb8dsp_midi_interrupt() argument
29 if (!chip) in snd_sb8dsp_midi_interrupt()
32 rmidi = chip->rmidi; in snd_sb8dsp_midi_interrupt()
34 inb(SBP(chip, DATA_AVAIL)); /* ack interrupt */ in snd_sb8dsp_midi_interrupt()
38 spin_lock(&chip->midi_input_lock); in snd_sb8dsp_midi_interrupt()
40 if (inb(SBP(chip, DATA_AVAIL)) & 0x80) { in snd_sb8dsp_midi_interrupt()
41 byte = inb(SBP(chip, READ)); in snd_sb8dsp_midi_interrupt()
42 if (chip->open & SB_OPEN_MIDI_INPUT_TRIGGER) { in snd_sb8dsp_midi_interrupt()
43 snd_rawmidi_receive(chip->midi_substream_input, &byte, 1); in snd_sb8dsp_midi_interrupt()
47 spin_unlock(&chip in snd_sb8dsp_midi_interrupt()
54 struct snd_sb *chip; snd_sb8dsp_midi_input_open() local
81 struct snd_sb *chip; snd_sb8dsp_midi_output_open() local
108 struct snd_sb *chip; snd_sb8dsp_midi_input_close() local
126 struct snd_sb *chip; snd_sb8dsp_midi_output_close() local
145 struct snd_sb *chip; snd_sb8dsp_midi_input_trigger() local
168 struct snd_sb *chip; snd_sb8dsp_midi_output_write() local
203 struct snd_sb *chip = timer_container_of(chip, t, midi_timer); snd_sb8dsp_midi_output_timer() local
216 struct snd_sb *chip; snd_sb8dsp_midi_output_trigger() local
250 snd_sb8dsp_midi(struct snd_sb * chip,int device) snd_sb8dsp_midi() argument
[all...]
/linux/sound/drivers/vx/ !
H A Dvx_core.c39 int snd_vx_check_reg_bit(struct vx_core *chip, int reg, int mask, int bit, int time) in snd_vx_check_reg_bit() argument
51 if ((snd_vx_inb(chip, reg) & mask) == bit) in snd_vx_check_reg_bit()
55 dev_dbg(chip->card->dev, in snd_vx_check_reg_bit()
57 reg_names[reg], mask, snd_vx_inb(chip, reg)); in snd_vx_check_reg_bit()
71 static int vx_send_irq_dsp(struct vx_core *chip, int num) in vx_send_irq_dsp() argument
76 if (snd_vx_check_reg_bit(chip, VX_CVR, CVR_HC, 0, 200) < 0) in vx_send_irq_dsp()
80 if (vx_has_new_dsp(chip)) in vx_send_irq_dsp()
82 vx_outb(chip, CVR, (nirq >> 1) | CVR_HC); in vx_send_irq_dsp()
92 static int vx_reset_chk(struct vx_core *chip) in vx_reset_chk() argument
95 if (vx_send_irq_dsp(chip, IRQ_RESET_CH in vx_reset_chk()
111 vx_transfer_end(struct vx_core * chip,int cmd) vx_transfer_end() argument
155 vx_read_status(struct vx_core * chip,struct vx_rmh * rmh) vx_read_status() argument
236 vx_send_msg_nolock(struct vx_core * chip,struct vx_rmh * rmh) vx_send_msg_nolock() argument
345 vx_send_msg(struct vx_core * chip,struct vx_rmh * rmh) vx_send_msg() argument
367 vx_send_rih_nolock(struct vx_core * chip,int cmd) vx_send_rih_nolock() argument
405 vx_send_rih(struct vx_core * chip,int cmd) vx_send_rih() argument
422 snd_vx_load_boot_image(struct vx_core * chip,const struct firmware * boot) snd_vx_load_boot_image() argument
479 vx_test_irq_src(struct vx_core * chip,unsigned int * ret) vx_test_irq_src() argument
500 struct vx_core *chip = dev; snd_vx_threaded_irq_handler() local
542 struct vx_core *chip = dev; snd_vx_irq_handler() local
556 vx_reset_board(struct vx_core * chip,int cold_reset) vx_reset_board() argument
598 struct vx_core *chip = entry->private_data; vx_proc_read() local
639 vx_proc_init(struct vx_core * chip) vx_proc_init() argument
650 snd_vx_dsp_boot(struct vx_core * chip,const struct firmware * boot) snd_vx_dsp_boot() argument
673 snd_vx_dsp_load(struct vx_core * chip,const struct firmware * dsp) snd_vx_dsp_load() argument
727 snd_vx_suspend(struct vx_core * chip) snd_vx_suspend() argument
740 snd_vx_resume(struct vx_core * chip) snd_vx_resume() argument
791 struct vx_core *chip; snd_vx_create() local
[all...]
H A Dvx_uer.c20 static int vx_modify_board_clock(struct vx_core *chip, int sync) in vx_modify_board_clock() argument
28 return vx_send_msg(chip, &rmh); in vx_modify_board_clock()
34 static int vx_modify_board_inputs(struct vx_core *chip) in vx_modify_board_inputs() argument
40 return vx_send_msg(chip, &rmh); in vx_modify_board_inputs()
48 static int vx_read_one_cbit(struct vx_core *chip, int index) in vx_read_one_cbit() argument
52 mutex_lock(&chip->lock); in vx_read_one_cbit()
53 if (chip->type >= VX_TYPE_VXPOCKET) { in vx_read_one_cbit()
54 vx_outb(chip, CSUER, 1); /* read */ in vx_read_one_cbit()
55 vx_outb(chip, RUER, index & XX_UER_CBITS_OFFSET_MASK); in vx_read_one_cbit()
56 val = (vx_inb(chip, RUE in vx_read_one_cbit()
71 vx_write_one_cbit(struct vx_core * chip,int index,int val) vx_write_one_cbit() argument
92 vx_read_uer_status(struct vx_core * chip,unsigned int * mode) vx_read_uer_status() argument
148 vx_calc_clock_from_freq(struct vx_core * chip,int freq) vx_calc_clock_from_freq() argument
177 vx_change_clock_source(struct vx_core * chip,int source) vx_change_clock_source() argument
193 vx_set_internal_clock(struct vx_core * chip,unsigned int freq) vx_set_internal_clock() argument
217 vx_set_iec958_status(struct vx_core * chip,unsigned int bits) vx_set_iec958_status() argument
232 vx_set_clock(struct vx_core * chip,unsigned int freq) vx_set_clock() argument
274 vx_change_frequency(struct vx_core * chip) vx_change_frequency() argument
[all...]
/linux/tools/testing/selftests/gpio/ !
H A Dgpio-sim.sh46 rmdir $CONFIGFS_DIR/$CHIP || fail "Unable to remove the chip"
67 echo $LABEL > $CONFIGFS_DIR/$CHIP/$BANK/label || fail "Unable to set the chip label"
93 echo 1 > $CONFIGFS_DIR/$CHIP/live || fail "Unable to enable the chip"
99 echo 0 > $CONFIGFS_DIR/$CHIP/live || fail "Unable to disable the chip"
114 fail "unable to read the chip name from configfs"
128 $BASE_DIR/gpio-chip-info /dev/`configfs_chip_name $CHIP $BANK` num-lines || \
136 $BASE_DIR/gpio-chip-info /dev/`configfs_chip_name $CHIP $BANK` label || \
137 fail "unable to read the chip label from the character device"
181 create_chip chip
182 create_bank chip ban
[all...]
/linux/sound/sh/ !
H A Dsh_dac_audio.c53 static void dac_audio_start_timer(struct snd_sh_dac *chip) in dac_audio_start_timer() argument
55 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in dac_audio_start_timer()
59 static void dac_audio_stop_timer(struct snd_sh_dac *chip) in dac_audio_stop_timer() argument
61 hrtimer_cancel(&chip->hrtimer); in dac_audio_stop_timer()
64 static void dac_audio_reset(struct snd_sh_dac *chip) in dac_audio_reset() argument
66 dac_audio_stop_timer(chip); in dac_audio_reset()
67 chip->buffer_begin = chip->buffer_end = chip in dac_audio_reset()
72 dac_audio_set_rate(struct snd_sh_dac * chip) dac_audio_set_rate() argument
100 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_open() local
117 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_close() local
129 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_prepare() local
140 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_trigger() local
164 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_copy() local
183 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_silence() local
199 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_pointer() local
216 snd_sh_dac_pcm(struct snd_sh_dac * chip,int device) snd_sh_dac_pcm() argument
246 snd_sh_dac_free(struct snd_sh_dac * chip) snd_sh_dac_free() argument
257 struct snd_sh_dac *chip = device->device_data; snd_sh_dac_dev_free() local
264 struct snd_sh_dac *chip = container_of(handle, struct snd_sh_dac, sh_dac_audio_timer() local
300 struct snd_sh_dac *chip; snd_sh_dac_create() local
343 struct snd_sh_dac *chip; snd_sh_dac_probe() local
[all...]
/linux/drivers/misc/ !
H A Dapds990x.c103 /* Reverse chip factors for threshold calculation */
186 static int apds990x_read_byte(struct apds990x_chip *chip, u8 reg, u8 *data) in apds990x_read_byte() argument
188 struct i2c_client *client = chip->client; in apds990x_read_byte()
199 static int apds990x_read_word(struct apds990x_chip *chip, u8 reg, u16 *data) in apds990x_read_word() argument
201 struct i2c_client *client = chip->client; in apds990x_read_word()
212 static int apds990x_write_byte(struct apds990x_chip *chip, u8 reg, u8 data) in apds990x_write_byte() argument
214 struct i2c_client *client = chip->client; in apds990x_write_byte()
224 static int apds990x_write_word(struct apds990x_chip *chip, u8 reg, u16 data) in apds990x_write_word() argument
226 struct i2c_client *client = chip->client; in apds990x_write_word()
236 static int apds990x_mode_on(struct apds990x_chip *chip) in apds990x_mode_on() argument
248 apds990x_lux_to_threshold(struct apds990x_chip * chip,u32 lux) apds990x_lux_to_threshold() argument
306 apds990x_set_atime(struct apds990x_chip * chip,u32 time_ms) apds990x_set_atime() argument
319 apds990x_refresh_pthres(struct apds990x_chip * chip,int data) apds990x_refresh_pthres() argument
344 apds990x_refresh_athres(struct apds990x_chip * chip) apds990x_refresh_athres() argument
360 apds990x_force_a_refresh(struct apds990x_chip * chip) apds990x_force_a_refresh() argument
368 apds990x_force_p_refresh(struct apds990x_chip * chip) apds990x_force_p_refresh() argument
376 apds990x_calc_again(struct apds990x_chip * chip) apds990x_calc_again() argument
431 apds990x_get_lux(struct apds990x_chip * chip,int clear,int ir) apds990x_get_lux() argument
452 apds990x_ack_int(struct apds990x_chip * chip,u8 mode) apds990x_ack_int() argument
476 struct apds990x_chip *chip = data; apds990x_irq() local
536 apds990x_configure(struct apds990x_chip * chip) apds990x_configure() argument
566 apds990x_detect(struct apds990x_chip * chip) apds990x_detect() argument
598 apds990x_chip_on(struct apds990x_chip * chip) apds990x_chip_on() argument
615 apds990x_chip_off(struct apds990x_chip * chip) apds990x_chip_off() argument
625 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_lux_show() local
673 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_lux_calib_show() local
682 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_lux_calib_store() local
713 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_rate_show() local
718 apds990x_set_arate(struct apds990x_chip * chip,int rate) apds990x_set_arate() argument
747 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_rate_store() local
773 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_prox_show() local
797 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_prox_enable_show() local
806 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_prox_enable_store() local
838 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_prox_reporting_mode_show() local
848 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_prox_reporting_mode_store() local
876 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_lux_thresh_above_show() local
884 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_lux_thresh_below_show() local
889 apds990x_set_lux_thresh(struct apds990x_chip * chip,u32 * target,const char * buf) apds990x_set_lux_thresh() argument
919 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_lux_thresh_above_store() local
931 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_lux_thresh_below_store() local
950 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_prox_threshold_show() local
959 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_prox_threshold_store() local
994 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_power_state_store() local
1023 struct apds990x_chip *chip = dev_get_drvdata(dev); apds990x_chip_id_show() local
1056 struct apds990x_chip *chip; apds990x_probe() local
1191 struct apds990x_chip *chip = i2c_get_clientdata(client); apds990x_remove() local
1215 struct apds990x_chip *chip = i2c_get_clientdata(client); apds990x_suspend() local
1224 struct apds990x_chip *chip = i2c_get_clientdata(client); apds990x_resume() local
1240 struct apds990x_chip *chip = i2c_get_clientdata(client); apds990x_runtime_suspend() local
1249 struct apds990x_chip *chip = i2c_get_clientdata(client); apds990x_runtime_resume() local
[all...]
H A Dbh1770glc.c163 * Supported stand alone rates in ms from chip data sheet
170 * Supported stand alone rates in ms from chip data sheet
176 * interrupt control functions are called while keeping chip->mutex
179 static inline int bh1770_lux_interrupt_control(struct bh1770_chip *chip, in bh1770_lux_interrupt_control() argument
182 chip->int_mode_lux = lux; in bh1770_lux_interrupt_control()
184 return i2c_smbus_write_byte_data(chip->client, in bh1770_lux_interrupt_control()
186 (lux << 1) | chip->int_mode_prox); in bh1770_lux_interrupt_control()
189 static inline int bh1770_prox_interrupt_control(struct bh1770_chip *chip, in bh1770_prox_interrupt_control() argument
192 chip->int_mode_prox = ps; in bh1770_prox_interrupt_control()
193 return i2c_smbus_write_byte_data(chip in bh1770_prox_interrupt_control()
199 bh1770_lux_rate(struct bh1770_chip * chip,int rate_index) bh1770_lux_rate() argument
214 bh1770_prox_rate(struct bh1770_chip * chip,int mode) bh1770_prox_rate() argument
227 bh1770_led_cfg(struct bh1770_chip * chip) bh1770_led_cfg() argument
243 bh1770_psraw_to_adjusted(struct bh1770_chip * chip,u8 psraw) bh1770_psraw_to_adjusted() argument
253 bh1770_psadjusted_to_raw(struct bh1770_chip * chip,u8 ps) bh1770_psadjusted_to_raw() argument
271 bh1770_prox_set_threshold(struct bh1770_chip * chip) bh1770_prox_set_threshold() argument
286 bh1770_lux_raw_to_adjusted(struct bh1770_chip * chip,u16 raw) bh1770_lux_raw_to_adjusted() argument
293 bh1770_lux_adjusted_to_raw(struct bh1770_chip * chip,u16 adjusted) bh1770_lux_adjusted_to_raw() argument
300 bh1770_lux_update_thresholds(struct bh1770_chip * chip,u16 threshold_hi,u16 threshold_lo) bh1770_lux_update_thresholds() argument
340 bh1770_lux_get_result(struct bh1770_chip * chip) bh1770_lux_get_result() argument
360 bh1770_get_corr_value(struct bh1770_chip * chip) bh1770_get_corr_value() argument
372 bh1770_lux_read_result(struct bh1770_chip * chip) bh1770_lux_read_result() argument
382 bh1770_chip_on(struct bh1770_chip * chip) bh1770_chip_on() argument
413 bh1770_chip_off(struct bh1770_chip * chip) bh1770_chip_off() argument
425 bh1770_prox_mode_control(struct bh1770_chip * chip) bh1770_prox_mode_control() argument
448 bh1770_prox_read_result(struct bh1770_chip * chip) bh1770_prox_read_result() argument
505 bh1770_detect(struct bh1770_chip * chip) bh1770_detect() argument
559 struct bh1770_chip *chip = bh1770_prox_work() local
570 struct bh1770_chip *chip = data; bh1770_irq() local
633 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_power_state_store() local
681 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_lux_result_show() local
711 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_prox_enable_store() local
742 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_prox_enable_show() local
754 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_prox_result_show() local
786 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_get_prox_rate_above() local
793 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_get_prox_rate_below() local
811 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_set_prox_rate_above() local
829 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_set_prox_rate_below() local
846 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_get_prox_thres() local
854 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_set_prox_thres() local
877 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_prox_persistence_show() local
886 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_prox_persistence_store() local
905 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_prox_abs_thres_show() local
913 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_prox_abs_thres_store() local
932 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_chip_id_show() local
945 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_lux_calib_show() local
958 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_lux_calib_store() local
1001 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_get_lux_rate() local
1009 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_set_lux_rate() local
1035 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_get_lux_thresh_above() local
1042 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_get_lux_thresh_below() local
1046 bh1770_set_lux_thresh(struct bh1770_chip * chip,u16 * target,const char * buf) bh1770_set_lux_thresh() argument
1078 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_set_lux_thresh_above() local
1089 struct bh1770_chip *chip = dev_get_drvdata(dev); bh1770_set_lux_thresh_below() local
1167 struct bh1770_chip *chip; bh1770_probe() local
1284 struct bh1770_chip *chip = i2c_get_clientdata(client); bh1770_remove() local
1307 struct bh1770_chip *chip = i2c_get_clientdata(client); bh1770_suspend() local
1317 struct bh1770_chip *chip = i2c_get_clientdata(client); bh1770_resume() local
1345 struct bh1770_chip *chip = i2c_get_clientdata(client); bh1770_runtime_suspend() local
1355 struct bh1770_chip *chip = i2c_get_clientdata(client); bh1770_runtime_resume() local
[all...]
/linux/drivers/input/misc/ !
H A Dmax8997_haptic.c56 static void max8997_haptic_set_internal_duty_cycle(struct max8997_haptic *chip) in max8997_haptic_set_internal_duty_cycle() argument
58 u8 duty_index = DIV_ROUND_UP(chip->level * 64, 100); in max8997_haptic_set_internal_duty_cycle()
60 switch (chip->internal_mode_pattern) { in max8997_haptic_set_internal_duty_cycle()
62 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle()
66 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle()
70 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle()
74 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle()
82 static void max8997_haptic_configure(struct max8997_haptic *chip) in max8997_haptic_configure() argument
86 value = chip->type << MAX8997_MOTOR_TYPE_SHIFT | in max8997_haptic_configure()
87 chip in max8997_haptic_configure()
142 max8997_haptic_enable(struct max8997_haptic * chip) max8997_haptic_enable() argument
186 max8997_haptic_disable(struct max8997_haptic * chip) max8997_haptic_disable() argument
201 struct max8997_haptic *chip = max8997_haptic_play_effect_work() local
213 struct max8997_haptic *chip = input_get_drvdata(dev); max8997_haptic_play_effect() local
226 struct max8997_haptic *chip = input_get_drvdata(dev); max8997_haptic_close() local
238 struct max8997_haptic *chip; max8997_haptic_probe() local
349 struct max8997_haptic *chip = platform_get_drvdata(pdev); max8997_haptic_remove() local
363 struct max8997_haptic *chip = platform_get_drvdata(pdev); max8997_haptic_suspend() local
[all...]
/linux/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 = timer_container_of(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
238 mv88e6185_phy_ppu_read(struct mv88e6xxx_chip * chip,struct mii_bus * bus,int addr,int reg,u16 * val) mv88e6185_phy_ppu_read() argument
252 mv88e6185_phy_ppu_write(struct mv88e6xxx_chip * chip,struct mii_bus * bus,int addr,int reg,u16 val) mv88e6185_phy_ppu_write() argument
266 mv88e6xxx_phy_init(struct mv88e6xxx_chip * chip) mv88e6xxx_phy_init() argument
272 mv88e6xxx_phy_destroy(struct mv88e6xxx_chip * chip) mv88e6xxx_phy_destroy() argument
278 mv88e6xxx_phy_setup(struct mv88e6xxx_chip * chip) mv88e6xxx_phy_setup() argument
[all...]
/linux/drivers/power/supply/ !
H A Dug3105_battery.c105 static int ug3105_get_status(struct ug3105_chip *chip) in ug3105_get_status() argument
107 int full = chip->psy->battery_info->constant_charge_voltage_max_uv - in ug3105_get_status()
110 if (chip->curr > UG3105_CURR_HYST_UA) in ug3105_get_status()
113 if (chip->curr < -UG3105_CURR_HYST_UA) in ug3105_get_status()
116 if (chip->supplied && chip->ocv_avg > full) in ug3105_get_status()
124 struct ug3105_chip *chip = container_of(work, struct ug3105_chip, in ug3105_work() local
127 bool prev_supplied = chip->supplied; in ug3105_work()
128 int prev_status = chip->status; in ug3105_work()
129 int prev_volt = chip in ug3105_work()
252 struct ug3105_chip *chip = power_supply_get_drvdata(psy); ug3105_get_property() local
303 struct ug3105_chip *chip = power_supply_get_drvdata(psy); ug3105_external_power_changed() local
318 ug3105_init(struct ug3105_chip * chip) ug3105_init() argument
337 struct ug3105_chip *chip; ug3105_probe() local
392 struct ug3105_chip *chip = dev_get_drvdata(dev); ug3105_suspend() local
403 struct ug3105_chip *chip = dev_get_drvdata(dev); ug3105_resume() local
[all...]
/linux/sound/pci/ymfpci/ !
H A Dymfpci_main.c32 static void snd_ymfpci_irq_wait(struct snd_ymfpci *chip);
34 static inline void snd_ymfpci_writeb(struct snd_ymfpci *chip, u32 offset, u8 val) in snd_ymfpci_writeb() argument
36 writeb(val, chip->reg_area_virt + offset); in snd_ymfpci_writeb()
39 static inline u16 snd_ymfpci_readw(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readw() argument
41 return readw(chip->reg_area_virt + offset); in snd_ymfpci_readw()
44 static inline void snd_ymfpci_writew(struct snd_ymfpci *chip, u32 offset, u16 val) in snd_ymfpci_writew() argument
46 writew(val, chip->reg_area_virt + offset); in snd_ymfpci_writew()
49 static inline u32 snd_ymfpci_readl(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readl() argument
51 return readl(chip->reg_area_virt + offset); in snd_ymfpci_readl()
54 static inline void snd_ymfpci_writel(struct snd_ymfpci *chip, u3 argument
59 snd_ymfpci_codec_ready(struct snd_ymfpci * chip,int secondary) snd_ymfpci_codec_ready() argument
78 struct snd_ymfpci *chip = ac97->private_data; snd_ymfpci_codec_write() local
88 struct snd_ymfpci *chip = ac97->private_data; snd_ymfpci_codec_read() local
160 snd_ymfpci_hw_start(struct snd_ymfpci * chip) snd_ymfpci_hw_start() argument
174 snd_ymfpci_hw_stop(struct snd_ymfpci * chip) snd_ymfpci_hw_stop() argument
200 voice_alloc(struct snd_ymfpci * chip,enum snd_ymfpci_voice_type type,int pair,struct snd_ymfpci_voice ** rvoice) voice_alloc() argument
238 snd_ymfpci_voice_alloc(struct snd_ymfpci * chip,enum snd_ymfpci_voice_type type,int pair,struct snd_ymfpci_voice ** rvoice) snd_ymfpci_voice_alloc() argument
262 snd_ymfpci_voice_free(struct snd_ymfpci * chip,struct snd_ymfpci_voice * pvoice) snd_ymfpci_voice_free() argument
285 snd_ymfpci_pcm_interrupt(struct snd_ymfpci * chip,struct snd_ymfpci_voice * voice) snd_ymfpci_pcm_interrupt() argument
344 struct snd_ymfpci *chip = ypcm->chip; snd_ymfpci_pcm_capture_interrupt() local
375 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_trigger() local
420 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_trigger() local
584 snd_ymfpci_ac3_init(struct snd_ymfpci * chip) snd_ymfpci_ac3_init() argument
606 snd_ymfpci_ac3_done(struct snd_ymfpci * chip) snd_ymfpci_ac3_done() argument
635 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_hw_free() local
658 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_prepare() local
682 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_hw_free() local
691 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_prepare() local
735 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_pointer() local
747 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_pointer() local
756 snd_ymfpci_irq_wait(struct snd_ymfpci * chip) snd_ymfpci_irq_wait() argument
774 struct snd_ymfpci *chip = dev_id; snd_ymfpci_interrupt() local
873 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_open_1() local
901 ymfpci_open_extension(struct snd_ymfpci * chip) ymfpci_open_extension() argument
914 ymfpci_close_extension(struct snd_ymfpci * chip) ymfpci_close_extension() argument
927 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_open() local
950 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_spdif_open() local
979 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_4ch_open() local
1001 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_open() local
1048 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_close() local
1062 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_spdif_close() local
1079 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_4ch_close() local
1092 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_close() local
1122 snd_ymfpci_pcm(struct snd_ymfpci * chip,int device) snd_ymfpci_pcm() argument
1156 snd_ymfpci_pcm2(struct snd_ymfpci * chip,int device) snd_ymfpci_pcm2() argument
1190 snd_ymfpci_pcm_spdif(struct snd_ymfpci * chip,int device) snd_ymfpci_pcm_spdif() argument
1231 snd_ymfpci_pcm_4ch(struct snd_ymfpci * chip,int device) snd_ymfpci_pcm_4ch() argument
1265 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_default_get() local
1278 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_default_put() local
1312 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_mask_get() local
1340 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_stream_get() local
1353 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_stream_put() local
1387 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_drec_source_get() local
1402 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_drec_source_put() local
1440 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_get_single() local
1458 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_put_single() local
1506 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_get_double() local
1523 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_put_double() local
1547 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_put_nativedacvol() local
1571 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_get_dup4ch() local
1578 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_put_dup4ch() local
1629 snd_ymfpci_get_gpio_out(struct snd_ymfpci * chip,int pin) snd_ymfpci_get_gpio_out() argument
1649 snd_ymfpci_set_gpio_out(struct snd_ymfpci * chip,int pin,int enable) snd_ymfpci_set_gpio_out() argument
1670 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_gpio_sw_get() local
1678 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_gpio_sw_put() local
1715 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_pcm_vol_get() local
1726 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_pcm_vol_put() local
1770 struct snd_ymfpci *chip = bus->private_data; snd_ymfpci_mixer_free_ac97_bus() local
1776 struct snd_ymfpci *chip = ac97->private_data; snd_ymfpci_mixer_free_ac97() local
1780 snd_ymfpci_mixer(struct snd_ymfpci * chip,int rear_switch) snd_ymfpci_mixer() argument
1886 struct snd_ymfpci *chip; snd_ymfpci_timer_start() local
1911 struct snd_ymfpci *chip; snd_ymfpci_timer_stop() local
1938 snd_ymfpci_timer(struct snd_ymfpci * chip,int device) snd_ymfpci_timer() argument
1967 struct snd_ymfpci *chip = entry->private_data; snd_ymfpci_proc_read() local
1975 snd_ymfpci_proc_init(struct snd_card * card,struct snd_ymfpci * chip) snd_ymfpci_proc_init() argument
2002 snd_ymfpci_enable_dsp(struct snd_ymfpci * chip) snd_ymfpci_enable_dsp() argument
2007 snd_ymfpci_disable_dsp(struct snd_ymfpci * chip) snd_ymfpci_disable_dsp() argument
2022 snd_ymfpci_request_firmware(struct snd_ymfpci * chip) snd_ymfpci_request_firmware() argument
2061 snd_ymfpci_download_image(struct snd_ymfpci * chip) snd_ymfpci_download_image() argument
2094 snd_ymfpci_memalloc(struct snd_ymfpci * chip) snd_ymfpci_memalloc() argument
2197 struct snd_ymfpci *chip = card->private_data; snd_ymfpci_free() local
2226 struct snd_ymfpci *chip = card->private_data; snd_ymfpci_suspend() local
2254 struct snd_ymfpci *chip = card->private_data; snd_ymfpci_resume() local
2291 struct snd_ymfpci *chip = card->private_data; snd_ymfpci_create() local
[all...]
/linux/sound/isa/es1688/ !
H A Des1688_lib.c4 * Routines for control of ESS ES1688/688/488 chip
24 static int snd_es1688_dsp_command(struct snd_es1688 *chip, unsigned char val) in snd_es1688_dsp_command() argument
29 if ((inb(ES1688P(chip, STATUS)) & 0x80) == 0) { in snd_es1688_dsp_command()
30 outb(val, ES1688P(chip, COMMAND)); in snd_es1688_dsp_command()
33 dev_dbg(chip->card->dev, "%s: timeout (0x%x)\n", __func__, val); in snd_es1688_dsp_command()
37 static int snd_es1688_dsp_get_byte(struct snd_es1688 *chip) in snd_es1688_dsp_get_byte() argument
42 if (inb(ES1688P(chip, DATA_AVAIL)) & 0x80) in snd_es1688_dsp_get_byte()
43 return inb(ES1688P(chip, READ)); in snd_es1688_dsp_get_byte()
44 dev_dbg(chip->card->dev, "es1688 get byte failed: 0x%lx = 0x%x!!!\n", in snd_es1688_dsp_get_byte()
45 ES1688P(chip, DATA_AVAI in snd_es1688_dsp_get_byte()
49 snd_es1688_write(struct snd_es1688 * chip,unsigned char reg,unsigned char data) snd_es1688_write() argument
57 snd_es1688_read(struct snd_es1688 * chip,unsigned char reg) snd_es1688_read() argument
67 snd_es1688_mixer_write(struct snd_es1688 * chip,unsigned char reg,unsigned char data) snd_es1688_mixer_write() argument
76 snd_es1688_mixer_read(struct snd_es1688 * chip,unsigned char reg) snd_es1688_mixer_read() argument
87 snd_es1688_reset(struct snd_es1688 * chip) snd_es1688_reset() argument
106 snd_es1688_probe(struct snd_es1688 * chip) snd_es1688_probe() argument
185 snd_es1688_init(struct snd_es1688 * chip,int enable) snd_es1688_init() argument
298 snd_es1688_set_rate(struct snd_es1688 * chip,struct snd_pcm_substream * substream) snd_es1688_set_rate() argument
314 snd_es1688_trigger(struct snd_es1688 * chip,int cmd,unsigned char value) snd_es1688_trigger() argument
343 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); snd_es1688_playback_prepare() local
397 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); snd_es1688_playback_trigger() local
404 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); snd_es1688_capture_prepare() local
454 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); snd_es1688_capture_trigger() local
460 struct snd_es1688 *chip = dev_id; snd_es1688_interrupt() local
473 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); snd_es1688_playback_pointer() local
484 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); snd_es1688_capture_pointer() local
539 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); snd_es1688_playback_open() local
553 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); snd_es1688_capture_open() local
567 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); snd_es1688_playback_close() local
575 struct snd_es1688 *chip = snd_pcm_substream_chip(substream); snd_es1688_capture_close() local
581 snd_es1688_free(struct snd_es1688 * chip) snd_es1688_free() argument
597 struct snd_es1688 *chip = device->device_data; snd_es1688_dev_free() local
601 snd_es1688_chip_id(struct snd_es1688 * chip) snd_es1688_chip_id() argument
609 snd_es1688_create(struct snd_card * card,struct snd_es1688 * chip,unsigned long port,unsigned long mpu_port,int irq,int mpu_irq,int dma8,unsigned short hardware) snd_es1688_create() argument
695 snd_es1688_pcm(struct snd_card * card,struct snd_es1688 * chip,int device) snd_es1688_pcm() argument
733 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol); snd_es1688_get_mux() local
740 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol); snd_es1688_put_mux() local
776 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol); snd_es1688_get_single() local
793 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol); snd_es1688_put_single() local
835 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol); snd_es1688_get_double() local
869 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol); snd_es1688_put_double() local
965 snd_es1688_mixer(struct snd_card * card,struct snd_es1688 * chip) snd_es1688_mixer() argument
[all...]
/linux/sound/pci/nm256/ !
H A Dnm256.c104 #define NM_ACK_INT(chip, X) snd_nm256_writew(chip, NM_INT_REG, (X) << 1) argument
121 #define NM2_ACK_INT(chip, X) snd_nm256_writel(chip, NM_INT_REG, (X)) argument
173 struct nm256 *chip; member
178 u32 buf; /* offset from chip->buffer */
262 snd_nm256_readb(struct nm256 *chip, int offset) in snd_nm256_readb() argument
264 return readb(chip->cport + offset); in snd_nm256_readb()
268 snd_nm256_readw(struct nm256 *chip, int offset) in snd_nm256_readw() argument
270 return readw(chip in snd_nm256_readw()
274 snd_nm256_readl(struct nm256 * chip,int offset) snd_nm256_readl() argument
280 snd_nm256_writeb(struct nm256 * chip,int offset,u8 val) snd_nm256_writeb() argument
286 snd_nm256_writew(struct nm256 * chip,int offset,u16 val) snd_nm256_writew() argument
292 snd_nm256_writel(struct nm256 * chip,int offset,u32 val) snd_nm256_writel() argument
298 snd_nm256_write_buffer(struct nm256 * chip,const void * src,int offset,int size) snd_nm256_write_buffer() argument
326 snd_nm256_load_one_coefficient(struct nm256 * chip,int stream,u32 port,int which) snd_nm256_load_one_coefficient() argument
341 snd_nm256_load_coefficient(struct nm256 * chip,int stream,int number) snd_nm256_load_coefficient() argument
411 snd_nm256_set_format(struct nm256 * chip,struct nm256_stream * s,struct snd_pcm_substream * substream) snd_nm256_set_format() argument
447 snd_nm256_acquire_irq(struct nm256 * chip) snd_nm256_acquire_irq() argument
467 snd_nm256_release_irq(struct nm256 * chip) snd_nm256_release_irq() argument
485 snd_nm256_pcm_mark(struct nm256 * chip,struct nm256_stream * s,int reg) snd_nm256_pcm_mark() argument
492 snd_nm256_playback_mark(chip,s) global() argument
493 snd_nm256_capture_mark(chip,s) global() argument
496 snd_nm256_playback_start(struct nm256 * chip,struct nm256_stream * s,struct snd_pcm_substream * substream) snd_nm256_playback_start() argument
513 snd_nm256_capture_start(struct nm256 * chip,struct nm256_stream * s,struct snd_pcm_substream * substream) snd_nm256_capture_start() argument
529 snd_nm256_playback_stop(struct nm256 * chip) snd_nm256_playback_stop() argument
539 snd_nm256_capture_stop(struct nm256 * chip) snd_nm256_capture_stop() argument
548 struct nm256 *chip = snd_pcm_substream_chip(substream); snd_nm256_playback_trigger() local
586 struct nm256 *chip = snd_pcm_substream_chip(substream); snd_nm256_capture_trigger() local
623 struct nm256 *chip = snd_pcm_substream_chip(substream); snd_nm256_pcm_prepare() local
649 struct nm256 *chip = snd_pcm_substream_chip(substream); snd_nm256_playback_pointer() local
663 struct nm256 *chip = snd_pcm_substream_chip(substream); snd_nm256_capture_pointer() local
729 snd_nm256_playback_update(struct nm256 * chip) snd_nm256_playback_update() argument
744 snd_nm256_capture_update(struct nm256 * chip) snd_nm256_capture_update() argument
811 snd_nm256_setup_stream(struct nm256 * chip,struct nm256_stream * s,struct snd_pcm_substream * substream,const struct snd_pcm_hardware * hw_ptr) snd_nm256_setup_stream() argument
834 struct nm256 *chip = snd_pcm_substream_chip(substream); snd_nm256_playback_open() local
846 struct nm256 *chip = snd_pcm_substream_chip(substream); snd_nm256_capture_open() local
861 struct nm256 *chip = snd_pcm_substream_chip(substream); snd_nm256_playback_close() local
871 struct nm256 *chip = snd_pcm_substream_chip(substream); snd_nm256_capture_close() local
908 snd_nm256_pcm(struct nm256 * chip,int device) snd_nm256_pcm() argument
939 snd_nm256_init_chip(struct nm256 * chip) snd_nm256_init_chip() argument
951 snd_nm256_intr_check(struct nm256 * chip) snd_nm256_intr_check() argument
988 struct nm256 *chip = dev_id; snd_nm256_interrupt() local
1054 struct nm256 *chip = dev_id; snd_nm256_interrupt_zx() local
1119 snd_nm256_ac97_ready(struct nm256 * chip) snd_nm256_ac97_ready() argument
1190 struct nm256 *chip = ac97->private_data; snd_nm256_ac97_read() local
1204 struct nm256 *chip = ac97->private_data; snd_nm256_ac97_write() local
1250 struct nm256 *chip = ac97->private_data; snd_nm256_ac97_reset() local
1277 snd_nm256_mixer(struct nm256 * chip) snd_nm256_mixer() argument
1320 snd_nm256_peek_for_sig(struct nm256 * chip) snd_nm256_peek_for_sig() argument
1370 struct nm256 *chip = card->private_data; nm256_suspend() local
1381 struct nm256 *chip = card->private_data; nm256_resume() local
1410 struct nm256 *chip = card->private_data; snd_nm256_free() local
1421 struct nm256 *chip = card->private_data; snd_nm256_create() local
1568 struct nm256 *chip; snd_nm256_probe() local
[all...]
/linux/sound/pci/ !
H A Dad1889.c97 ad1889_readw(struct snd_ad1889 *chip, unsigned reg) in ad1889_readw() argument
99 return readw(chip->iobase + reg); in ad1889_readw()
103 ad1889_writew(struct snd_ad1889 *chip, unsigned reg, u16 val) in ad1889_writew() argument
105 writew(val, chip->iobase + reg); in ad1889_writew()
109 ad1889_readl(struct snd_ad1889 *chip, unsigned reg) in ad1889_readl() argument
111 return readl(chip->iobase + reg); in ad1889_readl()
115 ad1889_writel(struct snd_ad1889 *chip, unsigned reg, u32 val) in ad1889_writel() argument
117 writel(val, chip->iobase + reg); in ad1889_writel()
121 ad1889_unmute(struct snd_ad1889 *chip) in ad1889_unmute() argument
124 st = ad1889_readw(chip, AD_DS_WAD in ad1889_unmute()
131 ad1889_mute(struct snd_ad1889 * chip) ad1889_mute() argument
140 ad1889_load_adc_buffer_address(struct snd_ad1889 * chip,u32 address) ad1889_load_adc_buffer_address() argument
147 ad1889_load_adc_buffer_count(struct snd_ad1889 * chip,u32 count) ad1889_load_adc_buffer_count() argument
154 ad1889_load_adc_interrupt_count(struct snd_ad1889 * chip,u32 count) ad1889_load_adc_interrupt_count() argument
161 ad1889_load_wave_buffer_address(struct snd_ad1889 * chip,u32 address) ad1889_load_wave_buffer_address() argument
168 ad1889_load_wave_buffer_count(struct snd_ad1889 * chip,u32 count) ad1889_load_wave_buffer_count() argument
175 ad1889_load_wave_interrupt_count(struct snd_ad1889 * chip,u32 count) ad1889_load_wave_interrupt_count() argument
182 ad1889_channel_reset(struct snd_ad1889 * chip,unsigned int channel) ad1889_channel_reset() argument
230 struct snd_ad1889 *chip = ac97->private_data; snd_ad1889_ac97_read() local
237 struct snd_ad1889 *chip = ac97->private_data; snd_ad1889_ac97_write() local
242 snd_ad1889_ac97_ready(struct snd_ad1889 * chip) snd_ad1889_ac97_ready() argument
296 struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); snd_ad1889_playback_open() local
308 struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); snd_ad1889_capture_open() local
320 struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); snd_ad1889_playback_close() local
328 struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); snd_ad1889_capture_close() local
336 struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); snd_ad1889_playback_prepare() local
386 struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); snd_ad1889_capture_prepare() local
438 struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); snd_ad1889_playback_trigger() local
479 struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); snd_ad1889_capture_trigger() local
514 struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); snd_ad1889_playback_pointer() local
533 struct snd_ad1889 *chip = snd_pcm_substream_chip(ss); snd_ad1889_capture_pointer() local
567 struct snd_ad1889 *chip = dev_id; snd_ad1889_interrupt() local
592 snd_ad1889_pcm_init(struct snd_ad1889 * chip,int device) snd_ad1889_pcm_init() argument
623 struct snd_ad1889 *chip = entry->private_data; snd_ad1889_proc_read() local
702 snd_ad1889_proc_init(struct snd_ad1889 * chip) snd_ad1889_proc_init() argument
720 snd_ad1889_ac97_xinit(struct snd_ad1889 * chip) snd_ad1889_ac97_xinit() argument
744 snd_ad1889_ac97_init(struct snd_ad1889 * chip,const char * quirk_override) snd_ad1889_ac97_init() argument
776 struct snd_ad1889 *chip = card->private_data; snd_ad1889_free() local
795 struct snd_ad1889 *chip = card->private_data; snd_ad1889_create() local
852 struct snd_ad1889 *chip; __snd_ad1889_probe() local
[all...]

12345678910>>...98