Home
last modified time | relevance | path

Searched defs:chip (Results 1 – 200 of 888) sorted by relevance

12345

/linux-4.1.27/drivers/net/wireless/zd1211rw/
Dzd_chip.c34 void zd_chip_init(struct zd_chip *chip, in zd_chip_init()
44 void zd_chip_clear(struct zd_chip *chip) in zd_chip_clear()
53 static int scnprint_mac_oui(struct zd_chip *chip, char *buffer, size_t size) in scnprint_mac_oui()
61 static int scnprint_id(struct zd_chip *chip, char *buffer, size_t size) in scnprint_id()
81 static void print_id(struct zd_chip *chip) in print_id()
105 int zd_ioread32v_locked(struct zd_chip *chip, u32 *values, const zd_addr_t *addr, in zd_ioread32v_locked()
144 static int _zd_iowrite32v_async_locked(struct zd_chip *chip, in _zd_iowrite32v_async_locked()
183 int _zd_iowrite32v_locked(struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, in _zd_iowrite32v_locked()
197 int zd_iowrite16a_locked(struct zd_chip *chip, in zd_iowrite16a_locked()
235 int zd_iowrite32a_locked(struct zd_chip *chip, in zd_iowrite32a_locked()
[all …]
Dzd_rf_al7230b.c74 static int zd1211b_al7230b_finalize(struct zd_chip *chip) in zd1211b_al7230b_finalize()
102 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211_al7230b_init_hw() local
207 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211b_al7230b_init_hw() local
329 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211_al7230b_set_channel() local
376 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211b_al7230b_set_channel() local
421 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211_al7230b_switch_radio_on() local
432 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211b_al7230b_switch_radio_on() local
443 struct zd_chip *chip = zd_rf_to_chip(rf); in al7230b_switch_radio_off() local
456 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211b_al7230b_patch_6m() local
476 struct zd_chip *chip = zd_rf_to_chip(rf); in zd_rf_init_al7230b() local
Dzd_rf_al2230.c26 #define IS_AL2230S(chip) ((chip)->al2230s_bit || (chip)->rf.type == AL2230S_RF) argument
78 static int zd1211b_al2230_finalize_rf(struct zd_chip *chip) in zd1211b_al2230_finalize_rf()
107 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211_al2230_init_hw() local
220 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211b_al2230_init_hw() local
363 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211_al2230_set_channel() local
379 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211b_al2230_set_channel() local
395 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211_al2230_switch_radio_on() local
406 struct zd_chip *chip = zd_rf_to_chip(rf); in zd1211b_al2230_switch_radio_on() local
417 struct zd_chip *chip = zd_rf_to_chip(rf); in al2230_switch_radio_off() local
428 struct zd_chip *chip = zd_rf_to_chip(rf); in zd_rf_init_al2230() local
Dzd_rf_rf2959.c151 struct zd_chip *chip = zd_rf_to_chip(rf); in rf2959_init_hw() local
234 struct zd_chip *chip = zd_rf_to_chip(rf); in rf2959_set_channel() local
250 struct zd_chip *chip = zd_rf_to_chip(rf); in rf2959_switch_radio_on() local
261 struct zd_chip *chip = zd_rf_to_chip(rf); in rf2959_switch_radio_off() local
268 struct zd_chip *chip = zd_rf_to_chip(rf); in zd_rf_init_rf2959() local
Dzd_rf_uw2453.c254 static int uw2453_synth_set_channel(struct zd_chip *chip, int channel, in uw2453_synth_set_channel()
274 static int uw2453_write_vco_cfg(struct zd_chip *chip, u16 value) in uw2453_write_vco_cfg()
282 static int uw2453_init_mode(struct zd_chip *chip) in uw2453_init_mode()
294 static int uw2453_set_tx_gain_level(struct zd_chip *chip, int channel) in uw2453_set_tx_gain_level()
313 struct zd_chip *chip = zd_rf_to_chip(rf); in uw2453_init_hw() local
446 struct zd_chip *chip = zd_rf_to_chip(rf); in uw2453_set_channel() local
484 struct zd_chip *chip = zd_rf_to_chip(rf); in uw2453_switch_radio_on() local
503 struct zd_chip *chip = zd_rf_to_chip(rf); in uw2453_switch_radio_off() local
/linux-4.1.27/sound/pci/echoaudio/
Dechoaudio_dsp.c42 static int wait_handshake(struct echoaudio *chip) in wait_handshake()
66 static int send_vector(struct echoaudio *chip, u32 command) in send_vector()
91 static int write_dsp(struct echoaudio *chip, u32 data) in write_dsp()
115 static int read_dsp(struct echoaudio *chip, u32 *data) in read_dsp()
145 static int read_sn(struct echoaudio *chip) in read_sn()
167 static inline int check_asic_status(struct echoaudio *chip) in check_asic_status()
180 static int load_asic_generic(struct echoaudio *chip, u32 cmd, short asic) in load_asic_generic()
227 static int install_resident_loader(struct echoaudio *chip) in install_resident_loader()
335 static int load_dsp(struct echoaudio *chip, u16 *code) in load_dsp()
488 static int load_firmware(struct echoaudio *chip) in load_firmware()
[all …]
Dlayla20_dsp.c39 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw()
72 static int set_mixer_defaults(struct echoaudio *chip) in set_mixer_defaults()
80 static u32 detect_input_clocks(const struct echoaudio *chip) in detect_input_clocks()
111 static int check_asic_status(struct echoaudio *chip) in check_asic_status()
141 static int load_asic(struct echoaudio *chip) in load_asic()
159 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate()
186 static int set_input_clock(struct echoaudio *chip, u16 clock_source) in set_input_clock()
226 static int set_output_clock(struct echoaudio *chip, u16 clock) in set_output_clock()
252 static int set_input_gain(struct echoaudio *chip, u16 input, int gain) in set_input_gain()
269 static int update_flags(struct echoaudio *chip) in update_flags()
[all …]
Dmia_dsp.c40 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw()
74 static int set_mixer_defaults(struct echoaudio *chip) in set_mixer_defaults()
81 static u32 detect_input_clocks(const struct echoaudio *chip) in detect_input_clocks()
100 static int load_asic(struct echoaudio *chip) in load_asic()
107 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate()
154 static int set_input_clock(struct echoaudio *chip, u16 clock) in set_input_clock()
168 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain()
192 static int update_vmixer_level(struct echoaudio *chip) in update_vmixer_level()
203 static int update_flags(struct echoaudio *chip) in update_flags()
213 static int set_professional_spdif(struct echoaudio *chip, char prof) in set_professional_spdif()
Dechoaudio.c44 struct echoaudio *chip, const short fw_index) in get_firmware()
76 struct echoaudio *chip) in free_firmware()
87 static void free_firmware_cache(struct echoaudio *chip) in free_firmware_cache()
258 struct echoaudio *chip = rule->private; in hw_rule_sample_rate() local
273 struct echoaudio *chip; in pcm_open() local
352 struct echoaudio *chip = snd_pcm_substream_chip(substream); in pcm_analog_in_open() local
381 struct echoaudio *chip = snd_pcm_substream_chip(substream); in pcm_analog_out_open() local
418 struct echoaudio *chip = snd_pcm_substream_chip(substream); in pcm_digital_in_open() local
459 struct echoaudio *chip = snd_pcm_substream_chip(substream); in pcm_digital_out_open() local
502 struct echoaudio *chip = snd_pcm_substream_chip(substream); in pcm_close() local
[all …]
Dmidi.c37 static int enable_midi_input(struct echoaudio *chip, char enable) in enable_midi_input()
60 static int write_midi(struct echoaudio *chip, u8 *data, int bytes) in write_midi()
90 static inline int mtc_process_data(struct echoaudio *chip, short midi_byte) in mtc_process_data()
116 static int midi_service_irq(struct echoaudio *chip) in midi_service_irq()
157 struct echoaudio *chip = substream->rmidi->private_data; in snd_echo_midi_input_open() local
168 struct echoaudio *chip = substream->rmidi->private_data; in snd_echo_midi_input_trigger() local
182 struct echoaudio *chip = substream->rmidi->private_data; in snd_echo_midi_input_close() local
192 struct echoaudio *chip = substream->rmidi->private_data; in snd_echo_midi_output_open() local
204 struct echoaudio *chip = (struct echoaudio *)data; in snd_echo_midi_output_write() local
254 struct echoaudio *chip = substream->rmidi->private_data; in snd_echo_midi_output_trigger() local
[all …]
Dgina20_dsp.c36 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw()
70 static int set_mixer_defaults(struct echoaudio *chip) in set_mixer_defaults()
78 static u32 detect_input_clocks(const struct echoaudio *chip) in detect_input_clocks()
97 static int load_asic(struct echoaudio *chip) in load_asic()
104 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate()
149 static int set_input_clock(struct echoaudio *chip, u16 clock) in set_input_clock()
178 static int set_input_gain(struct echoaudio *chip, u16 input, int gain) in set_input_gain()
195 static int update_flags(struct echoaudio *chip) in update_flags()
205 static int set_professional_spdif(struct echoaudio *chip, char prof) in set_professional_spdif()
Dechoaudio_3g.c36 static int check_asic_status(struct echoaudio *chip) in check_asic_status()
64 static inline u32 get_frq_reg(struct echoaudio *chip) in get_frq_reg()
73 static int write_control_reg(struct echoaudio *chip, u32 ctl, u32 frq, in write_control_reg()
100 static int set_digital_mode(struct echoaudio *chip, u8 mode) in set_digital_mode()
143 static u32 set_spdif_bits(struct echoaudio *chip, u32 control_reg, u32 rate) in set_spdif_bits()
175 static int set_professional_spdif(struct echoaudio *chip, char prof) in set_professional_spdif()
191 static u32 detect_input_clocks(const struct echoaudio *chip) in detect_input_clocks()
221 static int load_asic(struct echoaudio *chip) in load_asic()
256 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate()
327 static int set_input_clock(struct echoaudio *chip, u16 clock) in set_input_clock()
[all …]
Dindigoio_dsp.c37 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw()
68 static int set_mixer_defaults(struct echoaudio *chip) in set_mixer_defaults()
75 static u32 detect_input_clocks(const struct echoaudio *chip) in detect_input_clocks()
83 static int load_asic(struct echoaudio *chip) in load_asic()
90 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate()
104 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain()
128 static int update_vmixer_level(struct echoaudio *chip) in update_vmixer_level()
Dindigodj_dsp.c37 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw()
68 static int set_mixer_defaults(struct echoaudio *chip) in set_mixer_defaults()
75 static u32 detect_input_clocks(const struct echoaudio *chip) in detect_input_clocks()
83 static int load_asic(struct echoaudio *chip) in load_asic()
90 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate()
134 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain()
158 static int update_vmixer_level(struct echoaudio *chip) in update_vmixer_level()
Dindigo_dsp.c37 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw()
68 static int set_mixer_defaults(struct echoaudio *chip) in set_mixer_defaults()
75 static u32 detect_input_clocks(const struct echoaudio *chip) in detect_input_clocks()
83 static int load_asic(struct echoaudio *chip) in load_asic()
90 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate()
134 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain()
158 static int update_vmixer_level(struct echoaudio *chip) in update_vmixer_level()
Dlayla24_dsp.c39 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw()
77 static int set_mixer_defaults(struct echoaudio *chip) in set_mixer_defaults()
87 static u32 detect_input_clocks(const struct echoaudio *chip) in detect_input_clocks()
112 static int load_asic(struct echoaudio *chip) in load_asic()
157 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate()
249 static int set_input_clock(struct echoaudio *chip, u16 clock) in set_input_clock()
298 static int switch_asic(struct echoaudio *chip, short asic) in switch_asic()
330 static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode) in dsp_set_digital_mode()
Ddarla24_dsp.c32 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw()
64 static int set_mixer_defaults(struct echoaudio *chip) in set_mixer_defaults()
71 static u32 detect_input_clocks(const struct echoaudio *chip) in detect_input_clocks()
90 static int load_asic(struct echoaudio *chip) in load_asic()
97 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate()
155 static int set_input_clock(struct echoaudio *chip, u16 clock) in set_input_clock()
Dmona_dsp.c40 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw()
79 static int set_mixer_defaults(struct echoaudio *chip) in set_mixer_defaults()
89 static u32 detect_input_clocks(const struct echoaudio *chip) in detect_input_clocks()
115 static int load_asic(struct echoaudio *chip) in load_asic()
162 static int switch_asic(struct echoaudio *chip, char double_speed) in switch_asic()
196 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate()
298 static int set_input_clock(struct echoaudio *chip, u16 clock) in set_input_clock()
364 static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode) in dsp_set_digital_mode()
Dgina24_dsp.c40 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw()
86 static int set_mixer_defaults(struct echoaudio *chip) in set_mixer_defaults()
96 static u32 detect_input_clocks(const struct echoaudio *chip) in detect_input_clocks()
122 static int load_asic(struct echoaudio *chip) in load_asic()
162 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate()
234 static int set_input_clock(struct echoaudio *chip, u16 clock) in set_input_clock()
282 static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode) in dsp_set_digital_mode()
Ddarla20_dsp.c32 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw()
65 static int set_mixer_defaults(struct echoaudio *chip) in set_mixer_defaults()
73 static u32 detect_input_clocks(const struct echoaudio *chip) in detect_input_clocks()
81 static int load_asic(struct echoaudio *chip) in load_asic()
88 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate()
Dindigo_express_dsp.c29 static int set_sample_rate(struct echoaudio *chip, u32 rate) in set_sample_rate()
77 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain()
101 static int update_vmixer_level(struct echoaudio *chip) in update_vmixer_level()
111 static u32 detect_input_clocks(const struct echoaudio *chip) in detect_input_clocks()
119 static int load_asic(struct echoaudio *chip) in load_asic()
Dechoaudio_gml.c40 static int check_asic_status(struct echoaudio *chip) in check_asic_status()
64 static int write_control_reg(struct echoaudio *chip, u32 value, char force) in write_control_reg()
93 static int set_input_auto_mute(struct echoaudio *chip, int automute) in set_input_auto_mute()
107 static int set_digital_mode(struct echoaudio *chip, u8 mode) in set_digital_mode()
154 static int set_professional_spdif(struct echoaudio *chip, char prof) in set_professional_spdif()
/linux-4.1.27/sound/pci/oxygen/
Doxygen.c154 static void ak4396_write(struct oxygen *chip, unsigned int codec, in ak4396_write()
172 static void ak4396_write_cached(struct oxygen *chip, unsigned int codec, in ak4396_write_cached()
181 static void wm8785_write(struct oxygen *chip, u8 reg, unsigned int value) in wm8785_write()
195 static void ak4396_registers_init(struct oxygen *chip) in ak4396_registers_init()
214 static void ak4396_init(struct oxygen *chip) in ak4396_init()
225 static void ak5385_init(struct oxygen *chip) in ak5385_init()
232 static void wm8785_registers_init(struct oxygen *chip) in wm8785_registers_init()
241 static void wm8785_init(struct oxygen *chip) in wm8785_init()
252 static void generic_init(struct oxygen *chip) in generic_init()
258 static void meridian_init(struct oxygen *chip) in meridian_init()
[all …]
Dxonar_pcm179x.c243 static inline void pcm1796_write_spi(struct oxygen *chip, unsigned int codec, in pcm1796_write_spi()
258 static inline void pcm1796_write_i2c(struct oxygen *chip, unsigned int codec, in pcm1796_write_i2c()
264 static void pcm1796_write(struct oxygen *chip, unsigned int codec, in pcm1796_write()
279 static void pcm1796_write_cached(struct oxygen *chip, unsigned int codec, in pcm1796_write_cached()
288 static void cs2000_write(struct oxygen *chip, u8 reg, u8 value) in cs2000_write()
296 static void cs2000_write_cached(struct oxygen *chip, u8 reg, u8 value) in cs2000_write_cached()
304 static void pcm1796_registers_init(struct oxygen *chip) in pcm1796_registers_init()
329 static void pcm1796_init(struct oxygen *chip) in pcm1796_init()
345 static void xonar_d2_init(struct oxygen *chip) in xonar_d2_init()
367 static void xonar_d2x_init(struct oxygen *chip) in xonar_d2x_init()
[all …]
Doxygen_io.c28 u8 oxygen_read8(struct oxygen *chip, unsigned int reg) in oxygen_read8()
34 u16 oxygen_read16(struct oxygen *chip, unsigned int reg) in oxygen_read16()
40 u32 oxygen_read32(struct oxygen *chip, unsigned int reg) in oxygen_read32()
46 void oxygen_write8(struct oxygen *chip, unsigned int reg, u8 value) in oxygen_write8()
53 void oxygen_write16(struct oxygen *chip, unsigned int reg, u16 value) in oxygen_write16()
60 void oxygen_write32(struct oxygen *chip, unsigned int reg, u32 value) in oxygen_write32()
67 void oxygen_write8_masked(struct oxygen *chip, unsigned int reg, in oxygen_write8_masked()
78 void oxygen_write16_masked(struct oxygen *chip, unsigned int reg, in oxygen_write16_masked()
89 void oxygen_write32_masked(struct oxygen *chip, unsigned int reg, in oxygen_write32_masked()
100 static int oxygen_ac97_wait(struct oxygen *chip, unsigned int mask) in oxygen_ac97_wait()
[all …]
Dxonar_cs43xx.c77 static void cs4398_write(struct oxygen *chip, u8 reg, u8 value) in cs4398_write()
86 static void cs4398_write_cached(struct oxygen *chip, u8 reg, u8 value) in cs4398_write_cached()
94 static void cs4362a_write(struct oxygen *chip, u8 reg, u8 value) in cs4362a_write()
103 static void cs4362a_write_cached(struct oxygen *chip, u8 reg, u8 value) in cs4362a_write_cached()
111 static void cs43xx_registers_init(struct oxygen *chip) in cs43xx_registers_init()
138 static void xonar_d1_init(struct oxygen *chip) in xonar_d1_init()
186 static void xonar_dx_init(struct oxygen *chip) in xonar_dx_init()
197 static void xonar_d1_cleanup(struct oxygen *chip) in xonar_d1_cleanup()
204 static void xonar_d1_suspend(struct oxygen *chip) in xonar_d1_suspend()
209 static void xonar_d1_resume(struct oxygen *chip) in xonar_d1_resume()
[all …]
Doxygen_lib.c41 static inline int oxygen_uart_input_ready(struct oxygen *chip) in oxygen_uart_input_ready()
46 static void oxygen_read_uart(struct oxygen *chip) in oxygen_read_uart()
67 struct oxygen *chip = dev_id; in oxygen_interrupt() local
132 struct oxygen *chip = container_of(work, struct oxygen, in oxygen_spdif_input_bits_changed() local
193 struct oxygen *chip = container_of(work, struct oxygen, gpio_work); in oxygen_gpio_changed() local
203 struct oxygen *chip = entry->private_data; in oxygen_proc_read() local
246 static void oxygen_proc_init(struct oxygen *chip) in oxygen_proc_init()
254 #define oxygen_proc_init(chip) argument
258 oxygen_search_pci_id(struct oxygen *chip, const struct pci_device_id ids[]) in oxygen_search_pci_id()
288 static void oxygen_restore_eeprom(struct oxygen *chip, in oxygen_restore_eeprom()
[all …]
Dxonar_dg.c67 int cs4245_write_spi(struct oxygen *chip, u8 reg) in cs4245_write_spi()
84 int cs4245_read_spi(struct oxygen *chip, u8 addr) in cs4245_read_spi()
110 int cs4245_shadow_control(struct oxygen *chip, enum cs4245_shadow_operation op) in cs4245_shadow_control()
126 static void cs4245_init(struct oxygen *chip) in cs4245_init()
158 void dg_init(struct oxygen *chip) in dg_init()
174 void dg_cleanup(struct oxygen *chip) in dg_cleanup()
179 void dg_suspend(struct oxygen *chip) in dg_suspend()
184 void dg_resume(struct oxygen *chip) in dg_resume()
191 void set_cs4245_dac_params(struct oxygen *chip, in set_cs4245_dac_params()
216 void set_cs4245_adc_params(struct oxygen *chip, in set_cs4245_adc_params()
[all …]
Dxonar_wm87x6.c101 static void wm8776_write_spi(struct oxygen *chip, in wm8776_write_spi()
112 static void wm8776_write_i2c(struct oxygen *chip, in wm8776_write_i2c()
119 static void wm8776_write(struct oxygen *chip, in wm8776_write()
136 static void wm8776_write_cached(struct oxygen *chip, in wm8776_write_cached()
146 static void wm8766_write(struct oxygen *chip, in wm8766_write()
165 static void wm8766_write_cached(struct oxygen *chip, in wm8766_write_cached()
175 static void wm8776_registers_init(struct oxygen *chip) in wm8776_registers_init()
200 static void wm8766_registers_init(struct oxygen *chip) in wm8766_registers_init()
217 static void wm8776_init(struct oxygen *chip) in wm8776_init()
234 static void wm8766_init(struct oxygen *chip) in wm8766_init()
[all …]
Doxygen_mixer.c31 struct oxygen *chip = ctl->private_data; in dac_volume_info() local
43 struct oxygen *chip = ctl->private_data; in dac_volume_get() local
56 struct oxygen *chip = ctl->private_data; in dac_volume_put() local
76 struct oxygen *chip = ctl->private_data; in dac_mute_get() local
87 struct oxygen *chip = ctl->private_data; in dac_mute_put() local
100 static unsigned int upmix_item_count(struct oxygen *chip) in upmix_item_count()
119 struct oxygen *chip = ctl->private_data; in upmix_info() local
127 struct oxygen *chip = ctl->private_data; in upmix_get() local
135 void oxygen_update_dac_routing(struct oxygen *chip) in oxygen_update_dac_routing()
197 struct oxygen *chip = ctl->private_data; in upmix_put() local
[all …]
Dxonar_dg_mixer.c32 static int output_select_apply(struct oxygen *chip) in output_select_apply()
72 struct oxygen *chip = ctl->private_data; in output_select_get() local
84 struct oxygen *chip = ctl->private_data; in output_select_put() local
117 struct oxygen *chip = ctl->private_data; in hp_stereo_volume_get() local
133 struct oxygen *chip = ctl->private_data; in hp_stereo_volume_put() local
163 struct oxygen *chip = ctl->private_data; in hp_mute_get() local
176 struct oxygen *chip = ctl->private_data; in hp_mute_put() local
195 static int input_volume_apply(struct oxygen *chip, char left, char right) in input_volume_apply()
221 struct oxygen *chip = ctl->private_data; in input_vol_get() local
235 struct oxygen *chip = ctl->private_data; in input_vol_put() local
[all …]
Dxonar_lib.c33 void xonar_enable_output(struct oxygen *chip) in xonar_enable_output()
42 void xonar_disable_output(struct oxygen *chip) in xonar_disable_output()
49 static void xonar_ext_power_gpio_changed(struct oxygen *chip) in xonar_ext_power_gpio_changed()
68 void xonar_init_ext_power(struct oxygen *chip) in xonar_init_ext_power()
80 void xonar_init_cs53x1(struct oxygen *chip) in xonar_init_cs53x1()
87 void xonar_set_cs53x1_params(struct oxygen *chip, in xonar_set_cs53x1_params()
105 struct oxygen *chip = ctl->private_data; in xonar_gpio_bit_switch_get() local
117 struct oxygen *chip = ctl->private_data; in xonar_gpio_bit_switch_put() local
Dxonar_hdmi.c29 static void hdmi_write_command(struct oxygen *chip, u8 command, in hdmi_write_command()
47 static void xonar_hdmi_init_commands(struct oxygen *chip, in xonar_hdmi_init_commands()
60 void xonar_hdmi_init(struct oxygen *chip, struct xonar_hdmi *hdmi) in xonar_hdmi_init()
67 void xonar_hdmi_cleanup(struct oxygen *chip) in xonar_hdmi_cleanup()
74 void xonar_hdmi_resume(struct oxygen *chip, struct xonar_hdmi *hdmi) in xonar_hdmi_resume()
91 void xonar_set_hdmi_params(struct oxygen *chip, struct xonar_hdmi *hdmi, in xonar_set_hdmi_params()
118 void xonar_hdmi_uart_input(struct oxygen *chip) in xonar_hdmi_uart_input()
Doxygen_pcm.c135 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_open() local
233 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_close() local
317 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_hw_params() local
342 static u16 get_mclk(struct oxygen *chip, unsigned int channel, in get_mclk()
365 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_rec_a_hw_params() local
396 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_rec_b_hw_params() local
434 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_rec_c_hw_params() local
471 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_spdif_hw_params() local
497 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_multich_hw_params() local
532 struct oxygen *chip = snd_pcm_substream_chip(substream); in oxygen_hw_free() local
[all …]
Dse6x.c61 static void se6x_init(struct oxygen *chip) in se6x_init()
77 static void se6x_cleanup(struct oxygen *chip) in se6x_cleanup()
81 static void set_pcm1792a_params(struct oxygen *chip, in set_pcm1792a_params()
87 static void set_pcm1804_params(struct oxygen *chip, in set_pcm1804_params()
92 static unsigned int se6x_adjust_dac_routing(struct oxygen *chip, in se6x_adjust_dac_routing()
122 static int se6x_get_model(struct oxygen *chip, in se6x_get_model()
/linux-4.1.27/drivers/staging/rts5208/
Drtsx_card.c34 void do_remaining_work(struct rtsx_chip *chip) in do_remaining_work()
92 void try_to_switch_sdio_ctrl(struct rtsx_chip *chip) in try_to_switch_sdio_ctrl()
110 void dynamic_configure_sdio_aspm(struct rtsx_chip *chip) in dynamic_configure_sdio_aspm()
149 void do_reset_sd_card(struct rtsx_chip *chip) in do_reset_sd_card()
203 void do_reset_xd_card(struct rtsx_chip *chip) in do_reset_xd_card()
251 void do_reset_ms_card(struct rtsx_chip *chip) in do_reset_ms_card()
299 static void release_sdio(struct rtsx_chip *chip) in release_sdio()
319 void rtsx_power_off_card(struct rtsx_chip *chip) in rtsx_power_off_card()
337 void rtsx_release_cards(struct rtsx_chip *chip) in rtsx_release_cards()
360 void rtsx_reset_cards(struct rtsx_chip *chip) in rtsx_reset_cards()
[all …]
Drtsx_chip.c34 static void rtsx_calibration(struct rtsx_chip *chip) in rtsx_calibration()
46 void rtsx_disable_card_int(struct rtsx_chip *chip) in rtsx_disable_card_int()
54 void rtsx_enable_card_int(struct rtsx_chip *chip) in rtsx_enable_card_int()
73 void rtsx_enable_bus_int(struct rtsx_chip *chip) in rtsx_enable_bus_int()
112 void rtsx_disable_bus_int(struct rtsx_chip *chip) in rtsx_disable_bus_int()
117 static int rtsx_pre_handle_sdio_old(struct rtsx_chip *chip) in rtsx_pre_handle_sdio_old()
170 static int rtsx_pre_handle_sdio_new(struct rtsx_chip *chip) in rtsx_pre_handle_sdio_new()
300 static int rtsx_reset_aspm(struct rtsx_chip *chip) in rtsx_reset_aspm()
347 static int rtsx_enable_pcie_intr(struct rtsx_chip *chip) in rtsx_enable_pcie_intr()
404 int rtsx_reset_chip(struct rtsx_chip *chip) in rtsx_reset_chip()
[all …]
Dspi.c30 static inline void spi_set_err_code(struct rtsx_chip *chip, u8 err_code) in spi_set_err_code()
37 static int spi_init(struct rtsx_chip *chip) in spi_init()
57 static int spi_set_init_para(struct rtsx_chip *chip) in spi_set_init_para()
111 static int sf_polling_status(struct rtsx_chip *chip, int msec) in sf_polling_status()
134 static int sf_enable_write(struct rtsx_chip *chip, u8 ins) in sf_enable_write()
163 static int sf_disable_write(struct rtsx_chip *chip, u8 ins) in sf_disable_write()
192 static void sf_program(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr, in sf_program()
216 static int sf_erase(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr) in sf_erase()
251 static int spi_init_eeprom(struct rtsx_chip *chip) in spi_init_eeprom()
315 static int spi_eeprom_program_enable(struct rtsx_chip *chip) in spi_eeprom_program_enable()
[all …]
Dsd.c57 static inline void sd_set_err_code(struct rtsx_chip *chip, u8 err_code) in sd_set_err_code()
64 static inline void sd_clr_err_code(struct rtsx_chip *chip) in sd_clr_err_code()
71 static inline int sd_check_err_code(struct rtsx_chip *chip, u8 err_code) in sd_check_err_code()
78 static void sd_init_reg_addr(struct rtsx_chip *chip) in sd_init_reg_addr()
106 static int sd_check_data0_status(struct rtsx_chip *chip) in sd_check_data0_status()
126 static int sd_send_cmd_get_rsp(struct rtsx_chip *chip, u8 cmd_idx, in sd_send_cmd_get_rsp()
284 static int sd_read_data(struct rtsx_chip *chip, in sd_read_data()
356 static int sd_write_data(struct rtsx_chip *chip, u8 trans_mode, in sd_write_data()
426 static int sd_check_csd(struct rtsx_chip *chip, char check_wp) in sd_check_csd()
535 static int sd_set_sample_push_timing(struct rtsx_chip *chip) in sd_set_sample_push_timing()
[all …]
Drtsx_scsi.c33 void scsi_show_command(struct rtsx_chip *chip) in scsi_show_command()
324 void set_sense_type(struct rtsx_chip *chip, unsigned int lun, int sense_type) in set_sense_type()
399 void set_sense_data(struct rtsx_chip *chip, unsigned int lun, u8 err_code, in set_sense_data()
422 static int test_unit_ready(struct scsi_cmnd *srb, struct rtsx_chip *chip) in test_unit_ready()
474 static int inquiry(struct scsi_cmnd *srb, struct rtsx_chip *chip) in inquiry()
562 static int start_stop_unit(struct scsi_cmnd *srb, struct rtsx_chip *chip) in start_stop_unit()
598 static int allow_medium_removal(struct scsi_cmnd *srb, struct rtsx_chip *chip) in allow_medium_removal()
617 static int request_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip) in request_sense()
664 static void ms_mode_sense(struct rtsx_chip *chip, u8 cmd, in ms_mode_sense()
757 static int mode_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip) in mode_sense()
[all …]
Dxd.c38 static inline void xd_set_err_code(struct rtsx_chip *chip, u8 err_code) in xd_set_err_code()
45 static inline int xd_check_err_code(struct rtsx_chip *chip, u8 err_code) in xd_check_err_code()
52 static int xd_set_init_para(struct rtsx_chip *chip) in xd_set_init_para()
71 static int xd_switch_clock(struct rtsx_chip *chip) in xd_switch_clock()
91 static int xd_read_id(struct rtsx_chip *chip, u8 id_cmd, u8 *id_buf, u8 buf_len) in xd_read_id()
123 static void xd_assign_phy_addr(struct rtsx_chip *chip, u32 addr, u8 mode) in xd_assign_phy_addr()
155 static int xd_read_redundant(struct rtsx_chip *chip, u32 page_addr, in xd_read_redundant()
194 static int xd_read_data_from_ppb(struct rtsx_chip *chip, int offset, in xd_read_data_from_ppb()
222 static int xd_read_cis(struct rtsx_chip *chip, u32 page_addr, u8 *buf, in xd_read_cis()
346 static void xd_fill_pull_ctl_disable(struct rtsx_chip *chip) in xd_fill_pull_ctl_disable()
[all …]
Dms.c31 static inline void ms_set_err_code(struct rtsx_chip *chip, u8 err_code) in ms_set_err_code()
38 static inline int ms_check_err_code(struct rtsx_chip *chip, u8 err_code) in ms_check_err_code()
45 static int ms_parse_err_code(struct rtsx_chip *chip) in ms_parse_err_code()
51 static int ms_transfer_tpc(struct rtsx_chip *chip, u8 trans_mode, in ms_transfer_tpc()
111 static int ms_transfer_data(struct rtsx_chip *chip, u8 trans_mode, in ms_transfer_data()
185 static int ms_write_bytes(struct rtsx_chip *chip, in ms_write_bytes()
255 static int ms_read_bytes(struct rtsx_chip *chip, in ms_read_bytes()
337 static int ms_set_rw_reg_addr(struct rtsx_chip *chip, in ms_set_rw_reg_addr()
360 static int ms_send_cmd(struct rtsx_chip *chip, u8 cmd, u8 cfg) in ms_send_cmd()
370 static int ms_set_init_para(struct rtsx_chip *chip) in ms_set_init_para()
[all …]
Drtsx.c130 struct rtsx_chip *chip = dev->chip; in queuecommand_lck() local
166 struct rtsx_chip *chip = dev->chip; in DEF_SCSI_QCMD() local
266 struct rtsx_chip *chip = dev->chip; in rtsx_acquire_irq() local
311 struct rtsx_chip *chip; in rtsx_suspend() local
346 struct rtsx_chip *chip; in rtsx_resume() local
392 struct rtsx_chip *chip; in rtsx_shutdown() local
416 struct rtsx_chip *chip = dev->chip; in rtsx_control_thread() local
525 struct rtsx_chip *chip = dev->chip; in rtsx_polling_thread() local
574 struct rtsx_chip *chip; in rtsx_interrupt() local
676 struct rtsx_chip *chip = dev->chip; in quiesce_and_remove_host() local
[all …]
Drtsx.h57 #define rtsx_writel(chip, reg, value) \ argument
59 #define rtsx_readl(chip, reg) \ argument
61 #define rtsx_writew(chip, reg, value) \ argument
63 #define rtsx_readw(chip, reg) \ argument
65 #define rtsx_writeb(chip, reg, value) \ argument
67 #define rtsx_readb(chip, reg) \ argument
70 #define rtsx_read_config_byte(chip, where, val) \ argument
73 #define rtsx_write_config_byte(chip, where, val) \ argument
134 struct rtsx_chip *chip; member
173 #define lock_state(chip) spin_lock_irq(&((chip)->rtsx->reg_lock)) argument
[all …]
/linux-4.1.27/sound/isa/sb/
Dsb16_main.c53 static void snd_sb16_csp_playback_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_prepare()
101 static void snd_sb16_csp_capture_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_capture_prepare()
139 static void snd_sb16_csp_update(struct snd_sb *chip) in snd_sb16_csp_update()
152 static void snd_sb16_csp_playback_open(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_open()
171 static void snd_sb16_csp_playback_close(struct snd_sb *chip) in snd_sb16_csp_playback_close()
183 static void snd_sb16_csp_capture_open(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_capture_open()
202 static void snd_sb16_csp_capture_close(struct snd_sb *chip) in snd_sb16_csp_capture_close()
214 #define snd_sb16_csp_playback_prepare(chip, runtime) /*nop*/ argument
215 #define snd_sb16_csp_capture_prepare(chip, runtime) /*nop*/ argument
216 #define snd_sb16_csp_update(chip) /*nop*/ argument
[all …]
Dsb8_midi.c35 irqreturn_t snd_sb8dsp_midi_interrupt(struct snd_sb *chip) in snd_sb8dsp_midi_interrupt()
66 struct snd_sb *chip; in snd_sb8dsp_midi_input_open() local
93 struct snd_sb *chip; in snd_sb8dsp_midi_output_open() local
120 struct snd_sb *chip; in snd_sb8dsp_midi_input_close() local
138 struct snd_sb *chip; in snd_sb8dsp_midi_output_close() local
156 struct snd_sb *chip; in snd_sb8dsp_midi_input_trigger() local
179 struct snd_sb *chip; in snd_sb8dsp_midi_output_write() local
215 struct snd_sb * chip = substream->rmidi->private_data; in snd_sb8dsp_midi_output_timer() local
227 struct snd_sb *chip; in snd_sb8dsp_midi_output_trigger() local
264 int snd_sb8dsp_midi(struct snd_sb *chip, int device) in snd_sb8dsp_midi()
Dsb_common.c44 int snd_sbdsp_command(struct snd_sb *chip, unsigned char val) in snd_sbdsp_command()
59 int snd_sbdsp_get_byte(struct snd_sb *chip) in snd_sbdsp_get_byte()
76 int snd_sbdsp_reset(struct snd_sb *chip) in snd_sbdsp_reset()
95 static int snd_sbdsp_version(struct snd_sb * chip) in snd_sbdsp_version()
105 static int snd_sbdsp_probe(struct snd_sb * chip) in snd_sbdsp_probe()
185 static int snd_sbdsp_free(struct snd_sb *chip) in snd_sbdsp_free()
206 struct snd_sb *chip = device->device_data; in snd_sbdsp_dev_free() local
219 struct snd_sb *chip; in snd_sbdsp_create() local
Dsb8_main.c107 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb8_playback_prepare() local
210 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb8_playback_trigger() local
257 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb8_capture_prepare() local
347 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb8_capture_trigger() local
381 irqreturn_t snd_sb8dsp_interrupt(struct snd_sb *chip) in snd_sb8dsp_interrupt()
416 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb8_playback_pointer() local
432 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb8_capture_pointer() local
494 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb8_open() local
557 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_sb8_close() local
597 int snd_sb8dsp_pcm(struct snd_sb *chip, int device) in snd_sb8dsp_pcm()
/linux-4.1.27/sound/pci/
Dad1889.c110 ad1889_readw(struct snd_ad1889 *chip, unsigned reg) in ad1889_readw()
116 ad1889_writew(struct snd_ad1889 *chip, unsigned reg, u16 val) in ad1889_writew()
122 ad1889_readl(struct snd_ad1889 *chip, unsigned reg) in ad1889_readl()
128 ad1889_writel(struct snd_ad1889 *chip, unsigned reg, u32 val) in ad1889_writel()
134 ad1889_unmute(struct snd_ad1889 *chip) in ad1889_unmute()
144 ad1889_mute(struct snd_ad1889 *chip) in ad1889_mute()
153 ad1889_load_adc_buffer_address(struct snd_ad1889 *chip, u32 address) in ad1889_load_adc_buffer_address()
160 ad1889_load_adc_buffer_count(struct snd_ad1889 *chip, u32 count) in ad1889_load_adc_buffer_count()
167 ad1889_load_adc_interrupt_count(struct snd_ad1889 *chip, u32 count) in ad1889_load_adc_interrupt_count()
174 ad1889_load_wave_buffer_address(struct snd_ad1889 *chip, u32 address) in ad1889_load_wave_buffer_address()
[all …]
Dazt3328.c412 snd_azf3328_ctrl_outb(const struct snd_azf3328 *chip, unsigned reg, u8 value) in snd_azf3328_ctrl_outb()
418 snd_azf3328_ctrl_inb(const struct snd_azf3328 *chip, unsigned reg) in snd_azf3328_ctrl_inb()
424 snd_azf3328_ctrl_inw(const struct snd_azf3328 *chip, unsigned reg) in snd_azf3328_ctrl_inw()
430 snd_azf3328_ctrl_outw(const struct snd_azf3328 *chip, unsigned reg, u16 value) in snd_azf3328_ctrl_outw()
436 snd_azf3328_ctrl_outl(const struct snd_azf3328 *chip, unsigned reg, u32 value) in snd_azf3328_ctrl_outl()
442 snd_azf3328_game_outb(const struct snd_azf3328 *chip, unsigned reg, u8 value) in snd_azf3328_game_outb()
448 snd_azf3328_game_outw(const struct snd_azf3328 *chip, unsigned reg, u16 value) in snd_azf3328_game_outw()
454 snd_azf3328_game_inb(const struct snd_azf3328 *chip, unsigned reg) in snd_azf3328_game_inb()
460 snd_azf3328_game_inw(const struct snd_azf3328 *chip, unsigned reg) in snd_azf3328_game_inw()
466 snd_azf3328_mixer_outw(const struct snd_azf3328 *chip, unsigned reg, u16 value) in snd_azf3328_mixer_outw()
[all …]
Datiixp.c313 static int snd_atiixp_update_bits(struct atiixp *chip, unsigned int reg, in snd_atiixp_update_bits()
330 #define atiixp_write(chip,reg,value) \ argument
332 #define atiixp_read(chip,reg) \ argument
334 #define atiixp_update(chip,reg,mask,val) \ argument
356 static int atiixp_build_dma_packets(struct atiixp *chip, struct atiixp_dma *dma, in atiixp_build_dma_packets()
416 static void atiixp_clear_dma_packets(struct atiixp *chip, struct atiixp_dma *dma, in atiixp_clear_dma_packets()
429 static int snd_atiixp_acquire_codec(struct atiixp *chip) in snd_atiixp_acquire_codec()
443 static unsigned short snd_atiixp_codec_read(struct atiixp *chip, unsigned short codec, unsigned sho… in snd_atiixp_codec_read()
471 static void snd_atiixp_codec_write(struct atiixp *chip, unsigned short codec, in snd_atiixp_codec_write()
488 struct atiixp *chip = ac97->private_data; in snd_atiixp_ac97_read() local
[all …]
Datiixp_modem.c281 static int snd_atiixp_update_bits(struct atiixp_modem *chip, unsigned int reg, in snd_atiixp_update_bits()
298 #define atiixp_write(chip,reg,value) \ argument
300 #define atiixp_read(chip,reg) \ argument
302 #define atiixp_update(chip,reg,mask,val) \ argument
324 static int atiixp_build_dma_packets(struct atiixp_modem *chip, in atiixp_build_dma_packets()
383 static void atiixp_clear_dma_packets(struct atiixp_modem *chip, in atiixp_clear_dma_packets()
397 static int snd_atiixp_acquire_codec(struct atiixp_modem *chip) in snd_atiixp_acquire_codec()
411 static unsigned short snd_atiixp_codec_read(struct atiixp_modem *chip, in snd_atiixp_codec_read()
441 static void snd_atiixp_codec_write(struct atiixp_modem *chip, in snd_atiixp_codec_write()
459 struct atiixp_modem *chip = ac97->private_data; in snd_atiixp_ac97_read() local
[all …]
Des1938.c90 #define SLIO_REG(chip, x) ((chip)->io_port + ESSIO_REG_##x) argument
92 #define SLDM_REG(chip, x) ((chip)->ddma_port + ESSDM_REG_##x) argument
94 #define SLSB_REG(chip, x) ((chip)->sb_port + ESSSB_REG_##x) argument
259 static void snd_es1938_mixer_write(struct es1938 *chip, unsigned char reg, unsigned char val) in snd_es1938_mixer_write()
272 static int snd_es1938_mixer_read(struct es1938 *chip, unsigned char reg) in snd_es1938_mixer_read()
287 static int snd_es1938_mixer_bits(struct es1938 *chip, unsigned char reg, in snd_es1938_mixer_bits()
310 static void snd_es1938_write_cmd(struct es1938 *chip, unsigned char cmd) in snd_es1938_write_cmd()
327 static int snd_es1938_get_byte(struct es1938 *chip) in snd_es1938_get_byte()
341 static void snd_es1938_write(struct es1938 *chip, unsigned char reg, unsigned char val) in snd_es1938_write()
354 static unsigned char snd_es1938_read(struct es1938 *chip, unsigned char reg) in snd_es1938_read()
[all …]
Des1968.c590 static void __maestro_write(struct es1968 *chip, u16 reg, u16 data) in __maestro_write()
597 static inline void maestro_write(struct es1968 *chip, u16 reg, u16 data) in maestro_write()
606 static u16 __maestro_read(struct es1968 *chip, u16 reg) in __maestro_read()
615 static inline u16 maestro_read(struct es1968 *chip, u16 reg) in maestro_read()
626 static int snd_es1968_ac97_wait(struct es1968 *chip) in snd_es1968_ac97_wait()
639 static int snd_es1968_ac97_wait_poll(struct es1968 *chip) in snd_es1968_ac97_wait_poll()
653 struct es1968 *chip = ac97->private_data; in snd_es1968_ac97_write() local
667 struct es1968 *chip = ac97->private_data; in snd_es1968_ac97_read() local
683 static void apu_index_set(struct es1968 *chip, u16 index) in apu_index_set()
694 static void apu_data_set(struct es1968 *chip, u16 data) in apu_data_set()
[all …]
Dfm801.c76 #define fm801_writew(chip,reg,value) outw((value), chip->port + FM801_##reg) argument
77 #define fm801_readw(chip,reg) inw(chip->port + FM801_##reg) argument
79 #define fm801_writel(chip,reg,value) outl((value), chip->port + FM801_##reg) argument
227 static bool fm801_ac97_is_ready(struct fm801 *chip, unsigned int iterations) in fm801_ac97_is_ready()
239 static bool fm801_ac97_is_valid(struct fm801 *chip, unsigned int iterations) in fm801_ac97_is_valid()
251 static int snd_fm801_update_bits(struct fm801 *chip, unsigned short reg, in snd_fm801_update_bits()
272 struct fm801 *chip = ac97->private_data; in snd_fm801_codec_write() local
295 struct fm801 *chip = ac97->private_data; in snd_fm801_codec_read() local
367 struct fm801 *chip = snd_pcm_substream_chip(substream); in snd_fm801_playback_trigger() local
402 struct fm801 *chip = snd_pcm_substream_chip(substream); in snd_fm801_capture_trigger() local
[all …]
Dintel8x0m.c251 static inline u8 igetbyte(struct intel8x0m *chip, u32 offset) in igetbyte()
256 static inline u16 igetword(struct intel8x0m *chip, u32 offset) in igetword()
261 static inline u32 igetdword(struct intel8x0m *chip, u32 offset) in igetdword()
266 static inline void iputbyte(struct intel8x0m *chip, u32 offset, u8 val) in iputbyte()
271 static inline void iputword(struct intel8x0m *chip, u32 offset, u16 val) in iputword()
276 static inline void iputdword(struct intel8x0m *chip, u32 offset, u32 val) in iputdword()
285 static inline u16 iagetword(struct intel8x0m *chip, u32 offset) in iagetword()
290 static inline void iaputword(struct intel8x0m *chip, u32 offset, u16 val) in iaputword()
304 static unsigned int get_ich_codec_bit(struct intel8x0m *chip, unsigned int codec) in get_ich_codec_bit()
314 static int snd_intel8x0m_codec_semaphore(struct intel8x0m *chip, unsigned int codec) in snd_intel8x0m_codec_semaphore()
[all …]
Dbt87x.c217 static inline u32 snd_bt87x_readl(struct snd_bt87x *chip, u32 reg) in snd_bt87x_readl()
222 static inline void snd_bt87x_writel(struct snd_bt87x *chip, u32 reg, u32 value) in snd_bt87x_writel()
227 static int snd_bt87x_create_risc(struct snd_bt87x *chip, struct snd_pcm_substream *substream, in snd_bt87x_create_risc()
278 static void snd_bt87x_free_risc(struct snd_bt87x *chip) in snd_bt87x_free_risc()
286 static void snd_bt87x_pci_error(struct snd_bt87x *chip, unsigned int status) in snd_bt87x_pci_error()
321 struct snd_bt87x *chip = dev_id; in snd_bt87x_interrupt() local
392 static int snd_bt87x_set_digital_hw(struct snd_bt87x *chip, struct snd_pcm_runtime *runtime) in snd_bt87x_set_digital_hw()
402 static int snd_bt87x_set_analog_hw(struct snd_bt87x *chip, struct snd_pcm_runtime *runtime) in snd_bt87x_set_analog_hw()
423 struct snd_bt87x *chip = snd_pcm_substream_chip(substream); in snd_bt87x_pcm_open() local
452 struct snd_bt87x *chip = snd_pcm_substream_chip(substream); in snd_bt87x_close() local
[all …]
Dvia82xx.c430 struct via82xx *chip = snd_pcm_substream_chip(substream); in build_via_table() local
512 static inline unsigned int snd_via82xx_codec_xread(struct via82xx *chip) in snd_via82xx_codec_xread()
517 static inline void snd_via82xx_codec_xwrite(struct via82xx *chip, unsigned int val) in snd_via82xx_codec_xwrite()
522 static int snd_via82xx_codec_ready(struct via82xx *chip, int secondary) in snd_via82xx_codec_ready()
537 static int snd_via82xx_codec_valid(struct via82xx *chip, int secondary) in snd_via82xx_codec_valid()
556 struct via82xx *chip = ac97->private_data; in snd_via82xx_codec_wait() local
568 struct via82xx *chip = ac97->private_data; in snd_via82xx_codec_write() local
581 struct via82xx *chip = ac97->private_data; in snd_via82xx_codec_read() local
607 static void snd_via82xx_channel_reset(struct via82xx *chip, struct viadev *viadev) in snd_via82xx_channel_reset()
630 struct via82xx *chip = dev_id; in snd_via686_interrupt() local
[all …]
Dals300.c165 static void snd_als300_set_irq_flag(struct snd_als300 *chip, int cmd) in snd_als300_set_irq_flag()
180 static int snd_als300_free(struct snd_als300 *chip) in snd_als300_free()
193 struct snd_als300 *chip = device->device_data; in snd_als300_dev_free() local
200 struct snd_als300 *chip = dev_id; in snd_als300_interrupt() local
231 struct snd_als300 *chip = dev_id; in snd_als300plus_interrupt() local
274 struct snd_als300 *chip = ac97->private_data; in snd_als300_ac97_read() local
295 struct snd_als300 *chip = ac97->private_data; in snd_als300_ac97_write() local
305 static int snd_als300_ac97(struct snd_als300 *chip) in snd_als300_ac97()
371 struct snd_als300 *chip = snd_pcm_substream_chip(substream); in snd_als300_playback_open() local
388 struct snd_als300 *chip = snd_pcm_substream_chip(substream); in snd_als300_playback_close() local
[all …]
Dintel8x0.c466 static inline u8 igetbyte(struct intel8x0 *chip, u32 offset) in igetbyte()
471 static inline u16 igetword(struct intel8x0 *chip, u32 offset) in igetword()
476 static inline u32 igetdword(struct intel8x0 *chip, u32 offset) in igetdword()
481 static inline void iputbyte(struct intel8x0 *chip, u32 offset, u8 val) in iputbyte()
486 static inline void iputword(struct intel8x0 *chip, u32 offset, u16 val) in iputword()
491 static inline void iputdword(struct intel8x0 *chip, u32 offset, u32 val) in iputdword()
500 static inline u16 iagetword(struct intel8x0 *chip, u32 offset) in iagetword()
505 static inline void iaputword(struct intel8x0 *chip, u32 offset, u16 val) in iaputword()
518 static int snd_intel8x0_codec_semaphore(struct intel8x0 *chip, unsigned int codec) in snd_intel8x0_codec_semaphore()
562 struct intel8x0 *chip = ac97->private_data; in snd_intel8x0_codec_write() local
[all …]
Dvia82xx_modem.c283 struct via82xx_modem *chip = snd_pcm_substream_chip(substream); in build_via_table() local
366 static inline unsigned int snd_via82xx_codec_xread(struct via82xx_modem *chip) in snd_via82xx_codec_xread()
371 static inline void snd_via82xx_codec_xwrite(struct via82xx_modem *chip, unsigned int val) in snd_via82xx_codec_xwrite()
376 static int snd_via82xx_codec_ready(struct via82xx_modem *chip, int secondary) in snd_via82xx_codec_ready()
391 static int snd_via82xx_codec_valid(struct via82xx_modem *chip, int secondary) in snd_via82xx_codec_valid()
410 struct via82xx_modem *chip = ac97->private_data; in snd_via82xx_codec_wait() local
421 struct via82xx_modem *chip = ac97->private_data; in snd_via82xx_codec_write() local
437 struct via82xx_modem *chip = ac97->private_data; in snd_via82xx_codec_read() local
463 static void snd_via82xx_channel_reset(struct via82xx_modem *chip, struct viadev *viadev) in snd_via82xx_channel_reset()
485 struct via82xx_modem *chip = dev_id; in snd_via82xx_interrupt() local
[all …]
Dals4000.c113 struct snd_sb *chip; member
269 static inline void snd_als4_cr_write(struct snd_sb *chip, in snd_als4_cr_write()
279 static inline u8 snd_als4_cr_read(struct snd_sb *chip, in snd_als4_cr_read()
288 static void snd_als4000_set_rate(struct snd_sb *chip, unsigned int rate) in snd_als4000_set_rate()
297 static inline void snd_als4000_set_capture_dma(struct snd_sb *chip, in snd_als4000_set_capture_dma()
305 static inline void snd_als4000_set_playback_dma(struct snd_sb *chip, in snd_als4000_set_playback_dma()
354 #define playback_cmd(chip) (playback_cmd_vals[(chip)->playback_format]) argument
369 #define capture_cmd(chip) (capture_cmd_vals[(chip)->capture_format]) argument
385 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_als4000_capture_prepare() local
412 struct snd_sb *chip = snd_pcm_substream_chip(substream); in snd_als4000_playback_prepare() local
[all …]
/linux-4.1.27/sound/isa/wss/
Dwss_lib.c165 static inline void wss_outb(struct snd_wss *chip, u8 offset, u8 val) in wss_outb()
170 static inline u8 wss_inb(struct snd_wss *chip, u8 offset) in wss_inb()
175 static void snd_wss_wait(struct snd_wss *chip) in snd_wss_wait()
185 static void snd_wss_dout(struct snd_wss *chip, unsigned char reg, in snd_wss_dout()
199 void snd_wss_out(struct snd_wss *chip, unsigned char reg, unsigned char value) in snd_wss_out()
216 unsigned char snd_wss_in(struct snd_wss *chip, unsigned char reg) in snd_wss_in()
230 void snd_cs4236_ext_out(struct snd_wss *chip, unsigned char reg, in snd_cs4236_ext_out()
244 unsigned char snd_cs4236_ext_in(struct snd_wss *chip, unsigned char reg) in snd_cs4236_ext_in()
360 static void snd_wss_busy_wait(struct snd_wss *chip) in snd_wss_busy_wait()
374 void snd_wss_mce_up(struct snd_wss *chip) in snd_wss_mce_up()
[all …]
/linux-4.1.27/arch/mips/alchemy/common/
Dgpiolib.c41 static int gpio2_get(struct gpio_chip *chip, unsigned offset) in gpio2_get()
46 static void gpio2_set(struct gpio_chip *chip, unsigned offset, int value) in gpio2_set()
51 static int gpio2_direction_input(struct gpio_chip *chip, unsigned offset) in gpio2_direction_input()
56 static int gpio2_direction_output(struct gpio_chip *chip, unsigned offset, in gpio2_direction_output()
63 static int gpio2_to_irq(struct gpio_chip *chip, unsigned offset) in gpio2_to_irq()
69 static int gpio1_get(struct gpio_chip *chip, unsigned offset) in gpio1_get()
74 static void gpio1_set(struct gpio_chip *chip, in gpio1_set()
80 static int gpio1_direction_input(struct gpio_chip *chip, unsigned offset) in gpio1_direction_input()
85 static int gpio1_direction_output(struct gpio_chip *chip, in gpio1_direction_output()
92 static int gpio1_to_irq(struct gpio_chip *chip, unsigned offset) in gpio1_to_irq()
[all …]
/linux-4.1.27/sound/ppc/
Dpmac.c64 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) in snd_pmac_dbdma_alloc()
80 static void snd_pmac_dbdma_free(struct snd_pmac *chip, struct pmac_dbdma *rec) in snd_pmac_dbdma_free()
98 unsigned int snd_pmac_rate_index(struct snd_pmac *chip, struct pmac_stream *rec, unsigned int rate) in snd_pmac_rate_index()
145 static struct pmac_stream *snd_pmac_get_stream(struct snd_pmac *chip, int stream) in snd_pmac_get_stream()
173 static void snd_pmac_pcm_set_format(struct snd_pmac *chip) in snd_pmac_pcm_set_format()
211 static int snd_pmac_pcm_prepare(struct snd_pmac *chip, struct pmac_stream *rec, struct snd_pcm_subs… in snd_pmac_pcm_prepare()
275 static int snd_pmac_pcm_trigger(struct snd_pmac *chip, struct pmac_stream *rec, in snd_pmac_pcm_trigger()
322 static snd_pcm_uframes_t snd_pmac_pcm_pointer(struct snd_pmac *chip, in snd_pmac_pcm_pointer()
349 struct snd_pmac *chip = snd_pcm_substream_chip(subs); in snd_pmac_playback_prepare() local
356 struct snd_pmac *chip = snd_pcm_substream_chip(subs); in snd_pmac_playback_trigger() local
[all …]
Dawacs.c48 static void snd_pmac_screamer_wait(struct snd_pmac *chip) in snd_pmac_screamer_wait()
64 snd_pmac_awacs_write(struct snd_pmac *chip, int val) in snd_pmac_awacs_write()
80 snd_pmac_awacs_write_reg(struct snd_pmac *chip, int reg, int val) in snd_pmac_awacs_write_reg()
87 snd_pmac_awacs_write_noreg(struct snd_pmac *chip, int reg, int val) in snd_pmac_awacs_write_noreg()
94 static void screamer_recalibrate(struct snd_pmac *chip) in screamer_recalibrate()
114 #define screamer_recalibrate(chip) /* NOP */ argument
121 static void snd_pmac_awacs_set_format(struct snd_pmac *chip) in snd_pmac_awacs_set_format()
148 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_awacs_get_volume() local
171 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_awacs_put_volume() local
214 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_awacs_get_switch() local
[all …]
Dburgundy.c32 snd_pmac_burgundy_busy_wait(struct snd_pmac *chip) in snd_pmac_burgundy_busy_wait()
42 snd_pmac_burgundy_extend_wait(struct snd_pmac *chip) in snd_pmac_burgundy_extend_wait()
58 snd_pmac_burgundy_wcw(struct snd_pmac *chip, unsigned addr, unsigned val) in snd_pmac_burgundy_wcw()
71 snd_pmac_burgundy_rcw(struct snd_pmac *chip, unsigned addr) in snd_pmac_burgundy_rcw()
104 snd_pmac_burgundy_wcb(struct snd_pmac *chip, unsigned int addr, in snd_pmac_burgundy_wcb()
112 snd_pmac_burgundy_rcb(struct snd_pmac *chip, unsigned int addr) in snd_pmac_burgundy_rcb()
136 snd_pmac_burgundy_write_volume(struct snd_pmac *chip, unsigned int address, in snd_pmac_burgundy_write_volume()
155 snd_pmac_burgundy_read_volume(struct snd_pmac *chip, unsigned int address, in snd_pmac_burgundy_read_volume()
187 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_get_volume() local
198 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_put_volume() local
[all …]
Ddaca.c98 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in daca_get_deemphasis() local
109 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in daca_put_deemphasis() local
137 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in daca_get_volume() local
149 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in daca_put_volume() local
176 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in daca_get_amp() local
187 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in daca_put_amp() local
225 static void daca_resume(struct snd_pmac *chip) in daca_resume()
236 static void daca_cleanup(struct snd_pmac *chip) in daca_cleanup()
247 int snd_pmac_daca_init(struct snd_pmac *chip) in snd_pmac_daca_init()
Dtumbler.c269 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in tumbler_get_master_volume() local
280 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in tumbler_put_master_volume() local
304 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in tumbler_get_master_switch() local
315 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in tumbler_put_master_switch() local
405 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in tumbler_info_drc_value() local
417 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in tumbler_get_drc_value() local
428 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in tumbler_put_drc_value() local
457 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in tumbler_get_drc_switch() local
468 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in tumbler_put_drc_switch() local
539 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in tumbler_get_mono() local
[all …]
/linux-4.1.27/sound/pci/cs46xx/
Dcs46xx_lib.c88 static unsigned short snd_cs46xx_codec_read(struct snd_cs46xx *chip, in snd_cs46xx_codec_read()
218 struct snd_cs46xx *chip = ac97->private_data; in snd_cs46xx_ac97_read() local
232 static void snd_cs46xx_codec_write(struct snd_cs46xx *chip, in snd_cs46xx_codec_write()
303 struct snd_cs46xx *chip = ac97->private_data; in snd_cs46xx_ac97_write() local
318 int snd_cs46xx_download(struct snd_cs46xx *chip, in snd_cs46xx_download()
396 static int load_firmware(struct snd_cs46xx *chip, in load_firmware()
482 int snd_cs46xx_clear_BA1(struct snd_cs46xx *chip, in snd_cs46xx_clear_BA1()
515 static int load_firmware(struct snd_cs46xx *chip) in load_firmware()
548 int snd_cs46xx_download_image(struct snd_cs46xx *chip) in snd_cs46xx_download_image()
571 static void snd_cs46xx_reset(struct snd_cs46xx *chip) in snd_cs46xx_reset()
[all …]
Ddsp_spos.c58 static int shadow_and_reallocate_code (struct snd_cs46xx * chip, u32 * data, u32 size, in shadow_and_reallocate_code()
151 static int add_symbols (struct snd_cs46xx * chip, struct dsp_module_desc * module) in add_symbols()
197 add_symbol (struct snd_cs46xx * chip, char * symbol_name, u32 address, int type) in add_symbol()
234 struct dsp_spos_instance *cs46xx_dsp_spos_create (struct snd_cs46xx * chip) in cs46xx_dsp_spos_create()
287 void cs46xx_dsp_spos_destroy (struct snd_cs46xx * chip) in cs46xx_dsp_spos_destroy()
312 static int dsp_load_parameter(struct snd_cs46xx *chip, in dsp_load_parameter()
337 static int dsp_load_sample(struct snd_cs46xx *chip, in dsp_load_sample()
363 int cs46xx_dsp_load_module (struct snd_cs46xx * chip, struct dsp_module_desc * module) in cs46xx_dsp_load_module()
454 cs46xx_dsp_lookup_symbol (struct snd_cs46xx * chip, char * symbol_name, int symbol_type) in cs46xx_dsp_lookup_symbol()
481 cs46xx_dsp_lookup_symbol_addr (struct snd_cs46xx * chip, u32 address, int symbol_type) in cs46xx_dsp_lookup_symbol_addr()
[all …]
Ddsp_spos_scb_lib.c41 struct snd_cs46xx *chip; member
44 static void remove_symbol (struct snd_cs46xx * chip, struct dsp_symbol_entry * symbol) in remove_symbol()
77 struct snd_cs46xx *chip = scb_info->chip; in cs46xx_dsp_proc_scb_info_read() local
115 static void _dsp_unlink_scb (struct snd_cs46xx *chip, struct dsp_scb_descriptor * scb) in _dsp_unlink_scb()
165 static void _dsp_clear_sample_buffer (struct snd_cs46xx *chip, u32 sample_buffer_addr, in _dsp_clear_sample_buffer()
177 void cs46xx_dsp_remove_scb (struct snd_cs46xx *chip, struct dsp_scb_descriptor * scb) in cs46xx_dsp_remove_scb()
236 struct snd_cs46xx *chip = scb_info->chip; in cs46xx_dsp_proc_free_scb_desc() local
249 void cs46xx_dsp_proc_register_scb_desc (struct snd_cs46xx *chip, in cs46xx_dsp_proc_register_scb_desc()
291 _dsp_create_generic_scb (struct snd_cs46xx *chip, char * name, u32 * scb_data, u32 dest, in _dsp_create_generic_scb()
369 cs46xx_dsp_create_generic_scb (struct snd_cs46xx *chip, char * name, u32 * scb_data, in cs46xx_dsp_create_generic_scb()
[all …]
Dcs46xx_lib.h60 static inline void snd_cs46xx_poke(struct snd_cs46xx *chip, unsigned long reg, unsigned int val) in snd_cs46xx_poke()
73 static inline unsigned int snd_cs46xx_peek(struct snd_cs46xx *chip, unsigned long reg) in snd_cs46xx_peek()
80 static inline void snd_cs46xx_pokeBA0(struct snd_cs46xx *chip, unsigned long offset, unsigned int v… in snd_cs46xx_pokeBA0()
85 static inline unsigned int snd_cs46xx_peekBA0(struct snd_cs46xx *chip, unsigned long offset) in snd_cs46xx_peekBA0()
102 #define cs46xx_dsp_proc_init(card, chip) argument
103 #define cs46xx_dsp_proc_done(chip) argument
127 #define cs46xx_dsp_proc_register_scb_desc(chip, scb) argument
/linux-4.1.27/sound/pci/vx222/
Dvx222_ops.c89 struct snd_vx222 *chip = (struct snd_vx222 *)_chip; in vx2_reg_addr() local
98 static unsigned char vx2_inb(struct vx_core *chip, int offset) in vx2_inb()
109 static void vx2_outb(struct vx_core *chip, int offset, unsigned char val) in vx2_outb()
122 static unsigned int vx2_inl(struct vx_core *chip, int offset) in vx2_inl()
133 static void vx2_outl(struct vx_core *chip, int offset, unsigned int val) in vx2_outl()
145 #define vx_inb(chip,reg) vx2_inb((struct vx_core*)(chip), VX_##reg) argument
147 #define vx_outb(chip,reg,val) vx2_outb((struct vx_core*)(chip), VX_##reg, val) argument
149 #define vx_inl(chip,reg) vx2_inl((struct vx_core*)(chip), VX_##reg) argument
151 #define vx_outl(chip,reg,val) vx2_outl((struct vx_core*)(chip), VX_##reg, val) argument
162 struct snd_vx222 *chip = (struct snd_vx222 *)_chip; in vx2_reset_dsp() local
[all …]
/linux-4.1.27/sound/pcmcia/vx/
Dvxp_ops.c53 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; in vxp_reg_addr() local
61 static unsigned char vxp_inb(struct vx_core *chip, int offset) in vxp_inb()
71 static void vxp_outb(struct vx_core *chip, int offset, unsigned char val) in vxp_outb()
80 #define vx_inb(chip,reg) vxp_inb((struct vx_core *)(chip), VX_##reg) argument
82 #define vx_outb(chip,reg,val) vxp_outb((struct vx_core *)(chip), VX_##reg,val) argument
90 static int vx_check_magic(struct vx_core *chip) in vx_check_magic()
113 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; in vxp_reset_dsp() local
131 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; in vxp_reset_codec() local
150 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; in vxp_load_xilinx_binary() local
283 struct snd_vxpocket *chip = (struct snd_vxpocket *)_chip; in vxp_test_and_ack() local
[all …]
Dvxpocket.c74 struct vx_core *chip = device->device_data; in snd_vxpocket_dev_free() local
139 struct vx_core *chip; in snd_vxpocket_new() local
186 static int snd_vxpocket_assign_resources(struct vx_core *chip, int port, int irq) in snd_vxpocket_assign_resources()
214 struct vx_core *chip = link->priv; in vxpocket_config() local
263 struct vx_core *chip = link->priv; in vxp_suspend() local
276 struct vx_core *chip = link->priv; in vxp_resume() local
340 struct vx_core *chip; in vxpocket_detach() local
/linux-4.1.27/sound/drivers/vx/
Dvx_core.c52 int snd_vx_check_reg_bit(struct vx_core *chip, int reg, int mask, int bit, int time) in snd_vx_check_reg_bit()
82 static int vx_send_irq_dsp(struct vx_core *chip, int num) in vx_send_irq_dsp()
103 static int vx_reset_chk(struct vx_core *chip) in vx_reset_chk()
122 static int vx_transfer_end(struct vx_core *chip, int cmd) in vx_transfer_end()
160 static int vx_read_status(struct vx_core *chip, struct vx_rmh *rmh) in vx_read_status()
241 int vx_send_msg_nolock(struct vx_core *chip, struct vx_rmh *rmh) in vx_send_msg_nolock()
346 int vx_send_msg(struct vx_core *chip, struct vx_rmh *rmh) in vx_send_msg()
368 int vx_send_rih_nolock(struct vx_core *chip, int cmd) in vx_send_rih_nolock()
405 int vx_send_rih(struct vx_core *chip, int cmd) in vx_send_rih()
422 int snd_vx_load_boot_image(struct vx_core *chip, const struct firmware *boot) in snd_vx_load_boot_image()
[all …]
Dvx_uer.c33 static int vx_modify_board_clock(struct vx_core *chip, int sync) in vx_modify_board_clock()
47 static int vx_modify_board_inputs(struct vx_core *chip) in vx_modify_board_inputs()
61 static int vx_read_one_cbit(struct vx_core *chip, int index) in vx_read_one_cbit()
84 static void vx_write_one_cbit(struct vx_core *chip, int index, int val) in vx_write_one_cbit()
105 static int vx_read_uer_status(struct vx_core *chip, unsigned int *mode) in vx_read_uer_status()
161 static int vx_calc_clock_from_freq(struct vx_core *chip, int freq) in vx_calc_clock_from_freq()
190 static void vx_change_clock_source(struct vx_core *chip, int source) in vx_change_clock_source()
206 void vx_set_internal_clock(struct vx_core *chip, unsigned int freq) in vx_set_internal_clock()
229 void vx_set_iec958_status(struct vx_core *chip, unsigned int bits) in vx_set_iec958_status()
244 int vx_set_clock(struct vx_core *chip, unsigned int freq) in vx_set_clock()
[all …]
Dvx_pcm.c60 static void vx_pcm_read_per_bytes(struct vx_core *chip, struct snd_pcm_runtime *runtime, in vx_pcm_read_per_bytes()
88 static void vx_set_pcx_time(struct vx_core *chip, pcx_time_t *pc_time, in vx_set_pcx_time()
105 static int vx_set_differed_time(struct vx_core *chip, struct vx_rmh *rmh, in vx_set_differed_time()
139 static int vx_set_stream_format(struct vx_core *chip, struct vx_pipe *pipe, in vx_set_stream_format()
166 static int vx_set_format(struct vx_core *chip, struct vx_pipe *pipe, in vx_set_format()
195 static int vx_set_ibl(struct vx_core *chip, struct vx_ibl_info *info) in vx_set_ibl()
225 static int vx_get_pipe_state(struct vx_core *chip, struct vx_pipe *pipe, int *state) in vx_get_pipe_state()
250 static int vx_query_hbuffer_size(struct vx_core *chip, struct vx_pipe *pipe) in vx_query_hbuffer_size()
274 static int vx_pipe_can_start(struct vx_core *chip, struct vx_pipe *pipe) in vx_pipe_can_start()
295 static int vx_conf_pipe(struct vx_core *chip, struct vx_pipe *pipe) in vx_conf_pipe()
[all …]
Dvx_mixer.c33 static void vx_write_codec_reg(struct vx_core *chip, int codec, unsigned int data) in vx_write_codec_reg()
87 static void vx_set_codec_reg(struct vx_core *chip, int codec, int reg, int val) in vx_set_codec_reg()
104 static void vx_set_analog_output_level(struct vx_core *chip, int codec, int left, int right) in vx_set_analog_output_level()
128 void vx_toggle_dac_mute(struct vx_core *chip, int mute) in vx_toggle_dac_mute()
143 void vx_reset_codec(struct vx_core *chip, int cold_reset) in vx_reset_codec()
177 static void vx_change_audio_source(struct vx_core *chip, int src) in vx_change_audio_source()
192 int vx_sync_audio_source(struct vx_core *chip) in vx_sync_audio_source()
217 static int vx_adjust_audio_level(struct vx_core *chip, int audio, int capture, in vx_adjust_audio_level()
283 int vx_set_monitor_level(struct vx_core *chip, int audio, int level, int active) in vx_set_monitor_level()
301 static int vx_set_audio_switch(struct vx_core *chip, int audio, int active) in vx_set_audio_switch()
[all …]
/linux-4.1.27/sound/drivers/pcsp/
Dpcsp_lib.c43 static u64 pcsp_timer_update(struct snd_pcsp *chip) in pcsp_timer_update()
87 static void pcsp_pointer_update(struct snd_pcsp *chip) in pcsp_pointer_update()
130 struct snd_pcsp *chip = container_of(handle, struct snd_pcsp, timer); in pcsp_do_timer() local
152 static int pcsp_start_playing(struct snd_pcsp *chip) in pcsp_start_playing()
173 static void pcsp_stop_playing(struct snd_pcsp *chip) in pcsp_stop_playing()
192 void pcsp_sync_stop(struct snd_pcsp *chip) in pcsp_sync_stop()
203 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_close() local
215 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_hw_params() local
227 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_hw_free() local
237 struct snd_pcsp *chip = snd_pcm_substream_chip(substream); in snd_pcsp_playback_prepare() local
[all …]
Dpcsp_mixer.c26 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_enable_get() local
34 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_enable_put() local
47 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_treble_info() local
61 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_treble_get() local
69 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_treble_put() local
95 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_pcspkr_get() local
103 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_pcspkr_put() local
131 static int snd_pcsp_ctls_add(struct snd_pcsp *chip, in snd_pcsp_ctls_add()
144 int snd_pcsp_new_mixer(struct snd_pcsp *chip, int nopcm) in snd_pcsp_new_mixer()
/linux-4.1.27/sound/pci/hda/
Dhda_controller.c55 static void azx_stream_start(struct azx *chip, struct azx_dev *azx_dev) in azx_stream_start()
72 static void azx_stream_clear(struct azx *chip, struct azx_dev *azx_dev) in azx_stream_clear()
81 void azx_stream_stop(struct azx *chip, struct azx_dev *azx_dev) in azx_stream_stop()
91 static void azx_stream_reset(struct azx *chip, struct azx_dev *azx_dev) in azx_stream_reset()
123 static int azx_setup_controller(struct azx *chip, struct azx_dev *azx_dev) in azx_setup_controller()
170 azx_assign_device(struct azx *chip, struct snd_pcm_substream *substream) in azx_assign_device()
221 struct azx *chip = apcm->chip; in azx_cc_read() local
290 static int setup_bdle(struct azx *chip, in setup_bdle()
333 static int azx_setup_periods(struct azx *chip, in azx_setup_periods()
408 struct azx *chip = apcm->chip; in azx_pcm_close() local
[all …]
Dhda_intel.c273 #define azx_get_snoop_type(chip) \ argument
343 #define use_vga_switcheroo(chip) ((chip)->use_vga_switcheroo) argument
345 #define use_vga_switcheroo(chip) 0 argument
373 static void __mark_pages_wc(struct azx *chip, struct snd_dma_buffer *dmab, bool on) in __mark_pages_wc()
402 static inline void mark_pages_wc(struct azx *chip, struct snd_dma_buffer *buf, in mark_pages_wc()
407 static inline void mark_runtime_wc(struct azx *chip, struct azx_dev *azx_dev, in mark_runtime_wc()
417 static inline void mark_pages_wc(struct azx *chip, struct snd_dma_buffer *buf, in mark_pages_wc()
421 static inline void mark_runtime_wc(struct azx *chip, struct azx_dev *azx_dev, in mark_runtime_wc()
444 static void azx_init_pci(struct azx *chip) in azx_init_pci()
505 static int azx_get_delay_from_lpib(struct azx *chip, struct azx_dev *azx_dev, in azx_get_delay_from_lpib()
[all …]
Dhda_tegra.c70 struct azx chip; member
90 static int dma_alloc_pages(struct azx *chip, int type, size_t size, in dma_alloc_pages()
96 static void dma_free_pages(struct azx *chip, struct snd_dma_buffer *buf) in dma_free_pages()
101 static int substream_alloc_pages(struct azx *chip, in substream_alloc_pages()
113 static int substream_free_pages(struct azx *chip, in substream_free_pages()
251 struct azx *chip = card->private_data; in hda_tegra_suspend() local
266 struct azx *chip = card->private_data; in hda_tegra_resume() local
291 struct azx *chip = device->device_data; in hda_tegra_dev_free() local
304 static int hda_tegra_init_chip(struct azx *chip, struct platform_device *pdev) in hda_tegra_init_chip()
338 static int hda_tegra_first_init(struct azx *chip, struct platform_device *pdev) in hda_tegra_first_init()
[all …]
/linux-4.1.27/sound/pcmcia/pdaudiocf/
Dpdaudiocf_core.c33 struct snd_pdacf *chip = private_data; in pdacf_ak4117_read() local
65 struct snd_pdacf *chip = private_data; in pdacf_ak4117_write() local
104 static int pdacf_reset(struct snd_pdacf *chip, int powerdown) in pdacf_reset()
127 void pdacf_reinit(struct snd_pdacf *chip, int resume) in pdacf_reinit()
140 struct snd_pdacf *chip = entry->private_data; in pdacf_proc_read() local
149 static void pdacf_proc_init(struct snd_pdacf *chip) in pdacf_proc_init()
159 struct snd_pdacf *chip; in snd_pdacf_create() local
175 struct snd_pdacf *chip = ak4117->change_callback_private; in snd_pdacf_ak4117_change() local
190 int snd_pdacf_ak4117_create(struct snd_pdacf *chip) in snd_pdacf_ak4117_create()
246 void snd_pdacf_powerdown(struct snd_pdacf *chip) in snd_pdacf_powerdown()
[all …]
Dpdaudiocf_pcm.c32 static int pdacf_pcm_clear_sram(struct snd_pdacf *chip) in pdacf_pcm_clear_sram()
49 struct snd_pdacf *chip = snd_pcm_substream_chip(subs); in pdacf_pcm_trigger() local
122 struct snd_pdacf *chip = snd_pcm_substream_chip(subs); in pdacf_pcm_prepare() local
230 struct snd_pdacf *chip = snd_pcm_substream_chip(subs); in pdacf_pcm_capture_open() local
247 struct snd_pdacf *chip = snd_pcm_substream_chip(subs); in pdacf_pcm_capture_close() local
262 struct snd_pdacf *chip = snd_pcm_substream_chip(subs); in pdacf_pcm_capture_pointer() local
286 int snd_pdacf_pcm_new(struct snd_pdacf *chip) in snd_pdacf_pcm_new()
/linux-4.1.27/sound/isa/ad1816a/
Dad1816a_lib.c32 static inline int snd_ad1816a_busy_wait(struct snd_ad1816a *chip) in snd_ad1816a_busy_wait()
44 static inline unsigned char snd_ad1816a_in(struct snd_ad1816a *chip, unsigned char reg) in snd_ad1816a_in()
50 static inline void snd_ad1816a_out(struct snd_ad1816a *chip, unsigned char reg, in snd_ad1816a_out()
57 static inline void snd_ad1816a_out_mask(struct snd_ad1816a *chip, unsigned char reg, in snd_ad1816a_out_mask()
64 static unsigned short snd_ad1816a_read(struct snd_ad1816a *chip, unsigned char reg) in snd_ad1816a_read()
71 static void snd_ad1816a_write(struct snd_ad1816a *chip, unsigned char reg, in snd_ad1816a_write()
79 static void snd_ad1816a_write_mask(struct snd_ad1816a *chip, unsigned char reg, in snd_ad1816a_write_mask()
87 static unsigned char snd_ad1816a_get_format(struct snd_ad1816a *chip, in snd_ad1816a_get_format()
108 static int snd_ad1816a_open(struct snd_ad1816a *chip, unsigned int mode) in snd_ad1816a_open()
144 static void snd_ad1816a_close(struct snd_ad1816a *chip, unsigned int mode) in snd_ad1816a_close()
[all …]
/linux-4.1.27/sound/pci/ymfpci/
Dymfpci_main.c48 static inline u8 snd_ymfpci_readb(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readb()
53 static inline void snd_ymfpci_writeb(struct snd_ymfpci *chip, u32 offset, u8 val) in snd_ymfpci_writeb()
58 static inline u16 snd_ymfpci_readw(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readw()
63 static inline void snd_ymfpci_writew(struct snd_ymfpci *chip, u32 offset, u16 val) in snd_ymfpci_writew()
68 static inline u32 snd_ymfpci_readl(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readl()
73 static inline void snd_ymfpci_writel(struct snd_ymfpci *chip, u32 offset, u32 val) in snd_ymfpci_writel()
78 static int snd_ymfpci_codec_ready(struct snd_ymfpci *chip, int secondary) in snd_ymfpci_codec_ready()
97 struct snd_ymfpci *chip = ac97->private_data; in snd_ymfpci_codec_write() local
107 struct snd_ymfpci *chip = ac97->private_data; in snd_ymfpci_codec_read() local
179 static void snd_ymfpci_hw_start(struct snd_ymfpci *chip) in snd_ymfpci_hw_start()
[all …]
/linux-4.1.27/drivers/gpio/
Dgpio-samsung.c43 int samsung_gpio_setpull_updown(struct samsung_gpio_chip *chip, in samsung_gpio_setpull_updown()
58 samsung_gpio_pull_t samsung_gpio_getpull_updown(struct samsung_gpio_chip *chip, in samsung_gpio_getpull_updown()
71 int s3c2443_gpio_setpull(struct samsung_gpio_chip *chip, in s3c2443_gpio_setpull()
88 samsung_gpio_pull_t s3c2443_gpio_getpull(struct samsung_gpio_chip *chip, in s3c2443_gpio_getpull()
111 static int s3c24xx_gpio_setpull_1(struct samsung_gpio_chip *chip, in s3c24xx_gpio_setpull_1()
129 static samsung_gpio_pull_t s3c24xx_gpio_getpull_1(struct samsung_gpio_chip *chip, in s3c24xx_gpio_getpull_1()
140 samsung_gpio_pull_t s3c24xx_gpio_getpull_1up(struct samsung_gpio_chip *chip, in s3c24xx_gpio_getpull_1up()
146 int s3c24xx_gpio_setpull_1up(struct samsung_gpio_chip *chip, in s3c24xx_gpio_setpull_1up()
152 samsung_gpio_pull_t s3c24xx_gpio_getpull_1down(struct samsung_gpio_chip *chip, in s3c24xx_gpio_getpull_1down()
158 int s3c24xx_gpio_setpull_1down(struct samsung_gpio_chip *chip, in s3c24xx_gpio_setpull_1down()
[all …]
Dgpio-cs5535.c46 struct gpio_chip chip; member
59 static void errata_outl(struct cs5535_gpio_chip *chip, u32 val, in errata_outl()
82 static void __cs5535_gpio_set(struct cs5535_gpio_chip *chip, unsigned offset, in __cs5535_gpio_set()
95 struct cs5535_gpio_chip *chip = &cs5535_gpio_chip; in cs5535_gpio_set() local
104 static void __cs5535_gpio_clear(struct cs5535_gpio_chip *chip, unsigned offset, in __cs5535_gpio_clear()
117 struct cs5535_gpio_chip *chip = &cs5535_gpio_chip; in cs5535_gpio_clear() local
128 struct cs5535_gpio_chip *chip = &cs5535_gpio_chip; in cs5535_gpio_isset() local
166 struct cs5535_gpio_chip *chip = &cs5535_gpio_chip; in cs5535_gpio_setup_event() local
204 struct cs5535_gpio_chip *chip = in chip_gpio_request() local
230 static int chip_gpio_get(struct gpio_chip *chip, unsigned offset) in chip_gpio_get()
[all …]
Dgpiolib.h48 static inline void acpi_gpiochip_add(struct gpio_chip *chip) { } in acpi_gpiochip_add()
49 static inline void acpi_gpiochip_remove(struct gpio_chip *chip) { } in acpi_gpiochip_remove()
52 acpi_gpiochip_request_interrupts(struct gpio_chip *chip) { } in acpi_gpiochip_request_interrupts()
55 acpi_gpiochip_free_interrupts(struct gpio_chip *chip) { } in acpi_gpiochip_free_interrupts()
79 struct gpio_chip *chip; member
139 #define chip_emerg(chip, fmt, ...) \ argument
141 #define chip_crit(chip, fmt, ...) \ argument
143 #define chip_err(chip, fmt, ...) \ argument
145 #define chip_warn(chip, fmt, ...) \ argument
147 #define chip_info(chip, fmt, ...) \ argument
[all …]
Dgpio-pca953x.c79 #define NBANK(chip) (chip->gpio_chip.ngpio / BANK_SZ) argument
106 static int pca953x_read_single(struct pca953x_chip *chip, int reg, u32 *val, in pca953x_read_single()
125 static int pca953x_write_single(struct pca953x_chip *chip, int reg, u32 val, in pca953x_write_single()
143 static int pca953x_write_regs(struct pca953x_chip *chip, int reg, u8 *val) in pca953x_write_regs()
180 static int pca953x_read_regs(struct pca953x_chip *chip, int reg, u8 *val) in pca953x_read_regs()
208 struct pca953x_chip *chip = to_pca(gc); in pca953x_gpio_direction_input() local
237 struct pca953x_chip *chip = to_pca(gc); in pca953x_gpio_direction_output() local
287 struct pca953x_chip *chip = to_pca(gc); in pca953x_gpio_get_value() local
315 struct pca953x_chip *chip = to_pca(gc); in pca953x_gpio_set_value() local
344 static void pca953x_setup_gpio(struct pca953x_chip *chip, int gpios) in pca953x_setup_gpio()
[all …]
Dgpiolib.c50 #define GPIO_OFFSET_VALID(chip, offset) (offset >= 0 && offset < chip->ngpio) argument
71 struct gpio_chip *chip; in gpio_to_desc() local
95 struct gpio_desc *gpiochip_get_desc(struct gpio_chip *chip, in gpiochip_get_desc()
129 struct gpio_chip *chip; in gpiochip_find_base() local
160 struct gpio_chip *chip; in gpiod_get_direction() local
191 static int gpiochip_add_to_list(struct gpio_chip *chip) in gpiochip_add_to_list()
238 int gpiochip_add(struct gpio_chip *chip) in gpiochip_add()
328 void gpiochip_remove(struct gpio_chip *chip) in gpiochip_remove()
370 int (*match)(struct gpio_chip *chip, in gpiochip_find()
373 struct gpio_chip *chip; in gpiochip_find() local
[all …]
Dgpio-sx150x.c187 static inline bool offset_is_oscio(struct sx150x_chip *chip, unsigned offset) in offset_is_oscio()
220 static s32 sx150x_write_cfg(struct sx150x_chip *chip, in sx150x_write_cfg()
238 static int sx150x_get_io(struct sx150x_chip *chip, unsigned offset) in sx150x_get_io()
254 static void sx150x_set_oscio(struct sx150x_chip *chip, int val) in sx150x_set_oscio()
261 static void sx150x_set_io(struct sx150x_chip *chip, unsigned offset, int val) in sx150x_set_io()
270 static int sx150x_io_input(struct sx150x_chip *chip, unsigned offset) in sx150x_io_input()
279 static int sx150x_io_output(struct sx150x_chip *chip, unsigned offset, int val) in sx150x_io_output()
299 struct sx150x_chip *chip; in sx150x_gpio_get() local
315 struct sx150x_chip *chip; in sx150x_gpio_set() local
329 struct sx150x_chip *chip; in sx150x_gpio_direction_input() local
[all …]
Dgpio-octeon.c38 struct gpio_chip chip; member
42 static int octeon_gpio_dir_in(struct gpio_chip *chip, unsigned offset) in octeon_gpio_dir_in()
50 static void octeon_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in octeon_gpio_set()
58 static int octeon_gpio_dir_out(struct gpio_chip *chip, unsigned offset, in octeon_gpio_dir_out()
73 static int octeon_gpio_get(struct gpio_chip *chip, unsigned offset) in octeon_gpio_get()
84 struct gpio_chip *chip; in octeon_gpio_probe() local
131 struct gpio_chip *chip = pdev->dev.platform_data; in octeon_gpio_remove() local
Dgpio-pch.c112 struct pch_gpio *chip = container_of(gpio, struct pch_gpio, gpio); in pch_gpio_set() local
128 struct pch_gpio *chip = container_of(gpio, struct pch_gpio, gpio); in pch_gpio_get() local
136 struct pch_gpio *chip = container_of(gpio, struct pch_gpio, gpio); in pch_gpio_direction_output() local
161 struct pch_gpio *chip = container_of(gpio, struct pch_gpio, gpio); in pch_gpio_direction_input() local
178 static void pch_gpio_save_reg_conf(struct pch_gpio *chip) in pch_gpio_save_reg_conf()
195 static void pch_gpio_restore_reg_conf(struct pch_gpio *chip) in pch_gpio_restore_reg_conf()
214 struct pch_gpio *chip = container_of(gpio, struct pch_gpio, gpio); in pch_gpio_to_irq() local
218 static void pch_gpio_setup(struct pch_gpio *chip) in pch_gpio_setup()
239 struct pch_gpio *chip = gc->private; in pch_irq_type() local
296 struct pch_gpio *chip = gc->private; in pch_irq_unmask() local
[all …]
Dgpio-max732x.c166 static int max732x_writeb(struct max732x_chip *chip, int group_a, uint8_t val) in max732x_writeb()
181 static int max732x_readb(struct max732x_chip *chip, int group_a, uint8_t *val) in max732x_readb()
197 static inline int is_group_a(struct max732x_chip *chip, unsigned off) in is_group_a()
204 struct max732x_chip *chip = to_max732x(gc); in max732x_gpio_get_value() local
218 struct max732x_chip *chip = to_max732x(gc); in max732x_gpio_set_mask() local
262 struct max732x_chip *chip = to_max732x(gc); in max732x_gpio_direction_input() local
284 struct max732x_chip *chip = to_max732x(gc); in max732x_gpio_direction_output() local
298 static int max732x_writew(struct max732x_chip *chip, uint16_t val) in max732x_writew()
313 static int max732x_readw(struct max732x_chip *chip, uint16_t *val) in max732x_readw()
327 static void max732x_irq_update_mask(struct max732x_chip *chip) in max732x_irq_update_mask()
[all …]
Dgpio-ml-ioh.c109 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); in ioh_gpio_set() local
125 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); in ioh_gpio_get() local
133 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); in ioh_gpio_direction_output() local
158 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); in ioh_gpio_direction_input() local
176 static void ioh_gpio_save_reg_conf(struct ioh_gpio *chip) in ioh_gpio_save_reg_conf()
202 static void ioh_gpio_restore_reg_conf(struct ioh_gpio *chip) in ioh_gpio_restore_reg_conf()
228 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); in ioh_gpio_to_irq() local
232 static void ioh_gpio_setup(struct ioh_gpio *chip, int num_port) in ioh_gpio_setup()
260 struct ioh_gpio *chip = gc->private; in ioh_irq_type() local
321 struct ioh_gpio *chip = gc->private; in ioh_irq_unmask() local
[all …]
Dgpio-xilinx.c57 static inline int xgpio_index(struct xgpio_instance *chip, int gpio) in xgpio_index()
65 static inline int xgpio_regoffset(struct xgpio_instance *chip, int gpio) in xgpio_regoffset()
73 static inline int xgpio_offset(struct xgpio_instance *chip, int gpio) in xgpio_offset()
95 struct xgpio_instance *chip = in xgpio_get() local
118 struct xgpio_instance *chip = in xgpio_set() local
150 struct xgpio_instance *chip = in xgpio_dir_in() local
183 struct xgpio_instance *chip = in xgpio_dir_out() local
214 struct xgpio_instance *chip = in xgpio_save_regs() local
237 struct xgpio_instance *chip = platform_get_drvdata(pdev); in xgpio_remove() local
254 struct xgpio_instance *chip; in xgpio_probe() local
Dgpio-pl061.c68 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); in pl061_gpio_request() local
78 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); in pl061_gpio_free() local
87 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); in pl061_direction_input() local
106 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); in pl061_direction_output() local
131 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); in pl061_get_value() local
138 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); in pl061_set_value() local
146 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); in pl061_irq_type() local
195 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); in pl061_irq_handler() local
214 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); in pl061_irq_mask() local
227 struct pl061_gpio *chip = container_of(gc, struct pl061_gpio, gc); in pl061_irq_unmask() local
[all …]
Dgpio-lpc32xx.c164 struct gpio_chip chip; member
261 static int lpc32xx_gpio_dir_input_p012(struct gpio_chip *chip, in lpc32xx_gpio_dir_input_p012()
271 static int lpc32xx_gpio_dir_input_p3(struct gpio_chip *chip, in lpc32xx_gpio_dir_input_p3()
281 static int lpc32xx_gpio_dir_in_always(struct gpio_chip *chip, in lpc32xx_gpio_dir_in_always()
287 static int lpc32xx_gpio_get_value_p012(struct gpio_chip *chip, unsigned pin) in lpc32xx_gpio_get_value_p012()
294 static int lpc32xx_gpio_get_value_p3(struct gpio_chip *chip, unsigned pin) in lpc32xx_gpio_get_value_p3()
301 static int lpc32xx_gpi_get_value(struct gpio_chip *chip, unsigned pin) in lpc32xx_gpi_get_value()
308 static int lpc32xx_gpio_dir_output_p012(struct gpio_chip *chip, unsigned pin, in lpc32xx_gpio_dir_output_p012()
319 static int lpc32xx_gpio_dir_output_p3(struct gpio_chip *chip, unsigned pin, in lpc32xx_gpio_dir_output_p3()
330 static int lpc32xx_gpio_dir_out_always(struct gpio_chip *chip, unsigned pin, in lpc32xx_gpio_dir_out_always()
[all …]
Dgpio-sta2x11.c61 static inline struct gsta_regs __iomem *__regs(struct gsta_gpio *chip, int nr) in __regs()
77 struct gsta_gpio *chip = container_of(gpio, struct gsta_gpio, gpio); in gsta_gpio_set() local
89 struct gsta_gpio *chip = container_of(gpio, struct gsta_gpio, gpio); in gsta_gpio_get() local
99 struct gsta_gpio *chip = container_of(gpio, struct gsta_gpio, gpio); in gsta_gpio_direction_output() local
114 struct gsta_gpio *chip = container_of(gpio, struct gsta_gpio, gpio); in gsta_gpio_direction_input() local
124 struct gsta_gpio *chip = container_of(gpio, struct gsta_gpio, gpio); in gsta_gpio_to_irq() local
128 static void gsta_gpio_setup(struct gsta_gpio *chip) /* called from probe */ in gsta_gpio_setup()
166 static void gsta_set_config(struct gsta_gpio *chip, int nr, unsigned cfg) in gsta_set_config()
235 struct gsta_gpio *chip = gc->private; in gsta_irq_disable() local
258 struct gsta_gpio *chip = gc->private; in gsta_irq_enable() local
[all …]
Dgpio-wm8994.c34 static inline struct wm8994_gpio *to_wm8994_gpio(struct gpio_chip *chip) in to_wm8994_gpio()
39 static int wm8994_gpio_request(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_request()
62 static int wm8994_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_direction_in()
71 static int wm8994_gpio_get(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_get()
87 static int wm8994_gpio_direction_out(struct gpio_chip *chip, in wm8994_gpio_direction_out()
100 static void wm8994_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm8994_gpio_set()
111 static int wm8994_gpio_to_irq(struct gpio_chip *chip, unsigned offset) in wm8994_gpio_to_irq()
175 static void wm8994_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) in wm8994_gpio_dbg_show()
Dgpio-tz1090-pdc.c48 struct gpio_chip chip; member
70 static int tz1090_pdc_gpio_direction_input(struct gpio_chip *chip, in tz1090_pdc_gpio_direction_input()
86 static int tz1090_pdc_gpio_direction_output(struct gpio_chip *chip, in tz1090_pdc_gpio_direction_output()
113 static int tz1090_pdc_gpio_get(struct gpio_chip *chip, unsigned int offset) in tz1090_pdc_gpio_get()
119 static void tz1090_pdc_gpio_set(struct gpio_chip *chip, unsigned int offset, in tz1090_pdc_gpio_set()
140 static int tz1090_pdc_gpio_request(struct gpio_chip *chip, unsigned int offset) in tz1090_pdc_gpio_request()
145 static void tz1090_pdc_gpio_free(struct gpio_chip *chip, unsigned int offset) in tz1090_pdc_gpio_free()
150 static int tz1090_pdc_gpio_to_irq(struct gpio_chip *chip, unsigned int offset) in tz1090_pdc_gpio_to_irq()
Dgpio-spear-spics.c54 struct gpio_chip chip; member
58 static int spics_get_value(struct gpio_chip *chip, unsigned offset) in spics_get_value()
63 static void spics_set_value(struct gpio_chip *chip, unsigned offset, int value) in spics_set_value()
83 static int spics_direction_input(struct gpio_chip *chip, unsigned offset) in spics_direction_input()
88 static int spics_direction_output(struct gpio_chip *chip, unsigned offset, in spics_direction_output()
95 static int spics_request(struct gpio_chip *chip, unsigned offset) in spics_request()
111 static void spics_free(struct gpio_chip *chip, unsigned offset) in spics_free()
Dgpio-lp3943.c43 struct gpio_chip chip; member
53 static int lp3943_gpio_request(struct gpio_chip *chip, unsigned offset) in lp3943_gpio_request()
65 static void lp3943_gpio_free(struct gpio_chip *chip, unsigned offset) in lp3943_gpio_free()
83 static int lp3943_gpio_direction_input(struct gpio_chip *chip, unsigned offset) in lp3943_gpio_direction_input()
93 struct gpio_chip *chip, unsigned offset) in lp3943_get_gpio_in_status()
118 struct gpio_chip *chip, unsigned offset) in lp3943_get_gpio_out_status()
139 static int lp3943_gpio_get(struct gpio_chip *chip, unsigned offset) in lp3943_gpio_get()
158 static void lp3943_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in lp3943_gpio_set()
171 static int lp3943_gpio_direction_output(struct gpio_chip *chip, unsigned offset, in lp3943_gpio_direction_output()
Dgpio-wm831x.c33 static inline struct wm831x_gpio *to_wm831x_gpio(struct gpio_chip *chip) in to_wm831x_gpio()
38 static int wm831x_gpio_direction_in(struct gpio_chip *chip, unsigned offset) in wm831x_gpio_direction_in()
52 static int wm831x_gpio_get(struct gpio_chip *chip, unsigned offset) in wm831x_gpio_get()
68 static void wm831x_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in wm831x_gpio_set()
77 static int wm831x_gpio_direction_out(struct gpio_chip *chip, in wm831x_gpio_direction_out()
100 static int wm831x_gpio_to_irq(struct gpio_chip *chip, unsigned offset) in wm831x_gpio_to_irq()
109 static int wm831x_gpio_set_debounce(struct gpio_chip *chip, unsigned offset, in wm831x_gpio_set_debounce()
141 static void wm831x_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) in wm831x_gpio_dbg_show()
Dgpio-amd8111.c70 struct gpio_chip chip; member
78 #define to_agp(chip) container_of(chip, struct amd_gpio, chip) argument
80 static int amd_gpio_request(struct gpio_chip *chip, unsigned offset) in amd_gpio_request()
92 static void amd_gpio_free(struct gpio_chip *chip, unsigned offset) in amd_gpio_free()
101 static void amd_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in amd_gpio_set()
116 static int amd_gpio_get(struct gpio_chip *chip, unsigned offset) in amd_gpio_get()
128 static int amd_gpio_dirout(struct gpio_chip *chip, unsigned offset, int value) in amd_gpio_dirout()
145 static int amd_gpio_dirin(struct gpio_chip *chip, unsigned offset) in amd_gpio_dirin()
/linux-4.1.27/drivers/char/tpm/
Dtpm-chip.c45 struct tpm_chip *pos, *chip = NULL; in tpm_chip_find_get() local
69 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); in tpm_dev_release() local
90 struct tpm_chip *chip; in tpmm_chip_alloc() local
140 static int tpm_dev_add_device(struct tpm_chip *chip) in tpm_dev_add_device()
168 static void tpm_dev_del_device(struct tpm_chip *chip) in tpm_dev_del_device()
174 static int tpm1_chip_register(struct tpm_chip *chip) in tpm1_chip_register()
196 static void tpm1_chip_unregister(struct tpm_chip *chip) in tpm1_chip_unregister()
220 int tpm_chip_register(struct tpm_chip *chip) in tpm_chip_register()
256 void tpm_chip_unregister(struct tpm_chip *chip) in tpm_chip_unregister()
Dtpm-interface.c308 unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, in tpm_calc_ordinal_duration()
331 ssize_t tpm_transmit(struct tpm_chip *chip, const char *buf, in tpm_transmit()
401 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, void *cmd, in tpm_transmit_cmd()
438 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_getcap() local
461 void tpm_gen_interrupt(struct tpm_chip *chip) in tpm_gen_interrupt()
486 static int tpm_startup(struct tpm_chip *chip, __be16 startup_type) in tpm_startup()
496 int tpm_get_timeouts(struct tpm_chip *chip) in tpm_get_timeouts()
633 static int tpm_continue_selftest(struct tpm_chip *chip) in tpm_continue_selftest()
652 int tpm_pcr_read_dev(struct tpm_chip *chip, int pcr_idx, u8 *res_buf) in tpm_pcr_read_dev()
681 struct tpm_chip *chip; in tpm_pcr_read() local
[all …]
Dtpm_tis.c160 static int wait_startup(struct tpm_chip *chip, int l) in wait_startup()
172 static int check_locality(struct tpm_chip *chip, int l) in check_locality()
182 static void release_locality(struct tpm_chip *chip, int l, int force) in release_locality()
191 static int request_locality(struct tpm_chip *chip, int l) in request_locality()
231 static u8 tpm_tis_status(struct tpm_chip *chip) in tpm_tis_status()
237 static void tpm_tis_ready(struct tpm_chip *chip) in tpm_tis_ready()
244 static int get_burstcount(struct tpm_chip *chip) in get_burstcount()
265 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count) in recv_data()
283 static int tpm_tis_recv(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_tis_recv()
338 static int tpm_tis_send_data(struct tpm_chip *chip, u8 *buf, size_t len) in tpm_tis_send_data()
[all …]
Dtpm_atmel.c38 static int tpm_atml_recv(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_atml_recv()
96 static int tpm_atml_send(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_atml_send()
109 static void tpm_atml_cancel(struct tpm_chip *chip) in tpm_atml_cancel()
114 static u8 tpm_atml_status(struct tpm_chip *chip) in tpm_atml_status()
119 static bool tpm_atml_req_canceled(struct tpm_chip *chip, u8 status) in tpm_atml_req_canceled()
138 struct tpm_chip *chip = dev_get_drvdata(&pdev->dev); in atml_plat_remove() local
165 struct tpm_chip *chip; in init_atmel() local
Dtpm_i2c_atmel.c52 static int i2c_atmel_send(struct tpm_chip *chip, u8 *buf, size_t len) in i2c_atmel_send()
71 static int i2c_atmel_recv(struct tpm_chip *chip, u8 *buf, size_t count) in i2c_atmel_recv()
107 static void i2c_atmel_cancel(struct tpm_chip *chip) in i2c_atmel_cancel()
112 static u8 i2c_atmel_read_status(struct tpm_chip *chip) in i2c_atmel_read_status()
138 static bool i2c_atmel_req_canceled(struct tpm_chip *chip, u8 status) in i2c_atmel_req_canceled()
156 struct tpm_chip *chip; in i2c_atmel_probe() local
193 struct tpm_chip *chip = dev_get_drvdata(dev); in i2c_atmel_remove() local
Dtpm_nsc.c70 static int wait_for_stat(struct tpm_chip *chip, u8 mask, u8 val, u8 * data) in wait_for_stat()
92 static int nsc_wait_for_ready(struct tpm_chip *chip) in nsc_wait_for_ready()
121 static int tpm_nsc_recv(struct tpm_chip *chip, u8 * buf, size_t count) in tpm_nsc_recv()
175 static int tpm_nsc_send(struct tpm_chip *chip, u8 * buf, size_t count) in tpm_nsc_send()
220 static void tpm_nsc_cancel(struct tpm_chip *chip) in tpm_nsc_cancel()
225 static u8 tpm_nsc_status(struct tpm_chip *chip) in tpm_nsc_status()
230 static bool tpm_nsc_req_canceled(struct tpm_chip *chip, u8 status) in tpm_nsc_req_canceled()
249 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_nsc_remove() local
269 struct tpm_chip *chip; in init_nsc() local
Dtpm_i2c_nuvoton.c97 static u8 i2c_nuvoton_read_status(struct tpm_chip *chip) in i2c_nuvoton_read_status()
128 static void i2c_nuvoton_ready(struct tpm_chip *chip) in i2c_nuvoton_ready()
143 struct tpm_chip *chip) in i2c_nuvoton_get_burstcount()
170 static bool i2c_nuvoton_check_status(struct tpm_chip *chip, u8 mask, u8 value) in i2c_nuvoton_check_status()
176 static int i2c_nuvoton_wait_for_stat(struct tpm_chip *chip, u8 mask, u8 value, in i2c_nuvoton_wait_for_stat()
221 static int i2c_nuvoton_wait_for_data_avail(struct tpm_chip *chip, u32 timeout, in i2c_nuvoton_wait_for_data_avail()
232 struct tpm_chip *chip, u8 *buf, size_t count) in i2c_nuvoton_recv_data()
265 static int i2c_nuvoton_recv(struct tpm_chip *chip, u8 *buf, size_t count) in i2c_nuvoton_recv()
348 static int i2c_nuvoton_send(struct tpm_chip *chip, u8 *buf, size_t len) in i2c_nuvoton_send()
453 static bool i2c_nuvoton_req_canceled(struct tpm_chip *chip, u8 status) in i2c_nuvoton_req_canceled()
[all …]
Dxen-tpmfront.c23 struct tpm_chip *chip; member
40 static u8 vtpm_status(struct tpm_chip *chip) in vtpm_status()
56 static bool vtpm_req_canceled(struct tpm_chip *chip, u8 status) in vtpm_req_canceled()
61 static void vtpm_cancel(struct tpm_chip *chip) in vtpm_cancel()
74 static int vtpm_send(struct tpm_chip *chip, u8 *buf, size_t count) in vtpm_send()
116 static int vtpm_recv(struct tpm_chip *chip, u8 *buf, size_t count) in vtpm_recv()
176 struct tpm_chip *chip; in setup_chip() local
290 struct tpm_chip *chip; in tpmfront_probe() local
320 struct tpm_chip *chip = dev_get_drvdata(&dev->dev); in tpmfront_remove() local
Dtpm_i2c_infineon.c70 struct tpm_chip *chip; member
280 static int check_locality(struct tpm_chip *chip, int loc) in check_locality()
299 static void release_locality(struct tpm_chip *chip, int loc, int force) in release_locality()
312 static int request_locality(struct tpm_chip *chip, int loc) in request_locality()
333 static u8 tpm_tis_i2c_status(struct tpm_chip *chip) in tpm_tis_i2c_status()
350 static void tpm_tis_i2c_ready(struct tpm_chip *chip) in tpm_tis_i2c_ready()
357 static ssize_t get_burstcount(struct tpm_chip *chip) in get_burstcount()
381 static int wait_for_stat(struct tpm_chip *chip, u8 mask, unsigned long timeout, in wait_for_stat()
404 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count) in recv_data()
436 static int tpm_tis_i2c_recv(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_tis_i2c_recv()
[all …]
Dtpm_ppi.c56 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_show_ppi_version() local
66 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_show_ppi_request() local
103 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_store_ppi_request() local
159 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_show_ppi_transition_action() local
200 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_show_ppi_response() local
299 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_show_ppi_tcg_operations() local
309 struct tpm_chip *chip = dev_get_drvdata(dev); in tpm_show_ppi_vs_operations() local
337 int tpm_add_ppi(struct tpm_chip *chip) in tpm_add_ppi()
367 void tpm_remove_ppi(struct tpm_chip *chip) in tpm_remove_ppi()
/linux-4.1.27/sound/pci/lola/
Dlola_mixer.c31 static int lola_init_pin(struct lola *chip, struct lola_pin *pin, in lola_init_pin()
94 int lola_init_pins(struct lola *chip, int dir, int *nidp) in lola_init_pins()
109 void lola_free_mixer(struct lola *chip) in lola_free_mixer()
114 int lola_init_mixer_widget(struct lola *chip, int nid) in lola_init_mixer_widget()
221 static int lola_mixer_set_src_gain(struct lola *chip, unsigned int id, in lola_mixer_set_src_gain()
281 static int lola_mixer_set_mapping_gain(struct lola *chip, in lola_mixer_set_mapping_gain()
333 int lola_setup_all_analog_gains(struct lola *chip, int dir, bool mute) in lola_setup_all_analog_gains()
350 void lola_save_mixer(struct lola *chip) in lola_save_mixer()
361 void lola_restore_mixer(struct lola *chip) in lola_restore_mixer()
396 static int set_analog_volume(struct lola *chip, int dir, in set_analog_volume()
[all …]
Dlola.c87 static int corb_send_verb(struct lola *chip, unsigned int nid, in corb_send_verb()
116 static void lola_queue_unsol_event(struct lola *chip, unsigned int res, in lola_queue_unsol_event()
123 static void lola_update_rirb(struct lola *chip) in lola_update_rirb()
151 static int rirb_get_response(struct lola *chip, unsigned int *val, in rirb_get_response()
195 int lola_codec_write(struct lola *chip, unsigned int nid, unsigned int verb, in lola_codec_write()
204 int lola_codec_read(struct lola *chip, unsigned int nid, unsigned int verb, in lola_codec_read()
220 int lola_codec_flush(struct lola *chip) in lola_codec_flush()
231 struct lola *chip = dev_id; in lola_interrupt() local
309 static int reset_controller(struct lola *chip) in reset_controller()
336 static void lola_irq_enable(struct lola *chip) in lola_irq_enable()
[all …]
Dlola_pcm.c36 struct lola *chip = snd_pcm_substream_chip(substream); in lola_get_pcm() local
47 static unsigned int lola_get_lrc(struct lola *chip) in lola_get_lrc()
52 static unsigned int lola_get_tstamp(struct lola *chip, bool quick_no_sync) in lola_get_tstamp()
64 static void lola_stream_clear_pending_irq(struct lola *chip, in lola_stream_clear_pending_irq()
73 static void lola_stream_start(struct lola *chip, struct lola_stream *str, in lola_stream_start()
85 static void lola_stream_stop(struct lola *chip, struct lola_stream *str, in lola_stream_stop()
96 static void wait_for_srst_clear(struct lola *chip, struct lola_stream *str) in wait_for_srst_clear()
109 static int lola_stream_wait_for_fifo(struct lola *chip, in lola_stream_wait_for_fifo()
128 static int lola_sync_wait_for_fifo(struct lola *chip, in lola_sync_wait_for_fifo()
164 static void lola_sync_pause(struct lola *chip, in lola_sync_pause()
[all …]
Dlola_proc.c30 struct lola *chip, int nid, const char *name) in print_audio_widget()
41 struct lola *chip, int nid, unsigned int ampcap, in print_pin_widget()
62 struct lola *chip, int nid) in print_clock_widget()
102 struct lola *chip, int nid) in print_mixer_widget()
113 struct lola *chip = entry->private_data; in lola_proc_codec_read() local
150 struct lola *chip = entry->private_data; in lola_proc_codec_rw_write() local
165 struct lola *chip = entry->private_data; in lola_proc_codec_rw_read() local
175 struct lola *chip = entry->private_data; in lola_proc_regs_read() local
209 void lola_proc_debug_new(struct lola *chip) in lola_proc_debug_new()
Dlola_clock.c68 static bool check_gran_clock_compatibility(struct lola *chip, in check_gran_clock_compatibility()
89 int lola_set_granularity(struct lola *chip, unsigned int val, bool force) in lola_set_granularity()
123 int lola_init_clock_widget(struct lola *chip, int nid) in lola_init_clock_widget()
214 int lola_enable_clock_events(struct lola *chip) in lola_enable_clock_events()
233 int lola_set_clock_index(struct lola *chip, unsigned int idx) in lola_set_clock_index()
251 bool lola_update_ext_clock_freq(struct lola *chip, unsigned int val) in lola_update_ext_clock_freq()
273 int lola_set_clock(struct lola *chip, int idx) in lola_set_clock()
307 int lola_set_sample_rate(struct lola *chip, int rate) in lola_set_sample_rate()
/linux-4.1.27/sound/pci/lx6464es/
Dlx6464es.c105 static int lx_hardware_open(struct lx6464es *chip, in lx_hardware_open()
132 static int lx_hardware_start(struct lx6464es *chip, in lx_hardware_start()
164 static int lx_hardware_stop(struct lx6464es *chip, in lx_hardware_stop()
195 static int lx_hardware_close(struct lx6464es *chip, in lx_hardware_close()
214 struct lx6464es *chip = snd_pcm_substream_chip(substream); in lx_pcm_open() local
280 struct lx6464es *chip = snd_pcm_substream_chip(substream); in lx_pcm_stream_pointer() local
299 struct lx6464es *chip = snd_pcm_substream_chip(substream); in lx_pcm_prepare() local
353 struct lx6464es *chip = snd_pcm_substream_chip(substream); in lx_pcm_hw_params() local
387 struct lx6464es *chip = snd_pcm_substream_chip(substream); in lx_pcm_hw_free() local
424 static void lx_trigger_start(struct lx6464es *chip, struct lx_stream *lx_stream) in lx_trigger_start()
[all …]
Dlx_core.c70 static void __iomem *lx_dsp_register(struct lx6464es *chip, int port) in lx_dsp_register()
76 unsigned long lx_dsp_reg_read(struct lx6464es *chip, int port) in lx_dsp_reg_read()
82 static void lx_dsp_reg_readbuf(struct lx6464es *chip, int port, u32 *data, in lx_dsp_reg_readbuf()
94 void lx_dsp_reg_write(struct lx6464es *chip, int port, unsigned data) in lx_dsp_reg_write()
100 static void lx_dsp_reg_writebuf(struct lx6464es *chip, int port, in lx_dsp_reg_writebuf()
127 static void __iomem *lx_plx_register(struct lx6464es *chip, int port) in lx_plx_register()
133 unsigned long lx_plx_reg_read(struct lx6464es *chip, int port) in lx_plx_reg_read()
139 void lx_plx_reg_write(struct lx6464es *chip, int port, u32 data) in lx_plx_reg_write()
271 static int lx_message_send_atomic(struct lx6464es *chip, struct lx_rmh *rmh) in lx_message_send_atomic()
332 int lx_dsp_get_version(struct lx6464es *chip, u32 *rdsp_version) in lx_dsp_get_version()
[all …]
/linux-4.1.27/sound/isa/es1688/
Des1688_lib.c39 static int snd_es1688_dsp_command(struct snd_es1688 *chip, unsigned char val) in snd_es1688_dsp_command()
54 static int snd_es1688_dsp_get_byte(struct snd_es1688 *chip) in snd_es1688_dsp_get_byte()
65 static int snd_es1688_write(struct snd_es1688 *chip, in snd_es1688_write()
73 static int snd_es1688_read(struct snd_es1688 *chip, unsigned char reg) in snd_es1688_read()
83 void snd_es1688_mixer_write(struct snd_es1688 *chip, in snd_es1688_mixer_write()
92 static unsigned char snd_es1688_mixer_read(struct snd_es1688 *chip, unsigned char reg) in snd_es1688_mixer_read()
103 int snd_es1688_reset(struct snd_es1688 *chip) in snd_es1688_reset()
121 static int snd_es1688_probe(struct snd_es1688 *chip) in snd_es1688_probe()
198 static int snd_es1688_init(struct snd_es1688 * chip, int enable) in snd_es1688_init()
313 static void snd_es1688_set_rate(struct snd_es1688 *chip, struct snd_pcm_substream *substream) in snd_es1688_set_rate()
[all …]
/linux-4.1.27/sound/sh/
Dsh_dac_audio.c69 static void dac_audio_start_timer(struct snd_sh_dac *chip) in dac_audio_start_timer()
75 static void dac_audio_stop_timer(struct snd_sh_dac *chip) in dac_audio_stop_timer()
80 static void dac_audio_reset(struct snd_sh_dac *chip) in dac_audio_reset()
88 static void dac_audio_set_rate(struct snd_sh_dac *chip) in dac_audio_set_rate()
116 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); in snd_sh_dac_pcm_open() local
133 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); in snd_sh_dac_pcm_close() local
157 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); in snd_sh_dac_pcm_prepare() local
168 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); in snd_sh_dac_pcm_trigger() local
191 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); in snd_sh_dac_pcm_copy() local
218 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); in snd_sh_dac_pcm_silence() local
[all …]
/linux-4.1.27/drivers/leds/
Dleds-lp55xx-common.c41 static void lp55xx_reset_device(struct lp55xx_chip *chip) in lp55xx_reset_device()
51 static int lp55xx_detect_device(struct lp55xx_chip *chip) in lp55xx_detect_device()
74 static int lp55xx_post_init_device(struct lp55xx_chip *chip) in lp55xx_post_init_device()
98 struct lp55xx_chip *chip = led->chip; in lp55xx_store_current() local
147 struct lp55xx_chip *chip, int chan) in lp55xx_init_led()
197 struct lp55xx_chip *chip = context; in lp55xx_firmware_loaded() local
221 static int lp55xx_request_firmware(struct lp55xx_chip *chip) in lp55xx_request_firmware()
235 struct lp55xx_chip *chip = led->chip; in lp55xx_show_engine_select() local
245 struct lp55xx_chip *chip = led->chip; in lp55xx_store_engine_select() local
276 static inline void lp55xx_run_engine(struct lp55xx_chip *chip, bool start) in lp55xx_run_engine()
[all …]
Dleds-lp5523.c133 static int lp5523_post_init_device(struct lp55xx_chip *chip) in lp5523_post_init_device()
163 static void lp5523_load_engine(struct lp55xx_chip *chip) in lp5523_load_engine()
183 static void lp5523_load_engine_and_select_page(struct lp55xx_chip *chip) in lp5523_load_engine_and_select_page()
197 static void lp5523_stop_all_engines(struct lp55xx_chip *chip) in lp5523_stop_all_engines()
203 static void lp5523_stop_engine(struct lp55xx_chip *chip) in lp5523_stop_engine()
217 static void lp5523_turn_off_channels(struct lp55xx_chip *chip) in lp5523_turn_off_channels()
225 static void lp5523_run_engine(struct lp55xx_chip *chip, bool start) in lp5523_run_engine()
273 static int lp5523_init_program_engine(struct lp55xx_chip *chip) in lp5523_init_program_engine()
331 static int lp5523_update_program_memory(struct lp55xx_chip *chip, in lp5523_update_program_memory()
374 static void lp5523_firmware_loaded(struct lp55xx_chip *chip) in lp5523_firmware_loaded()
[all …]
Dleds-lp5521.c134 static void lp5521_load_engine(struct lp55xx_chip *chip) in lp5521_load_engine()
154 static void lp5521_stop_all_engines(struct lp55xx_chip *chip) in lp5521_stop_all_engines()
160 static void lp5521_stop_engine(struct lp55xx_chip *chip) in lp5521_stop_engine()
174 static void lp5521_run_engine(struct lp55xx_chip *chip, bool start) in lp5521_run_engine()
224 static int lp5521_update_program_memory(struct lp55xx_chip *chip, in lp5521_update_program_memory()
273 static void lp5521_firmware_loaded(struct lp55xx_chip *chip) in lp5521_firmware_loaded()
293 static int lp5521_post_init_device(struct lp55xx_chip *chip) in lp5521_post_init_device()
345 static int lp5521_run_selftest(struct lp55xx_chip *chip, char *buf) in lp5521_run_selftest()
369 struct lp55xx_chip *chip = led->chip; in lp5521_led_brightness_work() local
382 struct lp55xx_chip *chip = led->chip; in show_engine_mode() local
[all …]
Dleds-lp8501.c94 static int lp8501_post_init_device(struct lp55xx_chip *chip) in lp8501_post_init_device()
118 static void lp8501_load_engine(struct lp55xx_chip *chip) in lp8501_load_engine()
146 static void lp8501_stop_engine(struct lp55xx_chip *chip) in lp8501_stop_engine()
152 static void lp8501_turn_off_channels(struct lp55xx_chip *chip) in lp8501_turn_off_channels()
160 static void lp8501_run_engine(struct lp55xx_chip *chip, bool start) in lp8501_run_engine()
208 static int lp8501_update_program_memory(struct lp55xx_chip *chip, in lp8501_update_program_memory()
255 static void lp8501_firmware_loaded(struct lp55xx_chip *chip) in lp8501_firmware_loaded()
279 struct lp55xx_chip *chip = led->chip; in lp8501_led_brightness_work() local
309 struct lp55xx_chip *chip; in lp8501_probe() local
372 struct lp55xx_chip *chip = led->chip; in lp8501_remove() local
/linux-4.1.27/sound/isa/msnd/
Dmsnd.c207 static inline long get_play_delay_jiffies(struct snd_msnd *chip, long size) in get_play_delay_jiffies()
213 static void snd_msnd_dsp_write_flush(struct snd_msnd *chip) in snd_msnd_dsp_write_flush()
228 void snd_msnd_dsp_halt(struct snd_msnd *chip, struct file *file) in snd_msnd_dsp_halt()
258 int snd_msnd_DARQ(struct snd_msnd *chip, int bank) in snd_msnd_DARQ()
307 int snd_msnd_DAPQ(struct snd_msnd *chip, int start) in snd_msnd_DAPQ()
367 static void snd_msnd_play_reset_queue(struct snd_msnd *chip, in snd_msnd_play_reset_queue()
395 static void snd_msnd_capture_reset_queue(struct snd_msnd *chip, in snd_msnd_capture_reset_queue()
481 struct snd_msnd *chip = snd_pcm_substream_chip(substream); in snd_msnd_playback_open() local
497 struct snd_msnd *chip = snd_pcm_substream_chip(substream); in snd_msnd_playback_close() local
509 struct snd_msnd *chip = snd_pcm_substream_chip(substream); in snd_msnd_playback_hw_params() local
[all …]
Dmsnd_pinnacle.c83 static void set_default_audio_parameters(struct snd_msnd *chip) in set_default_audio_parameters()
93 static void snd_msnd_eval_dsp_msg(struct snd_msnd *chip, u16 wMessage) in snd_msnd_eval_dsp_msg()
171 struct snd_msnd *chip = dev_id; in snd_msnd_interrupt() local
220 struct snd_msnd *chip = card->private_data; in snd_msnd_probe() local
314 static int snd_msnd_init_sma(struct snd_msnd *chip) in snd_msnd_init_sma()
385 struct snd_msnd *chip = card->private_data; in upload_dsp_code() local
419 static void reset_proteus(struct snd_msnd *chip) in reset_proteus()
430 struct snd_msnd *chip = card->private_data; in snd_msnd_initialize() local
471 struct snd_msnd *chip = card->private_data; in snd_msnd_dsp_full_reset() local
494 static int snd_msnd_send_dsp_cmd_chk(struct snd_msnd *chip, u8 cmd) in snd_msnd_send_dsp_cmd_chk()
[all …]
/linux-4.1.27/sound/atmel/
Dac97c.c89 #define ac97c_writel(chip, reg, val) \ argument
91 #define ac97c_readl(chip, reg) \ argument
97 struct atmel_ac97c *chip = arg; in atmel_ac97c_dma_playback_period_done() local
103 struct atmel_ac97c *chip = arg; in atmel_ac97c_dma_capture_period_done() local
107 static int atmel_ac97c_prepare_dma(struct atmel_ac97c *chip, in atmel_ac97c_prepare_dma()
177 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_playback_open() local
196 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_capture_open() local
215 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_playback_close() local
232 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_capture_close() local
250 struct atmel_ac97c *chip = snd_pcm_substream_chip(substream); in atmel_ac97c_playback_hw_params() local
[all …]
/linux-4.1.27/sound/pci/nm256/
Dnm256.c120 #define NM_ACK_INT(chip, X) snd_nm256_writew(chip, NM_INT_REG, (X) << 1) argument
137 #define NM2_ACK_INT(chip, X) snd_nm256_writel(chip, NM_INT_REG, (X)) argument
189 struct nm256 *chip; member
280 snd_nm256_readb(struct nm256 *chip, int offset) in snd_nm256_readb()
286 snd_nm256_readw(struct nm256 *chip, int offset) in snd_nm256_readw()
292 snd_nm256_readl(struct nm256 *chip, int offset) in snd_nm256_readl()
298 snd_nm256_writeb(struct nm256 *chip, int offset, u8 val) in snd_nm256_writeb()
304 snd_nm256_writew(struct nm256 *chip, int offset, u16 val) in snd_nm256_writew()
310 snd_nm256_writel(struct nm256 *chip, int offset, u32 val) in snd_nm256_writel()
316 snd_nm256_write_buffer(struct nm256 *chip, void *src, int offset, int size) in snd_nm256_write_buffer()
[all …]
/linux-4.1.27/drivers/rtc/
Drtc-v3020.c71 static int v3020_mmio_map(struct v3020 *chip, struct platform_device *pdev, in v3020_mmio_map()
88 static void v3020_mmio_unmap(struct v3020 *chip) in v3020_mmio_unmap()
93 static void v3020_mmio_write_bit(struct v3020 *chip, unsigned char bit) in v3020_mmio_write_bit()
98 static unsigned char v3020_mmio_read_bit(struct v3020 *chip) in v3020_mmio_read_bit()
117 static int v3020_gpio_map(struct v3020 *chip, struct platform_device *pdev, in v3020_gpio_map()
146 static void v3020_gpio_unmap(struct v3020 *chip) in v3020_gpio_unmap()
154 static void v3020_gpio_write_bit(struct v3020 *chip, unsigned char bit) in v3020_gpio_write_bit()
164 static unsigned char v3020_gpio_read_bit(struct v3020 *chip) in v3020_gpio_read_bit()
187 static void v3020_set_reg(struct v3020 *chip, unsigned char address, in v3020_set_reg()
210 static unsigned char v3020_get_reg(struct v3020 *chip, unsigned char address) in v3020_get_reg()
[all …]
/linux-4.1.27/drivers/media/usb/tm6000/
Dtm6000-alsa.c76 static int _tm6000_start_audio_dma(struct snd_tm6000_card *chip) in _tm6000_start_audio_dma()
93 static int _tm6000_stop_audio_dma(struct snd_tm6000_card *chip) in _tm6000_stop_audio_dma()
107 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream); in dsp_buffer_free() local
118 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream); in dsp_buffer_alloc() local
173 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream); in snd_tm6000_pcm_open() local
198 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream); in snd_tm6000_close() local
211 struct snd_tm6000_card *chip = core->adev; in tm6000_fillbuf() local
301 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream); in snd_tm6000_hw_free() local
318 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream); in snd_tm6000_prepare() local
334 struct snd_tm6000_card *chip = core->adev; in audio_trigger() local
[all …]
/linux-4.1.27/drivers/misc/
Dbh1770glc.c196 static inline int bh1770_lux_interrupt_control(struct bh1770_chip *chip, in bh1770_lux_interrupt_control()
206 static inline int bh1770_prox_interrupt_control(struct bh1770_chip *chip, in bh1770_prox_interrupt_control()
216 static int bh1770_lux_rate(struct bh1770_chip *chip, int rate_index) in bh1770_lux_rate()
231 static int bh1770_prox_rate(struct bh1770_chip *chip, int mode) in bh1770_prox_rate()
244 static inline int bh1770_led_cfg(struct bh1770_chip *chip) in bh1770_led_cfg()
260 static inline u8 bh1770_psraw_to_adjusted(struct bh1770_chip *chip, u8 psraw) in bh1770_psraw_to_adjusted()
270 static inline u8 bh1770_psadjusted_to_raw(struct bh1770_chip *chip, u8 ps) in bh1770_psadjusted_to_raw()
288 static int bh1770_prox_set_threshold(struct bh1770_chip *chip) in bh1770_prox_set_threshold()
303 static inline u16 bh1770_lux_raw_to_adjusted(struct bh1770_chip *chip, u16 raw) in bh1770_lux_raw_to_adjusted()
310 static inline u16 bh1770_lux_adjusted_to_raw(struct bh1770_chip *chip, in bh1770_lux_adjusted_to_raw()
[all …]
Dapds990x.c201 static int apds990x_read_byte(struct apds990x_chip *chip, u8 reg, u8 *data) in apds990x_read_byte()
214 static int apds990x_read_word(struct apds990x_chip *chip, u8 reg, u16 *data) in apds990x_read_word()
227 static int apds990x_write_byte(struct apds990x_chip *chip, u8 reg, u8 data) in apds990x_write_byte()
239 static int apds990x_write_word(struct apds990x_chip *chip, u8 reg, u16 data) in apds990x_write_word()
251 static int apds990x_mode_on(struct apds990x_chip *chip) in apds990x_mode_on()
263 static u16 apds990x_lux_to_threshold(struct apds990x_chip *chip, u32 lux) in apds990x_lux_to_threshold()
321 static inline int apds990x_set_atime(struct apds990x_chip *chip, u32 time_ms) in apds990x_set_atime()
334 static int apds990x_refresh_pthres(struct apds990x_chip *chip, int data) in apds990x_refresh_pthres()
359 static int apds990x_refresh_athres(struct apds990x_chip *chip) in apds990x_refresh_athres()
375 static void apds990x_force_a_refresh(struct apds990x_chip *chip) in apds990x_force_a_refresh()
[all …]
/linux-4.1.27/drivers/mfd/
D88pm860x-core.c467 struct pm860x_chip *chip = data; in pm860x_irq() local
488 struct pm860x_chip *chip = irq_data_get_irq_chip_data(data); in pm860x_irq_lock() local
495 struct pm860x_chip *chip = irq_data_get_irq_chip_data(data); in pm860x_irq_sync_unlock() local
574 static int device_irq_init(struct pm860x_chip *chip, in device_irq_init()
653 static void device_irq_exit(struct pm860x_chip *chip) in device_irq_exit()
659 int pm8606_osc_enable(struct pm860x_chip *chip, unsigned short client) in pm8606_osc_enable()
700 int pm8606_osc_disable(struct pm860x_chip *chip, unsigned short client) in pm8606_osc_disable()
741 struct pm860x_chip *chip = i2c_get_clientdata(i2c); in device_osc_init() local
754 static void device_bk_init(struct pm860x_chip *chip, in device_bk_init()
774 static void device_led_init(struct pm860x_chip *chip, in device_led_init()
[all …]
Dda903x.c132 struct da903x_chip *chip = dev_get_drvdata(dev); in da903x_register_notifier() local
142 struct da903x_chip *chip = dev_get_drvdata(dev); in da903x_unregister_notifier() local
175 struct da903x_chip *chip = dev_get_drvdata(dev); in da903x_set_bits() local
197 struct da903x_chip *chip = dev_get_drvdata(dev); in da903x_clr_bits() local
219 struct da903x_chip *chip = dev_get_drvdata(dev); in da903x_update() local
241 struct da903x_chip *chip = dev_get_drvdata(dev); in da903x_query_status() local
249 static int da9030_init_chip(struct da903x_chip *chip) in da9030_init_chip()
266 static int da9030_unmask_events(struct da903x_chip *chip, unsigned int events) in da9030_unmask_events()
279 static int da9030_mask_events(struct da903x_chip *chip, unsigned int events) in da9030_mask_events()
292 static int da9030_read_events(struct da903x_chip *chip, unsigned int *events) in da9030_read_events()
[all …]
Dadp5520.c73 struct adp5520_chip *chip = i2c_get_clientdata(client); in __adp5520_ack_bits() local
104 struct adp5520_chip *chip = dev_get_drvdata(dev); in adp5520_set_bits() local
124 struct adp5520_chip *chip = dev_get_drvdata(dev); in adp5520_clr_bits() local
145 struct adp5520_chip *chip = dev_get_drvdata(dev); in adp5520_register_notifier() local
163 struct adp5520_chip *chip = dev_get_drvdata(dev); in adp5520_unregister_notifier() local
175 struct adp5520_chip *chip = data; in adp5520_irq_thread() local
201 static int adp5520_remove_subdevs(struct adp5520_chip *chip) in adp5520_remove_subdevs()
211 struct adp5520_chip *chip; in adp5520_probe() local
309 struct adp5520_chip *chip = dev_get_drvdata(&client->dev); in adp5520_remove() local
323 struct adp5520_chip *chip = dev_get_drvdata(&client->dev); in adp5520_suspend() local
[all …]
Dmax8925-i2c.c54 struct max8925_chip *chip = i2c_get_clientdata(i2c); in max8925_reg_read() local
72 struct max8925_chip *chip = i2c_get_clientdata(i2c); in max8925_reg_write() local
86 struct max8925_chip *chip = i2c_get_clientdata(i2c); in max8925_bulk_read() local
100 struct max8925_chip *chip = i2c_get_clientdata(i2c); in max8925_bulk_write() local
114 struct max8925_chip *chip = i2c_get_clientdata(i2c); in max8925_set_bits() local
155 static struct max8925_chip *chip; in max8925_probe() local
207 struct max8925_chip *chip = i2c_get_clientdata(client); in max8925_remove() local
219 struct max8925_chip *chip = i2c_get_clientdata(client); in max8925_suspend() local
229 struct max8925_chip *chip = i2c_get_clientdata(client); in max8925_resume() local
Dhtc-i2cpld.c79 struct htcpld_chip *chip; member
88 struct htcpld_chip *chip = irq_data_get_irq_chip_data(data); in htcpld_mask() local
94 struct htcpld_chip *chip = irq_data_get_irq_chip_data(data); in htcpld_unmask() local
101 struct htcpld_chip *chip = irq_data_get_irq_chip_data(data); in htcpld_set_type() local
146 struct htcpld_chip *chip = &htcpld->chip[i]; in htcpld_handler() local
227 static void htcpld_chip_set(struct gpio_chip *chip, unsigned offset, int val) in htcpld_chip_set()
258 static int htcpld_chip_get(struct gpio_chip *chip, unsigned offset) in htcpld_chip_get()
275 static int htcpld_direction_output(struct gpio_chip *chip, in htcpld_direction_output()
282 static int htcpld_direction_input(struct gpio_chip *chip, in htcpld_direction_input()
292 static int htcpld_chip_to_irq(struct gpio_chip *chip, unsigned offset) in htcpld_chip_to_irq()
[all …]
Dmax8925-core.c475 static inline struct max8925_irq_data *irq_to_max8925(struct max8925_chip *chip, in irq_to_max8925()
483 struct max8925_chip *chip = data; in max8925_irq() local
512 struct max8925_chip *chip = data; in max8925_tsc_irq() local
541 struct max8925_chip *chip = irq_data_get_irq_chip_data(data); in max8925_irq_lock() local
548 struct max8925_chip *chip = irq_data_get_irq_chip_data(data); in max8925_irq_sync_unlock() local
626 struct max8925_chip *chip = irq_data_get_irq_chip_data(data); in max8925_irq_enable() local
634 struct max8925_chip *chip = irq_data_get_irq_chip_data(data); in max8925_irq_disable() local
667 static int max8925_irq_init(struct max8925_chip *chip, int irq, in max8925_irq_init()
732 static void init_regulator(struct max8925_chip *chip, in init_regulator()
839 int max8925_device_init(struct max8925_chip *chip, in max8925_device_init()
[all …]
/linux-4.1.27/drivers/mtd/nand/
Dnand_base.c110 struct nand_chip *chip = mtd->priv; in check_offs_len() local
136 struct nand_chip *chip = mtd->priv; in nand_release_device() local
154 struct nand_chip *chip = mtd->priv; in nand_read_byte() local
167 struct nand_chip *chip = mtd->priv; in nand_read_byte16() local
179 struct nand_chip *chip = mtd->priv; in nand_read_word() local
192 struct nand_chip *chip = mtd->priv; in nand_select_chip() local
215 struct nand_chip *chip = mtd->priv; in nand_write_byte() local
229 struct nand_chip *chip = mtd->priv; in nand_write_byte16() local
261 struct nand_chip *chip = mtd->priv; in nand_write_buf() local
276 struct nand_chip *chip = mtd->priv; in nand_read_buf() local
[all …]
Dndfc.c43 struct nand_chip chip; member
50 static void ndfc_select_chip(struct mtd_info *mtd, int chip) in ndfc_select_chip()
67 struct nand_chip *chip = mtd->priv; in ndfc_hwcontrol() local
81 struct nand_chip *chip = mtd->priv; in ndfc_ready() local
90 struct nand_chip *chip = mtd->priv; in ndfc_enable_hwecc() local
102 struct nand_chip *chip = mtd->priv; in ndfc_calculate_ecc() local
126 struct nand_chip *chip = mtd->priv; in ndfc_read_buf() local
136 struct nand_chip *chip = mtd->priv; in ndfc_write_buf() local
151 struct nand_chip *chip = &ndfc->chip; in ndfc_chip_init() local
Dfsl_elbc_nand.c52 struct nand_chip chip; member
147 struct nand_chip *chip = mtd->priv; in set_addr() local
198 struct nand_chip *chip = mtd->priv; in fsl_elbc_run_command() local
269 static void fsl_elbc_do_read(struct nand_chip *chip, int oob) in fsl_elbc_do_read()
303 struct nand_chip *chip = mtd->priv; in fsl_elbc_cmdfunc() local
516 static void fsl_elbc_select_chip(struct mtd_info *mtd, int chip) in fsl_elbc_select_chip()
528 struct nand_chip *chip = mtd->priv; in fsl_elbc_write_buf() local
566 struct nand_chip *chip = mtd->priv; in fsl_elbc_read_byte() local
583 struct nand_chip *chip = mtd->priv; in fsl_elbc_read_buf() local
606 static int fsl_elbc_wait(struct mtd_info *mtd, struct nand_chip *chip) in fsl_elbc_wait()
[all …]
Dfsl_ifc_nand.c44 struct nand_chip chip; member
233 struct nand_chip *chip = mtd->priv; in set_addr() local
256 struct nand_chip *chip = mtd->priv; in is_blank() local
295 struct nand_chip *chip = mtd->priv; in fsl_ifc_run_command() local
369 static void fsl_ifc_do_read(struct nand_chip *chip, in fsl_ifc_do_read()
412 struct nand_chip *chip = mtd->priv; in fsl_ifc_cmdfunc() local
613 static void fsl_ifc_select_chip(struct mtd_info *mtd, int chip) in fsl_ifc_select_chip()
625 struct nand_chip *chip = mtd->priv; in fsl_ifc_write_buf() local
651 struct nand_chip *chip = mtd->priv; in fsl_ifc_read_byte() local
674 struct nand_chip *chip = mtd->priv; in fsl_ifc_read_byte16() local
[all …]
/linux-4.1.27/sound/pci/aw2/
Daw2-saa7146.c52 int snd_aw2_saa7146_free(struct snd_aw2_saa7146 *chip) in snd_aw2_saa7146_free()
66 void snd_aw2_saa7146_setup(struct snd_aw2_saa7146 *chip, in snd_aw2_saa7146_setup()
154 void snd_aw2_saa7146_pcm_init_playback(struct snd_aw2_saa7146 *chip, in snd_aw2_saa7146_pcm_init_playback()
212 void snd_aw2_saa7146_pcm_init_capture(struct snd_aw2_saa7146 *chip, in snd_aw2_saa7146_pcm_init_capture()
284 void snd_aw2_saa7146_pcm_trigger_start_playback(struct snd_aw2_saa7146 *chip, in snd_aw2_saa7146_pcm_trigger_start_playback()
307 void snd_aw2_saa7146_pcm_trigger_stop_playback(struct snd_aw2_saa7146 *chip, in snd_aw2_saa7146_pcm_trigger_stop_playback()
327 void snd_aw2_saa7146_pcm_trigger_start_capture(struct snd_aw2_saa7146 *chip, in snd_aw2_saa7146_pcm_trigger_start_capture()
336 void snd_aw2_saa7146_pcm_trigger_stop_capture(struct snd_aw2_saa7146 *chip, in snd_aw2_saa7146_pcm_trigger_stop_capture()
347 struct snd_aw2_saa7146 *chip = dev_id; in snd_aw2_saa7146_interrupt() local
385 unsigned int snd_aw2_saa7146_get_hw_ptr_playback(struct snd_aw2_saa7146 *chip, in snd_aw2_saa7146_get_hw_ptr_playback()
[all …]
Daw2-alsa.c92 struct aw2 *chip; member
223 struct aw2 *chip = device->device_data; in snd_aw2_dev_free() local
246 struct aw2 *chip; in snd_aw2_create() local
336 struct aw2 *chip; in snd_aw2_probe() local
445 struct aw2 *chip = pcm_device->chip; in snd_aw2_pcm_prepare_playback() local
474 struct aw2 *chip = pcm_device->chip; in snd_aw2_pcm_prepare_capture() local
505 struct aw2 *chip = pcm_device->chip; in snd_aw2_pcm_trigger_playback() local
531 struct aw2 *chip = pcm_device->chip; in snd_aw2_pcm_trigger_capture() local
556 struct aw2 *chip = pcm_device->chip; in snd_aw2_pcm_pointer_playback() local
575 struct aw2 *chip = pcm_device->chip; in snd_aw2_pcm_pointer_capture() local
[all …]
/linux-4.1.27/drivers/usb/storage/
Drealtek_cr.c71 #define rts51x_set_stat(chip, stat) \ argument
73 #define rts51x_get_stat(chip) ((chip)->state) argument
75 #define SET_LUN_READY(chip, lun) ((chip)->lun_ready |= ((u8)1 << (lun))) argument
76 #define CLR_LUN_READY(chip, lun) ((chip)->lun_ready &= ~((u8)1 << (lun))) argument
77 #define TST_LUN_READY(chip, lun) ((chip)->lun_ready & ((u8)1 << (lun))) argument
132 #define SET_AUTO_DELINK(chip) ((chip)->flag |= FLIDX_AUTO_DELINK) argument
133 #define CLR_AUTO_DELINK(chip) ((chip)->flag &= ~FLIDX_AUTO_DELINK) argument
134 #define CHK_AUTO_DELINK(chip) ((chip)->flag & FLIDX_AUTO_DELINK) argument
136 #define RTS51X_GET_VID(chip) ((chip)->vendor_id) argument
137 #define RTS51X_GET_PID(chip) ((chip)->product_id) argument
[all …]
/linux-4.1.27/drivers/ssb/
Ddriver_gpio.c25 static struct ssb_bus *ssb_gpio_get_bus(struct gpio_chip *chip) in ssb_gpio_get_bus()
31 static int ssb_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) in ssb_gpio_to_irq()
46 static int ssb_gpio_chipco_get_value(struct gpio_chip *chip, unsigned gpio) in ssb_gpio_chipco_get_value()
53 static void ssb_gpio_chipco_set_value(struct gpio_chip *chip, unsigned gpio, in ssb_gpio_chipco_set_value()
61 static int ssb_gpio_chipco_direction_input(struct gpio_chip *chip, in ssb_gpio_chipco_direction_input()
70 static int ssb_gpio_chipco_direction_output(struct gpio_chip *chip, in ssb_gpio_chipco_direction_output()
80 static int ssb_gpio_chipco_request(struct gpio_chip *chip, unsigned gpio) in ssb_gpio_chipco_request()
93 static void ssb_gpio_chipco_free(struct gpio_chip *chip, unsigned gpio) in ssb_gpio_chipco_free()
149 struct gpio_chip *chip = &bus->gpio; in ssb_gpio_irq_chipco_domain_init() local
194 struct gpio_chip *chip = &bus->gpio; in ssb_gpio_irq_chipco_domain_exit() local
[all …]
/linux-4.1.27/sound/sparc/
Dcs4231.c128 #define CS4231U(chip, x) ((chip)->port + ((c_d_c_CS4231##x) << 2)) argument
277 static void snd_cs4231_ready(struct snd_cs4231 *chip) in snd_cs4231_ready()
289 static void snd_cs4231_dout(struct snd_cs4231 *chip, unsigned char reg, in snd_cs4231_dout()
305 static inline void snd_cs4231_outm(struct snd_cs4231 *chip, unsigned char reg, in snd_cs4231_outm()
315 static void snd_cs4231_out(struct snd_cs4231 *chip, unsigned char reg, in snd_cs4231_out()
323 static unsigned char snd_cs4231_in(struct snd_cs4231 *chip, unsigned char reg) in snd_cs4231_in()
340 static void snd_cs4231_busy_wait(struct snd_cs4231 *chip) in snd_cs4231_busy_wait()
357 static void snd_cs4231_mce_up(struct snd_cs4231 *chip) in snd_cs4231_mce_up()
380 static void snd_cs4231_mce_down(struct snd_cs4231 *chip) in snd_cs4231_mce_down()
445 struct snd_cs4231 *chip = snd_pcm_substream_chip(substream); in cs4231_dma_trigger() local
[all …]
/linux-4.1.27/drivers/staging/iio/addac/
Dadt7316.c224 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_show_enabled() local
229 static ssize_t _adt7316_store_enabled(struct adt7316_chip_info *chip, in _adt7316_store_enabled()
256 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_store_enabled() local
280 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_show_select_ex_temp() local
294 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_store_select_ex_temp() local
324 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_show_mode() local
338 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_store_mode() local
374 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_show_ad_channel() local
413 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_store_ad_channel() local
459 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_show_all_ad_channels() local
[all …]
/linux-4.1.27/drivers/media/usb/usbtv/
Dusbtv-audio.c53 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_pcm_open() local
64 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_pcm_close() local
78 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_hw_params() local
100 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_prepare() local
110 struct usbtv *chip = urb->context; in usbtv_audio_urb_received() local
181 static int usbtv_audio_start(struct usbtv *chip) in usbtv_audio_start()
240 static int usbtv_audio_stop(struct usbtv *chip) in usbtv_audio_stop()
279 struct usbtv *chip = container_of(work, struct usbtv, snd_trigger); in snd_usbtv_trigger() local
289 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_card_trigger() local
313 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_pointer() local
/linux-4.1.27/drivers/pwm/
Dpwm-samsung.c83 struct pwm_chip chip; member
109 struct samsung_pwm_chip *to_samsung_pwm_chip(struct pwm_chip *chip) in to_samsung_pwm_chip()
140 static int pwm_samsung_is_tdiv(struct samsung_pwm_chip *chip, unsigned int chan) in pwm_samsung_is_tdiv()
152 static unsigned long pwm_samsung_get_tin_rate(struct samsung_pwm_chip *chip, in pwm_samsung_get_tin_rate()
168 static unsigned long pwm_samsung_calc_tin(struct samsung_pwm_chip *chip, in pwm_samsung_calc_tin()
205 static int pwm_samsung_request(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_request()
226 static void pwm_samsung_free(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_free()
232 static int pwm_samsung_enable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_enable()
256 static void pwm_samsung_disable(struct pwm_chip *chip, struct pwm_device *pwm) in pwm_samsung_disable()
272 static void pwm_samsung_manual_update(struct samsung_pwm_chip *chip, in pwm_samsung_manual_update()
[all …]
Dpwm-ep93xx.c48 struct pwm_chip chip; member
51 static inline struct ep93xx_pwm *to_ep93xx_pwm(struct pwm_chip *chip) in to_ep93xx_pwm()
56 static int ep93xx_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in ep93xx_pwm_request()
63 static void ep93xx_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in ep93xx_pwm_free()
70 static int ep93xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in ep93xx_pwm_config()
122 static int ep93xx_pwm_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in ep93xx_pwm_polarity()
146 static int ep93xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ep93xx_pwm_enable()
160 static void ep93xx_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ep93xx_pwm_disable()
Dpwm-jz4740.c41 struct pwm_chip chip; member
45 static inline struct jz4740_pwm_chip *to_jz4740(struct pwm_chip *chip) in to_jz4740()
50 static int jz4740_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_request()
76 static void jz4740_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_free()
88 static int jz4740_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_enable()
99 static void jz4740_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in jz4740_pwm_disable()
108 static int jz4740_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in jz4740_pwm_config()
Dpwm-twl-led.c60 struct pwm_chip chip; member
64 static inline struct twl_pwmled_chip *to_twl(struct pwm_chip *chip) in to_twl()
69 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl4030_pwmled_config()
103 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwmled_enable()
127 static void twl4030_pwmled_disable(struct pwm_chip *chip, in twl4030_pwmled_disable()
151 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl6030_pwmled_config()
168 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_enable()
194 static void twl6030_pwmled_disable(struct pwm_chip *chip, in twl6030_pwmled_disable()
220 static int twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_request()
246 static void twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwmled_free()
Dpwm-atmel.c59 struct pwm_chip chip; member
67 static inline struct atmel_pwm_chip *to_atmel_pwm_chip(struct pwm_chip *chip) in to_atmel_pwm_chip()
72 static inline u32 atmel_pwm_readl(struct atmel_pwm_chip *chip, in atmel_pwm_readl()
78 static inline void atmel_pwm_writel(struct atmel_pwm_chip *chip, in atmel_pwm_writel()
84 static inline u32 atmel_pwm_ch_readl(struct atmel_pwm_chip *chip, in atmel_pwm_ch_readl()
92 static inline void atmel_pwm_ch_writel(struct atmel_pwm_chip *chip, in atmel_pwm_ch_writel()
101 static int atmel_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_pwm_config()
152 static void atmel_pwm_config_v1(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_pwm_config_v1()
178 static void atmel_pwm_config_v2(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_pwm_config_v2()
199 static int atmel_pwm_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in atmel_pwm_set_polarity()
[all …]
Dpwm-clps711x.c20 struct pwm_chip chip; member
26 static inline struct clps711x_chip *to_clps711x_chip(struct pwm_chip *chip) in to_clps711x_chip()
54 static int clps711x_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in clps711x_pwm_request()
68 static int clps711x_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in clps711x_pwm_config()
83 static int clps711x_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in clps711x_pwm_enable()
94 static void clps711x_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in clps711x_pwm_disable()
109 static struct pwm_device *clps711x_pwm_xlate(struct pwm_chip *chip, in clps711x_pwm_xlate()
Dpwm-bcm2835.c30 struct pwm_chip chip; member
37 static inline struct bcm2835_pwm *to_bcm2835_pwm(struct pwm_chip *chip) in to_bcm2835_pwm()
42 static int bcm2835_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_request()
55 static void bcm2835_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_free()
65 static int bcm2835_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in bcm2835_pwm_config()
82 static int bcm2835_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_enable()
94 static void bcm2835_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in bcm2835_pwm_disable()
104 static int bcm2835_set_polarity(struct pwm_chip *chip, struct pwm_device *pwm, in bcm2835_set_polarity()
Dpwm-bfin.c18 struct pwm_chip chip; member
30 static int bfin_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in bfin_pwm_request()
55 static void bfin_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in bfin_pwm_free()
65 static int bfin_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in bfin_pwm_config()
90 static int bfin_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in bfin_pwm_enable()
99 static void bfin_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in bfin_pwm_disable()
Dpwm-tegra.c42 struct pwm_chip chip; member
50 static inline struct tegra_pwm_chip *to_tegra_pwm_chip(struct pwm_chip *chip) in to_tegra_pwm_chip()
55 static inline u32 pwm_readl(struct tegra_pwm_chip *chip, unsigned int num) in pwm_readl()
60 static inline void pwm_writel(struct tegra_pwm_chip *chip, unsigned int num, in pwm_writel()
66 static int tegra_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in tegra_pwm_config()
133 static int tegra_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in tegra_pwm_enable()
150 static void tegra_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in tegra_pwm_disable()
Dpwm-twl.c60 struct pwm_chip chip; member
66 static inline struct twl_pwm_chip *to_twl(struct pwm_chip *chip) in to_twl()
71 static int twl_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in twl_pwm_config()
105 static int twl4030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_enable()
135 static void twl4030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_disable()
164 static int twl4030_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_request()
202 static void twl4030_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) in twl4030_pwm_free()
232 static int twl6030_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwm_enable()
255 static void twl6030_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in twl6030_pwm_disable()
/linux-4.1.27/drivers/power/
Dmax17042_battery.c96 struct max17042_chip *chip = power_supply_get_drvdata(psy); in max17042_get_property() local
268 static inline void max10742_unlock_model(struct max17042_chip *chip) in max10742_unlock_model()
276 static inline void max10742_lock_model(struct max17042_chip *chip) in max10742_lock_model()
284 static inline void max17042_write_model_data(struct max17042_chip *chip, in max17042_write_model_data()
295 static inline void max17042_read_model_data(struct max17042_chip *chip, in max17042_read_model_data()
305 static inline int max17042_model_data_compare(struct max17042_chip *chip, in max17042_model_data_compare()
321 static int max17042_init_model(struct max17042_chip *chip) in max17042_init_model()
349 static int max17042_verify_model_lock(struct max17042_chip *chip) in max17042_verify_model_lock()
370 static void max17042_write_config_regs(struct max17042_chip *chip) in max17042_write_config_regs()
386 static void max17042_write_custom_regs(struct max17042_chip *chip) in max17042_write_custom_regs()
[all …]
Dmax17040_battery.c60 struct max17040_chip *chip = power_supply_get_drvdata(psy); in max17040_get_property() local
113 struct max17040_chip *chip = i2c_get_clientdata(client); in max17040_get_vcell() local
125 struct max17040_chip *chip = i2c_get_clientdata(client); in max17040_get_soc() local
148 struct max17040_chip *chip = i2c_get_clientdata(client); in max17040_get_online() local
158 struct max17040_chip *chip = i2c_get_clientdata(client); in max17040_get_status() local
181 struct max17040_chip *chip; in max17040_work() local
214 struct max17040_chip *chip; in max17040_probe() local
248 struct max17040_chip *chip = i2c_get_clientdata(client); in max17040_remove() local
260 struct max17040_chip *chip = i2c_get_clientdata(client); in max17040_suspend() local
269 struct max17040_chip *chip = i2c_get_clientdata(client); in max17040_resume() local
/linux-4.1.27/drivers/char/tpm/st33zp24/
Dst33zp24.c77 struct tpm_chip *chip; member
103 static void st33zp24_cancel(struct tpm_chip *chip) in st33zp24_cancel()
119 static u8 st33zp24_status(struct tpm_chip *chip) in st33zp24_status()
135 static int check_locality(struct tpm_chip *chip) in check_locality()
157 static int request_locality(struct tpm_chip *chip) in request_locality()
191 static void release_locality(struct tpm_chip *chip) in release_locality()
207 static int get_burstcount(struct tpm_chip *chip) in get_burstcount()
247 static bool wait_for_tpm_stat_cond(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat_cond()
271 static int wait_for_stat(struct tpm_chip *chip, u8 mask, unsigned long timeout, in wait_for_stat()
338 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count) in recv_data()
[all …]
/linux-4.1.27/sound/pci/mixart/
Dmixart_mixer.c303 static int mixart_update_analog_audio_level(struct snd_mixart* chip, int is_capture) in mixart_update_analog_audio_level()
359 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_get() local
374 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_put() local
423 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_audio_sw_get() local
434 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_audio_sw_put() local
723 int mixart_update_playback_stream_level(struct snd_mixart* chip, int is_aes, int idx) in mixart_update_playback_stream_level()
775 int mixart_update_capture_stream_level(struct snd_mixart* chip, int is_aes) in mixart_update_capture_stream_level()
836 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_pcm_vol_get() local
858 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_pcm_vol_put() local
916 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_pcm_sw_get() local
[all …]
Dmixart.c229 snd_mixart_add_ref_pipe(struct snd_mixart *chip, int pcm_number, int capture, in snd_mixart_add_ref_pipe()
395 struct snd_mixart *chip; in mixart_set_stream_state() local
492 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_prepare() local
519 struct snd_mixart *chip; in mixart_set_format() local
606 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_hw_params() local
667 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_hw_free() local
723 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_playback_open() local
802 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_capture_open() local
884 struct snd_mixart *chip = snd_pcm_substream_chip(subs); in snd_mixart_close() local
947 static void preallocate_buffers(struct snd_mixart *chip, struct snd_pcm *pcm) in preallocate_buffers()
[all …]
/linux-4.1.27/sound/isa/
Des18xx.c177 static int snd_es18xx_dsp_command(struct snd_es18xx *chip, unsigned char val) in snd_es18xx_dsp_command()
190 static int snd_es18xx_dsp_get_byte(struct snd_es18xx *chip) in snd_es18xx_dsp_get_byte()
204 static int snd_es18xx_write(struct snd_es18xx *chip, in snd_es18xx_write()
223 static int snd_es18xx_read(struct snd_es18xx *chip, unsigned char reg) in snd_es18xx_read()
245 static int snd_es18xx_bits(struct snd_es18xx *chip, unsigned char reg, in snd_es18xx_bits()
283 static inline void snd_es18xx_mixer_write(struct snd_es18xx *chip, in snd_es18xx_mixer_write()
296 static inline int snd_es18xx_mixer_read(struct snd_es18xx *chip, unsigned char reg) in snd_es18xx_mixer_read()
311 static inline int snd_es18xx_mixer_bits(struct snd_es18xx *chip, unsigned char reg, in snd_es18xx_mixer_bits()
332 static inline int snd_es18xx_mixer_writable(struct snd_es18xx *chip, unsigned char reg, in snd_es18xx_mixer_writable()
352 static int snd_es18xx_reset(struct snd_es18xx *chip) in snd_es18xx_reset()
[all …]
/linux-4.1.27/drivers/mmc/host/
Dsdhci-pci-o2micro.c24 static void o2_pci_set_baseclk(struct sdhci_pci_chip *chip, u32 value) in o2_pci_set_baseclk()
37 static void o2_pci_led_enable(struct sdhci_pci_chip *chip) in o2_pci_led_enable()
63 void sdhci_pci_o2_fujin2_pci_init(struct sdhci_pci_chip *chip) in sdhci_pci_o2_fujin2_pci_init()
152 struct sdhci_pci_chip *chip; in sdhci_pci_o2_probe_slot() local
184 int sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) in sdhci_pci_o2_probe()
390 int sdhci_pci_o2_resume(struct sdhci_pci_chip *chip) in sdhci_pci_o2_resume()
Dsdhci-pci.c40 static int ricoh_probe(struct sdhci_pci_chip *chip) in ricoh_probe()
64 static int ricoh_mmc_resume(struct sdhci_pci_chip *chip) in ricoh_mmc_resume()
121 static int mrst_hc_probe(struct sdhci_pci_chip *chip) in mrst_hc_probe()
360 static int jmicron_pmos(struct sdhci_pci_chip *chip, int on) in jmicron_pmos()
385 static int jmicron_probe(struct sdhci_pci_chip *chip) in jmicron_probe()
517 static int jmicron_suspend(struct sdhci_pci_chip *chip) in jmicron_suspend()
530 static int jmicron_resume(struct sdhci_pci_chip *chip) in jmicron_resume()
586 static int syskt_probe(struct sdhci_pci_chip *chip) in syskt_probe()
634 static int via_probe(struct sdhci_pci_chip *chip) in via_probe()
659 static int amd_probe(struct sdhci_pci_chip *chip) in amd_probe()
[all …]
/linux-4.1.27/sound/i2c/other/
Dak4113.c57 static void snd_ak4113_free(struct ak4113 *chip) in snd_ak4113_free()
66 struct ak4113 *chip = device->device_data; in snd_ak4113_dev_free() local
75 struct ak4113 *chip; in snd_ak4113_create() local
116 void snd_ak4113_reg_write(struct ak4113 *chip, unsigned char reg, in snd_ak4113_reg_write()
125 static void ak4113_init_regs(struct ak4113 *chip) in ak4113_init_regs()
141 void snd_ak4113_reinit(struct ak4113 *chip) in snd_ak4113_reinit()
201 struct ak4113 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4113_in_error_get() local
217 struct ak4113 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4113_in_bit_get() local
240 struct ak4113 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4113_rx_get() local
250 struct ak4113 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4113_rx_put() local
[all …]
Dak4114.c67 static void snd_ak4114_free(struct ak4114 *chip) in snd_ak4114_free()
76 struct ak4114 *chip = device->device_data; in snd_ak4114_dev_free() local
86 struct ak4114 *chip; in snd_ak4114_create() local
128 void snd_ak4114_reg_write(struct ak4114 *chip, unsigned char reg, unsigned char mask, unsigned char… in snd_ak4114_reg_write()
138 static void ak4114_init_regs(struct ak4114 *chip) in ak4114_init_regs()
156 void snd_ak4114_reinit(struct ak4114 *chip) in snd_ak4114_reinit()
196 struct ak4114 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4114_in_error_get() local
212 struct ak4114 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4114_in_bit_get() local
234 struct ak4114 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4114_rate_get() local
250 struct ak4114 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4114_spdif_get() local
[all …]
Dak4117.c63 static void snd_ak4117_free(struct ak4117 *chip) in snd_ak4117_free()
71 struct ak4117 *chip = device->device_data; in snd_ak4117_dev_free() local
79 struct ak4117 *chip; in snd_ak4117_create() local
116 void snd_ak4117_reg_write(struct ak4117 *chip, unsigned char reg, unsigned char mask, unsigned char… in snd_ak4117_reg_write()
123 void snd_ak4117_reinit(struct ak4117 *chip) in snd_ak4117_reinit()
170 struct ak4117 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4117_in_error_get() local
186 struct ak4117 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4117_in_bit_get() local
208 struct ak4117 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4117_rx_get() local
217 struct ak4117 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4117_rx_put() local
243 struct ak4117 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4117_rate_get() local
[all …]
/linux-4.1.27/drivers/bcma/
Ddriver_gpio.c22 static inline struct bcma_drv_cc *bcma_gpio_get_cc(struct gpio_chip *chip) in bcma_gpio_get_cc()
27 static int bcma_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_get_value()
34 static void bcma_gpio_set_value(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_set_value()
42 static int bcma_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_direction_input()
50 static int bcma_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, in bcma_gpio_direction_output()
60 static int bcma_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_request()
73 static void bcma_gpio_free(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_free()
82 static int bcma_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) in bcma_gpio_to_irq()
137 struct gpio_chip *chip = &cc->gpio; in bcma_gpio_irq_domain_init() local
181 struct gpio_chip *chip = &cc->gpio; in bcma_gpio_irq_domain_exit() local
[all …]
/linux-4.1.27/sound/pci/pcxhr/
Dpcxhr_mixer.c52 static int pcxhr_update_analog_audio_level(struct snd_pcxhr *chip, in pcxhr_update_analog_audio_level()
90 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_info() local
125 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_get() local
141 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_put() local
206 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_audio_sw_get() local
218 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_audio_sw_put() local
259 static int pcxhr_update_playback_stream_level(struct snd_pcxhr* chip, int idx) in pcxhr_update_playback_stream_level()
302 static int pcxhr_update_audio_pipe_level(struct snd_pcxhr *chip, in pcxhr_update_audio_pipe_level()
363 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_pcm_vol_get() local
382 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_pcm_vol_put() local
[all …]
/linux-4.1.27/drivers/input/keyboard/
Dtca6416-keypad.c57 static int tca6416_write_reg(struct tca6416_keypad_chip *chip, int reg, u16 val) in tca6416_write_reg()
74 static int tca6416_read_reg(struct tca6416_keypad_chip *chip, int reg, u16 *val) in tca6416_read_reg()
91 static void tca6416_keys_scan(struct tca6416_keypad_chip *chip) in tca6416_keys_scan()
128 struct tca6416_keypad_chip *chip = dev_id; in tca6416_keys_isr() local
137 struct tca6416_keypad_chip *chip = in tca6416_keys_work_func() local
146 struct tca6416_keypad_chip *chip = input_get_drvdata(dev); in tca6416_keys_open() local
161 struct tca6416_keypad_chip *chip = input_get_drvdata(dev); in tca6416_keys_close() local
169 static int tca6416_setup_registers(struct tca6416_keypad_chip *chip) in tca6416_setup_registers()
204 struct tca6416_keypad_chip *chip; in tca6416_keypad_probe() local
318 struct tca6416_keypad_chip *chip = i2c_get_clientdata(client); in tca6416_keypad_remove() local
[all …]
/linux-4.1.27/sound/spi/
Dat73c213.c87 snd_at73c213_write_reg(struct snd_at73c213 *chip, u8 reg, u8 val) in snd_at73c213_write_reg()
132 static int snd_at73c213_set_bitrate(struct snd_at73c213 *chip) in snd_at73c213_set_bitrate()
210 struct snd_at73c213 *chip = snd_pcm_substream_chip(substream); in snd_at73c213_pcm_open() local
229 struct snd_at73c213 *chip = snd_pcm_substream_chip(substream); in snd_at73c213_pcm_close() local
237 struct snd_at73c213 *chip = snd_pcm_substream_chip(substream); in snd_at73c213_pcm_hw_params() local
256 struct snd_at73c213 *chip = snd_pcm_substream_chip(substream); in snd_at73c213_pcm_prepare() local
279 struct snd_at73c213 *chip = snd_pcm_substream_chip(substream); in snd_at73c213_pcm_trigger() local
307 struct snd_at73c213 *chip = snd_pcm_substream_chip(substream); in snd_at73c213_pcm_pointer() local
333 static int snd_at73c213_pcm_new(struct snd_at73c213 *chip, int device) in snd_at73c213_pcm_new()
359 struct snd_at73c213 *chip = dev_id; in snd_at73c213_interrupt() local
[all …]
/linux-4.1.27/sound/usb/
Dcard.c132 static int snd_usb_create_stream(struct snd_usb_audio *chip, int ctrlif, int interface) in snd_usb_create_stream()
214 static int snd_usb_create_streams(struct snd_usb_audio *chip, int ctrlif) in snd_usb_create_streams()
306 static int snd_usb_audio_free(struct snd_usb_audio *chip) in snd_usb_audio_free()
320 struct snd_usb_audio *chip = device->device_data; in snd_usb_audio_dev_free() local
333 struct snd_usb_audio *chip; in snd_usb_audio_create() local
474 struct snd_usb_audio *chip; in usb_audio_probe() local
587 struct snd_usb_audio *chip = usb_get_intfdata(intf); in usb_audio_disconnect() local
637 int snd_usb_lock_shutdown(struct snd_usb_audio *chip) in snd_usb_lock_shutdown()
658 void snd_usb_unlock_shutdown(struct snd_usb_audio *chip) in snd_usb_unlock_shutdown()
667 int snd_usb_autoresume(struct snd_usb_audio *chip) in snd_usb_autoresume()
[all …]
Dquirks.c43 static int create_composite_quirk(struct snd_usb_audio *chip, in create_composite_quirk()
76 static int ignore_interface_quirk(struct snd_usb_audio *chip, in ignore_interface_quirk()
89 static int create_align_transfer_quirk(struct snd_usb_audio *chip, in create_align_transfer_quirk()
98 static int create_any_midi_quirk(struct snd_usb_audio *chip, in create_any_midi_quirk()
109 static int create_standard_audio_quirk(struct snd_usb_audio *chip, in create_standard_audio_quirk()
134 static int create_fixed_stream_quirk(struct snd_usb_audio *chip, in create_fixed_stream_quirk()
198 static int create_auto_pcm_quirk(struct snd_usb_audio *chip, in create_auto_pcm_quirk()
240 static int create_yamaha_midi_quirk(struct snd_usb_audio *chip, in create_yamaha_midi_quirk()
269 static int create_roland_midi_quirk(struct snd_usb_audio *chip, in create_roland_midi_quirk()
293 static int create_std_midi_quirk(struct snd_usb_audio *chip, in create_std_midi_quirk()
[all …]
Dclock.c85 static int uac_clock_selector_get_val(struct snd_usb_audio *chip, int selector_id) in uac_clock_selector_get_val()
103 static int uac_clock_selector_set_val(struct snd_usb_audio *chip, int selector_id, in uac_clock_selector_set_val()
138 static bool uac_clock_source_is_valid(struct snd_usb_audio *chip, int source_id) in uac_clock_source_is_valid()
170 static int __uac_clock_find_source(struct snd_usb_audio *chip, in __uac_clock_find_source()
271 int snd_usb_clock_find_source(struct snd_usb_audio *chip, int entity_id, in snd_usb_clock_find_source()
279 static int set_sample_rate_v1(struct snd_usb_audio *chip, int iface, in set_sample_rate_v1()
331 static int get_sample_rate_v2(struct snd_usb_audio *chip, int iface, in get_sample_rate_v2()
352 static int set_sample_rate_v2(struct snd_usb_audio *chip, int iface, in set_sample_rate_v2()
416 int snd_usb_init_sample_rate(struct snd_usb_audio *chip, int iface, in snd_usb_init_sample_rate()
/linux-4.1.27/drivers/media/pci/cx23885/
Dcx23885-alsa.c83 static int cx23885_alsa_dma_init(struct cx23885_audio_dev *chip, int nr_pages) in cx23885_alsa_dma_init()
163 static int cx23885_start_audio_dma(struct cx23885_audio_dev *chip) in cx23885_start_audio_dma()
216 static int cx23885_stop_audio_dma(struct cx23885_audio_dev *chip) in cx23885_stop_audio_dma()
241 struct cx23885_audio_dev *chip = dev->audio_dev; in cx23885_audio_irq() local
271 static int dsp_buffer_free(struct cx23885_audio_dev *chip) in dsp_buffer_free()
325 struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx23885_pcm_open() local
374 struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx23885_hw_params() local
434 struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx23885_hw_free() local
458 struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx23885_card_trigger() local
487 struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx23885_pointer() local
[all …]
/linux-4.1.27/drivers/media/pci/cx88/
Dcx88-alsa.c138 static int _cx88_start_audio_dma(snd_cx88_card_t *chip) in _cx88_start_audio_dma()
184 static int _cx88_stop_audio_dma(snd_cx88_card_t *chip) in _cx88_stop_audio_dma()
224 static void cx8801_aud_irq(snd_cx88_card_t *chip) in cx8801_aud_irq()
262 snd_cx88_card_t *chip = dev_id; in cx8801_irq() local
294 static int cx88_alsa_dma_init(struct cx88_audio_dev *chip, int nr_pages) in cx88_alsa_dma_init()
371 static int dsp_buffer_free(snd_cx88_card_t *chip) in dsp_buffer_free()
423 snd_cx88_card_t *chip = snd_pcm_substream_chip(substream); in snd_cx88_pcm_open() local
468 snd_cx88_card_t *chip = snd_pcm_substream_chip(substream); in snd_cx88_hw_params() local
526 snd_cx88_card_t *chip = snd_pcm_substream_chip(substream); in snd_cx88_hw_free() local
549 snd_cx88_card_t *chip = snd_pcm_substream_chip(substream); in snd_cx88_card_trigger() local
[all …]
/linux-4.1.27/drivers/misc/cb710/
Dcore.c70 struct cb710_chip *chip = data; in cb710_irq_handler() local
92 struct cb710_chip *chip = cb710_slot_to_chip(slot); in cb710_release_slot() local
99 static int cb710_register_slot(struct cb710_chip *chip, in cb710_register_slot()
142 static void cb710_unregister_slot(struct cb710_chip *chip, in cb710_unregister_slot()
164 struct cb710_chip *chip = cb710_slot_to_chip(slot); in cb710_set_irq_handler() local
177 struct cb710_chip *chip = pci_get_drvdata(pdev); in cb710_suspend() local
189 struct cb710_chip *chip = pci_get_drvdata(pdev); in cb710_resume() local
207 struct cb710_chip *chip; in cb710_probe() local
310 struct cb710_chip *chip = pci_get_drvdata(pdev); in cb710_remove_one() local
/linux-4.1.27/drivers/input/misc/
Dmax8997_haptic.c70 static int max8997_haptic_set_duty_cycle(struct max8997_haptic *chip) in max8997_haptic_set_duty_cycle()
111 static void max8997_haptic_configure(struct max8997_haptic *chip) in max8997_haptic_configure()
171 static void max8997_haptic_enable(struct max8997_haptic *chip) in max8997_haptic_enable()
205 static void max8997_haptic_disable(struct max8997_haptic *chip) in max8997_haptic_disable()
222 struct max8997_haptic *chip = in max8997_haptic_play_effect_work() local
234 struct max8997_haptic *chip = input_get_drvdata(dev); in max8997_haptic_play_effect() local
247 struct max8997_haptic *chip = input_get_drvdata(dev); in max8997_haptic_close() local
259 struct max8997_haptic *chip; in max8997_haptic_probe() local
370 struct max8997_haptic *chip = platform_get_drvdata(pdev); in max8997_haptic_remove() local
386 struct max8997_haptic *chip = platform_get_drvdata(pdev); in max8997_haptic_suspend() local
/linux-4.1.27/sound/mips/
Dsgio2audio.c118 struct snd_sgio2audio *chip = priv; in read_ad1843_reg() local
141 struct snd_sgio2audio *chip = priv; in write_ad1843_reg() local
161 struct snd_sgio2audio *chip = snd_kcontrol_chip(kcontrol); in sgio2audio_gain_info() local
174 struct snd_sgio2audio *chip = snd_kcontrol_chip(kcontrol); in sgio2audio_gain_get() local
188 struct snd_sgio2audio *chip = snd_kcontrol_chip(kcontrol); in sgio2audio_gain_put() local
213 struct snd_sgio2audio *chip = snd_kcontrol_chip(kcontrol); in sgio2audio_source_get() local
222 struct snd_sgio2audio *chip = snd_kcontrol_chip(kcontrol); in sgio2audio_source_put() local
313 static int snd_sgio2audio_new_mixer(struct snd_sgio2audio *chip) in snd_sgio2audio_new_mixer()
358 static int snd_sgio2audio_dma_pull_frag(struct snd_sgio2audio *chip, in snd_sgio2audio_dma_pull_frag()
406 static int snd_sgio2audio_dma_push_frag(struct snd_sgio2audio *chip, in snd_sgio2audio_dma_push_frag()
[all …]
/linux-4.1.27/arch/m68k/coldfire/
Dgpio.c117 static int mcfgpio_direction_input(struct gpio_chip *chip, unsigned offset) in mcfgpio_direction_input()
122 static int mcfgpio_get_value(struct gpio_chip *chip, unsigned offset) in mcfgpio_get_value()
127 static int mcfgpio_direction_output(struct gpio_chip *chip, unsigned offset, in mcfgpio_direction_output()
133 static void mcfgpio_set_value(struct gpio_chip *chip, unsigned offset, in mcfgpio_set_value()
139 static int mcfgpio_request(struct gpio_chip *chip, unsigned offset) in mcfgpio_request()
144 static void mcfgpio_free(struct gpio_chip *chip, unsigned offset) in mcfgpio_free()
149 static int mcfgpio_to_irq(struct gpio_chip *chip, unsigned offset) in mcfgpio_to_irq()
/linux-4.1.27/drivers/pinctrl/bcm/
Dpinctrl-cygnus-gpio.c122 static inline void cygnus_set_bit(struct cygnus_gpio *chip, unsigned int reg, in cygnus_set_bit()
137 static inline bool cygnus_get_bit(struct cygnus_gpio *chip, unsigned int reg, in cygnus_get_bit()
149 struct cygnus_gpio *chip = to_cygnus_gpio(gc); in cygnus_gpio_irq_handler() local
182 struct cygnus_gpio *chip = to_cygnus_gpio(gc); in cygnus_gpio_irq_ack() local
201 struct cygnus_gpio *chip = to_cygnus_gpio(gc); in cygnus_gpio_irq_set_mask() local
210 struct cygnus_gpio *chip = to_cygnus_gpio(gc); in cygnus_gpio_irq_mask() local
221 struct cygnus_gpio *chip = to_cygnus_gpio(gc); in cygnus_gpio_irq_unmask() local
232 struct cygnus_gpio *chip = to_cygnus_gpio(gc); in cygnus_gpio_irq_set_type() local
294 struct cygnus_gpio *chip = to_cygnus_gpio(gc); in cygnus_gpio_request() local
306 struct cygnus_gpio *chip = to_cygnus_gpio(gc); in cygnus_gpio_free() local
[all …]
/linux-4.1.27/arch/blackfin/mach-bf538/
Dext-gpio.c27 static void __iomem *gpio_chip_to_mmr(struct gpio_chip *chip) in gpio_chip_to_mmr()
37 static int bf538_gpio_get_value(struct gpio_chip *chip, unsigned gpio) in bf538_gpio_get_value()
43 static void bf538_gpio_set_value(struct gpio_chip *chip, unsigned gpio, int value) in bf538_gpio_set_value()
52 static int bf538_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bf538_gpio_direction_input()
60 static int bf538_gpio_direction_output(struct gpio_chip *chip, unsigned gpio, int value) in bf538_gpio_direction_output()
69 static int bf538_gpio_request(struct gpio_chip *chip, unsigned gpio) in bf538_gpio_request()
74 static void bf538_gpio_free(struct gpio_chip *chip, unsigned gpio) in bf538_gpio_free()
/linux-4.1.27/drivers/staging/iio/light/
Disl29018.c82 static int isl29018_set_range(struct isl29018_chip *chip, unsigned long range, in isl29018_set_range()
102 static int isl29018_set_resolution(struct isl29018_chip *chip, in isl29018_set_resolution()
123 static int isl29018_read_sensor_input(struct isl29018_chip *chip, int mode) in isl29018_read_sensor_input()
156 static int isl29018_read_lux(struct isl29018_chip *chip, int *lux) in isl29018_read_lux()
179 static int isl29018_read_ir(struct isl29018_chip *chip, int *ir) in isl29018_read_ir()
193 static int isl29018_read_proximity_ir(struct isl29018_chip *chip, int scheme, in isl29018_read_proximity_ir()
238 struct isl29018_chip *chip = iio_priv(indio_dev); in show_range() local
247 struct isl29018_chip *chip = iio_priv(indio_dev); in store_range() local
280 struct isl29018_chip *chip = iio_priv(indio_dev); in show_resolution() local
289 struct isl29018_chip *chip = iio_priv(indio_dev); in store_resolution() local
[all …]
Disl29028.c83 static int isl29028_set_proxim_sampling(struct isl29028_chip *chip, in isl29028_set_proxim_sampling()
98 static int isl29028_enable_proximity(struct isl29028_chip *chip, bool enable) in isl29028_enable_proximity()
115 static int isl29028_set_als_scale(struct isl29028_chip *chip, int lux_scale) in isl29028_set_als_scale()
124 static int isl29028_set_als_ir_mode(struct isl29028_chip *chip, in isl29028_set_als_ir_mode()
164 static int isl29028_read_als_ir(struct isl29028_chip *chip, int *als_ir) in isl29028_read_als_ir()
188 static int isl29028_read_proxim(struct isl29028_chip *chip, int *prox) in isl29028_read_proxim()
203 static int isl29028_proxim_get(struct isl29028_chip *chip, int *prox_data) in isl29028_proxim_get()
216 static int isl29028_als_get(struct isl29028_chip *chip, int *als_data) in isl29028_als_get()
249 static int isl29028_ir_get(struct isl29028_chip *chip, int *ir_data) in isl29028_ir_get()
269 struct isl29028_chip *chip = iio_priv(indio_dev); in isl29028_write_raw() local
[all …]
/linux-4.1.27/drivers/iio/light/
Dtsl2563.c140 static int tsl2563_set_power(struct tsl2563_chip *chip, int on) in tsl2563_set_power()
154 static int tsl2563_get_power(struct tsl2563_chip *chip) in tsl2563_get_power()
166 static int tsl2563_configure(struct tsl2563_chip *chip) in tsl2563_configure()
203 struct tsl2563_chip *chip = in tsl2563_poweroff_work() local
208 static int tsl2563_detect(struct tsl2563_chip *chip) in tsl2563_detect()
223 static int tsl2563_read_id(struct tsl2563_chip *chip, u8 *id) in tsl2563_read_id()
271 static void tsl2563_wait_adc(struct tsl2563_chip *chip) in tsl2563_wait_adc()
292 static int tsl2563_adjust_gainlevel(struct tsl2563_chip *chip, u16 adc) in tsl2563_adjust_gainlevel()
313 static int tsl2563_get_adc(struct tsl2563_chip *chip) in tsl2563_get_adc()
461 struct tsl2563_chip *chip = iio_priv(indio_dev); in tsl2563_write_raw() local
[all …]
/linux-4.1.27/arch/arm/plat-samsung/include/plat/
Dgpio-cfg-helpers.h27 static inline int samsung_gpio_do_setcfg(struct samsung_gpio_chip *chip, in samsung_gpio_do_setcfg()
33 static inline unsigned samsung_gpio_do_getcfg(struct samsung_gpio_chip *chip, in samsung_gpio_do_getcfg()
39 static inline int samsung_gpio_do_setpull(struct samsung_gpio_chip *chip, in samsung_gpio_do_setpull()
45 static inline samsung_gpio_pull_t samsung_gpio_do_getpull(struct samsung_gpio_chip *chip, in samsung_gpio_do_getpull()
/linux-4.1.27/arch/mips/include/asm/sibyte/
Dsb1250_defs.h111 #define SIBYTE_HDR_FMASK(chip, pass) \ argument
113 #define SIBYTE_HDR_FMASK_ALLREVS(chip) \ argument
134 #define SIBYTE_HDR_FMASK_BEFORE(chip, pass) \ argument
138 #define SIBYTE_HDR_FMASK_AFTER(chip, pass) \ argument
144 #define SIBYTE_HDR_FEATURE_CHIP(chip) \ argument
154 #define SIBYTE_HDR_FEATURE(chip, pass) \ argument
159 #define SIBYTE_HDR_FEATURE_EXACT(chip, pass) \ argument
163 #define SIBYTE_HDR_FEATURE_UP_TO(chip, pass) \ argument
/linux-4.1.27/sound/isa/cs423x/
Dcs4236_lib.c122 static void snd_cs4236_ctrl_out(struct snd_wss *chip, in snd_cs4236_ctrl_out()
129 static unsigned char snd_cs4236_ctrl_in(struct snd_wss *chip, unsigned char reg) in snd_cs4236_ctrl_in()
182 static void snd_cs4236_playback_format(struct snd_wss *chip, in snd_cs4236_playback_format()
200 static void snd_cs4236_capture_format(struct snd_wss *chip, in snd_cs4236_capture_format()
220 static void snd_cs4236_suspend(struct snd_wss *chip) in snd_cs4236_suspend()
235 static void snd_cs4236_resume(struct snd_wss *chip) in snd_cs4236_resume()
281 struct snd_wss *chip; in snd_cs4236_create() local
379 int snd_cs4236_pcm(struct snd_wss *chip, int device) in snd_cs4236_pcm()
421 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_single() local
438 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_single() local
[all …]
/linux-4.1.27/sound/isa/opti9xx/
Dopti92x-ad1848.c122 #define OPTi93X_PORT(chip, r) ((chip)->port + OPTi93X_##r) argument
185 static int snd_opti9xx_init(struct snd_opti9xx *chip, in snd_opti9xx_init()
245 static unsigned char snd_opti9xx_read(struct snd_opti9xx *chip, in snd_opti9xx_read()
288 static void snd_opti9xx_write(struct snd_opti9xx *chip, unsigned char reg, in snd_opti9xx_write()
330 #define snd_opti9xx_write_mask(chip, reg, value, mask) \ argument
335 static int snd_opti9xx_configure(struct snd_opti9xx *chip, in snd_opti9xx_configure()
592 static int snd_opti93x_mixer(struct snd_wss *chip) in snd_opti93x_mixer()
645 struct snd_opti9xx *chip = dev_id; in snd_opti93x_interrupt() local
665 static int snd_opti9xx_read_check(struct snd_opti9xx *chip) in snd_opti9xx_read_check()
707 struct snd_opti9xx *chip)
[all …]

12345