Home
last modified time | relevance | path

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

12345678910>>...73

/linux/drivers/char/tpm/
H A Dtpm-chip.c15 * TPM chip management routines.
40 static int tpm_request_locality(struct tpm_chip *chip) in tpm_request_locality() argument
44 if (!chip->ops->request_locality) in tpm_request_locality()
47 rc = chip->ops->request_locality(chip, 0); in tpm_request_locality()
51 chip->locality = rc; in tpm_request_locality()
55 static void tpm_relinquish_locality(struct tpm_chip *chip) in tpm_relinquish_locality() argument
59 if (!chip->ops->relinquish_locality) in tpm_relinquish_locality()
62 rc = chip->ops->relinquish_locality(chip, chi in tpm_relinquish_locality()
69 tpm_cmd_ready(struct tpm_chip * chip) tpm_cmd_ready() argument
77 tpm_go_idle(struct tpm_chip * chip) tpm_go_idle() argument
85 tpm_clk_enable(struct tpm_chip * chip) tpm_clk_enable() argument
91 tpm_clk_disable(struct tpm_chip * chip) tpm_clk_disable() argument
105 tpm_chip_start(struct tpm_chip * chip) tpm_chip_start() argument
138 tpm_chip_stop(struct tpm_chip * chip) tpm_chip_stop() argument
157 tpm_try_get_ops(struct tpm_chip * chip) tpm_try_get_ops() argument
197 tpm_put_ops(struct tpm_chip * chip) tpm_put_ops() argument
211 struct tpm_chip *chip, *res = NULL; tpm_default_chip() local
241 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); tpm_dev_release() local
266 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); tpm_class_shutdown() local
295 struct tpm_chip *chip; tpm_chip_alloc() local
369 struct tpm_chip *chip; tpmm_chip_alloc() local
388 tpm_add_char_device(struct tpm_chip * chip) tpm_add_char_device() argument
419 tpm_del_char_device(struct tpm_chip * chip) tpm_del_char_device() argument
448 tpm_del_legacy_sysfs(struct tpm_chip * chip) tpm_del_legacy_sysfs() argument
466 tpm_add_legacy_sysfs(struct tpm_chip * chip) tpm_add_legacy_sysfs() argument
495 struct tpm_chip *chip = container_of(rng, struct tpm_chip, hwrng); tpm_hwrng_read() local
500 tpm_is_hwrng_enabled(struct tpm_chip * chip) tpm_is_hwrng_enabled() argument
511 tpm_add_hwrng(struct tpm_chip * chip) tpm_add_hwrng() argument
523 tpm_get_pcr_allocation(struct tpm_chip * chip) tpm_get_pcr_allocation() argument
547 tpm_chip_bootstrap(struct tpm_chip * chip) tpm_chip_bootstrap() argument
587 tpm_chip_register(struct tpm_chip * chip) tpm_chip_register() argument
640 tpm_chip_unregister(struct tpm_chip * chip) tpm_chip_unregister() argument
[all...]
/linux/sound/pci/echoaudio/
H A Dechoaudio_dsp.c20 static int restore_dsp_settings(struct echoaudio *chip);
27 static int wait_handshake(struct echoaudio *chip) in wait_handshake() argument
35 if (chip->comm_page->handshake) { in wait_handshake()
41 dev_err(chip->card->dev, "wait_handshake(): Timeout waiting for DSP\n"); in wait_handshake()
51 static int send_vector(struct echoaudio *chip, u32 command) in send_vector() argument
59 if (!(get_dsp_register(chip, CHI32_VECTOR_REG) & in send_vector()
61 set_dsp_register(chip, CHI32_VECTOR_REG, command); in send_vector()
68 dev_err(chip->card->dev, "timeout on send_vector\n"); in send_vector()
76 static int write_dsp(struct echoaudio *chip, u32 data) in write_dsp() argument
81 status = get_dsp_register(chip, CHI32_STATUS_REG); in write_dsp()
[all …]
H A Dmidi.c22 static int enable_midi_input(struct echoaudio *chip, char enable) in enable_midi_input() argument
24 dev_dbg(chip->card->dev, "enable_midi_input(%d)\n", enable); in enable_midi_input()
26 if (wait_handshake(chip)) in enable_midi_input()
30 chip->mtc_state = MIDI_IN_STATE_NORMAL; in enable_midi_input()
31 chip->comm_page->flags |= in enable_midi_input()
34 chip->comm_page->flags &= in enable_midi_input()
37 clear_handshake(chip); in enable_midi_input()
38 return send_vector(chip, DSP_VC_UPDATE_FLAGS); in enable_midi_input()
45 static int write_midi(struct echoaudio *chip, u8 *data, int bytes) in write_midi() argument
50 if (wait_handshake(chip)) in write_midi()
[all …]
H A Dlayla20_dsp.c17 static int read_dsp(struct echoaudio *chip, u32 *data);
18 static int set_professional_spdif(struct echoaudio *chip, char prof);
19 static int load_asic_generic(struct echoaudio *chip, u32 cmd, short asic);
20 static int check_asic_status(struct echoaudio *chip);
21 static int update_flags(struct echoaudio *chip);
24 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw() argument
31 err = init_dsp_comm_page(chip); in init_hw()
33 dev_err(chip->card->dev, in init_hw()
38 chip->device_id = device_id; in init_hw()
39 chip->subdevice_id = subdevice_id; in init_hw()
[all …]
H A Dechoaudio_3g.c21 static int check_asic_status(struct echoaudio *chip) in check_asic_status() argument
25 if (wait_handshake(chip)) in check_asic_status()
28 chip->comm_page->ext_box_status = cpu_to_le32(E3G_ASIC_NOT_LOADED); in check_asic_status()
29 chip->asic_loaded = false; in check_asic_status()
30 clear_handshake(chip); in check_asic_status()
31 send_vector(chip, DSP_VC_TEST_ASIC); in check_asic_status()
33 if (wait_handshake(chip)) { in check_asic_status()
34 chip->dsp_code = NULL; in check_asic_status()
38 box_status = le32_to_cpu(chip->comm_page->ext_box_status); in check_asic_status()
39 dev_dbg(chip->card->dev, "box_status=%x\n", box_status); in check_asic_status()
[all …]
H A Decho3g_dsp.c16 static int load_asic(struct echoaudio *chip);
17 static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode);
18 static int set_digital_mode(struct echoaudio *chip, u8 mode);
19 static int check_asic_status(struct echoaudio *chip);
20 static int set_sample_rate(struct echoaudio *chip, u32 rate);
21 static int set_input_clock(struct echoaudio *chip, u16 clock);
22 static int set_professional_spdif(struct echoaudio *chip, char prof);
23 static int set_phantom_power(struct echoaudio *chip, char on);
24 static int write_control_reg(struct echoaudio *chip, u32 ctl, u32 frq,
29 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw() argument
[all …]
H A Dechoaudio.c33 struct echoaudio *chip, const short fw_index) in get_firmware() argument
38 if (chip->fw_cache[fw_index]) { in get_firmware()
39 dev_dbg(chip->card->dev, in get_firmware()
42 *fw_entry = chip->fw_cache[fw_index]; in get_firmware()
46 dev_dbg(chip->card->dev, in get_firmware()
49 err = request_firmware(fw_entry, name, &chip->pci->dev); in get_firmware()
51 dev_err(chip->card->dev, in get_firmware()
54 chip->fw_cache[fw_index] = *fw_entry; in get_firmware()
61 struct echoaudio *chip) in free_firmware() argument
63 dev_dbg(chip in free_firmware()
68 free_firmware_cache(struct echoaudio * chip) free_firmware_cache() argument
236 struct echoaudio *chip = rule->private; hw_rule_sample_rate() local
257 struct echoaudio *chip; pcm_open() local
351 struct echoaudio *chip = snd_pcm_substream_chip(substream); pcm_analog_in_open() local
378 struct echoaudio *chip = snd_pcm_substream_chip(substream); pcm_analog_out_open() local
413 struct echoaudio *chip = snd_pcm_substream_chip(substream); pcm_digital_in_open() local
450 struct echoaudio *chip = snd_pcm_substream_chip(substream); pcm_digital_out_open() local
491 struct echoaudio *chip = snd_pcm_substream_chip(substream); pcm_close() local
524 struct echoaudio *chip; init_engine() local
606 struct echoaudio *chip = snd_pcm_substream_chip(substream); pcm_analog_in_hw_params() local
628 struct echoaudio *chip = snd_pcm_substream_chip(substream); pcm_digital_in_hw_params() local
640 struct echoaudio *chip = snd_pcm_substream_chip(substream); pcm_digital_out_hw_params() local
653 struct echoaudio *chip; pcm_hw_free() local
674 struct echoaudio *chip = snd_pcm_substream_chip(substream); pcm_prepare() local
729 struct echoaudio *chip = snd_pcm_substream_chip(substream); pcm_trigger() local
888 snd_echo_new_pcm(struct echoaudio * chip) snd_echo_new_pcm() argument
978 struct echoaudio *chip; snd_echo_output_gain_info() local
991 struct echoaudio *chip; snd_echo_output_gain_get() local
1003 struct echoaudio *chip; snd_echo_output_gain_put() local
1058 struct echoaudio *chip; snd_echo_input_gain_info() local
1071 struct echoaudio *chip; snd_echo_input_gain_get() local
1083 struct echoaudio *chip; snd_echo_input_gain_put() local
1126 struct echoaudio *chip; snd_echo_output_nominal_info() local
1139 struct echoaudio *chip; snd_echo_output_nominal_get() local
1151 struct echoaudio *chip; snd_echo_output_nominal_put() local
1187 struct echoaudio *chip; snd_echo_input_nominal_info() local
1200 struct echoaudio *chip; snd_echo_input_nominal_get() local
1213 struct echoaudio *chip; snd_echo_input_nominal_put() local
1262 struct echoaudio *chip = snd_kcontrol_chip(kcontrol); snd_echo_mixer_get() local
1276 struct echoaudio *chip; snd_echo_mixer_put() local
1328 struct echoaudio *chip; snd_echo_vmixer_get() local
1340 struct echoaudio *chip; snd_echo_vmixer_put() local
1384 struct echoaudio *chip; snd_echo_digital_mode_info() local
1393 struct echoaudio *chip; snd_echo_digital_mode_get() local
1409 struct echoaudio *chip; snd_echo_digital_mode_put() local
1474 struct echoaudio *chip; snd_echo_spdif_mode_get() local
1484 struct echoaudio *chip; snd_echo_spdif_mode_put() local
1519 struct echoaudio *chip; snd_echo_clock_source_info() local
1528 struct echoaudio *chip; snd_echo_clock_source_get() local
1544 struct echoaudio *chip; snd_echo_clock_source_put() local
1589 struct echoaudio *chip = snd_kcontrol_chip(kcontrol); snd_echo_phantom_power_get() local
1598 struct echoaudio *chip = snd_kcontrol_chip(kcontrol); snd_echo_phantom_power_put() local
1631 struct echoaudio *chip = snd_kcontrol_chip(kcontrol); snd_echo_automute_get() local
1640 struct echoaudio *chip = snd_kcontrol_chip(kcontrol); snd_echo_automute_put() local
1671 struct echoaudio *chip; snd_echo_vumeters_switch_put() local
1703 struct echoaudio *chip; snd_echo_vumeters_get() local
1737 struct echoaudio *chip; snd_echo_channels_info_get() local
1810 struct echoaudio *chip = dev_id; snd_echo_interrupt() local
1851 struct echoaudio *chip = card->private_data; snd_echo_free() local
1867 struct echoaudio *chip = card->private_data; snd_echo_create() local
1942 struct echoaudio *chip; __snd_echo_probe() local
2113 struct echoaudio *chip = dev_get_drvdata(dev); snd_echo_suspend() local
2140 struct echoaudio *chip = dev_get_drvdata(dev); snd_echo_resume() local
[all...]
/linux/sound/ppc/
H A Dpmac.c50 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) in snd_pmac_dbdma_alloc() argument
54 rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, in snd_pmac_dbdma_alloc()
66 static void snd_pmac_dbdma_free(struct snd_pmac *chip, struct pmac_dbdma *rec) in snd_pmac_dbdma_free() argument
71 dma_free_coherent(&chip->pdev->dev, rsize, rec->space, rec->dma_base); in snd_pmac_dbdma_free()
84 unsigned int snd_pmac_rate_index(struct snd_pmac *chip, struct pmac_stream *rec, unsigned int rate) in snd_pmac_rate_index() argument
89 if (rate > chip->freq_table[0]) in snd_pmac_rate_index()
92 for (i = 0; i < chip->num_freqs; i++, ok >>= 1) { in snd_pmac_rate_index()
95 if (rate >= chip->freq_table[i]) in snd_pmac_rate_index()
113 static struct pmac_stream *snd_pmac_get_stream(struct snd_pmac *chip, int stream) in snd_pmac_get_stream() argument
117 return &chip->playback; in snd_pmac_get_stream()
[all …]
/linux/drivers/mtd/nand/raw/
H A Dnand_legacy.c23 * nand_read_byte - [DEFAULT] read one byte from the chip
24 * @chip: NAND chip object
28 static uint8_t nand_read_byte(struct nand_chip *chip) in nand_read_byte() argument
30 return readb(chip->legacy.IO_ADDR_R); in nand_read_byte()
34 * nand_read_byte16 - [DEFAULT] read one byte endianness aware from the chip
35 * @chip: NAND chip object
40 static uint8_t nand_read_byte16(struct nand_chip *chip) in nand_read_byte16() argument
42 return (uint8_t) cpu_to_le16(readw(chip in nand_read_byte16()
52 nand_select_chip(struct nand_chip * chip,int chipnr) nand_select_chip() argument
74 nand_write_byte(struct nand_chip * chip,uint8_t byte) nand_write_byte() argument
86 nand_write_byte16(struct nand_chip * chip,uint8_t byte) nand_write_byte16() argument
117 nand_write_buf(struct nand_chip * chip,const uint8_t * buf,int len) nand_write_buf() argument
130 nand_read_buf(struct nand_chip * chip,uint8_t * buf,int len) nand_read_buf() argument
143 nand_write_buf16(struct nand_chip * chip,const uint8_t * buf,int len) nand_write_buf16() argument
159 nand_read_buf16(struct nand_chip * chip,uint8_t * buf,int len) nand_read_buf16() argument
174 panic_nand_wait_ready(struct nand_chip * chip,unsigned long timeo) panic_nand_wait_ready() argument
193 nand_wait_ready(struct nand_chip * chip) nand_wait_ready() argument
221 nand_wait_status_ready(struct nand_chip * chip,unsigned long timeo) nand_wait_status_ready() argument
250 nand_command(struct nand_chip * chip,unsigned int command,int column,int page_addr) nand_command() argument
356 nand_ccs_delay(struct nand_chip * chip) nand_ccs_delay() argument
389 nand_command_lp(struct nand_chip * chip,unsigned int command,int column,int page_addr) nand_command_lp() argument
520 nand_get_set_features_notsupp(struct nand_chip * chip,int addr,u8 * subfeature_param) nand_get_set_features_notsupp() argument
533 nand_wait(struct nand_chip * chip) nand_wait() argument
581 nand_legacy_set_defaults(struct nand_chip * chip) nand_legacy_set_defaults() argument
614 nand_legacy_adjust_cmdfunc(struct nand_chip * chip) nand_legacy_adjust_cmdfunc() argument
623 nand_legacy_check_hooks(struct nand_chip * chip) nand_legacy_check_hooks() argument
[all...]
/linux/tools/testing/selftests/gpio/
H A Dgpio-sim.sh128 $BASE_DIR/gpio-chip-info /dev/`configfs_chip_name $CHIP $BANK` num-lines || \
136 $BASE_DIR/gpio-chip-info /dev/`configfs_chip_name $CHIP $BANK` label || \
181 create_chip chip
182 create_bank chip bank
183 enable_chip chip
184 test -n `cat $CONFIGFS_DIR/chip/bank/chip_name` || fail "chip_name doesn't work"
185 disable_chip chip
186 remove_chip chip
189 create_chip chip
190 create_bank chip bank
[all …]
/linux/drivers/net/dsa/mv88e6xxx/
H A Dglobal2.c19 int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g2_read() argument
21 return mv88e6xxx_read(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_read()
24 int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g2_write() argument
26 return mv88e6xxx_write(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_write()
29 int mv88e6xxx_g2_wait_bit(struct mv88e6xxx_chip *chip, int reg, int in mv88e6xxx_g2_wait_bit() argument
32 return mv88e6xxx_wait_bit(chip, chip->info->global2_addr, reg, in mv88e6xxx_g2_wait_bit()
38 static int mv88e6xxx_g2_int_source(struct mv88e6xxx_chip *chip, u16 *src) in mv88e6xxx_g2_int_source() argument
41 return mv88e6xxx_g2_read(chip, MV88E6XXX_G2_INT_SRC, src); in mv88e6xxx_g2_int_source()
46 static int mv88e6xxx_g2_int_mask(struct mv88e6xxx_chip *chip, u16 mask) in mv88e6xxx_g2_int_mask() argument
48 return mv88e6xxx_g2_write(chip, MV88E6XXX_G2_INT_MASK, mask); in mv88e6xxx_g2_int_mask()
[all …]
H A Dphy.c16 int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_read() argument
19 return mv88e6xxx_read(chip, addr, reg, val); in mv88e6165_phy_read()
22 int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_write() argument
25 return mv88e6xxx_write(chip, addr, reg, val); in mv88e6165_phy_write()
28 int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy, int reg, u16 *val) in mv88e6xxx_phy_read() argument
33 bus = mv88e6xxx_default_mdio_bus(chip); in mv88e6xxx_phy_read()
37 if (!chip->info->ops->phy_read) in mv88e6xxx_phy_read()
40 return chip->info->ops->phy_read(chip, bus, addr, reg, val); in mv88e6xxx_phy_read()
43 int mv88e6xxx_phy_write(struct mv88e6xxx_chip *chip, int phy, int reg, u16 val) in mv88e6xxx_phy_write() argument
48 bus = mv88e6xxx_default_mdio_bus(chip); in mv88e6xxx_phy_write()
[all …]
H A Dglobal1.c16 int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g1_read() argument
18 int addr = chip->info->global1_addr; in mv88e6xxx_g1_read()
20 return mv88e6xxx_read(chip, addr, reg, val); in mv88e6xxx_g1_read()
23 int mv88e6xxx_g1_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g1_write() argument
25 int addr = chip->info->global1_addr; in mv88e6xxx_g1_write()
27 return mv88e6xxx_write(chip, addr, reg, val); in mv88e6xxx_g1_write()
30 int mv88e6xxx_g1_wait_bit(struct mv88e6xxx_chip *chip, int reg, int in mv88e6xxx_g1_wait_bit() argument
33 return mv88e6xxx_wait_bit(chip, chip->info->global1_addr, reg, in mv88e6xxx_g1_wait_bit()
37 int mv88e6xxx_g1_wait_mask(struct mv88e6xxx_chip *chip, int reg, in mv88e6xxx_g1_wait_mask() argument
40 return mv88e6xxx_wait_mask(chip, chip->info->global1_addr, reg, in mv88e6xxx_g1_wait_mask()
[all …]
/linux/sound/sh/
H A Dsh_dac_audio.c53 static void dac_audio_start_timer(struct snd_sh_dac *chip) in dac_audio_start_timer() argument
55 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in dac_audio_start_timer()
59 static void dac_audio_stop_timer(struct snd_sh_dac *chip) in dac_audio_stop_timer() argument
61 hrtimer_cancel(&chip->hrtimer); in dac_audio_stop_timer()
64 static void dac_audio_reset(struct snd_sh_dac *chip) in dac_audio_reset() argument
66 dac_audio_stop_timer(chip); in dac_audio_reset()
67 chip->buffer_begin = chip->buffer_end = chip in dac_audio_reset()
72 dac_audio_set_rate(struct snd_sh_dac * chip) dac_audio_set_rate() argument
100 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_open() local
117 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_close() local
129 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_prepare() local
140 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_trigger() local
164 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_copy() local
183 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_silence() local
199 struct snd_sh_dac *chip = snd_pcm_substream_chip(substream); snd_sh_dac_pcm_pointer() local
216 snd_sh_dac_pcm(struct snd_sh_dac * chip,int device) snd_sh_dac_pcm() argument
246 snd_sh_dac_free(struct snd_sh_dac * chip) snd_sh_dac_free() argument
257 struct snd_sh_dac *chip = device->device_data; snd_sh_dac_dev_free() local
264 struct snd_sh_dac *chip = container_of(handle, struct snd_sh_dac, sh_dac_audio_timer() local
300 struct snd_sh_dac *chip; snd_sh_dac_create() local
343 struct snd_sh_dac *chip; snd_sh_dac_probe() local
[all...]
/linux/drivers/input/misc/
H A Dmax8997_haptic.c56 static void max8997_haptic_set_internal_duty_cycle(struct max8997_haptic *chip) in max8997_haptic_set_internal_duty_cycle() argument
58 u8 duty_index = DIV_ROUND_UP(chip->level * 64, 100); in max8997_haptic_set_internal_duty_cycle()
60 switch (chip->internal_mode_pattern) { in max8997_haptic_set_internal_duty_cycle()
62 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle()
66 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle()
70 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle()
74 max8997_write_reg(chip->client, in max8997_haptic_set_internal_duty_cycle()
82 static void max8997_haptic_configure(struct max8997_haptic *chip) in max8997_haptic_configure() argument
86 value = chip->type << MAX8997_MOTOR_TYPE_SHIFT | in max8997_haptic_configure()
87 chip->enabled << MAX8997_ENABLE_SHIFT | in max8997_haptic_configure()
[all …]
/linux/sound/pcmcia/pdaudiocf/
H A Dpdaudiocf_core.c20 struct snd_pdacf *chip = private_data; in pdacf_ak4117_read() local
25 spin_lock_irqsave(&chip->ak4117_lock, flags); in pdacf_ak4117_read()
27 while (pdacf_reg_read(chip, PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) { in pdacf_ak4117_read()
30 spin_unlock_irqrestore(&chip->ak4117_lock, flags); in pdacf_ak4117_read()
31 dev_err(chip->card->dev, "AK4117 ready timeout (read)\n"); in pdacf_ak4117_read()
35 pdacf_reg_write(chip, PDAUDIOCF_REG_AK_IFR, (u16)reg << 8); in pdacf_ak4117_read()
37 while (pdacf_reg_read(chip, PDAUDIOCF_REG_SCR) & PDAUDIOCF_AK_SBP) { in pdacf_ak4117_read()
40 spin_unlock_irqrestore(&chip->ak4117_lock, flags); in pdacf_ak4117_read()
41 dev_err(chip->card->dev, "AK4117 read timeout (read2)\n"); in pdacf_ak4117_read()
45 res = (unsigned char)pdacf_reg_read(chip, PDAUDIOCF_REG_AK_IFR); in pdacf_ak4117_read()
[all …]
/linux/sound/pci/lx6464es/
H A Dlx_core.c55 static void __iomem *lx_dsp_register(struct lx6464es *chip, int port) in lx_dsp_register() argument
57 void __iomem *base_address = chip->port_dsp_bar; in lx_dsp_register()
61 unsigned long lx_dsp_reg_read(struct lx6464es *chip, int port) in lx_dsp_reg_read() argument
63 void __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_read()
67 static void lx_dsp_reg_readbuf(struct lx6464es *chip, int port, u32 *data, in lx_dsp_reg_readbuf() argument
70 u32 __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_readbuf()
79 void lx_dsp_reg_write(struct lx6464es *chip, int port, unsigned data) in lx_dsp_reg_write() argument
81 void __iomem *address = lx_dsp_register(chip, port); in lx_dsp_reg_write()
85 static void lx_dsp_reg_writebuf(struct lx6464es *chip, int port, in lx_dsp_reg_writebuf() argument
88 u32 __iomem *address = lx_dsp_register(chip, por in lx_dsp_reg_writebuf()
112 lx_plx_register(struct lx6464es * chip,int port) lx_plx_register() argument
118 lx_plx_reg_read(struct lx6464es * chip,int port) lx_plx_reg_read() argument
124 lx_plx_reg_write(struct lx6464es * chip,int port,u32 data) lx_plx_reg_write() argument
256 lx_message_send_atomic(struct lx6464es * chip,struct lx_rmh * rmh) lx_message_send_atomic() argument
317 lx_dsp_get_version(struct lx6464es * chip,u32 * rdsp_version) lx_dsp_get_version() argument
330 lx_dsp_get_clock_frequency(struct lx6464es * chip,u32 * rfreq) lx_dsp_get_clock_frequency() argument
360 lx_dsp_get_mac(struct lx6464es * chip) lx_dsp_get_mac() argument
379 lx_dsp_set_granularity(struct lx6464es * chip,u32 gran) lx_dsp_set_granularity() argument
389 lx_dsp_read_async_events(struct lx6464es * chip,u32 * data) lx_dsp_read_async_events() argument
412 lx_pipe_allocate(struct lx6464es * chip,u32 pipe,int is_capture,int channels) lx_pipe_allocate() argument
432 lx_pipe_release(struct lx6464es * chip,u32 pipe,int is_capture) lx_pipe_release() argument
444 lx_buffer_ask(struct lx6464es * chip,u32 pipe,int is_capture,u32 * r_needed,u32 * r_freed,u32 * size_array) lx_buffer_ask() argument
495 lx_pipe_stop(struct lx6464es * chip,u32 pipe,int is_capture) lx_pipe_stop() argument
507 lx_pipe_toggle_state(struct lx6464es * chip,u32 pipe,int is_capture) lx_pipe_toggle_state() argument
520 lx_pipe_start(struct lx6464es * chip,u32 pipe,int is_capture) lx_pipe_start() argument
533 lx_pipe_pause(struct lx6464es * chip,u32 pipe,int is_capture) lx_pipe_pause() argument
547 lx_pipe_sample_count(struct lx6464es * chip,u32 pipe,int is_capture,u64 * rsample_count) lx_pipe_sample_count() argument
573 lx_pipe_state(struct lx6464es * chip,u32 pipe,int is_capture,u16 * rstate) lx_pipe_state() argument
593 lx_pipe_wait_for_state(struct lx6464es * chip,u32 pipe,int is_capture,u16 state) lx_pipe_wait_for_state() argument
616 lx_pipe_wait_for_start(struct lx6464es * chip,u32 pipe,int is_capture) lx_pipe_wait_for_start() argument
621 lx_pipe_wait_for_idle(struct lx6464es * chip,u32 pipe,int is_capture) lx_pipe_wait_for_idle() argument
627 lx_stream_set_state(struct lx6464es * chip,u32 pipe,int is_capture,enum stream_state_t state) lx_stream_set_state() argument
641 lx_stream_set_format(struct lx6464es * chip,struct snd_pcm_runtime * runtime,u32 pipe,int is_capture) lx_stream_set_format() argument
665 lx_stream_state(struct lx6464es * chip,u32 pipe,int is_capture,int * rstate) lx_stream_state() argument
683 lx_stream_sample_position(struct lx6464es * chip,u32 pipe,int is_capture,u64 * r_bytepos) lx_stream_sample_position() argument
704 lx_buffer_give(struct lx6464es * chip,u32 pipe,int is_capture,u32 buffer_size,u32 buf_address_lo,u32 buf_address_hi,u32 * r_buffer_index) lx_buffer_give() argument
750 lx_buffer_free(struct lx6464es * chip,u32 pipe,int is_capture,u32 * r_buffer_size) lx_buffer_free() argument
771 lx_buffer_cancel(struct lx6464es * chip,u32 pipe,int is_capture,u32 buffer_index) lx_buffer_cancel() argument
791 lx_level_unmute(struct lx6464es * chip,int is_capture,int unmute) lx_level_unmute() argument
830 lx_level_peaks(struct lx6464es * chip,int is_capture,int channels,u32 * r_levels) lx_level_peaks() argument
870 lx_interrupt_test_ack(struct lx6464es * chip) lx_interrupt_test_ack() argument
890 lx_interrupt_ack(struct lx6464es * chip,u32 * r_irqsrc,int * r_async_pending,int * r_async_escmd) lx_interrupt_ack() argument
917 lx_interrupt_handle_async_events(struct lx6464es * chip,u32 irqsrc,int * r_freq_changed,u64 * r_notified_in_pipe_mask,u64 * r_notified_out_pipe_mask) lx_interrupt_handle_async_events() argument
965 lx_interrupt_request_new_buffer(struct lx6464es * chip,struct lx_stream * lx_stream) lx_interrupt_request_new_buffer() argument
1007 struct lx6464es *chip = dev_id; lx_interrupt() local
1055 struct lx6464es *chip = dev_id; lx_threaded_irq() local
1097 lx_irq_set(struct lx6464es * chip,int enable) lx_irq_set() argument
1113 lx_irq_enable(struct lx6464es * chip) lx_irq_enable() argument
1119 lx_irq_disable(struct lx6464es * chip) lx_irq_disable() argument
[all...]
H A Dlx6464es.c92 static int lx_set_granularity(struct lx6464es *chip, u32 gran);
95 static int lx_hardware_open(struct lx6464es *chip, in lx_hardware_open() argument
105 dev_dbg(chip->card->dev, "allocating pipe for %d channels\n", channels); in lx_hardware_open()
106 err = lx_pipe_allocate(chip, 0, is_capture, channels); in lx_hardware_open()
108 dev_err(chip->card->dev, LXP "allocating pipe failed\n"); in lx_hardware_open()
112 err = lx_set_granularity(chip, period_size); in lx_hardware_open()
114 dev_err(chip->card->dev, "setting granularity to %ld failed\n", in lx_hardware_open()
122 static int lx_hardware_start(struct lx6464es *chip, in lx_hardware_start() argument
129 dev_dbg(chip->card->dev, "setting stream format\n"); in lx_hardware_start()
130 err = lx_stream_set_format(chip, runtim in lx_hardware_start()
154 lx_hardware_stop(struct lx6464es * chip,struct snd_pcm_substream * substream) lx_hardware_stop() argument
185 lx_hardware_close(struct lx6464es * chip,struct snd_pcm_substream * substream) lx_hardware_close() argument
204 struct lx6464es *chip = snd_pcm_substream_chip(substream); lx_pcm_open() local
267 struct lx6464es *chip = snd_pcm_substream_chip(substream); lx_pcm_stream_pointer() local
285 struct lx6464es *chip = snd_pcm_substream_chip(substream); lx_pcm_prepare() local
337 struct lx6464es *chip = snd_pcm_substream_chip(substream); lx_pcm_hw_params() local
365 struct lx6464es *chip = snd_pcm_substream_chip(substream); lx_pcm_hw_free() local
398 lx_trigger_start(struct lx6464es * chip,struct lx_stream * lx_stream) lx_trigger_start() argument
444 lx_trigger_stop(struct lx6464es * chip,struct lx_stream * lx_stream) lx_trigger_stop() argument
458 lx_trigger_dispatch_stream(struct lx6464es * chip,struct lx_stream * lx_stream) lx_trigger_dispatch_stream() argument
475 lx_pcm_trigger_dispatch(struct lx6464es * chip,struct lx_stream * lx_stream,int cmd) lx_pcm_trigger_dispatch() argument
501 struct lx6464es *chip = snd_pcm_substream_chip(substream); lx_pcm_trigger() local
513 struct lx6464es *chip = card->private_data; snd_lx6464es_free() local
519 lx_init_xilinx_reset(struct lx6464es * chip) lx_init_xilinx_reset() argument
561 lx_init_xilinx_test(struct lx6464es * chip) lx_init_xilinx_test() argument
591 lx_init_ethersound_config(struct lx6464es * chip) lx_init_ethersound_config() argument
631 lx_init_get_version_features(struct lx6464es * chip) lx_init_get_version_features() argument
668 lx_set_granularity(struct lx6464es * chip,u32 gran) lx_set_granularity() argument
700 lx_init_dsp(struct lx6464es * chip) lx_init_dsp() argument
775 lx_pcm_create(struct lx6464es * chip) lx_pcm_create() argument
825 struct lx6464es *chip = snd_kcontrol_chip(kcontrol); lx_control_playback_get() local
833 struct lx6464es *chip = snd_kcontrol_chip(kcontrol); lx_control_playback_put() local
864 struct lx6464es *chip = entry->private_data; lx_proc_levels_read() local
892 lx_proc_create(struct snd_card * card,struct lx6464es * chip) lx_proc_create() argument
901 struct lx6464es *chip = card->private_data; snd_lx6464es_create() local
985 struct lx6464es *chip; snd_lx6464es_probe() local
[all...]
/linux/sound/pci/ymfpci/
H A Dymfpci_main.c32 static void snd_ymfpci_irq_wait(struct snd_ymfpci *chip);
34 static inline void snd_ymfpci_writeb(struct snd_ymfpci *chip, u32 offset, u8 val) in snd_ymfpci_writeb() argument
36 writeb(val, chip->reg_area_virt + offset); in snd_ymfpci_writeb()
39 static inline u16 snd_ymfpci_readw(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readw() argument
41 return readw(chip->reg_area_virt + offset); in snd_ymfpci_readw()
44 static inline void snd_ymfpci_writew(struct snd_ymfpci *chip, u32 offset, u16 val) in snd_ymfpci_writew() argument
46 writew(val, chip->reg_area_virt + offset); in snd_ymfpci_writew()
49 static inline u32 snd_ymfpci_readl(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readl() argument
51 return readl(chip->reg_area_virt + offset); in snd_ymfpci_readl()
54 static inline void snd_ymfpci_writel(struct snd_ymfpci *chip, u3 argument
59 snd_ymfpci_codec_ready(struct snd_ymfpci * chip,int secondary) snd_ymfpci_codec_ready() argument
78 struct snd_ymfpci *chip = ac97->private_data; snd_ymfpci_codec_write() local
88 struct snd_ymfpci *chip = ac97->private_data; snd_ymfpci_codec_read() local
160 snd_ymfpci_hw_start(struct snd_ymfpci * chip) snd_ymfpci_hw_start() argument
170 snd_ymfpci_hw_stop(struct snd_ymfpci * chip) snd_ymfpci_hw_stop() argument
193 voice_alloc(struct snd_ymfpci * chip,enum snd_ymfpci_voice_type type,int pair,struct snd_ymfpci_voice ** rvoice) voice_alloc() argument
231 snd_ymfpci_voice_alloc(struct snd_ymfpci * chip,enum snd_ymfpci_voice_type type,int pair,struct snd_ymfpci_voice ** rvoice) snd_ymfpci_voice_alloc() argument
253 snd_ymfpci_voice_free(struct snd_ymfpci * chip,struct snd_ymfpci_voice * pvoice) snd_ymfpci_voice_free() argument
273 snd_ymfpci_pcm_interrupt(struct snd_ymfpci * chip,struct snd_ymfpci_voice * voice) snd_ymfpci_pcm_interrupt() argument
331 struct snd_ymfpci *chip = ypcm->chip; snd_ymfpci_pcm_capture_interrupt() local
361 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_trigger() local
401 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_trigger() local
563 snd_ymfpci_ac3_init(struct snd_ymfpci * chip) snd_ymfpci_ac3_init() argument
584 snd_ymfpci_ac3_done(struct snd_ymfpci * chip) snd_ymfpci_ac3_done() argument
613 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_hw_free() local
636 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_prepare() local
660 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_hw_free() local
669 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_prepare() local
713 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_pointer() local
725 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_pointer() local
734 snd_ymfpci_irq_wait(struct snd_ymfpci * chip) snd_ymfpci_irq_wait() argument
752 struct snd_ymfpci *chip = dev_id; snd_ymfpci_interrupt() local
851 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_open_1() local
879 ymfpci_open_extension(struct snd_ymfpci * chip) ymfpci_open_extension() argument
892 ymfpci_close_extension(struct snd_ymfpci * chip) ymfpci_close_extension() argument
905 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_open() local
927 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_spdif_open() local
956 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_4ch_open() local
977 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_open() local
1024 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_close() local
1038 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_spdif_close() local
1055 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_playback_4ch_close() local
1068 struct snd_ymfpci *chip = snd_pcm_substream_chip(substream); snd_ymfpci_capture_close() local
1098 snd_ymfpci_pcm(struct snd_ymfpci * chip,int device) snd_ymfpci_pcm() argument
1132 snd_ymfpci_pcm2(struct snd_ymfpci * chip,int device) snd_ymfpci_pcm2() argument
1166 snd_ymfpci_pcm_spdif(struct snd_ymfpci * chip,int device) snd_ymfpci_pcm_spdif() argument
1207 snd_ymfpci_pcm_4ch(struct snd_ymfpci * chip,int device) snd_ymfpci_pcm_4ch() argument
1241 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_default_get() local
1253 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_default_put() local
1286 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_mask_get() local
1313 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_stream_get() local
1325 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_spdif_stream_put() local
1358 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_drec_source_get() local
1372 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_drec_source_put() local
1409 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_get_single() local
1427 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_put_single() local
1474 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_get_double() local
1490 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_put_double() local
1513 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_put_nativedacvol() local
1536 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_get_dup4ch() local
1543 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_put_dup4ch() local
1594 snd_ymfpci_get_gpio_out(struct snd_ymfpci * chip,int pin) snd_ymfpci_get_gpio_out() argument
1612 snd_ymfpci_set_gpio_out(struct snd_ymfpci * chip,int pin,int enable) snd_ymfpci_set_gpio_out() argument
1631 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_gpio_sw_get() local
1639 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_gpio_sw_put() local
1676 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_pcm_vol_get() local
1687 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); snd_ymfpci_pcm_vol_put() local
1729 struct snd_ymfpci *chip = bus->private_data; snd_ymfpci_mixer_free_ac97_bus() local
1735 struct snd_ymfpci *chip = ac97->private_data; snd_ymfpci_mixer_free_ac97() local
1739 snd_ymfpci_mixer(struct snd_ymfpci * chip,int rear_switch) snd_ymfpci_mixer() argument
1845 struct snd_ymfpci *chip; snd_ymfpci_timer_start() local
1868 struct snd_ymfpci *chip; snd_ymfpci_timer_stop() local
1893 snd_ymfpci_timer(struct snd_ymfpci * chip,int device) snd_ymfpci_timer() argument
1922 struct snd_ymfpci *chip = entry->private_data; snd_ymfpci_proc_read() local
1930 snd_ymfpci_proc_init(struct snd_card * card,struct snd_ymfpci * chip) snd_ymfpci_proc_init() argument
1957 snd_ymfpci_enable_dsp(struct snd_ymfpci * chip) snd_ymfpci_enable_dsp() argument
1962 snd_ymfpci_disable_dsp(struct snd_ymfpci * chip) snd_ymfpci_disable_dsp() argument
1977 snd_ymfpci_request_firmware(struct snd_ymfpci * chip) snd_ymfpci_request_firmware() argument
2016 snd_ymfpci_download_image(struct snd_ymfpci * chip) snd_ymfpci_download_image() argument
2049 snd_ymfpci_memalloc(struct snd_ymfpci * chip) snd_ymfpci_memalloc() argument
2152 struct snd_ymfpci *chip = card->private_data; snd_ymfpci_free() local
2181 struct snd_ymfpci *chip = card->private_data; snd_ymfpci_suspend() local
2209 struct snd_ymfpci *chip = card->private_data; snd_ymfpci_resume() local
2245 struct snd_ymfpci *chip = card->private_data; snd_ymfpci_create() local
[all...]
/linux/drivers/net/wireless/zydas/zd1211rw/
H A Dzd_chip.c22 void zd_chip_init(struct zd_chip *chip, in zd_chip_init() argument
26 memset(chip, 0, sizeof(*chip)); in zd_chip_init()
27 mutex_init(&chip->mutex); in zd_chip_init()
28 zd_usb_init(&chip->usb, hw, intf); in zd_chip_init()
29 zd_rf_init(&chip->rf); in zd_chip_init()
32 void zd_chip_clear(struct zd_chip *chip) in zd_chip_clear() argument
34 ZD_ASSERT(!mutex_is_locked(&chip->mutex)); in zd_chip_clear()
35 zd_usb_clear(&chip->usb); in zd_chip_clear()
36 zd_rf_clear(&chip->rf); in zd_chip_clear()
37 mutex_destroy(&chip->mutex); in zd_chip_clear()
[all …]
/linux/sound/pci/cs46xx/
H A Dcs46xx_lib.c58 static void amp_voyetra(struct snd_cs46xx *chip, int change);
74 static unsigned short snd_cs46xx_codec_read(struct snd_cs46xx *chip, in snd_cs46xx_codec_read() argument
86 chip->active_ctrl(chip, 1); in snd_cs46xx_codec_read()
100 snd_cs46xx_peekBA0(chip, BA0_ACSDA + offset); in snd_cs46xx_codec_read()
102 tmp = snd_cs46xx_peekBA0(chip, BA0_ACCTL); in snd_cs46xx_codec_read()
104 dev_warn(chip->card->dev, "ACCTL_VFRM not set 0x%x\n", tmp); in snd_cs46xx_codec_read()
105 snd_cs46xx_pokeBA0(chip, BA0_ACCTL, (tmp & (~ACCTL_ESYN)) | ACCTL_VFRM ); in snd_cs46xx_codec_read()
107 tmp = snd_cs46xx_peekBA0(chip, BA0_ACCTL + offset); in snd_cs46xx_codec_read()
108 snd_cs46xx_pokeBA0(chip, BA0_ACCT in snd_cs46xx_codec_read()
204 struct snd_cs46xx *chip = ac97->private_data; snd_cs46xx_ac97_read() local
218 snd_cs46xx_codec_write(struct snd_cs46xx * chip,unsigned short reg,unsigned short val,int codec_index) snd_cs46xx_codec_write() argument
289 struct snd_cs46xx *chip = ac97->private_data; snd_cs46xx_ac97_write() local
304 snd_cs46xx_download(struct snd_cs46xx * chip,u32 * src,unsigned long offset,unsigned long len) snd_cs46xx_download() argument
382 load_firmware(struct snd_cs46xx * chip,struct dsp_module_desc ** module_ret,const char * fw_name) load_firmware() argument
464 snd_cs46xx_clear_BA1(struct snd_cs46xx * chip,unsigned long offset,unsigned long len) snd_cs46xx_clear_BA1() argument
497 load_firmware(struct snd_cs46xx * chip) load_firmware() argument
524 snd_cs46xx_download_image(struct snd_cs46xx * chip) snd_cs46xx_download_image() argument
547 snd_cs46xx_reset(struct snd_cs46xx * chip) snd_cs46xx_reset() argument
576 cs46xx_wait_for_fifo(struct snd_cs46xx * chip,int retry_timeout) cs46xx_wait_for_fifo() argument
600 snd_cs46xx_clear_serial_FIFOs(struct snd_cs46xx * chip) snd_cs46xx_clear_serial_FIFOs() argument
656 snd_cs46xx_proc_start(struct snd_cs46xx * chip) snd_cs46xx_proc_start() argument
683 snd_cs46xx_proc_stop(struct snd_cs46xx * chip) snd_cs46xx_proc_stop() argument
698 snd_cs46xx_set_play_sample_rate(struct snd_cs46xx * chip,unsigned int rate) snd_cs46xx_set_play_sample_rate() argument
742 snd_cs46xx_set_capture_sample_rate(struct snd_cs46xx * chip,unsigned int rate) snd_cs46xx_set_capture_sample_rate() argument
869 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_cp_trans_copy() local
877 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_capture_transfer() local
884 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_playback_direct_pointer() local
902 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_playback_indirect_pointer() local
919 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_capture_direct_pointer() local
926 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_capture_indirect_pointer() local
934 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_playback_trigger() local
997 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_capture_trigger() local
1021 _cs46xx_adjust_sample_rate(struct snd_cs46xx * chip,struct snd_cs46xx_pcm * cpcm,int sample_rate) _cs46xx_adjust_sample_rate() argument
1066 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_playback_hw_params() local
1168 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_playback_prepare() local
1238 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_capture_hw_params() local
1264 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_capture_hw_free() local
1276 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_capture_prepare() local
1291 struct snd_cs46xx *chip = dev_id; snd_cs46xx_interrupt() local
1443 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); _cs46xx_playback_open_channel() local
1502 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_playback_open_iec958() local
1518 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_playback_close_iec958() local
1534 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_capture_open() local
1557 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_playback_close() local
1586 struct snd_cs46xx *chip = snd_pcm_substream_chip(substream); snd_cs46xx_capture_close() local
1709 snd_cs46xx_pcm(struct snd_cs46xx * chip,int device) snd_cs46xx_pcm() argument
1737 snd_cs46xx_pcm_rear(struct snd_cs46xx * chip,int device) snd_cs46xx_pcm_rear() argument
1762 snd_cs46xx_pcm_center_lfe(struct snd_cs46xx * chip,int device) snd_cs46xx_pcm_center_lfe() argument
1787 snd_cs46xx_pcm_iec958(struct snd_cs46xx * chip,int device) snd_cs46xx_pcm_iec958() argument
1818 struct snd_cs46xx *chip = ac97->private_data; snd_cs46xx_mixer_free_ac97() local
1844 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_vol_get() local
1854 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_vol_put() local
1872 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_vol_dac_get() local
1882 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_vol_dac_put() local
1928 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_iec958_get() local
1942 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_iec958_put() local
1979 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_adc_capture_get() local
1993 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_adc_capture_put() local
2010 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_pcm_capture_get() local
2025 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_pcm_capture_put() local
2043 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_herc_spdif_select_get() local
2061 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_herc_spdif_select_put() local
2093 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_spdif_default_get() local
2108 struct snd_cs46xx * chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_spdif_default_put() local
2143 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_spdif_stream_get() local
2158 struct snd_cs46xx * chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_spdif_stream_put() local
2282 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_front_dup_get() local
2292 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); snd_cs46xx_front_dup_put() local
2371 cs46xx_detect_codec(struct snd_cs46xx * chip,int codec) cs46xx_detect_codec() argument
2405 snd_cs46xx_mixer(struct snd_cs46xx * chip,int spdif_device) snd_cs46xx_mixer() argument
2479 snd_cs46xx_midi_reset(struct snd_cs46xx * chip) snd_cs46xx_midi_reset() argument
2488 struct snd_cs46xx *chip = substream->rmidi->private_data; snd_cs46xx_midi_input_open() local
2505 struct snd_cs46xx *chip = substream->rmidi->private_data; snd_cs46xx_midi_input_close() local
2523 struct snd_cs46xx *chip = substream->rmidi->private_data; snd_cs46xx_midi_output_open() local
2541 struct snd_cs46xx *chip = substream->rmidi->private_data; snd_cs46xx_midi_output_close() local
2559 struct snd_cs46xx *chip = substream->rmidi->private_data; snd_cs46xx_midi_input_trigger() local
2577 struct snd_cs46xx *chip = substream->rmidi->private_data; snd_cs46xx_midi_output_trigger() local
2617 snd_cs46xx_midi(struct snd_cs46xx * chip,int device) snd_cs46xx_midi() argument
2643 struct snd_cs46xx *chip = gameport_get_port_data(gameport); snd_cs46xx_gameport_trigger() local
2652 struct snd_cs46xx *chip = gameport_get_port_data(gameport); snd_cs46xx_gameport_read() local
2661 struct snd_cs46xx *chip = gameport_get_port_data(gameport); snd_cs46xx_gameport_cooked_read() local
2696 snd_cs46xx_gameport(struct snd_cs46xx * chip) snd_cs46xx_gameport() argument
2725 snd_cs46xx_remove_gameport(struct snd_cs46xx * chip) snd_cs46xx_remove_gameport() argument
2733 snd_cs46xx_gameport(struct snd_cs46xx * chip) snd_cs46xx_gameport() argument
2734 snd_cs46xx_remove_gameport(struct snd_cs46xx * chip) snd_cs46xx_remove_gameport() argument
2758 snd_cs46xx_proc_init(struct snd_card * card,struct snd_cs46xx * chip) snd_cs46xx_proc_init() argument
2779 snd_cs46xx_proc_done(struct snd_cs46xx * chip) snd_cs46xx_proc_done() argument
2787 snd_cs46xx_proc_init(card,chip) global() argument
2788 snd_cs46xx_proc_done(chip) global() argument
2794 snd_cs46xx_hw_stop(struct snd_cs46xx * chip) snd_cs46xx_hw_stop() argument
2843 struct snd_cs46xx *chip = card->private_data; snd_cs46xx_free() local
2878 snd_cs46xx_chip_init(struct snd_cs46xx * chip) snd_cs46xx_chip_init() argument
3115 cs46xx_enable_stream_irqs(struct snd_cs46xx * chip) cs46xx_enable_stream_irqs() argument
3131 snd_cs46xx_start_dsp(struct snd_cs46xx * chip) snd_cs46xx_start_dsp() argument
3214 amp_none(struct snd_cs46xx * chip,int change) amp_none() argument
3219 voyetra_setup_eapd_slot(struct snd_cs46xx * chip) voyetra_setup_eapd_slot() argument
3342 amp_voyetra(struct snd_cs46xx * chip,int change) amp_voyetra() argument
3378 hercules_init(struct snd_cs46xx * chip) hercules_init() argument
3389 amp_hercules(struct snd_cs46xx * chip,int change) amp_hercules() argument
3410 voyetra_mixer_init(struct snd_cs46xx * chip) voyetra_mixer_init() argument
3419 hercules_mixer_init(struct snd_cs46xx * chip) hercules_mixer_init() argument
3487 clkrun_hack(struct snd_cs46xx * chip,int change) clkrun_hack() argument
3512 clkrun_init(struct snd_cs46xx * chip) clkrun_init() argument
3671 struct snd_cs46xx *chip = card->private_data; snd_cs46xx_suspend() local
3699 struct snd_cs46xx *chip = card->private_data; snd_cs46xx_resume() local
3773 struct snd_cs46xx *chip = card->private_data; snd_cs46xx_create() local
[all...]
/linux/drivers/gpio/
H A Dgpio-ml-ioh.c92 struct ioh_gpio chip[8]; member
100 struct ioh_gpio *chip = gpiochip_get_data(gpio); in ioh_gpio_set() local
103 raw_spin_lock_irqsave(chip->spinlock, flags); in ioh_gpio_set()
104 reg_val = ioread32(&chip->reg->regs[chip->ch].po); in ioh_gpio_set()
110 iowrite32(reg_val, &chip->reg->regs[chip->ch].po); in ioh_gpio_set()
111 raw_spin_unlock_irqrestore(chip->spinlock, flags); in ioh_gpio_set()
118 struct ioh_gpio *chip = gpiochip_get_data(gpio); in ioh_gpio_get() local
120 return !!(ioread32(&chip in ioh_gpio_get()
126 struct ioh_gpio *chip = gpiochip_get_data(gpio); ioh_gpio_direction_output() local
151 struct ioh_gpio *chip = gpiochip_get_data(gpio); ioh_gpio_direction_input() local
168 ioh_gpio_save_reg_conf(struct ioh_gpio * chip) ioh_gpio_save_reg_conf() argument
194 ioh_gpio_restore_reg_conf(struct ioh_gpio * chip) ioh_gpio_restore_reg_conf() argument
219 struct ioh_gpio *chip = gpiochip_get_data(gpio); ioh_gpio_to_irq() local
223 ioh_gpio_setup(struct ioh_gpio * chip,int num_port) ioh_gpio_setup() argument
251 struct ioh_gpio *chip = gc->private; ioh_irq_type() local
312 struct ioh_gpio *chip = gc->private; ioh_irq_unmask() local
321 struct ioh_gpio *chip = gc->private; ioh_irq_mask() local
330 struct ioh_gpio *chip = gc->private; ioh_irq_disable() local
344 struct ioh_gpio *chip = gc->private; ioh_irq_enable() local
357 struct ioh_gpio *chip = dev_id; ioh_gpio_handler() local
379 ioh_gpio_alloc_generic_chip(struct ioh_gpio * chip,unsigned int irq_start,unsigned int num) ioh_gpio_alloc_generic_chip() argument
414 struct ioh_gpio *chip; ioh_gpio_probe() local
[all...]
H A Dgpio-pch.c105 struct pch_gpio *chip = gpiochip_get_data(gpio); in pch_gpio_set() local
108 raw_spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_set()
109 reg_val = ioread32(&chip->reg->po); in pch_gpio_set()
115 iowrite32(reg_val, &chip->reg->po); in pch_gpio_set()
116 raw_spin_unlock_irqrestore(&chip->spinlock, flags); in pch_gpio_set()
123 struct pch_gpio *chip = gpiochip_get_data(gpio); in pch_gpio_get() local
125 return !!(ioread32(&chip->reg->pi) & BIT(nr)); in pch_gpio_get()
131 struct pch_gpio *chip = gpiochip_get_data(gpio); in pch_gpio_direction_output() local
136 raw_spin_lock_irqsave(&chip->spinlock, flags); in pch_gpio_direction_output()
138 reg_val = ioread32(&chip in pch_gpio_direction_output()
157 struct pch_gpio *chip = gpiochip_get_data(gpio); pch_gpio_direction_input() local
174 pch_gpio_save_reg_conf(struct pch_gpio * chip) pch_gpio_save_reg_conf() argument
190 pch_gpio_restore_reg_conf(struct pch_gpio * chip) pch_gpio_restore_reg_conf() argument
207 struct pch_gpio *chip = gpiochip_get_data(gpio); pch_gpio_to_irq() local
212 pch_gpio_setup(struct pch_gpio * chip) pch_gpio_setup() argument
232 struct pch_gpio *chip = gc->private; pch_irq_type() local
287 struct pch_gpio *chip = gc->private; pch_irq_unmask() local
295 struct pch_gpio *chip = gc->private; pch_irq_mask() local
303 struct pch_gpio *chip = gc->private; pch_irq_ack() local
310 struct pch_gpio *chip = dev_id; pch_gpio_handler() local
324 pch_gpio_alloc_generic_chip(struct pch_gpio * chip,unsigned int irq_start,unsigned int num) pch_gpio_alloc_generic_chip() argument
357 struct pch_gpio *chip; pch_gpio_probe() local
407 struct pch_gpio *chip = dev_get_drvdata(dev); pch_gpio_suspend() local
419 struct pch_gpio *chip = dev_get_drvdata(dev); pch_gpio_resume() local
[all...]
/linux/sound/pci/
H A Des1968.c18 * A working Maestro setup contains the Maestro chip wired to a
434 /* chip type */
581 static void __maestro_write(struct es1968 *chip, u16 reg, u16 data)
583 outw(reg, chip->io_port + ESM_INDEX); in __maestro_read()
584 outw(data, chip->io_port + ESM_DATA); in __maestro_read()
585 chip->maestro_map[reg] = data; in __maestro_read()
588 static inline void maestro_write(struct es1968 *chip, u16 reg, u16 data) in __maestro_read()
590 guard(spinlock_irqsave)(&chip->reg_lock);
591 __maestro_write(chip, reg, data); in maestro_read() argument
595 static u16 __maestro_read(struct es1968 *chip, u1 in maestro_read()
568 __maestro_write(struct es1968 * chip,u16 reg,u16 data) __maestro_write() argument
575 maestro_write(struct es1968 * chip,u16 reg,u16 data) maestro_write() argument
582 __maestro_read(struct es1968 * chip,u16 reg) __maestro_read() argument
598 snd_es1968_ac97_wait(struct es1968 * chip) snd_es1968_ac97_wait() argument
611 snd_es1968_ac97_wait_poll(struct es1968 * chip) snd_es1968_ac97_wait_poll() argument
625 struct es1968 *chip = ac97->private_data; snd_es1968_ac97_write() local
639 struct es1968 *chip = ac97->private_data; snd_es1968_ac97_read() local
655 apu_index_set(struct es1968 * chip,u16 index) apu_index_set() argument
666 apu_data_set(struct es1968 * chip,u16 data) apu_data_set() argument
678 __apu_set_register(struct es1968 * chip,u16 channel,u8 reg,u16 data) __apu_set_register() argument
688 apu_set_register(struct es1968 * chip,u16 channel,u8 reg,u16 data) apu_set_register() argument
694 __apu_get_register(struct es1968 * chip,u16 channel,u8 reg) __apu_get_register() argument
703 apu_get_register(struct es1968 * chip,u16 channel,u8 reg) apu_get_register() argument
727 wave_set_register(struct es1968 * chip,u16 reg,u16 value) wave_set_register() argument
734 wave_get_register(struct es1968 * chip,u16 reg) wave_get_register() argument
745 snd_es1968_bob_stop(struct es1968 * chip) snd_es1968_bob_stop() argument
757 snd_es1968_bob_start(struct es1968 * chip) snd_es1968_bob_start() argument
797 snd_es1968_bob_inc(struct es1968 * chip,int freq) snd_es1968_bob_inc() argument
811 snd_es1968_bob_dec(struct es1968 * chip) snd_es1968_bob_dec() argument
833 snd_es1968_calc_bob_rate(struct es1968 * chip,struct esschan * es,struct snd_pcm_runtime * runtime) snd_es1968_calc_bob_rate() argument
855 snd_es1968_compute_rate(struct es1968 * chip,u32 freq) snd_es1968_compute_rate() argument
867 snd_es1968_get_dma_ptr(struct es1968 * chip,struct esschan * es) snd_es1968_get_dma_ptr() argument
878 snd_es1968_apu_set_freq(struct es1968 * chip,int apu,int freq) snd_es1968_apu_set_freq() argument
895 snd_es1968_pcm_start(struct es1968 * chip,struct esschan * es) snd_es1968_pcm_start() argument
914 snd_es1968_pcm_stop(struct es1968 * chip,struct esschan * es) snd_es1968_pcm_stop() argument
926 snd_es1968_program_wavecache(struct es1968 * chip,struct esschan * es,int channel,u32 addr,int capture) snd_es1968_program_wavecache() argument
945 snd_es1968_playback_setup(struct es1968 * chip,struct esschan * es,struct snd_pcm_runtime * runtime) snd_es1968_playback_setup() argument
1047 init_capture_apu(struct es1968 * chip,struct esschan * es,int channel,unsigned int pa,unsigned int bsize,int mode,int route) init_capture_apu() argument
1092 snd_es1968_capture_setup(struct es1968 * chip,struct esschan * es,struct snd_pcm_runtime * runtime) snd_es1968_capture_setup() argument
1161 struct es1968 *chip = snd_pcm_substream_chip(substream); snd_es1968_pcm_prepare() local
1193 struct es1968 *chip = snd_pcm_substream_chip(substream); snd_es1968_pcm_trigger() local
1222 struct es1968 *chip = snd_pcm_substream_chip(substream); snd_es1968_pcm_pointer() local
1280 calc_available_memory_size(struct es1968 * chip) calc_available_memory_size() argument
1296 snd_es1968_new_memory(struct es1968 * chip,int size) snd_es1968_new_memory() argument
1326 snd_es1968_free_memory(struct es1968 * chip,struct esm_memory * buf) snd_es1968_free_memory() argument
1351 snd_es1968_free_dmabuf(struct es1968 * chip) snd_es1968_free_dmabuf() argument
1366 snd_es1968_init_dmabuf(struct es1968 * chip) snd_es1968_init_dmabuf() argument
1409 struct es1968 *chip = snd_pcm_substream_chip(substream); snd_es1968_hw_params() local
1434 struct es1968 *chip = snd_pcm_substream_chip(substream); snd_es1968_hw_free() local
1452 snd_es1968_alloc_apu_pair(struct es1968 * chip,int type) snd_es1968_alloc_apu_pair() argument
1469 snd_es1968_free_apu_pair(struct es1968 * chip,int apu) snd_es1968_free_apu_pair() argument
1481 struct es1968 *chip = snd_pcm_substream_chip(substream); snd_es1968_playback_open() local
1519 struct es1968 *chip = snd_pcm_substream_chip(substream); snd_es1968_capture_open() local
1577 struct es1968 *chip = snd_pcm_substream_chip(substream); snd_es1968_playback_close() local
1594 struct es1968 *chip = snd_pcm_substream_chip(substream); snd_es1968_capture_close() local
1637 es1968_measure_clock(struct es1968 * chip) es1968_measure_clock() argument
1741 snd_es1968_pcm(struct es1968 * chip,int device) snd_es1968_pcm() argument
1780 snd_es1968_suppress_jitter(struct es1968 * chip,struct esschan * es) snd_es1968_suppress_jitter() argument
1797 snd_es1968_update_pcm(struct es1968 * chip,struct esschan * es) snd_es1968_update_pcm() argument
1828 struct es1968 *chip = container_of(work, struct es1968, hwvol_work); es1968_update_hw_volume() local
1908 struct es1968 *chip = dev_id; snd_es1968_interrupt() local
1954 snd_es1968_mixer(struct es1968 * chip) snd_es1968_mixer() argument
1990 snd_es1968_ac97_reset(struct es1968 * chip) snd_es1968_ac97_reset() argument
2095 snd_es1968_reset(struct es1968 * chip) snd_es1968_reset() argument
2108 snd_es1968_chip_init(struct es1968 * chip) snd_es1968_chip_init() argument
2299 snd_es1968_start_irq(struct es1968 * chip) snd_es1968_start_irq() argument
2315 struct es1968 *chip = card->private_data; es1968_suspend() local
2331 struct es1968 *chip = card->private_data; es1968_resume() local
2374 snd_es1968_create_gameport(struct es1968 * chip,int dev) snd_es1968_create_gameport() argument
2408 snd_es1968_free_gameport(struct es1968 * chip) snd_es1968_free_gameport() argument
2416 snd_es1968_create_gameport(struct es1968 * chip,int dev) snd_es1968_create_gameport() argument
2417 snd_es1968_free_gameport(struct es1968 * chip) snd_es1968_free_gameport() argument
2421 snd_es1968_input_register(struct es1968 * chip) snd_es1968_input_register() argument
2472 get_tea575x_gpio(chip) global() argument
2478 struct es1968 *chip = tea->private_data; snd_es1968_tea575x_set_pins() local
2491 struct es1968 *chip = tea->private_data; snd_es1968_tea575x_get_pins() local
2506 struct es1968 *chip = tea->private_data; snd_es1968_tea575x_set_direction() local
2533 struct es1968 *chip = card->private_data; snd_es1968_free() local
2579 struct es1968 *chip = card->private_data; snd_es1968_create() local
2687 struct es1968 *chip; __snd_es1968_probe() local
[all...]
/linux/sound/drivers/pcsp/
H A Dpcsp_lib.c45 static u64 pcsp_timer_update(struct snd_pcsp *chip) in pcsp_timer_update() argument
53 if (chip->thalf) { in pcsp_timer_update()
54 outb(chip->val61, 0x61); in pcsp_timer_update()
55 chip->thalf = 0; in pcsp_timer_update()
56 return chip->ns_rem; in pcsp_timer_update()
59 substream = chip->playback_substream; in pcsp_timer_update()
65 val = runtime->dma_area[chip->playback_ptr + chip->fmt_size - 1]; in pcsp_timer_update()
66 if (chip->is_signed) in pcsp_timer_update()
70 if (timer_cnt && chip->enable) { in pcsp_timer_update()
73 outb_p(chip->val61, 0x61); in pcsp_timer_update()
[all …]

12345678910>>...73