Lines Matching full:direct

76 	unsigned int		direct;		/* gpio direct */  member
125 reg_val = gpio->direct; in aw9110_get_direction()
127 dev_dbg(gpio->dev, "direct get: %04X, pin:%d\n", reg_val, offset); in aw9110_get_direction()
141 /* set direct */ in aw9110_direction_input()
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()
165 /* set direct */ in aw9110_direction_output()
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()
286 /* default direct */ in aw9110_state_init()
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()
451 /* direct */ in aw9110_pm_resume()
452 //gpio->direct = 0x03FF; /* 0: output, 1:input */ in aw9110_pm_resume()
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()