Lines Matching refs:requested_mode

478 static void agp_v2_parse_one(u32 *requested_mode, u32 *bridge_agpstat, u32 *vga_agpstat)  in agp_v2_parse_one()  argument
482 if (*requested_mode & AGP2_RESERVED_MASK) { in agp_v2_parse_one()
484 *requested_mode & AGP2_RESERVED_MASK, *requested_mode); in agp_v2_parse_one()
485 *requested_mode &= ~AGP2_RESERVED_MASK; in agp_v2_parse_one()
514 tmp = *requested_mode & 7; in agp_v2_parse_one()
518 *requested_mode |= AGPSTAT2_1X; in agp_v2_parse_one()
524 *requested_mode &= ~(AGPSTAT2_1X); /* rate=2 */ in agp_v2_parse_one()
531 *requested_mode &= ~(AGPSTAT2_1X|AGPSTAT2_2X); /* rate=4*/ in agp_v2_parse_one()
536 …if (!((*bridge_agpstat & AGPSTAT_SBA) && (*vga_agpstat & AGPSTAT_SBA) && (*requested_mode & AGPSTA… in agp_v2_parse_one()
540 …if (!((*bridge_agpstat & AGPSTAT2_4X) && (*vga_agpstat & AGPSTAT2_4X) && (*requested_mode & AGPSTA… in agp_v2_parse_one()
543 …if (!((*bridge_agpstat & AGPSTAT2_2X) && (*vga_agpstat & AGPSTAT2_2X) && (*requested_mode & AGPSTA… in agp_v2_parse_one()
546 …if (!((*bridge_agpstat & AGPSTAT2_1X) && (*vga_agpstat & AGPSTAT2_1X) && (*requested_mode & AGPSTA… in agp_v2_parse_one()
581 static void agp_v3_parse_one(u32 *requested_mode, u32 *bridge_agpstat, u32 *vga_agpstat) in agp_v3_parse_one() argument
586 if (*requested_mode & AGP3_RESERVED_MASK) { in agp_v3_parse_one()
588 *requested_mode & AGP3_RESERVED_MASK, *requested_mode); in agp_v3_parse_one()
589 *requested_mode &= ~AGP3_RESERVED_MASK; in agp_v3_parse_one()
593 tmp = *requested_mode & 7; in agp_v3_parse_one()
596 *requested_mode |= AGPSTAT3_4X; in agp_v3_parse_one()
600 *requested_mode = (*requested_mode & ~7) | AGPSTAT3_8X; in agp_v3_parse_one()
621 if (*requested_mode & AGPSTAT_MODE_3_0) { in agp_v3_parse_one()
627 if (*requested_mode & AGPSTAT2_4X) { in agp_v3_parse_one()
629 current->comm, *requested_mode); in agp_v3_parse_one()
630 *requested_mode &= ~AGPSTAT2_4X; in agp_v3_parse_one()
631 *requested_mode |= AGPSTAT3_4X; in agp_v3_parse_one()
640 current->comm, *requested_mode); in agp_v3_parse_one()
641 *requested_mode &= ~(AGPSTAT2_4X | AGPSTAT2_2X | AGPSTAT2_1X); in agp_v3_parse_one()
642 *requested_mode |= AGPSTAT3_4X; in agp_v3_parse_one()
645 if (*requested_mode & AGPSTAT3_8X) { in agp_v3_parse_one()
662 } else if (*requested_mode & AGPSTAT3_4X) { in agp_v3_parse_one()
720 u32 agp_collect_device_status(struct agp_bridge_data *bridge, u32 requested_mode, u32 bridge_agpsta… in agp_collect_device_status() argument
745 min_t(u32, (requested_mode & AGPSTAT_RQ_DEPTH), in agp_collect_device_status()
751 (requested_mode & AGPSTAT_FW))) in agp_collect_device_status()
756 agp_v3_parse_one(&requested_mode, &bridge_agpstat, &vga_agpstat); in agp_collect_device_status()
758 agp_v2_parse_one(&requested_mode, &bridge_agpstat, &vga_agpstat); in agp_collect_device_status()
803 void agp_generic_enable(struct agp_bridge_data *bridge, u32 requested_mode) in agp_generic_enable() argument
815 bridge_agpstat = agp_collect_device_status(agp_bridge, requested_mode, bridge_agpstat); in agp_generic_enable()