Lines Matching refs:css
821 chsc_remove_cmg_attr(struct channel_subsystem *css) in chsc_remove_cmg_attr() argument
826 if (!css->chps[i]) in chsc_remove_cmg_attr()
828 chp_remove_cmg_attr(css->chps[i]); in chsc_remove_cmg_attr()
833 chsc_add_cmg_attr(struct channel_subsystem *css) in chsc_add_cmg_attr() argument
839 if (!css->chps[i]) in chsc_add_cmg_attr()
841 ret = chp_add_cmg_attr(css->chps[i]); in chsc_add_cmg_attr()
848 if (!css->chps[i]) in chsc_add_cmg_attr()
850 chp_remove_cmg_attr(css->chps[i]); in chsc_add_cmg_attr()
855 int __chsc_do_secm(struct channel_subsystem *css, int enable) in __chsc_do_secm() argument
884 secm_area->cub_addr1 = (u64)(unsigned long)css->cub_addr1; in __chsc_do_secm()
885 secm_area->cub_addr2 = (u64)(unsigned long)css->cub_addr2; in __chsc_do_secm()
912 chsc_secm(struct channel_subsystem *css, int enable) in chsc_secm() argument
916 if (enable && !css->cm_enabled) { in chsc_secm()
917 css->cub_addr1 = (void *)get_zeroed_page(GFP_KERNEL | GFP_DMA); in chsc_secm()
918 css->cub_addr2 = (void *)get_zeroed_page(GFP_KERNEL | GFP_DMA); in chsc_secm()
919 if (!css->cub_addr1 || !css->cub_addr2) { in chsc_secm()
920 free_page((unsigned long)css->cub_addr1); in chsc_secm()
921 free_page((unsigned long)css->cub_addr2); in chsc_secm()
925 ret = __chsc_do_secm(css, enable); in chsc_secm()
927 css->cm_enabled = enable; in chsc_secm()
928 if (css->cm_enabled) { in chsc_secm()
929 ret = chsc_add_cmg_attr(css); in chsc_secm()
931 __chsc_do_secm(css, 0); in chsc_secm()
932 css->cm_enabled = 0; in chsc_secm()
935 chsc_remove_cmg_attr(css); in chsc_secm()
937 if (!css->cm_enabled) { in chsc_secm()
938 free_page((unsigned long)css->cub_addr1); in chsc_secm()
939 free_page((unsigned long)css->cub_addr2); in chsc_secm()