Searched refs:i2c_dev (Results 1 - 17 of 17) sorted by relevance

/drivers/i2c/busses/
H A Di2c-bcm2835.c67 static inline void bcm2835_i2c_writel(struct bcm2835_i2c_dev *i2c_dev, argument
70 writel(val, i2c_dev->regs + reg);
73 static inline u32 bcm2835_i2c_readl(struct bcm2835_i2c_dev *i2c_dev, u32 reg) argument
75 return readl(i2c_dev->regs + reg);
78 static void bcm2835_fill_txfifo(struct bcm2835_i2c_dev *i2c_dev) argument
82 while (i2c_dev->msg_buf_remaining) {
83 val = bcm2835_i2c_readl(i2c_dev, BCM2835_I2C_S);
86 bcm2835_i2c_writel(i2c_dev, BCM2835_I2C_FIFO,
87 *i2c_dev->msg_buf);
88 i2c_dev
93 bcm2835_drain_rxfifo(struct bcm2835_i2c_dev *i2c_dev) argument
110 struct bcm2835_i2c_dev *i2c_dev = data; local
146 bcm2835_i2c_xfer_msg(struct bcm2835_i2c_dev *i2c_dev, struct i2c_msg *msg) argument
196 struct bcm2835_i2c_dev *i2c_dev = i2c_get_adapdata(adap); local
221 struct bcm2835_i2c_dev *i2c_dev; local
297 struct bcm2835_i2c_dev *i2c_dev = platform_get_drvdata(pdev); local
[all...]
H A Di2c-wmt.c97 static int wmt_i2c_wait_bus_not_busy(struct wmt_i2c_dev *i2c_dev) argument
102 while (!(readw(i2c_dev->base + REG_CSR) & CSR_READY_MASK)) {
104 dev_warn(i2c_dev->dev, "timeout waiting for bus ready\n");
113 static int wmt_check_status(struct wmt_i2c_dev *i2c_dev) argument
117 if (i2c_dev->cmd_status & ISR_NACK_ADDR)
120 if (i2c_dev->cmd_status & ISR_SCL_TIMEOUT)
129 struct wmt_i2c_dev *i2c_dev = i2c_get_adapdata(adap); local
135 ret = wmt_i2c_wait_bus_not_busy(i2c_dev);
146 writew(0, i2c_dev->base + REG_CDR);
148 writew(pmsg->buf[0] & 0xFF, i2c_dev
219 struct wmt_i2c_dev *i2c_dev = i2c_get_adapdata(adap); local
328 struct wmt_i2c_dev *i2c_dev = data; local
339 wmt_i2c_reset_hardware(struct wmt_i2c_dev *i2c_dev) argument
375 struct wmt_i2c_dev *i2c_dev; local
445 struct wmt_i2c_dev *i2c_dev = platform_get_drvdata(pdev); local
[all...]
H A Di2c-tegra.c178 static void dvc_writel(struct tegra_i2c_dev *i2c_dev, u32 val, unsigned long reg) argument
180 writel(val, i2c_dev->base + reg);
183 static u32 dvc_readl(struct tegra_i2c_dev *i2c_dev, unsigned long reg) argument
185 return readl(i2c_dev->base + reg);
192 static unsigned long tegra_i2c_reg_addr(struct tegra_i2c_dev *i2c_dev, argument
195 if (i2c_dev->is_dvc)
200 static void i2c_writel(struct tegra_i2c_dev *i2c_dev, u32 val, argument
203 writel(val, i2c_dev->base + tegra_i2c_reg_addr(i2c_dev, reg));
207 readl(i2c_dev
210 i2c_readl(struct tegra_i2c_dev *i2c_dev, unsigned long reg) argument
215 i2c_writesl(struct tegra_i2c_dev *i2c_dev, void *data, unsigned long reg, int len) argument
221 i2c_readsl(struct tegra_i2c_dev *i2c_dev, void *data, unsigned long reg, int len) argument
227 tegra_i2c_mask_irq(struct tegra_i2c_dev *i2c_dev, u32 mask) argument
234 tegra_i2c_unmask_irq(struct tegra_i2c_dev *i2c_dev, u32 mask) argument
241 tegra_i2c_flush_fifos(struct tegra_i2c_dev *i2c_dev) argument
259 tegra_i2c_empty_rx_fifo(struct tegra_i2c_dev *i2c_dev) argument
300 tegra_i2c_fill_tx_fifo(struct tegra_i2c_dev *i2c_dev) argument
366 tegra_dvc_init(struct tegra_i2c_dev *i2c_dev) argument
379 tegra_i2c_clock_enable(struct tegra_i2c_dev *i2c_dev) argument
399 tegra_i2c_clock_disable(struct tegra_i2c_dev *i2c_dev) argument
406 tegra_i2c_init(struct tegra_i2c_dev *i2c_dev) argument
466 struct tegra_i2c_dev *i2c_dev = dev_id; local
528 tegra_i2c_xfer_msg(struct tegra_i2c_dev *i2c_dev, struct i2c_msg *msg, enum msg_end_type end_state) argument
623 struct tegra_i2c_dev *i2c_dev = i2c_get_adapdata(adap); local
654 struct tegra_i2c_dev *i2c_dev = i2c_get_adapdata(adap); local
704 struct tegra_i2c_dev *i2c_dev; local
842 struct tegra_i2c_dev *i2c_dev = platform_get_drvdata(pdev); local
855 struct tegra_i2c_dev *i2c_dev = dev_get_drvdata(dev); local
866 struct tegra_i2c_dev *i2c_dev = dev_get_drvdata(dev); local
[all...]
H A Di2c-st.c237 static void st_i2c_flush_rx_fifo(struct st_i2c_dev *i2c_dev) argument
246 if (readl_relaxed(i2c_dev->base + SSC_STA) & SSC_STA_RIR)
249 count = readl_relaxed(i2c_dev->base + SSC_RX_FSTAT) &
253 readl_relaxed(i2c_dev->base + SSC_RBUF);
256 static void st_i2c_soft_reset(struct st_i2c_dev *i2c_dev) argument
262 st_i2c_flush_rx_fifo(i2c_dev);
264 st_i2c_set_bits(i2c_dev->base + SSC_CTL, SSC_CTL_SR);
265 st_i2c_clr_bits(i2c_dev->base + SSC_CTL, SSC_CTL_SR);
270 * @i2c_dev: Controller's private data
272 static void st_i2c_hw_config(struct st_i2c_dev *i2c_dev) argument
339 st_i2c_wait_free_bus(struct st_i2c_dev *i2c_dev) argument
362 st_i2c_write_tx_fifo(struct st_i2c_dev *i2c_dev, u8 byte) argument
376 st_i2c_wr_fill_tx_fifo(struct st_i2c_dev *i2c_dev) argument
405 st_i2c_rd_fill_tx_fifo(struct st_i2c_dev *i2c_dev, int max) argument
427 st_i2c_read_rx_fifo(struct st_i2c_dev *i2c_dev) argument
456 st_i2c_terminate_xfer(struct st_i2c_dev *i2c_dev) argument
476 st_i2c_handle_write(struct st_i2c_dev *i2c_dev) argument
493 st_i2c_handle_read(struct st_i2c_dev *i2c_dev) argument
530 struct st_i2c_dev *i2c_dev = data; local
608 st_i2c_xfer_msg(struct st_i2c_dev *i2c_dev, struct i2c_msg *msg, bool is_first, bool is_last) argument
680 struct st_i2c_dev *i2c_dev = i2c_get_adapdata(i2c_adap); local
712 struct st_i2c_dev *i2c_dev = platform_get_drvdata(pdev); local
747 st_i2c_of_get_deglitch(struct device_node *np, struct st_i2c_dev *i2c_dev) argument
772 struct st_i2c_dev *i2c_dev; local
849 struct st_i2c_dev *i2c_dev = platform_get_drvdata(pdev); local
[all...]
H A Di2c-davinci.c121 static inline void davinci_i2c_write_reg(struct davinci_i2c_dev *i2c_dev, argument
124 writew_relaxed(val, i2c_dev->base + reg);
127 static inline u16 davinci_i2c_read_reg(struct davinci_i2c_dev *i2c_dev, int reg) argument
129 return readw_relaxed(i2c_dev->base + reg);
169 static inline void davinci_i2c_reset_ctrl(struct davinci_i2c_dev *i2c_dev, argument
174 w = davinci_i2c_read_reg(i2c_dev, DAVINCI_I2C_MDR_REG);
180 davinci_i2c_write_reg(i2c_dev, DAVINCI_I2C_MDR_REG, w);
751 struct davinci_i2c_dev *i2c_dev = platform_get_drvdata(pdev); local
754 davinci_i2c_reset_ctrl(i2c_dev, 0);
755 clk_disable_unprepare(i2c_dev
763 struct davinci_i2c_dev *i2c_dev = platform_get_drvdata(pdev); local
[all...]
H A Di2c-omap.c262 static inline void omap_i2c_write_reg(struct omap_i2c_dev *i2c_dev, argument
265 writew_relaxed(val, i2c_dev->base +
266 (i2c_dev->regs[reg] << i2c_dev->reg_shift));
269 static inline u16 omap_i2c_read_reg(struct omap_i2c_dev *i2c_dev, int reg) argument
271 return readw_relaxed(i2c_dev->base +
272 (i2c_dev->regs[reg] << i2c_dev->reg_shift));
/drivers/gpu/drm/gma500/
H A Doaktrail_hdmi_i2c.c96 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; local
99 i2c_dev->status = I2C_STAT_INIT;
100 i2c_dev->msg = pmsg;
101 i2c_dev->buf_offset = 0;
102 reinit_completion(&i2c_dev->complete);
109 while (i2c_dev->status != I2C_TRANSACTION_DONE)
110 wait_for_completion_interruptible_timeout(&i2c_dev->complete,
129 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; local
177 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; local
206 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; local
226 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; local
276 struct hdmi_i2c_dev *i2c_dev; local
319 struct hdmi_i2c_dev *i2c_dev; local
[all...]
H A Doaktrail.h227 struct hdmi_i2c_dev *i2c_dev; member in struct:oaktrail_hdmi_dev
/drivers/i2c/
H A Di2c-dev.c39 * An i2c_dev represents an i2c_adapter ... an I2C or SMBus master, not a
43 * The list of i2c_dev structures is parallel to the i2c_adapter lists
46 struct i2c_dev { struct
56 static struct i2c_dev *i2c_dev_get_by_minor(unsigned index)
58 struct i2c_dev *i2c_dev; local
61 list_for_each_entry(i2c_dev, &i2c_dev_list, list) {
62 if (i2c_dev->adap->nr == index)
65 i2c_dev = NULL;
68 return i2c_dev;
73 struct i2c_dev *i2c_dev; local
92 return_i2c_dev(struct i2c_dev *i2c_dev) argument
103 struct i2c_dev *i2c_dev = i2c_dev_get_by_minor(MINOR(dev->devt)); local
489 struct i2c_dev *i2c_dev; local
547 struct i2c_dev *i2c_dev; local
578 struct i2c_dev *i2c_dev; local
[all...]
/drivers/platform/chrome/
H A Dchromeos_laptop.c348 struct i2c_peripheral *i2c_dev; local
350 i2c_dev = &cros_laptop->i2c_peripherals[i];
353 if (i2c_dev->add == NULL)
356 if (i2c_dev->state == TIMEDOUT || i2c_dev->state == PROBED)
364 if (find_i2c_adapter_num(i2c_dev->type) == -ENODEV) {
370 if (i2c_dev->add(i2c_dev->type) == -EAGAIN) {
375 if (++i2c_dev->tries < MAX_I2C_DEVICE_DEFERRALS) {
381 i2c_dev
[all...]
/drivers/nfc/microread/
H A Di2c.c50 struct i2c_client *i2c_dev; member in struct:microread_i2c_phy
120 struct i2c_client *client = phy->i2c_dev;
157 struct i2c_client *client = phy->i2c_dev;
218 if (!phy || irq != phy->i2c_dev->irq) {
223 client = phy->i2c_dev;
272 phy->i2c_dev = client;
/drivers/nfc/st21nfcb/
H A Di2c.c50 struct i2c_client *i2c_dev; member in struct:st21nfcb_i2c_phy
107 struct i2c_client *client = phy->i2c_dev;
151 struct i2c_client *client = phy->i2c_dev;
205 if (!phy || irq != phy->i2c_dev->irq) {
210 client = phy->i2c_dev;
352 phy->i2c_dev = client;
/drivers/nfc/pn544/
H A Di2c.c151 struct i2c_client *i2c_dev; member in struct:pn544_i2c_phy
195 nfc_info(&phy->i2c_dev->dev, "Detecting nfc_en polarity\n");
213 dev_dbg(&phy->i2c_dev->dev, "Sending reset cmd\n");
214 ret = i2c_master_send(phy->i2c_dev, rset_cmd, count);
216 nfc_info(&phy->i2c_dev->dev,
224 nfc_err(&phy->i2c_dev->dev,
299 struct i2c_client *client = phy->i2c_dev;
363 struct i2c_client *client = phy->i2c_dev;
421 struct i2c_client *client = phy->i2c_dev;
489 if (!phy || irq != phy->i2c_dev
[all...]
/drivers/nfc/st21nfca/
H A Di2c.c71 struct i2c_client *i2c_dev; member in struct:st21nfca_i2c_phy
120 r = i2c_master_send(phy->i2c_dev, reboot_cmd,
132 r = i2c_master_recv(phy->i2c_dev, tmp,
206 struct i2c_client *client = phy->i2c_dev;
374 struct i2c_client *client = phy->i2c_dev;
449 if (!phy || irq != phy->i2c_dev->irq) {
454 client = phy->i2c_dev;
628 phy->i2c_dev = client;
/drivers/media/usb/em28xx/
H A Dem28xx-input.c84 static int em28xx_get_key_terratec(struct i2c_client *i2c_dev, argument
90 if (1 != i2c_master_recv(i2c_dev, &b, 1))
108 static int em28xx_get_key_em_haup(struct i2c_client *i2c_dev, argument
115 size = i2c_master_recv(i2c_dev, buf, sizeof(buf));
138 static int em28xx_get_key_pinnacle_usb_grey(struct i2c_client *i2c_dev, argument
145 if (3 != i2c_master_recv(i2c_dev, buf, 3))
156 static int em28xx_get_key_winfast_usbii_deluxe(struct i2c_client *i2c_dev, argument
161 struct i2c_msg msg[] = { { .addr = i2c_dev->addr, .flags = 0, .buf = &subaddr, .len = 1},
162 { .addr = i2c_dev->addr, .flags = I2C_M_RD, .buf = &keydetect, .len = 1} };
165 if (2 != i2c_transfer(i2c_dev
[all...]
/drivers/media/pci/bt8xx/
H A Dbttv-input.c381 struct i2c_client *i2c_dev; local
401 i2c_dev = i2c_new_device(&btv->c.i2c_adap, &info);
411 i2c_dev = i2c_new_probed_device(&btv->c.i2c_adap, &info, addr_list, NULL);
413 if (NULL == i2c_dev)
/drivers/scsi/esas2r/
H A Datioctl.h802 u8 i2c_dev; member in union:atto_hba_memory_read_write::__anon5322

Completed in 1505 milliseconds