Lines Matching full:decodes
64 unsigned int decodes; /* what does it decodes */ member
205 (vgadev->decodes & VGA_RSRC_LEGACY_IO)) in __vga_tryget()
208 (vgadev->decodes & VGA_RSRC_LEGACY_MEM)) in __vga_tryget()
279 if ((match & conflict->decodes) & VGA_RSRC_LEGACY_MEM) in __vga_tryget()
281 if ((match & conflict->decodes) & VGA_RSRC_LEGACY_IO) in __vga_tryget()
354 if (vgadev->decodes & VGA_RSRC_LEGACY_IO) in __vga_put()
359 if (vgadev->decodes & VGA_RSRC_LEGACY_MEM) in __vga_put()
602 * the arbiter's client decides if devices decodes or not legacy
637 vgadev->decodes = VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM | in vga_arbiter_add_pci_device()
681 vgaarb_info(&pdev->dev, "VGA device added: decodes=%s,owns=%s,locks=%s\n", in vga_arbiter_add_pci_device()
682 vga_iostate_to_str(vgadev->decodes), in vga_arbiter_add_pci_device()
710 if (vgadev->decodes & (VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM)) in vga_arbiter_del_pci_device()
736 old_decodes = vgadev->decodes; in vga_update_device_decodes()
739 vgadev->decodes = new_decodes; in vga_update_device_decodes()
741 vgaarb_info(dev, "changed VGA decodes: olddecodes=%s,decodes=%s:owns=%s\n", in vga_update_device_decodes()
743 vga_iostate_to_str(vgadev->decodes), in vga_update_device_decodes()
746 /* if we removed locked decodes, lock count goes to zero, and release */ in vga_update_device_decodes()
755 /* change decodes counter */ in vga_update_device_decodes()
766 unsigned int decodes, in __vga_set_legacy_decoding() argument
772 decodes &= VGA_RSRC_LEGACY_MASK; in __vga_set_legacy_decoding()
779 /* don't let userspace futz with kernel driver decodes */ in __vga_set_legacy_decoding()
783 /* update the device decodes + counter */ in __vga_set_legacy_decoding()
784 vga_update_device_decodes(vgadev, decodes); in __vga_set_legacy_decoding()
786 /* XXX if somebody is going from "doesn't decode" to "decodes" state in __vga_set_legacy_decoding()
794 void vga_set_legacy_decoding(struct pci_dev *pdev, unsigned int decodes) in vga_set_legacy_decoding() argument
796 __vga_set_legacy_decoding(pdev, decodes, false); in vga_set_legacy_decoding()
870 * debugging/diagnostic only). "decodes" indicate what the
871 * card currently decodes, "owns" indicates what is currently
877 * "<card_ID>,decodes=<io_state>,owns=<io_state>,locks=<io_state> (ic,mc)"
886 * decodes <io_state> : set the legacy decoding attributes for the card
997 "count:%d,PCI:%s,decodes=%s,owns=%s,locks=%s(%d:%d)\n", in vga_arb_read()
999 vga_iostate_to_str(vgadev->decodes), in vga_arb_read()
1243 } else if (strncmp(curr_pos, "decodes ", 8) == 0) { in vga_arb_write()
1246 pr_debug("client 0x%p called 'decodes'\n", priv); in vga_arb_write()