pcf 144 arch/arm/mach-s3c24xx/mach-gta02.c gta02_configure_pmu_for_charger(struct pcf50633 *pcf, void *unused, int res) pcf 155 arch/arm/mach-s3c24xx/mach-gta02.c pcf50633_gpio_set(pcf, PCF50633_GPO, 0); pcf 161 arch/arm/mach-s3c24xx/mach-gta02.c pcf50633_mbc_usb_curlim_set(pcf, ma); pcf 192 arch/arm/mach-s3c24xx/mach-gta02.c static void gta02_pmu_event_callback(struct pcf50633 *pcf, int irq) pcf 26 drivers/input/misc/pcf50633-input.c struct pcf50633 *pcf; pcf 39 drivers/input/misc/pcf50633-input.c onkey_released = pcf50633_reg_read(input->pcf, PCF50633_REG_OOCSTAT) pcf 68 drivers/input/misc/pcf50633-input.c input->pcf = dev_to_pcf50633(pdev->dev.parent); pcf 82 drivers/input/misc/pcf50633-input.c pcf50633_register_irq(input->pcf, PCF50633_IRQ_ONKEYR, pcf 84 drivers/input/misc/pcf50633-input.c pcf50633_register_irq(input->pcf, PCF50633_IRQ_ONKEYF, pcf 94 drivers/input/misc/pcf50633-input.c pcf50633_free_irq(input->pcf, PCF50633_IRQ_ONKEYR); pcf 95 drivers/input/misc/pcf50633-input.c pcf50633_free_irq(input->pcf, PCF50633_IRQ_ONKEYF); pcf 40 drivers/mfd/pcf50633-adc.c struct pcf50633 *pcf; pcf 49 drivers/mfd/pcf50633-adc.c static inline struct pcf50633_adc *__to_adc(struct pcf50633 *pcf) pcf 51 drivers/mfd/pcf50633-adc.c return platform_get_drvdata(pcf->adc_pdev); pcf 54 drivers/mfd/pcf50633-adc.c static void adc_setup(struct pcf50633 *pcf, int channel, int avg) pcf 59 drivers/mfd/pcf50633-adc.c pcf50633_reg_write(pcf, PCF50633_REG_ADCC2, 0x00); pcf 60 drivers/mfd/pcf50633-adc.c pcf50633_reg_write(pcf, PCF50633_REG_ADCC3, 0x01); pcf 63 drivers/mfd/pcf50633-adc.c pcf50633_reg_write(pcf, PCF50633_REG_ADCC1, channel | avg | pcf 67 drivers/mfd/pcf50633-adc.c static void trigger_next_adc_job_if_any(struct pcf50633 *pcf) pcf 69 drivers/mfd/pcf50633-adc.c struct pcf50633_adc *adc = __to_adc(pcf); pcf 77 drivers/mfd/pcf50633-adc.c adc_setup(pcf, adc->queue[head]->mux, adc->queue[head]->avg); pcf 81 drivers/mfd/pcf50633-adc.c adc_enqueue_request(struct pcf50633 *pcf, struct pcf50633_adc_request *req) pcf 83 drivers/mfd/pcf50633-adc.c struct pcf50633_adc *adc = __to_adc(pcf); pcf 93 drivers/mfd/pcf50633-adc.c dev_err(pcf->dev, "ADC queue is full, dropping request\n"); pcf 99 drivers/mfd/pcf50633-adc.c trigger_next_adc_job_if_any(pcf); pcf 107 drivers/mfd/pcf50633-adc.c static void pcf50633_adc_sync_read_callback(struct pcf50633 *pcf, void *param, pcf 116 drivers/mfd/pcf50633-adc.c int pcf50633_adc_sync_read(struct pcf50633 *pcf, int mux, int avg) pcf 123 drivers/mfd/pcf50633-adc.c ret = pcf50633_adc_async_read(pcf, mux, avg, pcf 134 drivers/mfd/pcf50633-adc.c int pcf50633_adc_async_read(struct pcf50633 *pcf, int mux, int avg, pcf 150 drivers/mfd/pcf50633-adc.c return adc_enqueue_request(pcf, req); pcf 154 drivers/mfd/pcf50633-adc.c static int adc_result(struct pcf50633 *pcf) pcf 159 drivers/mfd/pcf50633-adc.c adcs1 = pcf50633_reg_read(pcf, PCF50633_REG_ADCS1); pcf 160 drivers/mfd/pcf50633-adc.c adcs3 = pcf50633_reg_read(pcf, PCF50633_REG_ADCS3); pcf 163 drivers/mfd/pcf50633-adc.c dev_dbg(pcf->dev, "adc result = %d\n", result); pcf 171 drivers/mfd/pcf50633-adc.c struct pcf50633 *pcf = adc->pcf; pcf 180 drivers/mfd/pcf50633-adc.c dev_err(pcf->dev, "pcf50633-adc irq: ADC queue empty!\n"); pcf 188 drivers/mfd/pcf50633-adc.c res = adc_result(pcf); pcf 189 drivers/mfd/pcf50633-adc.c trigger_next_adc_job_if_any(pcf); pcf 193 drivers/mfd/pcf50633-adc.c req->callback(pcf, req->callback_param, res); pcf 205 drivers/mfd/pcf50633-adc.c adc->pcf = dev_to_pcf50633(pdev->dev.parent); pcf 208 drivers/mfd/pcf50633-adc.c pcf50633_register_irq(adc->pcf, PCF50633_IRQ_ADCRDY, pcf 221 drivers/mfd/pcf50633-adc.c pcf50633_free_irq(adc->pcf, PCF50633_IRQ_ADCRDY); pcf 227 drivers/mfd/pcf50633-adc.c dev_err(adc->pcf->dev, pcf 27 drivers/mfd/pcf50633-core.c int pcf50633_read_block(struct pcf50633 *pcf, u8 reg, pcf 32 drivers/mfd/pcf50633-core.c ret = regmap_raw_read(pcf->regmap, reg, data, nr_regs); pcf 41 drivers/mfd/pcf50633-core.c int pcf50633_write_block(struct pcf50633 *pcf , u8 reg, pcf 44 drivers/mfd/pcf50633-core.c return regmap_raw_write(pcf->regmap, reg, data, nr_regs); pcf 48 drivers/mfd/pcf50633-core.c u8 pcf50633_reg_read(struct pcf50633 *pcf, u8 reg) pcf 53 drivers/mfd/pcf50633-core.c ret = regmap_read(pcf->regmap, reg, &val); pcf 61 drivers/mfd/pcf50633-core.c int pcf50633_reg_write(struct pcf50633 *pcf, u8 reg, u8 val) pcf 63 drivers/mfd/pcf50633-core.c return regmap_write(pcf->regmap, reg, val); pcf 67 drivers/mfd/pcf50633-core.c int pcf50633_reg_set_bit_mask(struct pcf50633 *pcf, u8 reg, u8 mask, u8 val) pcf 69 drivers/mfd/pcf50633-core.c return regmap_update_bits(pcf->regmap, reg, mask, val); pcf 73 drivers/mfd/pcf50633-core.c int pcf50633_reg_clear_bits(struct pcf50633 *pcf, u8 reg, u8 val) pcf 75 drivers/mfd/pcf50633-core.c return regmap_update_bits(pcf->regmap, reg, val, 0); pcf 83 drivers/mfd/pcf50633-core.c struct pcf50633 *pcf = dev_get_drvdata(dev); pcf 102 drivers/mfd/pcf50633-core.c dump[n1] = pcf50633_reg_read(pcf, n + n1); pcf 114 drivers/mfd/pcf50633-core.c struct pcf50633 *pcf = dev_get_drvdata(dev); pcf 118 drivers/mfd/pcf50633-core.c pcf->resume_reason[0], pcf 119 drivers/mfd/pcf50633-core.c pcf->resume_reason[1], pcf 120 drivers/mfd/pcf50633-core.c pcf->resume_reason[2], pcf 121 drivers/mfd/pcf50633-core.c pcf->resume_reason[3], pcf 122 drivers/mfd/pcf50633-core.c pcf->resume_reason[4]); pcf 140 drivers/mfd/pcf50633-core.c pcf50633_client_dev_register(struct pcf50633 *pcf, const char *name, pcf 147 drivers/mfd/pcf50633-core.c dev_err(pcf->dev, "Failed to allocate %s\n", name); pcf 151 drivers/mfd/pcf50633-core.c (*pdev)->dev.parent = pcf->dev; pcf 155 drivers/mfd/pcf50633-core.c dev_err(pcf->dev, "Failed to register %s: %d\n", name, ret); pcf 165 drivers/mfd/pcf50633-core.c struct pcf50633 *pcf = i2c_get_clientdata(client); pcf 167 drivers/mfd/pcf50633-core.c return pcf50633_irq_suspend(pcf); pcf 173 drivers/mfd/pcf50633-core.c struct pcf50633 *pcf = i2c_get_clientdata(client); pcf 175 drivers/mfd/pcf50633-core.c return pcf50633_irq_resume(pcf); pcf 189 drivers/mfd/pcf50633-core.c struct pcf50633 *pcf; pcf 200 drivers/mfd/pcf50633-core.c pcf = devm_kzalloc(&client->dev, sizeof(*pcf), GFP_KERNEL); pcf 201 drivers/mfd/pcf50633-core.c if (!pcf) pcf 204 drivers/mfd/pcf50633-core.c i2c_set_clientdata(client, pcf); pcf 205 drivers/mfd/pcf50633-core.c pcf->dev = &client->dev; pcf 206 drivers/mfd/pcf50633-core.c pcf->pdata = pdata; pcf 208 drivers/mfd/pcf50633-core.c mutex_init(&pcf->lock); pcf 210 drivers/mfd/pcf50633-core.c pcf->regmap = devm_regmap_init_i2c(client, &pcf50633_regmap_config); pcf 211 drivers/mfd/pcf50633-core.c if (IS_ERR(pcf->regmap)) { pcf 212 drivers/mfd/pcf50633-core.c ret = PTR_ERR(pcf->regmap); pcf 213 drivers/mfd/pcf50633-core.c dev_err(pcf->dev, "Failed to allocate register map: %d\n", ret); pcf 217 drivers/mfd/pcf50633-core.c version = pcf50633_reg_read(pcf, 0); pcf 218 drivers/mfd/pcf50633-core.c variant = pcf50633_reg_read(pcf, 1); pcf 220 drivers/mfd/pcf50633-core.c dev_err(pcf->dev, "Unable to probe pcf50633\n"); pcf 225 drivers/mfd/pcf50633-core.c dev_info(pcf->dev, "Probed device version %d variant %d\n", pcf 228 drivers/mfd/pcf50633-core.c pcf50633_irq_init(pcf, client->irq); pcf 231 drivers/mfd/pcf50633-core.c pcf50633_client_dev_register(pcf, "pcf50633-input", &pcf->input_pdev); pcf 232 drivers/mfd/pcf50633-core.c pcf50633_client_dev_register(pcf, "pcf50633-rtc", &pcf->rtc_pdev); pcf 233 drivers/mfd/pcf50633-core.c pcf50633_client_dev_register(pcf, "pcf50633-mbc", &pcf->mbc_pdev); pcf 234 drivers/mfd/pcf50633-core.c pcf50633_client_dev_register(pcf, "pcf50633-adc", &pcf->adc_pdev); pcf 235 drivers/mfd/pcf50633-core.c pcf50633_client_dev_register(pcf, "pcf50633-backlight", &pcf->bl_pdev); pcf 245 drivers/mfd/pcf50633-core.c pdev->dev.parent = pcf->dev; pcf 255 drivers/mfd/pcf50633-core.c pcf->regulator_pdev[i] = pdev; pcf 260 drivers/mfd/pcf50633-core.c dev_warn(pcf->dev, "error creating sysfs entries\n"); pcf 263 drivers/mfd/pcf50633-core.c pdata->probe_done(pcf); pcf 271 drivers/mfd/pcf50633-core.c platform_device_put(pcf->regulator_pdev[j]); pcf 278 drivers/mfd/pcf50633-core.c struct pcf50633 *pcf = i2c_get_clientdata(client); pcf 282 drivers/mfd/pcf50633-core.c pcf50633_irq_free(pcf); pcf 284 drivers/mfd/pcf50633-core.c platform_device_unregister(pcf->input_pdev); pcf 285 drivers/mfd/pcf50633-core.c platform_device_unregister(pcf->rtc_pdev); pcf 286 drivers/mfd/pcf50633-core.c platform_device_unregister(pcf->mbc_pdev); pcf 287 drivers/mfd/pcf50633-core.c platform_device_unregister(pcf->adc_pdev); pcf 288 drivers/mfd/pcf50633-core.c platform_device_unregister(pcf->bl_pdev); pcf 291 drivers/mfd/pcf50633-core.c platform_device_unregister(pcf->regulator_pdev[i]); pcf 33 drivers/mfd/pcf50633-gpio.c int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val) pcf 39 drivers/mfd/pcf50633-gpio.c return pcf50633_reg_set_bit_mask(pcf, reg, 0x07, val); pcf 43 drivers/mfd/pcf50633-gpio.c u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio) pcf 48 drivers/mfd/pcf50633-gpio.c val = pcf50633_reg_read(pcf, reg) & 0x07; pcf 54 drivers/mfd/pcf50633-gpio.c int pcf50633_gpio_invert_set(struct pcf50633 *pcf, int gpio, int invert) pcf 61 drivers/mfd/pcf50633-gpio.c return pcf50633_reg_set_bit_mask(pcf, reg, 1 << 3, val); pcf 65 drivers/mfd/pcf50633-gpio.c int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio) pcf 70 drivers/mfd/pcf50633-gpio.c val = pcf50633_reg_read(pcf, reg); pcf 76 drivers/mfd/pcf50633-gpio.c int pcf50633_gpio_power_supply_set(struct pcf50633 *pcf, pcf 87 drivers/mfd/pcf50633-gpio.c return pcf50633_reg_set_bit_mask(pcf, reg, mask, val); pcf 19 drivers/mfd/pcf50633-irq.c int pcf50633_register_irq(struct pcf50633 *pcf, int irq, pcf 25 drivers/mfd/pcf50633-irq.c if (WARN_ON(pcf->irq_handler[irq].handler)) pcf 28 drivers/mfd/pcf50633-irq.c mutex_lock(&pcf->lock); pcf 29 drivers/mfd/pcf50633-irq.c pcf->irq_handler[irq].handler = handler; pcf 30 drivers/mfd/pcf50633-irq.c pcf->irq_handler[irq].data = data; pcf 31 drivers/mfd/pcf50633-irq.c mutex_unlock(&pcf->lock); pcf 37 drivers/mfd/pcf50633-irq.c int pcf50633_free_irq(struct pcf50633 *pcf, int irq) pcf 42 drivers/mfd/pcf50633-irq.c mutex_lock(&pcf->lock); pcf 43 drivers/mfd/pcf50633-irq.c pcf->irq_handler[irq].handler = NULL; pcf 44 drivers/mfd/pcf50633-irq.c mutex_unlock(&pcf->lock); pcf 50 drivers/mfd/pcf50633-irq.c static int __pcf50633_irq_mask_set(struct pcf50633 *pcf, int irq, u8 mask) pcf 59 drivers/mfd/pcf50633-irq.c pcf50633_reg_set_bit_mask(pcf, reg, bit, mask ? bit : 0); pcf 61 drivers/mfd/pcf50633-irq.c mutex_lock(&pcf->lock); pcf 64 drivers/mfd/pcf50633-irq.c pcf->mask_regs[idx] |= bit; pcf 66 drivers/mfd/pcf50633-irq.c pcf->mask_regs[idx] &= ~bit; pcf 68 drivers/mfd/pcf50633-irq.c mutex_unlock(&pcf->lock); pcf 73 drivers/mfd/pcf50633-irq.c int pcf50633_irq_mask(struct pcf50633 *pcf, int irq) pcf 75 drivers/mfd/pcf50633-irq.c dev_dbg(pcf->dev, "Masking IRQ %d\n", irq); pcf 77 drivers/mfd/pcf50633-irq.c return __pcf50633_irq_mask_set(pcf, irq, 1); pcf 81 drivers/mfd/pcf50633-irq.c int pcf50633_irq_unmask(struct pcf50633 *pcf, int irq) pcf 83 drivers/mfd/pcf50633-irq.c dev_dbg(pcf->dev, "Unmasking IRQ %d\n", irq); pcf 85 drivers/mfd/pcf50633-irq.c return __pcf50633_irq_mask_set(pcf, irq, 0); pcf 89 drivers/mfd/pcf50633-irq.c int pcf50633_irq_mask_get(struct pcf50633 *pcf, int irq) pcf 96 drivers/mfd/pcf50633-irq.c return pcf->mask_regs[reg] & bits; pcf 100 drivers/mfd/pcf50633-irq.c static void pcf50633_irq_call_handler(struct pcf50633 *pcf, int irq) pcf 102 drivers/mfd/pcf50633-irq.c if (pcf->irq_handler[irq].handler) pcf 103 drivers/mfd/pcf50633-irq.c pcf->irq_handler[irq].handler(irq, pcf->irq_handler[irq].data); pcf 111 drivers/mfd/pcf50633-irq.c struct pcf50633 *pcf = data; pcf 116 drivers/mfd/pcf50633-irq.c ret = pcf50633_read_block(pcf, PCF50633_REG_INT1, pcf 119 drivers/mfd/pcf50633-irq.c dev_err(pcf->dev, "Error reading INT registers\n"); pcf 129 drivers/mfd/pcf50633-irq.c pcf50633_reg_write(pcf, PCF50633_REG_OOCSHDWN, 0x04); pcf 134 drivers/mfd/pcf50633-irq.c chgstat = pcf50633_reg_read(pcf, PCF50633_REG_MBCS2); pcf 143 drivers/mfd/pcf50633-irq.c chgstat = pcf50633_reg_read(pcf, PCF50633_REG_MBCS2); pcf 150 drivers/mfd/pcf50633-irq.c dev_dbg(pcf->dev, "INT1=0x%02x INT2=0x%02x INT3=0x%02x " pcf 156 drivers/mfd/pcf50633-irq.c if ((pcf_int[0] & PCF50633_INT1_SECOND) && pcf->onkey1s_held) { pcf 157 drivers/mfd/pcf50633-irq.c dev_info(pcf->dev, "ONKEY1S held for %d secs\n", pcf 158 drivers/mfd/pcf50633-irq.c pcf->onkey1s_held); pcf 159 drivers/mfd/pcf50633-irq.c if (pcf->onkey1s_held++ == PCF50633_ONKEY1S_TIMEOUT) pcf 160 drivers/mfd/pcf50633-irq.c if (pcf->pdata->force_shutdown) pcf 161 drivers/mfd/pcf50633-irq.c pcf->pdata->force_shutdown(pcf); pcf 165 drivers/mfd/pcf50633-irq.c dev_info(pcf->dev, "ONKEY1S held\n"); pcf 166 drivers/mfd/pcf50633-irq.c pcf->onkey1s_held = 1 ; pcf 169 drivers/mfd/pcf50633-irq.c pcf50633_reg_clear_bits(pcf, PCF50633_REG_INT1M, pcf 173 drivers/mfd/pcf50633-irq.c pcf50633_reg_clear_bits(pcf, PCF50633_REG_INT2M, pcf 177 drivers/mfd/pcf50633-irq.c if ((pcf_int[1] & PCF50633_INT2_ONKEYR) && pcf->onkey1s_held) { pcf 178 drivers/mfd/pcf50633-irq.c pcf->onkey1s_held = 0; pcf 181 drivers/mfd/pcf50633-irq.c if (pcf->mask_regs[0] & PCF50633_INT1_SECOND) pcf 182 drivers/mfd/pcf50633-irq.c pcf50633_reg_set_bit_mask(pcf, pcf 187 drivers/mfd/pcf50633-irq.c if (pcf->mask_regs[1] & PCF50633_INT2_ONKEYR) pcf 188 drivers/mfd/pcf50633-irq.c pcf50633_reg_set_bit_mask(pcf, pcf 195 drivers/mfd/pcf50633-irq.c if (pcf->is_suspended) { pcf 196 drivers/mfd/pcf50633-irq.c pcf->is_suspended = 0; pcf 200 drivers/mfd/pcf50633-irq.c pcf->resume_reason[i] = pcf_int[i] & pcf 201 drivers/mfd/pcf50633-irq.c pcf->pdata->resumers[i]; pcf 210 drivers/mfd/pcf50633-irq.c pcf_int[i] &= ~pcf->mask_regs[i]; pcf 214 drivers/mfd/pcf50633-irq.c pcf50633_irq_call_handler(pcf, (i * 8) + j); pcf 223 drivers/mfd/pcf50633-irq.c int pcf50633_irq_suspend(struct pcf50633 *pcf) pcf 232 drivers/mfd/pcf50633-irq.c disable_irq(pcf->irq); pcf 235 drivers/mfd/pcf50633-irq.c ret = pcf50633_read_block(pcf, PCF50633_REG_INT1M, pcf 236 drivers/mfd/pcf50633-irq.c ARRAY_SIZE(pcf->suspend_irq_masks), pcf 237 drivers/mfd/pcf50633-irq.c pcf->suspend_irq_masks); pcf 239 drivers/mfd/pcf50633-irq.c dev_err(pcf->dev, "error saving irq masks\n"); pcf 245 drivers/mfd/pcf50633-irq.c res[i] = ~pcf->pdata->resumers[i]; pcf 247 drivers/mfd/pcf50633-irq.c ret = pcf50633_write_block(pcf, PCF50633_REG_INT1M, pcf 250 drivers/mfd/pcf50633-irq.c dev_err(pcf->dev, "error writing wakeup irq masks\n"); pcf 254 drivers/mfd/pcf50633-irq.c pcf->is_suspended = 1; pcf 260 drivers/mfd/pcf50633-irq.c int pcf50633_irq_resume(struct pcf50633 *pcf) pcf 265 drivers/mfd/pcf50633-irq.c ret = pcf50633_write_block(pcf, PCF50633_REG_INT1M, pcf 266 drivers/mfd/pcf50633-irq.c ARRAY_SIZE(pcf->suspend_irq_masks), pcf 267 drivers/mfd/pcf50633-irq.c pcf->suspend_irq_masks); pcf 269 drivers/mfd/pcf50633-irq.c dev_err(pcf->dev, "Error restoring saved suspend masks\n"); pcf 271 drivers/mfd/pcf50633-irq.c enable_irq(pcf->irq); pcf 278 drivers/mfd/pcf50633-irq.c int pcf50633_irq_init(struct pcf50633 *pcf, int irq) pcf 282 drivers/mfd/pcf50633-irq.c pcf->irq = irq; pcf 285 drivers/mfd/pcf50633-irq.c pcf->mask_regs[0] = 0x80; pcf 286 drivers/mfd/pcf50633-irq.c pcf50633_reg_write(pcf, PCF50633_REG_INT1M, pcf->mask_regs[0]); pcf 287 drivers/mfd/pcf50633-irq.c pcf50633_reg_write(pcf, PCF50633_REG_INT2M, 0x00); pcf 288 drivers/mfd/pcf50633-irq.c pcf50633_reg_write(pcf, PCF50633_REG_INT3M, 0x00); pcf 289 drivers/mfd/pcf50633-irq.c pcf50633_reg_write(pcf, PCF50633_REG_INT4M, 0x00); pcf 290 drivers/mfd/pcf50633-irq.c pcf50633_reg_write(pcf, PCF50633_REG_INT5M, 0x00); pcf 294 drivers/mfd/pcf50633-irq.c "pcf50633", pcf); pcf 297 drivers/mfd/pcf50633-irq.c dev_err(pcf->dev, "Failed to request IRQ %d\n", ret); pcf 300 drivers/mfd/pcf50633-irq.c dev_err(pcf->dev, "IRQ %u cannot be enabled as wake-up source" pcf 306 drivers/mfd/pcf50633-irq.c void pcf50633_irq_free(struct pcf50633 *pcf) pcf 308 drivers/mfd/pcf50633-irq.c free_irq(pcf->irq, pcf); pcf 26 drivers/power/supply/pcf50633-charger.c struct pcf50633 *pcf; pcf 36 drivers/power/supply/pcf50633-charger.c int pcf50633_mbc_usb_curlim_set(struct pcf50633 *pcf, int ma) pcf 38 drivers/power/supply/pcf50633-charger.c struct pcf50633_mbc *mbc = platform_get_drvdata(pcf->mbc_pdev); pcf 58 drivers/power/supply/pcf50633-charger.c ret = pcf50633_reg_set_bit_mask(pcf, PCF50633_REG_MBCC7, pcf 61 drivers/power/supply/pcf50633-charger.c dev_err(pcf->dev, "error setting usb curlim to %d mA\n", ma); pcf 63 drivers/power/supply/pcf50633-charger.c dev_info(pcf->dev, "usb curlim to %d mA\n", ma); pcf 76 drivers/power/supply/pcf50633-charger.c if (mbc->pcf->pdata->charger_reference_current_ma) { pcf 77 drivers/power/supply/pcf50633-charger.c mbcc5 = (ma << 8) / mbc->pcf->pdata->charger_reference_current_ma; pcf 80 drivers/power/supply/pcf50633-charger.c pcf50633_reg_write(mbc->pcf, PCF50633_REG_MBCC5, mbcc5); pcf 83 drivers/power/supply/pcf50633-charger.c mbcs2 = pcf50633_reg_read(mbc->pcf, PCF50633_REG_MBCS2); pcf 91 drivers/power/supply/pcf50633-charger.c pcf50633_reg_set_bit_mask(pcf, PCF50633_REG_MBCC1, pcf 94 drivers/power/supply/pcf50633-charger.c pcf50633_reg_clear_bits(pcf, PCF50633_REG_MBCC1, pcf 96 drivers/power/supply/pcf50633-charger.c pcf50633_reg_set_bit_mask(pcf, PCF50633_REG_MBCC1, pcf 106 drivers/power/supply/pcf50633-charger.c int pcf50633_mbc_get_status(struct pcf50633 *pcf) pcf 108 drivers/power/supply/pcf50633-charger.c struct pcf50633_mbc *mbc = platform_get_drvdata(pcf->mbc_pdev); pcf 115 drivers/power/supply/pcf50633-charger.c chgmod = pcf50633_reg_read(mbc->pcf, PCF50633_REG_MBCS2) pcf 137 drivers/power/supply/pcf50633-charger.c int pcf50633_mbc_get_usb_online_status(struct pcf50633 *pcf) pcf 139 drivers/power/supply/pcf50633-charger.c struct pcf50633_mbc *mbc = platform_get_drvdata(pcf->mbc_pdev); pcf 153 drivers/power/supply/pcf50633-charger.c u8 mbcs2 = pcf50633_reg_read(mbc->pcf, PCF50633_REG_MBCS2); pcf 164 drivers/power/supply/pcf50633-charger.c u8 usblim = pcf50633_reg_read(mbc->pcf, PCF50633_REG_MBCC7) & pcf 191 drivers/power/supply/pcf50633-charger.c pcf50633_mbc_usb_curlim_set(mbc->pcf, ma); pcf 202 drivers/power/supply/pcf50633-charger.c u8 mbcc5 = pcf50633_reg_read(mbc->pcf, PCF50633_REG_MBCC5); pcf 205 drivers/power/supply/pcf50633-charger.c if (!mbc->pcf->pdata->charger_reference_current_ma) pcf 208 drivers/power/supply/pcf50633-charger.c ma = (mbc->pcf->pdata->charger_reference_current_ma * mbcc5) >> 8; pcf 221 drivers/power/supply/pcf50633-charger.c if (!mbc->pcf->pdata->charger_reference_current_ma) pcf 228 drivers/power/supply/pcf50633-charger.c mbcc5 = (ma << 8) / mbc->pcf->pdata->charger_reference_current_ma; pcf 231 drivers/power/supply/pcf50633-charger.c pcf50633_reg_write(mbc->pcf, PCF50633_REG_MBCC5, mbcc5); pcf 262 drivers/power/supply/pcf50633-charger.c pcf50633_mbc_usb_curlim_set(mbc->pcf, 0); pcf 275 drivers/power/supply/pcf50633-charger.c if (mbc->pcf->pdata->mbc_event_callback) pcf 276 drivers/power/supply/pcf50633-charger.c mbc->pcf->pdata->mbc_event_callback(mbc->pcf, irq); pcf 303 drivers/power/supply/pcf50633-charger.c u8 usblim = pcf50633_reg_read(mbc->pcf, PCF50633_REG_MBCC7) & pcf 324 drivers/power/supply/pcf50633-charger.c u8 usblim = pcf50633_reg_read(mbc->pcf, PCF50633_REG_MBCC7) & pcf 395 drivers/power/supply/pcf50633-charger.c mbc->pcf = dev_to_pcf50633(pdev->dev.parent); pcf 399 drivers/power/supply/pcf50633-charger.c pcf50633_register_irq(mbc->pcf, mbc_irq_handlers[i], pcf 402 drivers/power/supply/pcf50633-charger.c psy_cfg.supplied_to = mbc->pcf->pdata->batteries; pcf 403 drivers/power/supply/pcf50633-charger.c psy_cfg.num_supplicants = mbc->pcf->pdata->num_batteries; pcf 411 drivers/power/supply/pcf50633-charger.c dev_err(mbc->pcf->dev, "failed to register adapter\n"); pcf 421 drivers/power/supply/pcf50633-charger.c dev_err(mbc->pcf->dev, "failed to register usb\n"); pcf 429 drivers/power/supply/pcf50633-charger.c dev_err(mbc->pcf->dev, "failed to register ac\n"); pcf 435 drivers/power/supply/pcf50633-charger.c mbcs1 = pcf50633_reg_read(mbc->pcf, PCF50633_REG_MBCS1); pcf 451 drivers/power/supply/pcf50633-charger.c pcf50633_free_irq(mbc->pcf, mbc_irq_handlers[i]); pcf 77 drivers/regulator/pcf50633-regulator.c struct pcf50633 *pcf; pcf 81 drivers/regulator/pcf50633-regulator.c pcf = dev_to_pcf50633(pdev->dev.parent); pcf 85 drivers/regulator/pcf50633-regulator.c config.driver_data = pcf; pcf 86 drivers/regulator/pcf50633-regulator.c config.regmap = pcf->regmap; pcf 95 drivers/regulator/pcf50633-regulator.c if (pcf->pdata->regulator_registered) pcf 96 drivers/regulator/pcf50633-regulator.c pcf->pdata->regulator_registered(pcf, pdev->id); pcf 58 drivers/rtc/rtc-pcf50633.c struct pcf50633 *pcf; pcf 62 drivers/rtc/rtc-pcf50633.c static void pcf2rtc_time(struct rtc_time *rtc, struct pcf50633_time *pcf) pcf 64 drivers/rtc/rtc-pcf50633.c rtc->tm_sec = bcd2bin(pcf->time[PCF50633_TI_SEC]); pcf 65 drivers/rtc/rtc-pcf50633.c rtc->tm_min = bcd2bin(pcf->time[PCF50633_TI_MIN]); pcf 66 drivers/rtc/rtc-pcf50633.c rtc->tm_hour = bcd2bin(pcf->time[PCF50633_TI_HOUR]); pcf 67 drivers/rtc/rtc-pcf50633.c rtc->tm_wday = bcd2bin(pcf->time[PCF50633_TI_WKDAY]); pcf 68 drivers/rtc/rtc-pcf50633.c rtc->tm_mday = bcd2bin(pcf->time[PCF50633_TI_DAY]); pcf 69 drivers/rtc/rtc-pcf50633.c rtc->tm_mon = bcd2bin(pcf->time[PCF50633_TI_MONTH]) - 1; pcf 70 drivers/rtc/rtc-pcf50633.c rtc->tm_year = bcd2bin(pcf->time[PCF50633_TI_YEAR]) + 100; pcf 73 drivers/rtc/rtc-pcf50633.c static void rtc2pcf_time(struct pcf50633_time *pcf, struct rtc_time *rtc) pcf 75 drivers/rtc/rtc-pcf50633.c pcf->time[PCF50633_TI_SEC] = bin2bcd(rtc->tm_sec); pcf 76 drivers/rtc/rtc-pcf50633.c pcf->time[PCF50633_TI_MIN] = bin2bcd(rtc->tm_min); pcf 77 drivers/rtc/rtc-pcf50633.c pcf->time[PCF50633_TI_HOUR] = bin2bcd(rtc->tm_hour); pcf 78 drivers/rtc/rtc-pcf50633.c pcf->time[PCF50633_TI_WKDAY] = bin2bcd(rtc->tm_wday); pcf 79 drivers/rtc/rtc-pcf50633.c pcf->time[PCF50633_TI_DAY] = bin2bcd(rtc->tm_mday); pcf 80 drivers/rtc/rtc-pcf50633.c pcf->time[PCF50633_TI_MONTH] = bin2bcd(rtc->tm_mon + 1); pcf 81 drivers/rtc/rtc-pcf50633.c pcf->time[PCF50633_TI_YEAR] = bin2bcd(rtc->tm_year % 100); pcf 91 drivers/rtc/rtc-pcf50633.c err = pcf50633_irq_unmask(rtc->pcf, PCF50633_IRQ_ALARM); pcf 93 drivers/rtc/rtc-pcf50633.c err = pcf50633_irq_mask(rtc->pcf, PCF50633_IRQ_ALARM); pcf 111 drivers/rtc/rtc-pcf50633.c ret = pcf50633_read_block(rtc->pcf, PCF50633_REG_RTCSC, pcf 155 drivers/rtc/rtc-pcf50633.c alarm_masked = pcf50633_irq_mask_get(rtc->pcf, PCF50633_IRQ_ALARM); pcf 158 drivers/rtc/rtc-pcf50633.c pcf50633_irq_mask(rtc->pcf, PCF50633_IRQ_ALARM); pcf 161 drivers/rtc/rtc-pcf50633.c ret = pcf50633_write_block(rtc->pcf, PCF50633_REG_RTCSC, pcf 166 drivers/rtc/rtc-pcf50633.c pcf50633_irq_unmask(rtc->pcf, PCF50633_IRQ_ALARM); pcf 182 drivers/rtc/rtc-pcf50633.c ret = pcf50633_read_block(rtc->pcf, PCF50633_REG_RTCSCA, pcf 207 drivers/rtc/rtc-pcf50633.c alarm_masked = pcf50633_irq_mask_get(rtc->pcf, PCF50633_IRQ_ALARM); pcf 211 drivers/rtc/rtc-pcf50633.c pcf50633_irq_mask(rtc->pcf, PCF50633_IRQ_ALARM); pcf 214 drivers/rtc/rtc-pcf50633.c ret = pcf50633_write_block(rtc->pcf, PCF50633_REG_RTCSCA, pcf 220 drivers/rtc/rtc-pcf50633.c pcf50633_irq_unmask(rtc->pcf, PCF50633_IRQ_ALARM); pcf 250 drivers/rtc/rtc-pcf50633.c rtc->pcf = dev_to_pcf50633(pdev->dev.parent); pcf 258 drivers/rtc/rtc-pcf50633.c pcf50633_register_irq(rtc->pcf, PCF50633_IRQ_ALARM, pcf 268 drivers/rtc/rtc-pcf50633.c pcf50633_free_irq(rtc->pcf, PCF50633_IRQ_ALARM); pcf 348 drivers/rtc/rtc-pcf8523.c struct pcf8523 *pcf; pcf 354 drivers/rtc/rtc-pcf8523.c pcf = devm_kzalloc(&client->dev, sizeof(*pcf), GFP_KERNEL); pcf 355 drivers/rtc/rtc-pcf8523.c if (!pcf) pcf 367 drivers/rtc/rtc-pcf8523.c pcf->rtc = devm_rtc_device_register(&client->dev, DRIVER_NAME, pcf 369 drivers/rtc/rtc-pcf8523.c if (IS_ERR(pcf->rtc)) pcf 370 drivers/rtc/rtc-pcf8523.c return PTR_ERR(pcf->rtc); pcf 372 drivers/rtc/rtc-pcf8523.c i2c_set_clientdata(client, pcf); pcf 19 drivers/video/backlight/pcf50633-backlight.c struct pcf50633 *pcf; pcf 36 drivers/video/backlight/pcf50633-backlight.c int pcf50633_bl_set_brightness_limit(struct pcf50633 *pcf, unsigned int limit) pcf 38 drivers/video/backlight/pcf50633-backlight.c struct pcf50633_bl *pcf_bl = platform_get_drvdata(pcf->bl_pdev); pcf 68 drivers/video/backlight/pcf50633-backlight.c pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDOUT, pcf 71 drivers/video/backlight/pcf50633-backlight.c pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDENA, 1); pcf 73 drivers/video/backlight/pcf50633-backlight.c pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDENA, 0); pcf 119 drivers/video/backlight/pcf50633-backlight.c pcf_bl->pcf = dev_to_pcf50633(pdev->dev.parent); pcf 130 drivers/video/backlight/pcf50633-backlight.c pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDDIM, pdata->ramp_time); pcf 1615 fs/ceph/caps.c struct ceph_cap_flush **pcf) pcf 1636 fs/ceph/caps.c swap(ci->i_prealloc_cap_flush, *pcf); pcf 928 fs/ceph/file.c struct ceph_cap_flush **pcf) pcf 1013 fs/ceph/file.c swap(aio_req->prealloc_cf, *pcf); pcf 665 fs/ceph/super.h struct ceph_cap_flush **pcf); pcf 63 include/linux/mfd/pcf50633/adc.h pcf50633_adc_async_read(struct pcf50633 *pcf, int mux, int avg, pcf 67 include/linux/mfd/pcf50633/adc.h pcf50633_adc_sync_read(struct pcf50633 *pcf, int mux, int avg); pcf 39 include/linux/mfd/pcf50633/backlight.h int pcf50633_bl_set_brightness_limit(struct pcf50633 *pcf, unsigned int limit); pcf 53 include/linux/mfd/pcf50633/core.h int pcf50633_register_irq(struct pcf50633 *pcf, int irq, pcf 55 include/linux/mfd/pcf50633/core.h int pcf50633_free_irq(struct pcf50633 *pcf, int irq); pcf 57 include/linux/mfd/pcf50633/core.h int pcf50633_irq_mask(struct pcf50633 *pcf, int irq); pcf 58 include/linux/mfd/pcf50633/core.h int pcf50633_irq_unmask(struct pcf50633 *pcf, int irq); pcf 59 include/linux/mfd/pcf50633/core.h int pcf50633_irq_mask_get(struct pcf50633 *pcf, int irq); pcf 63 include/linux/mfd/pcf50633/core.h int pcf50633_write_block(struct pcf50633 *pcf, u8 reg, pcf 66 include/linux/mfd/pcf50633/core.h int pcf50633_reg_write(struct pcf50633 *pcf, u8 reg, u8 val); pcf 68 include/linux/mfd/pcf50633/core.h int pcf50633_reg_set_bit_mask(struct pcf50633 *pcf, u8 reg, u8 mask, u8 val); pcf 69 include/linux/mfd/pcf50633/core.h int pcf50633_reg_clear_bits(struct pcf50633 *pcf, u8 reg, u8 bits); pcf 227 include/linux/mfd/pcf50633/core.h int pcf50633_irq_init(struct pcf50633 *pcf, int irq); pcf 228 include/linux/mfd/pcf50633/core.h void pcf50633_irq_free(struct pcf50633 *pcf); pcf 230 include/linux/mfd/pcf50633/core.h int pcf50633_irq_suspend(struct pcf50633 *pcf); pcf 231 include/linux/mfd/pcf50633/core.h int pcf50633_irq_resume(struct pcf50633 *pcf); pcf 38 include/linux/mfd/pcf50633/gpio.h int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val); pcf 39 include/linux/mfd/pcf50633/gpio.h u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio); pcf 42 include/linux/mfd/pcf50633/gpio.h int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio); pcf 124 include/linux/mfd/pcf50633/mbc.h int pcf50633_mbc_usb_curlim_set(struct pcf50633 *pcf, int ma);