Lines Matching defs:reg
34 int reg;
37 reg = gpio < 32 ? gpch->reg1_data_base : gpch->reg2_data_base;
40 pci_write_config_dword(gpch->sb_pdev, reg,
42 pci_read_config_dword(gpch->sb_pdev, reg, &value);
52 int reg = (gpio < 32) ? 0 : 1;
57 gpch->data_reg[reg] |= 1 << (gpio & 0x1f);
59 gpch->data_reg[reg] &= ~(1 << (gpio & 0x1f));
62 reg ? gpch->reg2_data_base : gpch->reg1_data_base,
63 gpch->data_reg[reg]);
83 u32 reg;
89 gpch->reg1_ctrl_base : gpch->reg2_ctrl_base, ®);
93 reg |= 1 << (gpio & 0x1f);
96 gpch->reg1_ctrl_base : gpch->reg2_ctrl_base, reg);