/drivers/mfd/ |
H A D | pcf50633-irq.c | 24 int pcf50633_register_irq(struct pcf50633 *pcf, int irq, argument 30 if (WARN_ON(pcf->irq_handler[irq].handler)) 33 mutex_lock(&pcf->lock); 34 pcf->irq_handler[irq].handler = handler; 35 pcf->irq_handler[irq].data = data; 36 mutex_unlock(&pcf->lock); 42 int pcf50633_free_irq(struct pcf50633 *pcf, int irq) argument 47 mutex_lock(&pcf->lock); 48 pcf->irq_handler[irq].handler = NULL; 49 mutex_unlock(&pcf 55 __pcf50633_irq_mask_set(struct pcf50633 *pcf, int irq, u8 mask) argument 78 pcf50633_irq_mask(struct pcf50633 *pcf, int irq) argument 86 pcf50633_irq_unmask(struct pcf50633 *pcf, int irq) argument 94 pcf50633_irq_mask_get(struct pcf50633 *pcf, int irq) argument 105 pcf50633_irq_call_handler(struct pcf50633 *pcf, int irq) argument 116 struct pcf50633 *pcf = data; local 228 pcf50633_irq_suspend(struct pcf50633 *pcf) argument 265 pcf50633_irq_resume(struct pcf50633 *pcf) argument 283 pcf50633_irq_init(struct pcf50633 *pcf, int irq) argument 311 pcf50633_irq_free(struct pcf50633 *pcf) argument [all...] |
H A D | pcf50633-core.c | 32 int pcf50633_read_block(struct pcf50633 *pcf, u8 reg, argument 37 ret = regmap_raw_read(pcf->regmap, reg, data, nr_regs); 46 int pcf50633_write_block(struct pcf50633 *pcf , u8 reg, 49 return regmap_raw_write(pcf->regmap, reg, data, nr_regs); 53 u8 pcf50633_reg_read(struct pcf50633 *pcf, u8 reg) argument 58 ret = regmap_read(pcf->regmap, reg, &val); 66 int pcf50633_reg_write(struct pcf50633 *pcf, u8 reg, u8 val) argument 68 return regmap_write(pcf->regmap, reg, val); 72 int pcf50633_reg_set_bit_mask(struct pcf50633 *pcf, u8 reg, u8 mask, u8 val) argument 74 return regmap_update_bits(pcf 78 pcf50633_reg_clear_bits(struct pcf50633 *pcf, u8 reg, u8 val) argument 88 struct pcf50633 *pcf = dev_get_drvdata(dev); local 122 struct pcf50633 *pcf = dev_get_drvdata(dev); local 148 pcf50633_client_dev_register(struct pcf50633 *pcf, const char *name, struct platform_device **pdev) argument 173 struct pcf50633 *pcf = i2c_get_clientdata(client); local 181 struct pcf50633 *pcf = i2c_get_clientdata(client); local 197 struct pcf50633 *pcf; local 288 struct pcf50633 *pcf = i2c_get_clientdata(client); local [all...] |
H A D | pcf50633-adc.c | 45 struct pcf50633 *pcf; member in struct:pcf50633_adc 54 static inline struct pcf50633_adc *__to_adc(struct pcf50633 *pcf) argument 56 return platform_get_drvdata(pcf->adc_pdev); 59 static void adc_setup(struct pcf50633 *pcf, int channel, int avg) argument 64 pcf50633_reg_write(pcf, PCF50633_REG_ADCC2, 0x00); 65 pcf50633_reg_write(pcf, PCF50633_REG_ADCC3, 0x01); 68 pcf50633_reg_write(pcf, PCF50633_REG_ADCC1, channel | avg | 72 static void trigger_next_adc_job_if_any(struct pcf50633 *pcf) argument 74 struct pcf50633_adc *adc = __to_adc(pcf); 82 adc_setup(pcf, ad 86 adc_enqueue_request(struct pcf50633 *pcf, struct pcf50633_adc_request *req) argument 112 pcf50633_adc_sync_read_callback(struct pcf50633 *pcf, void *param, int result) argument 121 pcf50633_adc_sync_read(struct pcf50633 *pcf, int mux, int avg) argument 139 pcf50633_adc_async_read(struct pcf50633 *pcf, int mux, int avg, void (*callback)(struct pcf50633 *, void *, int), void *callback_param) argument 159 adc_result(struct pcf50633 *pcf) argument 176 struct pcf50633 *pcf = adc->pcf; local [all...] |
H A D | pcf50633-gpio.c | 38 int pcf50633_gpio_set(struct pcf50633 *pcf, int gpio, u8 val) argument 44 return pcf50633_reg_set_bit_mask(pcf, reg, 0x07, val); 48 u8 pcf50633_gpio_get(struct pcf50633 *pcf, int gpio) argument 53 val = pcf50633_reg_read(pcf, reg) & 0x07; 59 int pcf50633_gpio_invert_set(struct pcf50633 *pcf, int gpio, int invert) argument 66 return pcf50633_reg_set_bit_mask(pcf, reg, 1 << 3, val); 70 int pcf50633_gpio_invert_get(struct pcf50633 *pcf, int gpio) argument 75 val = pcf50633_reg_read(pcf, reg); 81 int pcf50633_gpio_power_supply_set(struct pcf50633 *pcf, argument 92 return pcf50633_reg_set_bit_mask(pcf, re [all...] |
/drivers/power/ |
H A D | pcf50633-charger.c | 31 struct pcf50633 *pcf; member in struct:pcf50633_mbc 41 int pcf50633_mbc_usb_curlim_set(struct pcf50633 *pcf, int ma) argument 43 struct pcf50633_mbc *mbc = platform_get_drvdata(pcf->mbc_pdev); 65 ret = pcf50633_reg_set_bit_mask(pcf, PCF50633_REG_MBCC7, 68 dev_err(pcf->dev, "error setting usb curlim to %d mA\n", ma); 70 dev_info(pcf->dev, "usb curlim to %d mA\n", ma); 83 if (mbc->pcf->pdata->charger_reference_current_ma) { 84 mbcc5 = (ma << 8) / mbc->pcf->pdata->charger_reference_current_ma; 87 pcf50633_reg_write(mbc->pcf, PCF50633_REG_MBCC5, mbcc5); 90 mbcs2 = pcf50633_reg_read(mbc->pcf, PCF50633_REG_MBCS 113 pcf50633_mbc_get_status(struct pcf50633 *pcf) argument 144 pcf50633_mbc_get_usb_online_status(struct pcf50633 *pcf) argument [all...] |
/drivers/rtc/ |
H A D | rtc-pcf50633.c | 63 struct pcf50633 *pcf; member in struct:pcf50633_rtc 67 static void pcf2rtc_time(struct rtc_time *rtc, struct pcf50633_time *pcf) argument 69 rtc->tm_sec = bcd2bin(pcf->time[PCF50633_TI_SEC]); 70 rtc->tm_min = bcd2bin(pcf->time[PCF50633_TI_MIN]); 71 rtc->tm_hour = bcd2bin(pcf->time[PCF50633_TI_HOUR]); 72 rtc->tm_wday = bcd2bin(pcf->time[PCF50633_TI_WKDAY]); 73 rtc->tm_mday = bcd2bin(pcf->time[PCF50633_TI_DAY]); 74 rtc->tm_mon = bcd2bin(pcf->time[PCF50633_TI_MONTH]) - 1; 75 rtc->tm_year = bcd2bin(pcf->time[PCF50633_TI_YEAR]) + 100; 78 static void rtc2pcf_time(struct pcf50633_time *pcf, struc argument [all...] |
/drivers/regulator/ |
H A D | pcf50633-regulator.c | 114 struct pcf50633 *pcf; local 118 pcf = rdev_get_drvdata(rdev); 154 return pcf50633_reg_write(pcf, regnr, volt_bits); 191 struct pcf50633 *pcf; local 195 pcf = rdev_get_drvdata(rdev); 203 volt_bits = pcf50633_reg_read(pcf, regnr); 211 struct pcf50633 *pcf; local 214 pcf = rdev_get_drvdata(rdev); 231 struct pcf50633 *pcf = rdev_get_drvdata(rdev); local 242 return pcf50633_reg_set_bit_mask(pcf, regn 248 struct pcf50633 *pcf = rdev_get_drvdata(rdev); local 265 struct pcf50633 *pcf = rdev_get_drvdata(rdev); local 316 struct pcf50633 *pcf; local [all...] |
/drivers/i2c/algos/ |
H A D | Makefile | 6 obj-$(CONFIG_I2C_ALGOPCF) += i2c-algo-pcf.o
|
H A D | i2c-algo-pcf.c | 2 * i2c-algo-pcf.c i2c driver algorithms for PCF8584 adapters 36 #include <linux/i2c-algo-pcf.h> 37 #include "i2c-algo-pcf.h" 83 "i2c-algo-pcf.o: lost arbitration (CSR 0x%02x)\n", 106 "i2c-algo-pcf.o: reset LAB condition (CSR 0x%02x)\n", 168 DEB3(printk(KERN_DEBUG "i2c-algo-pcf.o: PCF state 0x%02x\n", 178 DEB2(printk(KERN_ERR "i2c-algo-pcf.o: PCF detection failed -- can't select S0 (0x%02x).\n", temp)); 186 DEB2(printk(KERN_ERR "i2c-algo-pcf.o: PCF detection failed -- can't set S0 (0x%02x).\n", temp)); 194 DEB2(printk(KERN_ERR "i2c-algo-pcf.o: PCF detection failed -- can't select S2 (0x%02x).\n", temp)); 202 DEB2(printk(KERN_ERR "i2c-algo-pcf [all...] |
/drivers/input/misc/ |
H A D | pcf50633-input.c | 32 struct pcf50633 *pcf; member in struct:pcf50633_input 45 onkey_released = pcf50633_reg_read(input->pcf, PCF50633_REG_OOCSTAT) 74 input->pcf = dev_to_pcf50633(pdev->dev.parent); 88 pcf50633_register_irq(input->pcf, PCF50633_IRQ_ONKEYR, 90 pcf50633_register_irq(input->pcf, PCF50633_IRQ_ONKEYF, 100 pcf50633_free_irq(input->pcf, PCF50633_IRQ_ONKEYR); 101 pcf50633_free_irq(input->pcf, PCF50633_IRQ_ONKEYF);
|
/drivers/video/backlight/ |
H A D | pcf50633-backlight.c | 28 struct pcf50633 *pcf; member in struct:pcf50633_bl 45 int pcf50633_bl_set_brightness_limit(struct pcf50633 *pcf, unsigned int limit) argument 47 struct pcf50633_bl *pcf_bl = platform_get_drvdata(pcf->bl_pdev); 77 pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDOUT, 80 pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDENA, 1); 82 pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDENA, 0); 126 pcf_bl->pcf = dev_to_pcf50633(pdev->dev.parent); 136 pcf50633_reg_write(pcf_bl->pcf, PCF50633_REG_LEDDIM, pdata->ramp_time);
|
/drivers/i2c/busses/ |
H A D | i2c-elektor.c | 39 #include <linux/i2c-algo-pcf.h> 44 #include "../algos/i2c-algo-pcf.h" 58 in some functions, called from the algo-pcf module. Sometimes it's
|