Lines Matching full:reserve
801 struct agp_region reserve; in agpioc_reserve_wrap() local
806 if (copy_from_user(&reserve, arg, sizeof(struct agp_region))) in agpioc_reserve_wrap()
809 if ((unsigned) reserve.seg_count >= ~0U/sizeof(struct agp_segment)) in agpioc_reserve_wrap()
812 client = agp_find_client_by_pid(reserve.pid); in agpioc_reserve_wrap()
814 if (reserve.seg_count == 0) { in agpioc_reserve_wrap()
816 client_priv = agp_find_private(reserve.pid); in agpioc_reserve_wrap()
826 return agp_remove_client(reserve.pid); in agpioc_reserve_wrap()
830 if (reserve.seg_count >= 16384) in agpioc_reserve_wrap()
833 segment = kmalloc((sizeof(struct agp_segment) * reserve.seg_count), in agpioc_reserve_wrap()
839 if (copy_from_user(segment, (void __user *) reserve.seg_list, in agpioc_reserve_wrap()
840 sizeof(struct agp_segment) * reserve.seg_count)) { in agpioc_reserve_wrap()
844 reserve.seg_list = segment; in agpioc_reserve_wrap()
848 client = agp_create_client(reserve.pid); in agpioc_reserve_wrap()
854 client_priv = agp_find_private(reserve.pid); in agpioc_reserve_wrap()
861 return agp_create_segment(client, &reserve); in agpioc_reserve_wrap()