Home
last modified time | relevance | path

Searched refs:pcf (Results 1 – 20 of 20) sorted by relevance

/linux-6.3-rc2/drivers/mfd/
A Dpcf50633-irq.c29 mutex_lock(&pcf->lock); in pcf50633_register_irq()
32 mutex_unlock(&pcf->lock); in pcf50633_register_irq()
43 mutex_lock(&pcf->lock); in pcf50633_free_irq()
62 mutex_lock(&pcf->lock); in __pcf50633_irq_mask_set()
104 pcf->irq_handler[irq].handler(irq, pcf->irq_handler[irq].data); in pcf50633_irq_call_handler()
162 pcf->pdata->force_shutdown(pcf); in pcf50633_irq()
274 enable_irq(pcf->irq); in pcf50633_resume()
285 pcf->irq = irq; in pcf50633_irq_init()
289 pcf50633_reg_write(pcf, PCF50633_REG_INT1M, pcf->mask_regs[0]); in pcf50633_irq_init()
297 "pcf50633", pcf); in pcf50633_irq_init()
[all …]
A Dpcf50633-core.c168 struct pcf50633 *pcf; in pcf50633_probe() local
179 pcf = devm_kzalloc(&client->dev, sizeof(*pcf), GFP_KERNEL); in pcf50633_probe()
180 if (!pcf) in pcf50633_probe()
185 pcf->pdata = pdata; in pcf50633_probe()
187 mutex_init(&pcf->lock); in pcf50633_probe()
210 pcf50633_client_dev_register(pcf, "pcf50633-input", &pcf->input_pdev); in pcf50633_probe()
211 pcf50633_client_dev_register(pcf, "pcf50633-rtc", &pcf->rtc_pdev); in pcf50633_probe()
212 pcf50633_client_dev_register(pcf, "pcf50633-mbc", &pcf->mbc_pdev); in pcf50633_probe()
213 pcf50633_client_dev_register(pcf, "pcf50633-adc", &pcf->adc_pdev); in pcf50633_probe()
214 pcf50633_client_dev_register(pcf, "pcf50633-backlight", &pcf->bl_pdev); in pcf50633_probe()
[all …]
A Dpcf50633-adc.c40 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()
151 ret = adc_enqueue_request(pcf, req); in pcf50633_adc_async_read()
159 static int adc_result(struct pcf50633 *pcf) in adc_result() argument
176 struct pcf50633 *pcf = adc->pcf; in pcf50633_adc_irq() local
193 res = adc_result(pcf); in pcf50633_adc_irq()
194 trigger_next_adc_job_if_any(pcf); in pcf50633_adc_irq()
[all …]
A Dpcf50633-gpio.c33 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-6.3-rc2/drivers/rtc/
A Drtc-pcf50633.c58 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-6.3-rc2/drivers/power/supply/
A Dpcf50633-charger.c26 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-6.3-rc2/include/linux/mfd/pcf50633/
A Dcore.h54 int pcf50633_register_irq(struct pcf50633 *pcf, int irq,
56 int pcf50633_free_irq(struct pcf50633 *pcf, int irq);
58 int pcf50633_irq_mask(struct pcf50633 *pcf, int irq);
59 int pcf50633_irq_unmask(struct pcf50633 *pcf, int irq);
60 int pcf50633_irq_mask_get(struct pcf50633 *pcf, int irq);
64 int pcf50633_write_block(struct pcf50633 *pcf, u8 reg,
67 int pcf50633_reg_write(struct pcf50633 *pcf, u8 reg, u8 val);
69 int pcf50633_reg_set_bit_mask(struct pcf50633 *pcf, u8 reg, u8 mask, u8 val);
70 int pcf50633_reg_clear_bits(struct pcf50633 *pcf, u8 reg, u8 bits);
228 int pcf50633_irq_init(struct pcf50633 *pcf, int irq);
[all …]
A Dgpio.h38 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 Dadc.h63 pcf50633_adc_async_read(struct pcf50633 *pcf, int mux, int avg,
67 pcf50633_adc_sync_read(struct pcf50633 *pcf, int mux, int avg);
A Dbacklight.h39 int pcf50633_bl_set_brightness_limit(struct pcf50633 *pcf, unsigned int limit);
A Dmbc.h124 int pcf50633_mbc_usb_curlim_set(struct pcf50633 *pcf, int ma);
/linux-6.3-rc2/drivers/video/backlight/
A Dpcf50633-backlight.c19 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-6.3-rc2/drivers/input/misc/
A Dpcf50633-input.c26 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-6.3-rc2/drivers/regulator/
A Dpcf50633-regulator.c77 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-6.3-rc2/drivers/i2c/algos/
A DMakefile7 obj-$(CONFIG_I2C_ALGOPCF) += i2c-algo-pcf.o
/linux-6.3-rc2/Documentation/i2c/busses/
A Di2c-parport.rst150 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-6.3-rc2/Documentation/devicetree/bindings/net/
A Dcpsw.txt36 For example in dra72x-evm, pcf gpio has to be
/linux-6.3-rc2/fs/ceph/
A Dsuper.h757 struct ceph_cap_flush **pcf);
A Dfile.c1266 struct ceph_cap_flush **pcf) in ceph_direct_read_write() argument
1356 swap(aio_req->prealloc_cf, *pcf); in ceph_direct_read_write()
A Dcaps.c1684 struct ceph_cap_flush **pcf) in __ceph_mark_dirty_caps() argument
1709 swap(ci->i_prealloc_cap_flush, *pcf); in __ceph_mark_dirty_caps()

Completed in 148 milliseconds