Lines Matching refs:bcf_hdr
788 const struct i2400m_bcf_hdr *bcf_hdr, in i2400m_dnload_finalize() argument
820 sizeof(*bcf_hdr) in i2400m_dnload_finalize()
821 + le32_to_cpu(bcf_hdr->key_size) * sizeof(u32) in i2400m_dnload_finalize()
822 + le32_to_cpu(bcf_hdr->exponent_size) * sizeof(u32); in i2400m_dnload_finalize()
824 le32_to_cpu(bcf_hdr->modulus_size) * sizeof(u32); in i2400m_dnload_finalize()
826 (void *) bcf_hdr + signature_block_offset, in i2400m_dnload_finalize()
1111 const struct i2400m_bcf_hdr *bcf_hdr) in i2400m_dnload_init_signed() argument
1121 d_fnstart(5, dev, "(i2400m %p bcf_hdr %p)\n", i2400m, bcf_hdr); in i2400m_dnload_init_signed()
1127 memcpy(&cmd_buf->cmd_pl, bcf_hdr, sizeof(*bcf_hdr)); in i2400m_dnload_init_signed()
1132 d_fnend(5, dev, "(i2400m %p bcf_hdr %p) = %d\n", i2400m, bcf_hdr, ret); in i2400m_dnload_init_signed()
1145 const struct i2400m_bcf_hdr *bcf_hdr) in i2400m_dnload_init() argument
1152 result = i2400m_dnload_init_signed(i2400m, bcf_hdr); in i2400m_dnload_init()
1187 const struct i2400m_bcf_hdr *bcf_hdr, in i2400m_fw_hdr_check() argument
1195 module_type = le32_to_cpu(bcf_hdr->module_type); in i2400m_fw_hdr_check()
1196 header_len = sizeof(u32) * le32_to_cpu(bcf_hdr->header_len); in i2400m_fw_hdr_check()
1197 major_version = (le32_to_cpu(bcf_hdr->header_version) & 0xffff0000) in i2400m_fw_hdr_check()
1199 minor_version = le32_to_cpu(bcf_hdr->header_version) & 0x0000ffff; in i2400m_fw_hdr_check()
1200 module_id = le32_to_cpu(bcf_hdr->module_id); in i2400m_fw_hdr_check()
1201 module_vendor = le32_to_cpu(bcf_hdr->module_vendor); in i2400m_fw_hdr_check()
1202 date = le32_to_cpu(bcf_hdr->date); in i2400m_fw_hdr_check()
1203 size = sizeof(u32) * le32_to_cpu(bcf_hdr->size); in i2400m_fw_hdr_check()
1260 const struct i2400m_bcf_hdr *bcf_hdr; in i2400m_fw_check() local
1271 if (leftover <= sizeof(*bcf_hdr)) { in i2400m_fw_check()
1277 bcf_hdr = itr; in i2400m_fw_check()
1280 header_len = sizeof(u32) * le32_to_cpu(bcf_hdr->header_len); in i2400m_fw_check()
1281 size = sizeof(u32) * le32_to_cpu(bcf_hdr->size); in i2400m_fw_check()
1287 result = i2400m_fw_hdr_check(i2400m, bcf_hdr, headers, offset); in i2400m_fw_check()
1301 i2400m->fw_hdrs[used_slots] = bcf_hdr; in i2400m_fw_check()
1323 const struct i2400m_bcf_hdr *bcf_hdr) in i2400m_bcf_hdr_match() argument
1327 u32 module_id = le32_to_cpu(bcf_hdr->module_id) in i2400m_bcf_hdr_match()
1342 const struct i2400m_bcf_hdr **bcf_itr, *bcf_hdr; in i2400m_bcf_hdr_find() local
1348 bcf_hdr = i2400m->fw_hdrs[0]; in i2400m_bcf_hdr_find()
1350 "barker\n", 0, le32_to_cpu(bcf_hdr->module_id)); in i2400m_bcf_hdr_find()
1351 return bcf_hdr; in i2400m_bcf_hdr_find()
1354 bcf_hdr = *bcf_itr; in i2400m_bcf_hdr_find()
1355 if (i2400m_bcf_hdr_match(i2400m, bcf_hdr)) { in i2400m_bcf_hdr_find()
1357 i, le32_to_cpu(bcf_hdr->module_id)); in i2400m_bcf_hdr_find()
1358 return bcf_hdr; in i2400m_bcf_hdr_find()
1361 i, le32_to_cpu(bcf_hdr->module_id)); in i2400m_bcf_hdr_find()
1390 const struct i2400m_bcf_hdr *bcf_hdr; in i2400m_fw_dnload() local
1422 bcf_hdr = i2400m_bcf_hdr_find(i2400m); in i2400m_fw_dnload()
1423 if (bcf_hdr == NULL) in i2400m_fw_dnload()
1426 ret = i2400m_dnload_init(i2400m, bcf_hdr); in i2400m_fw_dnload()
1437 bcf_size = sizeof(u32) * le32_to_cpu(bcf_hdr->size); in i2400m_fw_dnload()
1447 ret = i2400m_dnload_finalize(i2400m, bcf_hdr, bcf, ret); in i2400m_fw_dnload()