Lines Matching refs:hs_header
831 struct mvumi_hs_header *hs_header) in mvumi_hs_build_page() argument
839 switch (hs_header->page_code) { in mvumi_hs_build_page()
841 hs_page2 = (struct mvumi_hs_page2 *) hs_header; in mvumi_hs_build_page()
842 hs_header->frame_length = sizeof(*hs_page2) - 4; in mvumi_hs_build_page()
843 memset(hs_header->frame_content, 0, hs_header->frame_length); in mvumi_hs_build_page()
858 hs_header->checksum = mvumi_calculate_checksum(hs_header, in mvumi_hs_build_page()
859 hs_header->frame_length); in mvumi_hs_build_page()
863 hs_page3 = (struct mvumi_hs_page3 *) hs_header; in mvumi_hs_build_page()
864 hs_header->frame_length = sizeof(*hs_page3) - 4; in mvumi_hs_build_page()
865 memset(hs_header->frame_content, 0, hs_header->frame_length); in mvumi_hs_build_page()
866 hs_header->checksum = mvumi_calculate_checksum(hs_header, in mvumi_hs_build_page()
867 hs_header->frame_length); in mvumi_hs_build_page()
871 hs_page4 = (struct mvumi_hs_page4 *) hs_header; in mvumi_hs_build_page()
872 hs_header->frame_length = sizeof(*hs_page4) - 4; in mvumi_hs_build_page()
873 memset(hs_header->frame_content, 0, hs_header->frame_length); in mvumi_hs_build_page()
893 hs_header->checksum = mvumi_calculate_checksum(hs_header, in mvumi_hs_build_page()
894 hs_header->frame_length); in mvumi_hs_build_page()
899 hs_header->page_code); in mvumi_hs_build_page()
1038 struct mvumi_hs_header *hs_header) in mvumi_hs_process_page() argument
1043 page_checksum = mvumi_calculate_checksum(hs_header, in mvumi_hs_process_page()
1044 hs_header->frame_length); in mvumi_hs_process_page()
1045 if (page_checksum != hs_header->checksum) { in mvumi_hs_process_page()
1050 switch (hs_header->page_code) { in mvumi_hs_process_page()
1052 hs_page1 = (struct mvumi_hs_page1 *) hs_header; in mvumi_hs_process_page()
1094 struct mvumi_hs_header *hs_header; in mvumi_handshake() local
1134 hs_header = (struct mvumi_hs_header *) mhba->handshake_page; in mvumi_handshake()
1135 if (hs_header->page_code == HS_PAGE_FIRM_CAP) { in mvumi_handshake()
1137 ((struct mvumi_hs_page1 *) hs_header)->total_pages; in mvumi_handshake()
1144 if (mvumi_hs_process_page(mhba, hs_header)) { in mvumi_handshake()
1153 hs_header->page_code = 0; in mvumi_handshake()
1157 if ((hs_header->page_code + 1) <= mhba->hba_total_pages) { in mvumi_handshake()
1158 hs_header->page_code++; in mvumi_handshake()
1159 if (hs_header->page_code != HS_PAGE_FIRM_CAP) { in mvumi_handshake()
1160 mvumi_hs_build_page(mhba, hs_header); in mvumi_handshake()