Lines Matching refs:mapped_reg
32 static unsigned long gpio_read_raw_reg(void *mapped_reg, in gpio_read_raw_reg() argument
38 return readb(mapped_reg); in gpio_read_raw_reg()
40 return readw(mapped_reg); in gpio_read_raw_reg()
42 return readl(mapped_reg); in gpio_read_raw_reg()
49 static void gpio_write_raw_reg(void *mapped_reg, in gpio_write_raw_reg() argument
55 writeb(data, mapped_reg); in gpio_write_raw_reg()
58 writew(data, mapped_reg); in gpio_write_raw_reg()
61 writel(data, mapped_reg); in gpio_write_raw_reg()
79 return (gpio_read_raw_reg(dr->mapped_reg + offset, in gpio_read_bit()
99 gpio_write_raw_reg(dr->mapped_reg, dr->reg_width, dr->reg_shadow); in gpio_write_bit()
132 void *mapped_reg; in read_config_reg() local
136 config_reg_helper(gpioc, crp, field, &mapped_reg, &mask, &pos); in read_config_reg()
142 return (gpio_read_raw_reg(mapped_reg, crp->reg_width) >> pos) & mask; in read_config_reg()
149 void *mapped_reg; in write_config_reg() local
152 config_reg_helper(gpioc, crp, field, &mapped_reg, &mask, &pos); in write_config_reg()
161 data = gpio_read_raw_reg(mapped_reg, crp->reg_width); in write_config_reg()
169 gpio_write_raw_reg(mapped_reg, crp->reg_width, data); in write_config_reg()
188 data_reg->mapped_reg = pfc_phys_to_virt(gpioc, data_reg->reg); in setup_data_reg()
222 drp->reg_shadow = gpio_read_raw_reg(drp->mapped_reg, in setup_data_regs()