Home
last modified time | relevance | path

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

12

/drivers/i2c/busses/
A Di2c-tegra.c433 i2c_dev->dma_buf, i2c_dev->dma_phys); in tegra_i2c_release_dma()
724 if (!IS_DVC(i2c_dev) && !IS_VI(i2c_dev)) { in tegra_i2c_init()
1084 tegra_i2c_isr(i2c_dev->irq, i2c_dev); in tegra_i2c_poll_completion()
1180 if (i2c_dev->dma_mode && !i2c_dev->msg_read) in tegra_i2c_push_packet_header()
1187 if (i2c_dev->dma_mode && !i2c_dev->msg_read) in tegra_i2c_push_packet_header()
1212 if (i2c_dev->dma_mode && !i2c_dev->msg_read) in tegra_i2c_push_packet_header()
1357 memcpy(i2c_dev->msg_buf, i2c_dev->dma_buf, i2c_dev->msg_len); in tegra_i2c_xfer_msg()
1713 i2c_dev->div_clk = i2c_dev->clocks[0].clk; in tegra_i2c_init_clocks()
1792 dev_name(i2c_dev->dev), i2c_dev); in tegra_i2c_probe()
1824 i2c_set_adapdata(&i2c_dev->adapter, i2c_dev); in tegra_i2c_probe()
[all …]
A Di2c-sprd.c218 sprd_i2c_read_bytes(i2c_dev, i2c_dev->buf, I2C_FIFO_FULL_THLD); in sprd_i2c_data_transfer()
230 sprd_i2c_write_bytes(i2c_dev, i2c_dev->buf, need_tran); in sprd_i2c_data_transfer()
360 sprd_i2c_set_clk(i2c_dev, i2c_dev->bus_freq); in sprd_i2c_enable()
393 i2c_dev->err = 0; in sprd_i2c_isr_thread()
402 sprd_i2c_read_bytes(i2c_dev, i2c_dev->buf, i2c_dev->count); in sprd_i2c_isr_thread()
470 i2c_dev->adap.nr, i2c_dev->src_clk); in sprd_i2c_clk_init()
472 i2c_dev->clk = devm_clk_get(i2c_dev->dev, "enable"); in sprd_i2c_clk_init()
492 if (!i2c_dev) in sprd_i2c_probe()
503 i2c_set_adapdata(&i2c_dev->adap, i2c_dev); in sprd_i2c_probe()
505 snprintf(i2c_dev->adap.name, sizeof(i2c_dev->adap.name), in sprd_i2c_probe()
[all …]
A Di2c-st.c277 st_i2c_soft_reset(i2c_dev); in st_i2c_hw_config()
355 st_i2c_hw_config(i2c_dev); in st_i2c_recover_bus()
617 dev_err(i2c_dev->dev, in st_i2c_isr_thread()
709 i2c_dev->busy = true; in st_i2c_xfer()
719 st_i2c_hw_config(i2c_dev); in st_i2c_xfer()
728 i2c_dev->busy = false; in st_i2c_xfer()
737 if (i2c_dev->busy) in st_i2c_suspend()
801 i2c_dev = devm_kzalloc(&pdev->dev, sizeof(*i2c_dev), GFP_KERNEL); in st_i2c_probe()
802 if (!i2c_dev) in st_i2c_probe()
810 if (!i2c_dev->irq) { in st_i2c_probe()
[all …]
A Di2c-bcm2835.c187 priv->i2c_dev = i2c_dev; in bcm2835_i2c_register_div()
203 i2c_dev->msg_buf++; in bcm2835_fill_txfifo()
216 *i2c_dev->msg_buf = bcm2835_i2c_readl(i2c_dev, in bcm2835_drain_rxfifo()
218 i2c_dev->msg_buf++; in bcm2835_drain_rxfifo()
245 i2c_dev->num_msgs--; in bcm2835_i2c_start_transfer()
316 if (i2c_dev->num_msgs && !i2c_dev->msg_buf_remaining) { in bcm2835_i2c_isr()
379 dev_dbg(i2c_dev->dev, "i2c transfer failed: %x\n", i2c_dev->msg_err); in bcm2835_i2c_xfer()
414 i2c_dev = devm_kzalloc(&pdev->dev, sizeof(*i2c_dev), GFP_KERNEL); in bcm2835_i2c_probe()
415 if (!i2c_dev) in bcm2835_i2c_probe()
494 free_irq(i2c_dev->irq, i2c_dev); in bcm2835_i2c_probe()
[all …]
A Di2c-stm32f7.c499 i2c_dev->dnf = DIV_ROUND_CLOSEST(i2c_dev->dnf_dt, i2cclk); in stm32f7_i2c_compute_timing()
726 str_on_off(i2c_dev->analog_filter), i2c_dev->dnf); in stm32f7_i2c_setup_timing()
896 f7_msg->stop = (i2c_dev->msg_id >= i2c_dev->msg_num - 1); in stm32f7_i2c_xfer_msg()
938 if (i2c_dev->dma && !i2c_dev->atomic) { in stm32f7_i2c_xfer_msg()
1116 ret = stm32_i2c_prep_dma_xfer(i2c_dev->dev, i2c_dev->dma, in stm32f7_i2c_smbus_xfer_msg()
1210 ret = stm32_i2c_prep_dma_xfer(i2c_dev->dev, i2c_dev->dma, in stm32f7_i2c_smbus_rep_start()
1356 i2c_dev->slave_running = i2c_dev->slave[i]; in stm32f7_i2c_slave_addr()
1661 stm32f7_i2c_xfer_msg(i2c_dev, i2c_dev->msg); in stm32f7_i2c_isr_event_thread()
2040 if (i2c_dev->fmp_sreg == i2c_dev->fmp_creg) in stm32f7_i2c_write_fm_plus_bits()
2045 enable ? i2c_dev->fmp_sreg : i2c_dev->fmp_creg, in stm32f7_i2c_write_fm_plus_bits()
[all …]
A Di2c-stm32f4.c156 i2c_dev->parent_rate = clk_get_rate(i2c_dev->clk); 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()
573 dev_dbg(i2c_dev->dev, in stm32f4_i2c_isr_event()
741 clk_disable(i2c_dev->clk); in stm32f4_i2c_xfer()
766 i2c_dev = devm_kzalloc(&pdev->dev, sizeof(*i2c_dev), GFP_KERNEL); in stm32f4_i2c_probe()
767 if (!i2c_dev) in stm32f4_i2c_probe()
771 if (IS_ERR(i2c_dev->base)) in stm32f4_i2c_probe()
806 i2c_dev->dev = &pdev->dev; in stm32f4_i2c_probe()
828 adap = &i2c_dev->adap; in stm32f4_i2c_probe()
[all …]
A Di2c-owl.c162 val = DIV_ROUND_UP(i2c_dev->clk_rate, i2c_dev->bus_freq * 16); in owl_i2c_set_freq()
173 i2c_dev->err = 0; in owl_i2c_xfer_data()
199 msg->buf[i2c_dev->msg_ptr++] = readl(i2c_dev->base + in owl_i2c_xfer_data()
333 i2c_dev->msg = msg; in owl_i2c_xfer_common()
397 ret = i2c_dev->err < 0 ? i2c_dev->err : num; in owl_i2c_xfer_common()
442 i2c_dev = devm_kzalloc(dev, sizeof(*i2c_dev), GFP_KERNEL); in owl_i2c_probe()
443 if (!i2c_dev) in owl_i2c_probe()
471 i2c_dev->clk_rate = clk_get_rate(i2c_dev->clk); in owl_i2c_probe()
485 snprintf(i2c_dev->adap.name, sizeof(i2c_dev->adap.name), in owl_i2c_probe()
487 i2c_set_adapdata(&i2c_dev->adap, i2c_dev); in owl_i2c_probe()
[all …]
A Di2c-amd-mp2-plat.c55 dev_err(&i2c_dev->pdev->dev, in i2c_amd_dma_map()
103 i2c_dev->adap.timeout); in i2c_amd_check_cmd_completion()
127 i2c_amd_start_cmd(i2c_dev); in i2c_amd_enable_set()
137 i2c_amd_start_cmd(i2c_dev); in i2c_amd_xfer_msg()
249 struct amd_i2c_dev *i2c_dev; in i2c_amd_probe() local
269 i2c_dev = devm_kzalloc(&pdev->dev, sizeof(*i2c_dev), GFP_KERNEL); in i2c_amd_probe()
270 if (!i2c_dev) in i2c_amd_probe()
275 i2c_dev->pdev = pdev; in i2c_amd_probe()
300 i2c_dev->adap.algo_data = i2c_dev; in i2c_amd_probe()
304 snprintf(i2c_dev->adap.name, sizeof(i2c_dev->adap.name), in i2c_amd_probe()
[all …]
A Di2c-designware-amdisp.c18 static void amd_isp_dw_i2c_plat_pm_cleanup(struct dw_i2c_dev *i2c_dev) in amd_isp_dw_i2c_plat_pm_cleanup() argument
20 pm_runtime_disable(i2c_dev->dev); in amd_isp_dw_i2c_plat_pm_cleanup()
22 if (i2c_dev->shared_with_punit) in amd_isp_dw_i2c_plat_pm_cleanup()
23 pm_runtime_put_noidle(i2c_dev->dev); in amd_isp_dw_i2c_plat_pm_cleanup()
26 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
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()
860 struct davinci_i2c_dev *i2c_dev = dev_get_drvdata(dev); in davinci_i2c_suspend() local
863 davinci_i2c_reset_ctrl(i2c_dev, 0); in davinci_i2c_suspend()
870 struct davinci_i2c_dev *i2c_dev = dev_get_drvdata(dev); in davinci_i2c_resume() local
[all …]
/drivers/gpu/drm/gma500/
A Doaktrail_hdmi_i2c.c96 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; in xfer_read() local
100 i2c_dev->msg = pmsg; in xfer_read()
129 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; in oaktrail_hdmi_i2c_access() local
176 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; in hdmi_i2c_read() local
205 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; in hdmi_i2c_transaction_done() local
225 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; in oaktrail_hdmi_i2c_handler() local
281 if (!i2c_dev) in oaktrail_hdmi_i2c_init()
289 hdmi_dev->i2c_dev = i2c_dev; in oaktrail_hdmi_i2c_init()
314 kfree(i2c_dev); in oaktrail_hdmi_i2c_init()
327 i2c_dev = hdmi_dev->i2c_dev; in oaktrail_hdmi_i2c_exit()
[all …]
/drivers/i2c/
A Di2c-dev.c42 struct i2c_dev { struct
55 struct i2c_dev *i2c_dev; in i2c_dev_get_by_minor() local
70 struct i2c_dev *i2c_dev; in get_free_i2c_dev() local
77 i2c_dev = kzalloc(sizeof(*i2c_dev), GFP_KERNEL); in get_free_i2c_dev()
78 if (!i2c_dev) in get_free_i2c_dev()
94 cdev_device_del(&i2c_dev->cdev, &i2c_dev->dev); in put_i2c_dev()
103 if (!i2c_dev) in name_show()
658 struct i2c_dev *i2c_dev; in i2cdev_dev_release() local
660 i2c_dev = container_of(dev, struct i2c_dev, dev); in i2cdev_dev_release()
667 struct i2c_dev *i2c_dev; in i2cdev_attach_adapter() local
[all …]
/drivers/platform/chrome/
A Dchromeos_laptop.c145 if (i2c_dev->client) 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()
218 i2c_dev->client = NULL; in chromeos_laptop_detach_i2c_client()
724 if (i2c_dev->dmi_name) { in chromeos_laptop_setup_irq()
730 i2c_dev->irq_resource.flags |= i2c_dev->irqflags; in chromeos_laptop_setup_irq()
732 i2c_dev->board_info.resources = &i2c_dev->irq_resource; in chromeos_laptop_setup_irq()
[all …]
/drivers/platform/x86/dell/
A Ddell-lis3lv02d.c62 static struct i2c_client *i2c_dev; variable
130 if (i2c_dev) in instantiate_i2c_client()
145 i2c_dev = i2c_new_client_device(adap, &info); in instantiate_i2c_client()
150 i2c_dev = i2c_new_scanned_device(adap, &info, addr_list, detect_lis3lv02d); in instantiate_i2c_client()
153 if (IS_ERR(i2c_dev)) { in instantiate_i2c_client()
154 dev_err(&adap->dev, "error %ld registering i2c_client\n", PTR_ERR(i2c_dev)); in instantiate_i2c_client()
155 i2c_dev = NULL; in instantiate_i2c_client()
184 if (i2c_dev == client) { in i2c_bus_notify()
186 i2c_dev = NULL; in i2c_bus_notify()
252 i2c_unregister_device(i2c_dev); in dell_lis3lv02d_module_exit()
/drivers/platform/x86/amd/
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()
/drivers/nfc/s3fwrn5/
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()
/drivers/nfc/pn533/
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()
/drivers/nfc/pn544/
A Di2c.c148 struct i2c_client *i2c_dev; member
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()
490 client = phy->i2c_dev; in pn544_hci_i2c_irq_thread_fn()
702 r = i2c_master_send(phy->i2c_dev, in pn544_hci_i2c_fw_secure_write_frame()
746 &phy->i2c_dev->dev); in pn544_hci_i2c_fw_work()
[all …]
/drivers/nfc/st-nci/
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()
/drivers/nfc/nxp-nci/
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()
/drivers/media/usb/em28xx/
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 …]
/drivers/nfc/fdp/
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()
/drivers/nfc/microread/
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()
/drivers/nfc/st21nfca/
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()
/drivers/net/ethernet/wangxun/txgbe/
A Dtxgbe_phy.c476 struct platform_device *i2c_dev; in txgbe_i2c_register() local
496 i2c_dev = platform_device_register_full(&info); in txgbe_i2c_register()
497 if (IS_ERR(i2c_dev)) in txgbe_i2c_register()
498 return PTR_ERR(i2c_dev); in txgbe_i2c_register()
500 txgbe->i2c_dev = i2c_dev; in txgbe_i2c_register()
638 platform_device_unregister(txgbe->i2c_dev); in txgbe_init_phy()
672 platform_device_unregister(txgbe->i2c_dev); in txgbe_remove_phy()

Completed in 86 milliseconds

12