Home
last modified time | relevance | path

Searched refs:pcap (Results 1 – 16 of 16) 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 …]
DMakefile87 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 …]
DMakefile98 obj-$(CONFIG_RTC_DRV_PCAP) += rtc-pcap.o
/drivers/input/misc/
Dpcap_keys.c22 struct pcap_chip *pcap; member
30 int pirq = irq_to_pcap(pcap_keys->pcap, irq); in pcap_keys_handler()
33 ezx_pcap_read(pcap_keys->pcap, PCAP_REG_PSTAT, &pstat); in pcap_keys_handler()
60 pcap_keys->pcap = dev_get_drvdata(pdev->dev.parent); in pcap_keys_probe()
82 err = request_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_ONOFF), in pcap_keys_probe()
87 err = request_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_MIC), in pcap_keys_probe()
95 free_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_ONOFF), pcap_keys); in pcap_keys_probe()
110 free_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_ONOFF), pcap_keys); in pcap_keys_remove()
111 free_irq(pcap_to_irq(pcap_keys->pcap, PCAP_IRQ_MIC), pcap_keys); in pcap_keys_remove()
/drivers/regulator/
Dpcap-regulator.c153 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_set_voltage_sel() local
159 return ezx_pcap_set_bits(pcap, vreg->reg, in pcap_regulator_set_voltage_sel()
167 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_get_voltage_sel() local
173 ezx_pcap_read(pcap, vreg->reg, &tmp); in pcap_regulator_get_voltage_sel()
181 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_enable() local
186 return ezx_pcap_set_bits(pcap, vreg->reg, 1 << vreg->en, 1 << vreg->en); in pcap_regulator_enable()
192 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_disable() local
197 return ezx_pcap_set_bits(pcap, vreg->reg, 1 << vreg->en, 0); in pcap_regulator_disable()
203 void *pcap = rdev_get_drvdata(rdev); in pcap_regulator_is_enabled() local
209 ezx_pcap_read(pcap, vreg->reg, &tmp); in pcap_regulator_is_enabled()
[all …]
DMakefile67 obj-$(CONFIG_REGULATOR_PCAP) += pcap-regulator.o
/drivers/input/touchscreen/
Dpcap_ts.c25 struct pcap_chip *pcap; member
94 pcap_set_ts_bits(pcap_ts->pcap, in pcap_ts_work()
103 pcap_adc_async(pcap_ts->pcap, PCAP_ADC_BANK_1, 0, ch, in pcap_ts_work()
135 pcap_set_ts_bits(pcap_ts->pcap, in pcap_ts_close()
149 pcap_ts->pcap = dev_get_drvdata(pdev->dev.parent); in pcap_ts_probe()
159 pcap_set_ts_bits(pcap_ts->pcap, in pcap_ts_probe()
186 err = request_irq(pcap_to_irq(pcap_ts->pcap, PCAP_IRQ_TS), in pcap_ts_probe()
208 free_irq(pcap_to_irq(pcap_ts->pcap, PCAP_IRQ_TS), pcap_ts); in pcap_ts_remove()
223 pcap_set_ts_bits(pcap_ts->pcap, PCAP_ADC_TS_REF_LOWPWR); in pcap_ts_suspend()
231 pcap_set_ts_bits(pcap_ts->pcap, in pcap_ts_resume()
/drivers/clk/zynq/
Dclkc.c63 lqspi, smc, pcap, gem0, gem1, fclk0, fclk1, fclk2, fclk3, can0, can1, enumerator
370 zynq_clk_register_periph_clk(pcap, 0, clk_output_name[pcap], NULL, in zynq_clk_setup()
/drivers/hwmon/
Dibmaem.c180 u16 pcap[AEM2_NUM_PCAP_REGS]; member
483 &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/scsi/csiostor/
Dcsio_hw.h307 uint16_t pcap; member
Dcsio_hw.c1618 &hw->pport[i].pcap); in csio_enable_ports()
1628 (PAUSE_RX | PAUSE_TX), hw->pport[i].pcap, NULL); in csio_enable_ports()
Dcsio_mb.c399 *caps = ntohs(rsp->u.info.pcap); in csio_mb_process_read_port_rsp()
/drivers/net/ethernet/chelsio/cxgb4vf/
Dt4vf_hw.c323 word = be16_to_cpu(port_rpl.u.info.pcap); in t4vf_port_init()
/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.c3839 lc->supported = be16_to_cpu(p->u.info.pcap); in t4_handle_fw_rpl()
4160 init_link_config(&p->link_cfg, ntohs(c.u.info.pcap)); in t4_port_init()
Dt4fw_api.h1693 __be16 pcap; member