sh_mobile_i2c_data
int (*setup)(struct sh_mobile_i2c_data *pd);
static void iic_wr(struct sh_mobile_i2c_data *pd, int offs, unsigned char data)
static unsigned char iic_rd(struct sh_mobile_i2c_data *pd, int offs)
static void iic_set_clr(struct sh_mobile_i2c_data *pd, int offs,
static int sh_mobile_i2c_check_timing(struct sh_mobile_i2c_data *pd)
static int sh_mobile_i2c_init(struct sh_mobile_i2c_data *pd)
static int sh_mobile_i2c_v2_init(struct sh_mobile_i2c_data *pd)
static unsigned char i2c_op(struct sh_mobile_i2c_data *pd, enum sh_mobile_i2c_op op)
static int sh_mobile_i2c_isr_tx(struct sh_mobile_i2c_data *pd)
static int sh_mobile_i2c_isr_rx(struct sh_mobile_i2c_data *pd)
struct sh_mobile_i2c_data *pd = dev_id;
static void sh_mobile_i2c_cleanup_dma(struct sh_mobile_i2c_data *pd, bool terminate)
struct sh_mobile_i2c_data *pd = data;
static void sh_mobile_i2c_xfer_dma(struct sh_mobile_i2c_data *pd)
static void start_ch(struct sh_mobile_i2c_data *pd, struct i2c_msg *usr_msg,
static int poll_dte(struct sh_mobile_i2c_data *pd)
static int poll_busy(struct sh_mobile_i2c_data *pd)
static int sh_mobile_xfer(struct sh_mobile_i2c_data *pd,
struct sh_mobile_i2c_data *pd = i2c_get_adapdata(adapter);
struct sh_mobile_i2c_data *pd = i2c_get_adapdata(adapter);
static int sh_mobile_i2c_r8a7740_workaround(struct sh_mobile_i2c_data *pd)
static void sh_mobile_i2c_release_dma(struct sh_mobile_i2c_data *pd)
static int sh_mobile_i2c_hook_irqs(struct platform_device *dev, struct sh_mobile_i2c_data *pd)
struct sh_mobile_i2c_data *pd;
pd = devm_kzalloc(&dev->dev, sizeof(struct sh_mobile_i2c_data), GFP_KERNEL);
struct sh_mobile_i2c_data *pd = platform_get_drvdata(dev);
struct sh_mobile_i2c_data *pd = dev_get_drvdata(dev);
struct sh_mobile_i2c_data *pd = dev_get_drvdata(dev);