Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/i2c/busses/
Di2c-sprd.c92 static void sprd_i2c_set_count(struct sprd_i2c *i2c_dev, u32 count) in sprd_i2c_set_count() argument
94 writel(count, i2c_dev->base + I2C_COUNT); in sprd_i2c_set_count()
97 static void sprd_i2c_send_stop(struct sprd_i2c *i2c_dev, int stop) in sprd_i2c_send_stop() argument
99 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop()
102 writel(tmp & ~STP_EN, i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop()
104 writel(tmp | STP_EN, i2c_dev->base + I2C_CTL); in sprd_i2c_send_stop()
107 static void sprd_i2c_clear_start(struct sprd_i2c *i2c_dev) in sprd_i2c_clear_start() argument
109 u32 tmp = readl(i2c_dev->base + I2C_CTL); in sprd_i2c_clear_start()
111 writel(tmp & ~I2C_START, i2c_dev->base + I2C_CTL); in sprd_i2c_clear_start()
114 static void sprd_i2c_clear_ack(struct sprd_i2c *i2c_dev) in sprd_i2c_clear_ack() argument
[all …]
Di2c-tegra.c213 static void dvc_writel(struct tegra_i2c_dev *i2c_dev, u32 val, in dvc_writel() argument
216 writel(val, i2c_dev->base + reg); in dvc_writel()
219 static u32 dvc_readl(struct tegra_i2c_dev *i2c_dev, unsigned long reg) in dvc_readl() argument
221 return readl(i2c_dev->base + reg); in dvc_readl()
228 static unsigned long tegra_i2c_reg_addr(struct tegra_i2c_dev *i2c_dev, in tegra_i2c_reg_addr() argument
231 if (i2c_dev->is_dvc) in tegra_i2c_reg_addr()
236 static void i2c_writel(struct tegra_i2c_dev *i2c_dev, u32 val, in i2c_writel() argument
239 writel(val, i2c_dev->base + tegra_i2c_reg_addr(i2c_dev, reg)); in i2c_writel()
243 readl(i2c_dev->base + tegra_i2c_reg_addr(i2c_dev, reg)); in i2c_writel()
246 static u32 i2c_readl(struct tegra_i2c_dev *i2c_dev, unsigned long reg) in i2c_readl() argument
[all …]
Di2c-bcm2835.c74 static inline void bcm2835_i2c_writel(struct bcm2835_i2c_dev *i2c_dev, in bcm2835_i2c_writel() argument
77 writel(val, i2c_dev->regs + reg); in bcm2835_i2c_writel()
80 static inline u32 bcm2835_i2c_readl(struct bcm2835_i2c_dev *i2c_dev, u32 reg) in bcm2835_i2c_readl() argument
82 return readl(i2c_dev->regs + reg); in bcm2835_i2c_readl()
85 static int bcm2835_i2c_set_divider(struct bcm2835_i2c_dev *i2c_dev) in bcm2835_i2c_set_divider() argument
89 divider = DIV_ROUND_UP(clk_get_rate(i2c_dev->clk), in bcm2835_i2c_set_divider()
90 i2c_dev->bus_clk_rate); in bcm2835_i2c_set_divider()
100 dev_err_ratelimited(i2c_dev->dev, "Invalid clock-frequency\n"); in bcm2835_i2c_set_divider()
104 bcm2835_i2c_writel(i2c_dev, BCM2835_I2C_DIV, divider); in bcm2835_i2c_set_divider()
119 bcm2835_i2c_writel(i2c_dev, BCM2835_I2C_DEL, in bcm2835_i2c_set_divider()
[all …]
Di2c-st.c238 static void st_i2c_flush_rx_fifo(struct st_i2c_dev *i2c_dev) in st_i2c_flush_rx_fifo() argument
247 if (readl_relaxed(i2c_dev->base + SSC_STA) & SSC_STA_RIR) in st_i2c_flush_rx_fifo()
250 count = readl_relaxed(i2c_dev->base + SSC_RX_FSTAT) & in st_i2c_flush_rx_fifo()
254 readl_relaxed(i2c_dev->base + SSC_RBUF); in st_i2c_flush_rx_fifo()
257 static void st_i2c_soft_reset(struct st_i2c_dev *i2c_dev) in st_i2c_soft_reset() argument
263 st_i2c_flush_rx_fifo(i2c_dev); in st_i2c_soft_reset()
265 st_i2c_set_bits(i2c_dev->base + SSC_CTL, SSC_CTL_SR); in st_i2c_soft_reset()
266 st_i2c_clr_bits(i2c_dev->base + SSC_CTL, SSC_CTL_SR); in st_i2c_soft_reset()
273 static void st_i2c_hw_config(struct st_i2c_dev *i2c_dev) in st_i2c_hw_config() argument
277 struct st_i2c_timings *t = &i2c_timings[i2c_dev->mode]; in st_i2c_hw_config()
[all …]
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 …]
Di2c-owl.c120 static void owl_i2c_reset(struct owl_i2c_dev *i2c_dev) in owl_i2c_reset() argument
122 owl_i2c_update_reg(i2c_dev->base + OWL_I2C_REG_CTL, in owl_i2c_reset()
125 owl_i2c_update_reg(i2c_dev->base + OWL_I2C_REG_CTL, in owl_i2c_reset()
129 writel(0, i2c_dev->base + OWL_I2C_REG_STAT); in owl_i2c_reset()
132 static int owl_i2c_reset_fifo(struct owl_i2c_dev *i2c_dev) in owl_i2c_reset_fifo() argument
137 owl_i2c_update_reg(i2c_dev->base + OWL_I2C_REG_FIFOCTL, in owl_i2c_reset_fifo()
143 val = readl(i2c_dev->base + OWL_I2C_REG_FIFOCTL); in owl_i2c_reset_fifo()
150 dev_err(&i2c_dev->adap.dev, "FIFO reset timeout\n"); in owl_i2c_reset_fifo()
157 static void owl_i2c_set_freq(struct owl_i2c_dev *i2c_dev) in owl_i2c_set_freq() argument
161 val = DIV_ROUND_UP(i2c_dev->clk_rate, i2c_dev->bus_freq * 16); in owl_i2c_set_freq()
[all …]
Di2c-wmt.c97 static int wmt_i2c_wait_bus_not_busy(struct wmt_i2c_dev *i2c_dev) in wmt_i2c_wait_bus_not_busy() argument
102 while (!(readw(i2c_dev->base + REG_CSR) & CSR_READY_MASK)) { in wmt_i2c_wait_bus_not_busy()
104 dev_warn(i2c_dev->dev, "timeout waiting for bus ready\n"); in wmt_i2c_wait_bus_not_busy()
113 static int wmt_check_status(struct wmt_i2c_dev *i2c_dev) in wmt_check_status() argument
117 if (i2c_dev->cmd_status & ISR_NACK_ADDR) in wmt_check_status()
120 if (i2c_dev->cmd_status & ISR_SCL_TIMEOUT) in wmt_check_status()
129 struct wmt_i2c_dev *i2c_dev = i2c_get_adapdata(adap); in wmt_i2c_write() local
136 ret = wmt_i2c_wait_bus_not_busy(i2c_dev); in wmt_i2c_write()
147 writew(0, i2c_dev->base + REG_CDR); in wmt_i2c_write()
149 writew(pmsg->buf[0] & 0xFF, i2c_dev->base + REG_CDR); in wmt_i2c_write()
[all …]
Di2c-stm32f7.c364 static void stm32f7_i2c_disable_irq(struct stm32f7_i2c_dev *i2c_dev, u32 mask) in stm32f7_i2c_disable_irq() argument
366 stm32f7_i2c_clr_bits(i2c_dev->base + STM32F7_I2C_CR1, mask); in stm32f7_i2c_disable_irq()
369 static int stm32f7_i2c_compute_timing(struct stm32f7_i2c_dev *i2c_dev, in stm32f7_i2c_compute_timing() argument
391 dev_err(i2c_dev->dev, "speed out of bound {%d/%d}\n", in stm32f7_i2c_compute_timing()
398 dev_err(i2c_dev->dev, in stm32f7_i2c_compute_timing()
406 dev_err(i2c_dev->dev, in stm32f7_i2c_compute_timing()
413 dev_err(i2c_dev->dev, "ERROR: Freq {%d/%d}\n", in stm32f7_i2c_compute_timing()
440 dev_dbg(i2c_dev->dev, "SDADEL(min/max): %i/%i, SCLDEL(Min): %i\n", in stm32f7_i2c_compute_timing()
477 dev_err(i2c_dev->dev, "no Prescaler solution\n"); in stm32f7_i2c_compute_timing()
534 dev_err(i2c_dev->dev, "no solution at all\n"); in stm32f7_i2c_compute_timing()
[all …]
Di2c-davinci.c153 static inline void davinci_i2c_write_reg(struct davinci_i2c_dev *i2c_dev, in davinci_i2c_write_reg() argument
156 writew_relaxed(val, i2c_dev->base + reg); in davinci_i2c_write_reg()
159 static inline u16 davinci_i2c_read_reg(struct davinci_i2c_dev *i2c_dev, int reg) in davinci_i2c_read_reg() argument
161 return readw_relaxed(i2c_dev->base + reg); in davinci_i2c_read_reg()
164 static inline void davinci_i2c_reset_ctrl(struct davinci_i2c_dev *i2c_dev, in davinci_i2c_reset_ctrl() argument
169 w = davinci_i2c_read_reg(i2c_dev, DAVINCI_I2C_MDR_REG); in davinci_i2c_reset_ctrl()
175 davinci_i2c_write_reg(i2c_dev, DAVINCI_I2C_MDR_REG, w); in davinci_i2c_reset_ctrl()
933 struct davinci_i2c_dev *i2c_dev = dev_get_drvdata(dev); in davinci_i2c_suspend() local
936 davinci_i2c_reset_ctrl(i2c_dev, 0); in davinci_i2c_suspend()
943 struct davinci_i2c_dev *i2c_dev = dev_get_drvdata(dev); in davinci_i2c_resume() local
[all …]
Di2c-brcmstb.c690 struct brcmstb_i2c_dev *i2c_dev = dev_get_drvdata(dev); in brcmstb_i2c_suspend() local
692 i2c_lock_bus(&i2c_dev->adapter, I2C_LOCK_ROOT_ADAPTER); in brcmstb_i2c_suspend()
693 i2c_dev->is_suspended = true; in brcmstb_i2c_suspend()
694 i2c_unlock_bus(&i2c_dev->adapter, I2C_LOCK_ROOT_ADAPTER); in brcmstb_i2c_suspend()
701 struct brcmstb_i2c_dev *i2c_dev = dev_get_drvdata(dev); in brcmstb_i2c_resume() local
703 i2c_lock_bus(&i2c_dev->adapter, I2C_LOCK_ROOT_ADAPTER); in brcmstb_i2c_resume()
704 brcmstb_i2c_set_bsc_reg_defaults(i2c_dev); in brcmstb_i2c_resume()
705 i2c_dev->is_suspended = false; in brcmstb_i2c_resume()
706 i2c_unlock_bus(&i2c_dev->adapter, I2C_LOCK_ROOT_ADAPTER); in brcmstb_i2c_resume()
/Linux-v4.19/drivers/gpu/drm/gma500/
Doaktrail_hdmi_i2c.c96 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; in xfer_read() local
99 i2c_dev->status = I2C_STAT_INIT; in xfer_read()
100 i2c_dev->msg = pmsg; in xfer_read()
101 i2c_dev->buf_offset = 0; in xfer_read()
102 reinit_completion(&i2c_dev->complete); in xfer_read()
109 while (i2c_dev->status != I2C_TRANSACTION_DONE) in xfer_read()
110 wait_for_completion_interruptible_timeout(&i2c_dev->complete, in xfer_read()
129 struct hdmi_i2c_dev *i2c_dev = hdmi_dev->i2c_dev; in oaktrail_hdmi_i2c_access() local
132 mutex_lock(&i2c_dev->i2c_lock); in oaktrail_hdmi_i2c_access()
152 mutex_unlock(&i2c_dev->i2c_lock); in oaktrail_hdmi_i2c_access()
[all …]
/Linux-v4.19/drivers/i2c/
Di2c-dev.c48 struct i2c_dev { struct
59 static struct i2c_dev *i2c_dev_get_by_minor(unsigned index) in i2c_dev_get_by_minor() argument
61 struct i2c_dev *i2c_dev; in i2c_dev_get_by_minor() local
64 list_for_each_entry(i2c_dev, &i2c_dev_list, list) { in i2c_dev_get_by_minor()
65 if (i2c_dev->adap->nr == index) in i2c_dev_get_by_minor()
68 i2c_dev = NULL; in i2c_dev_get_by_minor()
71 return i2c_dev; in i2c_dev_get_by_minor()
74 static struct i2c_dev *get_free_i2c_dev(struct i2c_adapter *adap) in get_free_i2c_dev()
76 struct i2c_dev *i2c_dev; in get_free_i2c_dev() local
84 i2c_dev = kzalloc(sizeof(*i2c_dev), GFP_KERNEL); in get_free_i2c_dev()
[all …]
/Linux-v4.19/drivers/platform/chrome/
Dchromeos_laptop.c133 struct i2c_peripheral *i2c_dev; in chromeos_laptop_check_adapter() local
137 i2c_dev = &cros_laptop->i2c_peripherals[i]; in chromeos_laptop_check_adapter()
140 if (i2c_dev->client) in chromeos_laptop_check_adapter()
143 if (strncmp(adapter->name, i2c_adapter_names[i2c_dev->type], in chromeos_laptop_check_adapter()
144 strlen(i2c_adapter_names[i2c_dev->type]))) in chromeos_laptop_check_adapter()
147 if (i2c_dev->pci_devid && in chromeos_laptop_check_adapter()
149 i2c_dev->pci_devid)) { in chromeos_laptop_check_adapter()
153 i2c_dev->client = in chromeos_laptop_check_adapter()
155 &i2c_dev->board_info, in chromeos_laptop_check_adapter()
156 i2c_dev->alt_addr); in chromeos_laptop_check_adapter()
[all …]
/Linux-v4.19/drivers/nfc/s3fwrn5/
Di2c.c37 struct i2c_client *i2c_dev; member
110 ret = i2c_master_send(phy->i2c_dev, skb->data, skb->len); in s3fwrn5_i2c_write()
114 ret = i2c_master_send(phy->i2c_dev, skb->data, skb->len); in s3fwrn5_i2c_write()
145 ret = i2c_master_recv(phy->i2c_dev, hdr, hdr_size); in s3fwrn5_i2c_read()
165 ret = i2c_master_recv(phy->i2c_dev, skb_put(skb, data_len), data_len); in s3fwrn5_i2c_read()
239 phy->i2c_dev = client; in s3fwrn5_i2c_probe()
246 ret = devm_gpio_request_one(&phy->i2c_dev->dev, phy->gpio_en, in s3fwrn5_i2c_probe()
251 ret = devm_gpio_request_one(&phy->i2c_dev->dev, phy->gpio_fw_wake, in s3fwrn5_i2c_probe()
256 ret = s3fwrn5_probe(&phy->ndev, phy, &phy->i2c_dev->dev, &i2c_phy_ops, in s3fwrn5_i2c_probe()
261 ret = devm_request_threaded_irq(&client->dev, phy->i2c_dev->irq, NULL, in s3fwrn5_i2c_probe()
/Linux-v4.19/drivers/nfc/pn533/
Di2c.c39 struct i2c_client *i2c_dev; member
53 struct i2c_client *client = phy->i2c_dev; in pn533_i2c_send_ack()
67 struct i2c_client *client = phy->i2c_dev; in pn533_i2c_send_frame()
113 struct i2c_client *client = phy->i2c_dev; in pn533_i2c_read()
151 if (!phy || irq != phy->i2c_dev->irq) { in pn533_i2c_irq_thread_fn()
156 client = phy->i2c_dev; in pn533_i2c_irq_thread_fn()
206 phy->i2c_dev = client; in pn533_i2c_probe()
213 &phy->i2c_dev->dev, in pn533_i2c_probe()
/Linux-v4.19/drivers/nfc/st-nci/
Di2c.c44 struct i2c_client *i2c_dev; member
64 enable_irq(phy->i2c_dev->irq); in st_nci_i2c_enable()
75 disable_irq_nosync(phy->i2c_dev->irq); in st_nci_i2c_disable()
88 struct i2c_client *client = phy->i2c_dev; in st_nci_i2c_write()
123 struct i2c_client *client = phy->i2c_dev; in st_nci_i2c_read()
175 if (!phy || !phy->ndlc || irq != phy->i2c_dev->irq) { in st_nci_irq_thread_fn()
180 client = phy->i2c_dev; in st_nci_irq_thread_fn()
232 phy->i2c_dev = client; in st_nci_i2c_probe()
/Linux-v4.19/drivers/nfc/fdp/
Dfdp.c171 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_set_data_pkt_counter()
250 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_open()
262 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_close()
271 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_send()
284 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_recv_frame()
294 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_request_firmware()
354 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_patch_otp()
425 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_patch_ram()
497 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_setup()
569 struct device *dev = &info->phy->i2c_dev->dev; in fdp_nci_post_setup()
[all …]
Di2c.c60 dev_dbg(&phy->i2c_dev->dev, "%s\n", __func__); in fdp_nci_i2c_enable()
70 dev_dbg(&phy->i2c_dev->dev, "%s\n", __func__); in fdp_nci_i2c_disable()
100 struct i2c_client *client = phy->i2c_dev; in fdp_nci_i2c_write()
144 struct i2c_client *client = phy->i2c_dev; in fdp_nci_i2c_read()
212 if (!phy || irq != phy->i2c_dev->irq) { in fdp_nci_i2c_irq_thread_fn()
217 client = phy->i2c_dev; in fdp_nci_i2c_irq_thread_fn()
316 phy->i2c_dev = client; in fdp_nci_i2c_probe()
/Linux-v4.19/drivers/nfc/nxp-nci/
Di2c.c49 struct i2c_client *i2c_dev; member
80 struct i2c_client *client = phy->i2c_dev; in nxp_nci_i2c_write()
115 struct i2c_client *client = phy->i2c_dev; in nxp_nci_i2c_fw_read()
161 struct i2c_client *client = phy->i2c_dev; in nxp_nci_i2c_nci_read()
210 client = phy->i2c_dev; in nxp_nci_i2c_irq_thread_fn()
297 struct i2c_client *client = phy->i2c_dev; in nxp_nci_i2c_acpi_config()
334 phy->i2c_dev = client; in nxp_nci_i2c_probe()
359 r = devm_gpio_request_one(&phy->i2c_dev->dev, phy->gpio_en, in nxp_nci_i2c_probe()
364 r = devm_gpio_request_one(&phy->i2c_dev->dev, phy->gpio_fw, in nxp_nci_i2c_probe()
/Linux-v4.19/drivers/nfc/pn544/
Di2c.c161 struct i2c_client *i2c_dev; member
205 nfc_info(&phy->i2c_dev->dev, "Detecting nfc_en polarity\n"); in pn544_hci_i2c_platform_init()
223 dev_dbg(&phy->i2c_dev->dev, "Sending reset cmd\n"); in pn544_hci_i2c_platform_init()
224 ret = i2c_master_send(phy->i2c_dev, rset_cmd, count); in pn544_hci_i2c_platform_init()
226 nfc_info(&phy->i2c_dev->dev, in pn544_hci_i2c_platform_init()
234 nfc_err(&phy->i2c_dev->dev, in pn544_hci_i2c_platform_init()
309 struct i2c_client *client = phy->i2c_dev; in pn544_hci_i2c_write()
373 struct i2c_client *client = phy->i2c_dev; in pn544_hci_i2c_read()
431 struct i2c_client *client = phy->i2c_dev; in pn544_hci_i2c_fw_read_status()
499 if (!phy || irq != phy->i2c_dev->irq) { in pn544_hci_i2c_irq_thread_fn()
[all …]
/Linux-v4.19/sound/i2c/other/
Dpt2258.c54 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset()
62 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in snd_pt2258_reset()
72 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in snd_pt2258_reset()
125 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in pt2258_stereo_volume_put()
133 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 2) != 2) in pt2258_stereo_volume_put()
170 if (snd_i2c_sendbytes(pt->i2c_dev, bytes, 1) != 1) in pt2258_switch_put()
/Linux-v4.19/drivers/nfc/microread/
Di2c.c50 struct i2c_client *i2c_dev; member
118 struct i2c_client *client = phy->i2c_dev; in microread_i2c_write()
155 struct i2c_client *client = phy->i2c_dev; in microread_i2c_read()
215 if (!phy || irq != phy->i2c_dev->irq) { in microread_i2c_irq_thread_fn()
259 phy->i2c_dev = client; in microread_i2c_probe()
/Linux-v4.19/drivers/nfc/st21nfca/
Di2c.c65 struct i2c_client *i2c_dev; member
114 r = i2c_master_send(phy->i2c_dev, reboot_cmd, in st21nfca_hci_platform_init()
126 r = i2c_master_recv(phy->i2c_dev, tmp, in st21nfca_hci_platform_init()
199 struct i2c_client *client = phy->i2c_dev; in st21nfca_hci_i2c_write()
366 struct i2c_client *client = phy->i2c_dev; in st21nfca_hci_i2c_read()
441 if (!phy || irq != phy->i2c_dev->irq) { in st21nfca_hci_irq_thread_fn()
446 client = phy->i2c_dev; in st21nfca_hci_irq_thread_fn()
529 phy->i2c_dev = client; in st21nfca_hci_i2c_probe()
/Linux-v4.19/drivers/media/usb/em28xx/
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-v4.19/include/sound/
Dpt2258.h28 struct snd_i2c_device *i2c_dev; member

12