Lines Matching defs:io_state
78 static int vga_str_to_iostate(char *buf, int str_size, unsigned int *io_state)
85 *io_state = VGA_RSRC_NONE;
98 *io_state = VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM;
1022 * "<card_ID>,decodes=<io_state>,owns=<io_state>,locks=<io_state> (ic,mc)"
1027 * lock <io_state> : acquire locks on target ("none" is invalid io_state)
1028 * trylock <io_state> : non-blocking acquire locks on target
1029 * unlock <io_state> : release locks on target
1031 * decodes <io_state> : set the legacy decoding attributes for the card
1166 unsigned int io_state;
1187 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) {
1191 if (io_state == VGA_RSRC_NONE) {
1202 vga_get_uninterruptible(pdev, io_state);
1207 if (io_state & VGA_RSRC_LEGACY_IO)
1209 if (io_state & VGA_RSRC_LEGACY_MEM)
1224 io_state = VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM;
1227 (curr_pos, remaining, &io_state)) {
1232 if (io_state == VGA_RSRC_NONE) {
1254 if (io_state & VGA_RSRC_LEGACY_IO && uc->io_cnt == 0) {
1259 if (io_state & VGA_RSRC_LEGACY_MEM && uc->mem_cnt == 0) {
1264 vga_put(pdev, io_state);
1266 if (io_state & VGA_RSRC_LEGACY_IO)
1268 if (io_state & VGA_RSRC_LEGACY_MEM)
1279 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) {
1284 if (io_state == VGA_RSRC_NONE) {
1296 if (vga_tryget(pdev, io_state)) {
1300 if (io_state & VGA_RSRC_LEGACY_IO)
1302 if (io_state & VGA_RSRC_LEGACY_MEM)
1386 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) {
1396 __vga_set_legacy_decoding(pdev, io_state, true);