Home
last modified time | relevance | path

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

12

/linux/drivers/i2c/busses/
A Di2c-tegra.c399 chan = i2c_dev->msg_read ? i2c_dev->rx_dma_chan : i2c_dev->tx_dma_chan; in tegra_i2c_dma_submit()
423 i2c_dev->dma_buf, i2c_dev->dma_phys); in tegra_i2c_release_dma()
445 if (!i2c_dev->hw->has_apb_dma || i2c_dev->is_vi) in tegra_i2c_init_dma()
688 if (!i2c_dev->is_dvc && !i2c_dev->is_vi) { in tegra_i2c_init()
1055 tegra_i2c_isr(i2c_dev->irq, i2c_dev); in tegra_i2c_poll_completion()
1151 if (i2c_dev->dma_mode && !i2c_dev->msg_read) in tegra_i2c_push_packet_header()
1158 if (i2c_dev->dma_mode && !i2c_dev->msg_read) in tegra_i2c_push_packet_header()
1183 if (i2c_dev->dma_mode && !i2c_dev->msg_read) in tegra_i2c_push_packet_header()
1666 i2c_dev->div_clk = i2c_dev->clocks[0].clk; in tegra_i2c_init_clocks()
1745 dev_name(i2c_dev->dev), i2c_dev); in tegra_i2c_probe()
[all …]
A Di2c-sprd.c219 sprd_i2c_read_bytes(i2c_dev, i2c_dev->buf, I2C_FIFO_FULL_THLD); in sprd_i2c_data_transfer()
231 sprd_i2c_write_bytes(i2c_dev, i2c_dev->buf, need_tran); in sprd_i2c_data_transfer()
361 sprd_i2c_set_clk(i2c_dev, i2c_dev->bus_freq); in sprd_i2c_enable()
394 i2c_dev->err = 0; in sprd_i2c_isr_thread()
403 sprd_i2c_read_bytes(i2c_dev, i2c_dev->buf, i2c_dev->count); in sprd_i2c_isr_thread()
471 i2c_dev->adap.nr, i2c_dev->src_clk); in sprd_i2c_clk_init()
473 i2c_dev->clk = devm_clk_get(i2c_dev->dev, "enable"); in sprd_i2c_clk_init()
493 if (!i2c_dev) in sprd_i2c_probe()
504 i2c_set_adapdata(&i2c_dev->adap, i2c_dev); in sprd_i2c_probe()
506 snprintf(i2c_dev->adap.name, sizeof(i2c_dev->adap.name), in sprd_i2c_probe()
[all …]
A Di2c-stm32f7.c478 i2c_dev->dnf = DIV_ROUND_CLOSEST(i2c_dev->dnf_dt, i2cclk); in stm32f7_i2c_compute_timing()
705 (i2c_dev->analog_filter ? "On" : "Off"), i2c_dev->dnf); in stm32f7_i2c_setup_timing()
880 f7_msg->stop = (i2c_dev->msg_id >= i2c_dev->msg_num - 1); in stm32f7_i2c_xfer_msg()
923 ret = stm32_i2c_prep_dma_xfer(i2c_dev->dev, i2c_dev->dma, in stm32f7_i2c_xfer_msg()
1089 ret = stm32_i2c_prep_dma_xfer(i2c_dev->dev, i2c_dev->dma, in stm32f7_i2c_smbus_xfer_msg()
1181 ret = stm32_i2c_prep_dma_xfer(i2c_dev->dev, i2c_dev->dma, in stm32f7_i2c_smbus_rep_start()
1327 i2c_dev->slave_running = i2c_dev->slave[i]; in stm32f7_i2c_slave_addr()
1561 stm32f7_i2c_xfer_msg(i2c_dev, i2c_dev->msg); in stm32f7_i2c_isr_event()
1603 stm32f7_i2c_xfer_msg(i2c_dev, i2c_dev->msg); in stm32f7_i2c_isr_event_thread()
1980 if (i2c_dev->fmp_sreg == i2c_dev->fmp_creg) in stm32f7_i2c_write_fm_plus_bits()
[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()
689 i2c_dev->adap.timeout); in st_i2c_xfer_msg()
719 i2c_dev->busy = true; in st_i2c_xfer()
738 i2c_dev->busy = false; in st_i2c_xfer()
748 if (i2c_dev->busy) in st_i2c_suspend()
816 i2c_dev = devm_kzalloc(&pdev->dev, sizeof(*i2c_dev), GFP_KERNEL); in st_i2c_probe()
817 if (!i2c_dev) in st_i2c_probe()
826 if (!i2c_dev->irq) { in st_i2c_probe()
[all …]
A Di2c-bcm2835.c182 priv->i2c_dev = i2c_dev; in bcm2835_i2c_register_div()
198 i2c_dev->msg_buf++; in bcm2835_fill_txfifo()
211 *i2c_dev->msg_buf = bcm2835_i2c_readl(i2c_dev, in bcm2835_drain_rxfifo()
213 i2c_dev->msg_buf++; in bcm2835_drain_rxfifo()
240 i2c_dev->num_msgs--; in bcm2835_i2c_start_transfer()
311 if (i2c_dev->num_msgs && !i2c_dev->msg_buf_remaining) { in bcm2835_i2c_isr()
375 dev_dbg(i2c_dev->dev, "i2c transfer failed: %x\n", i2c_dev->msg_err); in bcm2835_i2c_xfer()
411 i2c_dev = devm_kzalloc(&pdev->dev, sizeof(*i2c_dev), GFP_KERNEL); in bcm2835_i2c_probe()
412 if (!i2c_dev) in bcm2835_i2c_probe()
484 free_irq(i2c_dev->irq, i2c_dev); in bcm2835_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()
772 if (IS_ERR(i2c_dev->base)) in stm32f4_i2c_probe()
813 i2c_dev->dev = &pdev->dev; in stm32f4_i2c_probe()
835 adap = &i2c_dev->adap; in stm32f4_i2c_probe()
[all …]
A Di2c-owl.c161 val = DIV_ROUND_UP(i2c_dev->clk_rate, i2c_dev->bus_freq * 16); in owl_i2c_set_freq()
172 i2c_dev->err = 0; in owl_i2c_xfer_data()
198 msg->buf[i2c_dev->msg_ptr++] = readl(i2c_dev->base + in owl_i2c_xfer_data()
332 i2c_dev->msg = msg; in owl_i2c_xfer_common()
396 ret = i2c_dev->err < 0 ? i2c_dev->err : num; in owl_i2c_xfer_common()
441 i2c_dev = devm_kzalloc(dev, sizeof(*i2c_dev), GFP_KERNEL); in owl_i2c_probe()
442 if (!i2c_dev) in owl_i2c_probe()
474 i2c_dev->clk_rate = clk_get_rate(i2c_dev->clk); in owl_i2c_probe()
489 snprintf(i2c_dev->adap.name, sizeof(i2c_dev->adap.name), in owl_i2c_probe()
491 i2c_set_adapdata(&i2c_dev->adap, i2c_dev); in owl_i2c_probe()
[all …]
A Di2c-wmt.c329 i2c_dev->cmd_status = readw(i2c_dev->base + REG_ISR); in wmt_i2c_isr()
330 writew(i2c_dev->cmd_status, i2c_dev->base + REG_ISR); in wmt_i2c_isr()
373 struct wmt_i2c_dev *i2c_dev; in wmt_i2c_probe() local
379 i2c_dev = devm_kzalloc(&pdev->dev, sizeof(*i2c_dev), GFP_KERNEL); in wmt_i2c_probe()
380 if (!i2c_dev) in wmt_i2c_probe()
385 if (IS_ERR(i2c_dev->base)) in wmt_i2c_probe()
389 if (!i2c_dev->irq) { in wmt_i2c_probe()
395 if (IS_ERR(i2c_dev->clk)) { in wmt_i2c_probe()
405 i2c_dev->dev = &pdev->dev; in wmt_i2c_probe()
408 "i2c", i2c_dev); in wmt_i2c_probe()
[all …]
A Di2c-amd-mp2-plat.c55 dev_err(&i2c_dev->pdev->dev, in i2c_amd_dma_map()
127 i2c_amd_start_cmd(i2c_dev); in i2c_amd_enable_set()
137 i2c_amd_start_cmd(i2c_dev); in i2c_amd_xfer_msg()
248 struct amd_i2c_dev *i2c_dev; in i2c_amd_probe() local
265 i2c_dev = devm_kzalloc(&pdev->dev, sizeof(*i2c_dev), GFP_KERNEL); in i2c_amd_probe()
266 if (!i2c_dev) in i2c_amd_probe()
270 i2c_dev->pdev = pdev; in i2c_amd_probe()
284 i2c_dev->common.bus_id = 0; in i2c_amd_probe()
309 i2c_dev->adap.algo_data = i2c_dev; in i2c_amd_probe()
313 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()
919 struct davinci_i2c_dev *i2c_dev = dev_get_drvdata(dev); in davinci_i2c_suspend() local
922 davinci_i2c_reset_ctrl(i2c_dev, 0); in davinci_i2c_suspend()
929 struct davinci_i2c_dev *i2c_dev = dev_get_drvdata(dev); in davinci_i2c_resume() local
[all …]
A Di2c-brcmstb.c718 struct brcmstb_i2c_dev *i2c_dev = dev_get_drvdata(dev); in brcmstb_i2c_suspend() local
720 i2c_mark_adapter_suspended(&i2c_dev->adapter); in brcmstb_i2c_suspend()
726 struct brcmstb_i2c_dev *i2c_dev = dev_get_drvdata(dev); in brcmstb_i2c_resume() local
728 brcmstb_i2c_set_bsc_reg_defaults(i2c_dev); in brcmstb_i2c_resume()
729 i2c_mark_adapter_resumed(&i2c_dev->adapter); in brcmstb_i2c_resume()
/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
177 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; in hdmi_i2c_read() local
206 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; in hdmi_i2c_transaction_done() local
226 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; in oaktrail_hdmi_i2c_handler() local
282 if (!i2c_dev) in oaktrail_hdmi_i2c_init()
290 hdmi_dev->i2c_dev = i2c_dev; in oaktrail_hdmi_i2c_init()
315 kfree(i2c_dev); in oaktrail_hdmi_i2c_init()
328 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()
643 struct i2c_dev *i2c_dev; in i2cdev_dev_release() local
645 i2c_dev = container_of(dev, struct i2c_dev, dev); in i2cdev_dev_release()
652 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()
194 phy->i2c_dev = client; in s3fwrn5_i2c_probe()
201 ret = devm_gpio_request_one(&phy->i2c_dev->dev, phy->common.gpio_en, in s3fwrn5_i2c_probe()
206 ret = devm_gpio_request_one(&phy->i2c_dev->dev, in s3fwrn5_i2c_probe()
229 ret = s3fwrn5_probe(&phy->common.ndev, phy, &phy->i2c_dev->dev, in s3fwrn5_i2c_probe()
234 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()
183 phy->i2c_dev = client; in pn533_i2c_probe()
189 &phy->i2c_dev->dev); in pn533_i2c_probe()
/linux/drivers/nfc/pn544/
A Di2c.c150 struct i2c_client *i2c_dev; member
215 nfc_info(&phy->i2c_dev->dev, in pn544_hci_i2c_platform_init()
223 nfc_err(&phy->i2c_dev->dev, in pn544_hci_i2c_platform_init()
297 struct i2c_client *client = phy->i2c_dev; in pn544_hci_i2c_write()
361 struct i2c_client *client = phy->i2c_dev; in pn544_hci_i2c_read()
419 struct i2c_client *client = phy->i2c_dev; in pn544_hci_i2c_fw_read_status()
487 if (!phy || irq != phy->i2c_dev->irq) { in pn544_hci_i2c_irq_thread_fn()
492 client = phy->i2c_dev; in pn544_hci_i2c_irq_thread_fn()
704 r = i2c_master_send(phy->i2c_dev, in pn544_hci_i2c_fw_secure_write_frame()
748 &phy->i2c_dev->dev); in pn544_hci_i2c_fw_work()
[all …]
/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()
214 phy->i2c_dev = client; in st_nci_i2c_probe()
/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()
145 struct i2c_client *client = phy->i2c_dev; in nxp_nci_i2c_nci_read()
194 client = phy->i2c_dev; in nxp_nci_i2c_irq_thread_fn()
276 phy->i2c_dev = client; in nxp_nci_i2c_probe()
/linux/drivers/media/usb/em28xx/
A Dem28xx-input.c82 static int em28xx_get_key_terratec(struct i2c_client *i2c_dev, in em28xx_get_key_terratec() argument
89 rc = i2c_master_recv(i2c_dev, &b, 1); in em28xx_get_key_terratec()
113 static int em28xx_get_key_em_haup(struct i2c_client *i2c_dev, in em28xx_get_key_em_haup() argument
120 size = i2c_master_recv(i2c_dev, buf, sizeof(buf)); in em28xx_get_key_em_haup()
143 static int em28xx_get_key_pinnacle_usb_grey(struct i2c_client *i2c_dev, in em28xx_get_key_pinnacle_usb_grey() argument
151 if (i2c_master_recv(i2c_dev, buf, 3) != 3) in em28xx_get_key_pinnacle_usb_grey()
162 static int em28xx_get_key_winfast_usbii_deluxe(struct i2c_client *i2c_dev, in em28xx_get_key_winfast_usbii_deluxe() argument
170 .addr = i2c_dev->addr, in em28xx_get_key_winfast_usbii_deluxe()
174 .addr = i2c_dev->addr, in em28xx_get_key_winfast_usbii_deluxe()
182 if (i2c_transfer(i2c_dev->adapter, msg, 2) != 2) in em28xx_get_key_winfast_usbii_deluxe()
[all …]
/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()
246 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()
262 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_request_firmware()
319 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_patch_otp()
385 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_patch_ram()
452 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_setup()
522 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_post_setup()
586 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_prop_patch_rsp_packet()
599 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_prop_set_production_data_rsp_packet()
612 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_core_get_config_rsp_packet()
696 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()
300 phy->i2c_dev = client; in fdp_nci_i2c_probe()
/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()
353 struct i2c_client *client = phy->i2c_dev; in st21nfca_hci_i2c_read()
427 if (!phy || irq != phy->i2c_dev->irq) { in st21nfca_hci_irq_thread_fn()
509 phy->i2c_dev = client; in st21nfca_hci_i2c_probe()

Completed in 74 milliseconds

12