Lines Matching full:decodes

67 	unsigned int decodes;	/* what does it decodes */  member
245 (vgadev->decodes & VGA_RSRC_LEGACY_IO)) in __vga_tryget()
248 (vgadev->decodes & VGA_RSRC_LEGACY_MEM)) in __vga_tryget()
313 if ((match & conflict->decodes) & VGA_RSRC_LEGACY_MEM) in __vga_tryget()
315 if ((match & conflict->decodes) & VGA_RSRC_LEGACY_IO) in __vga_tryget()
383 if (vgadev->decodes & VGA_RSRC_LEGACY_IO) in __vga_put()
388 if (vgadev->decodes & VGA_RSRC_LEGACY_MEM) in __vga_put()
630 * the arbiter's client decides if devices decodes or not legacy
665 vgadev->decodes = VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM | in vga_arbiter_add_pci_device()
709 vgaarb_info(&pdev->dev, "VGA device added: decodes=%s,owns=%s,locks=%s\n", in vga_arbiter_add_pci_device()
710 vga_iostate_to_str(vgadev->decodes), in vga_arbiter_add_pci_device()
738 if (vgadev->decodes & (VGA_RSRC_LEGACY_IO | VGA_RSRC_LEGACY_MEM)) in vga_arbiter_del_pci_device()
764 old_decodes = vgadev->decodes; in vga_update_device_decodes()
767 vgadev->decodes = new_decodes; in vga_update_device_decodes()
769 vgaarb_info(dev, "changed VGA decodes: olddecodes=%s,decodes=%s:owns=%s\n", in vga_update_device_decodes()
771 vga_iostate_to_str(vgadev->decodes), in vga_update_device_decodes()
774 /* if we removed locked decodes, lock count goes to zero, and release */ in vga_update_device_decodes()
783 /* change decodes counter */ in vga_update_device_decodes()
794 unsigned int decodes, in __vga_set_legacy_decoding() argument
800 decodes &= VGA_RSRC_LEGACY_MASK; in __vga_set_legacy_decoding()
807 /* don't let userspace futz with kernel driver decodes */ in __vga_set_legacy_decoding()
811 /* update the device decodes + counter */ in __vga_set_legacy_decoding()
812 vga_update_device_decodes(vgadev, decodes); in __vga_set_legacy_decoding()
814 /* XXX if somebody is going from "doesn't decode" to "decodes" state in __vga_set_legacy_decoding()
825 * @decodes: bit mask of what legacy regions the card decodes
827 * Indicates to the arbiter if the card decodes legacy VGA IOs, legacy VGA
833 void vga_set_legacy_decoding(struct pci_dev *pdev, unsigned int decodes) in vga_set_legacy_decoding() argument
835 __vga_set_legacy_decoding(pdev, decodes, false); in vga_set_legacy_decoding()
898 * debugging/diagnostic only). "decodes" indicate what the
899 * card currently decodes, "owns" indicates what is currently
905 * "<card_ID>,decodes=<io_state>,owns=<io_state>,locks=<io_state> (ic,mc)"
914 * decodes <io_state> : set the legacy decoding attributes for the card
1025 "count:%d,PCI:%s,decodes=%s,owns=%s,locks=%s(%d:%d)\n", in vga_arb_read()
1027 vga_iostate_to_str(vgadev->decodes), in vga_arb_read()
1271 } else if (strncmp(curr_pos, "decodes ", 8) == 0) { in vga_arb_write()
1274 pr_debug("client 0x%p called 'decodes'\n", priv); in vga_arb_write()