Lines Matching refs:direct
76 unsigned int direct; /* gpio direct */ member
125 reg_val = gpio->direct; in aw9110_get_direction()
142 gpio->direct |= (1<<offset); in aw9110_direction_input()
145 gpio->write(gpio->client, REG_CONFIG_P1, gpio->direct&0x0F); in aw9110_direction_input()
147 gpio->write(gpio->client, REG_CONFIG_P0, (gpio->direct >> 4)&0x3F); in aw9110_direction_input()
151 dev_dbg(gpio->dev, "direct in: %04X, pin:%d\n", gpio->direct, offset); in aw9110_direction_input()
166 gpio->direct &= ~(1<<offset); in aw9110_direction_output()
169 gpio->write(gpio->client, REG_CONFIG_P1, gpio->direct&0x0F); in aw9110_direction_output()
171 gpio->write(gpio->client, REG_CONFIG_P0, (gpio->direct >> 4)&0x3F); in aw9110_direction_output()
175 dev_dbg(gpio->dev, "direct out: %04X, pin:%d\n", gpio->direct, offset); in aw9110_direction_output()
287 gpio->direct = 0x03FF; /* 0: output, 1:input */ in aw9110_state_init()
288 gpio->write(gpio->client, REG_CONFIG_P1, gpio->direct & 0x0F); in aw9110_state_init()
289 gpio->write(gpio->client, REG_CONFIG_P0, (gpio->direct>>4) & 0x3F); in aw9110_state_init()
453 gpio->write(gpio->client, REG_CONFIG_P1, gpio->direct & 0x0F); in aw9110_pm_resume()
454 gpio->write(gpio->client, REG_CONFIG_P0, (gpio->direct>>4) & 0x3F); in aw9110_pm_resume()