Lines Matching refs:priv
61 struct snd_ak4xxx_private *priv = (void *)ak->private_value[0]; in snd_ice1712_akm4xxx_write() local
68 tmp |= priv->add_flags; in snd_ice1712_akm4xxx_write()
69 tmp &= ~priv->mask_flags; in snd_ice1712_akm4xxx_write()
70 if (priv->cs_mask == priv->cs_addr) { in snd_ice1712_akm4xxx_write()
71 if (priv->cif) { in snd_ice1712_akm4xxx_write()
72 tmp |= priv->cs_mask; /* start without chip select */ in snd_ice1712_akm4xxx_write()
74 tmp &= ~priv->cs_mask; /* chip select low */ in snd_ice1712_akm4xxx_write()
80 tmp &= ~priv->cs_mask; in snd_ice1712_akm4xxx_write()
81 tmp |= priv->cs_addr; in snd_ice1712_akm4xxx_write()
87 addrdata = (priv->caddr << 6) | 0x20 | (addr & 0x1f); in snd_ice1712_akm4xxx_write()
91 tmp &= ~priv->clk_mask; in snd_ice1712_akm4xxx_write()
96 tmp |= priv->data_mask; in snd_ice1712_akm4xxx_write()
98 tmp &= ~priv->data_mask; in snd_ice1712_akm4xxx_write()
102 tmp |= priv->clk_mask; in snd_ice1712_akm4xxx_write()
107 if (priv->cs_mask == priv->cs_addr) { in snd_ice1712_akm4xxx_write()
108 if (priv->cif) { in snd_ice1712_akm4xxx_write()
110 tmp &= ~priv->cs_mask; in snd_ice1712_akm4xxx_write()
114 tmp |= priv->cs_mask; /* chip select high to trigger */ in snd_ice1712_akm4xxx_write()
116 tmp &= ~priv->cs_mask; in snd_ice1712_akm4xxx_write()
117 tmp |= priv->cs_none; /* deselect address */ in snd_ice1712_akm4xxx_write()
129 struct snd_ak4xxx_private *priv; in snd_ice1712_akm4xxx_init() local
132 priv = kmalloc(sizeof(*priv), GFP_KERNEL); in snd_ice1712_akm4xxx_init()
133 if (priv == NULL) in snd_ice1712_akm4xxx_init()
135 *priv = *_priv; in snd_ice1712_akm4xxx_init()
137 priv = NULL; in snd_ice1712_akm4xxx_init()
141 ak->private_value[0] = (unsigned long)priv; in snd_ice1712_akm4xxx_init()