Lines Matching refs:gpch
46 struct rdc321x_gpio *gpch;
50 gpch = container_of(chip, struct rdc321x_gpio, chip);
51 reg = gpio < 32 ? gpch->reg1_data_base : gpch->reg2_data_base;
53 spin_lock(&gpch->lock);
54 pci_write_config_dword(gpch->sb_pdev, reg,
55 gpch->data_reg[gpio < 32 ? 0 : 1]);
56 pci_read_config_dword(gpch->sb_pdev, reg, &value);
57 spin_unlock(&gpch->lock);
65 struct rdc321x_gpio *gpch;
68 gpch = container_of(chip, struct rdc321x_gpio, chip);
71 gpch->data_reg[reg] |= 1 << (gpio & 0x1f);
73 gpch->data_reg[reg] &= ~(1 << (gpio & 0x1f));
75 pci_write_config_dword(gpch->sb_pdev,
76 reg ? gpch->reg2_data_base : gpch->reg1_data_base,
77 gpch->data_reg[reg]);
84 struct rdc321x_gpio *gpch;
86 gpch = container_of(chip, struct rdc321x_gpio, chip);
87 spin_lock(&gpch->lock);
89 spin_unlock(&gpch->lock);
95 struct rdc321x_gpio *gpch;
99 gpch = container_of(chip, struct rdc321x_gpio, chip);
101 spin_lock(&gpch->lock);
102 err = pci_read_config_dword(gpch->sb_pdev, gpio < 32 ?
103 gpch->reg1_ctrl_base : gpch->reg2_ctrl_base, ®);
109 err = pci_write_config_dword(gpch->sb_pdev, gpio < 32 ?
110 gpch->reg1_ctrl_base : gpch->reg2_ctrl_base, reg);
117 spin_unlock(&gpch->lock);