Home
last modified time | relevance | path

Searched refs:li2c (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/drivers/gpu/drm/loongson/
Dlsdc_i2c.c16 static void __lsdc_gpio_i2c_set(struct lsdc_i2c * const li2c, int mask, int state) in __lsdc_gpio_i2c_set() argument
18 struct lsdc_device *ldev = to_lsdc(li2c->ddev); in __lsdc_gpio_i2c_set()
29 val = readb(li2c->dir_reg); in __lsdc_gpio_i2c_set()
31 writeb(val, li2c->dir_reg); in __lsdc_gpio_i2c_set()
34 val = readb(li2c->dir_reg); in __lsdc_gpio_i2c_set()
36 writeb(val, li2c->dir_reg); in __lsdc_gpio_i2c_set()
39 val = readb(li2c->dat_reg); in __lsdc_gpio_i2c_set()
41 writeb(val, li2c->dat_reg); in __lsdc_gpio_i2c_set()
52 static int __lsdc_gpio_i2c_get(struct lsdc_i2c * const li2c, int mask) in __lsdc_gpio_i2c_get() argument
54 struct lsdc_device *ldev = to_lsdc(li2c->ddev); in __lsdc_gpio_i2c_get()
[all …]
Dlsdc_drv.c85 if (dispipe->li2c) in lsdc_modeset_init()
86 ddc = &dispipe->li2c->adapter; in lsdc_modeset_init()
Dlsdc_drv.h192 struct lsdc_i2c *li2c; member