| /linux/drivers/mfd/ |
| A D | pcf50633-irq.c | 28 mutex_lock(&pcf->lock); in pcf50633_register_irq() 31 mutex_unlock(&pcf->lock); in pcf50633_register_irq() 42 mutex_lock(&pcf->lock); in pcf50633_free_irq() 61 mutex_lock(&pcf->lock); in __pcf50633_irq_mask_set() 103 pcf->irq_handler[irq].handler(irq, pcf->irq_handler[irq].data); in pcf50633_irq_call_handler() 161 pcf->pdata->force_shutdown(pcf); in pcf50633_irq() 271 enable_irq(pcf->irq); in pcf50633_irq_resume() 282 pcf->irq = irq; in pcf50633_irq_init() 286 pcf50633_reg_write(pcf, PCF50633_REG_INT1M, pcf->mask_regs[0]); in pcf50633_irq_init() 294 "pcf50633", pcf); in pcf50633_irq_init() [all …]
|
| A D | pcf50633-core.c | 189 struct pcf50633 *pcf; in pcf50633_probe() local 200 pcf = devm_kzalloc(&client->dev, sizeof(*pcf), GFP_KERNEL); in pcf50633_probe() 201 if (!pcf) in pcf50633_probe() 206 pcf->pdata = pdata; in pcf50633_probe() 208 mutex_init(&pcf->lock); in pcf50633_probe() 231 pcf50633_client_dev_register(pcf, "pcf50633-input", &pcf->input_pdev); in pcf50633_probe() 232 pcf50633_client_dev_register(pcf, "pcf50633-rtc", &pcf->rtc_pdev); in pcf50633_probe() 233 pcf50633_client_dev_register(pcf, "pcf50633-mbc", &pcf->mbc_pdev); in pcf50633_probe() 234 pcf50633_client_dev_register(pcf, "pcf50633-adc", &pcf->adc_pdev); in pcf50633_probe() 235 pcf50633_client_dev_register(pcf, "pcf50633-backlight", &pcf->bl_pdev); in pcf50633_probe() [all …]
|
| A D | pcf50633-adc.c | 40 struct pcf50633 *pcf; member 51 return platform_get_drvdata(pcf->adc_pdev); in __to_adc() 69 struct pcf50633_adc *adc = __to_adc(pcf); in trigger_next_adc_job_if_any() 83 struct pcf50633_adc *adc = __to_adc(pcf); in adc_enqueue_request() 99 trigger_next_adc_job_if_any(pcf); in adc_enqueue_request() 150 return adc_enqueue_request(pcf, req); in pcf50633_adc_async_read() 154 static int adc_result(struct pcf50633 *pcf) in adc_result() argument 171 struct pcf50633 *pcf = adc->pcf; in pcf50633_adc_irq() local 188 res = adc_result(pcf); in pcf50633_adc_irq() 189 trigger_next_adc_job_if_any(pcf); in pcf50633_adc_irq() [all …]
|
| A D | pcf50633-gpio.c | 33 int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val) in pcf50633_gpio_set() argument 39 return pcf50633_reg_set_bit_mask(pcf, reg, 0x07, val); in pcf50633_gpio_set() 43 u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio) in pcf50633_gpio_get() argument 48 val = pcf50633_reg_read(pcf, reg) & 0x07; in pcf50633_gpio_get() 54 int pcf50633_gpio_invert_set(struct pcf50633 *pcf, int gpio, int invert) in pcf50633_gpio_invert_set() argument 61 return pcf50633_reg_set_bit_mask(pcf, reg, 1 << 3, val); in pcf50633_gpio_invert_set() 65 int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio) in pcf50633_gpio_invert_get() argument 70 val = pcf50633_reg_read(pcf, reg); in pcf50633_gpio_invert_get() 76 int pcf50633_gpio_power_supply_set(struct pcf50633 *pcf, in pcf50633_gpio_power_supply_set() argument 87 return pcf50633_reg_set_bit_mask(pcf, reg, mask, val); in pcf50633_gpio_power_supply_set()
|
| /linux/drivers/power/supply/ |
| A D | pcf50633-charger.c | 26 struct pcf50633 *pcf; member 63 dev_info(pcf->dev, "usb curlim to %d mA\n", ma); in pcf50633_mbc_usb_curlim_set() 91 pcf50633_reg_set_bit_mask(pcf, PCF50633_REG_MBCC1, in pcf50633_mbc_usb_curlim_set() 94 pcf50633_reg_clear_bits(pcf, PCF50633_REG_MBCC1, in pcf50633_mbc_usb_curlim_set() 96 pcf50633_reg_set_bit_mask(pcf, PCF50633_REG_MBCC1, in pcf50633_mbc_usb_curlim_set() 106 int pcf50633_mbc_get_status(struct pcf50633 *pcf) in pcf50633_mbc_get_status() argument 191 pcf50633_mbc_usb_curlim_set(mbc->pcf, ma); in set_usblim() 262 pcf50633_mbc_usb_curlim_set(mbc->pcf, 0); in pcf50633_mbc_irq_handler() 275 if (mbc->pcf->pdata->mbc_event_callback) in pcf50633_mbc_irq_handler() 276 mbc->pcf->pdata->mbc_event_callback(mbc->pcf, irq); in pcf50633_mbc_irq_handler() [all …]
|
| /linux/drivers/rtc/ |
| A D | rtc-pcf50633.c | 58 struct pcf50633 *pcf; member 64 rtc->tm_sec = bcd2bin(pcf->time[PCF50633_TI_SEC]); in pcf2rtc_time() 65 rtc->tm_min = bcd2bin(pcf->time[PCF50633_TI_MIN]); in pcf2rtc_time() 68 rtc->tm_mday = bcd2bin(pcf->time[PCF50633_TI_DAY]); in pcf2rtc_time() 75 pcf->time[PCF50633_TI_SEC] = bin2bcd(rtc->tm_sec); in rtc2pcf_time() 76 pcf->time[PCF50633_TI_MIN] = bin2bcd(rtc->tm_min); in rtc2pcf_time() 79 pcf->time[PCF50633_TI_DAY] = bin2bcd(rtc->tm_mday); in rtc2pcf_time() 158 pcf50633_irq_mask(rtc->pcf, PCF50633_IRQ_ALARM); in pcf50633_rtc_set_time() 211 pcf50633_irq_mask(rtc->pcf, PCF50633_IRQ_ALARM); in pcf50633_rtc_set_alarm() 250 rtc->pcf = dev_to_pcf50633(pdev->dev.parent); in pcf50633_rtc_probe() [all …]
|
| /linux/include/linux/mfd/pcf50633/ |
| A D | core.h | 53 int pcf50633_register_irq(struct pcf50633 *pcf, int irq, 55 int pcf50633_free_irq(struct pcf50633 *pcf, int irq); 57 int pcf50633_irq_mask(struct pcf50633 *pcf, int irq); 58 int pcf50633_irq_unmask(struct pcf50633 *pcf, int irq); 59 int pcf50633_irq_mask_get(struct pcf50633 *pcf, int irq); 63 int pcf50633_write_block(struct pcf50633 *pcf, u8 reg, 66 int pcf50633_reg_write(struct pcf50633 *pcf, u8 reg, u8 val); 227 int pcf50633_irq_init(struct pcf50633 *pcf, int irq); 228 void pcf50633_irq_free(struct pcf50633 *pcf); 230 int pcf50633_irq_suspend(struct pcf50633 *pcf); [all …]
|
| A D | gpio.h | 38 int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val); 39 u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio); 42 int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio);
|
| A D | adc.h | 63 pcf50633_adc_async_read(struct pcf50633 *pcf, int mux, int avg, 67 pcf50633_adc_sync_read(struct pcf50633 *pcf, int mux, int avg);
|
| A D | backlight.h | 39 int pcf50633_bl_set_brightness_limit(struct pcf50633 *pcf, unsigned int limit);
|
| A D | mbc.h | 124 int pcf50633_mbc_usb_curlim_set(struct pcf50633 *pcf, int ma);
|
| /linux/drivers/video/backlight/ |
| A D | pcf50633-backlight.c | 19 struct pcf50633 *pcf; member 36 int pcf50633_bl_set_brightness_limit(struct pcf50633 *pcf, unsigned int limit) in pcf50633_bl_set_brightness_limit() argument 38 struct pcf50633_bl *pcf_bl = platform_get_drvdata(pcf->bl_pdev); in pcf50633_bl_set_brightness_limit() 68 pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDOUT, in pcf50633_bl_update_status() 71 pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDENA, 1); in pcf50633_bl_update_status() 73 pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDENA, 0); in pcf50633_bl_update_status() 119 pcf_bl->pcf = dev_to_pcf50633(pdev->dev.parent); in pcf50633_bl_probe() 130 pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDDIM, pdata->ramp_time); in pcf50633_bl_probe()
|
| /linux/drivers/input/misc/ |
| A D | pcf50633-input.c | 26 struct pcf50633 *pcf; member 39 onkey_released = pcf50633_reg_read(input->pcf, PCF50633_REG_OOCSTAT) in pcf50633_input_irq() 68 input->pcf = dev_to_pcf50633(pdev->dev.parent); in pcf50633_input_probe() 82 pcf50633_register_irq(input->pcf, PCF50633_IRQ_ONKEYR, in pcf50633_input_probe() 84 pcf50633_register_irq(input->pcf, PCF50633_IRQ_ONKEYF, in pcf50633_input_probe() 94 pcf50633_free_irq(input->pcf, PCF50633_IRQ_ONKEYR); in pcf50633_input_remove() 95 pcf50633_free_irq(input->pcf, PCF50633_IRQ_ONKEYF); in pcf50633_input_remove()
|
| /linux/drivers/regulator/ |
| A D | pcf50633-regulator.c | 77 struct pcf50633 *pcf; in pcf50633_regulator_probe() local 81 pcf = dev_to_pcf50633(pdev->dev.parent); in pcf50633_regulator_probe() 85 config.driver_data = pcf; in pcf50633_regulator_probe() 86 config.regmap = pcf->regmap; in pcf50633_regulator_probe() 95 if (pcf->pdata->regulator_registered) in pcf50633_regulator_probe() 96 pcf->pdata->regulator_registered(pcf, pdev->id); in pcf50633_regulator_probe()
|
| /linux/arch/arm/mach-s3c/ |
| A D | mach-gta02.c | 142 gta02_configure_pmu_for_charger(struct pcf50633 *pcf, void *unused, int res) in gta02_configure_pmu_for_charger() argument 153 pcf50633_gpio_set(pcf, PCF50633_GPO, 0); in gta02_configure_pmu_for_charger() 159 pcf50633_mbc_usb_curlim_set(pcf, ma); in gta02_configure_pmu_for_charger() 190 static void gta02_pmu_event_callback(struct pcf50633 *pcf, int irq) in gta02_pmu_event_callback() argument
|
| /linux/drivers/i2c/algos/ |
| A D | Makefile | 7 obj-$(CONFIG_I2C_ALGOPCF) += i2c-algo-pcf.o
|
| /linux/Documentation/i2c/busses/ |
| A D | i2c-parport.rst | 150 This driver is also NOT the same as the i2c-pcf-epp driver found in the 151 lm_sensors package. The i2c-pcf-epp driver doesn't use the parallel port as
|
| /linux/Documentation/devicetree/bindings/net/ |
| A D | cpsw.txt | 36 For example in dra72x-evm, pcf gpio has to be
|
| /linux/fs/ceph/ |
| A D | super.h | 733 struct ceph_cap_flush **pcf);
|
| A D | file.c | 1193 struct ceph_cap_flush **pcf) in ceph_direct_read_write() argument 1279 swap(aio_req->prealloc_cf, *pcf); in ceph_direct_read_write()
|
| A D | caps.c | 1681 struct ceph_cap_flush **pcf) in __ceph_mark_dirty_caps() argument 1706 swap(ci->i_prealloc_cap_flush, *pcf); in __ceph_mark_dirty_caps()
|