Lines Matching full:fw
25 carl9170fw_for_each_hdr(iter, ar->fw.desc) { in carl9170_fw_find_desc()
176 dev_err(&ar->udev->dev, "fw checksum test failed.\n"); in carl9170_fw_checksum()
195 ar->fw.tx_seq_table = le32_to_cpu(txsq_desc->seq_table_addr); in carl9170_fw_tx_sequence()
196 if (!valid_cpu_addr(ar->fw.tx_seq_table)) in carl9170_fw_tx_sequence()
199 ar->fw.tx_seq_table = 0; in carl9170_fw_tx_sequence()
208 if (ar->fw.vif_num < 2) in carl9170_fw_set_if_combinations()
211 ar->if_comb_limits[0].max = ar->fw.vif_num; in carl9170_fw_set_if_combinations()
215 ar->if_combs[0].max_interfaces = ar->fw.vif_num; in carl9170_fw_set_if_combinations()
248 ar->fw.api_version = otus_desc->api_ver; in carl9170_fw()
250 if (ar->fw.api_version < CARL9170FW_API_MIN_VER || in carl9170_fw()
251 ar->fw.api_version > CARL9170FW_API_MAX_VER) { in carl9170_fw()
272 ar->fw.disable_offload_fw = true; in carl9170_fw()
285 ar->fw.offset = le16_to_cpu(otus_desc->miniboot_size); in carl9170_fw()
287 ar->fw.offset = 0; in carl9170_fw()
291 ar->fw.tx_stream = true; in carl9170_fw()
295 ar->fw.rx_stream = true; in carl9170_fw()
298 ar->fw.rx_filter = true; in carl9170_fw()
304 ar->fw.hw_counters = true; in carl9170_fw()
310 ar->fw.ba_filter = true; in carl9170_fw()
315 ar->fw.vif_num = otus_desc->vif_num; in carl9170_fw()
316 ar->fw.cmd_bufs = otus_desc->cmd_bufs; in carl9170_fw()
317 ar->fw.address = le32_to_cpu(otus_desc->fw_address); in carl9170_fw()
318 ar->fw.rx_size = le16_to_cpu(otus_desc->rx_max_frame_len); in carl9170_fw()
319 ar->fw.mem_blocks = min_t(unsigned int, otus_desc->tx_descs, 0xfe); in carl9170_fw()
320 atomic_set(&ar->mem_free_blocks, ar->fw.mem_blocks); in carl9170_fw()
321 ar->fw.mem_block_size = le16_to_cpu(otus_desc->tx_frag_len); in carl9170_fw()
323 if (ar->fw.vif_num >= AR9170_MAX_VIRTUAL_MAC || !ar->fw.vif_num || in carl9170_fw()
324 ar->fw.mem_blocks < 16 || !ar->fw.cmd_bufs || in carl9170_fw()
325 ar->fw.mem_block_size < 64 || ar->fw.mem_block_size > 512 || in carl9170_fw()
326 ar->fw.rx_size > 32768 || ar->fw.rx_size < 4096 || in carl9170_fw()
327 !valid_cpu_addr(ar->fw.address)) { in carl9170_fw()
333 ar->fw.beacon_addr = le32_to_cpu(otus_desc->bcn_addr); in carl9170_fw()
334 ar->fw.beacon_max_len = le16_to_cpu(otus_desc->bcn_len); in carl9170_fw()
336 if (valid_dma_addr(ar->fw.beacon_addr) && ar->fw.beacon_max_len >= in carl9170_fw()
397 const struct firmware *fw = ar->fw.fw; in carl9170_parse_firmware() local
401 if (WARN_ON(!fw)) in carl9170_parse_firmware()
404 fw_desc = carl9170_find_fw_desc(ar, fw->data, fw->size); in carl9170_parse_firmware()
411 header_offset = (unsigned long)fw_desc - (unsigned long)fw->data; in carl9170_parse_firmware()
413 err = carl9170_fw_verify_descs(ar, fw_desc, fw->size - header_offset); in carl9170_parse_firmware()
419 ar->fw.desc = fw_desc; in carl9170_parse_firmware()
423 err = carl9170_fw(ar, fw->data, fw->size); in carl9170_parse_firmware()