pca 221 arch/alpha/include/asm/core_wildfire.h #define WILDFIRE_PCA_ENTITY(pca) ((0xc|(pca))<<WILDFIRE_ENTITY_SHIFT) pca 252 arch/alpha/include/asm/core_wildfire.h #define WILDFIRE_pca(q,pca) \ pca 253 arch/alpha/include/asm/core_wildfire.h ((wildfire_pca *)(WILDFIRE_QBB_IO(q)|WILDFIRE_PCA_ENTITY(pca)|(((1UL<<13)-1)<<23))) pca 255 arch/alpha/include/asm/core_wildfire.h #define WILDFIRE_ne(q,pca) \ pca 256 arch/alpha/include/asm/core_wildfire.h ((wildfire_ne *)(WILDFIRE_QBB_IO(q)|WILDFIRE_PCA_ENTITY(pca)|(((1UL<<13)-1)<<23)|(1UL<<16))) pca 258 arch/alpha/include/asm/core_wildfire.h #define WILDFIRE_fe(q,pca) \ pca 259 arch/alpha/include/asm/core_wildfire.h ((wildfire_fe *)(WILDFIRE_QBB_IO(q)|WILDFIRE_PCA_ENTITY(pca)|(((1UL<<13)-1)<<23)|(3UL<<15))) pca 504 arch/alpha/kernel/core_wildfire.c wildfire_pca *pca = WILDFIRE_pca(qbbno, pcano); pca 508 arch/alpha/kernel/core_wildfire.c qbbno, pcano, pca); pca 510 arch/alpha/kernel/core_wildfire.c printk(KERN_ERR " PCA_WHAT_AM_I: 0x%16lx\n", pca->pca_what_am_i.csr); pca 511 arch/alpha/kernel/core_wildfire.c printk(KERN_ERR " PCA_ERR_SUM: 0x%16lx\n", pca->pca_err_sum.csr); pca 512 arch/alpha/kernel/core_wildfire.c printk(KERN_ERR " PCA_PEND_INT: 0x%16lx\n", pca->pca_pend_int.csr); pca 513 arch/alpha/kernel/core_wildfire.c printk(KERN_ERR " PCA_SENT_INT: 0x%16lx\n", pca->pca_sent_int.csr); pca 515 arch/alpha/kernel/core_wildfire.c pca->pca_stdio_edge_level.csr); pca 518 arch/alpha/kernel/core_wildfire.c qbbno, pcano, pca); pca 521 arch/alpha/kernel/core_wildfire.c pca->pca_int[i].target.csr, pca 522 arch/alpha/kernel/core_wildfire.c pca->pca_int[i].enable.csr); pca 44 arch/alpha/kernel/sys_wildfire.c wildfire_pca *pca; pca 57 arch/alpha/kernel/sys_wildfire.c pca = WILDFIRE_pca(qbbno, pcano); pca 58 arch/alpha/kernel/sys_wildfire.c enable0 = (unsigned long *) &pca->pca_int[0].enable; /* ??? */ pca 69 arch/alpha/kernel/sys_wildfire.c register wildfire_pca * pca = WILDFIRE_pca(0, 0); pca 73 arch/alpha/kernel/sys_wildfire.c enable0 = (unsigned long *) &pca->pca_int[0].enable; pca 74 arch/alpha/kernel/sys_wildfire.c enable1 = (unsigned long *) &pca->pca_int[1].enable; pca 75 arch/alpha/kernel/sys_wildfire.c enable2 = (unsigned long *) &pca->pca_int[2].enable; pca 76 arch/alpha/kernel/sys_wildfire.c enable3 = (unsigned long *) &pca->pca_int[3].enable; pca 78 arch/alpha/kernel/sys_wildfire.c target0 = (unsigned long *) &pca->pca_int[0].target; pca 79 arch/alpha/kernel/sys_wildfire.c target1 = (unsigned long *) &pca->pca_int[1].target; pca 80 arch/alpha/kernel/sys_wildfire.c target2 = (unsigned long *) &pca->pca_int[2].target; pca 81 arch/alpha/kernel/sys_wildfire.c target3 = (unsigned long *) &pca->pca_int[3].target; pca 46 arch/mips/pci/pci-virtio-guest.c union pci_config_address pca = { .w = 0 }; pca 48 arch/mips/pci/pci-virtio-guest.c pca.register_number = reg; pca 49 arch/mips/pci/pci-virtio-guest.c pca.devfn_number = devfn; pca 50 arch/mips/pci/pci-virtio-guest.c pca.bus_number = bus->number; pca 51 arch/mips/pci/pci-virtio-guest.c pca.enable_bit = 1; pca 53 arch/mips/pci/pci-virtio-guest.c outl(pca.w, PCI_CONFIG_ADDRESS); pca 454 drivers/atm/fore200e.c int irq_posted = readl(fore200e->regs.pca.psr); pca 457 drivers/atm/fore200e.c if (irq_posted && (readl(fore200e->regs.pca.hcr) & PCA200E_HCR_OUTFULL)) { pca 469 drivers/atm/fore200e.c writel(PCA200E_HCR_CLRINTR, fore200e->regs.pca.hcr); pca 476 drivers/atm/fore200e.c writel(PCA200E_HCR_RESET, fore200e->regs.pca.hcr); pca 478 drivers/atm/fore200e.c writel(0, fore200e->regs.pca.hcr); pca 496 drivers/atm/fore200e.c fore200e->regs.pca.hcr = fore200e->virt_base + PCA200E_HCR_OFFSET; pca 497 drivers/atm/fore200e.c fore200e->regs.pca.imr = fore200e->virt_base + PCA200E_IMR_OFFSET; pca 498 drivers/atm/fore200e.c fore200e->regs.pca.psr = fore200e->virt_base + PCA200E_PSR_OFFSET; pca 791 drivers/atm/fore200e.h struct fore200e_pca_regs pca; /* PCA-200E registers */ pca 88 drivers/pwm/pwm-pca9685.c static bool pca9685_pwm_test_and_set_inuse(struct pca9685 *pca, int pwm_idx) pca 92 drivers/pwm/pwm-pca9685.c mutex_lock(&pca->lock); pca 98 drivers/pwm/pwm-pca9685.c if (!bitmap_empty(pca->pwms_inuse, PCA9685_MAXCHAN)) { pca 107 drivers/pwm/pwm-pca9685.c if (test_bit(PCA9685_MAXCHAN, pca->pwms_inuse)) { pca 112 drivers/pwm/pwm-pca9685.c is_inuse = test_and_set_bit(pwm_idx, pca->pwms_inuse); pca 114 drivers/pwm/pwm-pca9685.c mutex_unlock(&pca->lock); pca 118 drivers/pwm/pwm-pca9685.c static void pca9685_pwm_clear_inuse(struct pca9685 *pca, int pwm_idx) pca 120 drivers/pwm/pwm-pca9685.c mutex_lock(&pca->lock); pca 121 drivers/pwm/pwm-pca9685.c clear_bit(pwm_idx, pca->pwms_inuse); pca 122 drivers/pwm/pwm-pca9685.c mutex_unlock(&pca->lock); pca 127 drivers/pwm/pwm-pca9685.c struct pca9685 *pca = gpiochip_get_data(gpio); pca 129 drivers/pwm/pwm-pca9685.c if (pca9685_pwm_test_and_set_inuse(pca, offset)) pca 131 drivers/pwm/pwm-pca9685.c pm_runtime_get_sync(pca->chip.dev); pca 137 drivers/pwm/pwm-pca9685.c struct pca9685 *pca = gpiochip_get_data(gpio); pca 138 drivers/pwm/pwm-pca9685.c struct pwm_device *pwm = &pca->chip.pwms[offset]; pca 141 drivers/pwm/pwm-pca9685.c regmap_read(pca->regmap, LED_N_ON_H(pwm->hwpwm), &value); pca 149 drivers/pwm/pwm-pca9685.c struct pca9685 *pca = gpiochip_get_data(gpio); pca 150 drivers/pwm/pwm-pca9685.c struct pwm_device *pwm = &pca->chip.pwms[offset]; pca 154 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, LED_N_OFF_L(pwm->hwpwm), 0); pca 155 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, LED_N_OFF_H(pwm->hwpwm), 0); pca 158 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, LED_N_ON_H(pwm->hwpwm), on); pca 163 drivers/pwm/pwm-pca9685.c struct pca9685 *pca = gpiochip_get_data(gpio); pca 166 drivers/pwm/pwm-pca9685.c pm_runtime_put(pca->chip.dev); pca 167 drivers/pwm/pwm-pca9685.c pca9685_pwm_clear_inuse(pca, offset); pca 197 drivers/pwm/pwm-pca9685.c static int pca9685_pwm_gpio_probe(struct pca9685 *pca) pca 199 drivers/pwm/pwm-pca9685.c struct device *dev = pca->chip.dev; pca 201 drivers/pwm/pwm-pca9685.c mutex_init(&pca->lock); pca 203 drivers/pwm/pwm-pca9685.c pca->gpio.label = dev_name(dev); pca 204 drivers/pwm/pwm-pca9685.c pca->gpio.parent = dev; pca 205 drivers/pwm/pwm-pca9685.c pca->gpio.request = pca9685_pwm_gpio_request; pca 206 drivers/pwm/pwm-pca9685.c pca->gpio.free = pca9685_pwm_gpio_free; pca 207 drivers/pwm/pwm-pca9685.c pca->gpio.get_direction = pca9685_pwm_gpio_get_direction; pca 208 drivers/pwm/pwm-pca9685.c pca->gpio.direction_input = pca9685_pwm_gpio_direction_input; pca 209 drivers/pwm/pwm-pca9685.c pca->gpio.direction_output = pca9685_pwm_gpio_direction_output; pca 210 drivers/pwm/pwm-pca9685.c pca->gpio.get = pca9685_pwm_gpio_get; pca 211 drivers/pwm/pwm-pca9685.c pca->gpio.set = pca9685_pwm_gpio_set; pca 212 drivers/pwm/pwm-pca9685.c pca->gpio.base = -1; pca 213 drivers/pwm/pwm-pca9685.c pca->gpio.ngpio = PCA9685_MAXCHAN; pca 214 drivers/pwm/pwm-pca9685.c pca->gpio.can_sleep = true; pca 216 drivers/pwm/pwm-pca9685.c return devm_gpiochip_add_data(dev, &pca->gpio, pca); pca 219 drivers/pwm/pwm-pca9685.c static inline bool pca9685_pwm_test_and_set_inuse(struct pca9685 *pca, pca 226 drivers/pwm/pwm-pca9685.c pca9685_pwm_clear_inuse(struct pca9685 *pca, int pwm_idx) pca 230 drivers/pwm/pwm-pca9685.c static inline int pca9685_pwm_gpio_probe(struct pca9685 *pca) pca 236 drivers/pwm/pwm-pca9685.c static void pca9685_set_sleep_mode(struct pca9685 *pca, bool enable) pca 238 drivers/pwm/pwm-pca9685.c regmap_update_bits(pca->regmap, PCA9685_MODE1, pca 249 drivers/pwm/pwm-pca9685.c struct pca9685 *pca = to_pca(chip); pca 254 drivers/pwm/pwm-pca9685.c if (period_ns != pca->period_ns) { pca 267 drivers/pwm/pwm-pca9685.c pca9685_set_sleep_mode(pca, true); pca 270 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, PCA9685_PRESCALE, prescale); pca 273 drivers/pwm/pwm-pca9685.c pca9685_set_sleep_mode(pca, false); pca 275 drivers/pwm/pwm-pca9685.c pca->period_ns = period_ns; pca 283 drivers/pwm/pwm-pca9685.c pca->duty_ns = duty_ns; pca 291 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, reg, LED_FULL); pca 303 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, reg, 0x0); pca 310 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, reg, 0x0); pca 318 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, reg, LED_FULL); pca 331 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, reg, (int)duty & 0xff); pca 338 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, reg, ((int)duty >> 8) & 0xf); pca 346 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, reg, 0); pca 353 drivers/pwm/pwm-pca9685.c struct pca9685 *pca = to_pca(chip); pca 365 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, reg, 0); pca 372 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, reg, 0); pca 383 drivers/pwm/pwm-pca9685.c regmap_update_bits(pca->regmap, reg, LED_FULL, 0x0); pca 390 drivers/pwm/pwm-pca9685.c struct pca9685 *pca = to_pca(chip); pca 398 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, reg, LED_FULL); pca 406 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, reg, 0x0); pca 411 drivers/pwm/pwm-pca9685.c struct pca9685 *pca = to_pca(chip); pca 413 drivers/pwm/pwm-pca9685.c if (pca9685_pwm_test_and_set_inuse(pca, pwm->hwpwm)) pca 422 drivers/pwm/pwm-pca9685.c struct pca9685 *pca = to_pca(chip); pca 426 drivers/pwm/pwm-pca9685.c pca9685_pwm_clear_inuse(pca, pwm->hwpwm); pca 448 drivers/pwm/pwm-pca9685.c struct pca9685 *pca; pca 452 drivers/pwm/pwm-pca9685.c pca = devm_kzalloc(&client->dev, sizeof(*pca), GFP_KERNEL); pca 453 drivers/pwm/pwm-pca9685.c if (!pca) pca 456 drivers/pwm/pwm-pca9685.c pca->regmap = devm_regmap_init_i2c(client, &pca9685_regmap_i2c_config); pca 457 drivers/pwm/pwm-pca9685.c if (IS_ERR(pca->regmap)) { pca 458 drivers/pwm/pwm-pca9685.c ret = PTR_ERR(pca->regmap); pca 463 drivers/pwm/pwm-pca9685.c pca->duty_ns = 0; pca 464 drivers/pwm/pwm-pca9685.c pca->period_ns = PCA9685_DEFAULT_PERIOD; pca 466 drivers/pwm/pwm-pca9685.c i2c_set_clientdata(client, pca); pca 468 drivers/pwm/pwm-pca9685.c regmap_read(pca->regmap, PCA9685_MODE2, &mode2); pca 480 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, PCA9685_MODE2, mode2); pca 483 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, PCA9685_ALL_LED_OFF_L, 0); pca 484 drivers/pwm/pwm-pca9685.c regmap_write(pca->regmap, PCA9685_ALL_LED_OFF_H, 0); pca 486 drivers/pwm/pwm-pca9685.c pca->chip.ops = &pca9685_pwm_ops; pca 488 drivers/pwm/pwm-pca9685.c pca->chip.npwm = PCA9685_MAXCHAN + 1; pca 490 drivers/pwm/pwm-pca9685.c pca->chip.dev = &client->dev; pca 491 drivers/pwm/pwm-pca9685.c pca->chip.base = -1; pca 493 drivers/pwm/pwm-pca9685.c ret = pwmchip_add(&pca->chip); pca 497 drivers/pwm/pwm-pca9685.c ret = pca9685_pwm_gpio_probe(pca); pca 499 drivers/pwm/pwm-pca9685.c pwmchip_remove(&pca->chip); pca 516 drivers/pwm/pwm-pca9685.c struct pca9685 *pca = i2c_get_clientdata(client); pca 519 drivers/pwm/pwm-pca9685.c ret = pwmchip_remove(&pca->chip); pca 530 drivers/pwm/pwm-pca9685.c struct pca9685 *pca = i2c_get_clientdata(client); pca 532 drivers/pwm/pwm-pca9685.c pca9685_set_sleep_mode(pca, true); pca 539 drivers/pwm/pwm-pca9685.c struct pca9685 *pca = i2c_get_clientdata(client); pca 541 drivers/pwm/pwm-pca9685.c pca9685_set_sleep_mode(pca, false);