Lines Matching refs:caps
323 struct vas_caps *caps; in vas_allocate_window() local
356 caps = &vascaps[VAS_GZIP_QOS_FEAT_TYPE]; in vas_allocate_window()
358 caps = &vascaps[VAS_GZIP_DEF_FEAT_TYPE]; in vas_allocate_window()
360 cop_feat_caps = &caps->caps; in vas_allocate_window()
414 caps->nr_open_wins_progress++; in vas_allocate_window()
450 if (!caps->nr_close_wins && !migration_in_progress) { in vas_allocate_window()
451 list_add(&txwin->win_list, &caps->list); in vas_allocate_window()
452 caps->nr_open_windows++; in vas_allocate_window()
453 caps->nr_open_wins_progress--; in vas_allocate_window()
475 caps->nr_open_wins_progress--; in vas_allocate_window()
514 struct vas_cop_feat_caps *caps; in vas_deallocate_window() local
529 caps = &vascaps[win->win_type].caps; in vas_deallocate_window()
548 atomic_dec(&caps->nr_used_credits); in vas_deallocate_window()
592 struct vas_cop_feat_caps *caps; in get_vas_capabilities() local
601 caps = &vcaps->caps; in get_vas_capabilities()
608 caps->user_mode = hv_caps->user_mode; in get_vas_capabilities()
609 if (!(caps->user_mode & VAS_COPY_PASTE_USER_MODE)) { in get_vas_capabilities()
614 caps->descriptor = be64_to_cpu(hv_caps->descriptor); in get_vas_capabilities()
615 caps->win_type = hv_caps->win_type; in get_vas_capabilities()
616 if (caps->win_type >= VAS_MAX_FEAT_TYPE) { in get_vas_capabilities()
617 pr_err("Unsupported window type %u\n", caps->win_type); in get_vas_capabilities()
620 caps->max_lpar_creds = be16_to_cpu(hv_caps->max_lpar_creds); in get_vas_capabilities()
621 caps->max_win_creds = be16_to_cpu(hv_caps->max_win_creds); in get_vas_capabilities()
622 atomic_set(&caps->nr_total_credits, in get_vas_capabilities()
625 caps->def_lpar_creds = be16_to_cpu(hv_caps->def_lpar_creds); in get_vas_capabilities()
627 if (caps->max_win_creds < DEF_WIN_CREDS) { in get_vas_capabilities()
629 DEF_WIN_CREDS, caps->max_win_creds); in get_vas_capabilities()
634 rc = sysfs_add_vas_caps(caps); in get_vas_capabilities()
655 struct vas_cop_feat_caps *caps = &vcaps->caps; in reconfig_open_windows() local
722 caps->win_type); in reconfig_open_windows()
736 win->win_type = caps->win_type; in reconfig_open_windows()
853 struct vas_cop_feat_caps *caps; in vas_reconfig_capabilties() local
864 caps = &vcaps->caps; in vas_reconfig_capabilties()
868 old_nr_creds = atomic_read(&caps->nr_total_credits); in vas_reconfig_capabilties()
870 atomic_set(&caps->nr_total_credits, new_nr_creds); in vas_reconfig_capabilties()
976 struct vas_cop_feat_caps *caps; in vas_migration_handler() local
996 caps = &vcaps->caps; in vas_migration_handler()
997 old_nr_creds = atomic_read(&caps->nr_total_credits); in vas_migration_handler()
1015 atomic_read(&caps->nr_used_credits), in vas_migration_handler()
1052 atomic_set(&caps->nr_total_credits, new_nr_creds); in vas_migration_handler()