Lines Matching defs:i2c

245 #define xiic_tx_space(i2c) ((i2c)->tx_msg->len - (i2c)->tx_pos)  argument
246 #define xiic_rx_space(i2c) ((i2c)->rx_msg->len - (i2c)->rx_pos) argument
253 struct xiic_i2c *i2c = dev_get_drvdata(dev); in xiic_i2c_runtime_suspend() local
262 struct xiic_i2c *i2c = dev_get_drvdata(dev); in xiic_i2c_runtime_resume() local
282 static inline void xiic_setreg8(struct xiic_i2c *i2c, int reg, u8 value) in xiic_setreg8()
290 static inline u8 xiic_getreg8(struct xiic_i2c *i2c, int reg) in xiic_getreg8()
301 static inline void xiic_setreg16(struct xiic_i2c *i2c, int reg, u16 value) in xiic_setreg16()
309 static inline void xiic_setreg32(struct xiic_i2c *i2c, int reg, int value) in xiic_setreg32()
317 static inline int xiic_getreg32(struct xiic_i2c *i2c, int reg) in xiic_getreg32()
328 static inline void xiic_irq_dis(struct xiic_i2c *i2c, u32 mask) in xiic_irq_dis()
335 static inline void xiic_irq_en(struct xiic_i2c *i2c, u32 mask) in xiic_irq_en()
342 static inline void xiic_irq_clr(struct xiic_i2c *i2c, u32 mask) in xiic_irq_clr()
349 static inline void xiic_irq_clr_en(struct xiic_i2c *i2c, u32 mask) in xiic_irq_clr_en()
355 static int xiic_clear_rx_fifo(struct xiic_i2c *i2c) in xiic_clear_rx_fifo()
374 static int xiic_wait_tx_empty(struct xiic_i2c *i2c) in xiic_wait_tx_empty()
404 static int xiic_setclk(struct xiic_i2c *i2c) in xiic_setclk()
479 static int xiic_reinit(struct xiic_i2c *i2c) in xiic_reinit()
512 static void xiic_deinit(struct xiic_i2c *i2c) in xiic_deinit()
523 static void xiic_smbus_block_read_setup(struct xiic_i2c *i2c) in xiic_smbus_block_read_setup()
579 static void xiic_read_rx(struct xiic_i2c *i2c) in xiic_read_rx()
651 static bool xiic_error_check(struct xiic_i2c *i2c) in xiic_error_check()
671 static int xiic_tx_fifo_space(struct xiic_i2c *i2c) in xiic_tx_fifo_space()
677 static void xiic_fill_tx_fifo(struct xiic_i2c *i2c) in xiic_fill_tx_fifo()
719 static void xiic_wakeup(struct xiic_i2c *i2c, enum xilinx_i2c_state code) in xiic_wakeup()
730 struct xiic_i2c *i2c = dev_id; in xiic_process() local
900 static int xiic_bus_busy(struct xiic_i2c *i2c) in xiic_bus_busy()
907 static int xiic_wait_not_busy(struct xiic_i2c *i2c) in xiic_wait_not_busy()
928 static void xiic_recv_atomic(struct xiic_i2c *i2c) in xiic_recv_atomic()
953 static void xiic_start_recv(struct xiic_i2c *i2c) in xiic_start_recv()
1082 static void xiic_send_rem_atomic(struct xiic_i2c *i2c) in xiic_send_rem_atomic()
1124 static void xiic_start_send(struct xiic_i2c *i2c) in xiic_start_send()
1208 static void __xiic_start_xfer(struct xiic_i2c *i2c) in __xiic_start_xfer()
1233 static int xiic_start_xfer(struct xiic_i2c *i2c, struct i2c_msg *msgs, int num) in xiic_start_xfer()
1325 struct xiic_i2c *i2c = i2c_get_adapdata(adap); in xiic_xfer() local
1359 struct xiic_i2c *i2c = i2c_get_adapdata(adap); in xiic_xfer_atomic() local
1427 struct xiic_i2c *i2c; in xiic_i2c_probe() local
1544 struct xiic_i2c *i2c = platform_get_drvdata(pdev); in xiic_i2c_remove() local