subpriv 70 drivers/staging/comedi/drivers/addi_apci_2032.c struct apci2032_int_private *subpriv = s->private; subpriv 72 drivers/staging/comedi/drivers/addi_apci_2032.c subpriv->active = false; subpriv 73 drivers/staging/comedi/drivers/addi_apci_2032.c subpriv->enabled_isns = 0; subpriv 128 drivers/staging/comedi/drivers/addi_apci_2032.c struct apci2032_int_private *subpriv = s->private; subpriv 137 drivers/staging/comedi/drivers/addi_apci_2032.c spin_lock_irqsave(&subpriv->spinlock, flags); subpriv 139 drivers/staging/comedi/drivers/addi_apci_2032.c subpriv->enabled_isns = enabled_isns; subpriv 140 drivers/staging/comedi/drivers/addi_apci_2032.c subpriv->active = true; subpriv 143 drivers/staging/comedi/drivers/addi_apci_2032.c spin_unlock_irqrestore(&subpriv->spinlock, flags); subpriv 151 drivers/staging/comedi/drivers/addi_apci_2032.c struct apci2032_int_private *subpriv = s->private; subpriv 154 drivers/staging/comedi/drivers/addi_apci_2032.c spin_lock_irqsave(&subpriv->spinlock, flags); subpriv 155 drivers/staging/comedi/drivers/addi_apci_2032.c if (subpriv->active) subpriv 157 drivers/staging/comedi/drivers/addi_apci_2032.c spin_unlock_irqrestore(&subpriv->spinlock, flags); subpriv 167 drivers/staging/comedi/drivers/addi_apci_2032.c struct apci2032_int_private *subpriv; subpriv 178 drivers/staging/comedi/drivers/addi_apci_2032.c subpriv = s->private; subpriv 179 drivers/staging/comedi/drivers/addi_apci_2032.c spin_lock(&subpriv->spinlock); subpriv 190 drivers/staging/comedi/drivers/addi_apci_2032.c if (subpriv->active && (val & subpriv->enabled_isns) != 0) { subpriv 209 drivers/staging/comedi/drivers/addi_apci_2032.c spin_unlock(&subpriv->spinlock); subpriv 274 drivers/staging/comedi/drivers/addi_apci_2032.c struct apci2032_int_private *subpriv; subpriv 277 drivers/staging/comedi/drivers/addi_apci_2032.c subpriv = kzalloc(sizeof(*subpriv), GFP_KERNEL); subpriv 278 drivers/staging/comedi/drivers/addi_apci_2032.c if (!subpriv) subpriv 280 drivers/staging/comedi/drivers/addi_apci_2032.c spin_lock_init(&subpriv->spinlock); subpriv 281 drivers/staging/comedi/drivers/addi_apci_2032.c s->private = subpriv; subpriv 171 drivers/staging/comedi/drivers/amplc_dio200_common.c struct dio200_subdev_intr *subpriv = s->private; subpriv 175 drivers/staging/comedi/drivers/amplc_dio200_common.c data[1] = dio200_read8(dev, subpriv->ofs) & subpriv->valid_isns; subpriv 188 drivers/staging/comedi/drivers/amplc_dio200_common.c struct dio200_subdev_intr *subpriv = s->private; subpriv 190 drivers/staging/comedi/drivers/amplc_dio200_common.c subpriv->active = false; subpriv 191 drivers/staging/comedi/drivers/amplc_dio200_common.c subpriv->enabled_isns = 0; subpriv 193 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs, 0); subpriv 200 drivers/staging/comedi/drivers/amplc_dio200_common.c struct dio200_subdev_intr *subpriv = s->private; subpriv 211 drivers/staging/comedi/drivers/amplc_dio200_common.c isn_bits &= subpriv->valid_isns; subpriv 213 drivers/staging/comedi/drivers/amplc_dio200_common.c subpriv->enabled_isns = isn_bits; subpriv 215 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs, isn_bits); subpriv 222 drivers/staging/comedi/drivers/amplc_dio200_common.c struct dio200_subdev_intr *subpriv = s->private; subpriv 229 drivers/staging/comedi/drivers/amplc_dio200_common.c spin_lock_irqsave(&subpriv->spinlock, flags); subpriv 231 drivers/staging/comedi/drivers/amplc_dio200_common.c if (subpriv->active) subpriv 234 drivers/staging/comedi/drivers/amplc_dio200_common.c spin_unlock_irqrestore(&subpriv->spinlock, flags); subpriv 265 drivers/staging/comedi/drivers/amplc_dio200_common.c struct dio200_subdev_intr *subpriv = s->private; subpriv 273 drivers/staging/comedi/drivers/amplc_dio200_common.c spin_lock_irqsave(&subpriv->spinlock, flags); subpriv 285 drivers/staging/comedi/drivers/amplc_dio200_common.c cur_enabled = subpriv->enabled_isns; subpriv 286 drivers/staging/comedi/drivers/amplc_dio200_common.c while ((intstat = (dio200_read8(dev, subpriv->ofs) & subpriv 287 drivers/staging/comedi/drivers/amplc_dio200_common.c subpriv->valid_isns & ~triggered)) != 0) { subpriv 290 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs, cur_enabled); subpriv 297 drivers/staging/comedi/drivers/amplc_dio200_common.c triggered = subpriv->enabled_isns; subpriv 307 drivers/staging/comedi/drivers/amplc_dio200_common.c cur_enabled = subpriv->enabled_isns; subpriv 309 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs, cur_enabled); subpriv 311 drivers/staging/comedi/drivers/amplc_dio200_common.c if (subpriv->active) { subpriv 319 drivers/staging/comedi/drivers/amplc_dio200_common.c if (triggered & subpriv->enabled_isns) { subpriv 325 drivers/staging/comedi/drivers/amplc_dio200_common.c spin_unlock_irqrestore(&subpriv->spinlock, flags); subpriv 335 drivers/staging/comedi/drivers/amplc_dio200_common.c struct dio200_subdev_intr *subpriv = s->private; subpriv 338 drivers/staging/comedi/drivers/amplc_dio200_common.c spin_lock_irqsave(&subpriv->spinlock, flags); subpriv 339 drivers/staging/comedi/drivers/amplc_dio200_common.c if (subpriv->active) subpriv 342 drivers/staging/comedi/drivers/amplc_dio200_common.c spin_unlock_irqrestore(&subpriv->spinlock, flags); subpriv 401 drivers/staging/comedi/drivers/amplc_dio200_common.c struct dio200_subdev_intr *subpriv = s->private; subpriv 404 drivers/staging/comedi/drivers/amplc_dio200_common.c spin_lock_irqsave(&subpriv->spinlock, flags); subpriv 406 drivers/staging/comedi/drivers/amplc_dio200_common.c subpriv->active = true; subpriv 413 drivers/staging/comedi/drivers/amplc_dio200_common.c spin_unlock_irqrestore(&subpriv->spinlock, flags); subpriv 424 drivers/staging/comedi/drivers/amplc_dio200_common.c struct dio200_subdev_intr *subpriv; subpriv 426 drivers/staging/comedi/drivers/amplc_dio200_common.c subpriv = comedi_alloc_spriv(s, sizeof(*subpriv)); subpriv 427 drivers/staging/comedi/drivers/amplc_dio200_common.c if (!subpriv) subpriv 430 drivers/staging/comedi/drivers/amplc_dio200_common.c subpriv->ofs = offset; subpriv 431 drivers/staging/comedi/drivers/amplc_dio200_common.c subpriv->valid_isns = valid_isns; subpriv 432 drivers/staging/comedi/drivers/amplc_dio200_common.c spin_lock_init(&subpriv->spinlock); subpriv 436 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs, 0); subpriv 598 drivers/staging/comedi/drivers/amplc_dio200_common.c struct dio200_subdev_8255 *subpriv = s->private; subpriv 611 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs + I8255_CTRL_REG, config); subpriv 619 drivers/staging/comedi/drivers/amplc_dio200_common.c struct dio200_subdev_8255 *subpriv = s->private; subpriv 626 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs + I8255_DATA_A_REG, subpriv 630 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs + I8255_DATA_B_REG, subpriv 634 drivers/staging/comedi/drivers/amplc_dio200_common.c dio200_write8(dev, subpriv->ofs + I8255_DATA_C_REG, subpriv 639 drivers/staging/comedi/drivers/amplc_dio200_common.c val = dio200_read8(dev, subpriv->ofs + I8255_DATA_A_REG); subpriv 640 drivers/staging/comedi/drivers/amplc_dio200_common.c val |= dio200_read8(dev, subpriv->ofs + I8255_DATA_B_REG) << 8; subpriv 641 drivers/staging/comedi/drivers/amplc_dio200_common.c val |= dio200_read8(dev, subpriv->ofs + I8255_DATA_C_REG) << 16; subpriv 679 drivers/staging/comedi/drivers/amplc_dio200_common.c struct dio200_subdev_8255 *subpriv; subpriv 681 drivers/staging/comedi/drivers/amplc_dio200_common.c subpriv = comedi_alloc_spriv(s, sizeof(*subpriv)); subpriv 682 drivers/staging/comedi/drivers/amplc_dio200_common.c if (!subpriv) subpriv 685 drivers/staging/comedi/drivers/amplc_dio200_common.c subpriv->ofs = offset;