Lines Matching full:decodes
45 unsigned int decodes; /* what it decodes */ member
224 (vgadev->decodes & VGA_RSRC_LEGACY_IO)) in __vga_tryget()
227 (vgadev->decodes & VGA_RSRC_LEGACY_MEM)) in __vga_tryget()
298 if ((match & conflict->decodes) & VGA_RSRC_LEGACY_MEM) in __vga_tryget()
300 if ((match & conflict->decodes) & VGA_RSRC_LEGACY_IO) in __vga_tryget()
370 if (vgadev->decodes & VGA_RSRC_LEGACY_IO) in __vga_put()
375 if (vgadev->decodes & VGA_RSRC_LEGACY_MEM) in __vga_put()
757 * client decide if devices decodes legacy things or not.
787 vgadev->decodes = VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM | in vga_arbiter_add_pci_device()
831 vgaarb_info(&pdev->dev, "VGA device added: decodes=%s,owns=%s,locks=%s\n", in vga_arbiter_add_pci_device()
832 vga_iostate_to_str(vgadev->decodes), in vga_arbiter_add_pci_device()
860 if (vgadev->decodes & (VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM)) in vga_arbiter_del_pci_device()
880 unsigned int old_decodes = vgadev->decodes; in vga_update_device_decodes()
884 vgadev->decodes = new_decodes; in vga_update_device_decodes()
886 vgaarb_info(dev, "VGA decodes changed: olddecodes=%s,decodes=%s:owns=%s\n", in vga_update_device_decodes()
888 vga_iostate_to_str(vgadev->decodes), in vga_update_device_decodes()
891 /* If we removed locked decodes, lock count goes to zero, and release */ in vga_update_device_decodes()
900 /* Change decodes counter */ in vga_update_device_decodes()
911 unsigned int decodes, in __vga_set_legacy_decoding() argument
917 decodes &= VGA_RSRC_LEGACY_MASK; in __vga_set_legacy_decoding()
924 /* Don't let userspace futz with kernel driver decodes */ in __vga_set_legacy_decoding()
928 /* Update the device decodes + counter */ in __vga_set_legacy_decoding()
929 vga_update_device_decodes(vgadev, decodes); in __vga_set_legacy_decoding()
932 * XXX If somebody is going from "doesn't decode" to "decodes" in __vga_set_legacy_decoding()
943 * @decodes: bit mask of what legacy regions the card decodes
945 * Indicate to the arbiter if the card decodes legacy VGA IOs, legacy VGA
951 void vga_set_legacy_decoding(struct pci_dev *pdev, unsigned int decodes) in vga_set_legacy_decoding() argument
953 __vga_set_legacy_decoding(pdev, decodes, false); in vga_set_legacy_decoding()
1011 * debugging/diagnostic only). "decodes" indicate what the
1012 * card currently decodes, "owns" indicates what is currently
1018 * "<card_ID>,decodes=<io_state>,owns=<io_state>,locks=<io_state> (ic,mc)"
1027 * decodes <io_state> : set the legacy decoding attributes for the card
1131 "count:%d,PCI:%s,decodes=%s,owns=%s,locks=%s(%u:%u)\n", in vga_arb_read()
1133 vga_iostate_to_str(vgadev->decodes), in vga_arb_read()
1377 } else if (strncmp(curr_pos, "decodes ", 8) == 0) { in vga_arb_write()
1380 pr_debug("client 0x%p called 'decodes'\n", priv); in vga_arb_write()