Lines Matching refs:reg
36 #define AMX_CH_REG(id, reg) ((reg) + ((id) * TEGRA210_AMX_AUDIOCIF_CH_STRIDE))
131 unsigned int reg)
160 tegra_set_cif(amx->regmap, reg, &cif_conf);
198 int reg = mc->reg;
201 if (reg > 31)
202 enabled = amx->byte_mask[1] & (1 << (reg - 32));
204 enabled = amx->byte_mask[0] & (1 << reg);
217 ucontrol->value.integer.value[0] = bytes_map[reg];
232 int reg = mc->reg;
234 unsigned int mask_val = amx->byte_mask[reg / 32];
237 mask_val |= (1 << (reg % 32));
239 mask_val &= ~(1 << (reg % 32));
241 if (mask_val == amx->byte_mask[reg / 32])
245 bytes_map[reg] = value % 256;
246 amx->byte_mask[reg / 32] = mask_val;
345 #define TEGRA210_AMX_BYTE_MAP_CTRL(reg) \
346 SOC_SINGLE_EXT("Byte Map " #reg, reg, 0, 256, 0, \
426 static bool tegra210_amx_wr_reg(struct device *dev, unsigned int reg)
428 switch (reg) {
439 static bool tegra194_amx_wr_reg(struct device *dev, unsigned int reg)
441 switch (reg) {
445 return tegra210_amx_wr_reg(dev, reg);
449 static bool tegra210_amx_rd_reg(struct device *dev, unsigned int reg)
451 switch (reg) {
459 static bool tegra194_amx_rd_reg(struct device *dev, unsigned int reg)
461 switch (reg) {
465 return tegra210_amx_rd_reg(dev, reg);
469 static bool tegra210_amx_volatile_reg(struct device *dev, unsigned int reg)
471 switch (reg) {