Home
last modified time | relevance | path

Searched refs:chip (Results 176 - 200 of 3369) sorted by relevance

12345678910>>...135

/kernel/linux/linux-5.10/drivers/gpio/
H A Dgpio-eic-sprd.c53 * The digital-chip EIC controller can support maximum 3 banks, and each bank
66 * The Spreadtrum digital-chip EIC controller contains 4 sub-modules:
93 struct gpio_chip chip; member
140 static void sprd_eic_update(struct gpio_chip *chip, unsigned int offset, in sprd_eic_update() argument
143 struct sprd_eic *sprd_eic = gpiochip_get_data(chip); in sprd_eic_update()
161 static int sprd_eic_read(struct gpio_chip *chip, unsigned int offset, u16 reg) in sprd_eic_read() argument
163 struct sprd_eic *sprd_eic = gpiochip_get_data(chip); in sprd_eic_read()
170 static int sprd_eic_request(struct gpio_chip *chip, unsigned int offset) in sprd_eic_request() argument
172 sprd_eic_update(chip, offset, SPRD_EIC_DBNC_DMSK, 1); in sprd_eic_request()
176 static void sprd_eic_free(struct gpio_chip *chip, unsigne argument
181 sprd_eic_get(struct gpio_chip *chip, unsigned int offset) sprd_eic_get() argument
197 sprd_eic_direction_input(struct gpio_chip *chip, unsigned int offset) sprd_eic_direction_input() argument
203 sprd_eic_set(struct gpio_chip *chip, unsigned int offset, int value) sprd_eic_set() argument
208 sprd_eic_set_debounce(struct gpio_chip *chip, unsigned int offset, unsigned int debounce) sprd_eic_set_debounce() argument
223 sprd_eic_set_config(struct gpio_chip *chip, unsigned int offset, unsigned long config) sprd_eic_set_config() argument
237 struct gpio_chip *chip = irq_data_get_irq_chip_data(data); sprd_eic_irq_mask() local
262 struct gpio_chip *chip = irq_data_get_irq_chip_data(data); sprd_eic_irq_unmask() local
287 struct gpio_chip *chip = irq_data_get_irq_chip_data(data); sprd_eic_irq_ack() local
311 struct gpio_chip *chip = irq_data_get_irq_chip_data(data); sprd_eic_irq_set_type() local
469 sprd_eic_toggle_trigger(struct gpio_chip *chip, unsigned int irq, unsigned int offset) sprd_eic_toggle_trigger() argument
518 sprd_eic_match_chip_by_type(struct gpio_chip *chip, void *data) sprd_eic_match_chip_by_type() argument
525 sprd_eic_handle_one_type(struct gpio_chip *chip) sprd_eic_handle_one_type() argument
570 struct gpio_chip *chip; sprd_eic_irq_handler() local
[all...]
H A Dgpio-max732x.c158 static int max732x_writeb(struct max732x_chip *chip, int group_a, uint8_t val) in max732x_writeb() argument
163 client = group_a ? chip->client_group_a : chip->client_group_b; in max732x_writeb()
173 static int max732x_readb(struct max732x_chip *chip, int group_a, uint8_t *val) in max732x_readb() argument
178 client = group_a ? chip->client_group_a : chip->client_group_b; in max732x_readb()
189 static inline int is_group_a(struct max732x_chip *chip, unsigned off) in is_group_a() argument
191 return (1u << off) & chip->mask_group_a; in is_group_a()
196 struct max732x_chip *chip = gpiochip_get_data(gc); in max732x_gpio_get_value() local
200 ret = max732x_readb(chip, is_group_ in max732x_gpio_get_value()
210 struct max732x_chip *chip = gpiochip_get_data(gc); max732x_gpio_set_mask() local
254 struct max732x_chip *chip = gpiochip_get_data(gc); max732x_gpio_direction_input() local
276 struct max732x_chip *chip = gpiochip_get_data(gc); max732x_gpio_direction_output() local
290 max732x_writew(struct max732x_chip *chip, uint16_t val) max732x_writew() argument
305 max732x_readw(struct max732x_chip *chip, uint16_t *val) max732x_readw() argument
319 max732x_irq_update_mask(struct max732x_chip *chip) max732x_irq_update_mask() argument
351 struct max732x_chip *chip = gpiochip_get_data(gc); max732x_irq_mask() local
359 struct max732x_chip *chip = gpiochip_get_data(gc); max732x_irq_unmask() local
367 struct max732x_chip *chip = gpiochip_get_data(gc); max732x_irq_bus_lock() local
376 struct max732x_chip *chip = gpiochip_get_data(gc); max732x_irq_bus_sync_unlock() local
395 struct max732x_chip *chip = gpiochip_get_data(gc); max732x_irq_set_type() local
426 struct max732x_chip *chip = irq_data_get_irq_chip_data(data); max732x_irq_set_wake() local
442 max732x_irq_pending(struct max732x_chip *chip) max732x_irq_pending() argument
475 struct max732x_chip *chip = devid; max732x_irq_handler() local
495 max732x_irq_setup(struct max732x_chip *chip, const struct i2c_device_id *id) max732x_irq_setup() argument
539 max732x_irq_setup(struct max732x_chip *chip, const struct i2c_device_id *id) max732x_irq_setup() argument
553 max732x_setup_gpio(struct max732x_chip *chip, const struct i2c_device_id *id, unsigned gpio_start) max732x_setup_gpio() argument
621 struct max732x_chip *chip; max732x_probe() local
720 struct max732x_chip *chip = i2c_get_clientdata(client); max732x_remove() local
[all...]
/kernel/linux/linux-6.6/drivers/gpio/
H A Dgpio-eic-sprd.c53 * The digital-chip EIC controller can support maximum 3 banks, and each bank
66 * The Spreadtrum digital-chip EIC controller contains 4 sub-modules:
93 struct gpio_chip chip; member
139 static void sprd_eic_update(struct gpio_chip *chip, unsigned int offset, in sprd_eic_update() argument
142 struct sprd_eic *sprd_eic = gpiochip_get_data(chip); in sprd_eic_update()
160 static int sprd_eic_read(struct gpio_chip *chip, unsigned int offset, u16 reg) in sprd_eic_read() argument
162 struct sprd_eic *sprd_eic = gpiochip_get_data(chip); in sprd_eic_read()
169 static int sprd_eic_request(struct gpio_chip *chip, unsigned int offset) in sprd_eic_request() argument
171 sprd_eic_update(chip, offset, SPRD_EIC_DBNC_DMSK, 1); in sprd_eic_request()
175 static void sprd_eic_free(struct gpio_chip *chip, unsigne argument
180 sprd_eic_get(struct gpio_chip *chip, unsigned int offset) sprd_eic_get() argument
196 sprd_eic_direction_input(struct gpio_chip *chip, unsigned int offset) sprd_eic_direction_input() argument
202 sprd_eic_set(struct gpio_chip *chip, unsigned int offset, int value) sprd_eic_set() argument
207 sprd_eic_set_debounce(struct gpio_chip *chip, unsigned int offset, unsigned int debounce) sprd_eic_set_debounce() argument
222 sprd_eic_set_config(struct gpio_chip *chip, unsigned int offset, unsigned long config) sprd_eic_set_config() argument
236 struct gpio_chip *chip = irq_data_get_irq_chip_data(data); sprd_eic_irq_mask() local
263 struct gpio_chip *chip = irq_data_get_irq_chip_data(data); sprd_eic_irq_unmask() local
290 struct gpio_chip *chip = irq_data_get_irq_chip_data(data); sprd_eic_irq_ack() local
314 struct gpio_chip *chip = irq_data_get_irq_chip_data(data); sprd_eic_irq_set_type() local
472 sprd_eic_toggle_trigger(struct gpio_chip *chip, unsigned int irq, unsigned int offset) sprd_eic_toggle_trigger() argument
521 sprd_eic_match_chip_by_type(struct gpio_chip *chip, void *data) sprd_eic_match_chip_by_type() argument
528 sprd_eic_handle_one_type(struct gpio_chip *chip) sprd_eic_handle_one_type() argument
573 struct gpio_chip *chip; sprd_eic_irq_handler() local
[all...]
/kernel/linux/linux-6.6/sound/isa/msnd/
H A Dmsnd.c195 static inline long get_play_delay_jiffies(struct snd_msnd *chip, long size) in get_play_delay_jiffies() argument
197 long tmp = (size * HZ * chip->play_sample_size) / 8; in get_play_delay_jiffies()
198 return tmp / (chip->play_sample_rate * chip->play_channels); in get_play_delay_jiffies()
201 static void snd_msnd_dsp_write_flush(struct snd_msnd *chip) in snd_msnd_dsp_write_flush() argument
203 if (!(chip->mode & FMODE_WRITE) || !test_bit(F_WRITING, &chip->flags)) in snd_msnd_dsp_write_flush()
205 set_bit(F_WRITEFLUSH, &chip->flags); in snd_msnd_dsp_write_flush()
207 &chip->writeflush, in snd_msnd_dsp_write_flush()
208 get_play_delay_jiffies(&chip, chi in snd_msnd_dsp_write_flush()
216 snd_msnd_dsp_halt(struct snd_msnd *chip, struct file *file) snd_msnd_dsp_halt() argument
246 snd_msnd_DARQ(struct snd_msnd *chip, int bank) snd_msnd_DARQ() argument
295 snd_msnd_DAPQ(struct snd_msnd *chip, int start) snd_msnd_DAPQ() argument
355 snd_msnd_play_reset_queue(struct snd_msnd *chip, unsigned int pcm_periods, unsigned int pcm_count) snd_msnd_play_reset_queue() argument
383 snd_msnd_capture_reset_queue(struct snd_msnd *chip, unsigned int pcm_periods, unsigned int pcm_count) snd_msnd_capture_reset_queue() argument
469 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_playback_open() local
486 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_playback_close() local
498 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_playback_hw_params() local
519 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_playback_prepare() local
532 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_playback_trigger() local
557 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_playback_pointer() local
576 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_capture_open() local
591 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_capture_close() local
600 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_capture_prepare() local
613 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_capture_trigger() local
635 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_capture_pointer() local
645 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_capture_hw_params() local
674 struct snd_msnd *chip = card->private_data; snd_msnd_pcm() local
[all...]
/kernel/linux/linux-5.10/sound/isa/ad1816a/
H A Dad1816a_lib.c3 ad1816a.c - lowlevel code for Analog Devices AD1816A chip.
20 static inline int snd_ad1816a_busy_wait(struct snd_ad1816a *chip) in snd_ad1816a_busy_wait() argument
28 snd_printk(KERN_WARNING "chip busy.\n"); in snd_ad1816a_busy_wait()
32 static inline unsigned char snd_ad1816a_in(struct snd_ad1816a *chip, unsigned char reg) in snd_ad1816a_in() argument
34 snd_ad1816a_busy_wait(chip); in snd_ad1816a_in()
38 static inline void snd_ad1816a_out(struct snd_ad1816a *chip, unsigned char reg, in snd_ad1816a_out() argument
41 snd_ad1816a_busy_wait(chip); in snd_ad1816a_out()
45 static inline void snd_ad1816a_out_mask(struct snd_ad1816a *chip, unsigned char reg, in snd_ad1816a_out_mask() argument
48 snd_ad1816a_out(chip, reg, in snd_ad1816a_out_mask()
49 (value & mask) | (snd_ad1816a_in(chip, re in snd_ad1816a_out_mask()
52 snd_ad1816a_read(struct snd_ad1816a *chip, unsigned char reg) snd_ad1816a_read() argument
59 snd_ad1816a_write(struct snd_ad1816a *chip, unsigned char reg, unsigned short value) snd_ad1816a_write() argument
67 snd_ad1816a_write_mask(struct snd_ad1816a *chip, unsigned char reg, unsigned short mask, unsigned short value) snd_ad1816a_write_mask() argument
75 snd_ad1816a_get_format(struct snd_ad1816a *chip, snd_pcm_format_t format, int channels) snd_ad1816a_get_format() argument
97 snd_ad1816a_open(struct snd_ad1816a *chip, unsigned int mode) snd_ad1816a_open() argument
133 snd_ad1816a_close(struct snd_ad1816a *chip, unsigned int mode) snd_ad1816a_close() argument
165 snd_ad1816a_trigger(struct snd_ad1816a *chip, unsigned char what, int channel, int cmd, int iscapture) snd_ad1816a_trigger() argument
197 struct snd_ad1816a *chip = snd_pcm_substream_chip(substream); snd_ad1816a_playback_trigger() local
204 struct snd_ad1816a *chip = snd_pcm_substream_chip(substream); snd_ad1816a_capture_trigger() local
211 struct snd_ad1816a *chip = snd_pcm_substream_chip(substream); snd_ad1816a_playback_prepare() local
243 struct snd_ad1816a *chip = snd_pcm_substream_chip(substream); snd_ad1816a_capture_prepare() local
276 struct snd_ad1816a *chip = snd_pcm_substream_chip(substream); snd_ad1816a_playback_pointer() local
286 struct snd_ad1816a *chip = snd_pcm_substream_chip(substream); snd_ad1816a_capture_pointer() local
297 struct snd_ad1816a *chip = dev_id; snd_ad1816a_interrupt() local
360 struct snd_ad1816a *chip = snd_timer_chip(timer); snd_ad1816a_timer_close() local
367 struct snd_ad1816a *chip = snd_timer_chip(timer); snd_ad1816a_timer_open() local
384 struct snd_ad1816a *chip = snd_timer_chip(timer); snd_ad1816a_timer_start() local
402 struct snd_ad1816a *chip = snd_timer_chip(timer); snd_ad1816a_timer_stop() local
425 struct snd_ad1816a *chip = snd_pcm_substream_chip(substream); snd_ad1816a_playback_open() local
440 struct snd_ad1816a *chip = snd_pcm_substream_chip(substream); snd_ad1816a_capture_open() local
455 struct snd_ad1816a *chip = snd_pcm_substream_chip(substream); snd_ad1816a_playback_close() local
464 struct snd_ad1816a *chip = snd_pcm_substream_chip(substream); snd_ad1816a_capture_close() local
472 snd_ad1816a_init(struct snd_ad1816a *chip) snd_ad1816a_init() argument
493 snd_ad1816a_suspend(struct snd_ad1816a *chip) snd_ad1816a_suspend() argument
504 snd_ad1816a_resume(struct snd_ad1816a *chip) snd_ad1816a_resume() argument
517 snd_ad1816a_probe(struct snd_ad1816a *chip) snd_ad1816a_probe() argument
541 snd_ad1816a_free(struct snd_ad1816a *chip) snd_ad1816a_free() argument
559 struct snd_ad1816a *chip = device->device_data; snd_ad1816a_dev_free() local
563 snd_ad1816a_chip_id(struct snd_ad1816a *chip) snd_ad1816a_chip_id() argument
576 snd_ad1816a_create(struct snd_card *card, unsigned long port, int irq, int dma1, int dma2, struct snd_ad1816a *chip) snd_ad1816a_create() argument
650 snd_ad1816a_pcm(struct snd_ad1816a *chip, int device) snd_ad1816a_pcm() argument
674 snd_ad1816a_timer(struct snd_ad1816a *chip, int device) snd_ad1816a_timer() argument
710 struct snd_ad1816a *chip = snd_kcontrol_chip(kcontrol); snd_ad1816a_get_mux() local
724 struct snd_ad1816a *chip = snd_kcontrol_chip(kcontrol); snd_ad1816a_put_mux() local
766 struct snd_ad1816a *chip = snd_kcontrol_chip(kcontrol); snd_ad1816a_get_single() local
783 struct snd_ad1816a *chip = snd_kcontrol_chip(kcontrol); snd_ad1816a_put_single() local
831 struct snd_ad1816a *chip = snd_kcontrol_chip(kcontrol); snd_ad1816a_get_double() local
854 struct snd_ad1816a *chip = snd_kcontrol_chip(kcontrol); snd_ad1816a_put_double() local
933 snd_ad1816a_mixer(struct snd_ad1816a *chip) snd_ad1816a_mixer() argument
[all...]
/kernel/linux/linux-5.10/sound/pci/hda/
H A Dhda_intel.c281 #define azx_get_snoop_type(chip) \
282 (((chip)->driver_caps & AZX_DCAPS_SNOOP_MASK) >> 10)
362 #define use_vga_switcheroo(chip) ((chip)->use_vga_switcheroo)
363 #define needs_eld_notify_link(chip) ((chip)->bus.keep_power)
365 #define use_vga_switcheroo(chip) 0
366 #define needs_eld_notify_link(chip) false
403 static int azx_acquire_irq(struct azx *chip, int do_disconnect);
404 static void set_default_power_save(struct azx *chip);
421 azx_init_pci(struct azx *chip) azx_init_pci() argument
488 bxt_reduce_dma_latency(struct azx *chip) bxt_reduce_dma_latency() argument
506 intel_get_lctl_scf(struct azx *chip) intel_get_lctl_scf() argument
525 intel_ml_lctl_set_power(struct azx *chip, int state) intel_ml_lctl_set_power() argument
552 intel_init_lctl(struct azx *chip) intel_init_lctl() argument
589 hda_intel_init_chip(struct azx *chip, bool full_reset) hda_intel_init_chip() argument
619 azx_get_delay_from_lpib(struct azx *chip, struct azx_dev *azx_dev, unsigned int pos) azx_get_delay_from_lpib() argument
653 azx_position_check(struct azx *chip, struct azx_dev *azx_dev) azx_position_check() argument
684 azx_position_ok(struct azx *chip, struct azx_dev *azx_dev) azx_position_ok() argument
755 struct azx *chip = &hda->chip; azx_irq_pending_work() local
795 azx_clear_irq_pending(struct azx *chip) azx_clear_irq_pending() argument
808 azx_acquire_irq(struct azx *chip, int do_disconnect) azx_acquire_irq() argument
829 azx_via_get_position(struct azx *chip, struct azx_dev *azx_dev) azx_via_get_position() argument
884 azx_get_pos_fifo(struct azx *chip, struct azx_dev *azx_dev) azx_get_pos_fifo() argument
915 azx_get_delay_from_fifo(struct azx *chip, struct azx_dev *azx_dev, unsigned int pos) azx_get_delay_from_fifo() argument
924 __azx_shutdown_chip(struct azx *chip, bool skip_link_reset) __azx_shutdown_chip() argument
937 azx_shutdown_chip(struct azx *chip) azx_shutdown_chip() argument
942 azx_add_card_list(struct azx *chip) azx_add_card_list() argument
950 azx_del_card_list(struct azx *chip) azx_del_card_list() argument
962 struct azx *chip; param_set_xint() local
985 struct azx *chip; azx_is_pm_ready() local
997 __azx_runtime_resume(struct azx *chip) __azx_runtime_resume() argument
1034 struct azx *chip; azx_prepare() local
1054 struct azx *chip; azx_complete() local
1067 struct azx *chip; azx_suspend() local
1092 struct azx *chip; azx_resume() local
1116 struct azx *chip = card->private_data; azx_freeze_noirq() local
1130 struct azx *chip = card->private_data; azx_thaw_noirq() local
1145 struct azx *chip; azx_runtime_suspend() local
1162 struct azx *chip; azx_runtime_resume() local
1179 struct azx *chip; azx_runtime_idle() local
1229 struct azx *chip = card->private_data; azx_vs_set_state() local
1283 struct azx *chip = card->private_data; azx_vs_can_switch() local
1301 setup_vga_switcheroo_runtime_pm(struct azx *chip) setup_vga_switcheroo_runtime_pm() argument
1319 struct azx *chip = card->private_data; azx_vs_gpu_bound() local
1326 init_vga_switcheroo(struct azx *chip) init_vga_switcheroo() argument
1352 register_vga_switcheroo(struct azx *chip) register_vga_switcheroo() argument
1381 azx_free(struct azx *chip) azx_free() argument
1439 struct azx *chip = device->device_data; azx_dev_disconnect() local
1569 check_position_fix(struct azx *chip, int fix) check_position_fix() argument
1612 assign_position_fix(struct azx *chip, int fix) assign_position_fix() argument
1666 check_probe_mask(struct azx *chip, int dev) check_probe_mask() argument
1707 check_msi(struct azx *chip) check_msi() argument
1733 azx_check_snoop_available(struct azx *chip) azx_check_snoop_available() argument
1776 default_bdl_pos_adj(struct azx *chip) default_bdl_pos_adj() argument
1816 struct azx *chip; azx_create() local
1894 azx_first_init(struct azx *chip) azx_first_init() argument
2088 struct azx *chip = card->private_data; azx_firmware_cb() local
2101 disable_msi_reset_irq(struct azx *chip) disable_msi_reset_irq() argument
2123 struct azx *chip = apcm->chip; pcm_mmap_prepare() local
2152 struct azx *chip; azx_probe() local
2287 set_default_power_save(struct azx *chip) set_default_power_save() argument
2312 azx_probe_continue(struct azx *chip) azx_probe_continue() argument
2437 struct azx *chip; azx_remove() local
2466 struct azx *chip; azx_shutdown() local
[all...]
/kernel/linux/linux-5.10/sound/pci/
H A Dcs4281.c61 #define BA0_HISR_GPPI (1<<5) /* General Purpose Input (Primary chip) */
62 #define BA0_HISR_GPSI (1<<4) /* General Purpose Input (Secondary chip) */
499 static inline void snd_cs4281_pokeBA0(struct cs4281 *chip, unsigned long offset, in snd_cs4281_pokeBA0() argument
502 writel(val, chip->ba0 + offset); in snd_cs4281_pokeBA0()
505 static inline unsigned int snd_cs4281_peekBA0(struct cs4281 *chip, unsigned long offset) in snd_cs4281_peekBA0() argument
507 return readl(chip->ba0 + offset); in snd_cs4281_peekBA0()
520 struct cs4281 *chip = ac97->private_data; in snd_cs4281_ac97_write() local
535 snd_cs4281_pokeBA0(chip, BA0_ACCAD, reg); in snd_cs4281_ac97_write()
536 snd_cs4281_pokeBA0(chip, BA0_ACCDA, val); in snd_cs4281_ac97_write()
537 snd_cs4281_pokeBA0(chip, BA0_ACCT in snd_cs4281_ac97_write()
559 struct cs4281 *chip = ac97->private_data; snd_cs4281_ac97_read() local
656 struct cs4281 *chip = snd_pcm_substream_chip(substream); snd_cs4281_trigger() local
718 snd_cs4281_mode(struct cs4281 *chip, struct cs4281_dma *dma, struct snd_pcm_runtime *runtime, int capture, int src) snd_cs4281_mode() argument
787 struct cs4281 *chip = snd_pcm_substream_chip(substream); snd_cs4281_playback_prepare() local
799 struct cs4281 *chip = snd_pcm_substream_chip(substream); snd_cs4281_capture_prepare() local
811 struct cs4281 *chip = snd_pcm_substream_chip(substream); snd_cs4281_pointer() local
875 struct cs4281 *chip = snd_pcm_substream_chip(substream); snd_cs4281_playback_open() local
894 struct cs4281 *chip = snd_pcm_substream_chip(substream); snd_cs4281_capture_open() local
943 snd_cs4281_pcm(struct cs4281 *chip, int device) snd_cs4281_pcm() argument
985 struct cs4281 *chip = snd_kcontrol_chip(kcontrol); snd_cs4281_get_volume() local
1001 struct cs4281 *chip = snd_kcontrol_chip(kcontrol); snd_cs4281_put_volume() local
1049 struct cs4281 *chip = bus->private_data; snd_cs4281_mixer_free_ac97_bus() local
1055 struct cs4281 *chip = ac97->private_data; snd_cs4281_mixer_free_ac97() local
1062 snd_cs4281_mixer(struct cs4281 *chip) snd_cs4281_mixer() argument
1101 struct cs4281 *chip = entry->private_data; snd_cs4281_proc_read() local
1113 struct cs4281 *chip = entry->private_data; snd_cs4281_BA0_read() local
1125 struct cs4281 *chip = entry->private_data; snd_cs4281_BA1_read() local
1140 snd_cs4281_proc_init(struct cs4281 *chip) snd_cs4281_proc_init() argument
1167 struct cs4281 *chip = gameport_get_port_data(gameport); snd_cs4281_gameport_trigger() local
1176 struct cs4281 *chip = gameport_get_port_data(gameport); snd_cs4281_gameport_read() local
1187 struct cs4281 *chip = gameport_get_port_data(gameport); snd_cs4281_gameport_cooked_read() local
1227 snd_cs4281_create_gameport(struct cs4281 *chip) snd_cs4281_create_gameport() argument
1255 snd_cs4281_free_gameport(struct cs4281 *chip) snd_cs4281_free_gameport() argument
1263 snd_cs4281_create_gameport(struct cs4281 *chip) snd_cs4281_create_gameport() argument
1264 snd_cs4281_free_gameport(struct cs4281 *chip) snd_cs4281_free_gameport() argument
1267 snd_cs4281_free(struct cs4281 *chip) snd_cs4281_free() argument
1293 struct cs4281 *chip = device->device_data; snd_cs4281_dev_free() local
1304 struct cs4281 *chip; snd_cs4281_create() local
1371 snd_cs4281_chip_init(struct cs4281 *chip) snd_cs4281_chip_init() argument
1609 snd_cs4281_midi_reset(struct cs4281 *chip) snd_cs4281_midi_reset() argument
1618 struct cs4281 *chip = substream->rmidi->private_data; snd_cs4281_midi_input_open() local
1634 struct cs4281 *chip = substream->rmidi->private_data; snd_cs4281_midi_input_close() local
1651 struct cs4281 *chip = substream->rmidi->private_data; snd_cs4281_midi_output_open() local
1668 struct cs4281 *chip = substream->rmidi->private_data; snd_cs4281_midi_output_close() local
1686 struct cs4281 *chip = substream->rmidi->private_data; snd_cs4281_midi_input_trigger() local
1706 struct cs4281 *chip = substream->rmidi->private_data; snd_cs4281_midi_output_trigger() local
1747 snd_cs4281_midi(struct cs4281 *chip, int device) snd_cs4281_midi() argument
1769 struct cs4281 *chip = dev_id; snd_cs4281_interrupt() local
1845 struct cs4281 *chip = opl3->private_data; snd_cs4281_opl3_command() local
1869 struct cs4281 *chip; snd_cs4281_probe() local
1963 struct cs4281 *chip = card->private_data; cs4281_suspend() local
2004 struct cs4281 *chip = card->private_data; cs4281_resume() local
[all...]
H A Dintel8x0m.c236 static inline u8 igetbyte(struct intel8x0m *chip, u32 offset) in igetbyte() argument
238 return ioread8(chip->bmaddr + offset); in igetbyte()
241 static inline u16 igetword(struct intel8x0m *chip, u32 offset) in igetword() argument
243 return ioread16(chip->bmaddr + offset); in igetword()
246 static inline u32 igetdword(struct intel8x0m *chip, u32 offset) in igetdword() argument
248 return ioread32(chip->bmaddr + offset); in igetdword()
251 static inline void iputbyte(struct intel8x0m *chip, u32 offset, u8 val) in iputbyte() argument
253 iowrite8(val, chip->bmaddr + offset); in iputbyte()
256 static inline void iputword(struct intel8x0m *chip, u32 offset, u16 val) in iputword() argument
258 iowrite16(val, chip in iputword()
261 iputdword(struct intel8x0m *chip, u32 offset, u32 val) iputdword() argument
270 iagetword(struct intel8x0m *chip, u32 offset) iagetword() argument
275 iaputword(struct intel8x0m *chip, u32 offset, u16 val) iaputword() argument
289 get_ich_codec_bit(struct intel8x0m *chip, unsigned int codec) get_ich_codec_bit() argument
299 snd_intel8x0m_codec_semaphore(struct intel8x0m *chip, unsigned int codec) snd_intel8x0m_codec_semaphore() argument
334 struct intel8x0m *chip = ac97->private_data; snd_intel8x0m_codec_write() local
348 struct intel8x0m *chip = ac97->private_data; snd_intel8x0m_codec_read() local
380 snd_intel8x0m_setup_periods(struct intel8x0m *chip, struct ichdev *ichdev) snd_intel8x0m_setup_periods() argument
432 snd_intel8x0m_update(struct intel8x0m *chip, struct ichdev *ichdev) snd_intel8x0m_update() argument
486 struct intel8x0m *chip = dev_id; snd_intel8x0m_interrupt() local
523 struct intel8x0m *chip = snd_pcm_substream_chip(substream); snd_intel8x0m_pcm_trigger() local
558 struct intel8x0m *chip = snd_pcm_substream_chip(substream); snd_intel8x0m_pcm_pointer() local
575 struct intel8x0m *chip = snd_pcm_substream_chip(substream); snd_intel8x0m_pcm_prepare() local
633 struct intel8x0m *chip = snd_pcm_substream_chip(substream); snd_intel8x0m_playback_open() local
640 struct intel8x0m *chip = snd_pcm_substream_chip(substream); snd_intel8x0m_playback_close() local
648 struct intel8x0m *chip = snd_pcm_substream_chip(substream); snd_intel8x0m_capture_open() local
655 struct intel8x0m *chip = snd_pcm_substream_chip(substream); snd_intel8x0m_capture_close() local
688 snd_intel8x0m_pcm1(struct intel8x0m *chip, int device, const struct ich_pcm_table *rec) snd_intel8x0m_pcm1() argument
737 snd_intel8x0m_pcm(struct intel8x0m *chip) snd_intel8x0m_pcm() argument
786 struct intel8x0m *chip = bus->private_data; snd_intel8x0m_mixer_free_ac97_bus() local
792 struct intel8x0m *chip = ac97->private_data; snd_intel8x0m_mixer_free_ac97() local
797 snd_intel8x0m_mixer(struct intel8x0m *chip, int ac97_clock) snd_intel8x0m_mixer() argument
856 snd_intel8x0m_ich_chip_init(struct intel8x0m *chip, int probing) snd_intel8x0m_ich_chip_init() argument
940 snd_intel8x0m_chip_init(struct intel8x0m *chip, int probing) snd_intel8x0m_chip_init() argument
961 snd_intel8x0m_free(struct intel8x0m *chip) snd_intel8x0m_free() argument
995 struct intel8x0m *chip = card->private_data; intel8x0m_suspend() local
1011 struct intel8x0m *chip = card->private_data; intel8x0m_resume() local
1038 struct intel8x0m *chip = entry->private_data; snd_intel8x0m_proc_read() local
1055 snd_intel8x0m_proc_init(struct intel8x0m *chip) snd_intel8x0m_proc_init() argument
1063 struct intel8x0m *chip = device->device_data; snd_intel8x0m_dev_free() local
1077 struct intel8x0m *chip; snd_intel8x0m_create() local
1237 struct intel8x0m *chip; snd_intel8x0m_probe() local
[all...]
/kernel/linux/linux-5.10/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 in zd_chip_clear()
41 scnprint_mac_oui(struct zd_chip *chip, char *buffer, size_t size) scnprint_mac_oui() argument
48 scnprint_id(struct zd_chip *chip, char *buffer, size_t size) scnprint_id() argument
68 print_id(struct zd_chip *chip) print_id() argument
92 zd_ioread32v_locked(struct zd_chip *chip, u32 *values, const zd_addr_t *addr, unsigned int count) zd_ioread32v_locked() argument
131 _zd_iowrite32v_async_locked(struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, unsigned int count) _zd_iowrite32v_async_locked() argument
170 _zd_iowrite32v_locked(struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, unsigned int count) _zd_iowrite32v_locked() argument
184 zd_iowrite16a_locked(struct zd_chip *chip, const struct zd_ioreq16 *ioreqs, unsigned int count) zd_iowrite16a_locked() argument
222 zd_iowrite32a_locked(struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, unsigned int count) zd_iowrite32a_locked() argument
255 zd_ioread16(struct zd_chip *chip, zd_addr_t addr, u16 *value) zd_ioread16() argument
265 zd_ioread32(struct zd_chip *chip, zd_addr_t addr, u32 *value) zd_ioread32() argument
275 zd_iowrite16(struct zd_chip *chip, zd_addr_t addr, u16 value) zd_iowrite16() argument
285 zd_iowrite32(struct zd_chip *chip, zd_addr_t addr, u32 value) zd_iowrite32() argument
295 zd_ioread32v(struct zd_chip *chip, const zd_addr_t *addresses, u32 *values, unsigned int count) zd_ioread32v() argument
306 zd_iowrite32a(struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, unsigned int count) zd_iowrite32a() argument
317 read_pod(struct zd_chip *chip, u8 *rf_type) read_pod() argument
363 zd_write_mac_addr_common(struct zd_chip *chip, const u8 *mac_addr, const struct zd_ioreq32 *in_reqs, const char *type) zd_write_mac_addr_common() argument
391 zd_write_mac_addr(struct zd_chip *chip, const u8 *mac_addr) zd_write_mac_addr() argument
401 zd_write_bssid(struct zd_chip *chip, const u8 *bssid) zd_write_bssid() argument
411 zd_read_regdomain(struct zd_chip *chip, u8 *regdomain) zd_read_regdomain() argument
428 read_values(struct zd_chip *chip, u8 *values, size_t count, zd_addr_t e2p_addr, u32 guard) read_values() argument
455 read_pwr_cal_values(struct zd_chip *chip) read_pwr_cal_values() argument
462 read_pwr_int_values(struct zd_chip *chip) read_pwr_int_values() argument
469 read_ofdm_cal_values(struct zd_chip *chip) read_ofdm_cal_values() argument
488 read_cal_int_tables(struct zd_chip *chip) read_cal_int_tables() argument
505 zd_chip_lock_phy_regs(struct zd_chip *chip) zd_chip_lock_phy_regs() argument
525 zd_chip_unlock_phy_regs(struct zd_chip *chip) zd_chip_unlock_phy_regs() argument
547 patch_cr157(struct zd_chip *chip) patch_cr157() argument
568 patch_6m_band_edge(struct zd_chip *chip, u8 channel) patch_6m_band_edge() argument
579 zd_chip_generic_patch_6m_band(struct zd_chip *chip, int channel) zd_chip_generic_patch_6m_band() argument
594 zd1211_hw_reset_phy(struct zd_chip *chip) zd1211_hw_reset_phy() argument
683 zd1211b_hw_reset_phy(struct zd_chip *chip) zd1211b_hw_reset_phy() argument
760 hw_reset_phy(struct zd_chip *chip) hw_reset_phy() argument
766 zd1211_hw_init_hmac(struct zd_chip *chip) zd1211_hw_init_hmac() argument
778 zd1211b_hw_init_hmac(struct zd_chip *chip) zd1211b_hw_init_hmac() argument
797 hw_init_hmac(struct zd_chip *chip) hw_init_hmac() argument
838 get_aw_pt_bi(struct zd_chip *chip, struct aw_pt_bi *s) get_aw_pt_bi() argument
858 set_aw_pt_bi(struct zd_chip *chip, struct aw_pt_bi *s) set_aw_pt_bi() argument
881 set_beacon_interval(struct zd_chip *chip, u16 interval, u8 dtim_period, int type) set_beacon_interval() argument
919 zd_set_beacon_interval(struct zd_chip *chip, u16 interval, u8 dtim_period, int type) zd_set_beacon_interval() argument
930 hw_init(struct zd_chip *chip) hw_init() argument
947 fw_reg_addr(struct zd_chip *chip, u16 offset) fw_reg_addr() argument
953 dump_cr(struct zd_chip *chip, const zd_addr_t addr, const char *addr_string) dump_cr() argument
971 test_init(struct zd_chip *chip) test_init() argument
984 dump_fw_registers(struct zd_chip *chip) dump_fw_registers() argument
1011 print_fw_version(struct zd_chip *chip) print_fw_version() argument
1030 set_mandatory_rates(struct zd_chip *chip, int gmode) set_mandatory_rates() argument
1047 zd_chip_set_rts_cts_rate_locked(struct zd_chip *chip, int preamble) zd_chip_set_rts_cts_rate_locked() argument
1065 zd_chip_enable_hwint(struct zd_chip *chip) zd_chip_enable_hwint() argument
1075 disable_hwint(struct zd_chip *chip) disable_hwint() argument
1080 zd_chip_disable_hwint(struct zd_chip *chip) zd_chip_disable_hwint() argument
1090 read_fw_regs_offset(struct zd_chip *chip) read_fw_regs_offset() argument
1106 zd_chip_read_mac_addr_fw(struct zd_chip *chip, u8 *addr) zd_chip_read_mac_addr_fw() argument
1113 zd_chip_init_hw(struct zd_chip *chip) zd_chip_init_hw() argument
1186 update_pwr_int(struct zd_chip *chip, u8 channel) update_pwr_int() argument
1192 update_pwr_cal(struct zd_chip *chip, u8 channel) update_pwr_cal() argument
1198 update_ofdm_cal(struct zd_chip *chip, u8 channel) update_ofdm_cal() argument
1212 update_channel_integration_and_calibration(struct zd_chip *chip, u8 channel) update_channel_integration_and_calibration() argument
1245 patch_cck_gain(struct zd_chip *chip) patch_cck_gain() argument
1261 zd_chip_set_channel(struct zd_chip *chip, u8 channel) zd_chip_set_channel() argument
1291 zd_chip_get_channel(struct zd_chip *chip) zd_chip_get_channel() argument
1301 zd_chip_control_leds(struct zd_chip *chip, enum led_status status) zd_chip_control_leds() argument
1358 zd_chip_set_basic_rates(struct zd_chip *chip, u16 cr_rates) zd_chip_set_basic_rates() argument
1411 zd_chip_switch_radio_on(struct zd_chip *chip) zd_chip_switch_radio_on() argument
1421 zd_chip_switch_radio_off(struct zd_chip *chip) zd_chip_switch_radio_off() argument
1431 zd_chip_enable_int(struct zd_chip *chip) zd_chip_enable_int() argument
1441 zd_chip_disable_int(struct zd_chip *chip) zd_chip_disable_int() argument
1451 zd_chip_enable_rxtx(struct zd_chip *chip) zd_chip_enable_rxtx() argument
1463 zd_chip_disable_rxtx(struct zd_chip *chip) zd_chip_disable_rxtx() argument
1472 zd_rfwritev_locked(struct zd_chip *chip, const u32* values, unsigned int count, u8 bits) zd_rfwritev_locked() argument
1491 zd_rfwrite_cr_locked(struct zd_chip *chip, u32 value) zd_rfwrite_cr_locked() argument
1502 zd_rfwritev_cr_locked(struct zd_chip *chip, const u32 *values, unsigned int count) zd_rfwritev_cr_locked() argument
1517 zd_chip_set_multicast_hash(struct zd_chip *chip, struct zd_mc_hash *hash) zd_chip_set_multicast_hash() argument
1528 zd_chip_get_tsf(struct zd_chip *chip) zd_chip_get_tsf() argument
[all...]
/kernel/linux/linux-6.6/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 in zd_chip_clear()
41 scnprint_mac_oui(struct zd_chip *chip, char *buffer, size_t size) scnprint_mac_oui() argument
48 scnprint_id(struct zd_chip *chip, char *buffer, size_t size) scnprint_id() argument
68 print_id(struct zd_chip *chip) print_id() argument
92 zd_ioread32v_locked(struct zd_chip *chip, u32 *values, const zd_addr_t *addr, unsigned int count) zd_ioread32v_locked() argument
131 _zd_iowrite32v_async_locked(struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, unsigned int count) _zd_iowrite32v_async_locked() argument
170 _zd_iowrite32v_locked(struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, unsigned int count) _zd_iowrite32v_locked() argument
184 zd_iowrite16a_locked(struct zd_chip *chip, const struct zd_ioreq16 *ioreqs, unsigned int count) zd_iowrite16a_locked() argument
222 zd_iowrite32a_locked(struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, unsigned int count) zd_iowrite32a_locked() argument
255 zd_ioread16(struct zd_chip *chip, zd_addr_t addr, u16 *value) zd_ioread16() argument
265 zd_ioread32(struct zd_chip *chip, zd_addr_t addr, u32 *value) zd_ioread32() argument
275 zd_iowrite16(struct zd_chip *chip, zd_addr_t addr, u16 value) zd_iowrite16() argument
285 zd_iowrite32(struct zd_chip *chip, zd_addr_t addr, u32 value) zd_iowrite32() argument
295 zd_ioread32v(struct zd_chip *chip, const zd_addr_t *addresses, u32 *values, unsigned int count) zd_ioread32v() argument
306 zd_iowrite32a(struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, unsigned int count) zd_iowrite32a() argument
317 read_pod(struct zd_chip *chip, u8 *rf_type) read_pod() argument
363 zd_write_mac_addr_common(struct zd_chip *chip, const u8 *mac_addr, const struct zd_ioreq32 *in_reqs, const char *type) zd_write_mac_addr_common() argument
391 zd_write_mac_addr(struct zd_chip *chip, const u8 *mac_addr) zd_write_mac_addr() argument
401 zd_write_bssid(struct zd_chip *chip, const u8 *bssid) zd_write_bssid() argument
411 zd_read_regdomain(struct zd_chip *chip, u8 *regdomain) zd_read_regdomain() argument
428 read_values(struct zd_chip *chip, u8 *values, size_t count, zd_addr_t e2p_addr, u32 guard) read_values() argument
455 read_pwr_cal_values(struct zd_chip *chip) read_pwr_cal_values() argument
462 read_pwr_int_values(struct zd_chip *chip) read_pwr_int_values() argument
469 read_ofdm_cal_values(struct zd_chip *chip) read_ofdm_cal_values() argument
488 read_cal_int_tables(struct zd_chip *chip) read_cal_int_tables() argument
505 zd_chip_lock_phy_regs(struct zd_chip *chip) zd_chip_lock_phy_regs() argument
525 zd_chip_unlock_phy_regs(struct zd_chip *chip) zd_chip_unlock_phy_regs() argument
547 patch_cr157(struct zd_chip *chip) patch_cr157() argument
568 patch_6m_band_edge(struct zd_chip *chip, u8 channel) patch_6m_band_edge() argument
579 zd_chip_generic_patch_6m_band(struct zd_chip *chip, int channel) zd_chip_generic_patch_6m_band() argument
594 zd1211_hw_reset_phy(struct zd_chip *chip) zd1211_hw_reset_phy() argument
683 zd1211b_hw_reset_phy(struct zd_chip *chip) zd1211b_hw_reset_phy() argument
760 hw_reset_phy(struct zd_chip *chip) hw_reset_phy() argument
766 zd1211_hw_init_hmac(struct zd_chip *chip) zd1211_hw_init_hmac() argument
778 zd1211b_hw_init_hmac(struct zd_chip *chip) zd1211b_hw_init_hmac() argument
797 hw_init_hmac(struct zd_chip *chip) hw_init_hmac() argument
838 get_aw_pt_bi(struct zd_chip *chip, struct aw_pt_bi *s) get_aw_pt_bi() argument
858 set_aw_pt_bi(struct zd_chip *chip, struct aw_pt_bi *s) set_aw_pt_bi() argument
881 set_beacon_interval(struct zd_chip *chip, u16 interval, u8 dtim_period, int type) set_beacon_interval() argument
919 zd_set_beacon_interval(struct zd_chip *chip, u16 interval, u8 dtim_period, int type) zd_set_beacon_interval() argument
930 hw_init(struct zd_chip *chip) hw_init() argument
947 fw_reg_addr(struct zd_chip *chip, u16 offset) fw_reg_addr() argument
953 dump_cr(struct zd_chip *chip, const zd_addr_t addr, const char *addr_string) dump_cr() argument
971 test_init(struct zd_chip *chip) test_init() argument
984 dump_fw_registers(struct zd_chip *chip) dump_fw_registers() argument
1011 print_fw_version(struct zd_chip *chip) print_fw_version() argument
1030 set_mandatory_rates(struct zd_chip *chip, int gmode) set_mandatory_rates() argument
1047 zd_chip_set_rts_cts_rate_locked(struct zd_chip *chip, int preamble) zd_chip_set_rts_cts_rate_locked() argument
1065 zd_chip_enable_hwint(struct zd_chip *chip) zd_chip_enable_hwint() argument
1075 disable_hwint(struct zd_chip *chip) disable_hwint() argument
1080 zd_chip_disable_hwint(struct zd_chip *chip) zd_chip_disable_hwint() argument
1090 read_fw_regs_offset(struct zd_chip *chip) read_fw_regs_offset() argument
1106 zd_chip_read_mac_addr_fw(struct zd_chip *chip, u8 *addr) zd_chip_read_mac_addr_fw() argument
1113 zd_chip_init_hw(struct zd_chip *chip) zd_chip_init_hw() argument
1186 update_pwr_int(struct zd_chip *chip, u8 channel) update_pwr_int() argument
1192 update_pwr_cal(struct zd_chip *chip, u8 channel) update_pwr_cal() argument
1198 update_ofdm_cal(struct zd_chip *chip, u8 channel) update_ofdm_cal() argument
1212 update_channel_integration_and_calibration(struct zd_chip *chip, u8 channel) update_channel_integration_and_calibration() argument
1245 patch_cck_gain(struct zd_chip *chip) patch_cck_gain() argument
1261 zd_chip_set_channel(struct zd_chip *chip, u8 channel) zd_chip_set_channel() argument
1291 zd_chip_get_channel(struct zd_chip *chip) zd_chip_get_channel() argument
1301 zd_chip_control_leds(struct zd_chip *chip, enum led_status status) zd_chip_control_leds() argument
1358 zd_chip_set_basic_rates(struct zd_chip *chip, u16 cr_rates) zd_chip_set_basic_rates() argument
1411 zd_chip_switch_radio_on(struct zd_chip *chip) zd_chip_switch_radio_on() argument
1421 zd_chip_switch_radio_off(struct zd_chip *chip) zd_chip_switch_radio_off() argument
1431 zd_chip_enable_int(struct zd_chip *chip) zd_chip_enable_int() argument
1441 zd_chip_disable_int(struct zd_chip *chip) zd_chip_disable_int() argument
1451 zd_chip_enable_rxtx(struct zd_chip *chip) zd_chip_enable_rxtx() argument
1463 zd_chip_disable_rxtx(struct zd_chip *chip) zd_chip_disable_rxtx() argument
1472 zd_rfwritev_locked(struct zd_chip *chip, const u32* values, unsigned int count, u8 bits) zd_rfwritev_locked() argument
1491 zd_rfwrite_cr_locked(struct zd_chip *chip, u32 value) zd_rfwrite_cr_locked() argument
1502 zd_rfwritev_cr_locked(struct zd_chip *chip, const u32 *values, unsigned int count) zd_rfwritev_cr_locked() argument
1517 zd_chip_set_multicast_hash(struct zd_chip *chip, struct zd_mc_hash *hash) zd_chip_set_multicast_hash() argument
1528 zd_chip_get_tsf(struct zd_chip *chip) zd_chip_get_tsf() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/
H A Dchip.h3 * Marvell 88E6xxx Ethernet switch single-chip definition
122 /* Multi-chip Addressing Mode.
127 /* Dual-chip Addressing Mode
169 struct irq_chip chip; member
228 struct mv88e6xxx_chip *chip; member
357 int (*read)(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val);
358 int (*write)(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val);
363 struct mv88e6xxx_chip *chip; member
372 int (*setup_errata)(struct mv88e6xxx_chip *chip);
374 int (*ieee_pri_map)(struct mv88e6xxx_chip *chip);
656 mv88e6xxx_has_pvt(struct mv88e6xxx_chip *chip) mv88e6xxx_has_pvt() argument
661 mv88e6xxx_num_databases(struct mv88e6xxx_chip *chip) mv88e6xxx_num_databases() argument
666 mv88e6xxx_num_macs(struct mv88e6xxx_chip *chip) mv88e6xxx_num_macs() argument
671 mv88e6xxx_num_ports(struct mv88e6xxx_chip *chip) mv88e6xxx_num_ports() argument
676 mv88e6xxx_port_mask(struct mv88e6xxx_chip *chip) mv88e6xxx_port_mask() argument
681 mv88e6xxx_num_gpio(struct mv88e6xxx_chip *chip) mv88e6xxx_num_gpio() argument
686 mv88e6xxx_is_invalid_port(struct mv88e6xxx_chip *chip, int port) mv88e6xxx_is_invalid_port() argument
699 mv88e6xxx_reg_lock(struct mv88e6xxx_chip *chip) mv88e6xxx_reg_lock() argument
704 mv88e6xxx_reg_unlock(struct mv88e6xxx_chip *chip) mv88e6xxx_reg_unlock() argument
[all...]
/kernel/linux/linux-6.6/sound/pci/hda/
H A Dhda_intel.c245 #define azx_get_snoop_type(chip) \
246 (((chip)->driver_caps & AZX_DCAPS_SNOOP_MASK) >> 10)
326 #define use_vga_switcheroo(chip) ((chip)->use_vga_switcheroo)
327 #define needs_eld_notify_link(chip) ((chip)->bus.keep_power)
329 #define use_vga_switcheroo(chip) 0
330 #define needs_eld_notify_link(chip) false
356 static int azx_acquire_irq(struct azx *chip, int do_disconnect);
357 static void set_default_power_save(struct azx *chip);
374 azx_init_pci(struct azx *chip) azx_init_pci() argument
441 bxt_reduce_dma_latency(struct azx *chip) bxt_reduce_dma_latency() argument
459 intel_get_lctl_scf(struct azx *chip) intel_get_lctl_scf() argument
478 intel_ml_lctl_set_power(struct azx *chip, int state) intel_ml_lctl_set_power() argument
505 intel_init_lctl(struct azx *chip) intel_init_lctl() argument
542 hda_intel_init_chip(struct azx *chip, bool full_reset) hda_intel_init_chip() argument
572 azx_get_delay_from_lpib(struct azx *chip, struct azx_dev *azx_dev, unsigned int pos) azx_get_delay_from_lpib() argument
606 azx_position_check(struct azx *chip, struct azx_dev *azx_dev) azx_position_check() argument
637 azx_position_ok(struct azx *chip, struct azx_dev *azx_dev) azx_position_ok() argument
715 struct azx *chip = &hda->chip; azx_irq_pending_work() local
755 azx_clear_irq_pending(struct azx *chip) azx_clear_irq_pending() argument
768 azx_acquire_irq(struct azx *chip, int do_disconnect) azx_acquire_irq() argument
789 azx_via_get_position(struct azx *chip, struct azx_dev *azx_dev) azx_via_get_position() argument
844 azx_get_pos_fifo(struct azx *chip, struct azx_dev *azx_dev) azx_get_pos_fifo() argument
875 azx_get_delay_from_fifo(struct azx *chip, struct azx_dev *azx_dev, unsigned int pos) azx_get_delay_from_fifo() argument
884 __azx_shutdown_chip(struct azx *chip, bool skip_link_reset) __azx_shutdown_chip() argument
897 azx_shutdown_chip(struct azx *chip) azx_shutdown_chip() argument
902 azx_add_card_list(struct azx *chip) azx_add_card_list() argument
910 azx_del_card_list(struct azx *chip) azx_del_card_list() argument
922 struct azx *chip; param_set_xint() local
945 struct azx *chip; azx_is_pm_ready() local
957 __azx_runtime_resume(struct azx *chip) __azx_runtime_resume() argument
994 struct azx *chip; azx_prepare() local
1014 struct azx *chip; azx_complete() local
1027 struct azx *chip; azx_suspend() local
1052 struct azx *chip; azx_resume() local
1076 struct azx *chip = card->private_data; azx_freeze_noirq() local
1090 struct azx *chip = card->private_data; azx_thaw_noirq() local
1105 struct azx *chip; azx_runtime_suspend() local
1122 struct azx *chip; azx_runtime_resume() local
1139 struct azx *chip; azx_runtime_idle() local
1189 struct azx *chip = card->private_data; azx_vs_set_state() local
1243 struct azx *chip = card->private_data; azx_vs_can_switch() local
1261 setup_vga_switcheroo_runtime_pm(struct azx *chip) setup_vga_switcheroo_runtime_pm() argument
1279 struct azx *chip = card->private_data; azx_vs_gpu_bound() local
1286 init_vga_switcheroo(struct azx *chip) init_vga_switcheroo() argument
1312 register_vga_switcheroo(struct azx *chip) register_vga_switcheroo() argument
1341 azx_free(struct azx *chip) azx_free() argument
1396 struct azx *chip = device->device_data; azx_dev_disconnect() local
1526 check_position_fix(struct azx *chip, int fix) check_position_fix() argument
1569 assign_position_fix(struct azx *chip, int fix) assign_position_fix() argument
1623 check_probe_mask(struct azx *chip, int dev) check_probe_mask() argument
1664 check_msi(struct azx *chip) check_msi() argument
1690 azx_check_snoop_available(struct azx *chip) azx_check_snoop_available() argument
1733 default_bdl_pos_adj(struct azx *chip) default_bdl_pos_adj() argument
1775 struct azx *chip; azx_create() local
1849 azx_first_init(struct azx *chip) azx_first_init() argument
2041 struct azx *chip = card->private_data; azx_firmware_cb() local
2054 disable_msi_reset_irq(struct azx *chip) disable_msi_reset_irq() argument
2094 struct azx *chip; azx_probe() local
2229 set_default_power_save(struct azx *chip) set_default_power_save() argument
2254 azx_probe_continue(struct azx *chip) azx_probe_continue() argument
2381 struct azx *chip; azx_remove() local
2412 struct azx *chip; azx_shutdown() local
[all...]
/kernel/linux/linux-5.10/drivers/net/dsa/
H A Dlan9303-core.c243 static int lan9303_read_wait(struct lan9303 *chip, int offset, u32 mask) in lan9303_read_wait() argument
251 ret = lan9303_read(chip->regmap, offset, &reg); in lan9303_read_wait()
253 dev_err(chip->dev, "%s failed to read offset %d: %d\n", in lan9303_read_wait()
265 static int lan9303_virt_phy_reg_read(struct lan9303 *chip, int regnum) in lan9303_virt_phy_reg_read() argument
273 ret = lan9303_read(chip->regmap, LAN9303_VIRT_PHY_BASE + regnum, &val); in lan9303_virt_phy_reg_read()
280 static int lan9303_virt_phy_reg_write(struct lan9303 *chip, int regnum, u16 val) in lan9303_virt_phy_reg_write() argument
285 return regmap_write(chip->regmap, LAN9303_VIRT_PHY_BASE + regnum, val); in lan9303_virt_phy_reg_write()
288 static int lan9303_indirect_phy_wait_for_completion(struct lan9303 *chip) in lan9303_indirect_phy_wait_for_completion() argument
290 return lan9303_read_wait(chip, LAN9303_PMI_ACCESS, in lan9303_indirect_phy_wait_for_completion()
294 static int lan9303_indirect_phy_read(struct lan9303 *chip, in argument
331 lan9303_indirect_phy_write(struct lan9303 *chip, int addr, int regnum, u16 val) lan9303_indirect_phy_write() argument
366 lan9303_switch_wait_for_completion(struct lan9303 *chip) lan9303_switch_wait_for_completion() argument
372 lan9303_write_switch_reg(struct lan9303 *chip, u16 regnum, u32 val) lan9303_write_switch_reg() argument
404 lan9303_read_switch_reg(struct lan9303 *chip, u16 regnum, u32 *val) lan9303_read_switch_reg() argument
440 lan9303_write_switch_reg_mask(struct lan9303 *chip, u16 regnum, u32 val, u32 mask) lan9303_write_switch_reg_mask() argument
455 lan9303_write_switch_port(struct lan9303 *chip, int port, u16 regnum, u32 val) lan9303_write_switch_port() argument
462 lan9303_read_switch_port(struct lan9303 *chip, int port, u16 regnum, u32 *val) lan9303_read_switch_port() argument
469 lan9303_detect_phy_setup(struct lan9303 *chip) lan9303_detect_phy_setup() argument
503 lan9303_alr_cache_find_free(struct lan9303 *chip) lan9303_alr_cache_find_free() argument
517 lan9303_alr_cache_find_mac(struct lan9303 *chip, const u8 *mac_addr) lan9303_alr_cache_find_mac() argument
532 lan9303_csr_reg_wait(struct lan9303 *chip, int regno, u32 mask) lan9303_csr_reg_wait() argument
548 lan9303_alr_make_entry_raw(struct lan9303 *chip, u32 dat0, u32 dat1) lan9303_alr_make_entry_raw() argument
563 lan9303_alr_loop(struct lan9303 *chip, alr_loop_cb_t *cb, void *ctx) lan9303_alr_loop() argument
613 alr_loop_cb_del_port_learned(struct lan9303 *chip, u32 dat0, u32 dat1, int portmap, void *ctx) alr_loop_cb_del_port_learned() argument
635 alr_loop_cb_fdb_port_dump(struct lan9303 *chip, u32 dat0, u32 dat1, int portmap, void *ctx) alr_loop_cb_fdb_port_dump() argument
651 lan9303_alr_set_entry(struct lan9303 *chip, const u8 *mac, u8 port_map, bool stp_override) lan9303_alr_set_entry() argument
681 lan9303_alr_add_port(struct lan9303 *chip, const u8 *mac, int port, bool stp_override) lan9303_alr_add_port() argument
705 lan9303_alr_del_port(struct lan9303 *chip, const u8 *mac, int port) lan9303_alr_del_port() argument
724 lan9303_disable_processing_port(struct lan9303 *chip, unsigned int port) lan9303_disable_processing_port() argument
741 lan9303_enable_processing_port(struct lan9303 *chip, unsigned int port) lan9303_enable_processing_port() argument
761 lan9303_setup_tagging(struct lan9303 *chip) lan9303_setup_tagging() argument
785 lan9303_separate_ports(struct lan9303 *chip) lan9303_separate_ports() argument
806 lan9303_bridge_ports(struct lan9303 *chip) lan9303_bridge_ports() argument
817 lan9303_handle_reset(struct lan9303 *chip) lan9303_handle_reset() argument
830 lan9303_disable_processing(struct lan9303 *chip) lan9303_disable_processing() argument
844 lan9303_check_device(struct lan9303 *chip) lan9303_check_device() argument
900 struct lan9303 *chip = ds->priv; lan9303_setup() local
995 struct lan9303 *chip = ds->priv; lan9303_get_ethtool_stats() local
1024 struct lan9303 *chip = ds->priv; lan9303_phy_read() local
1038 struct lan9303 *chip = ds->priv; lan9303_phy_write() local
1052 struct lan9303 *chip = ds->priv; lan9303_adjust_link() local
1088 struct lan9303 *chip = ds->priv; lan9303_port_enable() local
1098 struct lan9303 *chip = ds->priv; lan9303_port_disable() local
1110 struct lan9303 *chip = ds->priv; lan9303_port_bridge_join() local
1124 struct lan9303 *chip = ds->priv; lan9303_port_bridge_leave() local
1137 struct lan9303 *chip = ds->priv; lan9303_port_stp_state_set() local
1175 struct lan9303 *chip = ds->priv; lan9303_port_fast_age() local
1187 struct lan9303 *chip = ds->priv; lan9303_port_fdb_add() local
1198 struct lan9303 *chip = ds->priv; lan9303_port_fdb_del() local
1209 struct lan9303 *chip = ds->priv; lan9303_port_fdb_dump() local
1223 struct lan9303 *chip = ds->priv; lan9303_port_mdb_prepare() local
1240 struct lan9303 *chip = ds->priv; lan9303_port_mdb_add() local
1250 struct lan9303 *chip = ds->priv; lan9303_port_mdb_del() local
1284 lan9303_register_switch(struct lan9303 *chip) lan9303_register_switch() argument
1302 lan9303_probe_reset_gpio(struct lan9303 *chip, struct device_node *np) lan9303_probe_reset_gpio() argument
1331 lan9303_probe(struct lan9303 *chip, struct device_node *np) lan9303_probe() argument
1358 lan9303_remove(struct lan9303 *chip) lan9303_remove() argument
[all...]
/kernel/linux/linux-5.10/sound/isa/msnd/
H A Dmsnd.c195 static inline long get_play_delay_jiffies(struct snd_msnd *chip, long size) in get_play_delay_jiffies() argument
197 long tmp = (size * HZ * chip->play_sample_size) / 8; in get_play_delay_jiffies()
198 return tmp / (chip->play_sample_rate * chip->play_channels); in get_play_delay_jiffies()
201 static void snd_msnd_dsp_write_flush(struct snd_msnd *chip) in snd_msnd_dsp_write_flush() argument
203 if (!(chip->mode & FMODE_WRITE) || !test_bit(F_WRITING, &chip->flags)) in snd_msnd_dsp_write_flush()
205 set_bit(F_WRITEFLUSH, &chip->flags); in snd_msnd_dsp_write_flush()
207 &chip->writeflush, in snd_msnd_dsp_write_flush()
208 get_play_delay_jiffies(&chip, chi in snd_msnd_dsp_write_flush()
216 snd_msnd_dsp_halt(struct snd_msnd *chip, struct file *file) snd_msnd_dsp_halt() argument
246 snd_msnd_DARQ(struct snd_msnd *chip, int bank) snd_msnd_DARQ() argument
295 snd_msnd_DAPQ(struct snd_msnd *chip, int start) snd_msnd_DAPQ() argument
355 snd_msnd_play_reset_queue(struct snd_msnd *chip, unsigned int pcm_periods, unsigned int pcm_count) snd_msnd_play_reset_queue() argument
383 snd_msnd_capture_reset_queue(struct snd_msnd *chip, unsigned int pcm_periods, unsigned int pcm_count) snd_msnd_capture_reset_queue() argument
469 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_playback_open() local
485 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_playback_close() local
497 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_playback_hw_params() local
518 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_playback_prepare() local
531 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_playback_trigger() local
556 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_playback_pointer() local
574 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_capture_open() local
588 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_capture_close() local
597 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_capture_prepare() local
610 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_capture_trigger() local
632 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_capture_pointer() local
642 struct snd_msnd *chip = snd_pcm_substream_chip(substream); snd_msnd_capture_hw_params() local
670 struct snd_msnd *chip = card->private_data; snd_msnd_pcm() local
[all...]
/kernel/linux/linux-6.6/sound/pci/
H A Des1938.c71 #define SLIO_REG(chip, x) ((chip)->io_port + ESSIO_REG_##x)
73 #define SLDM_REG(chip, x) ((chip)->ddma_port + ESSDM_REG_##x)
75 #define SLSB_REG(chip, x) ((chip)->sb_port + ESSSB_REG_##x)
240 static void snd_es1938_mixer_write(struct es1938 *chip, unsigned char reg, unsigned char val) in snd_es1938_mixer_write() argument
243 spin_lock_irqsave(&chip->mixer_lock, flags); in snd_es1938_mixer_write()
244 outb(reg, SLSB_REG(chip, MIXERADDR)); in snd_es1938_mixer_write()
245 outb(val, SLSB_REG(chip, MIXERDAT in snd_es1938_mixer_write()
253 snd_es1938_mixer_read(struct es1938 *chip, unsigned char reg) snd_es1938_mixer_read() argument
268 snd_es1938_mixer_bits(struct es1938 *chip, unsigned char reg, unsigned char mask, unsigned char val) snd_es1938_mixer_bits() argument
291 snd_es1938_write_cmd(struct es1938 *chip, unsigned char cmd) snd_es1938_write_cmd() argument
309 snd_es1938_get_byte(struct es1938 *chip) snd_es1938_get_byte() argument
325 snd_es1938_write(struct es1938 *chip, unsigned char reg, unsigned char val) snd_es1938_write() argument
338 snd_es1938_read(struct es1938 *chip, unsigned char reg) snd_es1938_read() argument
354 snd_es1938_bits(struct es1938 *chip, unsigned char reg, unsigned char mask, unsigned char val) snd_es1938_bits() argument
378 snd_es1938_reset(struct es1938 *chip) snd_es1938_reset() argument
417 snd_es1938_reset_fifo(struct es1938 *chip) snd_es1938_reset_fifo() argument
444 snd_es1938_rate_set(struct es1938 *chip, struct snd_pcm_substream *substream, int mode) snd_es1938_rate_set() argument
471 snd_es1938_playback1_setdma(struct es1938 *chip) snd_es1938_playback1_setdma() argument
479 snd_es1938_playback2_setdma(struct es1938 *chip) snd_es1938_playback2_setdma() argument
494 snd_es1938_capture_setdma(struct es1938 *chip) snd_es1938_capture_setdma() argument
518 struct es1938 *chip = snd_pcm_substream_chip(substream); snd_es1938_capture_trigger() local
541 struct es1938 *chip = snd_pcm_substream_chip(substream); snd_es1938_playback1_trigger() local
571 struct es1938 *chip = snd_pcm_substream_chip(substream); snd_es1938_playback2_trigger() local
609 struct es1938 *chip = snd_pcm_substream_chip(substream); snd_es1938_capture_prepare() local
657 struct es1938 *chip = snd_pcm_substream_chip(substream); snd_es1938_playback1_prepare() local
694 struct es1938 *chip = snd_pcm_substream_chip(substream); snd_es1938_playback2_prepare() local
756 struct es1938 *chip = snd_pcm_substream_chip(substream); snd_es1938_capture_pointer() local
786 struct es1938 *chip = snd_pcm_substream_chip(substream); snd_es1938_playback1_pointer() local
798 struct es1938 *chip = snd_pcm_substream_chip(substream); snd_es1938_playback2_pointer() local
830 struct es1938 *chip = snd_pcm_substream_chip(substream); snd_es1938_capture_copy() local
893 struct es1938 *chip = snd_pcm_substream_chip(substream); snd_es1938_capture_open() local
908 struct es1938 *chip = snd_pcm_substream_chip(substream); snd_es1938_playback_open() local
933 struct es1938 *chip = snd_pcm_substream_chip(substream); snd_es1938_capture_close() local
941 struct es1938 *chip = snd_pcm_substream_chip(substream); snd_es1938_playback_close() local
974 snd_es1938_new_pcm(struct es1938 *chip, int device) snd_es1938_new_pcm() argument
1015 struct es1938 *chip = snd_kcontrol_chip(kcontrol); snd_es1938_get_mux() local
1023 struct es1938 *chip = snd_kcontrol_chip(kcontrol); snd_es1938_put_mux() local
1036 struct es1938 *chip = snd_kcontrol_chip(kcontrol); snd_es1938_get_spatializer_enable() local
1045 struct es1938 *chip = snd_kcontrol_chip(kcontrol); snd_es1938_put_spatializer_enable() local
1071 struct es1938 *chip = snd_kcontrol_chip(kcontrol); snd_es1938_get_hw_volume() local
1082 struct es1938 *chip = snd_kcontrol_chip(kcontrol); snd_es1938_get_hw_switch() local
1090 struct es1938 *chip = snd_kcontrol_chip(kcontrol); snd_es1938_hwv_free() local
1097 snd_es1938_reg_bits(struct es1938 *chip, unsigned char reg, unsigned char mask, unsigned char val) snd_es1938_reg_bits() argument
1106 snd_es1938_reg_read(struct es1938 *chip, unsigned char reg) snd_es1938_reg_read() argument
1143 struct es1938 *chip = snd_kcontrol_chip(kcontrol); snd_es1938_get_single() local
1160 struct es1938 *chip = snd_kcontrol_chip(kcontrol); snd_es1938_put_single() local
1204 struct es1938 *chip = snd_kcontrol_chip(kcontrol); snd_es1938_get_double() local
1230 struct es1938 *chip = snd_kcontrol_chip(kcontrol); snd_es1938_put_double() local
1372 snd_es1938_chip_init(struct es1938 *chip) snd_es1938_chip_init() argument
1414 struct es1938 *chip = card->private_data; es1938_suspend() local
1437 struct es1938 *chip = card->private_data; es1938_resume() local
1471 snd_es1938_create_gameport(struct es1938 *chip) snd_es1938_create_gameport() argument
1492 snd_es1938_free_gameport(struct es1938 *chip) snd_es1938_free_gameport() argument
1500 snd_es1938_create_gameport(struct es1938 *chip) snd_es1938_create_gameport() argument
1501 snd_es1938_free_gameport(struct es1938 *chip) snd_es1938_free_gameport() argument
1506 struct es1938 *chip = card->private_data; snd_es1938_free() local
1522 struct es1938 *chip = card->private_data; snd_es1938_create() local
1573 struct es1938 *chip = dev_id; snd_es1938_interrupt() local
1660 snd_es1938_mixer(struct es1938 *chip) snd_es1938_mixer() argument
1704 struct es1938 *chip; __snd_es1938_probe() local
[all...]
/kernel/linux/linux-5.10/drivers/char/tpm/eventlog/
H A Dcommon.c32 struct tpm_chip *chip; in tpm_bios_measurements_open() local
41 chip = chip_seqops->chip; in tpm_bios_measurements_open()
42 get_device(&chip->dev); in tpm_bios_measurements_open()
49 seq->private = chip; in tpm_bios_measurements_open()
59 struct tpm_chip *chip = (struct tpm_chip *)seq->private; in tpm_bios_measurements_release() local
61 put_device(&chip->dev); in tpm_bios_measurements_release()
74 static int tpm_read_log(struct tpm_chip *chip) in tpm_read_log() argument
78 if (chip->log.bios_event_log != NULL) { in tpm_read_log()
79 dev_dbg(&chip in tpm_read_log()
103 tpm_bios_log_setup(struct tpm_chip *chip) tpm_bios_log_setup() argument
169 tpm_bios_log_teardown(struct tpm_chip *chip) tpm_bios_log_teardown() argument
[all...]
/kernel/linux/linux-6.6/drivers/char/tpm/eventlog/
H A Dcommon.c32 struct tpm_chip *chip; in tpm_bios_measurements_open() local
41 chip = chip_seqops->chip; in tpm_bios_measurements_open()
42 get_device(&chip->dev); in tpm_bios_measurements_open()
49 seq->private = chip; in tpm_bios_measurements_open()
59 struct tpm_chip *chip = seq->private; in tpm_bios_measurements_release() local
61 put_device(&chip->dev); in tpm_bios_measurements_release()
74 static int tpm_read_log(struct tpm_chip *chip) in tpm_read_log() argument
78 if (chip->log.bios_event_log != NULL) { in tpm_read_log()
79 dev_dbg(&chip in tpm_read_log()
103 tpm_bios_log_setup(struct tpm_chip *chip) tpm_bios_log_setup() argument
169 tpm_bios_log_teardown(struct tpm_chip *chip) tpm_bios_log_teardown() argument
[all...]
/kernel/linux/linux-5.10/sound/pci/echoaudio/
H A Dindigoio_dsp.c32 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
34 static int update_vmixer_level(struct echoaudio *chip);
37 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw() argument
44 if ((err = init_dsp_comm_page(chip))) { in init_hw()
45 dev_err(chip->card->dev, in init_hw()
50 chip->device_id = device_id; in init_hw()
51 chip->subdevice_id = subdevice_id; in init_hw()
52 chip->bad_board = true; in init_hw()
53 chip->dsp_code_to_load = FW_INDIGO_IO_DSP; in init_hw()
56 chip in init_hw()
68 set_mixer_defaults(struct echoaudio *chip) set_mixer_defaults() argument
75 detect_input_clocks(const struct echoaudio *chip) detect_input_clocks() argument
83 load_asic(struct echoaudio *chip) load_asic() argument
90 set_sample_rate(struct echoaudio *chip, u32 rate) set_sample_rate() argument
104 set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, int gain) set_vmixer_gain() argument
128 update_vmixer_level(struct echoaudio *chip) update_vmixer_level() argument
[all...]
/kernel/linux/linux-6.6/sound/pci/echoaudio/
H A Dindigoio_dsp.c32 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
34 static int update_vmixer_level(struct echoaudio *chip);
37 static int init_hw(struct echoaudio *chip, u16 device_id, u16 subdevice_id) in init_hw() argument
44 err = init_dsp_comm_page(chip); in init_hw()
46 dev_err(chip->card->dev, in init_hw()
51 chip->device_id = device_id; in init_hw()
52 chip->subdevice_id = subdevice_id; in init_hw()
53 chip->bad_board = true; in init_hw()
54 chip->dsp_code_to_load = FW_INDIGO_IO_DSP; in init_hw()
57 chip in init_hw()
70 set_mixer_defaults(struct echoaudio *chip) set_mixer_defaults() argument
77 detect_input_clocks(const struct echoaudio *chip) detect_input_clocks() argument
85 load_asic(struct echoaudio *chip) load_asic() argument
92 set_sample_rate(struct echoaudio *chip, u32 rate) set_sample_rate() argument
106 set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, int gain) set_vmixer_gain() argument
130 update_vmixer_level(struct echoaudio *chip) update_vmixer_level() argument
[all...]
/kernel/linux/linux-6.6/drivers/power/supply/
H A Dmax17040_battery.c156 static int max17040_reset(struct max17040_chip *chip) in max17040_reset() argument
158 return regmap_write(chip->regmap, MAX17040_CMD, chip->data.reset_val); in max17040_reset()
161 static int max17040_set_low_soc_alert(struct max17040_chip *chip, u32 level) in max17040_set_low_soc_alert() argument
163 level = 32 - level * (chip->quirk_double_soc ? 2 : 1); in max17040_set_low_soc_alert()
164 return regmap_update_bits(chip->regmap, MAX17040_CONFIG, in max17040_set_low_soc_alert()
168 static int max17040_set_soc_alert(struct max17040_chip *chip, bool enable) in max17040_set_soc_alert() argument
170 return regmap_update_bits(chip->regmap, MAX17040_CONFIG, in max17040_set_soc_alert()
174 static int max17040_set_rcomp(struct max17040_chip *chip, u16 rcomp) in max17040_set_rcomp() argument
176 u16 mask = chip in max17040_set_rcomp()
182 max17040_raw_vcell_to_uvolts(struct max17040_chip *chip, u16 vcell) max17040_raw_vcell_to_uvolts() argument
190 max17040_get_vcell(struct max17040_chip *chip) max17040_get_vcell() argument
199 max17040_get_soc(struct max17040_chip *chip) max17040_get_soc() argument
208 max17040_get_version(struct max17040_chip *chip) max17040_get_version() argument
218 max17040_get_online(struct max17040_chip *chip) max17040_get_online() argument
223 max17040_get_of_data(struct max17040_chip *chip) max17040_get_of_data() argument
260 max17040_check_changes(struct max17040_chip *chip) max17040_check_changes() argument
265 max17040_queue_work(struct max17040_chip *chip) max17040_queue_work() argument
273 struct max17040_chip *chip = data; max17040_stop_work() local
280 struct max17040_chip *chip; max17040_work() local
297 max17040_handle_soc_alert(struct max17040_chip *chip) max17040_handle_soc_alert() argument
319 struct max17040_chip *chip = dev; max17040_thread_handler() local
336 max17040_enable_alert_irq(struct max17040_chip *chip) max17040_enable_alert_irq() argument
363 struct max17040_chip *chip = power_supply_get_drvdata(psy); max17040_set_property() local
388 struct max17040_chip *chip = power_supply_get_drvdata(psy); max17040_get_property() local
438 struct max17040_chip *chip; max17040_probe() local
529 struct max17040_chip *chip = i2c_get_clientdata(client); max17040_suspend() local
546 struct max17040_chip *chip = i2c_get_clientdata(client); max17040_resume() local
[all...]
/kernel/linux/linux-6.6/drivers/iio/light/
H A Dtsl2563.c123 static int tsl2563_set_power(struct tsl2563_chip *chip, int on) in tsl2563_set_power() argument
125 struct i2c_client *client = chip->client; in tsl2563_set_power()
137 static int tsl2563_get_power(struct tsl2563_chip *chip) in tsl2563_get_power() argument
139 struct i2c_client *client = chip->client; in tsl2563_get_power()
149 static int tsl2563_configure(struct tsl2563_chip *chip) in tsl2563_configure() argument
153 ret = i2c_smbus_write_byte_data(chip->client, in tsl2563_configure()
155 chip->gainlevel->gaintime); in tsl2563_configure()
158 ret = i2c_smbus_write_word_data(chip->client, in tsl2563_configure()
160 chip->high_thres); in tsl2563_configure()
163 ret = i2c_smbus_write_word_data(chip in tsl2563_configure()
178 struct tsl2563_chip *chip = tsl2563_poweroff_work() local
183 tsl2563_detect(struct tsl2563_chip *chip) tsl2563_detect() argument
198 tsl2563_read_id(struct tsl2563_chip *chip, u8 *id) tsl2563_read_id() argument
212 tsl2563_configure_irq(struct tsl2563_chip *chip, bool enable) tsl2563_configure_irq() argument
264 tsl2563_wait_adc(struct tsl2563_chip *chip) tsl2563_wait_adc() argument
285 tsl2563_adjust_gainlevel(struct tsl2563_chip *chip, u16 adc) tsl2563_adjust_gainlevel() argument
306 tsl2563_get_adc(struct tsl2563_chip *chip) tsl2563_get_adc() argument
454 struct tsl2563_chip *chip = iio_priv(indio_dev); tsl2563_write_raw() local
476 struct tsl2563_chip *chip = iio_priv(indio_dev); tsl2563_read_raw() local
568 struct tsl2563_chip *chip = iio_priv(indio_dev); tsl2563_read_thresh() local
589 struct tsl2563_chip *chip = iio_priv(indio_dev); tsl2563_write_thresh() local
617 struct tsl2563_chip *chip = iio_priv(dev_info); tsl2563_event_handler() local
635 struct tsl2563_chip *chip = iio_priv(indio_dev); tsl2563_write_interrupt_config() local
668 struct tsl2563_chip *chip = iio_priv(indio_dev); tsl2563_read_interrupt_config() local
699 struct tsl2563_chip *chip; tsl2563_probe() local
786 struct tsl2563_chip *chip = iio_priv(indio_dev); tsl2563_remove() local
799 struct tsl2563_chip *chip = iio_priv(indio_dev); tsl2563_suspend() local
818 struct tsl2563_chip *chip = iio_priv(indio_dev); tsl2563_resume() local
[all...]
/kernel/linux/linux-5.10/sound/usb/6fire/
H A Dchip.c12 #include "chip.h"
46 static void usb6fire_chip_abort(struct sfire_chip *chip) in usb6fire_chip_abort() argument
48 if (chip) { in usb6fire_chip_abort()
49 if (chip->pcm) in usb6fire_chip_abort()
50 usb6fire_pcm_abort(chip); in usb6fire_chip_abort()
51 if (chip->midi) in usb6fire_chip_abort()
52 usb6fire_midi_abort(chip); in usb6fire_chip_abort()
53 if (chip->comm) in usb6fire_chip_abort()
54 usb6fire_comm_abort(chip); in usb6fire_chip_abort()
55 if (chip in usb6fire_chip_abort()
65 usb6fire_chip_destroy(struct sfire_chip *chip) usb6fire_chip_destroy() argument
86 struct sfire_chip *chip = NULL; usb6fire_chip_probe() local
172 struct sfire_chip *chip; usb6fire_chip_disconnect() local
[all...]
/kernel/linux/linux-6.6/sound/usb/6fire/
H A Dchip.c12 #include "chip.h"
45 static void usb6fire_chip_abort(struct sfire_chip *chip) in usb6fire_chip_abort() argument
47 if (chip) { in usb6fire_chip_abort()
48 if (chip->pcm) in usb6fire_chip_abort()
49 usb6fire_pcm_abort(chip); in usb6fire_chip_abort()
50 if (chip->midi) in usb6fire_chip_abort()
51 usb6fire_midi_abort(chip); in usb6fire_chip_abort()
52 if (chip->comm) in usb6fire_chip_abort()
53 usb6fire_comm_abort(chip); in usb6fire_chip_abort()
54 if (chip in usb6fire_chip_abort()
64 usb6fire_chip_destroy(struct sfire_chip *chip) usb6fire_chip_destroy() argument
85 struct sfire_chip *chip = NULL; usb6fire_chip_probe() local
171 struct sfire_chip *chip; usb6fire_chip_disconnect() local
[all...]
/kernel/linux/linux-6.6/drivers/char/tpm/
H A Dtpm_tis_core.c33 static void tpm_tis_clkrun_enable(struct tpm_chip *chip, bool value);
35 static bool wait_for_tpm_stat_cond(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat_cond() argument
38 u8 status = chip->ops->status(chip); in wait_for_tpm_stat_cond()
43 if (check_cancel && chip->ops->req_canceled(chip, status)) { in wait_for_tpm_stat_cond()
64 static int wait_for_tpm_stat(struct tpm_chip *chip, u8 mask, in wait_for_tpm_stat() argument
68 struct tpm_tis_data *priv = dev_get_drvdata(&chip->dev); in wait_for_tpm_stat()
77 status = chip->ops->status(chip); in wait_for_tpm_stat()
131 wait_startup(struct tpm_chip *chip, int l) wait_startup() argument
151 check_locality(struct tpm_chip *chip, int l) check_locality() argument
178 tpm_tis_relinquish_locality(struct tpm_chip *chip, int l) tpm_tis_relinquish_locality() argument
191 __tpm_tis_request_locality(struct tpm_chip *chip, int l) __tpm_tis_request_locality() argument
232 tpm_tis_request_locality(struct tpm_chip *chip, int l) tpm_tis_request_locality() argument
246 tpm_tis_status(struct tpm_chip *chip) tpm_tis_status() argument
281 tpm_tis_ready(struct tpm_chip *chip) tpm_tis_ready() argument
289 get_burstcount(struct tpm_chip *chip) get_burstcount() argument
314 recv_data(struct tpm_chip *chip, u8 *buf, size_t count) recv_data() argument
343 tpm_tis_try_recv(struct tpm_chip *chip, u8 *buf, size_t count) tpm_tis_try_recv() argument
400 tpm_tis_recv(struct tpm_chip *chip, u8 *buf, size_t count) tpm_tis_recv() argument
432 tpm_tis_send_data(struct tpm_chip *chip, const u8 *buf, size_t len) tpm_tis_send_data() argument
506 __tpm_tis_disable_interrupts(struct tpm_chip *chip) __tpm_tis_disable_interrupts() argument
518 tpm_tis_disable_interrupts(struct tpm_chip *chip) tpm_tis_disable_interrupts() argument
536 tpm_tis_send_main(struct tpm_chip *chip, const u8 *buf, size_t len) tpm_tis_send_main() argument
576 tpm_tis_send(struct tpm_chip *chip, u8 *buf, size_t len) tpm_tis_send() argument
613 tpm_tis_update_durations(struct tpm_chip *chip, unsigned long *duration_cap) tpm_tis_update_durations() argument
689 tpm_tis_update_timeouts(struct tpm_chip *chip, unsigned long *timeout_cap) tpm_tis_update_timeouts() argument
728 probe_itpm(struct tpm_chip *chip) probe_itpm() argument
776 tpm_tis_req_canceled(struct tpm_chip *chip, u8 status) tpm_tis_req_canceled() argument
795 tpm_tis_revert_interrupts(struct tpm_chip *chip) tpm_tis_revert_interrupts() argument
825 tpm_tis_update_unhandled_irqs(struct tpm_chip *chip) tpm_tis_update_unhandled_irqs() argument
848 struct tpm_chip *chip = dev_id; tis_int_handler() local
883 tpm_tis_gen_interrupt(struct tpm_chip *chip) tpm_tis_gen_interrupt() argument
904 struct tpm_chip *chip = priv->chip; tpm_tis_free_irq_func() local
914 tpm_tis_probe_irq_single(struct tpm_chip *chip, u32 intmask, int flags, int irq) tpm_tis_probe_irq_single() argument
987 tpm_tis_probe_irq(struct tpm_chip *chip, u32 intmask) tpm_tis_probe_irq() argument
1009 tpm_tis_remove(struct tpm_chip *chip) tpm_tis_remove() argument
1041 tpm_tis_clkrun_enable(struct tpm_chip *chip, bool value) tpm_tis_clkrun_enable() argument
1110 struct tpm_chip *chip; tpm_tis_core_init() local
1311 tpm_tis_reenable_interrupts(struct tpm_chip *chip) tpm_tis_reenable_interrupts() argument
1335 struct tpm_chip *chip = dev_get_drvdata(dev); tpm_tis_resume() local
[all...]
/kernel/linux/linux-5.10/drivers/usb/typec/tcpm/
H A Dtcpci_maxim.c72 static int max_tcpci_read16(struct max_tcpci_chip *chip, unsigned int reg, u16 *val) in max_tcpci_read16() argument
74 return regmap_raw_read(chip->data.regmap, reg, val, sizeof(u16)); in max_tcpci_read16()
77 static int max_tcpci_write16(struct max_tcpci_chip *chip, unsigned int reg, u16 val) in max_tcpci_write16() argument
79 return regmap_raw_write(chip->data.regmap, reg, &val, sizeof(u16)); in max_tcpci_write16()
82 static int max_tcpci_read8(struct max_tcpci_chip *chip, unsigned int reg, u8 *val) in max_tcpci_read8() argument
84 return regmap_raw_read(chip->data.regmap, reg, val, sizeof(u8)); in max_tcpci_read8()
87 static int max_tcpci_write8(struct max_tcpci_chip *chip, unsigned int reg, u8 val) in max_tcpci_write8() argument
89 return regmap_raw_write(chip->data.regmap, reg, &val, sizeof(u8)); in max_tcpci_write8()
92 static void max_tcpci_init_regs(struct max_tcpci_chip *chip) in max_tcpci_init_regs() argument
97 ret = max_tcpci_write16(chip, TCPC_ALER in max_tcpci_init_regs()
140 process_rx(struct max_tcpci_chip *chip, u16 status) process_rx() argument
206 struct max_tcpci_chip *chip = tdata_to_max_tcpci(tdata); max_tcpci_set_vbus() local
232 process_power_status(struct max_tcpci_chip *chip) process_power_status() argument
260 process_tx(struct max_tcpci_chip *chip, u16 status) process_tx() argument
274 _max_tcpci_irq(struct max_tcpci_chip *chip, u16 status) _max_tcpci_irq() argument
345 struct max_tcpci_chip *chip = dev_id; max_tcpci_irq() local
371 struct max_tcpci_chip *chip = dev_id; max_tcpci_isr() local
381 max_tcpci_init_alert(struct max_tcpci_chip *chip, struct i2c_client *client) max_tcpci_init_alert() argument
399 struct max_tcpci_chip *chip = tdata_to_max_tcpci(tdata); max_tcpci_start_toggling() local
418 struct max_tcpci_chip *chip; max_tcpci_probe() local
468 struct max_tcpci_chip *chip = i2c_get_clientdata(client); max_tcpci_remove() local
[all...]

Completed in 38 milliseconds

12345678910>>...135