Lines Matching defs:io_state
102 static int vga_str_to_iostate(char *buf, int str_size, int *io_state)
107 *io_state = VGA_RSRC_NONE;
120 *io_state = VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM;
925 * "<card_ID>,decodes=<io_state>,owns=<io_state>,locks=<io_state> (ic,mc)"
930 * lock <io_state> : acquires locks on target ("none" is invalid io_state)
931 * trylock <io_state> : non-blocking acquire locks on target
932 * unlock <io_state> : release locks on target
934 * decodes <io_state> : set the legacy decoding attributes for the card
1076 unsigned int io_state;
1097 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) {
1101 if (io_state == VGA_RSRC_NONE) {
1112 vga_get_uninterruptible(pdev, io_state);
1117 if (io_state & VGA_RSRC_LEGACY_IO)
1119 if (io_state & VGA_RSRC_LEGACY_MEM)
1134 io_state = VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM;
1137 (curr_pos, remaining, &io_state)) {
1142 if (io_state == VGA_RSRC_NONE) {
1164 if (io_state & VGA_RSRC_LEGACY_IO && uc->io_cnt == 0) {
1169 if (io_state & VGA_RSRC_LEGACY_MEM && uc->mem_cnt == 0) {
1174 vga_put(pdev, io_state);
1176 if (io_state & VGA_RSRC_LEGACY_IO)
1178 if (io_state & VGA_RSRC_LEGACY_MEM)
1189 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) {
1194 if (io_state == VGA_RSRC_NONE) {
1206 if (vga_tryget(pdev, io_state)) {
1210 if (io_state & VGA_RSRC_LEGACY_IO)
1212 if (io_state & VGA_RSRC_LEGACY_MEM)
1296 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) {
1306 __vga_set_legacy_decoding(pdev, io_state, true);