Lines Matching defs:cfg

58     volatile struct mux_cfg *cfg = (volatile struct mux_cfg *)_cfg;
60 v = cfg->con;
63 ZF_LOGD("con.%d @ 0x%08x : 0x%08x->0x%08x\n", pin, (uint32_t)&cfg->con, cfg->con, v);
64 cfg->con = v;
65 cfg->conpdn |= 0x3 << BITFIELD_SHIFT(pin, 2);
70 volatile struct mux_cfg *cfg = (volatile struct mux_cfg *)_cfg;
72 v = cfg->dat;
77 ZF_LOGD("dat.%d @ 0x%08x : 0x%08x->0x%08x\n", pin, (uint32_t)&cfg->dat, cfg->dat, v);
78 cfg->dat = v;
83 volatile struct mux_cfg *cfg = (volatile struct mux_cfg *)_cfg;
85 val = cfg->dat;
90 static void exynos_mux_set_pud(struct mux_cfg *cfg, int pin, int pud)
93 v = cfg->pud;
96 ZF_LOGD("pud.%d @ 0x%08x : 0x%08x->0x%08x\n", pin, (uint32_t)&cfg->pud, cfg->pud, v);
97 cfg->pud = v;
98 cfg->pudpdn = v;
103 volatile struct mux_cfg *cfg = (volatile struct mux_cfg *)_cfg;
128 v = cfg->drv;
131 ZF_LOGD("drv @ 0x%08x : 0x%08x->0x%08x\n", (uint32_t)&cfg->drv, cfg->drv, v);
132 cfg->drv = v;
135 static void exynos_mux_configure(struct mux_cfg *cfg, int pin,
138 exynos_mux_set_pud(cfg, pin, pud);
139 exynos_mux_set_drv(cfg, pin, drv);
140 exynos_mux_set_con(cfg, pin, con);
153 struct mux_cfg *cfg;
160 cfg = get_mux_cfg(mux, data->port);
161 assert(cfg);
163 exynos_mux_configure(cfg, data->pin,
167 ZF_LOGD("con.%d @ 0x%08x : 0x%08x (conpdn:0x%08x)\n", data->pin, (uint32_t)&cfg->con, cfg->con, cfg->conpdn);
398 struct mux_cfg *cfg;
405 cfg = get_gpio_cfg(gpio);
406 if (cfg == NULL) {
411 exynos_mux_configure(cfg, GPIOID_PIN(id), 0x0, PUD_PULLUP, 1);
413 exynos_mux_configure(cfg, GPIOID_PIN(id), 0x1, PUD_NONE, 1);
420 exynos_mux_configure(cfg, GPIOID_PIN(id), 0xf, PUD_PULLUP, 1);
428 struct mux_cfg *cfg;
429 cfg = get_gpio_cfg(gpio);
431 exynos_mux_set_dat(cfg, GPIOID_PIN(gpio->id), 1);
433 exynos_mux_set_dat(cfg, GPIOID_PIN(gpio->id), 0);
440 struct mux_cfg *cfg;
441 cfg = get_gpio_cfg(gpio);
442 if (exynos_mux_get_dat(cfg, GPIOID_PIN(gpio->id))) {