Lines Matching refs:bcf_hdr
789 const struct i2400m_bcf_hdr *bcf_hdr, in i2400m_dnload_finalize() argument
821 sizeof(*bcf_hdr) in i2400m_dnload_finalize()
822 + le32_to_cpu(bcf_hdr->key_size) * sizeof(u32) in i2400m_dnload_finalize()
823 + le32_to_cpu(bcf_hdr->exponent_size) * sizeof(u32); in i2400m_dnload_finalize()
825 le32_to_cpu(bcf_hdr->modulus_size) * sizeof(u32); in i2400m_dnload_finalize()
827 (void *) bcf_hdr + signature_block_offset, in i2400m_dnload_finalize()
1112 const struct i2400m_bcf_hdr *bcf_hdr) in i2400m_dnload_init_signed() argument
1122 d_fnstart(5, dev, "(i2400m %p bcf_hdr %p)\n", i2400m, bcf_hdr); in i2400m_dnload_init_signed()
1128 memcpy(&cmd_buf->cmd_pl, bcf_hdr, sizeof(*bcf_hdr)); in i2400m_dnload_init_signed()
1133 d_fnend(5, dev, "(i2400m %p bcf_hdr %p) = %d\n", i2400m, bcf_hdr, ret); in i2400m_dnload_init_signed()
1146 const struct i2400m_bcf_hdr *bcf_hdr) in i2400m_dnload_init() argument
1153 result = i2400m_dnload_init_signed(i2400m, bcf_hdr); in i2400m_dnload_init()
1188 const struct i2400m_bcf_hdr *bcf_hdr, in i2400m_fw_hdr_check() argument
1196 module_type = le32_to_cpu(bcf_hdr->module_type); in i2400m_fw_hdr_check()
1197 header_len = sizeof(u32) * le32_to_cpu(bcf_hdr->header_len); in i2400m_fw_hdr_check()
1198 major_version = (le32_to_cpu(bcf_hdr->header_version) & 0xffff0000) in i2400m_fw_hdr_check()
1200 minor_version = le32_to_cpu(bcf_hdr->header_version) & 0x0000ffff; in i2400m_fw_hdr_check()
1201 module_id = le32_to_cpu(bcf_hdr->module_id); in i2400m_fw_hdr_check()
1202 module_vendor = le32_to_cpu(bcf_hdr->module_vendor); in i2400m_fw_hdr_check()
1203 date = le32_to_cpu(bcf_hdr->date); in i2400m_fw_hdr_check()
1204 size = sizeof(u32) * le32_to_cpu(bcf_hdr->size); in i2400m_fw_hdr_check()
1261 const struct i2400m_bcf_hdr *bcf_hdr; in i2400m_fw_check() local
1272 if (leftover <= sizeof(*bcf_hdr)) { in i2400m_fw_check()
1278 bcf_hdr = itr; in i2400m_fw_check()
1281 header_len = sizeof(u32) * le32_to_cpu(bcf_hdr->header_len); in i2400m_fw_check()
1282 size = sizeof(u32) * le32_to_cpu(bcf_hdr->size); in i2400m_fw_check()
1288 result = i2400m_fw_hdr_check(i2400m, bcf_hdr, headers, offset); in i2400m_fw_check()
1302 i2400m->fw_hdrs[used_slots] = bcf_hdr; in i2400m_fw_check()
1324 const struct i2400m_bcf_hdr *bcf_hdr) in i2400m_bcf_hdr_match() argument
1328 u32 module_id = le32_to_cpu(bcf_hdr->module_id) in i2400m_bcf_hdr_match()
1343 const struct i2400m_bcf_hdr **bcf_itr, *bcf_hdr; in i2400m_bcf_hdr_find() local
1349 bcf_hdr = i2400m->fw_hdrs[0]; in i2400m_bcf_hdr_find()
1351 "barker\n", 0, le32_to_cpu(bcf_hdr->module_id)); in i2400m_bcf_hdr_find()
1352 return bcf_hdr; in i2400m_bcf_hdr_find()
1355 bcf_hdr = *bcf_itr; in i2400m_bcf_hdr_find()
1356 if (i2400m_bcf_hdr_match(i2400m, bcf_hdr)) { in i2400m_bcf_hdr_find()
1358 i, le32_to_cpu(bcf_hdr->module_id)); in i2400m_bcf_hdr_find()
1359 return bcf_hdr; in i2400m_bcf_hdr_find()
1362 i, le32_to_cpu(bcf_hdr->module_id)); in i2400m_bcf_hdr_find()
1391 const struct i2400m_bcf_hdr *bcf_hdr; in i2400m_fw_dnload() local
1423 bcf_hdr = i2400m_bcf_hdr_find(i2400m); in i2400m_fw_dnload()
1424 if (bcf_hdr == NULL) in i2400m_fw_dnload()
1427 ret = i2400m_dnload_init(i2400m, bcf_hdr); in i2400m_fw_dnload()
1438 bcf_size = sizeof(u32) * le32_to_cpu(bcf_hdr->size); in i2400m_fw_dnload()
1448 ret = i2400m_dnload_finalize(i2400m, bcf_hdr, bcf, ret); in i2400m_fw_dnload()