Lines Matching refs:css

790 chsc_remove_cmg_attr(struct channel_subsystem *css)  in chsc_remove_cmg_attr()  argument
795 if (!css->chps[i]) in chsc_remove_cmg_attr()
797 chp_remove_cmg_attr(css->chps[i]); in chsc_remove_cmg_attr()
802 chsc_add_cmg_attr(struct channel_subsystem *css) in chsc_add_cmg_attr() argument
808 if (!css->chps[i]) in chsc_add_cmg_attr()
810 ret = chp_add_cmg_attr(css->chps[i]); in chsc_add_cmg_attr()
817 if (!css->chps[i]) in chsc_add_cmg_attr()
819 chp_remove_cmg_attr(css->chps[i]); in chsc_add_cmg_attr()
824 int __chsc_do_secm(struct channel_subsystem *css, int enable) in __chsc_do_secm() argument
853 secm_area->cub_addr1 = (u64)(unsigned long)css->cub_addr1; in __chsc_do_secm()
854 secm_area->cub_addr2 = (u64)(unsigned long)css->cub_addr2; in __chsc_do_secm()
881 chsc_secm(struct channel_subsystem *css, int enable) in chsc_secm() argument
885 if (enable && !css->cm_enabled) { in chsc_secm()
886 css->cub_addr1 = (void *)get_zeroed_page(GFP_KERNEL | GFP_DMA); in chsc_secm()
887 css->cub_addr2 = (void *)get_zeroed_page(GFP_KERNEL | GFP_DMA); in chsc_secm()
888 if (!css->cub_addr1 || !css->cub_addr2) { in chsc_secm()
889 free_page((unsigned long)css->cub_addr1); in chsc_secm()
890 free_page((unsigned long)css->cub_addr2); in chsc_secm()
894 ret = __chsc_do_secm(css, enable); in chsc_secm()
896 css->cm_enabled = enable; in chsc_secm()
897 if (css->cm_enabled) { in chsc_secm()
898 ret = chsc_add_cmg_attr(css); in chsc_secm()
900 __chsc_do_secm(css, 0); in chsc_secm()
901 css->cm_enabled = 0; in chsc_secm()
904 chsc_remove_cmg_attr(css); in chsc_secm()
906 if (!css->cm_enabled) { in chsc_secm()
907 free_page((unsigned long)css->cub_addr1); in chsc_secm()
908 free_page((unsigned long)css->cub_addr2); in chsc_secm()