Home
last modified time | relevance | path

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

1234567

/sound/soc/intel/common/
Dsst-dsp.c32 void sst_shim32_write(void __iomem *addr, u32 offset, u32 value) in sst_shim32_write() argument
34 writel(value, addr + offset); in sst_shim32_write()
38 u32 sst_shim32_read(void __iomem *addr, u32 offset) in sst_shim32_read() argument
40 return readl(addr + offset); in sst_shim32_read()
44 void sst_shim32_write64(void __iomem *addr, u32 offset, u64 value) in sst_shim32_write64() argument
46 memcpy_toio(addr + offset, &value, sizeof(value)); in sst_shim32_write64()
50 u64 sst_shim32_read64(void __iomem *addr, u32 offset) in sst_shim32_read64() argument
54 memcpy_fromio(&val, addr + offset, sizeof(val)); in sst_shim32_read64()
92 void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value) in sst_dsp_shim_write() argument
97 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write()
[all …]
Dsst-dsp.h227 void sst_dsp_shim_write(struct sst_dsp *sst, u32 offset, u32 value);
228 u32 sst_dsp_shim_read(struct sst_dsp *sst, u32 offset);
229 int sst_dsp_shim_update_bits(struct sst_dsp *sst, u32 offset,
231 void sst_dsp_shim_write64(struct sst_dsp *sst, u32 offset, u64 value);
232 u64 sst_dsp_shim_read64(struct sst_dsp *sst, u32 offset);
233 int sst_dsp_shim_update_bits64(struct sst_dsp *sst, u32 offset,
235 void sst_dsp_shim_update_bits_forced(struct sst_dsp *sst, u32 offset,
239 void sst_dsp_shim_write_unlocked(struct sst_dsp *sst, u32 offset, u32 value);
240 u32 sst_dsp_shim_read_unlocked(struct sst_dsp *sst, u32 offset);
241 int sst_dsp_shim_update_bits_unlocked(struct sst_dsp *sst, u32 offset,
[all …]
Dsst-firmware.c151 block->type, block->index, block->offset); in block_list_remove()
575 if (block->type == ba->type && block->offset == ba->offset) in find_block()
589 int size = ba->size, offset = ba->offset; in block_alloc_contiguous() local
598 ba->offset = offset; in block_alloc_contiguous()
603 ba->offset += block->size; in block_alloc_contiguous()
607 ba->offset = offset; in block_alloc_contiguous()
611 if (block->offset < block_start) in block_alloc_contiguous()
612 block_start = block->offset; in block_alloc_contiguous()
617 block->type, block->index, block->offset); in block_alloc_contiguous()
644 ba->offset = block->offset; in block_alloc()
[all …]
Dsst-dsp-priv.h46 void (*write)(void __iomem *addr, u32 offset, u32 value);
47 u32 (*read)(void __iomem *addr, u32 offset);
48 void (*write64)(void __iomem *addr, u32 offset, u64 value);
49 u64 (*read64)(void __iomem *addr, u32 offset);
146 u32 offset; member
201 s32 offset; /* module offset in firmware file */ member
242 u32 offset; /* offset from base */ member
364 int offset);
381 struct sst_mem_block *sst_mem_block_register(struct sst_dsp *dsp, u32 offset,
386 u32 sst_dsp_get_offset(struct sst_dsp *dsp, u32 offset,
/sound/soc/codecs/
Drt5677-spi.c116 u32 offset; in rt5677_spi_read() local
142 for (offset = 0; offset < len; offset += t[1].len) { in rt5677_spi_read()
143 spi_cmd = rt5677_spi_select_cmd(true, (addr + offset) & 7, in rt5677_spi_read()
144 len - offset, &t[1].len); in rt5677_spi_read()
148 header[1] = ((addr + offset) & 0xff000000) >> 24; in rt5677_spi_read()
149 header[2] = ((addr + offset) & 0x00ff0000) >> 16; in rt5677_spi_read()
150 header[3] = ((addr + offset) & 0x0000ff00) >> 8; in rt5677_spi_read()
151 header[4] = ((addr + offset) & 0x000000ff) >> 0; in rt5677_spi_read()
158 rt5677_spi_reverse(cb + offset, t[1].len, body, t[1].len); in rt5677_spi_read()
170 u32 offset, len_with_pad = len; in rt5677_spi_write() local
[all …]
Drt5514-spi.c288 unsigned int i, end, offset = 0; in rt5514_spi_burst_read() local
293 while (offset < len) { in rt5514_spi_burst_read()
294 if (offset + RT5514_SPI_BUF_LEN <= len) in rt5514_spi_burst_read()
300 write_buf[1] = ((addr + offset) & 0xff000000) >> 24; in rt5514_spi_burst_read()
301 write_buf[2] = ((addr + offset) & 0x00ff0000) >> 16; in rt5514_spi_burst_read()
302 write_buf[3] = ((addr + offset) & 0x0000ff00) >> 8; in rt5514_spi_burst_read()
303 write_buf[4] = ((addr + offset) & 0x000000ff) >> 0; in rt5514_spi_burst_read()
317 x[2].rx_buf = rxbuf + offset; in rt5514_spi_burst_read()
325 offset += RT5514_SPI_BUF_LEN; in rt5514_spi_burst_read()
364 unsigned int i, end, offset = 0; in rt5514_spi_burst_write() local
[all …]
/sound/firewire/dice/
Ddice.h115 unsigned int offset,
118 enum snd_dice_addr_type type, unsigned int offset,
122 unsigned int offset, in snd_dice_transaction_write_global() argument
126 SND_DICE_ADDR_TYPE_GLOBAL, offset, in snd_dice_transaction_write_global()
130 unsigned int offset, in snd_dice_transaction_read_global() argument
134 SND_DICE_ADDR_TYPE_GLOBAL, offset, in snd_dice_transaction_read_global()
138 unsigned int offset, in snd_dice_transaction_write_tx() argument
141 return snd_dice_transaction_write(dice, SND_DICE_ADDR_TYPE_TX, offset, in snd_dice_transaction_write_tx()
145 unsigned int offset, in snd_dice_transaction_read_tx() argument
148 return snd_dice_transaction_read(dice, SND_DICE_ADDR_TYPE_TX, offset, in snd_dice_transaction_read_tx()
[all …]
Ddice-transaction.c13 u64 offset) in get_subaddr() argument
17 offset += dice->tx_offset; in get_subaddr()
20 offset += dice->rx_offset; in get_subaddr()
23 offset += dice->sync_offset; in get_subaddr()
26 offset += dice->rsrv_offset; in get_subaddr()
30 offset += dice->global_offset; in get_subaddr()
33 offset += DICE_PRIVATE_SPACE; in get_subaddr()
34 return offset; in get_subaddr()
39 unsigned int offset, void *buf, unsigned int len) in snd_dice_transaction_write() argument
44 get_subaddr(dice, type, offset), buf, len, 0); in snd_dice_transaction_write()
[all …]
/sound/pci/emu10k1/
Demu10k1_patch.c42 int offset; in snd_emu10k1_sample_new() local
105 offset = 0; in snd_emu10k1_sample_new()
109 if (offset + size > blocksize) in snd_emu10k1_sample_new()
111 snd_emu10k1_synth_bzero(emu, sp->block, offset, size); in snd_emu10k1_sample_new()
112 offset += size; in snd_emu10k1_sample_new()
118 if (offset + size > blocksize) in snd_emu10k1_sample_new()
120 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) { in snd_emu10k1_sample_new()
125 offset += size; in snd_emu10k1_sample_new()
135 woffset = offset / 2; in snd_emu10k1_sample_new()
136 if (offset + loopsize * 2 > blocksize) in snd_emu10k1_sample_new()
[all …]
Dmemory.c43 #define get_aligned_page(offset) ((offset) >> PAGE_SHIFT) argument
91 blk->first_page = get_aligned_page(blk->mem.offset); in emu10k1_memblk_init()
92 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()
507 static inline void *offset_ptr(struct snd_emu10k1 *emu, int page, int offset) in offset_ptr() argument
518 ptr += offset & (PAGE_SIZE - 1); in offset_ptr()
526 int offset, int size) in snd_emu10k1_synth_bzero() argument
532 offset += blk->offset & (PAGE_SIZE - 1); in snd_emu10k1_synth_bzero()
533 end_offset = offset + size; in snd_emu10k1_synth_bzero()
534 page = get_aligned_page(offset); in snd_emu10k1_synth_bzero()
[all …]
/sound/firewire/digi00x/
Ddigi00x-transaction.c47 unsigned long long offset, __be32 *buf) in handle_unknown_message() argument
60 int generation, unsigned long long offset, in handle_message() argument
66 if (offset == dg00x->async_handler.offset) in handle_message()
67 handle_unknown_message(dg00x, offset, buf); in handle_message()
68 else if (offset == dg00x->async_handler.offset + 4) in handle_message()
82 (dg00x->async_handler.offset >> 32)); in snd_dg00x_transaction_reregister()
83 data[1] = cpu_to_be32(dg00x->async_handler.offset); in snd_dg00x_transaction_reregister()
92 (dg00x->async_handler.offset >> 32)); in snd_dg00x_transaction_reregister()
93 data[1] = cpu_to_be32(dg00x->async_handler.offset + 4); in snd_dg00x_transaction_reregister()
/sound/soc/
Dsoc-ac97.c67 static int snd_soc_ac97_gpio_request(struct gpio_chip *chip, unsigned offset) in snd_soc_ac97_gpio_request() argument
69 if (offset >= AC97_NUM_GPIOS) in snd_soc_ac97_gpio_request()
76 unsigned offset) in snd_soc_ac97_gpio_direction_in() argument
80 dev_dbg(codec->dev, "set gpio %d to output\n", offset); in snd_soc_ac97_gpio_direction_in()
82 1 << offset, 1 << offset); in snd_soc_ac97_gpio_direction_in()
85 static int snd_soc_ac97_gpio_get(struct gpio_chip *chip, unsigned offset) in snd_soc_ac97_gpio_get() argument
91 dev_dbg(codec->dev, "get gpio %d : %d\n", offset, in snd_soc_ac97_gpio_get()
92 ret < 0 ? ret : ret & (1 << offset)); in snd_soc_ac97_gpio_get()
94 return ret < 0 ? ret : !!(ret & (1 << offset)); in snd_soc_ac97_gpio_get()
97 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.c85 read_word(const void __user *buf, int offset, int mode) in read_word() argument
90 get_user(cc, (unsigned char __user *)buf + offset); in read_word()
94 get_user(c, (unsigned short __user *)buf + offset); in read_word()
97 get_user(cc, (unsigned short __user *)buf + offset); in read_word()
131 write_word(struct snd_emu8000 *emu, int *offset, unsigned short data) in write_word() argument
136 EMU8000_SMALW_WRITE(emu, *offset); in write_word()
139 *offset += 1; in write_word()
153 int offset; in snd_emu8000_sample_new() local
201 dram_offset = EMU8000_DRAM_OFFSET + (sp->block->offset >> 1); in snd_emu8000_sample_new()
219 if (! sp->block->offset) { in snd_emu8000_sample_new()
[all …]
/sound/synth/emux/
Demux_effect.c54 long offset; /* offset in parameter record (-1 = not written) */ member
181 int offset; in snd_emux_send_effect() local
198 if (! parm_defs[type].update || (offset = parm_defs[type].offset) < 0) in snd_emux_send_effect()
203 offset++; in snd_emux_send_effect()
206 offset++; in snd_emux_send_effect()
214 srcp = (unsigned char*)&vp->reg.parm + offset; in snd_emux_send_effect()
215 origp = (unsigned char*)&vp->zone->v.parm + offset; in snd_emux_send_effect()
245 int offset; in snd_emux_setup_effect() local
246 if (! fx->flag[i] || (offset = parm_defs[i].offset) < 0) in snd_emux_setup_effect()
250 offset++; in snd_emux_setup_effect()
[all …]
/sound/pci/cs46xx/
Dcs46xx_lib.h63 unsigned int offset = reg & 0xffff; in snd_cs46xx_poke() local
70 writel(val, chip->region.idx[bank+1].remap_addr + offset); in snd_cs46xx_poke()
76 unsigned int offset = reg & 0xffff; in snd_cs46xx_peek() local
77 return readl(chip->region.idx[bank+1].remap_addr + offset); in snd_cs46xx_peek()
80 static inline void snd_cs46xx_pokeBA0(struct snd_cs46xx *chip, unsigned long offset, unsigned int v… in snd_cs46xx_pokeBA0() argument
82 writel(val, chip->region.name.ba0.remap_addr + offset); in snd_cs46xx_pokeBA0()
85 static inline unsigned int snd_cs46xx_peekBA0(struct snd_cs46xx *chip, unsigned long offset) in snd_cs46xx_peekBA0() argument
87 return readl(chip->region.name.ba0.remap_addr + offset); in snd_cs46xx_peekBA0()
106 int snd_cs46xx_download (struct snd_cs46xx *chip, u32 *src, unsigned long offset,
108 int snd_cs46xx_clear_BA1(struct snd_cs46xx *chip, unsigned long offset, unsigned long len);
/sound/firewire/bebob/
Dbebob_focusrite.c60 saffire_read_block(struct snd_bebob *bebob, u64 offset, in saffire_read_block() argument
68 SAFFIRE_ADDRESS_BASE + offset, in saffire_read_block()
80 saffire_read_quad(struct snd_bebob *bebob, u64 offset, u32 *value) in saffire_read_quad() argument
86 SAFFIRE_ADDRESS_BASE + offset, in saffire_read_quad()
97 saffire_write_quad(struct snd_bebob *bebob, u64 offset, u32 value) in saffire_write_quad() argument
102 SAFFIRE_ADDRESS_BASE + offset, in saffire_write_quad()
234 u64 offset; in saffire_meter_get() local
238 offset = SAFFIRE_LE_OFFSET_METER; in saffire_meter_get()
240 offset = SAFFIRE_OFFSET_METER; in saffire_meter_get()
246 err = saffire_read_block(bebob, offset, buf, size); in saffire_meter_get()
/sound/core/
Dinfo.c120 static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig) in snd_info_entry_llseek() argument
130 offset = entry->c.ops->llseek(entry, in snd_info_entry_llseek()
132 file, offset, orig); in snd_info_entry_llseek()
141 offset += file->f_pos; in snd_info_entry_llseek()
146 offset += size; in snd_info_entry_llseek()
151 if (offset < 0) in snd_info_entry_llseek()
153 if (size && offset > size) in snd_info_entry_llseek()
154 offset = size; in snd_info_entry_llseek()
155 file->f_pos = offset; in snd_info_entry_llseek()
156 ret = offset; in snd_info_entry_llseek()
[all …]
/sound/soc/intel/atom/sst/
Dsst_pvt.c39 int sst_shim_write(void __iomem *addr, int offset, int value) in sst_shim_write() argument
41 writel(value, addr + offset); in sst_shim_write()
45 u32 sst_shim_read(void __iomem *addr, int offset) in sst_shim_read() argument
47 return readl(addr + offset); in sst_shim_read()
50 u64 sst_reg_read64(void __iomem *addr, int offset) in sst_reg_read64() argument
54 memcpy_fromio(&val, addr + offset, sizeof(val)); in sst_reg_read64()
59 int sst_shim_write64(void __iomem *addr, int offset, u64 value) in sst_shim_write64() argument
61 memcpy_toio(addr + offset, &value, sizeof(value)); in sst_shim_write64()
65 u64 sst_shim_read64(void __iomem *addr, int offset) in sst_shim_read64() argument
69 memcpy_fromio(&val, addr + offset, sizeof(val)); in sst_shim_read64()
/sound/pci/trident/
Dtrident_memory.c54 #define get_aligned_page(offset) ((offset) >> 12) argument
66 #define get_aligned_page(offset) ((offset) >> 13) argument
96 #define get_aligned_page(offset) ((offset) / ALIGN_PAGE_SIZE) argument
124 static inline void *offset_ptr(struct snd_trident *trident, int offset) in offset_ptr() argument
127 ptr = page_to_ptr(trident, get_aligned_page(offset)); in offset_ptr()
128 ptr += offset % ALIGN_PAGE_SIZE; in offset_ptr()
162 blk->offset = aligned_page_offset(page); /* set aligned offset */ in search_empty()
/sound/drivers/opl4/
Dopl4_lib.c61 void snd_opl4_read_memory(struct snd_opl4 *opl4, char *buf, int offset, int size) in snd_opl4_read_memory() argument
71 snd_opl4_write(opl4, OPL4_REG_MEMORY_ADDRESS_HIGH, offset >> 16); in snd_opl4_read_memory()
72 snd_opl4_write(opl4, OPL4_REG_MEMORY_ADDRESS_MID, offset >> 8); in snd_opl4_read_memory()
73 snd_opl4_write(opl4, OPL4_REG_MEMORY_ADDRESS_LOW, offset); in snd_opl4_read_memory()
87 void snd_opl4_write_memory(struct snd_opl4 *opl4, const char *buf, int offset, int size) in snd_opl4_write_memory() argument
97 snd_opl4_write(opl4, OPL4_REG_MEMORY_ADDRESS_HIGH, offset >> 16); in snd_opl4_write_memory()
98 snd_opl4_write(opl4, OPL4_REG_MEMORY_ADDRESS_MID, offset >> 8); in snd_opl4_write_memory()
99 snd_opl4_write(opl4, OPL4_REG_MEMORY_ADDRESS_LOW, offset); in snd_opl4_write_memory()
/sound/hda/
Dhdac_controller.c272 unsigned int offset; in snd_hdac_bus_parse_capabilities() local
275 offset = snd_hdac_chip_readl(bus, LLCH); in snd_hdac_bus_parse_capabilities()
279 cur_cap = _snd_hdac_chip_read(l, bus, offset); in snd_hdac_bus_parse_capabilities()
295 bus->mlcap = bus->remap_addr + offset; in snd_hdac_bus_parse_capabilities()
299 dev_dbg(bus->dev, "Found GTS capability offset=%x\n", offset); in snd_hdac_bus_parse_capabilities()
300 bus->gtscap = bus->remap_addr + offset; in snd_hdac_bus_parse_capabilities()
305 dev_dbg(bus->dev, "Found PP capability offset=%x\n", offset); in snd_hdac_bus_parse_capabilities()
306 bus->ppcap = bus->remap_addr + offset; in snd_hdac_bus_parse_capabilities()
312 bus->spbcap = bus->remap_addr + offset; in snd_hdac_bus_parse_capabilities()
318 bus->drsmcap = bus->remap_addr + offset; in snd_hdac_bus_parse_capabilities()
[all …]
/sound/pcmcia/vx/
Dvxp_ops.c61 static unsigned char vxp_inb(struct vx_core *chip, int offset) in vxp_inb() argument
63 return inb(vxp_reg_addr(chip, offset)); in vxp_inb()
71 static void vxp_outb(struct vx_core *chip, int offset, unsigned char val) in vxp_outb() argument
73 outb(val, vxp_reg_addr(chip, offset)); in vxp_outb()
368 int offset = pipe->hw_ptr; in vxp_dma_write() local
369 unsigned short *addr = (unsigned short *)(runtime->dma_area + offset); in vxp_dma_write()
372 if (offset + count >= pipe->buffer_bytes) { in vxp_dma_write()
373 int length = pipe->buffer_bytes - offset; in vxp_dma_write()
408 int offset = pipe->hw_ptr; in vxp_dma_read() local
409 unsigned short *addr = (unsigned short *)(runtime->dma_area + offset); in vxp_dma_read()
[all …]
/sound/pci/vx222/
Dvx222_ops.c98 static unsigned char vx2_inb(struct vx_core *chip, int offset) in vx2_inb() argument
100 return inb(vx2_reg_addr(chip, offset)); in vx2_inb()
109 static void vx2_outb(struct vx_core *chip, int offset, unsigned char val) in vx2_outb() argument
111 outb(val, vx2_reg_addr(chip, offset)); in vx2_outb()
122 static unsigned int vx2_inl(struct vx_core *chip, int offset) in vx2_inl() argument
124 return inl(vx2_reg_addr(chip, offset)); in vx2_inl()
133 static void vx2_outl(struct vx_core *chip, int offset, unsigned int val) in vx2_outl() argument
138 outl(val, vx2_reg_addr(chip, offset)); in vx2_outl()
262 int offset = pipe->hw_ptr; in vx2_dma_write() local
263 u32 *addr = (u32 *)(runtime->dma_area + offset); in vx2_dma_write()
[all …]
/sound/synth/
Dutil_mem.c93 if (blk->offset - prev_offset >= units) in __snd_util_mem_alloc()
95 prev_offset = blk->offset + blk->size; in __snd_util_mem_alloc()
121 blk->offset = 0; in __snd_util_memblk_new()
124 blk->offset = p->offset + p->size; in __snd_util_memblk_new()
/sound/pci/nm256/
Dnm256.c280 snd_nm256_readb(struct nm256 *chip, int offset) in snd_nm256_readb() argument
282 return readb(chip->cport + offset); in snd_nm256_readb()
286 snd_nm256_readw(struct nm256 *chip, int offset) in snd_nm256_readw() argument
288 return readw(chip->cport + offset); in snd_nm256_readw()
292 snd_nm256_readl(struct nm256 *chip, int offset) in snd_nm256_readl() argument
294 return readl(chip->cport + offset); in snd_nm256_readl()
298 snd_nm256_writeb(struct nm256 *chip, int offset, u8 val) in snd_nm256_writeb() argument
300 writeb(val, chip->cport + offset); in snd_nm256_writeb()
304 snd_nm256_writew(struct nm256 *chip, int offset, u16 val) in snd_nm256_writew() argument
306 writew(val, chip->cport + offset); in snd_nm256_writew()
[all …]

1234567