Home
last modified time | relevance | path

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

12345

/sound/pci/emu10k1/
Demu10k1_patch.c42 int offset; in snd_emu10k1_sample_new() local
103 offset = 0; in snd_emu10k1_sample_new()
107 if (offset + size > blocksize) in snd_emu10k1_sample_new()
109 snd_emu10k1_synth_bzero(emu, sp->block, offset, size); in snd_emu10k1_sample_new()
110 offset += size; in snd_emu10k1_sample_new()
116 if (offset + size > blocksize) in snd_emu10k1_sample_new()
118 if (snd_emu10k1_synth_copy_from_user(emu, sp->block, offset, data, size)) { in snd_emu10k1_sample_new()
123 offset += size; in snd_emu10k1_sample_new()
133 woffset = offset / 2; in snd_emu10k1_sample_new()
134 if (offset + loopsize * 2 > blocksize) in snd_emu10k1_sample_new()
[all …]
Dmemory.c42 #define get_aligned_page(offset) ((offset) >> PAGE_SHIFT) argument
90 blk->first_page = get_aligned_page(blk->mem.offset); in emu10k1_memblk_init()
91 blk->last_page = get_aligned_page(blk->mem.offset + blk->mem.size - 1); in emu10k1_memblk_init()
227 blk->mem.offset = aligned_page_offset(page); /* set aligned offset */ in search_empty()
503 static inline void *offset_ptr(struct snd_emu10k1 *emu, int page, int offset) in offset_ptr() argument
513 ptr += offset & (PAGE_SIZE - 1); in offset_ptr()
521 int offset, int size) in snd_emu10k1_synth_bzero() argument
527 offset += blk->offset & (PAGE_SIZE - 1); in snd_emu10k1_synth_bzero()
528 end_offset = offset + size; in snd_emu10k1_synth_bzero()
529 page = get_aligned_page(offset); in snd_emu10k1_synth_bzero()
[all …]
Demuproc.c350 unsigned int offset; in snd_emu10k1_fx8010_read() local
357 offset = TANKMEMADDRREGBASE; in snd_emu10k1_fx8010_read()
360 offset = TANKMEMDATAREGBASE; in snd_emu10k1_fx8010_read()
362 offset = emu->audigy ? A_MICROCODEBASE : MICROCODEBASE; in snd_emu10k1_fx8010_read()
364 offset = emu->audigy ? A_FXGPREGBASE : FXGPREGBASE; in snd_emu10k1_fx8010_read()
372 val = snd_emu10k1_ptr_read(emu, offset + idx + (pos >> 2), 0); in snd_emu10k1_fx8010_read()
495 struct snd_info_buffer *buffer, int iobase, int offset, int length, int voices) in snd_emu_proc_ptr_reg_read() argument
500 if (offset+length > 0xa0) { in snd_emu_proc_ptr_reg_read()
505 for(i = offset; i < offset+length; i++) { in snd_emu_proc_ptr_reg_read()
Dio.c45 unsigned char size, offset; in snd_emu10k1_ptr_read() local
48 offset = (reg >> 16) & 0x1f; in snd_emu10k1_ptr_read()
49 mask = ((1 << size) - 1) << offset; in snd_emu10k1_ptr_read()
56 return (val & mask) >> offset; in snd_emu10k1_ptr_read()
83 unsigned char size, offset; in snd_emu10k1_ptr_write() local
86 offset = (reg >> 16) & 0x1f; in snd_emu10k1_ptr_write()
87 mask = ((1 << size) - 1) << offset; in snd_emu10k1_ptr_write()
88 data = (data << offset) & mask; in snd_emu10k1_ptr_write()
/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 …]
Demu8000_pcm.c56 unsigned int offset; member
430 static int emu8k_transfer_block(struct snd_emu8000 *emu, int offset, unsigned short *buf, int count) in emu8k_transfer_block() argument
432 EMU8000_SMALW_WRITE(emu, offset); in emu8k_transfer_block()
472 static int emu8k_silence_block(struct snd_emu8000 *emu, int offset, int count) in emu8k_silence_block() argument
474 EMU8000_SMALW_WRITE(emu, offset); in emu8k_silence_block()
587 rec->offset = EMU8000_DRAM_OFFSET + (rec->block->offset >> 1); /* in word */ in emu8k_pcm_hw_params()
626 rec->loop_start[0] = rec->offset + LOOP_BLANK_SIZE; in emu8k_pcm_prepare()
645 EMU8000_SMALW_WRITE(rec->emu, rec->offset); in emu8k_pcm_prepare()
/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 …]
Demux_synth.c830 int offset; in calc_pitch() local
834 offset = (vp->reg.fixkey - vp->reg.root) * 4096 / 12; in calc_pitch()
836 offset = (vp->note - vp->reg.root) * 4096 / 12; in calc_pitch()
838 offset = (offset * vp->reg.scaleTuning) / 100; in calc_pitch()
839 offset += vp->reg.tune * 4096 / 1200; in calc_pitch()
842 offset += chan->midi_pitchbend * chan->gm_rpn_pitch_bend_range / 3072; in calc_pitch()
850 offset += chan->gm_rpn_coarse_tuning * 4096 / (12 * 128); in calc_pitch()
851 offset += chan->gm_rpn_fine_tuning / 24; in calc_pitch()
858 offset += fx->val[EMUX_FX_INIT_PITCH]; in calc_pitch()
863 offset += 0xe000 + vp->reg.rate_offset; in calc_pitch()
[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/soc/fsl/
Dimx-pcm-fiq.c39 unsigned long offset; member
63 iprtd->offset = regs.ARM_r8 & 0xffff; in snd_hrtimer_callback()
65 iprtd->offset = regs.ARM_r9 & 0xffff; in snd_hrtimer_callback()
68 if (iprtd->offset >= iprtd->last_offset) in snd_hrtimer_callback()
69 delta = iprtd->offset - iprtd->last_offset; in snd_hrtimer_callback()
71 delta = runtime->buffer_size + iprtd->offset in snd_hrtimer_callback()
78 iprtd->last_offset = iprtd->offset; in snd_hrtimer_callback()
99 iprtd->offset = 0; in snd_imx_pcm_hw_params()
166 return bytes_to_frames(substream->runtime, iprtd->offset); in snd_imx_pcm_pointer()
/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()
163 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/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.c97 static unsigned char vx2_inb(struct vx_core *chip, int offset) in vx2_inb() argument
99 return inb(vx2_reg_addr(chip, offset)); in vx2_inb()
107 static void vx2_outb(struct vx_core *chip, int offset, unsigned char val) in vx2_outb() argument
109 outb(val, vx2_reg_addr(chip, offset)); in vx2_outb()
119 static unsigned int vx2_inl(struct vx_core *chip, int offset) in vx2_inl() argument
121 return inl(vx2_reg_addr(chip, offset)); in vx2_inl()
129 static void vx2_outl(struct vx_core *chip, int offset, unsigned int val) in vx2_outl() argument
134 outl(val, vx2_reg_addr(chip, offset)); in vx2_outl()
257 int offset = pipe->hw_ptr; in vx2_dma_write() local
258 u32 *addr = (u32 *)(runtime->dma_area + offset); in vx2_dma_write()
[all …]
/sound/soc/codecs/
Dwm_adsp.c318 unsigned int offset) in wm_adsp_region_to_reg() argument
322 return region->base + (offset * 3); in wm_adsp_region_to_reg()
324 return region->base + (offset * 2); in wm_adsp_region_to_reg()
326 return region->base + (offset * 2); in wm_adsp_region_to_reg()
328 return region->base + (offset * 2); in wm_adsp_region_to_reg()
330 return region->base + (offset * 2); in wm_adsp_region_to_reg()
333 return offset; in wm_adsp_region_to_reg()
354 int ret, offset, type, sizes; in wm_adsp_load() local
444 offset = le32_to_cpu(region->offset) & 0xffffff; in wm_adsp_load()
461 reg = offset; in wm_adsp_load()
[all …]
Dda732x.c1284 u8 offset[DA732X_HP_DACS]; in da732x_dac_offset_adjust() local
1310 offset[DA732X_HPL_DAC] = sign[DA732X_HPL_DAC] << DA732X_HP_DAC_COMPO_SHIFT; in da732x_dac_offset_adjust()
1311 offset[DA732X_HPR_DAC] = sign[DA732X_HPR_DAC] << DA732X_HP_DAC_COMPO_SHIFT; in da732x_dac_offset_adjust()
1314 offset[DA732X_HPL_DAC] |= step; in da732x_dac_offset_adjust()
1315 offset[DA732X_HPR_DAC] |= step; in da732x_dac_offset_adjust()
1317 ~offset[DA732X_HPL_DAC] & DA732X_HP_DAC_OFF_MASK); in da732x_dac_offset_adjust()
1319 ~offset[DA732X_HPR_DAC] & DA732X_HP_DAC_OFF_MASK); in da732x_dac_offset_adjust()
1325 offset[DA732X_HPL_DAC] &= ~step; in da732x_dac_offset_adjust()
1328 offset[DA732X_HPR_DAC] &= ~step; in da732x_dac_offset_adjust()
1335 ~offset[DA732X_HPL_DAC] & DA732X_HP_DAC_OFF_MASK); in da732x_dac_offset_adjust()
[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 …]
/sound/usb/usx2y/
Dusb_stream.c45 urb->iso_frame_desc[pack].offset = lb; in playback_prep_freqn()
83 desc->offset = 0; in init_pipe_urbs()
86 desc[p].offset = desc[p - 1].offset + maxpacket; in init_pipe_urbs()
291 od[p].offset = lb; in usb_stream_prepare_playback()
304 od[p].offset = lb; in usb_stream_prepare_playback()
341 id->offset = 0; in prepare_inurb()
343 id[p + 1].offset = id[p].offset + id[p].length; in prepare_inurb()
394 i = iu->transfer_buffer + id[p].offset; in loop_back()
458 s->inpacket[s->inpacket_head].offset = in stream_idle()
459 id[p].offset + (inurb->transfer_buffer - (void *)s); in stream_idle()
[all …]
/sound/core/
Dinfo.c156 static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig) in snd_info_entry_llseek() argument
167 offset = entry->c.ops->llseek(entry, in snd_info_entry_llseek()
169 file, offset, orig); in snd_info_entry_llseek()
180 offset += file->f_pos; in snd_info_entry_llseek()
185 offset += size; in snd_info_entry_llseek()
190 if (offset < 0) in snd_info_entry_llseek()
192 if (size && offset > size) in snd_info_entry_llseek()
193 offset = size; in snd_info_entry_llseek()
194 file->f_pos = offset; in snd_info_entry_llseek()
195 ret = offset; in snd_info_entry_llseek()
[all …]
/sound/soc/
Dsoc-pcm.c677 snd_pcm_uframes_t offset = 0; in soc_pcm_pointer() local
681 offset = platform->driver->ops->pointer(substream); in soc_pcm_pointer()
694 return offset; in soc_pcm_pointer()
2261 ssize_t offset = 0; in dpcm_show_state() local
2264 offset += snprintf(buf + offset, size - offset, in dpcm_show_state()
2268 offset += snprintf(buf + offset, size - offset, "State: %s\n", in dpcm_show_state()
2273 offset += snprintf(buf + offset, size - offset, in dpcm_show_state()
2281 offset += snprintf(buf + offset, size - offset, "Backends:\n"); in dpcm_show_state()
2284 offset += snprintf(buf + offset, size - offset, in dpcm_show_state()
2293 offset += snprintf(buf + offset, size - offset, in dpcm_show_state()
[all …]
/sound/pci/
Dintel8x0m.c251 static inline u8 igetbyte(struct intel8x0m *chip, u32 offset) in igetbyte() argument
253 return ioread8(chip->bmaddr + offset); in igetbyte()
256 static inline u16 igetword(struct intel8x0m *chip, u32 offset) in igetword() argument
258 return ioread16(chip->bmaddr + offset); in igetword()
261 static inline u32 igetdword(struct intel8x0m *chip, u32 offset) in igetdword() argument
263 return ioread32(chip->bmaddr + offset); in igetdword()
266 static inline void iputbyte(struct intel8x0m *chip, u32 offset, u8 val) in iputbyte() argument
268 iowrite8(val, chip->bmaddr + offset); in iputbyte()
271 static inline void iputword(struct intel8x0m *chip, u32 offset, u16 val) in iputword() argument
273 iowrite16(val, chip->bmaddr + offset); in iputword()
[all …]
/sound/soc/omap/
Domap-pcm.c102 snd_pcm_uframes_t offset; in omap_pcm_pointer() local
105 offset = snd_dmaengine_pcm_pointer_no_residue(substream); in omap_pcm_pointer()
107 offset = snd_dmaengine_pcm_pointer(substream); in omap_pcm_pointer()
109 return offset; in omap_pcm_pointer()
/sound/core/seq/oss/
Dseq_oss.c64 static ssize_t odev_read(struct file *file, char __user *buf, size_t count, loff_t *offset);
65 static ssize_t odev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset);
163 odev_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in odev_read() argument
174 odev_write(struct file *file, const char __user *buf, size_t count, loff_t *offset) in odev_write() argument
/sound/firewire/
Dlib.c30 u64 offset, void *buffer, size_t length) in snd_fw_transaction() argument
40 device->max_speed, offset, in snd_fw_transaction()

12345