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.
791 vgadev->decodes = VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM | in vga_arbiter_add_pci_device()
835 vgaarb_info(&pdev->dev, "VGA device added: decodes=%s,owns=%s,locks=%s\n", in vga_arbiter_add_pci_device()
836 vga_iostate_to_str(vgadev->decodes), in vga_arbiter_add_pci_device()
864 if (vgadev->decodes & (VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM)) in vga_arbiter_del_pci_device()
884 unsigned int old_decodes = vgadev->decodes; in vga_update_device_decodes()
888 vgadev->decodes = new_decodes; in vga_update_device_decodes()
890 vgaarb_info(dev, "VGA decodes changed: olddecodes=%s,decodes=%s:owns=%s\n", in vga_update_device_decodes()
892 vga_iostate_to_str(vgadev->decodes), in vga_update_device_decodes()
895 /* If we removed locked decodes, lock count goes to zero, and release */ in vga_update_device_decodes()
904 /* Change decodes counter */ in vga_update_device_decodes()
915 unsigned int decodes, in __vga_set_legacy_decoding() argument
921 decodes &= VGA_RSRC_LEGACY_MASK; in __vga_set_legacy_decoding()
928 /* Don't let userspace futz with kernel driver decodes */ in __vga_set_legacy_decoding()
932 /* Update the device decodes + counter */ in __vga_set_legacy_decoding()
933 vga_update_device_decodes(vgadev, decodes); in __vga_set_legacy_decoding()
936 * XXX If somebody is going from "doesn't decode" to "decodes" in __vga_set_legacy_decoding()
947 * @decodes: bit mask of what legacy regions the card decodes
949 * Indicate to the arbiter if the card decodes legacy VGA IOs, legacy VGA
955 void vga_set_legacy_decoding(struct pci_dev *pdev, unsigned int decodes) in vga_set_legacy_decoding() argument
957 __vga_set_legacy_decoding(pdev, decodes, false); in vga_set_legacy_decoding()
1015 * debugging/diagnostic only). "decodes" indicate what the
1016 * card currently decodes, "owns" indicates what is currently
1022 * "<card_ID>,decodes=<io_state>,owns=<io_state>,locks=<io_state> (ic,mc)"
1031 * decodes <io_state> : set the legacy decoding attributes for the card
1135 "count:%d,PCI:%s,decodes=%s,owns=%s,locks=%s(%u:%u)\n", in vga_arb_read()
1137 vga_iostate_to_str(vgadev->decodes), in vga_arb_read()
1381 } else if (strncmp(curr_pos, "decodes ", 8) == 0) { in vga_arb_write()
1384 pr_debug("client 0x%p called 'decodes'\n", priv); in vga_arb_write()