Lines Matching refs:tprlo
649 struct fc_tprlo_s *tprlo; in fc_logout_params_pages() local
655 tprlo = (struct fc_tprlo_s *) (fc_frame + 1); in fc_logout_params_pages()
656 num_pages = (be16_to_cpu(tprlo->payload_len) - 4) / 16; in fc_logout_params_pages()
873 struct fc_tprlo_s *tprlo = (struct fc_tprlo_s *) (fchs + 1); in fc_tprlo_build() local
877 memset(tprlo, 0, (num_pages * 16) + 4); in fc_tprlo_build()
878 tprlo->command = FC_ELS_TPRLO; in fc_tprlo_build()
879 tprlo->page_len = 0x10; in fc_tprlo_build()
880 tprlo->payload_len = cpu_to_be16((num_pages * 16) + 4); in fc_tprlo_build()
883 tprlo->tprlo_params[page].type = FC_TYPE_FCP; in fc_tprlo_build()
884 tprlo->tprlo_params[page].opa_valid = 0; in fc_tprlo_build()
885 tprlo->tprlo_params[page].rpa_valid = 0; in fc_tprlo_build()
886 tprlo->tprlo_params[page].orig_process_assc = 0; in fc_tprlo_build()
887 tprlo->tprlo_params[page].resp_process_assc = 0; in fc_tprlo_build()
889 tprlo->tprlo_params[page].global_process_logout = 1; in fc_tprlo_build()
891 tprlo->tprlo_params[page].tpo_nport_valid = 1; in fc_tprlo_build()
892 tprlo->tprlo_params[page].tpo_nport_id = (tpr_id); in fc_tprlo_build()
896 return be16_to_cpu(tprlo->payload_len); in fc_tprlo_build()