Lines Matching full:bar
129 struct pci_bar_info *bar = data; in rom_write() local
131 if (unlikely(!bar)) { in rom_write()
140 bar->which = 1; in rom_write()
144 if (tmpval != bar->val && value == bar->val) { in rom_write()
145 /* Allow restoration of bar value. */ in rom_write()
146 pci_write_config_dword(dev, offset, bar->val); in rom_write()
148 bar->which = 0; in rom_write()
162 struct pci_bar_info *bar = data; in bar_write() local
167 if (unlikely(!bar)) { in bar_write()
182 bar->which = 1; in bar_write()
186 if (tmpval != bar->val && value == bar->val) { in bar_write()
187 /* Allow restoration of bar value. */ in bar_write()
188 pci_write_config_dword(dev, offset, bar->val); in bar_write()
190 bar->which = 0; in bar_write()
198 struct pci_bar_info *bar = data; in bar_read() local
200 if (unlikely(!bar)) { in bar_read()
205 *value = bar->which ? bar->len_val : bar->val; in bar_read()
214 struct pci_bar_info *bar = kzalloc(sizeof(*bar), GFP_KERNEL); in bar_init() local
216 if (!bar) in bar_init()
228 bar->val = res[pos - 1].start >> 16 >> 16; in bar_init()
229 bar->len_val = -resource_size(&res[pos - 1]) >> 16 >> 16; in bar_init()
230 return bar; in bar_init()
237 return bar; in bar_init()
239 bar->val = res[pos].start | in bar_init()
241 bar->len_val = -resource_size(&res[pos]) | in bar_init()
244 return bar; in bar_init()
249 struct pci_bar_info *bar = data; in bar_reset() local
251 bar->which = 0; in bar_reset()