Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 214) sorted by relevance

123456789

/sound/soc/sof/
Dops.c15 bool snd_sof_pci_update_bits_unlocked(struct snd_sof_dev *sdev, u32 offset, in snd_sof_pci_update_bits_unlocked() argument
22 pci_read_config_dword(pci, offset, &ret); in snd_sof_pci_update_bits_unlocked()
24 dev_dbg(sdev->dev, "Debug PCIR: %8.8x at %8.8x\n", old & mask, offset); in snd_sof_pci_update_bits_unlocked()
31 pci_write_config_dword(pci, offset, new); in snd_sof_pci_update_bits_unlocked()
33 offset); in snd_sof_pci_update_bits_unlocked()
38 bool snd_sof_pci_update_bits(struct snd_sof_dev *sdev, u32 offset, in snd_sof_pci_update_bits() argument
45 change = snd_sof_pci_update_bits_unlocked(sdev, offset, mask, value); in snd_sof_pci_update_bits()
52 u32 offset, u32 mask, u32 value) in snd_sof_dsp_update_bits_unlocked() argument
57 ret = snd_sof_dsp_read(sdev, bar, offset); in snd_sof_dsp_update_bits_unlocked()
65 snd_sof_dsp_write(sdev, bar, offset, new); in snd_sof_dsp_update_bits_unlocked()
[all …]
Dops.h258 u32 offset, u32 value) in snd_sof_dsp_write() argument
261 sof_ops(sdev)->write(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write()
269 u32 offset, u64 value) in snd_sof_dsp_write64() argument
272 sof_ops(sdev)->write64(sdev, sdev->bar[bar] + offset, value); in snd_sof_dsp_write64()
280 u32 offset) in snd_sof_dsp_read() argument
283 return sof_ops(sdev)->read(sdev, sdev->bar[bar] + offset); in snd_sof_dsp_read()
290 u32 offset) in snd_sof_dsp_read64() argument
293 return sof_ops(sdev)->read64(sdev, sdev->bar[bar] + offset); in snd_sof_dsp_read64()
301 u32 offset, void *dest, size_t bytes) in snd_sof_dsp_block_read() argument
303 sof_ops(sdev)->block_read(sdev, bar, offset, dest, bytes); in snd_sof_dsp_block_read()
[all …]
Dloader.c89 int snd_sof_fw_parse_ext_data(struct snd_sof_dev *sdev, u32 bar, u32 offset) in snd_sof_fw_parse_ext_data() argument
100 snd_sof_dsp_block_read(sdev, bar, offset, ext_data, in snd_sof_fw_parse_ext_data()
106 snd_sof_dsp_block_read(sdev, bar, offset + sizeof(*ext_hdr), in snd_sof_fw_parse_ext_data()
140 offset += ext_hdr->hdr.size; in snd_sof_fw_parse_ext_data()
141 snd_sof_dsp_block_read(sdev, bar, offset, ext_data, in snd_sof_fw_parse_ext_data()
401 inbox_offset = window_offset + elem->offset; in sof_get_windows()
410 outbox_offset = window_offset + elem->offset; in sof_get_windows()
422 elem->offset, in sof_get_windows()
427 debug_offset = window_offset + elem->offset; in sof_get_windows()
432 elem->offset, in sof_get_windows()
[all …]
Dutils.c53 void sof_mailbox_write(struct snd_sof_dev *sdev, u32 offset, in sof_mailbox_write() argument
56 void __iomem *dest = sdev->bar[sdev->mailbox_bar] + offset; in sof_mailbox_write()
62 void sof_mailbox_read(struct snd_sof_dev *sdev, u32 offset, in sof_mailbox_read() argument
65 void __iomem *src = sdev->bar[sdev->mailbox_bar] + offset; in sof_mailbox_read()
75 void sof_block_write(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *src, in sof_block_write() argument
78 void __iomem *dest = sdev->bar[bar] + offset; in sof_block_write()
106 void sof_block_read(struct snd_sof_dev *sdev, u32 bar, u32 offset, void *dest, in sof_block_read() argument
109 void __iomem *src = sdev->bar[bar] + offset; in sof_block_read()
/sound/soc/intel/common/
Dsst-dsp.c23 void sst_shim32_write(void __iomem *addr, u32 offset, u32 value) in sst_shim32_write() argument
25 writel(value, addr + offset); in sst_shim32_write()
29 u32 sst_shim32_read(void __iomem *addr, u32 offset) in sst_shim32_read() argument
31 return readl(addr + offset); in sst_shim32_read()
35 void sst_shim32_write64(void __iomem *addr, u32 offset, u64 value) in sst_shim32_write64() argument
37 writeq(value, addr + offset); in sst_shim32_write64()
41 u64 sst_shim32_read64(void __iomem *addr, u32 offset) in sst_shim32_read64() argument
43 return readq(addr + offset); in sst_shim32_read64()
48 void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value) in sst_dsp_shim_write() argument
53 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write()
[all …]
Dsst-dsp.h30 void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value);
31 u32 sst_dsp_shim_read(struct sst_dsp *sst, u32 offset);
32 int sst_dsp_shim_update_bits(struct sst_dsp *sst, u32 offset,
34 void sst_dsp_shim_update_bits_forced(struct sst_dsp *sst, u32 offset,
38 void sst_dsp_shim_write_unlocked(struct sst_dsp *sst, u32 offset, u32 value);
39 u32 sst_dsp_shim_read_unlocked(struct sst_dsp *sst, u32 offset);
40 int sst_dsp_shim_update_bits_unlocked(struct sst_dsp *sst, u32 offset,
42 void sst_dsp_shim_update_bits_forced_unlocked(struct sst_dsp *sst, u32 offset,
46 void sst_shim32_write(void __iomem *addr, u32 offset, u32 value);
47 u32 sst_shim32_read(void __iomem *addr, u32 offset);
[all …]
/sound/firewire/dice/
Ddice.h127 unsigned int offset,
130 enum snd_dice_addr_type type, unsigned int offset,
134 unsigned int offset, in snd_dice_transaction_write_global() argument
138 SND_DICE_ADDR_TYPE_GLOBAL, offset, in snd_dice_transaction_write_global()
142 unsigned int offset, in snd_dice_transaction_read_global() argument
146 SND_DICE_ADDR_TYPE_GLOBAL, offset, in snd_dice_transaction_read_global()
150 unsigned int offset, in snd_dice_transaction_write_tx() argument
153 return snd_dice_transaction_write(dice, SND_DICE_ADDR_TYPE_TX, offset, in snd_dice_transaction_write_tx()
157 unsigned int offset, in snd_dice_transaction_read_tx() argument
160 return snd_dice_transaction_read(dice, SND_DICE_ADDR_TYPE_TX, offset, in snd_dice_transaction_read_tx()
[all …]
Ddice-transaction.c12 u64 offset) in get_subaddr() argument
16 offset += dice->tx_offset; in get_subaddr()
19 offset += dice->rx_offset; in get_subaddr()
22 offset += dice->sync_offset; in get_subaddr()
25 offset += dice->rsrv_offset; in get_subaddr()
29 offset += dice->global_offset; in get_subaddr()
32 offset += DICE_PRIVATE_SPACE; in get_subaddr()
33 return offset; in get_subaddr()
38 unsigned int offset, void *buf, unsigned int len) in snd_dice_transaction_write() argument
43 get_subaddr(dice, type, offset), buf, len, 0); in snd_dice_transaction_write()
[all …]
/sound/pci/emu10k1/
Demu10k1_patch.c29 int offset; in snd_emu10k1_sample_new() local
90 offset = 0; in snd_emu10k1_sample_new()
94 if (offset + size > blocksize) in snd_emu10k1_sample_new()
96 snd_emu10k1_synth_bzero(emu, sp->block, offset, size); in snd_emu10k1_sample_new()
97 offset += size; in snd_emu10k1_sample_new()
103 if (offset + size > blocksize) in snd_emu10k1_sample_new()
105 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) { in snd_emu10k1_sample_new()
110 offset += size; in snd_emu10k1_sample_new()
120 woffset = offset / 2; in snd_emu10k1_sample_new()
121 if (offset + loopsize * 2 > blocksize) in snd_emu10k1_sample_new()
[all …]
Dmemory.c31 #define get_aligned_page(offset) ((offset) >> PAGE_SHIFT) argument
83 blk->first_page = get_aligned_page(blk->mem.offset); in emu10k1_memblk_init()
84 blk->last_page = get_aligned_page(blk->mem.offset + blk->mem.size - 1); in emu10k1_memblk_init()
228 blk->mem.offset = aligned_page_offset(page); /* set aligned offset */ in search_empty()
554 static inline void *offset_ptr(struct snd_emu10k1 *emu, int page, int offset) in offset_ptr() argument
565 ptr += offset & (PAGE_SIZE - 1); in offset_ptr()
573 int offset, int size) in snd_emu10k1_synth_bzero() argument
579 offset += blk->offset & (PAGE_SIZE - 1); in snd_emu10k1_synth_bzero()
580 end_offset = offset + size; in snd_emu10k1_synth_bzero()
581 page = get_aligned_page(offset); in snd_emu10k1_synth_bzero()
[all …]
/sound/soc/codecs/
Drt5514-spi.c324 unsigned int i, end, offset = 0; in rt5514_spi_burst_read() local
329 while (offset < len) { in rt5514_spi_burst_read()
330 if (offset + RT5514_SPI_BUF_LEN <= len) in rt5514_spi_burst_read()
336 write_buf[1] = ((addr + offset) & 0xff000000) >> 24; in rt5514_spi_burst_read()
337 write_buf[2] = ((addr + offset) & 0x00ff0000) >> 16; in rt5514_spi_burst_read()
338 write_buf[3] = ((addr + offset) & 0x0000ff00) >> 8; in rt5514_spi_burst_read()
339 write_buf[4] = ((addr + offset) & 0x000000ff) >> 0; in rt5514_spi_burst_read()
353 x[2].rx_buf = rxbuf + offset; in rt5514_spi_burst_read()
361 offset += RT5514_SPI_BUF_LEN; in rt5514_spi_burst_read()
401 unsigned int i, end, offset = 0; in rt5514_spi_burst_write() local
[all …]
Drt5677-spi.c472 u32 offset; in rt5677_spi_read() local
498 for (offset = 0; offset < len; offset += t[1].len) { in rt5677_spi_read()
499 spi_cmd = rt5677_spi_select_cmd(true, (addr + offset) & 7, in rt5677_spi_read()
500 len - offset, &t[1].len); in rt5677_spi_read()
504 header[1] = ((addr + offset) & 0xff000000) >> 24; in rt5677_spi_read()
505 header[2] = ((addr + offset) & 0x00ff0000) >> 16; in rt5677_spi_read()
506 header[3] = ((addr + offset) & 0x0000ff00) >> 8; in rt5677_spi_read()
507 header[4] = ((addr + offset) & 0x000000ff) >> 0; in rt5677_spi_read()
515 rt5677_spi_reverse(cb + offset, len - offset, body, t[1].len); in rt5677_spi_read()
527 u32 offset; in rt5677_spi_write() local
[all …]
/sound/soc/sof/intel/
Dhda-ctrl.c66 u32 cap, offset, feature; in hda_dsp_ctrl_get_caps() local
81 offset = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, SOF_HDA_LLCH); in hda_dsp_ctrl_get_caps()
85 offset & SOF_HDA_CAP_NEXT_MASK); in hda_dsp_ctrl_get_caps()
87 cap = snd_sof_dsp_read(sdev, HDA_DSP_HDA_BAR, offset); in hda_dsp_ctrl_get_caps()
99 offset); in hda_dsp_ctrl_get_caps()
100 bus->ppcap = bus->remap_addr + offset; in hda_dsp_ctrl_get_caps()
105 offset); in hda_dsp_ctrl_get_caps()
106 bus->spbcap = bus->remap_addr + offset; in hda_dsp_ctrl_get_caps()
111 offset); in hda_dsp_ctrl_get_caps()
112 bus->drsmcap = bus->remap_addr + offset; in hda_dsp_ctrl_get_caps()
[all …]
/sound/soc/
Dsoc-ac97.c60 static int snd_soc_ac97_gpio_request(struct gpio_chip *chip, unsigned offset) in snd_soc_ac97_gpio_request() argument
62 if (offset >= AC97_NUM_GPIOS) in snd_soc_ac97_gpio_request()
69 unsigned offset) in snd_soc_ac97_gpio_direction_in() argument
73 dev_dbg(component->dev, "set gpio %d to output\n", offset); in snd_soc_ac97_gpio_direction_in()
75 1 << offset, 1 << offset); in snd_soc_ac97_gpio_direction_in()
78 static int snd_soc_ac97_gpio_get(struct gpio_chip *chip, unsigned offset) in snd_soc_ac97_gpio_get() argument
85 dev_dbg(component->dev, "get gpio %d : %d\n", offset, in snd_soc_ac97_gpio_get()
86 ret & (1 << offset)); in snd_soc_ac97_gpio_get()
88 return !!(ret & (1 << offset)); in snd_soc_ac97_gpio_get()
91 static void snd_soc_ac97_gpio_set(struct gpio_chip *chip, unsigned offset, in snd_soc_ac97_gpio_set() argument
[all …]
/sound/isa/sb/
Demu8000_patch.c74 read_word(const void __user *buf, int offset, int mode) in read_word() argument
79 get_user(cc, (unsigned char __user *)buf + offset); in read_word()
83 get_user(c, (unsigned short __user *)buf + offset); in read_word()
86 get_user(cc, (unsigned short __user *)buf + offset); in read_word()
120 write_word(struct snd_emu8000 *emu, int *offset, unsigned short data) in write_word() argument
125 EMU8000_SMALW_WRITE(emu, *offset); in write_word()
128 *offset += 1; in write_word()
142 int offset; in snd_emu8000_sample_new() local
187 dram_offset = EMU8000_DRAM_OFFSET + (sp->block->offset >> 1); in snd_emu8000_sample_new()
206 if (! sp->block->offset) { in snd_emu8000_sample_new()
[all …]
/sound/soc/sof/imx/
Dimx-common.c28 u32 offset = sdev->dsp_oops_offset; in imx8_get_registers() local
31 sof_mailbox_read(sdev, offset, xoops, sizeof(*xoops)); in imx8_get_registers()
39 offset += xoops->arch_hdr.totalsize; in imx8_get_registers()
40 sof_mailbox_read(sdev, offset, panic_info, sizeof(*panic_info)); in imx8_get_registers()
43 offset += sizeof(*panic_info); in imx8_get_registers()
44 sof_mailbox_read(sdev, offset, stack, stack_words * sizeof(u32)); in imx8_get_registers()
63 sof_mailbox_read(sdev, sdev->debug_box.offset + 0x4, &status, 4); in imx8_dump()
/sound/synth/emux/
Demux_effect.c40 long offset; /* offset in parameter record (-1 = not written) */ member
167 int offset; in snd_emux_send_effect() local
186 offset = parm_defs[type].offset; in snd_emux_send_effect()
187 if (offset < 0) in snd_emux_send_effect()
192 offset++; in snd_emux_send_effect()
195 offset++; in snd_emux_send_effect()
203 srcp = (unsigned char*)&vp->reg.parm + offset; in snd_emux_send_effect()
204 origp = (unsigned char*)&vp->zone->v.parm + offset; in snd_emux_send_effect()
235 int offset; in snd_emux_setup_effect() local
238 offset = parm_defs[i].offset; in snd_emux_setup_effect()
[all …]
/sound/firewire/motu/
Dmotu-transaction.c15 int snd_motu_transaction_read(struct snd_motu *motu, u32 offset, __be32 *reg, in snd_motu_transaction_read() argument
28 SND_MOTU_ADDR_BASE + offset, reg, size, 0); in snd_motu_transaction_read()
31 int snd_motu_transaction_write(struct snd_motu *motu, u32 offset, __be32 *reg, in snd_motu_transaction_write() argument
44 SND_MOTU_ADDR_BASE + offset, reg, size, 0); in snd_motu_transaction_write()
49 int generation, unsigned long long offset, in handle_message() argument
61 if (offset != motu->async_handler.offset || length != 4) { in handle_message()
86 (motu->async_handler.offset >> 32)); in snd_motu_transaction_reregister()
92 data = cpu_to_be32(motu->async_handler.offset); in snd_motu_transaction_reregister()
/sound/soc/intel/catpt/
Dloader.c158 off = catpt_to_host_offset(info->offset); in catpt_store_memdumps()
218 off = catpt_to_host_offset(info->offset); in catpt_restore_memdumps()
263 off = catpt_to_host_offset(info->offset); in catpt_restore_fwimage()
332 u32 offset = sizeof(*basefw); in catpt_restore_basefw() local
342 blk = (struct catpt_fw_block_hdr *)((u8 *)basefw + offset); in catpt_restore_basefw()
346 ret = catpt_load_block(cdev, chan, paddr + offset, in catpt_restore_basefw()
350 ret = catpt_restore_fwimage(cdev, chan, paddr + offset, in catpt_restore_basefw()
360 offset += sizeof(*blk) + blk->size; in catpt_restore_basefw()
375 u32 offset = sizeof(*mod); in catpt_restore_module() local
385 blk = (struct catpt_fw_block_hdr *)((u8 *)mod + offset); in catpt_restore_module()
[all …]
/sound/firewire/digi00x/
Ddigi00x-transaction.c12 unsigned long long offset, __be32 *buf) in handle_unknown_message() argument
25 int generation, unsigned long long offset, in handle_message() argument
33 if (offset == dg00x->async_handler.offset) in handle_message()
34 handle_unknown_message(dg00x, offset, buf); in handle_message()
44 (dg00x->async_handler.offset >> 32)); in snd_dg00x_transaction_reregister()
45 data[1] = cpu_to_be32(dg00x->async_handler.offset); in snd_dg00x_transaction_reregister()
/sound/pci/cs46xx/
Dcs46xx_lib.h48 unsigned int offset = reg & 0xffff; in snd_cs46xx_poke() local
55 writel(val, chip->region.idx[bank+1].remap_addr + offset); in snd_cs46xx_poke()
61 unsigned int offset = reg & 0xffff; in snd_cs46xx_peek() local
62 return readl(chip->region.idx[bank+1].remap_addr + offset); in snd_cs46xx_peek()
65 static inline void snd_cs46xx_pokeBA0(struct snd_cs46xx *chip, unsigned long offset, unsigned int v… in snd_cs46xx_pokeBA0() argument
67 writel(val, chip->region.name.ba0.remap_addr + offset); in snd_cs46xx_pokeBA0()
70 static inline unsigned int snd_cs46xx_peekBA0(struct snd_cs46xx *chip, unsigned long offset) in snd_cs46xx_peekBA0() argument
72 return readl(chip->region.name.ba0.remap_addr + offset); in snd_cs46xx_peekBA0()
91 int snd_cs46xx_download (struct snd_cs46xx *chip, u32 *src, unsigned long offset,
93 int snd_cs46xx_clear_BA1(struct snd_cs46xx *chip, unsigned long offset, unsigned long len);
/sound/firewire/bebob/
Dbebob_focusrite.c61 saffire_read_block(struct snd_bebob *bebob, u64 offset, in saffire_read_block() argument
69 SAFFIRE_ADDRESS_BASE + offset, in saffire_read_block()
81 saffire_read_quad(struct snd_bebob *bebob, u64 offset, u32 *value) in saffire_read_quad() argument
87 SAFFIRE_ADDRESS_BASE + offset, in saffire_read_quad()
98 saffire_write_quad(struct snd_bebob *bebob, u64 offset, u32 value) in saffire_write_quad() argument
103 SAFFIRE_ADDRESS_BASE + offset, in saffire_write_quad()
236 u64 offset; in saffire_meter_get() local
240 offset = SAFFIRE_LE_OFFSET_METER; in saffire_meter_get()
242 offset = SAFFIRE_OFFSET_METER; in saffire_meter_get()
248 err = saffire_read_block(bebob, offset, buf, size); in saffire_meter_get()
/sound/core/
Dmemalloc.c196 dma_addr_t snd_sgbuf_get_addr(struct snd_dma_buffer *dmab, size_t offset) in snd_sgbuf_get_addr() argument
201 return ops->get_addr(dmab, offset); in snd_sgbuf_get_addr()
203 return dmab->addr + offset; in snd_sgbuf_get_addr()
212 struct page *snd_sgbuf_get_page(struct snd_dma_buffer *dmab, size_t offset) in snd_sgbuf_get_page() argument
217 return ops->get_page(dmab, offset); in snd_sgbuf_get_page()
219 return virt_to_page(dmab->area + offset); in snd_sgbuf_get_page()
296 #define get_vmalloc_page_addr(dmab, offset) \ argument
297 page_to_phys(vmalloc_to_page((dmab)->area + (offset)))
300 size_t offset) in snd_dma_vmalloc_get_addr() argument
302 return get_vmalloc_page_addr(dmab, offset) + offset % PAGE_SIZE; in snd_dma_vmalloc_get_addr()
[all …]
/sound/soc/intel/atom/sst/
Dsst_pvt.c30 int sst_shim_write(void __iomem *addr, int offset, int value) in sst_shim_write() argument
32 writel(value, addr + offset); in sst_shim_write()
36 u32 sst_shim_read(void __iomem *addr, int offset) in sst_shim_read() argument
38 return readl(addr + offset); in sst_shim_read()
41 u64 sst_reg_read64(void __iomem *addr, int offset) in sst_reg_read64() argument
45 memcpy_fromio(&val, addr + offset, sizeof(val)); in sst_reg_read64()
50 int sst_shim_write64(void __iomem *addr, int offset, u64 value) in sst_shim_write64() argument
52 memcpy_toio(addr + offset, &value, sizeof(value)); in sst_shim_write64()
56 u64 sst_shim_read64(void __iomem *addr, int offset) in sst_shim_read64() argument
60 memcpy_fromio(&val, addr + offset, sizeof(val)); in sst_shim_read64()
/sound/soc/sh/rcar/
Ddebugfs.c42 void __iomem *base, int offset, int size) in rsnd_debugfs_reg_show() argument
47 phys_addr_t addr = _addr + offset + i; in rsnd_debugfs_reg_show()
51 seq_printf(m, " %08x", __raw_readl(base + offset + i + j)); in rsnd_debugfs_reg_show()
57 int reg_id, int offset, int size) in rsnd_debugfs_mod_reg_show() argument
64 offset, size); in rsnd_debugfs_mod_reg_show()

123456789