Home
last modified time | relevance | path

Searched refs:i2c_dev (Results 1 – 25 of 43) sorted by relevance

12

/linux/drivers/i2c/busses/
H A Di2c-tegra.c331 static void dvc_writel(struct tegra_i2c_dev *i2c_dev, u32 val, in dvc_writel() argument
334 writel_relaxed(val, i2c_dev->base + reg); in dvc_writel()
337 static u32 dvc_readl(struct tegra_i2c_dev *i2c_dev, unsigned int reg) in dvc_readl() argument
339 return readl_relaxed(i2c_dev->base + reg); in dvc_readl()
346 static u32 tegra_i2c_reg_addr(struct tegra_i2c_dev *i2c_dev, unsigned int reg) in tegra_i2c_reg_addr() argument
348 if (IS_DVC(i2c_dev)) in tegra_i2c_reg_addr()
350 else if (IS_VI(i2c_dev)) in tegra_i2c_reg_addr()
356 static void i2c_writel(struct tegra_i2c_dev *i2c_dev, u32 val, unsigned int reg) in i2c_writel() argument
358 writel_relaxed(val, i2c_dev->base + tegra_i2c_reg_addr(i2c_dev, reg)); in i2c_writel()
362 readl_relaxed(i2c_dev->base + tegra_i2c_reg_addr(i2c_dev, reg)); in i2c_writel()
[all …]
H A Di2c-sprd.c93 static void sprd_i2c_set_count(struct sprd_i2c *i2c_dev, u32 count) in sprd_i2c_set_count() argument
95 writel(count, i2c_dev->base + I2C_COUNT); in sprd_i2c_set_count()
98 static void sprd_i2c_send_stop(struct sprd_i2c *i2c_dev, int stop) in sprd_i2c_send_stop() argument
100 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop()
103 writel(tmp & ~STP_EN, i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop()
105 writel(tmp | STP_EN, i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop()
108 static void sprd_i2c_clear_start(struct sprd_i2c *i2c_dev) in sprd_i2c_clear_start() argument
110 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_clear_start()
112 writel(tmp & ~I2C_START, i2c_dev->base + I2C_CTL); in sprd_i2c_clear_start()
115 static void sprd_i2c_clear_ack(struct sprd_i2c *i2c_dev) in sprd_i2c_clear_ack() argument
[all …]
H A Di2c-bcm2835.c73 static inline void bcm2835_i2c_writel(struct bcm2835_i2c_dev *i2c_dev, in bcm2835_i2c_writel() argument
76 writel(val, i2c_dev->regs + reg); in bcm2835_i2c_writel()
79 static inline u32 bcm2835_i2c_readl(struct bcm2835_i2c_dev *i2c_dev, u32 reg) in bcm2835_i2c_readl() argument
81 return readl(i2c_dev->regs + reg); in bcm2835_i2c_readl()
87 struct bcm2835_i2c_dev *i2c_dev; member
119 bcm2835_i2c_writel(div->i2c_dev, BCM2835_I2C_DIV, divider); in clk_bcm2835_i2c_set_rate()
134 bcm2835_i2c_writel(div->i2c_dev, BCM2835_I2C_DEL, in clk_bcm2835_i2c_set_rate()
154 u32 divider = bcm2835_i2c_readl(div->i2c_dev, BCM2835_I2C_DIV); in clk_bcm2835_i2c_recalc_rate()
167 struct bcm2835_i2c_dev *i2c_dev) in bcm2835_i2c_register_div() argument
189 priv->i2c_dev = i2c_dev; in bcm2835_i2c_register_div()
[all …]
H A Di2c-st.c237 static void st_i2c_flush_rx_fifo(struct st_i2c_dev *i2c_dev) in st_i2c_flush_rx_fifo()
246 if (readl_relaxed(i2c_dev->base + SSC_STA) & SSC_STA_RIR) in st_i2c_flush_rx_fifo()
249 count = readl_relaxed(i2c_dev->base + SSC_RX_FSTAT) & in st_i2c_flush_rx_fifo()
253 readl_relaxed(i2c_dev->base + SSC_RBUF); in st_i2c_flush_rx_fifo()
256 static void st_i2c_soft_reset(struct st_i2c_dev *i2c_dev) in st_i2c_soft_reset()
262 st_i2c_flush_rx_fifo(i2c_dev); in st_i2c_soft_reset()
264 st_i2c_set_bits(i2c_dev->base + SSC_CTL, SSC_CTL_SR); in st_i2c_soft_reset()
265 st_i2c_clr_bits(i2c_dev->base + SSC_CTL, SSC_CTL_SR); in st_i2c_soft_reset()
270 * @i2c_dev: Controller's private data
272 static void st_i2c_hw_config(struct st_i2c_dev *i2c_dev) in st_i2c_hw_config()
236 st_i2c_flush_rx_fifo(struct st_i2c_dev * i2c_dev) st_i2c_flush_rx_fifo() argument
255 st_i2c_soft_reset(struct st_i2c_dev * i2c_dev) st_i2c_soft_reset() argument
271 st_i2c_hw_config(struct st_i2c_dev * i2c_dev) st_i2c_hw_config() argument
340 struct st_i2c_dev *i2c_dev = i2c_get_adapdata(i2c_adap); st_i2c_recover_bus() local
370 st_i2c_wait_free_bus(struct st_i2c_dev * i2c_dev) st_i2c_wait_free_bus() argument
399 st_i2c_write_tx_fifo(struct st_i2c_dev * i2c_dev,u8 byte) st_i2c_write_tx_fifo() argument
413 st_i2c_wr_fill_tx_fifo(struct st_i2c_dev * i2c_dev) st_i2c_wr_fill_tx_fifo() argument
439 st_i2c_rd_fill_tx_fifo(struct st_i2c_dev * i2c_dev,u32 max) st_i2c_rd_fill_tx_fifo() argument
457 st_i2c_read_rx_fifo(struct st_i2c_dev * i2c_dev) st_i2c_read_rx_fifo() argument
486 st_i2c_terminate_xfer(struct st_i2c_dev * i2c_dev) st_i2c_terminate_xfer() argument
506 st_i2c_handle_write(struct st_i2c_dev * i2c_dev) st_i2c_handle_write() argument
523 st_i2c_handle_read(struct st_i2c_dev * i2c_dev) st_i2c_handle_read() argument
560 struct st_i2c_dev *i2c_dev = data; st_i2c_isr_thread() local
638 st_i2c_xfer_msg(struct st_i2c_dev * i2c_dev,struct i2c_msg * msg,bool is_first,bool is_last) st_i2c_xfer_msg() argument
706 struct st_i2c_dev *i2c_dev = i2c_get_adapdata(i2c_adap); st_i2c_xfer() local
735 struct st_i2c_dev *i2c_dev = dev_get_drvdata(dev); st_i2c_suspend() local
771 st_i2c_of_get_deglitch(struct device_node * np,struct st_i2c_dev * i2c_dev) st_i2c_of_get_deglitch() argument
795 struct st_i2c_dev *i2c_dev; st_i2c_probe() local
870 struct st_i2c_dev *i2c_dev = platform_get_drvdata(pdev); st_i2c_remove() local
[all...]
H A Di2c-stm32f7.c444 static void stm32f7_i2c_disable_irq(struct stm32f7_i2c_dev *i2c_dev, u32 mask) in stm32f7_i2c_disable_irq() argument
446 stm32f7_i2c_clr_bits(i2c_dev->base + STM32F7_I2C_CR1, mask); in stm32f7_i2c_disable_irq()
461 static int stm32f7_i2c_compute_timing(struct stm32f7_i2c_dev *i2c_dev, in stm32f7_i2c_compute_timing() argument
485 dev_err(i2c_dev->dev, "speed out of bound {%d}\n", in stm32f7_i2c_compute_timing()
492 dev_err(i2c_dev->dev, in stm32f7_i2c_compute_timing()
499 i2c_dev->dnf = DIV_ROUND_CLOSEST(i2c_dev->dnf_dt, i2cclk); in stm32f7_i2c_compute_timing()
500 if (i2c_dev->dnf > STM32F7_I2C_DNF_MAX) { in stm32f7_i2c_compute_timing()
501 dev_err(i2c_dev->dev, in stm32f7_i2c_compute_timing()
503 i2c_dev->dnf * i2cclk, STM32F7_I2C_DNF_MAX * i2cclk); in stm32f7_i2c_compute_timing()
509 (i2c_dev->analog_filter ? in stm32f7_i2c_compute_timing()
[all …]
H A Di2c-stm32f4.c144 static void stm32f4_i2c_disable_irq(struct stm32f4_i2c_dev *i2c_dev) in stm32f4_i2c_disable_irq() argument
146 void __iomem *reg = i2c_dev->base + STM32F4_I2C_CR2; in stm32f4_i2c_disable_irq()
151 static int stm32f4_i2c_set_periph_clk_freq(struct stm32f4_i2c_dev *i2c_dev) in stm32f4_i2c_set_periph_clk_freq() argument
156 i2c_dev->parent_rate = clk_get_rate(i2c_dev->clk); in stm32f4_i2c_set_periph_clk_freq()
157 freq = DIV_ROUND_UP(i2c_dev->parent_rate, HZ_TO_MHZ); in stm32f4_i2c_set_periph_clk_freq()
159 if (i2c_dev->speed == STM32_I2C_SPEED_STANDARD) { in stm32f4_i2c_set_periph_clk_freq()
167 dev_err(i2c_dev->dev, in stm32f4_i2c_set_periph_clk_freq()
179 dev_err(i2c_dev->dev, in stm32f4_i2c_set_periph_clk_freq()
186 writel_relaxed(cr2, i2c_dev->base + STM32F4_I2C_CR2); in stm32f4_i2c_set_periph_clk_freq()
191 static void stm32f4_i2c_set_rise_time(struct stm32f4_i2c_dev *i2c_dev) in stm32f4_i2c_set_rise_time() argument
[all …]
H A Di2c-owl.c121 static void owl_i2c_reset(struct owl_i2c_dev *i2c_dev) in owl_i2c_reset() argument
123 owl_i2c_update_reg(i2c_dev->base + OWL_I2C_REG_CTL, in owl_i2c_reset()
126 owl_i2c_update_reg(i2c_dev->base + OWL_I2C_REG_CTL, in owl_i2c_reset()
130 writel(0, i2c_dev->base + OWL_I2C_REG_STAT); in owl_i2c_reset()
133 static int owl_i2c_reset_fifo(struct owl_i2c_dev *i2c_dev) in owl_i2c_reset_fifo() argument
138 owl_i2c_update_reg(i2c_dev->base + OWL_I2C_REG_FIFOCTL, in owl_i2c_reset_fifo()
144 val = readl(i2c_dev->base + OWL_I2C_REG_FIFOCTL); in owl_i2c_reset_fifo()
151 dev_err(&i2c_dev->adap.dev, "FIFO reset timeout\n"); in owl_i2c_reset_fifo()
158 static void owl_i2c_set_freq(struct owl_i2c_dev *i2c_dev) in owl_i2c_set_freq() argument
162 val = DIV_ROUND_UP(i2c_dev->clk_rate, i2c_dev->bus_freq * 16); in owl_i2c_set_freq()
[all …]
H A Di2c-amd-mp2-plat.c44 struct amd_i2c_dev *i2c_dev = amd_i2c_dev_common(i2c_common); in i2c_amd_dma_map() local
55 dev_err(&i2c_dev->pdev->dev, in i2c_amd_dma_map()
77 static void i2c_amd_start_cmd(struct amd_i2c_dev *i2c_dev) in i2c_amd_start_cmd() argument
79 struct amd_i2c_common *i2c_common = &i2c_dev->common; in i2c_amd_start_cmd()
81 reinit_completion(&i2c_dev->cmd_complete); in i2c_amd_start_cmd()
87 struct amd_i2c_dev *i2c_dev = amd_i2c_dev_common(i2c_common); in i2c_amd_cmd_completion() local
91 dev_dbg(&i2c_dev->pdev->dev, "readdata:%*ph\n", event->r.length, in i2c_amd_cmd_completion()
94 complete(&i2c_dev->cmd_complete); in i2c_amd_cmd_completion()
97 static int i2c_amd_check_cmd_completion(struct amd_i2c_dev *i2c_dev) in i2c_amd_check_cmd_completion() argument
99 struct amd_i2c_common *i2c_common = &i2c_dev->common; in i2c_amd_check_cmd_completion()
[all …]
H A Di2c-davinci.c143 static inline void davinci_i2c_write_reg(struct davinci_i2c_dev *i2c_dev, in davinci_i2c_write_reg() argument
146 writew_relaxed(val, i2c_dev->base + reg); in davinci_i2c_write_reg()
149 static inline u16 davinci_i2c_read_reg(struct davinci_i2c_dev *i2c_dev, int reg) in davinci_i2c_read_reg() argument
151 return readw_relaxed(i2c_dev->base + reg); in davinci_i2c_read_reg()
154 static inline void davinci_i2c_reset_ctrl(struct davinci_i2c_dev *i2c_dev, in davinci_i2c_reset_ctrl() argument
159 w = davinci_i2c_read_reg(i2c_dev, DAVINCI_I2C_MDR_REG); in davinci_i2c_reset_ctrl()
165 davinci_i2c_write_reg(i2c_dev, DAVINCI_I2C_MDR_REG, w); in davinci_i2c_reset_ctrl()
858 struct davinci_i2c_dev *i2c_dev = dev_get_drvdata(dev); in davinci_i2c_suspend() local
861 davinci_i2c_reset_ctrl(i2c_dev, 0); in davinci_i2c_suspend()
868 struct davinci_i2c_dev *i2c_dev = dev_get_drvdata(dev); in davinci_i2c_resume() local
[all …]
H A Di2c-designware-amdisp.c19 static void amd_isp_dw_i2c_plat_pm_cleanup(struct dw_i2c_dev *i2c_dev) in amd_isp_dw_i2c_plat_pm_cleanup() argument
21 pm_runtime_disable(i2c_dev->dev); in amd_isp_dw_i2c_plat_pm_cleanup()
24 static inline u32 amd_isp_dw_i2c_get_clk_rate(struct dw_i2c_dev *i2c_dev) in amd_isp_dw_i2c_get_clk_rate() argument
/linux/drivers/gpu/drm/gma500/
H A Doaktrail_hdmi_i2c.c99 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; in xfer_read() local
102 i2c_dev->status = I2C_STAT_INIT; in xfer_read()
103 i2c_dev->msg = pmsg; in xfer_read()
104 i2c_dev->buf_offset = 0; in xfer_read()
105 reinit_completion(&i2c_dev->complete); in xfer_read()
112 while (i2c_dev->status != I2C_TRANSACTION_DONE) in xfer_read()
113 wait_for_completion_interruptible_timeout(&i2c_dev->complete, in xfer_read()
132 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; in oaktrail_hdmi_i2c_access() local
135 mutex_lock(&i2c_dev->i2c_lock); in oaktrail_hdmi_i2c_access()
155 mutex_unlock(&i2c_dev->i2c_lock); in oaktrail_hdmi_i2c_access()
[all …]
/linux/drivers/i2c/
H A Di2c-dev.c42 struct i2c_dev { struct
53 static struct i2c_dev *i2c_dev_get_by_minor(unsigned index) in i2c_dev_get_by_minor() argument
55 struct i2c_dev *i2c_dev; in i2c_dev_get_by_minor() local
58 list_for_each_entry(i2c_dev, &i2c_dev_list, list) { in i2c_dev_get_by_minor()
59 if (i2c_dev->adap->nr == index) in i2c_dev_get_by_minor()
62 i2c_dev = NULL; in i2c_dev_get_by_minor()
65 return i2c_dev; in i2c_dev_get_by_minor()
68 static struct i2c_dev *get_free_i2c_dev(struct i2c_adapter *adap) in get_free_i2c_dev()
70 struct i2c_dev *i2c_dev; in get_free_i2c_dev() local
77 i2c_dev = kzalloc_obj(*i2c_dev); in get_free_i2c_dev()
[all …]
/linux/drivers/platform/chrome/
H A Dchromeos_laptop.c138 struct i2c_peripheral *i2c_dev; in chromeos_laptop_check_adapter() local
142 i2c_dev = &cros_laptop->i2c_peripherals[i]; in chromeos_laptop_check_adapter()
145 if (i2c_dev->client) in chromeos_laptop_check_adapter()
148 if (strncmp(adapter->name, i2c_adapter_names[i2c_dev->type], in chromeos_laptop_check_adapter()
149 strlen(i2c_adapter_names[i2c_dev->type]))) in chromeos_laptop_check_adapter()
152 if (i2c_dev->pci_devid && in chromeos_laptop_check_adapter()
154 i2c_dev->pci_devid)) { in chromeos_laptop_check_adapter()
158 i2c_dev->client = in chromeos_laptop_check_adapter()
160 &i2c_dev->board_info, in chromeos_laptop_check_adapter()
161 i2c_dev->alt_addr); in chromeos_laptop_check_adapter()
[all …]
/linux/drivers/platform/x86/dell/
H A Ddell-lis3lv02d.c64 static struct i2c_client *i2c_dev; variable
132 if (i2c_dev) in instantiate_i2c_client()
147 i2c_dev = i2c_new_client_device(adap, &info); in instantiate_i2c_client()
152 i2c_dev = i2c_new_scanned_device(adap, &info, addr_list, detect_lis3lv02d); in instantiate_i2c_client()
155 if (IS_ERR(i2c_dev)) { in instantiate_i2c_client()
156 dev_err(&adap->dev, "error %ld registering i2c_client\n", PTR_ERR(i2c_dev)); in instantiate_i2c_client()
157 i2c_dev = NULL; in instantiate_i2c_client()
186 if (i2c_dev == client) { in i2c_bus_notify()
188 i2c_dev = NULL; in i2c_bus_notify()
254 i2c_unregister_device(i2c_dev); in dell_lis3lv02d_module_exit()
/linux/drivers/platform/x86/amd/
H A Damd_isp4.c45 struct i2c_client *i2c_dev; member
263 struct i2c_client *i2c_dev; in instantiate_isp_i2c_client() local
267 if (isp4_platform->i2c_dev) in instantiate_isp_i2c_client()
270 i2c_dev = i2c_new_client_device(adap, info); in instantiate_isp_i2c_client()
271 if (IS_ERR(i2c_dev)) { in instantiate_isp_i2c_client()
272 dev_err(&adap->dev, "error %pe registering isp i2c_client\n", i2c_dev); in instantiate_isp_i2c_client()
275 isp4_platform->i2c_dev = i2c_dev; in instantiate_isp_i2c_client()
301 if (isp4_platform->i2c_dev == client) { in isp_i2c_bus_notify()
303 isp4_platform->i2c_dev = NULL; in isp_i2c_bus_notify()
401 i2c_unregister_device(isp4_platform->i2c_dev); in amd_isp_remove()
/linux/drivers/nfc/s3fwrn5/
H A Di2c.c25 struct i2c_client *i2c_dev; member
55 ret = i2c_master_send(phy->i2c_dev, skb->data, skb->len); in s3fwrn5_i2c_write()
59 ret = i2c_master_send(phy->i2c_dev, skb->data, skb->len); in s3fwrn5_i2c_write()
90 ret = i2c_master_recv(phy->i2c_dev, hdr, hdr_size); in s3fwrn5_i2c_read()
110 ret = i2c_master_recv(phy->i2c_dev, skb_put(skb, data_len), data_len); in s3fwrn5_i2c_read()
193 phy->i2c_dev = client; in s3fwrn5_i2c_probe()
200 ret = devm_gpio_request_one(&phy->i2c_dev->dev, phy->common.gpio_en, in s3fwrn5_i2c_probe()
205 ret = devm_gpio_request_one(&phy->i2c_dev->dev, in s3fwrn5_i2c_probe()
222 ret = s3fwrn5_probe(&phy->common.ndev, phy, &phy->i2c_dev->dev, in s3fwrn5_i2c_probe()
227 ret = devm_request_threaded_irq(&client->dev, phy->i2c_dev->irq, NULL, in s3fwrn5_i2c_probe()
/linux/drivers/nfc/pn533/
H A Di2c.c26 struct i2c_client *i2c_dev; member
40 struct i2c_client *client = phy->i2c_dev; in pn533_i2c_send_ack()
51 struct i2c_client *client = phy->i2c_dev; in pn533_i2c_send_frame()
97 struct i2c_client *client = phy->i2c_dev; in pn533_i2c_read()
134 if (!phy || irq != phy->i2c_dev->irq) { in pn533_i2c_irq_thread_fn()
182 phy->i2c_dev = client; in pn533_i2c_probe()
188 &phy->i2c_dev->dev); in pn533_i2c_probe()
/linux/drivers/nfc/pn544/
H A Di2c.c148 struct i2c_client *i2c_dev; member
192 nfc_info(&phy->i2c_dev->dev, "Detecting nfc_en polarity\n"); in pn544_hci_i2c_platform_init()
210 dev_dbg(&phy->i2c_dev->dev, "Sending reset cmd\n"); in pn544_hci_i2c_platform_init()
211 ret = i2c_master_send(phy->i2c_dev, rset_cmd, count); in pn544_hci_i2c_platform_init()
213 nfc_info(&phy->i2c_dev->dev, in pn544_hci_i2c_platform_init()
221 nfc_err(&phy->i2c_dev->dev, in pn544_hci_i2c_platform_init()
295 struct i2c_client *client = phy->i2c_dev; in pn544_hci_i2c_write()
359 struct i2c_client *client = phy->i2c_dev; in pn544_hci_i2c_read()
417 struct i2c_client *client = phy->i2c_dev; in pn544_hci_i2c_fw_read_status()
485 if (!phy || irq != phy->i2c_dev->irq) { in pn544_hci_i2c_irq_thread_fn()
[all …]
/linux/drivers/nfc/st-nci/
H A Di2c.c33 struct i2c_client *i2c_dev; member
53 enable_irq(phy->i2c_dev->irq); in st_nci_i2c_enable()
64 disable_irq_nosync(phy->i2c_dev->irq); in st_nci_i2c_disable()
77 struct i2c_client *client = phy->i2c_dev; in st_nci_i2c_write()
112 struct i2c_client *client = phy->i2c_dev; in st_nci_i2c_read()
163 if (!phy || !phy->ndlc || irq != phy->i2c_dev->irq) { in st_nci_irq_thread_fn()
213 phy->i2c_dev = client; in st_nci_i2c_probe()
/linux/sound/i2c/other/
H A Dpt2258.c40 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset()
48 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset()
58 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in snd_pt2258_reset()
111 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in pt2258_stereo_volume_put()
119 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in pt2258_stereo_volume_put()
156 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in pt2258_switch_put()
/linux/drivers/nfc/nxp-nci/
H A Di2c.c33 struct i2c_client *i2c_dev; member
64 struct i2c_client *client = phy->i2c_dev; in nxp_nci_i2c_write()
99 struct i2c_client *client = phy->i2c_dev; in nxp_nci_i2c_fw_read()
147 struct i2c_client *client = phy->i2c_dev; in nxp_nci_i2c_nci_read()
201 client = phy->i2c_dev; in nxp_nci_i2c_irq_thread_fn()
282 phy->i2c_dev = client; in nxp_nci_i2c_probe()
/linux/drivers/nfc/microread/
H A Di2c.c39 struct i2c_client *i2c_dev; member
107 struct i2c_client *client = phy->i2c_dev; in microread_i2c_write()
144 struct i2c_client *client = phy->i2c_dev; in microread_i2c_read()
204 if (!phy || irq != phy->i2c_dev->irq) { in microread_i2c_irq_thread_fn()
245 phy->i2c_dev = client; in microread_i2c_probe()
/linux/drivers/media/usb/em28xx/
H A Dem28xx-input.c72 static int em28xx_get_key_terratec(struct i2c_client *i2c_dev, in em28xx_get_key_terratec() argument
79 rc = i2c_master_recv(i2c_dev, &b, 1); in em28xx_get_key_terratec()
103 static int em28xx_get_key_em_haup(struct i2c_client *i2c_dev, in em28xx_get_key_em_haup() argument
110 size = i2c_master_recv(i2c_dev, buf, sizeof(buf)); in em28xx_get_key_em_haup()
133 static int em28xx_get_key_pinnacle_usb_grey(struct i2c_client *i2c_dev, in em28xx_get_key_pinnacle_usb_grey() argument
141 if (i2c_master_recv(i2c_dev, buf, 3) != 3) in em28xx_get_key_pinnacle_usb_grey()
152 static int em28xx_get_key_winfast_usbii_deluxe(struct i2c_client *i2c_dev, in em28xx_get_key_winfast_usbii_deluxe() argument
160 .addr = i2c_dev->addr, in em28xx_get_key_winfast_usbii_deluxe()
164 .addr = i2c_dev->addr, in em28xx_get_key_winfast_usbii_deluxe()
172 if (i2c_transfer(i2c_dev->adapter, msg, 2) != 2) in em28xx_get_key_winfast_usbii_deluxe()
[all …]
/linux/drivers/nfc/fdp/
H A Dfdp.c163 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_set_data_pkt_counter()
270 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_request_firmware()
327 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_patch_otp()
393 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_patch_ram()
460 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_setup()
530 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_post_setup()
594 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_prop_patch_rsp_packet()
607 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_prop_set_production_data_rsp_packet()
620 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_core_get_config_rsp_packet()
704 struct device *dev = &phy->i2c_dev->dev; in fdp_nci_probe()
/linux/drivers/nfc/st21nfca/
H A Di2c.c51 struct i2c_client *i2c_dev; member
100 r = i2c_master_send(phy->i2c_dev, reboot_cmd, in st21nfca_hci_platform_init()
112 r = i2c_master_recv(phy->i2c_dev, tmp, in st21nfca_hci_platform_init()
185 struct i2c_client *client = phy->i2c_dev; in st21nfca_hci_i2c_write()
350 struct i2c_client *client = phy->i2c_dev; in st21nfca_hci_i2c_read()
424 if (!phy || irq != phy->i2c_dev->irq) { in st21nfca_hci_irq_thread_fn()
505 phy->i2c_dev = client; in st21nfca_hci_i2c_probe()

12