Lines Matching refs:lens
1035 u16 lens[5]; in moxa_load_fw() local
1048 BUILD_BUG_ON(ARRAY_SIZE(hdr->len) != ARRAY_SIZE(lens)); in moxa_load_fw()
1069 for (a = 0; a < ARRAY_SIZE(lens); a++) { in moxa_load_fw()
1070 lens[a] = le16_to_cpu(hdr->len[a]); in moxa_load_fw()
1071 if (lens[a] && len + lens[a] <= fw->size && in moxa_load_fw()
1075 if (!lens[a] && a < lencnt) { in moxa_load_fw()
1079 len += lens[a]; in moxa_load_fw()
1093 ret = moxa_load_bios(brd, ptr, lens[lenp]); in moxa_load_fw()
1098 ptr += lens[lenp] + lens[lenp + 1]; in moxa_load_fw()
1102 ret = moxa_load_320b(brd, ptr, lens[lenp]); in moxa_load_fw()
1106 ptr += lens[lenp] + lens[lenp + 1]; in moxa_load_fw()
1110 ret = moxa_load_code(brd, ptr, lens[lenp]); in moxa_load_fw()