Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 150) sorted by relevance

123456

/sound/soc/amd/raven/
Dpci-acp3x.c18 struct resource *res; member
70 adata->res = devm_kzalloc(&pci->dev, in snd_acp3x_probe()
73 if (!adata->res) { in snd_acp3x_probe()
78 adata->res[0].name = "acp3x_i2s_iomem"; in snd_acp3x_probe()
79 adata->res[0].flags = IORESOURCE_MEM; in snd_acp3x_probe()
80 adata->res[0].start = addr; in snd_acp3x_probe()
81 adata->res[0].end = addr + (ACP3x_REG_END - ACP3x_REG_START); in snd_acp3x_probe()
83 adata->res[1].name = "acp3x_i2s_irq"; in snd_acp3x_probe()
84 adata->res[1].flags = IORESOURCE_IRQ; in snd_acp3x_probe()
85 adata->res[1].start = pci->irq; in snd_acp3x_probe()
[all …]
/sound/hda/
Dhdac_bus.c72 unsigned int cmd, unsigned int *res) in snd_hdac_bus_exec_verb() argument
77 err = snd_hdac_bus_exec_verb_unlocked(bus, addr, cmd, res); in snd_hdac_bus_exec_verb()
92 unsigned int cmd, unsigned int *res) in snd_hdac_bus_exec_verb_unlocked() argument
100 if (res) in snd_hdac_bus_exec_verb_unlocked()
101 *res = -1; in snd_hdac_bus_exec_verb_unlocked()
103 res = &tmp; in snd_hdac_bus_exec_verb_unlocked()
114 if (!err && res) { in snd_hdac_bus_exec_verb_unlocked()
115 err = bus->ops->get_response(bus, addr, res); in snd_hdac_bus_exec_verb_unlocked()
116 trace_hda_get_response(bus, addr, *res); in snd_hdac_bus_exec_verb_unlocked()
132 void snd_hdac_bus_queue_event(struct hdac_bus *bus, u32 res, u32 res_ex) in snd_hdac_bus_queue_event() argument
[all …]
Dtrace.h32 TP_PROTO(struct hdac_bus *bus, unsigned int addr, unsigned int res),
33 TP_ARGS(bus, addr, res),
38 dev_name((bus)->dev), addr, res);
44 TP_PROTO(struct hdac_bus *bus, u32 res, u32 res_ex),
45 TP_ARGS(bus, res, res_ex),
50 dev_name((bus)->dev), res_ex & 0x0f, res, res_ex);
Dhdac_controller.c189 u32 res, res_ex; in snd_hdac_bus_update_rirb() local
207 res = le32_to_cpu(bus->rirb.buf[rp]); in snd_hdac_bus_update_rirb()
212 res, res_ex, bus->rirb.rp, wp); in snd_hdac_bus_update_rirb()
215 snd_hdac_bus_queue_event(bus, res, res_ex); in snd_hdac_bus_update_rirb()
217 bus->rirb.res[addr] = res; in snd_hdac_bus_update_rirb()
222 res, res_ex, bus->last_cmd[addr]); in snd_hdac_bus_update_rirb()
237 unsigned int *res) in snd_hdac_bus_get_response() argument
249 if (res) in snd_hdac_bus_get_response()
250 *res = bus->rirb.res[addr]; /* the last value */ in snd_hdac_bus_get_response()
/sound/pci/lola/
Dlola.h326 unsigned int res, res_ex; /* last read values */ member
447 #define LOLA_AFG_MIXER_WIDGET_PRESENT(res) ((res & (1 << 21)) != 0) argument
448 #define LOLA_AFG_CLOCK_WIDGET_PRESENT(res) ((res & (1 << 20)) != 0) argument
449 #define LOLA_AFG_INPUT_PIN_COUNT(res) ((res >> 10) & 0x2ff) argument
450 #define LOLA_AFG_OUTPUT_PIN_COUNT(res) ((res) & 0x2ff) argument
453 #define LOLA_AMP_MUTE_CAPABLE(res) ((res & (1 << 31)) != 0) argument
454 #define LOLA_AMP_STEP_SIZE(res) ((res >> 24) & 0x7f) argument
455 #define LOLA_AMP_NUM_STEPS(res) ((res >> 12) & 0x3ff) argument
456 #define LOLA_AMP_OFFSET(res) ((res) & 0x3ff) argument
469 #define LOLA_MIXER_SRC_INPUT_PLAY_SEPARATION(res) ((res >> 2) & 0x1f) argument
[all …]
Dlola_clock.c203 unsigned int res; in lola_enable_clock_events() local
209 0, &res, NULL); in lola_enable_clock_events()
212 if (res) { in lola_enable_clock_events()
214 res); in lola_enable_clock_events()
222 unsigned int res; in lola_set_clock_index() local
228 0, &res, NULL); in lola_set_clock_index()
231 if (res) { in lola_set_clock_index()
232 dev_warn(chip->card->dev, "error in set_clock %d\n", res); in lola_set_clock_index()
/sound/pci/hda/
Dhda_hwdep.c24 u32 verb, res; in verb_write_ioctl() local
28 res = snd_hda_codec_read(codec, verb >> 24, 0, in verb_write_ioctl()
30 if (put_user(res, &arg->res)) in verb_write_ioctl()
38 u32 verb, res; in get_wcap_ioctl() local
46 res = 0; in get_wcap_ioctl()
50 res = codec->wcaps[verb]; in get_wcap_ioctl()
52 if (put_user(res, &arg->res)) in get_wcap_ioctl()
/sound/isa/gus/
Dgus_io.c107 unsigned int res; in __snd_gf1_read_addr() local
109 res = ((unsigned int) __snd_gf1_look16(gus, reg | 0x80) << 11) & 0xfff800; in __snd_gf1_read_addr()
110 res |= ((unsigned int) __snd_gf1_look16(gus, (reg + 1) | 0x80) >> 5) & 0x0007ff; in __snd_gf1_read_addr()
112 res |= (unsigned int) __snd_gf1_look8(gus, SNDRV_GF1_VB_UPPER_ADDRESS | 0x80) << 26; in __snd_gf1_read_addr()
114 res = ((res << 1) & 0xffffffe0) | (res & 0x0000000f); in __snd_gf1_read_addr()
116 res = ((res & 0x001ffff0) << 1) | (res & 0x00c0000f); in __snd_gf1_read_addr()
117 return res; in __snd_gf1_read_addr()
201 unsigned char res; in snd_gf1_i_look8() local
204 res = __snd_gf1_look8(gus, reg); in snd_gf1_i_look8()
206 return res; in snd_gf1_i_look8()
[all …]
Dinterwave.c166 unsigned char res; in snd_interwave_i2c_getclockline() local
168 res = inb(port) & 1; in snd_interwave_i2c_getclockline()
170 printk(KERN_DEBUG "i2c_getclockline - 0x%lx -> %i\n", port, res); in snd_interwave_i2c_getclockline()
172 return res; in snd_interwave_i2c_getclockline()
178 unsigned char res; in snd_interwave_i2c_getdataline() local
182 res = (inb(port) & 2) >> 1; in snd_interwave_i2c_getdataline()
184 printk(KERN_DEBUG "i2c_getdataline - 0x%lx -> %i\n", port, res); in snd_interwave_i2c_getdataline()
186 return res; in snd_interwave_i2c_getdataline()
849 int res; in snd_interwave_pnp_detect() local
858 res = snd_interwave_card_new(&pcard->card->dev, dev, &card); in snd_interwave_pnp_detect()
[all …]
/sound/soc/
Dsoc-devres.c12 static void devm_component_release(struct device *dev, void *res) in devm_component_release() argument
14 snd_soc_unregister_component(*(struct device **)res); in devm_component_release()
50 static void devm_card_release(struct device *dev, void *res) in devm_card_release() argument
52 snd_soc_unregister_card(*(struct snd_soc_card **)res); in devm_card_release()
86 static void devm_dmaengine_pcm_release(struct device *dev, void *res) in devm_dmaengine_pcm_release() argument
88 snd_dmaengine_pcm_unregister(*(struct device **)res); in devm_dmaengine_pcm_release()
/sound/hda/ext/
Dhdac_ext_stream.c255 struct hdac_ext_stream *res = NULL; in hdac_ext_link_stream_assign() local
273 res = hstream; in hdac_ext_link_stream_assign()
279 res = hstream; in hdac_ext_link_stream_assign()
283 if (res) { in hdac_ext_link_stream_assign()
284 res->link_locked = 1; in hdac_ext_link_stream_assign()
285 res->link_substream = substream; in hdac_ext_link_stream_assign()
288 return res; in hdac_ext_link_stream_assign()
295 struct hdac_ext_stream *res = NULL; in hdac_ext_host_stream_assign() local
314 res = hstream; in hdac_ext_host_stream_assign()
318 if (res) { in hdac_ext_host_stream_assign()
[all …]
/sound/core/oss/
Dpcm_oss.c1606 long res; in snd_pcm_oss_sync1() local
1633 res = schedule_timeout(10 * HZ); in snd_pcm_oss_sync1()
1638 if (res == 0) { in snd_pcm_oss_sync1()
2009 static int snd_pcm_oss_get_caps1(struct snd_pcm_substream *substream, int res) in snd_pcm_oss_get_caps1() argument
2013 res &= ~DSP_CAP_DUPLEX; in snd_pcm_oss_get_caps1()
2014 return res; in snd_pcm_oss_get_caps1()
2019 res |= DSP_CAP_MULTI; in snd_pcm_oss_get_caps1()
2027 res &= ~DSP_CAP_REALTIME; in snd_pcm_oss_get_caps1()
2030 return res; in snd_pcm_oss_get_caps1()
2587 int res; in snd_pcm_oss_ioctl() local
[all …]
Drate.c186 snd_pcm_sframes_t res; in rate_src_frames() local
194 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_src_frames()
196 res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_src_frames()
212 data->old_dst_frames = res; in rate_src_frames()
213 return res; in rate_src_frames()
219 snd_pcm_sframes_t res; in rate_dst_frames() local
227 res = (((frames << SHIFT) + (data->pitch / 2)) / data->pitch); in rate_dst_frames()
229 res = (((frames * data->pitch) + (BITS/2)) >> SHIFT); in rate_dst_frames()
245 data->old_src_frames = res; in rate_dst_frames()
246 return res; in rate_dst_frames()
/sound/soc/sof/intel/
Dhda-dai.c60 struct hdac_ext_stream *res = NULL; in hda_link_stream_assign() local
88 res = hstream; in hda_link_stream_assign()
92 res = hstream; in hda_link_stream_assign()
104 if (res) { in hda_link_stream_assign()
109 if (!res->decoupled) in hda_link_stream_assign()
110 snd_hdac_ext_stream_decouple_locked(bus, res, true); in hda_link_stream_assign()
112 res->link_locked = 1; in hda_link_stream_assign()
113 res->link_substream = substream; in hda_link_stream_assign()
117 return res; in hda_link_stream_assign()
/sound/soc/hisilicon/
Dhi3660-i2s.c337 struct resource *res; in hi3660_i2s_probe() local
347 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in hi3660_i2s_probe()
348 if (!res) { in hi3660_i2s_probe()
352 i2s->base_phys = (phys_addr_t)res->start; in hi3660_i2s_probe()
357 i2s->base = devm_ioremap_resource(dev, res); in hi3660_i2s_probe()
364 res = platform_get_resource(pdev, IORESOURCE_MEM, 1); in hi3660_i2s_probe()
365 if (!res) { in hi3660_i2s_probe()
369 i2s->base_syscon = devm_ioremap(dev, res->start, resource_size(res)); in hi3660_i2s_probe()
/sound/soc/samsung/
Ds3c2412-i2s.c154 struct resource *res; in s3c2412_iis_dev_probe() local
162 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in s3c2412_iis_dev_probe()
163 s3c2412_i2s.regs = devm_ioremap_resource(&pdev->dev, res); in s3c2412_iis_dev_probe()
167 s3c2412_i2s_pcm_stereo_out.addr = res->start + S3C2412_IISTXD; in s3c2412_iis_dev_probe()
169 s3c2412_i2s_pcm_stereo_in.addr = res->start + S3C2412_IISRXD; in s3c2412_iis_dev_probe()
/sound/soc/fsl/
Dimx-ssi.c505 struct resource *res; in imx_ssi_probe() local
537 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in imx_ssi_probe()
538 ssi->base = devm_ioremap_resource(&pdev->dev, res); in imx_ssi_probe()
558 ssi->dma_params_rx.addr = res->start + SSI_SRX0; in imx_ssi_probe()
559 ssi->dma_params_tx.addr = res->start + SSI_STX0; in imx_ssi_probe()
567 res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "tx0"); in imx_ssi_probe()
568 if (res) { in imx_ssi_probe()
569 imx_pcm_dma_params_init_data(&ssi->filter_data_tx, res->start, in imx_ssi_probe()
573 res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "rx0"); in imx_ssi_probe()
574 if (res) { in imx_ssi_probe()
[all …]
Dfsl_utils.c33 struct resource res; in fsl_asoc_get_dma_channel() local
55 ret = of_address_to_resource(dma_channel_np, 0, &res); in fsl_asoc_get_dma_channel()
61 (unsigned long long) res.start, dma_channel_np); in fsl_asoc_get_dma_channel()
/sound/soc/sh/rcar/
Dgen.c25 phys_addr_t res[RSND_BASE_MAX]; member
141 return gen->res[reg_id]; in rsnd_gen_get_phy_addr()
156 struct resource *res; in _rsnd_gen_regmap_init() local
170 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, name); in _rsnd_gen_regmap_init()
171 if (!res) in _rsnd_gen_regmap_init()
172 res = platform_get_resource(pdev, IORESOURCE_MEM, reg_id); in _rsnd_gen_regmap_init()
173 if (!res) in _rsnd_gen_regmap_init()
176 base = devm_ioremap_resource(dev, res); in _rsnd_gen_regmap_init()
187 gen->res[reg_id] = res->start; in _rsnd_gen_regmap_init()
/sound/core/
Dpcm_native.c982 int res; in snd_pcm_status_user() local
993 res = snd_pcm_status(substream, &status); in snd_pcm_status_user()
994 if (res < 0) in snd_pcm_status_user()
995 return res; in snd_pcm_status_user()
1026 int res; in snd_pcm_channel_info_user() local
1030 res = snd_pcm_channel_info(substream, &info); in snd_pcm_channel_info_user()
1031 if (res < 0) in snd_pcm_channel_info_user()
1032 return res; in snd_pcm_channel_info_user()
1071 int res = 0, depth = 1; in snd_pcm_action_group() local
1083 res = ops->pre_action(s, state); in snd_pcm_action_group()
[all …]
Dmisc.c30 void release_and_free_resource(struct resource *res) in release_and_free_resource() argument
32 if (res) { in release_and_free_resource()
33 release_resource(res); in release_and_free_resource()
34 kfree(res); in release_and_free_resource()
/sound/core/seq/
Dseq_prioq.c331 int res; in prioq_remove_match() local
347 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
349 res = snd_seq_compare_real_time(&ev->time.time, &info->time.time); in prioq_remove_match()
350 if (!res) in prioq_remove_match()
355 res = snd_seq_compare_tick_time(&ev->time.tick, &info->time.tick); in prioq_remove_match()
357 res = snd_seq_compare_real_time(&ev->time.time, &info->time.time); in prioq_remove_match()
358 if (res) in prioq_remove_match()
/sound/pci/
Dvia82xx_modem.c558 unsigned int size, res; in calc_linear_pos() local
561 res = viadev->idx_table[idx].offset + size - count; in calc_linear_pos()
568 res = viadev->lastpos; in calc_linear_pos()
569 } else if (check_invalid_pos(viadev, res)) { in calc_linear_pos()
580 res = viadev->lastpos; in calc_linear_pos()
584 res = viadev->idx_table[idx].offset; in calc_linear_pos()
589 res = viadev->idx_table[idx].offset + size; in calc_linear_pos()
590 if (check_invalid_pos(viadev, res)) { in calc_linear_pos()
593 res = viadev->lastpos; in calc_linear_pos()
597 viadev->lastpos = res; /* remember the last position */ in calc_linear_pos()
[all …]
/sound/i2c/
Di2c.c265 int err, res = 0; in snd_i2c_bit_sendbytes() local
281 res++; in snd_i2c_bit_sendbytes()
284 return res; in snd_i2c_bit_sendbytes()
291 int err, res = 0; in snd_i2c_bit_readbytes() local
308 res++; in snd_i2c_bit_readbytes()
311 return res; in snd_i2c_bit_readbytes()
/sound/soc/dwc/
Ddwc-i2s.c540 struct resource *res, in dw_configure_dai_by_pd() argument
559 dev->play_dma_data.pd.addr = res->start + I2S_TXDMA; in dw_configure_dai_by_pd()
560 dev->capture_dma_data.pd.addr = res->start + I2S_RXDMA; in dw_configure_dai_by_pd()
573 struct resource *res) in dw_configure_dai_by_dt() argument
593 dev->play_dma_data.dt.addr = res->start + I2S_TXDMA; in dw_configure_dai_by_dt()
603 dev->capture_dma_data.dt.addr = res->start + I2S_RXDMA; in dw_configure_dai_by_dt()
618 struct resource *res; in dw_i2s_probe() local
635 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in dw_i2s_probe()
636 dev->i2s_base = devm_ioremap_resource(&pdev->dev, res); in dw_i2s_probe()
662 ret = dw_configure_dai_by_pd(dev, dw_i2s_dai, res, pdata); in dw_i2s_probe()
[all …]

123456