/sound/ppc/ |
D | burgundy.c | 45 snd_pmac_burgundy_wcw(struct snd_pmac *chip, unsigned addr, unsigned val) in snd_pmac_burgundy_wcw() argument 47 out_le32(&chip->awacs->codec_ctrl, addr + 0x200c00 + (val & 0xff)); in snd_pmac_burgundy_wcw() 49 out_le32(&chip->awacs->codec_ctrl, addr + 0x200d00 +((val>>8) & 0xff)); in snd_pmac_burgundy_wcw() 51 out_le32(&chip->awacs->codec_ctrl, addr + 0x200e00 +((val>>16) & 0xff)); in snd_pmac_burgundy_wcw() 53 out_le32(&chip->awacs->codec_ctrl, addr + 0x200f00 +((val>>24) & 0xff)); in snd_pmac_burgundy_wcw() 58 snd_pmac_burgundy_rcw(struct snd_pmac *chip, unsigned addr) in snd_pmac_burgundy_rcw() argument 65 out_le32(&chip->awacs->codec_ctrl, addr + 0x100000); in snd_pmac_burgundy_rcw() 70 out_le32(&chip->awacs->codec_ctrl, addr + 0x100100); in snd_pmac_burgundy_rcw() 75 out_le32(&chip->awacs->codec_ctrl, addr + 0x100200); in snd_pmac_burgundy_rcw() 80 out_le32(&chip->awacs->codec_ctrl, addr + 0x100300); in snd_pmac_burgundy_rcw() [all …]
|
/sound/pci/trident/ |
D | trident_memory.c | 22 #define __set_tlb_bus(trident,page,addr) \ argument 23 (trident)->tlb.entries[page] = cpu_to_le32((addr) & ~(SNDRV_TRIDENT_PAGE_SIZE-1)) 32 #define set_tlb_bus(trident,page,addr) __set_tlb_bus(trident,page,addr) argument 34 #define set_silent_tlb(trident,page) __set_tlb_bus(trident, page, trident->tlb.silent_page->addr) 52 dma_addr_t addr) in set_tlb_bus() argument 55 __set_tlb_bus(trident, page, addr); in set_tlb_bus() 56 __set_tlb_bus(trident, page+1, addr + SNDRV_TRIDENT_PAGE_SIZE); in set_tlb_bus() 61 __set_tlb_bus(trident, page, trident->tlb.silent_page->addr); in set_silent_tlb() 62 __set_tlb_bus(trident, page+1, trident->tlb.silent_page->addr); in set_silent_tlb() 81 dma_addr_t addr) in set_tlb_bus() argument [all …]
|
/sound/isa/gus/ |
D | gus_io.c | 92 unsigned int addr, int w_16bit) in __snd_gf1_write_addr() argument 96 addr = ((addr >> 1) & ~0x0000000f) | (addr & 0x0000000f); in __snd_gf1_write_addr() 97 __snd_gf1_write8(gus, SNDRV_GF1_VB_UPPER_ADDRESS, (unsigned char) ((addr >> 26) & 0x03)); in __snd_gf1_write_addr() 99 addr = (addr & 0x00c0000f) | ((addr & 0x003ffff0) >> 1); in __snd_gf1_write_addr() 100 __snd_gf1_write16(gus, reg, (unsigned short) (addr >> 11)); in __snd_gf1_write_addr() 101 __snd_gf1_write16(gus, reg + 1, (unsigned short) (addr << 5)); in __snd_gf1_write_addr() 162 unsigned int addr, short w_16bit) in snd_gf1_write_addr() argument 164 __snd_gf1_write_addr(gus, reg, addr, w_16bit); in snd_gf1_write_addr() 245 unsigned int addr, short w_16bit) 250 __snd_gf1_write_addr(gus, reg, addr, w_16bit); [all …]
|
D | gus_mixer.c | 60 #define ICS_DOUBLE(xname, xindex, addr) \ argument 64 .private_value = addr } 79 int addr = kcontrol->private_value & 0xff; in snd_ics_get_double() local 83 left = gus->gf1.ics_regs[addr][0]; in snd_ics_get_double() 84 right = gus->gf1.ics_regs[addr][1]; in snd_ics_get_double() 95 int addr = kcontrol->private_value & 0xff; in snd_ics_put_double() local 102 oval1 = gus->gf1.ics_regs[addr][0]; in snd_ics_put_double() 103 oval2 = gus->gf1.ics_regs[addr][1]; in snd_ics_put_double() 105 gus->gf1.ics_regs[addr][0] = val1; in snd_ics_put_double() 106 gus->gf1.ics_regs[addr][1] = val2; in snd_ics_put_double() [all …]
|
D | gus_dma.c | 23 unsigned int addr, in snd_gf1_dma_program() argument 34 addr, buf_addr, count); in snd_gf1_dma_program() 38 address = addr >> 1; in snd_gf1_dma_program() 40 if (addr & 0x1f) { in snd_gf1_dma_program() 41 snd_printd("snd_gf1_dma_transfer: unaligned address (0x%x)?\n", addr); in snd_gf1_dma_program() 44 address = (addr & 0x000c0000) | ((addr & 0x0003ffff) >> 1); in snd_gf1_dma_program() 47 address = addr; in snd_gf1_dma_program() 131 snd_gf1_dma_program(gus, block->addr, block->buf_addr, block->count, (unsigned short) block->cmd); in snd_gf1_dma_interrupt() 136 block->addr, block->buf_addr, block->count, block->cmd); in snd_gf1_dma_interrupt() 198 block->addr, (long) block->buffer, block->count, in snd_gf1_dma_transfer_block() [all …]
|
/sound/hda/ |
D | hdac_bus.c | 87 int snd_hdac_bus_exec_verb(struct hdac_bus *bus, unsigned int addr, in snd_hdac_bus_exec_verb() argument 93 err = snd_hdac_bus_exec_verb_unlocked(bus, addr, cmd, res); in snd_hdac_bus_exec_verb() 107 int snd_hdac_bus_exec_verb_unlocked(struct hdac_bus *bus, unsigned int addr, in snd_hdac_bus_exec_verb_unlocked() argument 126 err = bus->ops->get_response(bus, addr, &tmp); in snd_hdac_bus_exec_verb_unlocked() 131 err = bus->ops->get_response(bus, addr, res); in snd_hdac_bus_exec_verb_unlocked() 132 trace_hda_get_response(bus, addr, *res); in snd_hdac_bus_exec_verb_unlocked() 208 if (bus->caddr_tbl[codec->addr]) { in snd_hdac_bus_add_device() 210 codec->addr); in snd_hdac_bus_add_device() 215 bus->caddr_tbl[codec->addr] = codec; in snd_hdac_bus_add_device() 216 set_bit(codec->addr, &bus->codec_powered); in snd_hdac_bus_add_device() [all …]
|
D | hdac_controller.c | 49 bus->corb.addr = bus->rb.addr; in snd_hdac_bus_init_cmd_io() 51 snd_hdac_chip_writel(bus, CORBLBASE, (u32)bus->corb.addr); in snd_hdac_bus_init_cmd_io() 52 snd_hdac_chip_writel(bus, CORBUBASE, upper_32_bits(bus->corb.addr)); in snd_hdac_bus_init_cmd_io() 68 bus->rirb.addr = bus->rb.addr + 2048; in snd_hdac_bus_init_cmd_io() 72 snd_hdac_chip_writel(bus, RIRBLBASE, (u32)bus->rirb.addr); in snd_hdac_bus_init_cmd_io() 73 snd_hdac_chip_writel(bus, RIRBUBASE, upper_32_bits(bus->rirb.addr)); in snd_hdac_bus_init_cmd_io() 128 unsigned int addr = cmd >> 28; in azx_command_addr() local 130 if (snd_BUG_ON(addr >= HDA_MAX_CODECS)) in azx_command_addr() 131 addr = 0; in azx_command_addr() 132 return addr; in azx_command_addr() [all …]
|
/sound/core/ |
D | sgbuf.c | 17 dma_addr_t addr; member 50 if (!(sgbuf->table[i].addr & ~PAGE_MASK)) in snd_dma_sg_free() 53 tmpb.addr = sgbuf->table[i].addr & PAGE_MASK; in snd_dma_sg_free() 54 tmpb.bytes = (sgbuf->table[i].addr & ~PAGE_MASK) << PAGE_SHIFT; in snd_dma_sg_free() 116 table->addr = tmpb.addr; in snd_dma_sg_alloc() 118 table->addr |= chunk; /* mark head */ in snd_dma_sg_alloc() 122 tmpb.addr += PAGE_SIZE; in snd_dma_sg_alloc() 145 dma_addr_t addr; in snd_dma_sg_get_addr() local 147 addr = sgbuf->table[offset >> PAGE_SHIFT].addr; in snd_dma_sg_get_addr() 148 addr &= ~((dma_addr_t)PAGE_SIZE - 1); in snd_dma_sg_get_addr() [all …]
|
D | memalloc.c | 66 dmab->addr = 0; in snd_dma_alloc_pages() 203 return dmab->addr + offset; in snd_sgbuf_get_addr() 251 dmab->addr = page_to_phys(virt_to_page(p)); in snd_dma_continuous_alloc() 264 dmab->addr >> PAGE_SHIFT, in snd_dma_continuous_mmap() 316 unsigned long addr; in snd_dma_vmalloc_get_chunk_size() local 321 addr = get_vmalloc_page_addr(dmab, start); in snd_dma_vmalloc_get_chunk_size() 326 addr += PAGE_SIZE; in snd_dma_vmalloc_get_chunk_size() 327 if (get_vmalloc_page_addr(dmab, start) != addr) in snd_dma_vmalloc_get_chunk_size() 359 p = gen_pool_dma_alloc_align(pool, size, &dmab->addr, PAGE_SIZE); in snd_dma_iram_alloc() 384 dmab->addr >> PAGE_SHIFT, in snd_dma_iram_mmap() [all …]
|
/sound/pci/ctxfi/ |
D | ctvmem.c | 63 block->addr = entry->addr; in get_vm_block() 66 entry->addr += size; in get_vm_block() 88 if (entry->addr >= (block->addr + block->size)) in put_vm_block() 95 if ((block->addr + block->size) == entry->addr) { in put_vm_block() 96 entry->addr = block->addr; in put_vm_block() 110 if ((pre_ent->addr + pre_ent->size) > entry->addr) in put_vm_block() 140 pte_start = (block->addr >> CT_PAGE_SHIFT); in ct_vm_map() 143 unsigned long addr; in ct_vm_map() local 144 addr = snd_pcm_sgbuf_get_addr(substream, i << CT_PAGE_SHIFT); in ct_vm_map() 145 ptp[pte_start + i] = addr; in ct_vm_map() [all …]
|
/sound/firewire/bebob/ |
D | bebob_command.c | 92 avc_bridgeco_fill_extension_addr(u8 *buf, u8 *addr) in avc_bridgeco_fill_extension_addr() argument 94 buf[1] = addr[0]; in avc_bridgeco_fill_extension_addr() 95 memcpy(buf + 4, addr + 1, 5); in avc_bridgeco_fill_extension_addr() 99 avc_bridgeco_fill_plug_info_extension_command(u8 *buf, u8 *addr, in avc_bridgeco_fill_plug_info_extension_command() argument 105 avc_bridgeco_fill_extension_addr(buf, addr); in avc_bridgeco_fill_plug_info_extension_command() 110 u8 addr[AVC_BRIDGECO_ADDR_BYTES], in avc_bridgeco_get_plug_type() 121 avc_bridgeco_fill_plug_info_extension_command(buf, addr, 0x00); in avc_bridgeco_get_plug_type() 146 int avc_bridgeco_get_plug_ch_count(struct fw_unit *unit, u8 addr[AVC_BRIDGECO_ADDR_BYTES], in avc_bridgeco_get_plug_ch_count() 157 avc_bridgeco_fill_plug_info_extension_command(buf, addr, 0x02); in avc_bridgeco_get_plug_ch_count() 183 u8 addr[AVC_BRIDGECO_ADDR_BYTES], in avc_bridgeco_get_plug_ch_pos() [all …]
|
D | bebob_stream.c | 123 u8 addr[AVC_BRIDGECO_ADDR_BYTES], input[7]; in snd_bebob_stream_get_clock_src() local 162 avc_bridgeco_fill_msu_addr(addr, AVC_BRIDGECO_PLUG_DIR_IN, in snd_bebob_stream_get_clock_src() 164 err = avc_bridgeco_get_plug_input(bebob->unit, addr, input); in snd_bebob_stream_get_clock_src() 217 avc_bridgeco_fill_unit_addr(addr, in snd_bebob_stream_get_clock_src() 221 err = avc_bridgeco_get_plug_type(bebob->unit, addr, in snd_bebob_stream_get_clock_src() 259 u8 *buf, addr[AVC_BRIDGECO_ADDR_BYTES], type; in map_data_channels() local 276 avc_bridgeco_fill_unit_addr(addr, dir, AVC_BRIDGECO_PLUG_UNIT_ISOC, 0); in map_data_channels() 277 err = avc_bridgeco_get_plug_ch_pos(bebob->unit, addr, buf, 256); in map_data_channels() 296 avc_bridgeco_fill_unit_addr(addr, dir, in map_data_channels() 298 err = avc_bridgeco_get_plug_section_type(bebob->unit, addr, in map_data_channels() [all …]
|
D | bebob.h | 122 snd_bebob_read_block(struct fw_unit *unit, u64 addr, void *buf, int size) in snd_bebob_read_block() argument 125 BEBOB_ADDR_REG_INFO + addr, in snd_bebob_read_block() 130 snd_bebob_read_quad(struct fw_unit *unit, u64 addr, u32 *buf) in snd_bebob_read_quad() argument 133 BEBOB_ADDR_REG_INFO + addr, in snd_bebob_read_quad() 197 u8 addr[AVC_BRIDGECO_ADDR_BYTES], 200 u8 addr[AVC_BRIDGECO_ADDR_BYTES], 202 int avc_bridgeco_get_plug_ch_count(struct fw_unit *unit, u8 addr[AVC_BRIDGECO_ADDR_BYTES], 205 u8 addr[AVC_BRIDGECO_ADDR_BYTES], 208 u8 addr[AVC_BRIDGECO_ADDR_BYTES], 211 u8 addr[AVC_BRIDGECO_ADDR_BYTES], u8 *buf,
|
/sound/pci/oxygen/ |
D | xonar_dg.c | 74 int cs4245_read_spi(struct oxygen *chip, u8 addr) in cs4245_read_spi() argument 83 ((CS4245_SPI_ADDRESS | CS4245_SPI_WRITE) << 8) | addr); in cs4245_read_spi() 95 data->cs4245_shadow[addr] = oxygen_read8(chip, OXYGEN_SPI_DATA1); in cs4245_read_spi() 103 unsigned char addr; in cs4245_shadow_control() local 106 for (addr = 1; addr < ARRAY_SIZE(data->cs4245_shadow); addr++) { in cs4245_shadow_control() 108 cs4245_read_spi(chip, addr) : in cs4245_shadow_control() 109 cs4245_write_spi(chip, addr)); in cs4245_shadow_control() 278 unsigned int addr; in dump_cs4245_registers() local 282 for (addr = 1; addr < ARRAY_SIZE(data->cs4245_shadow); addr++) in dump_cs4245_registers() 283 snd_iprintf(buffer, " %02x", data->cs4245_shadow[addr]); in dump_cs4245_registers()
|
/sound/soc/codecs/ |
D | sigmadsp-i2c.c | 17 unsigned int addr, const uint8_t data[], size_t len) in sigmadsp_write_i2c() argument 26 put_unaligned_be16(addr, buf); in sigmadsp_write_i2c() 40 unsigned int addr, uint8_t data[], size_t len) in sigmadsp_read_i2c() argument 47 put_unaligned_be16(addr, buf); in sigmadsp_read_i2c() 49 msgs[0].addr = client->addr; in sigmadsp_read_i2c() 54 msgs[1].addr = client->addr; in sigmadsp_read_i2c()
|
D | rt5677-spi.h | 13 int rt5677_spi_read(u32 addr, void *rxbuf, size_t len); 14 int rt5677_spi_write(u32 addr, const void *txbuf, size_t len); 15 int rt5677_spi_write_firmware(u32 addr, const struct firmware *fw); 18 static inline int rt5677_spi_read(u32 addr, void *rxbuf, size_t len) in rt5677_spi_read() argument 22 static inline int rt5677_spi_write(u32 addr, const void *txbuf, size_t len) in rt5677_spi_write() argument 26 static inline int rt5677_spi_write_firmware(u32 addr, const struct firmware *fw) in rt5677_spi_write_firmware() argument
|
/sound/i2c/other/ |
D | ak4xxx-adda.c | 349 #define AK_COMPOSE(chip,addr,shift,mask) \ argument 350 (((chip) << 8) | (addr) | ((shift) << 16) | ((mask) << 24)) 369 int addr = AK_GET_ADDR(kcontrol->private_value); in snd_akm4xxx_volume_get() local 371 ucontrol->value.integer.value[0] = snd_akm4xxx_get_vol(ak, chip, addr); in snd_akm4xxx_volume_get() 375 static int put_ak_reg(struct snd_kcontrol *kcontrol, int addr, in put_ak_reg() argument 382 if (snd_akm4xxx_get_vol(ak, chip, addr) == nval) in put_ak_reg() 385 snd_akm4xxx_set_vol(ak, chip, addr, nval); in put_ak_reg() 396 snd_akm4xxx_write(ak, chip, addr, nval); in put_ak_reg() 427 int addr = AK_GET_ADDR(kcontrol->private_value); in snd_akm4xxx_stereo_volume_get() local 429 ucontrol->value.integer.value[0] = snd_akm4xxx_get_vol(ak, chip, addr); in snd_akm4xxx_stereo_volume_get() [all …]
|
/sound/soc/samsung/ |
D | i2s.c | 124 void __iomem *addr; member 144 active = readl(i2s->priv->addr + I2SCON); in tx_active() 182 active = readl(i2s->priv->addr + I2SCON) & CON_RXDMA_ACTIVE; in rx_active() 248 rfs = readl(priv->addr + I2SMOD) >> priv->variant_regs->rfs_off; in get_rfs() 267 u32 mod = readl(priv->addr + I2SMOD); in set_rfs() 299 writel(mod, priv->addr + I2SMOD); in set_rfs() 308 bfs = readl(priv->addr + I2SMOD) >> priv->variant_regs->bfs_off; in get_bfs() 328 u32 mod = readl(priv->addr + I2SMOD); in set_bfs() 373 writel(mod, priv->addr + I2SMOD); in set_bfs() 379 int blc = readl(i2s->priv->addr + I2SMOD); in get_blc() [all …]
|
/sound/soc/intel/common/ |
D | sst-dsp.c | 23 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() 53 sst->ops->write(sst->addr.shim, offset, value); in sst_dsp_shim_write() 64 val = sst->ops->read(sst->addr.shim, offset); in sst_dsp_shim_read() [all …]
|
/sound/core/seq/ |
D | seq_ports.c | 53 if (port->addr.port == num) { in snd_seq_port_use_ptr() 73 num = pinfo->addr.port; in snd_seq_port_query_nearest() 77 if (port->addr.port < num) in snd_seq_port_query_nearest() 79 if (port->addr.port == num) { in snd_seq_port_query_nearest() 83 if (found == NULL || port->addr.port < found->addr.port) in snd_seq_port_query_nearest() 133 new_port->addr.client = client->number; in snd_seq_create_port() 134 new_port->addr.port = -1; in snd_seq_create_port() 146 if (p->addr.port > num) in snd_seq_create_port() 149 num = p->addr.port + 1; in snd_seq_create_port() 154 new_port->addr.port = num; /* store the port number in the port */ in snd_seq_create_port() [all …]
|
/sound/pci/ |
D | sis7019.h | 197 #define SIS_PLAY_DMA_ADDR(addr, num) \ argument 198 ((num * SIS_PLAY_DMA_SIZE) + (addr) + SIS_PLAY_DMA_OFFSET) 222 #define SIS_CAPTURE_DMA_ADDR(addr, num) \ argument 223 ((num * SIS_CAPTURE_DMA_SIZE) + (addr) + SIS_CAPTURE_DMA_OFFSET) 270 #define SIS_MIXER_START_ADDR(addr, num) \ argument 271 ((num * SIS_MIXER_START_SIZE) + (addr) + SIS_MIXER_START_OFFSET) 278 #define SIS_MIXER_ADDR(addr, num) \ argument 279 ((num * SIS_MIXER_SIZE) + (addr) + SIS_MIXER_OFFSET) 308 #define SIS_WAVE_ADDR(addr, num) \ argument 309 ((num * SIS_WAVE_SIZE) + (addr) + SIS_WAVE_OFFSET)
|
/sound/soc/qcom/ |
D | lpass-lpaif-reg.h | 11 #define LPAIF_I2SCTL_REG_ADDR(v, addr, port) \ argument 12 (v->i2sctrl_reg_base + (addr) + v->i2sctrl_reg_stride * (port)) 68 #define LPAIF_IRQ_REG_ADDR(v, addr, port) \ argument 69 (v->irq_reg_base + (addr) + v->irq_reg_stride * (port)) 78 #define LPASS_HDMITX_APP_IRQ_REG_ADDR(v, addr) \ argument 79 ((v->hdmi_irq_reg_base) + (addr)) 97 #define LPAIF_HDMI_RDMA_REG_ADDR(v, addr, chan) \ argument 98 (v->hdmi_rdma_reg_base + (addr) + v->hdmi_rdma_reg_stride * (chan)) 109 #define LPAIF_RDMA_REG_ADDR(v, addr, chan) \ argument 110 (v->rdma_reg_base + (addr) + v->rdma_reg_stride * (chan)) [all …]
|
/sound/soc/tegra/ |
D | tegra20_das.c | 37 u32 addr; in tegra20_das_connect_dap_to_dac() local 43 addr = TEGRA20_DAS_DAP_CTRL_SEL + in tegra20_das_connect_dap_to_dac() 47 tegra20_das_write(addr, reg); in tegra20_das_connect_dap_to_dac() 56 u32 addr; in tegra20_das_connect_dap_to_dap() local 62 addr = TEGRA20_DAS_DAP_CTRL_SEL + in tegra20_das_connect_dap_to_dap() 69 tegra20_das_write(addr, reg); in tegra20_das_connect_dap_to_dap() 77 u32 addr; in tegra20_das_connect_dac_to_dap() local 83 addr = TEGRA20_DAS_DAC_INPUT_DATA_CLK_SEL + in tegra20_das_connect_dac_to_dap() 89 tegra20_das_write(addr, reg); in tegra20_das_connect_dac_to_dap()
|
/sound/soc/sof/intel/ |
D | hda-bus.c | 26 static void update_codec_wake_enable(struct hdac_bus *bus, unsigned int addr, bool link_power) in update_codec_wake_enable() argument 31 mask &= ~BIT(addr); in update_codec_wake_enable() 33 mask |= BIT(addr); in update_codec_wake_enable() 41 bool oldstate = test_bit(codec->addr, &bus->codec_powered); in sof_hda_bus_link_power() 56 if (codec->addr == HDA_IDISP_ADDR && !enable) in sof_hda_bus_link_power() 60 update_codec_wake_enable(bus, codec->addr, enable); in sof_hda_bus_link_power()
|
/sound/soc/sof/ |
D | utils.c | 25 void sof_io_write(struct snd_sof_dev *sdev, void __iomem *addr, u32 value) in sof_io_write() argument 27 writel(value, addr); in sof_io_write() 31 u32 sof_io_read(struct snd_sof_dev *sdev, void __iomem *addr) in sof_io_read() argument 33 return readl(addr); in sof_io_read() 37 void sof_io_write64(struct snd_sof_dev *sdev, void __iomem *addr, u64 value) in sof_io_write64() argument 39 writeq(value, addr); in sof_io_write64() 43 u64 sof_io_read64(struct snd_sof_dev *sdev, void __iomem *addr) in sof_io_read64() argument 45 return readq(addr); in sof_io_read64()
|