iic 49 arch/alpha/include/asm/core_tsunami.h tsunami_64 iic; /* a.k.a. iic0 */ iic 44 arch/powerpc/platforms/cell/interrupt.c static DEFINE_PER_CPU(struct iic, cpu_iic); iic 72 arch/powerpc/platforms/cell/interrupt.c struct iic *iic = this_cpu_ptr(&cpu_iic); iic 73 arch/powerpc/platforms/cell/interrupt.c out_be64(&iic->regs->prio, iic->eoi_stack[--iic->eoi_ptr]); iic 74 arch/powerpc/platforms/cell/interrupt.c BUG_ON(iic->eoi_ptr < 0); iic 136 arch/powerpc/platforms/cell/interrupt.c struct iic *iic; iic 139 arch/powerpc/platforms/cell/interrupt.c iic = this_cpu_ptr(&cpu_iic); iic 141 arch/powerpc/platforms/cell/interrupt.c in_be64((u64 __iomem *) &iic->regs->pending_destr); iic 147 arch/powerpc/platforms/cell/interrupt.c iic->eoi_stack[++iic->eoi_ptr] = pending.prio; iic 148 arch/powerpc/platforms/cell/interrupt.c BUG_ON(iic->eoi_ptr > 15); iic 283 arch/powerpc/platforms/cell/interrupt.c struct iic *iic = &per_cpu(cpu_iic, hw_cpu); iic 285 arch/powerpc/platforms/cell/interrupt.c iic->regs = ioremap(addr, sizeof(struct cbe_iic_thread_regs)); iic 286 arch/powerpc/platforms/cell/interrupt.c BUG_ON(iic->regs == NULL); iic 288 arch/powerpc/platforms/cell/interrupt.c iic->target_id = ((hw_cpu & 2) << 3) | ((hw_cpu & 1) ? 0xf : 0xe); iic 289 arch/powerpc/platforms/cell/interrupt.c iic->eoi_stack[0] = 0xff; iic 290 arch/powerpc/platforms/cell/interrupt.c iic->node = of_node_get(node); iic 291 arch/powerpc/platforms/cell/interrupt.c out_be64(&iic->regs->prio, 0); iic 294 arch/powerpc/platforms/cell/interrupt.c hw_cpu, iic->target_id, node); iic 220 arch/powerpc/platforms/cell/spider-pic.c struct device_node *iic; iic 240 arch/powerpc/platforms/cell/spider-pic.c iic = of_find_node_by_phandle(imap[intsize]); iic 241 arch/powerpc/platforms/cell/spider-pic.c if (iic == NULL) iic 244 arch/powerpc/platforms/cell/spider-pic.c tmp = of_get_property(iic, "#interrupt-cells", NULL); iic 246 arch/powerpc/platforms/cell/spider-pic.c of_node_put(iic); iic 253 arch/powerpc/platforms/cell/spider-pic.c tmp = of_get_property(iic, "ibm,interrupt-server-ranges", NULL); iic 255 arch/powerpc/platforms/cell/spider-pic.c of_node_put(iic); iic 260 arch/powerpc/platforms/cell/spider-pic.c of_node_put(iic); iic 82 drivers/i2c/busses/i2c-ibm_iic.c volatile struct iic_regs __iomem *iic = dev->vaddr; iic 89 drivers/i2c/busses/i2c-ibm_iic.c in_8(&iic->cntl), in_8(&iic->mdcntl), in_8(&iic->sts), iic 90 drivers/i2c/busses/i2c-ibm_iic.c in_8(&iic->extsts), in_8(&iic->clkdiv), in_8(&iic->xfrcnt), iic 91 drivers/i2c/busses/i2c-ibm_iic.c in_8(&iic->xtcntlss), in_8(&iic->directcntl)); iic 134 drivers/i2c/busses/i2c-ibm_iic.c volatile struct iic_regs __iomem *iic = dev->vaddr; iic 139 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->lmadr, 0); iic 140 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->hmadr, 0); iic 143 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->lsadr, 0); iic 144 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->hsadr, 0); iic 147 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->sts, STS_SCMP | STS_IRQA); iic 148 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->extsts, EXTSTS_IRQP | EXTSTS_IRQD | EXTSTS_LA iic 152 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->clkdiv, dev->clckdiv); iic 155 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->xfrcnt, 0); iic 158 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->xtcntlss, XTCNTLSS_SRC | XTCNTLSS_SRS | XTCNTLSS_SWC iic 162 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->cntl, 0); iic 168 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->mdcntl, MDCNTL_FMDB | MDCNTL_EINT | MDCNTL_EUBS iic 179 drivers/i2c/busses/i2c-ibm_iic.c volatile struct iic_regs __iomem *iic = dev->vaddr; iic 187 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->xtcntlss, XTCNTLSS_SRST); iic 190 drivers/i2c/busses/i2c-ibm_iic.c dc = in_8(&iic->directcntl); iic 195 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->directcntl, DIRCNTL_SDAC | DIRCNTL_SCC); iic 199 drivers/i2c/busses/i2c-ibm_iic.c dc = in_8(&iic->directcntl); iic 205 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->directcntl, dc); iic 208 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->directcntl, dc); iic 216 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->xtcntlss, 0); iic 227 drivers/i2c/busses/i2c-ibm_iic.c static int iic_dc_wait(volatile struct iic_regs __iomem *iic, u8 mask) iic 230 drivers/i2c/busses/i2c-ibm_iic.c while ((in_8(&iic->directcntl) & mask) != mask){ iic 240 drivers/i2c/busses/i2c-ibm_iic.c volatile struct iic_regs __iomem *iic = dev->vaddr; iic 255 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->xtcntlss, XTCNTLSS_SRST); iic 258 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->directcntl, DIRCNTL_SDAC | DIRCNTL_SCC); iic 259 drivers/i2c/busses/i2c-ibm_iic.c if (unlikely(iic_dc_wait(iic, DIRCNTL_MSDA | DIRCNTL_MSC))) iic 264 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->directcntl, DIRCNTL_SCC); iic 271 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->directcntl, sda); iic 274 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->directcntl, sda); iic 277 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->directcntl, DIRCNTL_SCC | sda); iic 278 drivers/i2c/busses/i2c-ibm_iic.c if (unlikely(iic_dc_wait(iic, DIRCNTL_MSC))) iic 284 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->directcntl, sda); iic 286 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->directcntl, DIRCNTL_SDAC); iic 288 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->directcntl, DIRCNTL_SDAC | DIRCNTL_SCC); iic 289 drivers/i2c/busses/i2c-ibm_iic.c if (unlikely(iic_dc_wait(iic, DIRCNTL_MSC))) iic 291 drivers/i2c/busses/i2c-ibm_iic.c res = (in_8(&iic->directcntl) & DIRCNTL_MSDA) ? -EREMOTEIO : 1; iic 295 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->directcntl, 0); iic 297 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->directcntl, DIRCNTL_SCC); iic 298 drivers/i2c/busses/i2c-ibm_iic.c if (unlikely(iic_dc_wait(iic, DIRCNTL_MSC))) iic 301 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->directcntl, DIRCNTL_SDAC | DIRCNTL_SCC); iic 308 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->xtcntlss, 0); iic 326 drivers/i2c/busses/i2c-ibm_iic.c volatile struct iic_regs __iomem *iic = dev->vaddr; iic 329 drivers/i2c/busses/i2c-ibm_iic.c dev->idx, in_8(&iic->sts), in_8(&iic->extsts)); iic 332 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->sts, STS_IRQA | STS_SCMP); iic 344 drivers/i2c/busses/i2c-ibm_iic.c volatile struct iic_regs __iomem *iic = dev->vaddr; iic 346 drivers/i2c/busses/i2c-ibm_iic.c if (unlikely(in_8(&iic->sts) & STS_ERR)){ iic 348 drivers/i2c/busses/i2c-ibm_iic.c in_8(&iic->extsts)); iic 351 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->extsts, EXTSTS_IRQP | EXTSTS_IRQD | iic 355 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->mdcntl, in_8(&iic->mdcntl) | MDCNTL_FMDB); iic 362 drivers/i2c/busses/i2c-ibm_iic.c if ((in_8(&iic->extsts) & EXTSTS_BCS_MASK) != EXTSTS_BCS_FREE){ iic 369 drivers/i2c/busses/i2c-ibm_iic.c return in_8(&iic->xfrcnt) & XFRCNT_MTC_MASK; iic 377 drivers/i2c/busses/i2c-ibm_iic.c volatile struct iic_regs __iomem *iic = dev->vaddr; iic 382 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->cntl, CNTL_HMT); iic 389 drivers/i2c/busses/i2c-ibm_iic.c while ((in_8(&iic->extsts) & EXTSTS_BCS_MASK) != EXTSTS_BCS_FREE){ iic 409 drivers/i2c/busses/i2c-ibm_iic.c volatile struct iic_regs __iomem *iic = dev->vaddr; iic 415 drivers/i2c/busses/i2c-ibm_iic.c !(in_8(&iic->sts) & STS_PT), dev->adap.timeout); iic 419 drivers/i2c/busses/i2c-ibm_iic.c else if (unlikely(in_8(&iic->sts) & STS_PT)){ iic 428 drivers/i2c/busses/i2c-ibm_iic.c while (in_8(&iic->sts) & STS_PT){ iic 460 drivers/i2c/busses/i2c-ibm_iic.c volatile struct iic_regs __iomem *iic = dev->vaddr; iic 465 drivers/i2c/busses/i2c-ibm_iic.c u8 cntl = (in_8(&iic->cntl) & CNTL_AMD) | CNTL_PT; iic 476 drivers/i2c/busses/i2c-ibm_iic.c out_8((void __iomem *)&iic->mdbuf, *buf++); iic 486 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->cntl, cmd); iic 507 drivers/i2c/busses/i2c-ibm_iic.c *buf++ = in_8((void __iomem *)&iic->mdbuf); iic 518 drivers/i2c/busses/i2c-ibm_iic.c volatile struct iic_regs __iomem *iic = dev->vaddr; iic 525 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->cntl, CNTL_AMD); iic 526 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->lmadr, addr); iic 527 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->hmadr, 0xf0 | ((addr >> 7) & 0x06)); iic 530 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->cntl, 0); iic 531 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->lmadr, addr << 1); iic 554 drivers/i2c/busses/i2c-ibm_iic.c volatile struct iic_regs __iomem *iic = dev->vaddr; iic 587 drivers/i2c/busses/i2c-ibm_iic.c if (unlikely((in_8(&iic->extsts) & EXTSTS_BCS_MASK) != EXTSTS_BCS_FREE)){ iic 600 drivers/i2c/busses/i2c-ibm_iic.c if ((in_8(&iic->extsts) & EXTSTS_BCS_MASK) != EXTSTS_BCS_FREE){ iic 607 drivers/i2c/busses/i2c-ibm_iic.c out_8(&iic->mdcntl, in_8(&iic->mdcntl) | MDCNTL_FMDB); iic 1131 drivers/mfd/sm501.c struct sm501_platdata_gpio_i2c *iic) iic 1149 drivers/mfd/sm501.c if (iic->pin_sda < 32) iic 1153 drivers/mfd/sm501.c lookup->table[0].chip_hwnum = iic->pin_sda % 32; iic 1157 drivers/mfd/sm501.c if (iic->pin_scl < 32) iic 1161 drivers/mfd/sm501.c lookup->table[1].chip_hwnum = iic->pin_scl % 32; iic 1168 drivers/mfd/sm501.c icd->timeout = iic->timeout; iic 1169 drivers/mfd/sm501.c icd->udelay = iic->udelay; iic 1177 drivers/mfd/sm501.c pdev->id = iic->bus_num; iic 1180 drivers/mfd/sm501.c iic->bus_num, iic 1181 drivers/mfd/sm501.c iic->pin_sda, iic->pin_scl); iic 1189 drivers/mfd/sm501.c struct sm501_platdata_gpio_i2c *iic = pdata->gpio_i2c; iic 1193 drivers/mfd/sm501.c for (index = 0; index < pdata->gpio_i2c_nr; index++, iic++) { iic 1194 drivers/mfd/sm501.c ret = sm501_register_gpio_i2c_instance(sm, iic);