Home
last modified time | relevance | path

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

12345678910>>...123

/linux-6.15/drivers/char/tpm/
H A Dtpm-chip.c47 rc = chip->ops->request_locality(chip, 0); in tpm_request_locality()
62 rc = chip->ops->relinquish_locality(chip, chip->locality); in tpm_relinquish_locality()
74 return chip->ops->cmd_ready(chip); in tpm_cmd_ready()
82 return chip->ops->go_idle(chip); in tpm_go_idle()
88 chip->ops->clk_enable(chip, true); in tpm_clk_enable()
94 chip->ops->clk_enable(chip, false); in tpm_clk_disable()
335 chip = kzalloc(sizeof(*chip), GFP_KERNEL); in tpm_chip_alloc()
359 chip->dev.groups = chip->groups; in tpm_chip_alloc()
452 cdev_device_del(&chip->cdev, &chip->dev); in tpm_add_char_device()
458 cdev_device_del(&chip->cdev, &chip->dev); in tpm_del_char_device()
[all …]
/linux-6.15/sound/isa/wss/
H A Dwss_lib.c180 wss_outb(chip, CS4231P(REGSEL), chip->mce_bit | reg); in snd_wss_dout()
503 chip->trigger(chip, what, 1); in snd_wss_trigger()
507 chip->trigger(chip, what, 0); in snd_wss_trigger()
1497 err = chip->claim_dma(chip, chip->dma_private_data, chip->dma1); in snd_wss_playback_open()
1505 chip->release_dma(chip, chip->dma_private_data, chip->dma1); in snd_wss_playback_open()
1538 err = chip->claim_dma(chip, chip->dma_private_data, chip->dma2); in snd_wss_capture_open()
1546 chip->release_dma(chip, chip->dma_private_data, chip->dma2); in snd_wss_capture_open()
1603 chip->image[reg] = snd_wss_in(chip, reg); in snd_wss_suspend()
1625 snd_wss_out(chip, reg, chip->image[reg]); in snd_wss_resume()
1797 chip->dma2 = chip->dma1; in snd_wss_create()
[all …]
/linux-6.15/sound/pci/lola/
H A Dlola.c155 chip->res, chip->res_ex); in rirb_get_response()
160 chip->last_verb, chip->last_data, in rirb_get_response()
285 lola_pcm_update(chip, &chip->pcm[CAPT], notify_ins); in lola_interrupt()
286 lola_pcm_update(chip, &chip->pcm[PLAY], notify_outs); in lola_interrupt()
355 chip->corb.addr = chip->rb->addr; in setup_corb_rirb()
356 chip->corb.buf = (__le32 *)chip->rb->area; in setup_corb_rirb()
357 chip->rirb.addr = chip->rb->addr + 2048; in setup_corb_rirb()
358 chip->rirb.buf = (__le32 *)(chip->rb->area + 2048); in setup_corb_rirb()
404 chip->rirb.rp = chip->rirb.cmds = 0; in setup_corb_rirb()
421 lola_set_clock_index(chip, chip->clock.cur_index); in lola_reset_setups()
[all …]
/linux-6.15/sound/pci/oxygen/
H A Doxygen_lib.c50 chip->model.uart_input(chip); in oxygen_read_uart()
184 chip->model.gpio_changed(chip); in oxygen_gpio_changed()
230 chip->model.dump_registers(chip, buffer); in oxygen_proc_read()
364 chip->spdif_pcm_bits = chip->spdif_bits; in oxygen_init()
575 chip->model.cleanup(chip); in oxygen_card_free()
647 chip->model.init(chip); in __oxygen_pci_probe()
658 strcpy(card->driver, chip->model.chip); in __oxygen_pci_probe()
661 chip->model.longname, chip->addr, chip->irq); in __oxygen_pci_probe()
725 chip->model.suspend(chip); in oxygen_pci_suspend()
783 chip->model.resume(chip); in oxygen_pci_resume()
[all …]
/linux-6.15/sound/pci/echoaudio/
H A Dechoaudio_dsp.c458 if (write_dsp(chip, chip->comm_page_phys) < 0) { in load_dsp()
506 err = get_firmware(&fw, chip, chip->dsp_code_to_load); in load_firmware()
684 err = set_output_gain(chip, i, chip->output_gain[i]); in restore_dsp_rettings()
713 err = set_input_gain(chip, i, chip->input_gain[i]); in restore_dsp_rettings()
727 err = set_sample_rate(chip, chip->sample_rate); in restore_dsp_rettings()
738 if (set_digital_mode(chip, chip->digital_mode) < 0) in restore_dsp_rettings()
743 if (set_professional_spdif(chip, chip->professional_spdif) < 0) in restore_dsp_rettings()
748 if (set_phantom_power(chip, chip->phantom_power) < 0) in restore_dsp_rettings()
754 if (set_input_clock(chip, chip->input_clock) < 0) in restore_dsp_rettings()
759 if (set_output_clock(chip, chip->output_clock) < 0) in restore_dsp_rettings()
[all …]
H A Dmidi.c52 clear_handshake(chip); in enable_midi_input()
75 clear_handshake(chip); in write_midi()
193 chip->tinuse = 0; in snd_echo_midi_output_open()
194 chip->midi_full = 0; in snd_echo_midi_output_open()
203 struct echoaudio *chip = from_timer(chip, t, timer); in snd_echo_midi_output_write() local
212 chip->midi_full = 0; in snd_echo_midi_output_write()
237 if (!snd_rawmidi_transmit_empty(chip->midi_out) && chip->tinuse) { in snd_echo_midi_output_write()
261 chip->tinuse = 1; in snd_echo_midi_output_trigger()
264 if (chip->tinuse) { in snd_echo_midi_output_trigger()
265 chip->tinuse = 0; in snd_echo_midi_output_trigger()
[all …]
/linux-6.15/sound/ppc/
H A Dpmac.c144 out_le32(&chip->awacs->control, chip->control_mask | (chip->rate_index << 8)); in snd_pmac_pcm_set_format()
147 chip->set_format(chip); in snd_pmac_pcm_set_format()
771 chip->update_automute(chip, 1); in snd_pmac_ctrl_intr()
811 chip->mixer_free(chip); in snd_pmac_free()
817 free_irq(chip->irq, (void*)chip); in snd_pmac_free()
819 free_irq(chip->tx_irq, (void*)chip); in snd_pmac_free()
821 free_irq(chip->rx_irq, (void*)chip); in snd_pmac_free()
1083 chip->update_automute(chip, 1); in pmac_auto_mute_put()
1152 chip->irq = chip->tx_irq = chip->rx_irq = -1; in snd_pmac_new()
1328 chip->suspend(chip); in snd_pmac_suspend()
[all …]
/linux-6.15/drivers/mtd/nand/raw/
H A Dnand_legacy.c56 chip->legacy.cmd_ctrl(chip, NAND_CMD_NONE, in nand_select_chip()
76 chip->legacy.write_buf(chip, &byte, 1); in nand_write_byte()
180 if (chip->legacy.dev_ready(chip)) in panic_nand_wait_ready()
204 if (chip->legacy.dev_ready(chip)) in nand_wait_ready()
209 if (!chip->legacy.dev_ready(chip)) in nand_wait_ready()
285 chip->legacy.cmd_ctrl(chip, column, ctrl); in nand_command()
295 chip->legacy.cmd_ctrl(chip, NAND_CMD_NONE, in nand_command()
320 chip->legacy.cmd_ctrl(chip, NAND_CMD_NONE, in nand_command()
402 chip->legacy.cmd_ctrl(chip, command, in nand_command_lp()
430 chip->legacy.cmd_ctrl(chip, NAND_CMD_NONE, in nand_command_lp()
[all …]
/linux-6.15/drivers/usb/typec/tcpm/
H A Dfusb302.c142 if (!chip->logbuffer[chip->logbuffer_head]) { in _fusb302_log()
143 chip->logbuffer[chip->logbuffer_head] = in _fusb302_log()
145 if (!chip->logbuffer[chip->logbuffer_head]) in _fusb302_log()
165 if (!chip->logbuffer[chip->logbuffer_head]) { in _fusb302_log()
172 scnprintf(chip->logbuffer[chip->logbuffer_head], in _fusb302_log()
1090 mod_delayed_work(chip->wq, &chip->bc_lvl_handler, in fusb302_bc_lvl_handler_work()
1215 if ((chip->cc1 != cc1) || (chip->cc2 != cc2)) { in fusb302_handle_togdone_snk()
1359 if ((chip->cc1 != cc1) || (chip->cc2 != cc2)) { in fusb302_handle_togdone_src()
1405 fusb302_set_toggling(chip, chip->toggling_mode); in fusb302_handle_togdone()
1410 fusb302_set_toggling(chip, chip->toggling_mode); in fusb302_handle_togdone()
[all …]
/linux-6.15/sound/isa/sb/
H A Dsb16_main.c252 dma = (chip->mode & SB_MODE_PLAYBACK_8) ? chip->dma8 : chip->dma16; in snd_sb16_playback_prepare()
321 dma = (chip->mode & SB_MODE_CAPTURE_8) ? chip->dma8 : chip->dma16; in snd_sb16_capture_prepare()
384 chip->rmidi_callback(irq, chip->rmidi->private_data); in snd_sb16dsp_interrupt()
432 dma = (chip->mode & SB_MODE_PLAYBACK_8) ? chip->dma8 : chip->dma16; in snd_sb16_playback_pointer()
443 dma = (chip->mode & SB_MODE_CAPTURE_8) ? chip->dma8 : chip->dma16; in snd_sb16_capture_pointer()
523 if (chip->dma8 >= 0 && !(chip->mode & SB_MODE_CAPTURE_8)) { in snd_sb16_playback_open()
648 if (chip->dma8 < 0 || chip->dma16 < 0) { in snd_sb16_set_dma_mode()
667 if (chip->dma8 < 0 || chip->dma16 < 0) in snd_sb16_get_dma_mode()
771 if (chip->dma16 >= 0 && chip->dma16 != chip->dma8) { in snd_sb16dsp_configure()
811 chip->port); in snd_sb16dsp_configure()
[all …]
H A Dsb8_midi.c28 if (!chip) in snd_sb8dsp_midi_interrupt()
31 rmidi = chip->rmidi; in snd_sb8dsp_midi_interrupt()
53 struct snd_sb *chip; in snd_sb8dsp_midi_input_open() local
80 struct snd_sb *chip; in snd_sb8dsp_midi_output_open() local
107 struct snd_sb *chip; in snd_sb8dsp_midi_input_close() local
125 struct snd_sb *chip; in snd_sb8dsp_midi_output_close() local
144 struct snd_sb *chip; in snd_sb8dsp_midi_input_trigger() local
167 struct snd_sb *chip; in snd_sb8dsp_midi_output_write() local
202 struct snd_sb *chip = from_timer(chip, t, midi_timer); in snd_sb8dsp_midi_output_timer() local
215 struct snd_sb *chip; in snd_sb8dsp_midi_output_trigger() local
[all …]
/linux-6.15/sound/drivers/vx/
H A Dvx_core.c485 err = vx_send_msg_nolock(chip, &chip->irq_rmh); in vx_test_irq_src()
564 chip->audio_source_target = chip->audio_source; in vx_reset_board()
572 chip->ops->reset_board(chip, cold_reset); in vx_reset_board()
576 vx_set_internal_clock(chip, chip->freq); in vx_reset_board()
588 vx_set_iec958_status(chip, chip->uer_bits); in vx_reset_board()
635 chip->ibl.min_size, chip->ibl.max_size, chip->ibl.size, in vx_proc_read()
749 err = chip->ops->load_dsp(chip, i, chip->firmware[i]); in snd_vx_resume()
798 if (!chip) in snd_vx_create()
801 chip->irq = -1; in snd_vx_create()
802 chip->hw = hw; in snd_vx_create()
[all …]
/linux-6.15/tools/testing/selftests/gpio/
H A Dgpio-sim.sh181 create_chip chip
183 enable_chip chip
186 remove_chip chip
189 create_chip chip
193 remove_chip chip
196 create_chip chip
198 enable_chip chip
201 remove_chip chip
206 create_chip chip
208 enable_chip chip
[all …]
/linux-6.15/drivers/input/misc/
H A Dmax8997_haptic.c61 unsigned int duty = chip->pwm_period * chip->level / 100; in max8997_haptic_set_duty_cycle()
62 ret = pwm_config(chip->pwm, duty, chip->pwm_period); in max8997_haptic_set_duty_cycle()
98 chip->mode << MAX8997_MODE_SHIFT | chip->pwm_divisor; in max8997_haptic_configure()
101 if (chip->mode == MAX8997_INTERNAL_MODE && chip->enabled) { in max8997_haptic_configure()
164 if (!chip->enabled) { in max8997_haptic_enable()
187 if (chip->enabled) { in max8997_haptic_disable()
201 if (chip->level) in max8997_haptic_play_effect_work()
213 if (!chip->level) in max8997_haptic_play_effect()
247 chip = kzalloc(sizeof(*chip), GFP_KERNEL); in max8997_haptic_probe()
344 kfree(chip); in max8997_haptic_probe()
[all …]
/linux-6.15/drivers/misc/
H A Dapds990x.c294 chip->rcf.afactor * chip->lux_ir) in apds990x_lux_to_threshold()
383 if (chip->lux_clear == chip->a_max_result) in apds990x_calc_again()
399 if (chip->lux_clear == chip->a_max_result) in apds990x_calc_again()
490 chip->again_meas = chip->again_next; in apds990x_irq()
492 chip->lux_raw = apds990x_get_lux(chip, in apds990x_irq()
498 chip->lux = chip->lux_raw; in apds990x_irq()
524 if (chip->prox_data < chip->prox_thres) in apds990x_irq()
1085 chip->cf = chip->pdata->cf; in apds990x_probe()
1091 (chip->cf.cf1 - chip->cf.cf2); in apds990x_probe()
1107 chip->pdrive = chip->pdata->pdrive; in apds990x_probe()
[all …]
/linux-6.15/sound/sh/
H A Dsh_dac_audio.c55 hrtimer_start(&chip->hrtimer, chip->wakeups_per_second, in dac_audio_start_timer()
67 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in dac_audio_reset()
74 chip->wakeups_per_second = 1000000000 / chip->rate; in dac_audio_set_rate()
106 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in snd_sh_dac_pcm_open()
110 chip->pdata->start(chip->pdata); in snd_sh_dac_pcm_open()
122 chip->pdata->stop(chip->pdata); in snd_sh_dac_pcm_close()
147 chip->buffer_begin = chip->buffer_end = chip->data_buffer; in snd_sh_dac_pcm_trigger()
279 if (chip->buffer_begin == (chip->data_buffer + in sh_dac_audio_timer()
281 chip->buffer_begin = chip->data_buffer; in sh_dac_audio_timer()
283 if (chip->buffer_begin == chip->buffer_end) in sh_dac_audio_timer()
[all …]
/linux-6.15/sound/sparc/
H A Dcs4231.c299 __cs4231_writeb(chip, chip->mce_bit | reg, CS4231U(chip, REGSEL)); in snd_cs4231_dout()
332 __cs4231_writeb(chip, chip->mce_bit | reg, CS4231U(chip, REGSEL)); in snd_cs4231_in()
347 __cs4231_readb(chip, CS4231U(chip, REGSEL)); in snd_cs4231_busy_wait()
1053 __cs4231_readb(chip, CS4231U(chip, STATUS)); in snd_cs4231_probe()
1530 if (snd_BUG_ON(!chip || !chip->pcm)) in snd_cs4231_mixer()
1599 dev_set_drvdata(&chip->op->dev, chip); in cs4231_attach_finish()
1763 free_irq(chip->irq[0], chip); in snd_cs4231_sbus_free()
1807 chip->c_dma.sbus_info.regs = chip->port; in snd_cs4231_sbus_create()
1808 chip->p_dma.sbus_info.regs = chip->port; in snd_cs4231_sbus_create()
1970 chip->c_dma.ebus_info.client_cookie = chip; in snd_cs4231_ebus_create()
[all …]
/linux-6.15/drivers/net/dsa/mv88e6xxx/
H A Dglobal2.c21 return mv88e6xxx_read(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_read()
26 return mv88e6xxx_write(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_write()
32 return mv88e6xxx_wait_bit(chip, chip->info->global2_addr, reg, in mv88e6xxx_g2_wait_bit()
926 chip->info->ops->reset(chip); in mv88e6390_watchdog_action()
983 chip->info->ops->watchdog_ops->irq_free(chip); in mv88e6xxx_g2_watchdog_free()
986 free_irq(chip->watchdog_irq, chip); in mv88e6xxx_g2_watchdog_free()
1005 chip->watchdog_irq_name, chip); in mv88e6xxx_g2_watchdog_setup()
1011 err = chip->info->ops->watchdog_ops->irq_setup(chip); in mv88e6xxx_g2_watchdog_setup()
1135 free_irq(chip->device_irq, chip); in mv88e6xxx_g2_irq_free()
1165 chip->g2_irq.chip = mv88e6xxx_g2_irq_chip; in mv88e6xxx_g2_irq_setup()
[all …]
H A Dphy.c40 return chip->info->ops->phy_read(chip, bus, addr, reg, val); in mv88e6xxx_phy_read()
55 return chip->info->ops->phy_write(chip, bus, addr, reg, val); in mv88e6xxx_phy_write()
71 return chip->info->ops->phy_read_c45(chip, bus, addr, devad, reg, val); in mv88e6xxx_phy_read_c45()
87 return chip->info->ops->phy_write_c45(chip, bus, addr, devad, reg, val); in mv88e6xxx_phy_write_c45()
105 dev_err(chip->dev, in mv88e6xxx_phy_page_put()
155 return chip->info->ops->ppu_disable(chip); in mv88e6xxx_phy_ppu_disable()
163 return chip->info->ops->ppu_enable(chip); in mv88e6xxx_phy_ppu_enable()
185 struct mv88e6xxx_chip *chip = from_timer(chip, t, ppu_timer); in mv88e6xxx_phy_ppu_reenable_timer() local
207 chip->ppu_disabled = 1; in mv88e6xxx_phy_ppu_access_get()
268 if (chip->info->ops->ppu_enable && chip->info->ops->ppu_disable) in mv88e6xxx_phy_init()
[all …]
/linux-6.15/sound/pcmcia/pdaudiocf/
H A Dpdaudiocf_core.c73 dev_dbg(chip->card->dev, "PDAUDIOCF DUMP (0x%lx):\n", chip->port);
116 pdacf_reset(chip, 0); in pdacf_reinit()
118 pdacf_reg_write(chip, PDAUDIOCF_REG_SCR, chip->suspend_reg_scr); in pdacf_reinit()
138 snd_card_ro_proc_new(chip->card, "pdaudiocf", chip, pdacf_proc_read); in pdacf_proc_init()
145 chip = kzalloc(sizeof(*chip), GFP_KERNEL); in snd_pdacf_create()
146 if (chip == NULL) in snd_pdacf_create()
148 chip->card = card; in snd_pdacf_create()
154 return chip; in snd_pdacf_create()
193 …err = snd_ak4117_create(chip->card, pdacf_ak4117_read, pdacf_ak4117_write, pgm, chip, &chip->ak411… in snd_pdacf_ak4117_create()
221 chip->ak4117->change_callback_private = chip; in snd_pdacf_ak4117_create()
[all …]
/linux-6.15/sound/pci/ymfpci/
H A Dymfpci_main.c95 if (chip->device_id == PCI_DEVICE_ID_YAMAHA_744 && chip->rev < 2) { in snd_ymfpci_codec_read()
344 struct snd_ymfpci *chip = ypcm->chip; in snd_ymfpci_pcm_capture_interrupt() local
813 snd_timer_interrupt(chip->timer, chip->timer_ticks); in snd_ymfpci_interrupt()
892 ypcm->chip = chip; in snd_ymfpci_playback_open_1()
966 chip->spdif_pcm_bits = chip->spdif_bits; in snd_ymfpci_playback_spdif_open()
1020 ypcm->chip = chip; in snd_ymfpci_capture_open()
1792 err = snd_ac97_bus(chip->card, 0, &ops, chip, &chip->ac97_bus); in snd_ymfpci_mixer()
1801 err = snd_ac97_mixer(chip->ac97_bus, &ac97, &chip->ac97); in snd_ymfpci_mixer()
2114 chip->work_ptr = snd_devm_alloc_pages(&chip->pci->dev, in snd_ymfpci_memalloc()
2164 chip->work_ptr->area + chip->work_ptr->bytes); in snd_ymfpci_memalloc()
[all …]
/linux-6.15/sound/isa/es1688/
H A Des1688_lib.c45 ES1688P(chip, DATA_AVAIL), inb(ES1688P(chip, DATA_AVAIL))); in snd_es1688_dsp_get_byte()
98 chip->port); in snd_es1688_reset()
131 chip->port, inb(ES1688P(chip, READ))); in snd_es1688_probe()
161 chip->port); in snd_es1688_probe()
168 chip->port, chip->version); in snd_es1688_probe()
193 if (enable && chip->mpu_port >= 0x300 && chip->mpu_irq > 0 && chip->hardware != ES1688_HW_688) { in snd_es1688_init()
231 chip->port, chip->irq); in snd_es1688_init()
333 snd_dma_pointer(chip->dma8, chip->dma_size)); in snd_es1688_trigger()
478 ptr = snd_dma_pointer(chip->dma8, chip->dma_size); in snd_es1688_playback_pointer()
489 ptr = snd_dma_pointer(chip->dma8, chip->dma_size); in snd_es1688_capture_pointer()
[all …]
/linux-6.15/drivers/power/supply/
H A Dug3105_battery.c114 if (chip->supplied && chip->ocv_avg > full) in ug3105_get_status()
196 chip->volt = val * chip->uv_per_unit; in ug3105_work()
201 chip->curr = (s16)val * chip->ua_per_unit; in ug3105_work()
203 chip->ocv[chip->ocv_avg_index] = in ug3105_work()
204 chip->volt - chip->curr * chip->intern_res_avg / 1000; in ug3105_work()
229 chip->ocv_avg += chip->ocv[i]; in ug3105_work()
233 chip->status = ug3105_get_status(chip); in ug3105_work()
234 chip->capacity = ug3105_get_capacity(chip); in ug3105_work()
266 chip->intern_res[chip->intern_res_avg_index] = res; in ug3105_work()
273 chip->intern_res_avg += chip->intern_res[i]; in ug3105_work()
[all …]
/linux-6.15/sound/pci/nm256/
H A Dnm256.c458 chip->irq = chip->pci->irq; in snd_nm256_acquire_irq()
459 chip->card->sync_irq = chip->irq; in snd_nm256_acquire_irq()
472 if (chip->irq_acks == 0 && chip->irq >= 0) { in snd_nm256_release_irq()
473 free_irq(chip->irq, chip); in snd_nm256_release_irq()
915 s->bufptr = chip->buffer + (s->buf - chip->buffer_start); in snd_nm256_pcm()
919 err = snd_pcm_new(chip->card, chip->card->driver, device, in snd_nm256_pcm()
1288 chip->ac97_regs = devm_kcalloc(chip->card->dev, in snd_nm256_mixer()
1511 chip->buffer_start = chip->buffer_end - chip->buffer_size; in snd_nm256_create()
1512 chip->buffer_addr += chip->buffer_start; in snd_nm256_create()
1515 chip->buffer_start, chip->buffer_end); in snd_nm256_create()
[all …]
/linux-6.15/sound/pci/lx6464es/
H A Dlx_core.c324 ret = lx_message_send_atomic(chip, &chip->rmh); in lx_dsp_get_version()
341 ret = lx_message_send_atomic(chip, &chip->rmh); in lx_dsp_get_clock_frequency()
391 ret = lx_message_send_atomic(chip, &chip->rmh); in lx_dsp_set_granularity()
405 ret = lx_message_send_atomic(chip, &chip->rmh); in lx_dsp_read_async_events()
432 err = lx_message_send_atomic(chip, &chip->rmh); in lx_pipe_allocate()
451 err = lx_message_send_atomic(chip, &chip->rmh); in lx_pipe_release()
476 err = lx_message_send_atomic(chip, &chip->rmh); in lx_buffer_ask()
519 err = lx_message_send_atomic(chip, &chip->rmh); in lx_pipe_stop()
535 err = lx_message_send_atomic(chip, &chip->rmh); in lx_pipe_toggle_state()
606 err = lx_message_send_atomic(chip, &chip->rmh); in lx_pipe_state()
[all …]

12345678910>>...123