Home
last modified time | relevance | path

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

12

/linux/drivers/i2c/busses/
A Di2c-tegra.c426 i2c_dev->dma_buf, i2c_dev->dma_phys); in tegra_i2c_release_dma()
693 if (!IS_DVC(i2c_dev) && !IS_VI(i2c_dev)) { in tegra_i2c_init()
1053 tegra_i2c_isr(i2c_dev->irq, i2c_dev); in tegra_i2c_poll_completion()
1149 if (i2c_dev->dma_mode && !i2c_dev->msg_read) in tegra_i2c_push_packet_header()
1156 if (i2c_dev->dma_mode && !i2c_dev->msg_read) in tegra_i2c_push_packet_header()
1181 if (i2c_dev->dma_mode && !i2c_dev->msg_read) in tegra_i2c_push_packet_header()
1343 memcpy(i2c_dev->msg_buf, i2c_dev->dma_buf, i2c_dev->msg_len); in tegra_i2c_xfer_msg()
1701 i2c_dev->div_clk = i2c_dev->clocks[0].clk; in tegra_i2c_init_clocks()
1780 dev_name(i2c_dev->dev), i2c_dev); in tegra_i2c_probe()
1816 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-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-st.c276 st_i2c_soft_reset(i2c_dev); in st_i2c_hw_config()
354 st_i2c_hw_config(i2c_dev); in st_i2c_recover_bus()
624 dev_err(i2c_dev->dev, in st_i2c_isr_thread()
716 i2c_dev->busy = true; in st_i2c_xfer()
726 st_i2c_hw_config(i2c_dev); in st_i2c_xfer()
735 i2c_dev->busy = false; in st_i2c_xfer()
744 if (i2c_dev->busy) in st_i2c_suspend()
808 i2c_dev = devm_kzalloc(&pdev->dev, sizeof(*i2c_dev), GFP_KERNEL); in st_i2c_probe()
809 if (!i2c_dev) in st_i2c_probe()
817 if (!i2c_dev->irq) { in st_i2c_probe()
[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-stm32f7.c498 i2c_dev->dnf = DIV_ROUND_CLOSEST(i2c_dev->dnf_dt, i2cclk); in stm32f7_i2c_compute_timing()
725 (i2c_dev->analog_filter ? "On" : "Off"), i2c_dev->dnf); in stm32f7_i2c_setup_timing()
890 f7_msg->stop = (i2c_dev->msg_id >= i2c_dev->msg_num - 1); in stm32f7_i2c_xfer_msg()
934 ret = stm32_i2c_prep_dma_xfer(i2c_dev->dev, i2c_dev->dma, in stm32f7_i2c_xfer_msg()
1104 ret = stm32_i2c_prep_dma_xfer(i2c_dev->dev, i2c_dev->dma, in stm32f7_i2c_smbus_xfer_msg()
1198 ret = stm32_i2c_prep_dma_xfer(i2c_dev->dev, i2c_dev->dma, in stm32f7_i2c_smbus_rep_start()
1344 i2c_dev->slave_running = i2c_dev->slave[i]; in stm32f7_i2c_slave_addr()
1656 stm32f7_i2c_xfer_msg(i2c_dev, i2c_dev->msg); in stm32f7_i2c_isr_event_thread()
2035 if (i2c_dev->fmp_sreg == i2c_dev->fmp_creg) in stm32f7_i2c_write_fm_plus_bits()
2040 enable ? i2c_dev->fmp_sreg : i2c_dev->fmp_creg, in stm32f7_i2c_write_fm_plus_bits()
[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-davinci.c144 static inline void davinci_i2c_write_reg(struct davinci_i2c_dev *i2c_dev, in davinci_i2c_write_reg() argument
147 writew_relaxed(val, i2c_dev->base + reg); in davinci_i2c_write_reg()
150 static inline u16 davinci_i2c_read_reg(struct davinci_i2c_dev *i2c_dev, int reg) in davinci_i2c_read_reg() argument
152 return readw_relaxed(i2c_dev->base + reg); in davinci_i2c_read_reg()
155 static inline void davinci_i2c_reset_ctrl(struct davinci_i2c_dev *i2c_dev, in davinci_i2c_reset_ctrl() argument
160 w = davinci_i2c_read_reg(i2c_dev, DAVINCI_I2C_MDR_REG); in davinci_i2c_reset_ctrl()
166 davinci_i2c_write_reg(i2c_dev, DAVINCI_I2C_MDR_REG, w); in davinci_i2c_reset_ctrl()
905 struct davinci_i2c_dev *i2c_dev = dev_get_drvdata(dev); in davinci_i2c_suspend() local
908 davinci_i2c_reset_ctrl(i2c_dev, 0); in davinci_i2c_suspend()
915 struct davinci_i2c_dev *i2c_dev = dev_get_drvdata(dev); in davinci_i2c_resume() local
[all …]
/linux/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 …]
/linux/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()
657 struct i2c_dev *i2c_dev; in i2cdev_dev_release() local
659 i2c_dev = container_of(dev, struct i2c_dev, dev); in i2cdev_dev_release()
666 struct i2c_dev *i2c_dev; in i2cdev_attach_adapter() local
[all …]
/linux/drivers/platform/chrome/
A Dchromeos_laptop.c138 struct i2c_peripheral *i2c_dev; in chromeos_laptop_check_adapter() local
145 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()
732 i2c_dev->board_info.resources = &i2c_dev->irq_resource; in chromeos_laptop_setup_irq()
[all …]
/linux/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()
/linux/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()
/linux/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()
/linux/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 …]
/linux/sound/i2c/other/
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/
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/
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/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()
A Di2c.c90 struct i2c_client *client = phy->i2c_dev; in fdp_nci_i2c_write()
134 struct i2c_client *client = phy->i2c_dev; in fdp_nci_i2c_read()
201 if (!phy || irq != phy->i2c_dev->irq) { in fdp_nci_i2c_irq_thread_fn()
302 phy->i2c_dev = client; in fdp_nci_i2c_probe()
/linux/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 …]
/linux/drivers/nfc/st21nfca/
A Di2c.c52 struct i2c_client *i2c_dev; member
101 r = i2c_master_send(phy->i2c_dev, reboot_cmd, in st21nfca_hci_platform_init()
113 r = i2c_master_recv(phy->i2c_dev, tmp, in st21nfca_hci_platform_init()
186 struct i2c_client *client = phy->i2c_dev; in st21nfca_hci_i2c_write()
351 struct i2c_client *client = phy->i2c_dev; in st21nfca_hci_i2c_read()
425 if (!phy || irq != phy->i2c_dev->irq) { in st21nfca_hci_irq_thread_fn()
506 phy->i2c_dev = client; in st21nfca_hci_i2c_probe()
/linux/drivers/net/ethernet/wangxun/txgbe/
A Dtxgbe_phy.c622 struct platform_device *i2c_dev; in txgbe_i2c_register() local
642 i2c_dev = platform_device_register_full(&info); in txgbe_i2c_register()
643 if (IS_ERR(i2c_dev)) in txgbe_i2c_register()
644 return PTR_ERR(i2c_dev); in txgbe_i2c_register()
646 txgbe->i2c_dev = i2c_dev; in txgbe_i2c_register()
774 platform_device_unregister(txgbe->i2c_dev); in txgbe_init_phy()
797 platform_device_unregister(txgbe->i2c_dev); in txgbe_remove_phy()
/linux/include/sound/
A Dpt2258.h14 struct snd_i2c_device *i2c_dev; member

Completed in 71 milliseconds

12