Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 85) sorted by relevance

1234

/sound/pci/ice1712/
Dhoontech.h43 #define ICE1712_STDSP24_0_BOX(r, x) r[0] = ((r[0] & ~3) | ((x)&3)) argument
44 #define ICE1712_STDSP24_0_DAREAR(r, x) r[0] = ((r[0] & ~4) | (((x)&1)<<2)) argument
45 #define ICE1712_STDSP24_1_CHN1(r, x) r[1] = ((r[1] & ~1) | ((x)&1)) argument
46 #define ICE1712_STDSP24_1_CHN2(r, x) r[1] = ((r[1] & ~2) | (((x)&1)<<1)) argument
47 #define ICE1712_STDSP24_1_CHN3(r, x) r[1] = ((r[1] & ~4) | (((x)&1)<<2)) argument
48 #define ICE1712_STDSP24_2_CHN4(r, x) r[2] = ((r[2] & ~1) | ((x)&1)) argument
49 #define ICE1712_STDSP24_2_MIDIIN(r, x) r[2] = ((r[2] & ~2) | (((x)&1)<<1)) argument
50 #define ICE1712_STDSP24_2_MIDI1(r, x) r[2] = ((r[2] & ~4) | (((x)&1)<<2)) argument
51 #define ICE1712_STDSP24_3_MIDI2(r, x) r[3] = ((r[3] & ~1) | ((x)&1)) argument
52 #define ICE1712_STDSP24_3_MUTE(r, x) r[3] = ((r[3] & ~2) | (((x)&1)<<1)) argument
[all …]
/sound/firewire/
Diso-resources.c26 int fw_iso_resources_init(struct fw_iso_resources *r, struct fw_unit *unit) in fw_iso_resources_init() argument
28 r->channels_mask = ~0uLL; in fw_iso_resources_init()
29 r->unit = unit; in fw_iso_resources_init()
30 mutex_init(&r->mutex); in fw_iso_resources_init()
31 r->allocated = false; in fw_iso_resources_init()
41 void fw_iso_resources_destroy(struct fw_iso_resources *r) in fw_iso_resources_destroy() argument
43 WARN_ON(r->allocated); in fw_iso_resources_destroy()
44 mutex_destroy(&r->mutex); in fw_iso_resources_destroy()
105 int fw_iso_resources_allocate(struct fw_iso_resources *r, in fw_iso_resources_allocate() argument
108 struct fw_card *card = fw_parent_device(r->unit)->card; in fw_iso_resources_allocate()
[all …]
Diso-resources.h29 int fw_iso_resources_init(struct fw_iso_resources *r,
31 void fw_iso_resources_destroy(struct fw_iso_resources *r);
33 int fw_iso_resources_allocate(struct fw_iso_resources *r,
35 int fw_iso_resources_update(struct fw_iso_resources *r);
36 void fw_iso_resources_free(struct fw_iso_resources *r);
/sound/soc/codecs/
Dwl1273.c47 int r = 0; in snd_wl1273_fm_set_i2s_mode() local
84 r = -EINVAL; in snd_wl1273_fm_set_i2s_mode()
118 r = -EINVAL; in snd_wl1273_fm_set_i2s_mode()
127 r = core->write(core, WL1273_I2S_MODE_CONFIG_SET, mode); in snd_wl1273_fm_set_i2s_mode()
128 if (r) in snd_wl1273_fm_set_i2s_mode()
132 r = core->write(core, WL1273_AUDIO_ENABLE, in snd_wl1273_fm_set_i2s_mode()
134 if (r) in snd_wl1273_fm_set_i2s_mode()
140 return r; in snd_wl1273_fm_set_i2s_mode()
147 int r = 0; in snd_wl1273_fm_set_channel_number() local
157 r = core->write(core, WL1273_MOST_MODE_SET, WL1273_RX_MONO); in snd_wl1273_fm_set_channel_number()
[all …]
Dsgtl5000.c504 int r; in dac_get_volsw() local
512 r = (reg & SGTL5000_DAC_VOL_RIGHT_MASK) >> SGTL5000_DAC_VOL_RIGHT_SHIFT; in dac_get_volsw()
516 r = clamp(r, 0x3c, 0xfc); in dac_get_volsw()
520 r = 0xfc - r; in dac_get_volsw()
523 ucontrol->value.integer.value[1] = r; in dac_get_volsw()
557 int r; in dac_put_volsw() local
560 r = ucontrol->value.integer.value[1]; in dac_put_volsw()
564 r = clamp(r, 0, 0xfc - 0x3c); in dac_put_volsw()
568 r = 0xfc - r; in dac_put_volsw()
572 r << SGTL5000_DAC_VOL_RIGHT_SHIFT; in dac_put_volsw()
/sound/aoa/soundbus/i2sbus/
Dcore.c42 struct dbdma_command_mem *r, in alloc_dbdma_descriptor_ring() argument
46 r->size = (numcmds + 3) * sizeof(struct dbdma_cmd); in alloc_dbdma_descriptor_ring()
50 r->space = dma_zalloc_coherent(&macio_get_pci_dev(i2sdev->macio)->dev, in alloc_dbdma_descriptor_ring()
51 r->size, &r->bus_addr, GFP_KERNEL); in alloc_dbdma_descriptor_ring()
52 if (!r->space) in alloc_dbdma_descriptor_ring()
55 r->cmds = (void*)DBDMA_ALIGN(r->space); in alloc_dbdma_descriptor_ring()
56 r->bus_cmd_start = r->bus_addr + in alloc_dbdma_descriptor_ring()
57 (dma_addr_t)((char*)r->cmds - (char*)r->space); in alloc_dbdma_descriptor_ring()
63 struct dbdma_command_mem *r) in free_dbdma_descriptor_ring() argument
65 if (!r->space) return; in free_dbdma_descriptor_ring()
[all …]
/sound/isa/wavefront/
Dwavefront_fx.c172 wavefront_fx_info r; in snd_wavefront_fx_ioctl() local
186 if (copy_from_user (&r, (void __user *)arg, sizeof (wavefront_fx_info))) in snd_wavefront_fx_ioctl()
189 switch (r.request) { in snd_wavefront_fx_ioctl()
191 wavefront_fx_mute (dev, r.data[0]); in snd_wavefront_fx_ioctl()
195 if (r.data[2] <= 0) { in snd_wavefront_fx_ioctl()
199 } else if (r.data[2] == 1) { in snd_wavefront_fx_ioctl()
200 pd = (unsigned short *) &r.data[3]; in snd_wavefront_fx_ioctl()
202 if (r.data[2] > 256) { in snd_wavefront_fx_ioctl()
208 r.data[3], in snd_wavefront_fx_ioctl()
209 r.data[2] * sizeof(short)); in snd_wavefront_fx_ioctl()
[all …]
/sound/pci/ac97/
Dac97_pcm.c169 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg()
426 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates()
494 slots = pcm->r[0].slots; in snd_ac97_pcm_assign()
508 tmp &= ~rpcms[k].r[0].rslots[j]; in snd_ac97_pcm_assign()
512 tmp &= pcm->r[0].slots; in snd_ac97_pcm_assign()
515 rpcm->r[0].rslots[j] = tmp; in snd_ac97_pcm_assign()
516 rpcm->r[0].codec[j] = bus->codec[j]; in snd_ac97_pcm_assign()
517 rpcm->r[0].rate_table[j] = rate_table[pcm->stream][j]; in snd_ac97_pcm_assign()
526 rpcm->r[0].slots |= tmp; in snd_ac97_pcm_assign()
535 if ((tmp & pcm->r[1].slots) == tmp) { in snd_ac97_pcm_assign()
[all …]
/sound/core/seq/
Dseq_queue.h120 #define udiv_qrnnd(q, r, n1, n0, d) \ argument
123 "=d" ((u32)(r)) \
129 #define u64_mod(x,y,r) do {u32 __tmp; udiv_qrnnd(__tmp, q, (x)>>32, x, y);} while (0) argument
130 #define u64_divmod(x,y,q,r) udiv_qrnnd(q, r, (x)>>32, x, y) argument
134 #define u64_mod(x,y,r) ((r) = (u32)((u64)(x) % (u64)(y))) argument
135 #define u64_divmod(x,y,q,r) (u64_div(x,y,q), u64_mod(x,y,r)) argument
Dseq_ports.c466 static inline int addr_match(struct snd_seq_addr *r, struct snd_seq_addr *s) in addr_match() argument
468 return (r->client == s->client) && (r->port == s->port); in addr_match()
473 static int match_subs_info(struct snd_seq_port_subscribe *r, in match_subs_info() argument
476 if (addr_match(&r->sender, &s->sender) && in match_subs_info()
477 addr_match(&r->dest, &s->dest)) { in match_subs_info()
478 if (r->flags && r->flags == s->flags) in match_subs_info()
479 return r->queue == s->queue; in match_subs_info()
480 else if (! r->flags) in match_subs_info()
/sound/soc/dwc/
Ddesignware_i2s.c62 #define COMP1_TX_WORDSIZE_3(r) (((r) & GENMASK(27, 25)) >> 25) argument
63 #define COMP1_TX_WORDSIZE_2(r) (((r) & GENMASK(24, 22)) >> 22) argument
64 #define COMP1_TX_WORDSIZE_1(r) (((r) & GENMASK(21, 19)) >> 19) argument
65 #define COMP1_TX_WORDSIZE_0(r) (((r) & GENMASK(18, 16)) >> 16) argument
66 #define COMP1_TX_CHANNELS(r) (((r) & GENMASK(10, 9)) >> 9) argument
67 #define COMP1_RX_CHANNELS(r) (((r) & GENMASK(8, 7)) >> 7) argument
68 #define COMP1_RX_ENABLED(r) (((r) & BIT(6)) >> 6) argument
69 #define COMP1_TX_ENABLED(r) (((r) & BIT(5)) >> 5) argument
70 #define COMP1_MODE_EN(r) (((r) & BIT(4)) >> 4) argument
71 #define COMP1_FIFO_DEPTH_GLOBAL(r) (((r) & GENMASK(3, 2)) >> 2) argument
[all …]
/sound/soc/au1x/
Dpsc-ac97.c216 unsigned long r, ro, stat; in au1xpsc_ac97_hw_params() local
221 r = ro = __raw_readl(AC97_CFG(pscdata)); in au1xpsc_ac97_hw_params()
227 if ((PSC_AC97CFG_GET_LEN(r) != params->msbits) || in au1xpsc_ac97_hw_params()
233 r &= ~PSC_AC97CFG_LEN_MASK; in au1xpsc_ac97_hw_params()
234 r |= PSC_AC97CFG_SET_LEN(params->msbits); in au1xpsc_ac97_hw_params()
238 r &= ~PSC_AC97CFG_TXSLOT_MASK; in au1xpsc_ac97_hw_params()
239 r |= PSC_AC97CFG_TXSLOT_ENA(3); in au1xpsc_ac97_hw_params()
240 r |= PSC_AC97CFG_TXSLOT_ENA(4); in au1xpsc_ac97_hw_params()
242 r &= ~PSC_AC97CFG_RXSLOT_MASK; in au1xpsc_ac97_hw_params()
243 r |= PSC_AC97CFG_RXSLOT_ENA(3); in au1xpsc_ac97_hw_params()
[all …]
Dac97c.c83 unsigned short r) in au1xac97c_ac97_read() argument
102 WR(ctx, AC97_CMDRESP, CMD_IDX(r) | CMD_READ); in au1xac97c_ac97_read()
119 pr_debug("AC97RD %04x %04lx %d\n", r, data, retry); in au1xac97c_ac97_read()
124 static void au1xac97c_ac97_write(struct snd_ac97 *ac97, unsigned short r, in au1xac97c_ac97_write() argument
141 WR(ctx, AC97_CMDRESP, CMD_WRITE | CMD_IDX(r) | CMD_SET_DATA(v)); in au1xac97c_ac97_write()
151 pr_debug("AC97WR %04x %04x %d\n", r, v, retry); in au1xac97c_ac97_write()
/sound/core/
Dpcm_drm_eld.c31 struct snd_interval *r = hw_param_interval(params, rule->var); in eld_limit_rates() local
52 return snd_interval_list(r, ARRAY_SIZE(eld_rates), eld_rates, in eld_limit_rates()
60 struct snd_interval *r; in eld_limit_channels() local
70 r = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE); in eld_limit_channels()
72 if (r->min <= eld_rates[i] && r->max >= eld_rates[i]) in eld_limit_channels()
Dpcm_lib.c539 unsigned int *r) in div32() argument
542 *r = 0; in div32()
545 *r = a % b; in div32()
558 unsigned int r; in div_up() local
562 q = div32(a, b, &r); in div_up()
563 if (r) in div_up()
578 unsigned int c, unsigned int *r) in muldiv32() argument
582 *r = 0; in muldiv32()
585 n = div_u64_rem(n, c, r); in muldiv32()
587 *r = 0; in muldiv32()
[all …]
/sound/soc/txx9/
Dtxx9aclc-ac97.c179 struct resource *r; in txx9aclc_ac97_dev_probe() local
191 r = platform_get_resource(pdev, IORESOURCE_MEM, 0); in txx9aclc_ac97_dev_probe()
192 drvdata->base = devm_ioremap_resource(&pdev->dev, r); in txx9aclc_ac97_dev_probe()
197 drvdata->physbase = r->start; in txx9aclc_ac97_dev_probe()
198 if (sizeof(drvdata->physbase) > sizeof(r->start) && in txx9aclc_ac97_dev_probe()
199 r->start >= TXX9_DIRECTMAP_BASE && in txx9aclc_ac97_dev_probe()
200 r->start < TXX9_DIRECTMAP_BASE + 0x400000) in txx9aclc_ac97_dev_probe()
/sound/
Dsound_core.c257 int r; in sound_insert_unit() local
264 r = __sound_insert_unit(s, list, fops, index, low, top); in sound_insert_unit()
267 if (r < 0) in sound_insert_unit()
269 else if (r < SOUND_STEP) in sound_insert_unit()
272 sprintf(s->name, "sound/%s%d", name, r / SOUND_STEP); in sound_insert_unit()
280 r = __register_chrdev(SOUND_MAJOR, s->unit_minor, 1, s->name, in sound_insert_unit()
282 if (r < 0) { in sound_insert_unit()
290 r = -EBUSY; in sound_insert_unit()
301 return r; in sound_insert_unit()
Dsound_firmware.c67 int r; in mod_firmware_load() local
71 r = do_mod_firmware_load(fn, fp); in mod_firmware_load()
73 return r; in mod_firmware_load()
/sound/pci/ymfpci/
Dymfpci.c86 struct resource *r = NULL; in snd_ymfpci_create_gameport() local
105 if ((r = request_region(io_port, 1, "YMFPCI gameport")) != NULL) in snd_ymfpci_create_gameport()
108 if (!r) { in snd_ymfpci_create_gameport()
126 if (!r && !(r = request_region(io_port, 1, "YMFPCI gameport"))) { in snd_ymfpci_create_gameport()
136 release_and_free_resource(r); in snd_ymfpci_create_gameport()
145 gameport_set_port_data(gp, r); in snd_ymfpci_create_gameport()
161 struct resource *r = gameport_get_port_data(chip->gameport); in snd_ymfpci_free_gameport() local
166 release_and_free_resource(r); in snd_ymfpci_free_gameport()
/sound/mips/
Dau1x00.c598 struct resource *r; in au1000_ac97_probe() local
617 r = platform_get_resource(pdev, IORESOURCE_DMA, 0); in au1000_ac97_probe()
618 if (!r) { in au1000_ac97_probe()
623 au1000->dmaid[0] = r->start; in au1000_ac97_probe()
626 r = platform_get_resource(pdev, IORESOURCE_DMA, 1); in au1000_ac97_probe()
627 if (!r) { in au1000_ac97_probe()
632 au1000->dmaid[1] = r->start; in au1000_ac97_probe()
650 r = platform_get_resource(pdev, IORESOURCE_MEM, 0); in au1000_ac97_probe()
651 if (!r) { in au1000_ac97_probe()
657 au1000->ac97_res_port = request_mem_region(r->start, resource_size(r), in au1000_ac97_probe()
[all …]
Dhal2.c204 int l, r; in hal2_gain_get() local
211 r = 0; in hal2_gain_get()
214 r = 31 - ((tmp >> H2I_C2_R_ATT_SHIFT) & 31); in hal2_gain_get()
220 r = (tmp >> H2I_C2_R_GAIN_SHIFT) & 15; in hal2_gain_get()
224 ucontrol->value.integer.value[1] = r; in hal2_gain_get()
234 int l, r; in hal2_gain_put() local
237 r = ucontrol->value.integer.value[1]; in hal2_gain_put()
243 if (l | r) { in hal2_gain_put()
245 r = 31 - r; in hal2_gain_put()
247 new |= (r << H2I_C2_R_ATT_SHIFT); in hal2_gain_put()
[all …]
/sound/pci/asihpi/
Dhpi_version.h23 #define HPI_VERSION_CONSTRUCTOR(maj, min, r) ((maj << 16) + (min << 8) + r) argument
/sound/soc/pxa/
Dmmp-pcm.c106 struct resource *r; in mmp_pcm_open() local
108 r = platform_get_resource(pdev, IORESOURCE_DMA, substream->stream); in mmp_pcm_open()
109 if (!r) in mmp_pcm_open()
115 dma_data.dma_res = r; in mmp_pcm_open()
/sound/core/oss/
Dmulaw.c37 int r = 0; in val_seg() local
41 r += 4; in val_seg()
45 r += 2; in val_seg()
48 r += 1; in val_seg()
49 return r; in val_seg()
/sound/soc/sh/rcar/
Drsnd.h171 #define rsnd_mod_read(m, r) \ argument
172 rsnd_read(rsnd_mod_to_priv(m), m, RSND_REG_##r)
173 #define rsnd_mod_write(m, r, d) \ argument
174 rsnd_write(rsnd_mod_to_priv(m), m, RSND_REG_##r, d)
175 #define rsnd_mod_force_write(m, r, d) \ argument
176 rsnd_force_write(rsnd_mod_to_priv(m), m, RSND_REG_##r, d)
177 #define rsnd_mod_bset(m, r, s, d) \ argument
178 rsnd_bset(rsnd_mod_to_priv(m), m, RSND_REG_##r, s, d)

1234