Home
last modified time | relevance | path

Searched refs:cache (Results 1 – 20 of 20) sorted by relevance

/sound/firewire/motu/
A Damdtp-motu.c45 struct amdtp_motu_cache *cache; member
307 const unsigned int cache_size = cache->size; in cache_event_offsets()
308 unsigned int cache_tail = cache->tail; in cache_event_offsets()
327 cache->tail = cache_tail; in cache_event_offsets()
328 cache->tx_cycle_count = (cache->tx_cycle_count + 1) % CYCLES_PER_SECOND; in cache_event_offsets()
340 if (p->cache->tx_cycle_count == UINT_MAX) in process_ir_ctx_payloads()
378 unsigned int cache_head = cache->head; in write_sph()
391 cache->head = cache_head; in write_sph()
392 cache->rx_cycle_count = (cache->rx_cycle_count + 1) % CYCLES_PER_SECOND; in write_sph()
403 if (p->cache->rx_cycle_count == UINT_MAX) in process_it_ctx_payloads()
[all …]
A Dmotu-stream.c156 kfree(motu->cache.event_offsets); in snd_motu_stream_reserve_duplex()
157 motu->cache.event_offsets = NULL; in snd_motu_stream_reserve_duplex()
188 motu->cache.size = motu->tx_stream.syt_interval * frames_per_buffer; in snd_motu_stream_reserve_duplex()
189 motu->cache.event_offsets = kcalloc(motu->cache.size, sizeof(*motu->cache.event_offsets), in snd_motu_stream_reserve_duplex()
191 if (!motu->cache.event_offsets) { in snd_motu_stream_reserve_duplex()
285 motu->cache.tail = 0; in snd_motu_stream_start_duplex()
286 motu->cache.tx_cycle_count = UINT_MAX; in snd_motu_stream_start_duplex()
287 motu->cache.head = 0; in snd_motu_stream_start_duplex()
288 motu->cache.rx_cycle_count = UINT_MAX; in snd_motu_stream_start_duplex()
327 kfree(motu->cache.event_offsets); in snd_motu_stream_stop_duplex()
[all …]
A Dmotu.h81 struct amdtp_motu_cache cache; member
151 struct amdtp_motu_cache *cache);
/sound/soc/codecs/
A Didt821034.c39 } cache; member
131 idt821034->cache.ch[ch].rx_slot); in idt821034_set_channel_power()
138 idt821034->cache.ch[ch].tx_slot); in idt821034_set_channel_power()
148 idt821034->cache.ch[ch].power = power; in idt821034_set_channel_power()
155 return idt821034->cache.ch[ch].power; in idt821034_get_channel_power()
182 ts = idt821034->cache.ch[0].rx_slot; in idt821034_set_codec_conf()
185 ts = idt821034->cache.ch[0].tx_slot; in idt821034_set_codec_conf()
195 idt821034->cache.codec_conf = codec_conf; in idt821034_set_codec_conf()
201 return idt821034->cache.codec_conf; in idt821034_get_codec_conf()
225 idt821034->cache.ch[ch].rx_slot = ts_num; in idt821034_set_channel_ts()
[all …]
A Dwm_hubs.c153 struct wm_hubs_dcs_cache *cache; in wm_hubs_dcs_cache_get() local
163 if (cache->left != left || cache->right != right) in wm_hubs_dcs_cache_get()
166 *entry = cache; in wm_hubs_dcs_cache_get()
176 struct wm_hubs_dcs_cache *cache; in wm_hubs_dcs_cache_set() local
181 cache = devm_kzalloc(component->dev, sizeof(*cache), GFP_KERNEL); in wm_hubs_dcs_cache_set()
182 if (!cache) in wm_hubs_dcs_cache_set()
186 cache->left &= WM8993_HPOUT1L_VOL_MASK; in wm_hubs_dcs_cache_set()
189 cache->right &= WM8993_HPOUT1R_VOL_MASK; in wm_hubs_dcs_cache_set()
191 cache->dcs_cfg = dcs_cfg; in wm_hubs_dcs_cache_set()
245 struct wm_hubs_dcs_cache *cache; in enable_dc_servo() local
[all …]
A Dpeb2466.c63 } cache; member
1673 cache = &peb2466->gpio.cache.xr0; in peb2466_chip_gpio_get_cache()
1676 cache = &peb2466->gpio.cache.xr1; in peb2466_chip_gpio_get_cache()
1679 cache = &peb2466->gpio.cache.xr2; in peb2466_chip_gpio_get_cache()
1682 cache = &peb2466->gpio.cache.xr3; in peb2466_chip_gpio_get_cache()
1685 cache = NULL; in peb2466_chip_gpio_get_cache()
1688 return cache; in peb2466_chip_gpio_get_cache()
1708 if (!cache) { in peb2466_chip_gpio_update_bits()
1713 tmp = *cache; in peb2466_chip_gpio_update_bits()
1721 *cache = tmp; in peb2466_chip_gpio_update_bits()
[all …]
A Duda1380.c65 u16 *cache = uda1380->reg_cache; in uda1380_read_reg_cache() local
71 return cache[reg]; in uda1380_read_reg_cache()
81 u16 *cache = uda1380->reg_cache; in uda1380_write_reg_cache() local
85 if ((reg >= 0x10) && (cache[reg] != value)) in uda1380_write_reg_cache()
87 cache[reg] = value; in uda1380_write_reg_cache()
138 u16 *cache = uda1380->reg_cache; in uda1380_sync_cache() local
143 data[1] = (cache[reg] & 0xff00) >> 8; in uda1380_sync_cache()
144 data[2] = cache[reg] & 0x00ff; in uda1380_sync_cache()
A Dmax98373-i2c.c482 regmap_read(max98373->regmap, max98373->cache[i].reg, &max98373->cache[i].val); in max98373_suspend()
545 max98373->cache = devm_kcalloc(&i2c->dev, max98373->cache_num, in max98373_i2c_probe()
546 sizeof(*max98373->cache), in max98373_i2c_probe()
548 if (!max98373->cache) { in max98373_i2c_probe()
554 max98373->cache[i].reg = max98373_i2c_cache_reg[i]; in max98373_i2c_probe()
A Dmax98373-sdw.c256 regmap_read(max98373->regmap, max98373->cache[i].reg, &max98373->cache[i].val); in max98373_suspend()
747 max98373->cache = devm_kcalloc(dev, max98373->cache_num, in max98373_init()
748 sizeof(*max98373->cache), in max98373_init()
750 if (!max98373->cache) in max98373_init()
754 max98373->cache[i].reg = max98373_sdw_cache_reg[i]; in max98373_init()
A Dsigmadsp.c38 uint8_t cache[]; member
146 memcpy(ctrl->cache, data, ctrl->num_bytes); in sigmadsp_ctrl_put()
166 ret = sigmadsp_read(sigmadsp, ctrl->addr, ctrl->cache, in sigmadsp_ctrl_get()
173 memcpy(ucontrol->value.bytes.data, ctrl->cache, in sigmadsp_ctrl_get()
683 sigmadsp_ctrl_write(sigmadsp, ctrl, ctrl->cache); in sigmadsp_activate_ctrl()
A Dtscs454.c71 u8 cache[COEFF_RAM_SIZE]; member
76 static inline void init_coeff_ram_cache(u8 *cache) in init_coeff_ram_cache() argument
86 cache[((norm_addrs[i] + 1) * COEFF_SIZE) - 1] = 0x40; in init_coeff_ram_cache()
91 init_coeff_ram_cache(ram->cache); in coeff_ram_init()
321 coeff_ram = tscs454->dac_ram.cache; in coeff_ram_get()
324 coeff_ram = tscs454->spk_ram.cache; in coeff_ram_get()
327 coeff_ram = tscs454->sub_ram.cache; in coeff_ram_get()
409 coeff_ram = tscs454->dac_ram.cache; in coeff_ram_put()
416 coeff_ram = tscs454->spk_ram.cache; in coeff_ram_put()
423 coeff_ram = tscs454->sub_ram.cache; in coeff_ram_put()
[all …]
A Dmax98373.c188 if (mc->reg == max98373->cache[i].reg) { in max98373_feedback_get()
189 ucontrol->value.integer.value[0] = max98373->cache[i].val; in max98373_feedback_get()
A Dmax98373.h224 struct max98373_cache *cache; member
A Dtlv320dac33.c164 u8 *cache = dac33->reg_cache; in dac33_read_reg_cache() local
168 return cache[reg]; in dac33_read_reg_cache()
175 u8 *cache = dac33->reg_cache; in dac33_write_reg_cache() local
179 cache[reg] = value; in dac33_write_reg_cache()
A Dwm_adsp.c478 ret = cs_dsp_coeff_read_ctrl(cs_ctl, 0, cs_ctl->cache, size); in wm_coeff_tlv_get()
480 if (!ret && copy_to_user(bytes, cs_ctl->cache, size)) in wm_coeff_tlv_get()
/sound/firewire/
A Damdtp-stream.c512 unsigned int cycles = s->ctx_data.tx.cache.pos; in calculate_cached_cycle_count()
525 struct seq_desc *cache = s->ctx_data.tx.cache.descs; in cache_seq() local
531 struct seq_desc *dst = cache + cache_pos; in cache_seq()
543 s->ctx_data.tx.cache.pos = cache_pos; in cache_seq()
561 const struct seq_desc *cache = target->ctx_data.tx.cache.descs; in pool_replayed_seq() local
567 descs[pos] = cache[cache_pos]; in pool_replayed_seq()
1754 s->ctx_data.tx.cache.pos = 0; in amdtp_stream_start()
1755 s->ctx_data.tx.cache.descs = kcalloc(s->ctx_data.tx.cache.size, in amdtp_stream_start()
1757 if (!s->ctx_data.tx.cache.descs) { in amdtp_stream_start()
1860 kfree(s->ctx_data.tx.cache.descs); in amdtp_stream_start()
[all …]
A Damdtp-stream.h155 } cache; member
/sound/pci/emu10k1/
A Demumixer.c771 unsigned int val, cache; in snd_emu1010_adc_pads_put() local
775 cache = emu->emu1010.adc_pads; in snd_emu1010_adc_pads_put()
777 cache = cache | mask; in snd_emu1010_adc_pads_put()
779 cache = cache & ~mask; in snd_emu1010_adc_pads_put()
780 change = (cache != emu->emu1010.adc_pads); in snd_emu1010_adc_pads_put()
783 emu->emu1010.adc_pads = cache; in snd_emu1010_adc_pads_put()
829 unsigned int val, cache; in snd_emu1010_dac_pads_put() local
833 cache = emu->emu1010.dac_pads; in snd_emu1010_dac_pads_put()
835 cache = cache | mask; in snd_emu1010_dac_pads_put()
837 cache = cache & ~mask; in snd_emu1010_dac_pads_put()
[all …]
/sound/aoa/codecs/
A Donyx.c48 u8 cache[16]; member
71 *value = onyx->cache[reg-FIRSTREGISTER]; in onyx_read_register()
80 onyx->cache[ONYX_REG_CONTROL-FIRSTREGISTER] = *value; in onyx_read_register()
90 onyx->cache[reg-FIRSTREGISTER] = value; in onyx_write_register()
594 regs[i] = onyx->cache[register_map[i]-FIRSTREGISTER]; in onyx_register_init()
/sound/pci/rme9652/
A Dhdsp.c695 const u32 *cache; in snd_hdsp_load_firmware_from_cache() local
698 cache = hdsp->fw_uploaded; in snd_hdsp_load_firmware_from_cache()
702 cache = (u32 *)hdsp->firmware->data; in snd_hdsp_load_firmware_from_cache()
703 if (!cache) in snd_hdsp_load_firmware_from_cache()
724 hdsp_write(hdsp, HDSP_fifoData, cache[i]); in snd_hdsp_load_firmware_from_cache()

Completed in 84 milliseconds