ab8500 92 drivers/clk/ux500/abx500-clk.c struct ab8500 *parent = dev_get_drvdata(pdev->dev.parent); ab8500 29 drivers/input/misc/ab8500-ponkey.c struct ab8500 *ab8500; ab8500 51 drivers/input/misc/ab8500-ponkey.c struct ab8500 *ab8500 = dev_get_drvdata(pdev->dev.parent); ab8500 75 drivers/input/misc/ab8500-ponkey.c ponkey->ab8500 = ab8500; ab8500 88 drivers/input/misc/ab8500-ponkey.c dev_err(ab8500->dev, "Failed to request dbf IRQ#%d: %d\n", ab8500 97 drivers/input/misc/ab8500-ponkey.c dev_err(ab8500->dev, "Failed to request dbr IRQ#%d: %d\n", ab8500 104 drivers/input/misc/ab8500-ponkey.c dev_err(ab8500->dev, "Can't register input device: %d\n", error); ab8500 166 drivers/mfd/ab8500-core.c static int ab8500_prcmu_write(struct ab8500 *ab8500, u16 addr, u8 data) ab8500 172 drivers/mfd/ab8500-core.c dev_err(ab8500->dev, "prcmu i2c error %d\n", ret); ab8500 176 drivers/mfd/ab8500-core.c static int ab8500_prcmu_write_masked(struct ab8500 *ab8500, u16 addr, u8 mask, ab8500 184 drivers/mfd/ab8500-core.c dev_err(ab8500->dev, "prcmu i2c error %d\n", ret); ab8500 188 drivers/mfd/ab8500-core.c static int ab8500_prcmu_read(struct ab8500 *ab8500, u16 addr) ab8500 195 drivers/mfd/ab8500-core.c dev_err(ab8500->dev, "prcmu i2c error %d\n", ret); ab8500 203 drivers/mfd/ab8500-core.c struct ab8500 *ab8500; ab8500 207 drivers/mfd/ab8500-core.c ab8500 = dev_get_drvdata(dev->parent); ab8500 208 drivers/mfd/ab8500-core.c return ab8500 ? (int)ab8500->chip_id : -EINVAL; ab8500 211 drivers/mfd/ab8500-core.c static int set_register_interruptible(struct ab8500 *ab8500, u8 bank, ab8500 221 drivers/mfd/ab8500-core.c dev_vdbg(ab8500->dev, "wr: addr %#x <= %#x\n", addr, data); ab8500 223 drivers/mfd/ab8500-core.c mutex_lock(&ab8500->lock); ab8500 225 drivers/mfd/ab8500-core.c ret = ab8500->write(ab8500, addr, data); ab8500 227 drivers/mfd/ab8500-core.c dev_err(ab8500->dev, "failed to write reg %#x: %d\n", ab8500 229 drivers/mfd/ab8500-core.c mutex_unlock(&ab8500->lock); ab8500 238 drivers/mfd/ab8500-core.c struct ab8500 *ab8500 = dev_get_drvdata(dev->parent); ab8500 240 drivers/mfd/ab8500-core.c atomic_inc(&ab8500->transfer_ongoing); ab8500 241 drivers/mfd/ab8500-core.c ret = set_register_interruptible(ab8500, bank, reg, value); ab8500 242 drivers/mfd/ab8500-core.c atomic_dec(&ab8500->transfer_ongoing); ab8500 246 drivers/mfd/ab8500-core.c static int get_register_interruptible(struct ab8500 *ab8500, u8 bank, ab8500 252 drivers/mfd/ab8500-core.c mutex_lock(&ab8500->lock); ab8500 254 drivers/mfd/ab8500-core.c ret = ab8500->read(ab8500, addr); ab8500 256 drivers/mfd/ab8500-core.c dev_err(ab8500->dev, "failed to read reg %#x: %d\n", ab8500 261 drivers/mfd/ab8500-core.c mutex_unlock(&ab8500->lock); ab8500 262 drivers/mfd/ab8500-core.c dev_vdbg(ab8500->dev, "rd: addr %#x => data %#x\n", addr, ret); ab8500 271 drivers/mfd/ab8500-core.c struct ab8500 *ab8500 = dev_get_drvdata(dev->parent); ab8500 273 drivers/mfd/ab8500-core.c atomic_inc(&ab8500->transfer_ongoing); ab8500 274 drivers/mfd/ab8500-core.c ret = get_register_interruptible(ab8500, bank, reg, value); ab8500 275 drivers/mfd/ab8500-core.c atomic_dec(&ab8500->transfer_ongoing); ab8500 279 drivers/mfd/ab8500-core.c static int mask_and_set_register_interruptible(struct ab8500 *ab8500, u8 bank, ab8500 285 drivers/mfd/ab8500-core.c mutex_lock(&ab8500->lock); ab8500 287 drivers/mfd/ab8500-core.c if (ab8500->write_masked == NULL) { ab8500 290 drivers/mfd/ab8500-core.c ret = ab8500->read(ab8500, addr); ab8500 292 drivers/mfd/ab8500-core.c dev_err(ab8500->dev, "failed to read reg %#x: %d\n", ab8500 300 drivers/mfd/ab8500-core.c ret = ab8500->write(ab8500, addr, data); ab8500 302 drivers/mfd/ab8500-core.c dev_err(ab8500->dev, "failed to write reg %#x: %d\n", ab8500 305 drivers/mfd/ab8500-core.c dev_vdbg(ab8500->dev, "mask: addr %#x => data %#x\n", addr, ab8500 309 drivers/mfd/ab8500-core.c ret = ab8500->write_masked(ab8500, addr, bitmask, bitvalues); ab8500 311 drivers/mfd/ab8500-core.c dev_err(ab8500->dev, "failed to modify reg %#x: %d\n", addr, ab8500 314 drivers/mfd/ab8500-core.c mutex_unlock(&ab8500->lock); ab8500 322 drivers/mfd/ab8500-core.c struct ab8500 *ab8500 = dev_get_drvdata(dev->parent); ab8500 324 drivers/mfd/ab8500-core.c atomic_inc(&ab8500->transfer_ongoing); ab8500 325 drivers/mfd/ab8500-core.c ret = mask_and_set_register_interruptible(ab8500, bank, reg, ab8500 327 drivers/mfd/ab8500-core.c atomic_dec(&ab8500->transfer_ongoing); ab8500 345 drivers/mfd/ab8500-core.c struct ab8500 *ab8500 = irq_data_get_irq_chip_data(data); ab8500 347 drivers/mfd/ab8500-core.c mutex_lock(&ab8500->irq_lock); ab8500 348 drivers/mfd/ab8500-core.c atomic_inc(&ab8500->transfer_ongoing); ab8500 353 drivers/mfd/ab8500-core.c struct ab8500 *ab8500 = irq_data_get_irq_chip_data(data); ab8500 356 drivers/mfd/ab8500-core.c for (i = 0; i < ab8500->mask_size; i++) { ab8500 357 drivers/mfd/ab8500-core.c u8 old = ab8500->oldmask[i]; ab8500 358 drivers/mfd/ab8500-core.c u8 new = ab8500->mask[i]; ab8500 368 drivers/mfd/ab8500-core.c if (ab8500->irq_reg_offset[i] == 11 && ab8500 369 drivers/mfd/ab8500-core.c is_ab8500_1p1_or_earlier(ab8500)) ab8500 372 drivers/mfd/ab8500-core.c if (ab8500->irq_reg_offset[i] < 0) ab8500 375 drivers/mfd/ab8500-core.c ab8500->oldmask[i] = new; ab8500 377 drivers/mfd/ab8500-core.c reg = AB8500_IT_MASK1_REG + ab8500->irq_reg_offset[i]; ab8500 378 drivers/mfd/ab8500-core.c set_register_interruptible(ab8500, AB8500_INTERRUPT, reg, new); ab8500 380 drivers/mfd/ab8500-core.c atomic_dec(&ab8500->transfer_ongoing); ab8500 381 drivers/mfd/ab8500-core.c mutex_unlock(&ab8500->irq_lock); ab8500 386 drivers/mfd/ab8500-core.c struct ab8500 *ab8500 = irq_data_get_irq_chip_data(data); ab8500 391 drivers/mfd/ab8500-core.c ab8500->mask[index] |= mask; ab8500 395 drivers/mfd/ab8500-core.c ab8500->mask[index + 2] |= mask; ab8500 397 drivers/mfd/ab8500-core.c ab8500->mask[index + 1] |= mask; ab8500 400 drivers/mfd/ab8500-core.c ab8500->mask[index] |= (mask << 1); ab8500 405 drivers/mfd/ab8500-core.c struct ab8500 *ab8500 = irq_data_get_irq_chip_data(data); ab8500 412 drivers/mfd/ab8500-core.c ab8500->mask[index] &= ~mask; ab8500 417 drivers/mfd/ab8500-core.c ab8500->mask[index + 2] &= ~mask; ab8500 420 drivers/mfd/ab8500-core.c ab8500->mask[index + 1] &= ~mask; ab8500 424 drivers/mfd/ab8500-core.c ab8500->mask[index] &= ~(mask << 1); ab8500 426 drivers/mfd/ab8500-core.c ab8500->mask[index] &= ~mask; ab8500 429 drivers/mfd/ab8500-core.c ab8500->mask[index] &= ~mask; ab8500 460 drivers/mfd/ab8500-core.c static int ab8500_handle_hierarchical_line(struct ab8500 *ab8500, ab8500 465 drivers/mfd/ab8500-core.c for (i = 0; i < ab8500->mask_size; i++) ab8500 466 drivers/mfd/ab8500-core.c if (ab8500->irq_reg_offset[i] == latch_offset) ab8500 469 drivers/mfd/ab8500-core.c if (i >= ab8500->mask_size) { ab8500 470 drivers/mfd/ab8500-core.c dev_err(ab8500->dev, "Register offset 0x%2x not declared\n", ab8500 476 drivers/mfd/ab8500-core.c latch_val &= ~ab8500->mask[i]; ab8500 496 drivers/mfd/ab8500-core.c handle_nested_irq(irq_create_mapping(ab8500->domain, line)); ab8500 502 drivers/mfd/ab8500-core.c static int ab8500_handle_hierarchical_latch(struct ab8500 *ab8500, ab8500 514 drivers/mfd/ab8500-core.c status = get_register_interruptible(ab8500, ab8500 521 drivers/mfd/ab8500-core.c status = ab8500_handle_hierarchical_line(ab8500, ab8500 534 drivers/mfd/ab8500-core.c struct ab8500 *ab8500 = dev; ab8500 537 drivers/mfd/ab8500-core.c dev_vdbg(ab8500->dev, "interrupt\n"); ab8500 540 drivers/mfd/ab8500-core.c for (i = 0; i < (ab8500->it_latchhier_num); i++) { ab8500 544 drivers/mfd/ab8500-core.c status = get_register_interruptible(ab8500, AB8500_INTERRUPT, ab8500 549 drivers/mfd/ab8500-core.c status = ab8500_handle_hierarchical_latch(ab8500, i, hier_val); ab8500 559 drivers/mfd/ab8500-core.c struct ab8500 *ab8500 = d->host_data; ab8500 561 drivers/mfd/ab8500-core.c if (!ab8500) ab8500 564 drivers/mfd/ab8500-core.c irq_set_chip_data(virq, ab8500); ab8500 578 drivers/mfd/ab8500-core.c static int ab8500_irq_init(struct ab8500 *ab8500, struct device_node *np) ab8500 582 drivers/mfd/ab8500-core.c if (is_ab8540(ab8500)) ab8500 584 drivers/mfd/ab8500-core.c else if (is_ab9540(ab8500)) ab8500 586 drivers/mfd/ab8500-core.c else if (is_ab8505(ab8500)) ab8500 592 drivers/mfd/ab8500-core.c ab8500->domain = irq_domain_add_simple(ab8500->dev->of_node, ab8500 594 drivers/mfd/ab8500-core.c &ab8500_irq_ops, ab8500); ab8500 596 drivers/mfd/ab8500-core.c if (!ab8500->domain) { ab8500 597 drivers/mfd/ab8500-core.c dev_err(ab8500->dev, "Failed to create irqdomain\n"); ab8500 604 drivers/mfd/ab8500-core.c int ab8500_suspend(struct ab8500 *ab8500) ab8500 606 drivers/mfd/ab8500-core.c if (atomic_read(&ab8500->transfer_ongoing)) ab8500 885 drivers/mfd/ab8500-core.c struct ab8500 *ab8500; ab8500 887 drivers/mfd/ab8500-core.c ab8500 = dev_get_drvdata(dev); ab8500 889 drivers/mfd/ab8500-core.c return sprintf(buf, "%#x\n", ab8500 ? ab8500->chip_id : -EINVAL); ab8500 908 drivers/mfd/ab8500-core.c struct ab8500 *ab8500; ab8500 910 drivers/mfd/ab8500-core.c ab8500 = dev_get_drvdata(dev); ab8500 911 drivers/mfd/ab8500-core.c ret = get_register_interruptible(ab8500, AB8500_RTC, ab8500 943 drivers/mfd/ab8500-core.c struct ab8500 *ab8500; ab8500 945 drivers/mfd/ab8500-core.c ab8500 = dev_get_drvdata(dev); ab8500 946 drivers/mfd/ab8500-core.c ret = get_register_interruptible(ab8500, AB8500_SYS_CTRL1_BLOCK, ab8500 958 drivers/mfd/ab8500-core.c if (is_ab9540(ab8500)) { ab8500 972 drivers/mfd/ab8500-core.c struct ab8500 *ab8500; ab8500 974 drivers/mfd/ab8500-core.c ab8500 = dev_get_drvdata(dev); ab8500 975 drivers/mfd/ab8500-core.c ret = get_register_interruptible(ab8500, AB8500_SYS_CTRL1_BLOCK, ab8500 985 drivers/mfd/ab8500-core.c struct ab8500 *ab8500; ab8500 989 drivers/mfd/ab8500-core.c ab8500 = dev_get_drvdata(dev); ab8500 991 drivers/mfd/ab8500-core.c ret = get_register_interruptible(ab8500, AB8500_REGU_CTRL2, ab8500 1003 drivers/mfd/ab8500-core.c struct ab8500 *ab8500; ab8500 1008 drivers/mfd/ab8500-core.c ab8500 = dev_get_drvdata(dev); ab8500 1022 drivers/mfd/ab8500-core.c err = mask_and_set_register_interruptible(ab8500, ab8500 1026 drivers/mfd/ab8500-core.c dev_info(ab8500->dev, ab8500 1097 drivers/mfd/ab8500-core.c struct ab8500 *ab8500; ab8500 1103 drivers/mfd/ab8500-core.c ab8500 = devm_kzalloc(&pdev->dev, sizeof(*ab8500), GFP_KERNEL); ab8500 1104 drivers/mfd/ab8500-core.c if (!ab8500) ab8500 1107 drivers/mfd/ab8500-core.c ab8500->dev = &pdev->dev; ab8500 1115 drivers/mfd/ab8500-core.c ab8500->irq = resource->start; ab8500 1117 drivers/mfd/ab8500-core.c ab8500->read = ab8500_prcmu_read; ab8500 1118 drivers/mfd/ab8500-core.c ab8500->write = ab8500_prcmu_write; ab8500 1119 drivers/mfd/ab8500-core.c ab8500->write_masked = ab8500_prcmu_write_masked; ab8500 1121 drivers/mfd/ab8500-core.c mutex_init(&ab8500->lock); ab8500 1122 drivers/mfd/ab8500-core.c mutex_init(&ab8500->irq_lock); ab8500 1123 drivers/mfd/ab8500-core.c atomic_set(&ab8500->transfer_ongoing, 0); ab8500 1125 drivers/mfd/ab8500-core.c platform_set_drvdata(pdev, ab8500); ab8500 1131 drivers/mfd/ab8500-core.c ab8500->version = version; ab8500 1133 drivers/mfd/ab8500-core.c ret = get_register_interruptible(ab8500, AB8500_MISC, ab8500 1140 drivers/mfd/ab8500-core.c ab8500->version = value; ab8500 1143 drivers/mfd/ab8500-core.c ret = get_register_interruptible(ab8500, AB8500_MISC, ab8500 1148 drivers/mfd/ab8500-core.c ab8500->chip_id = value; ab8500 1150 drivers/mfd/ab8500-core.c dev_info(ab8500->dev, "detected chip, %s rev. %1x.%1x\n", ab8500 1151 drivers/mfd/ab8500-core.c ab8500_version_str[ab8500->version], ab8500 1152 drivers/mfd/ab8500-core.c ab8500->chip_id >> 4, ab8500 1153 drivers/mfd/ab8500-core.c ab8500->chip_id & 0x0F); ab8500 1156 drivers/mfd/ab8500-core.c if (is_ab8540(ab8500)) { ab8500 1157 drivers/mfd/ab8500-core.c ab8500->mask_size = AB8540_NUM_IRQ_REGS; ab8500 1158 drivers/mfd/ab8500-core.c ab8500->irq_reg_offset = ab8540_irq_regoffset; ab8500 1159 drivers/mfd/ab8500-core.c ab8500->it_latchhier_num = AB8540_IT_LATCHHIER_NUM; ab8500 1161 drivers/mfd/ab8500-core.c else if (is_ab9540(ab8500) || is_ab8505(ab8500)) { ab8500 1162 drivers/mfd/ab8500-core.c ab8500->mask_size = AB9540_NUM_IRQ_REGS; ab8500 1163 drivers/mfd/ab8500-core.c ab8500->irq_reg_offset = ab9540_irq_regoffset; ab8500 1164 drivers/mfd/ab8500-core.c ab8500->it_latchhier_num = AB8500_IT_LATCHHIER_NUM; ab8500 1166 drivers/mfd/ab8500-core.c ab8500->mask_size = AB8500_NUM_IRQ_REGS; ab8500 1167 drivers/mfd/ab8500-core.c ab8500->irq_reg_offset = ab8500_irq_regoffset; ab8500 1168 drivers/mfd/ab8500-core.c ab8500->it_latchhier_num = AB8500_IT_LATCHHIER_NUM; ab8500 1170 drivers/mfd/ab8500-core.c ab8500->mask = devm_kzalloc(&pdev->dev, ab8500->mask_size, ab8500 1172 drivers/mfd/ab8500-core.c if (!ab8500->mask) ab8500 1174 drivers/mfd/ab8500-core.c ab8500->oldmask = devm_kzalloc(&pdev->dev, ab8500->mask_size, ab8500 1176 drivers/mfd/ab8500-core.c if (!ab8500->oldmask) ab8500 1191 drivers/mfd/ab8500-core.c ret = get_register_interruptible(ab8500, AB8500_RTC, ab8500 1195 drivers/mfd/ab8500-core.c dev_info(ab8500->dev, "switch off cause(s) (%#x): ", value); ab8500 1208 drivers/mfd/ab8500-core.c ret = get_register_interruptible(ab8500, AB8500_SYS_CTRL1_BLOCK, ab8500 1212 drivers/mfd/ab8500-core.c dev_info(ab8500->dev, "turn on reason(s) (%#x): ", value); ab8500 1225 drivers/mfd/ab8500-core.c if (is_ab9540(ab8500)) { ab8500 1226 drivers/mfd/ab8500-core.c ret = get_register_interruptible(ab8500, AB8500_CHARGER, ab8500 1236 drivers/mfd/ab8500-core.c for (i = 0; i < ab8500->mask_size; i++) { ab8500 1241 drivers/mfd/ab8500-core.c if (ab8500->irq_reg_offset[i] == 11 && ab8500 1242 drivers/mfd/ab8500-core.c is_ab8500_1p1_or_earlier(ab8500)) ab8500 1245 drivers/mfd/ab8500-core.c if (ab8500->irq_reg_offset[i] < 0) ab8500 1248 drivers/mfd/ab8500-core.c get_register_interruptible(ab8500, AB8500_INTERRUPT, ab8500 1249 drivers/mfd/ab8500-core.c AB8500_IT_LATCH1_REG + ab8500->irq_reg_offset[i], ab8500 1251 drivers/mfd/ab8500-core.c set_register_interruptible(ab8500, AB8500_INTERRUPT, ab8500 1252 drivers/mfd/ab8500-core.c AB8500_IT_MASK1_REG + ab8500->irq_reg_offset[i], 0xff); ab8500 1255 drivers/mfd/ab8500-core.c ret = abx500_register_ops(ab8500->dev, &ab8500_ops); ab8500 1259 drivers/mfd/ab8500-core.c for (i = 0; i < ab8500->mask_size; i++) ab8500 1260 drivers/mfd/ab8500-core.c ab8500->mask[i] = ab8500->oldmask[i] = 0xff; ab8500 1262 drivers/mfd/ab8500-core.c ret = ab8500_irq_init(ab8500, np); ab8500 1266 drivers/mfd/ab8500-core.c ret = devm_request_threaded_irq(&pdev->dev, ab8500->irq, NULL, ab8500 1269 drivers/mfd/ab8500-core.c "ab8500", ab8500); ab8500 1273 drivers/mfd/ab8500-core.c if (is_ab9540(ab8500)) ab8500 1274 drivers/mfd/ab8500-core.c ret = mfd_add_devices(ab8500->dev, 0, ab9540_devs, ab8500 1276 drivers/mfd/ab8500-core.c 0, ab8500->domain); ab8500 1277 drivers/mfd/ab8500-core.c else if (is_ab8540(ab8500)) { ab8500 1278 drivers/mfd/ab8500-core.c ret = mfd_add_devices(ab8500->dev, 0, ab8540_devs, ab8500 1280 drivers/mfd/ab8500-core.c 0, ab8500->domain); ab8500 1284 drivers/mfd/ab8500-core.c if (is_ab8540_1p2_or_earlier(ab8500)) ab8500 1285 drivers/mfd/ab8500-core.c ret = mfd_add_devices(ab8500->dev, 0, ab8540_cut1_devs, ab8500 1287 drivers/mfd/ab8500-core.c 0, ab8500->domain); ab8500 1289 drivers/mfd/ab8500-core.c ret = mfd_add_devices(ab8500->dev, 0, ab8540_cut2_devs, ab8500 1291 drivers/mfd/ab8500-core.c 0, ab8500->domain); ab8500 1292 drivers/mfd/ab8500-core.c } else if (is_ab8505(ab8500)) ab8500 1293 drivers/mfd/ab8500-core.c ret = mfd_add_devices(ab8500->dev, 0, ab8505_devs, ab8500 1295 drivers/mfd/ab8500-core.c 0, ab8500->domain); ab8500 1297 drivers/mfd/ab8500-core.c ret = mfd_add_devices(ab8500->dev, 0, ab8500_devs, ab8500 1299 drivers/mfd/ab8500-core.c 0, ab8500->domain); ab8500 1305 drivers/mfd/ab8500-core.c ret = mfd_add_devices(ab8500->dev, 0, ab8500_bm_devs, ab8500 1307 drivers/mfd/ab8500-core.c 0, ab8500->domain); ab8500 1309 drivers/mfd/ab8500-core.c dev_err(ab8500->dev, "error adding bm devices\n"); ab8500 1312 drivers/mfd/ab8500-core.c if (((is_ab8505(ab8500) || is_ab9540(ab8500)) && ab8500 1313 drivers/mfd/ab8500-core.c ab8500->chip_id >= AB8500_CUT2P0) || is_ab8540(ab8500)) ab8500 1314 drivers/mfd/ab8500-core.c ret = sysfs_create_group(&ab8500->dev->kobj, ab8500 1317 drivers/mfd/ab8500-core.c ret = sysfs_create_group(&ab8500->dev->kobj, ab8500 1320 drivers/mfd/ab8500-core.c if ((is_ab8505(ab8500) || is_ab9540(ab8500)) && ab8500 1321 drivers/mfd/ab8500-core.c ab8500->chip_id >= AB8500_CUT2P0) ab8500 1322 drivers/mfd/ab8500-core.c ret = sysfs_create_group(&ab8500->dev->kobj, ab8500 1326 drivers/mfd/ab8500-core.c dev_err(ab8500->dev, "error creating sysfs entries\n"); ab8500 1594 drivers/mfd/ab8500-debugfs.c struct ab8500 *ab8500; ab8500 1602 drivers/mfd/ab8500-debugfs.c ab8500 = dev_get_drvdata(dev->parent); ab8500 1620 drivers/mfd/ab8500-debugfs.c if (is_ab9540(ab8500) || is_ab8505(ab8500)) ab8500 2651 drivers/mfd/ab8500-debugfs.c struct ab8500 *ab8500; ab8500 2657 drivers/mfd/ab8500-debugfs.c ab8500 = dev_get_drvdata(plf->dev.parent); ab8500 2658 drivers/mfd/ab8500-debugfs.c num_irqs = ab8500->mask_size; ab8500 2708 drivers/mfd/ab8500-debugfs.c if (is_ab8500(ab8500)) { ab8500 2711 drivers/mfd/ab8500-debugfs.c } else if (is_ab8505(ab8500)) { ab8500 2714 drivers/mfd/ab8500-debugfs.c } else if (is_ab9540(ab8500)) { ab8500 2717 drivers/mfd/ab8500-debugfs.c } else if (is_ab8540(ab8500)) { ab8500 2772 drivers/mfd/ab8500-debugfs.c if (is_ab8540(ab8500)) { ab8500 161 drivers/mfd/ab8500-gpadc.c struct ab8500 *parent; ab8500 645 drivers/mfd/ab8500-gpadc.c struct ab8500 *ab8500; ab8500 647 drivers/mfd/ab8500-gpadc.c ab8500 = gpadc->parent; ab8500 726 drivers/mfd/ab8500-gpadc.c if (is_ab8540(ab8500)) { ab8500 84 drivers/pinctrl/nomadik/pinctrl-abx500.c struct ab8500 *parent; ab8500 98 drivers/power/supply/ab8500_btemp.c struct ab8500 *parent; ab8500 285 drivers/power/supply/ab8500_charger.c struct ab8500 *parent; ab8500 226 drivers/power/supply/ab8500_fg.c struct ab8500 *parent; ab8500 248 drivers/power/supply/abx500_chargalg.c struct ab8500 *parent; ab8500 479 drivers/power/supply/pm2301_charger.h struct ab8500 *parent; ab8500 91 drivers/pwm/pwm-ab8500.c struct ab8500_pwm_chip *ab8500; ab8500 98 drivers/pwm/pwm-ab8500.c ab8500 = devm_kzalloc(&pdev->dev, sizeof(*ab8500), GFP_KERNEL); ab8500 99 drivers/pwm/pwm-ab8500.c if (ab8500 == NULL) ab8500 102 drivers/pwm/pwm-ab8500.c ab8500->chip.dev = &pdev->dev; ab8500 103 drivers/pwm/pwm-ab8500.c ab8500->chip.ops = &ab8500_pwm_ops; ab8500 104 drivers/pwm/pwm-ab8500.c ab8500->chip.base = pdev->id; ab8500 105 drivers/pwm/pwm-ab8500.c ab8500->chip.npwm = 1; ab8500 107 drivers/pwm/pwm-ab8500.c err = pwmchip_add(&ab8500->chip); ab8500 112 drivers/pwm/pwm-ab8500.c platform_set_drvdata(pdev, ab8500); ab8500 119 drivers/pwm/pwm-ab8500.c struct ab8500_pwm_chip *ab8500 = platform_get_drvdata(pdev); ab8500 122 drivers/pwm/pwm-ab8500.c err = pwmchip_remove(&ab8500->chip); ab8500 790 drivers/regulator/ab8500-ext.c struct ab8500 *ab8500 = dev_get_drvdata(pdev->dev.parent); ab8500 796 drivers/regulator/ab8500-ext.c if (!ab8500) { ab8500 808 drivers/regulator/ab8500-ext.c if (is_ab8500_2p0_or_earlier(ab8500)) { ab8500 1557 drivers/regulator/ab8500.c static void abx500_get_regulator_info(struct ab8500 *ab8500) ab8500 1559 drivers/regulator/ab8500.c if (is_ab8505(ab8500)) { ab8500 1580 drivers/regulator/ab8500.c struct ab8500 *ab8500 = dev_get_drvdata(pdev->dev.parent); ab8500 1595 drivers/regulator/ab8500.c if (is_ab8500_1p1_or_earlier(ab8500)) { ab8500 1617 drivers/regulator/ab8500.c struct ab8500 *ab8500 = dev_get_drvdata(pdev->dev.parent); ab8500 1622 drivers/regulator/ab8500.c if (!ab8500) { ab8500 1627 drivers/regulator/ab8500.c abx500_get_regulator_info(ab8500); ab8500 128 drivers/usb/phy/phy-ab8500-usb.c struct ab8500 *ab8500; ab8500 242 drivers/usb/phy/phy-ab8500-usb.c if (is_ab8500_2p0(ab->ab8500)) { ab8500 511 drivers/usb/phy/phy-ab8500-usb.c if (is_ab8500(ab->ab8500)) { ab8500 520 drivers/usb/phy/phy-ab8500-usb.c } else if (is_ab8505(ab->ab8500)) { ab8500 569 drivers/usb/phy/phy-ab8500-usb.c if (is_ab8500_2p0(ab->ab8500)) { ab8500 847 drivers/usb/phy/phy-ab8500-usb.c struct ab8500 *ab8500; ab8500 852 drivers/usb/phy/phy-ab8500-usb.c ab8500 = dev_get_drvdata(pdev->dev.parent); ab8500 855 drivers/usb/phy/phy-ab8500-usb.c if (is_ab8500_1p1_or_earlier(ab8500)) { ab8500 869 drivers/usb/phy/phy-ab8500-usb.c ab->ab8500 = ab8500; ab8500 880 drivers/usb/phy/phy-ab8500-usb.c if (is_ab8500(ab->ab8500)) { ab8500 885 drivers/usb/phy/phy-ab8500-usb.c } else if (is_ab8505(ab->ab8500)) { ab8500 893 drivers/usb/phy/phy-ab8500-usb.c if (is_ab8500_2p0_or_earlier(ab->ab8500)) ab8500 921 drivers/usb/phy/phy-ab8500-usb.c if (is_ab8500(ab->ab8500) && !is_ab8500_2p0_or_earlier(ab->ab8500)) ab8500 924 drivers/usb/phy/phy-ab8500-usb.c else if (is_ab8505(ab->ab8500)) ab8500 357 include/linux/mfd/abx500/ab8500.h int (*write)(struct ab8500 *ab8500, u16 addr, u8 data); ab8500 358 include/linux/mfd/abx500/ab8500.h int (*write_masked)(struct ab8500 *ab8500, u16 addr, u8 mask, u8 data); ab8500 359 include/linux/mfd/abx500/ab8500.h int (*read)(struct ab8500 *ab8500, u16 addr); ab8500 382 include/linux/mfd/abx500/ab8500.h void (*init) (struct ab8500 *); ab8500 388 include/linux/mfd/abx500/ab8500.h extern int ab8500_init(struct ab8500 *ab8500, ab8500 390 include/linux/mfd/abx500/ab8500.h extern int ab8500_exit(struct ab8500 *ab8500); ab8500 392 include/linux/mfd/abx500/ab8500.h extern int ab8500_suspend(struct ab8500 *ab8500); ab8500 394 include/linux/mfd/abx500/ab8500.h static inline int is_ab8500(struct ab8500 *ab) ab8500 399 include/linux/mfd/abx500/ab8500.h static inline int is_ab8505(struct ab8500 *ab) ab8500 404 include/linux/mfd/abx500/ab8500.h static inline int is_ab9540(struct ab8500 *ab) ab8500 409 include/linux/mfd/abx500/ab8500.h static inline int is_ab8540(struct ab8500 *ab) ab8500 415 include/linux/mfd/abx500/ab8500.h static inline int is_ab8500_1p0_or_earlier(struct ab8500 *ab) ab8500 421 include/linux/mfd/abx500/ab8500.h static inline int is_ab8500_1p1_or_earlier(struct ab8500 *ab) ab8500 427 include/linux/mfd/abx500/ab8500.h static inline int is_ab8500_2p0_or_earlier(struct ab8500 *ab) ab8500 432 include/linux/mfd/abx500/ab8500.h static inline int is_ab8500_3p3_or_earlier(struct ab8500 *ab) ab8500 438 include/linux/mfd/abx500/ab8500.h static inline int is_ab8500_2p0(struct ab8500 *ab) ab8500 443 include/linux/mfd/abx500/ab8500.h static inline int is_ab8505_1p0_or_earlier(struct ab8500 *ab) ab8500 448 include/linux/mfd/abx500/ab8500.h static inline int is_ab8505_2p0(struct ab8500 *ab) ab8500 453 include/linux/mfd/abx500/ab8500.h static inline int is_ab9540_1p0_or_earlier(struct ab8500 *ab) ab8500 458 include/linux/mfd/abx500/ab8500.h static inline int is_ab9540_2p0(struct ab8500 *ab) ab8500 467 include/linux/mfd/abx500/ab8500.h static inline int is_ab9540_3p0(struct ab8500 *ab) ab8500 472 include/linux/mfd/abx500/ab8500.h static inline int is_ab8540_1p0_or_earlier(struct ab8500 *ab) ab8500 477 include/linux/mfd/abx500/ab8500.h static inline int is_ab8540_1p1_or_earlier(struct ab8500 *ab) ab8500 482 include/linux/mfd/abx500/ab8500.h static inline int is_ab8540_1p2_or_earlier(struct ab8500 *ab) ab8500 487 include/linux/mfd/abx500/ab8500.h static inline int is_ab8540_2p0_or_earlier(struct ab8500 *ab) ab8500 492 include/linux/mfd/abx500/ab8500.h static inline int is_ab8540_2p0(struct ab8500 *ab) ab8500 497 include/linux/mfd/abx500/ab8500.h static inline int is_ab8505_2p0_earlier(struct ab8500 *ab) ab8500 502 include/linux/mfd/abx500/ab8500.h static inline int is_ab9540_2p0_or_earlier(struct ab8500 *ab)