Lines Matching refs:io_state
80 static int vga_str_to_iostate(char *buf, int str_size, int *io_state) in vga_str_to_iostate() argument
85 *io_state = VGA_RSRC_NONE; in vga_str_to_iostate()
98 *io_state = VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM; in vga_str_to_iostate()
1169 unsigned int io_state; in vga_arb_write() local
1190 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) { in vga_arb_write()
1194 if (io_state == VGA_RSRC_NONE) { in vga_arb_write()
1205 vga_get_uninterruptible(pdev, io_state); in vga_arb_write()
1210 if (io_state & VGA_RSRC_LEGACY_IO) in vga_arb_write()
1212 if (io_state & VGA_RSRC_LEGACY_MEM) in vga_arb_write()
1227 io_state = VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM; in vga_arb_write()
1230 (curr_pos, remaining, &io_state)) { in vga_arb_write()
1257 if (io_state & VGA_RSRC_LEGACY_IO && uc->io_cnt == 0) { in vga_arb_write()
1262 if (io_state & VGA_RSRC_LEGACY_MEM && uc->mem_cnt == 0) { in vga_arb_write()
1267 vga_put(pdev, io_state); in vga_arb_write()
1269 if (io_state & VGA_RSRC_LEGACY_IO) in vga_arb_write()
1271 if (io_state & VGA_RSRC_LEGACY_MEM) in vga_arb_write()
1282 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) { in vga_arb_write()
1299 if (vga_tryget(pdev, io_state)) { in vga_arb_write()
1303 if (io_state & VGA_RSRC_LEGACY_IO) in vga_arb_write()
1305 if (io_state & VGA_RSRC_LEGACY_MEM) in vga_arb_write()
1389 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) { in vga_arb_write()
1399 __vga_set_legacy_decoding(pdev, io_state, true); in vga_arb_write()