Lines Matching defs:io_state
93 static int vga_str_to_iostate(char *buf, int str_size, int *io_state)
98 *io_state = VGA_RSRC_NONE;
110 *io_state = VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM;
675 * "<card_ID>,decodes=<io_state>,owns=<io_state>,locks=<io_state> (ic,mc)"
680 * lock <io_state> : acquires locks on target ("none" is invalid io_state)
681 * trylock <io_state> : non-blocking acquire locks on target
682 * unlock <io_state> : release locks on target
684 * decodes <io_state> : set the legacy decoding attributes for the card
826 unsigned int io_state;
852 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) {
856 if (io_state == VGA_RSRC_NONE) {
867 vga_get_uninterruptible(pdev, io_state);
872 if (io_state & VGA_RSRC_LEGACY_IO)
874 if (io_state & VGA_RSRC_LEGACY_MEM)
889 io_state = VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM;
892 (curr_pos, remaining, &io_state)) {
897 if (io_state == VGA_RSRC_NONE) {
917 if (io_state & VGA_RSRC_LEGACY_IO && uc->io_cnt == 0)
920 if (io_state & VGA_RSRC_LEGACY_MEM && uc->mem_cnt == 0)
923 vga_put(pdev, io_state);
925 if (io_state & VGA_RSRC_LEGACY_IO)
927 if (io_state & VGA_RSRC_LEGACY_MEM)
938 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) {
943 if (io_state == VGA_RSRC_NONE) {
955 if (vga_tryget(pdev, io_state)) {
959 if (io_state & VGA_RSRC_LEGACY_IO)
961 if (io_state & VGA_RSRC_LEGACY_MEM)
1049 if (!vga_str_to_iostate(curr_pos, remaining, &io_state)) {
1059 __vga_set_legacy_decoding(pdev, io_state, true);