Home
last modified time | relevance | path

Searched refs:pcap (Results 1 – 12 of 12) sorted by relevance

/drivers/mfd/
Dezx-pcap.c59 static int ezx_pcap_putget(struct pcap_chip *pcap, u32 *data) in ezx_pcap_putget() argument
70 pcap->buf = *data; in ezx_pcap_putget()
71 t.tx_buf = (u8 *) &pcap->buf; in ezx_pcap_putget()
72 t.rx_buf = (u8 *) &pcap->buf; in ezx_pcap_putget()
73 status = spi_sync(pcap->spi, &m); in ezx_pcap_putget()
76 *data = pcap->buf; in ezx_pcap_putget()
81 int ezx_pcap_write(struct pcap_chip *pcap, u8 reg_num, u32 value) in ezx_pcap_write() argument
85 mutex_lock(&pcap->io_mutex); in ezx_pcap_write()
89 ret = ezx_pcap_putget(pcap, &value); in ezx_pcap_write()
90 mutex_unlock(&pcap->io_mutex); in ezx_pcap_write()
[all …]
DMakefile60 obj-$(CONFIG_EZX_PCAP) += ezx-pcap.o
/drivers/rtc/
Drtc-pcap.c24 struct pcap_chip *pcap; member
33 if (irq == pcap_to_irq(pcap_rtc->pcap, PCAP_IRQ_1HZ)) in pcap_rtc_irq()
35 else if (irq == pcap_to_irq(pcap_rtc->pcap, PCAP_IRQ_TODA)) in pcap_rtc_irq()
53 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_TODA, &tod); in pcap_rtc_read_alarm()
56 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, &days); in pcap_rtc_read_alarm()
75 ezx_pcap_write(pcap_rtc->pcap, PCAP_REG_RTC_TODA, tod); in pcap_rtc_set_alarm()
78 ezx_pcap_write(pcap_rtc->pcap, PCAP_REG_RTC_DAYA, days); in pcap_rtc_set_alarm()
90 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_TOD, &tod); in pcap_rtc_read_time()
93 ezx_pcap_read(pcap_rtc->pcap, PCAP_REG_RTC_DAY, &days); in pcap_rtc_read_time()
108 ezx_pcap_write(pcap_rtc->pcap, PCAP_REG_RTC_TOD, tod); in pcap_rtc_set_mmss()
[all …]
DMakefile76 obj-$(CONFIG_RTC_DRV_PCAP) += rtc-pcap.o
/drivers/input/misc/
Dpcap_keys.c23 struct pcap_chip *pcap; member
31 int pirq = irq_to_pcap(pcap_keys->pcap, irq); in pcap_keys_handler()
34 ezx_pcap_read(pcap_keys->pcap, PCAP_REG_PSTAT, &pstat); in pcap_keys_handler()
61 pcap_keys->pcap = dev_get_drvdata(pdev->dev.parent); in pcap_keys_probe()
83 err = request_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_ONOFF), in pcap_keys_probe()
88 err = request_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_MIC), in pcap_keys_probe()
96 free_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_ONOFF), pcap_keys); in pcap_keys_probe()
111 free_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_ONOFF), pcap_keys); in pcap_keys_remove()
112 free_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_MIC), pcap_keys); in pcap_keys_remove()
/drivers/regulator/
Dpcap-regulator.c158 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_set_voltage() local
176 return ezx_pcap_set_bits(pcap, vreg->reg, in pcap_regulator_set_voltage()
192 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_get_voltage() local
199 ezx_pcap_read(pcap, vreg->reg, &tmp); in pcap_regulator_get_voltage()
209 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_enable() local
214 return ezx_pcap_set_bits(pcap, vreg->reg, 1 << vreg->en, 1 << vreg->en); in pcap_regulator_enable()
220 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_disable() local
225 return ezx_pcap_set_bits(pcap, vreg->reg, 1 << vreg->en, 0); in pcap_regulator_disable()
231 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_is_enabled() local
237 ezx_pcap_read(pcap, vreg->reg, &tmp); in pcap_regulator_is_enabled()
[all …]
DMakefile36 obj-$(CONFIG_REGULATOR_PCAP) += pcap-regulator.o
/drivers/input/touchscreen/
Dpcap_ts.c26 struct pcap_chip *pcap; member
95 pcap_set_ts_bits(pcap_ts->pcap, in pcap_ts_work()
104 pcap_adc_async(pcap_ts->pcap, PCAP_ADC_BANK_1, 0, ch, in pcap_ts_work()
136 pcap_set_ts_bits(pcap_ts->pcap, in pcap_ts_close()
150 pcap_ts->pcap = dev_get_drvdata(pdev->dev.parent); in pcap_ts_probe()
160 pcap_set_ts_bits(pcap_ts->pcap, in pcap_ts_probe()
187 err = request_irq(pcap_to_irq(pcap_ts->pcap, PCAP_IRQ_TS), in pcap_ts_probe()
209 free_irq(pcap_to_irq(pcap_ts->pcap, PCAP_IRQ_TS), pcap_ts); in pcap_ts_remove()
224 pcap_set_ts_bits(pcap_ts->pcap, PCAP_ADC_TS_REF_LOWPWR); in pcap_ts_suspend()
232 pcap_set_ts_bits(pcap_ts->pcap, in pcap_ts_resume()
/drivers/hwmon/
Dibmaem.c179 u16 pcap[AEM2_NUM_PCAP_REGS]; member
481 &data->pcap[i], 2); in update_aem2_sensors()
999 return sprintf(buf, "%u\n", a->pcap[attr->index] * 100000); in aem2_show_pcap_value()
/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c324 word = be16_to_cpu(port_rpl.u.info.pcap); in t4vf_port_init()
/drivers/net/ethernet/chelsio/cxgb4/
Dt4fw_api.h1163 __be16 pcap; member
Dt4_hw.c2852 init_link_config(&p->link_cfg, ntohs(c.u.info.pcap)); in t4_port_init()