Home
last modified time | relevance | path

Searched refs:adap (Results 1 – 2 of 2) sorted by relevance

/arch/mips/mti-sead3/
Dsead3-i2c-drv.c110 struct i2c_adapter adap; member
116 static inline void pic32_i2c_start(struct pic32_i2c_platform_data *adap) in pic32_i2c_start() argument
118 pic32_bus_writel(PIC32_I2CCON_SEN, adap->base + PIC32_I2CxCONSET); in pic32_i2c_start()
121 static inline void pic32_i2c_stop(struct pic32_i2c_platform_data *adap) in pic32_i2c_stop() argument
123 pic32_bus_writel(PIC32_I2CCON_PEN, adap->base + PIC32_I2CxCONSET); in pic32_i2c_stop()
126 static inline void pic32_i2c_ack(struct pic32_i2c_platform_data *adap) in pic32_i2c_ack() argument
128 pic32_bus_writel(PIC32_I2CCON_ACKDT, adap->base + PIC32_I2CxCONCLR); in pic32_i2c_ack()
129 pic32_bus_writel(PIC32_I2CCON_ACKEN, adap->base + PIC32_I2CxCONSET); in pic32_i2c_ack()
132 static inline void pic32_i2c_nack(struct pic32_i2c_platform_data *adap) in pic32_i2c_nack() argument
134 pic32_bus_writel(PIC32_I2CCON_ACKDT, adap->base + PIC32_I2CxCONSET); in pic32_i2c_nack()
[all …]
/arch/arm/mach-omap1/
Dboard-sx1.c51 struct i2c_adapter *adap; in sx1_i2c_write_byte() local
56 adap = i2c_get_adapter(0); in sx1_i2c_write_byte()
57 if (!adap) in sx1_i2c_write_byte()
65 err = i2c_transfer(adap, msg, 1); in sx1_i2c_write_byte()
66 i2c_put_adapter(adap); in sx1_i2c_write_byte()
75 struct i2c_adapter *adap; in sx1_i2c_read_byte() local
80 adap = i2c_get_adapter(0); in sx1_i2c_read_byte()
81 if (!adap) in sx1_i2c_read_byte()
89 err = i2c_transfer(adap, msg, 1); in sx1_i2c_read_byte()
95 err = i2c_transfer(adap, msg, 1); in sx1_i2c_read_byte()
[all …]