Lines Matching refs:fwrt

11 static void iwl_parse_shared_mem_22000(struct iwl_fw_runtime *fwrt,  in iwl_parse_shared_mem_22000()  argument
17 u8 api_ver = iwl_fw_lookup_notif_ver(fwrt->fw, SYSTEM_GROUP, in iwl_parse_shared_mem_22000()
23 fwrt->smem_cfg.num_lmacs = lmac_num; in iwl_parse_shared_mem_22000()
24 fwrt->smem_cfg.num_txfifo_entries = in iwl_parse_shared_mem_22000()
26 fwrt->smem_cfg.rxfifo2_size = le32_to_cpu(mem_cfg->rxfifo2_size); in iwl_parse_shared_mem_22000()
30 fwrt->smem_cfg.rxfifo2_control_size = in iwl_parse_shared_mem_22000()
39 fwrt->smem_cfg.lmac[lmac].txfifo_size[i] = in iwl_parse_shared_mem_22000()
41 fwrt->smem_cfg.lmac[lmac].rxfifo1_size = in iwl_parse_shared_mem_22000()
46 static void iwl_parse_shared_mem(struct iwl_fw_runtime *fwrt, in iwl_parse_shared_mem() argument
52 fwrt->smem_cfg.num_lmacs = 1; in iwl_parse_shared_mem()
54 fwrt->smem_cfg.num_txfifo_entries = ARRAY_SIZE(mem_cfg->txfifo_size); in iwl_parse_shared_mem()
56 fwrt->smem_cfg.lmac[0].txfifo_size[i] = in iwl_parse_shared_mem()
59 fwrt->smem_cfg.lmac[0].rxfifo1_size = in iwl_parse_shared_mem()
61 fwrt->smem_cfg.rxfifo2_size = le32_to_cpu(mem_cfg->rxfifo_size[1]); in iwl_parse_shared_mem()
64 if (fw_has_capa(&fwrt->fw->ucode_capa, in iwl_parse_shared_mem()
66 BUILD_BUG_ON(sizeof(fwrt->smem_cfg.internal_txfifo_size) != in iwl_parse_shared_mem()
69 fwrt->smem_cfg.internal_txfifo_addr = in iwl_parse_shared_mem()
73 i < ARRAY_SIZE(fwrt->smem_cfg.internal_txfifo_size); in iwl_parse_shared_mem()
75 fwrt->smem_cfg.internal_txfifo_size[i] = in iwl_parse_shared_mem()
80 void iwl_get_shared_mem_conf(struct iwl_fw_runtime *fwrt) in iwl_get_shared_mem_conf() argument
90 if (fw_has_capa(&fwrt->fw->ucode_capa, in iwl_get_shared_mem_conf()
96 ret = iwl_trans_send_cmd(fwrt->trans, &cmd); in iwl_get_shared_mem_conf()
105 if (fwrt->trans->trans_cfg->device_family >= IWL_DEVICE_FAMILY_22000) in iwl_get_shared_mem_conf()
106 iwl_parse_shared_mem_22000(fwrt, pkt); in iwl_get_shared_mem_conf()
108 iwl_parse_shared_mem(fwrt, pkt); in iwl_get_shared_mem_conf()
110 IWL_DEBUG_INFO(fwrt, "SHARED MEM CFG: got memory offsets/sizes\n"); in iwl_get_shared_mem_conf()