Home
last modified time | relevance | path

Searched refs:hcmd (Results 1 – 24 of 24) sorted by relevance

/freebsd-14.2/sys/dev/iwm/
H A Dif_iwm_util.c186 code = hcmd->id; in iwm_send_cmd()
187 async = hcmd->flags & IWM_CMD_ASYNC; in iwm_send_cmd()
188 wantresp = hcmd->flags & IWM_CMD_WANT_SKB; in iwm_send_cmd()
192 paylen += hcmd->len[i]; in iwm_send_cmd()
228 paylen, hcmd->len[0]); in iwm_send_cmd()
278 if (hcmd->len[i] == 0) in iwm_send_cmd()
280 memcpy(data + off, hcmd->data[i], hcmd->len[i]); in iwm_send_cmd()
281 off += hcmd->len[i]; in iwm_send_cmd()
295 (unsigned long) (hcmd->len[0] + hcmd->len[1] + hdrlen), in iwm_send_cmd()
333 hcmd->resp_pkt = (void *)sc->sc_cmd_resp; in iwm_send_cmd()
[all …]
H A Dif_iwm_scan.c485 struct iwm_host_cmd hcmd = { in iwm_config_umac_scan() local
552 hcmd.data[0] = scan_config; in iwm_config_umac_scan()
553 hcmd.len[0] = cmd_size; in iwm_config_umac_scan()
557 ret = iwm_send_cmd(sc, &hcmd); in iwm_config_umac_scan()
607 struct iwm_host_cmd hcmd = { in iwm_umac_scan() local
629 hcmd.data[0] = (void *)req; in iwm_umac_scan()
706 ret = iwm_send_cmd(sc, &hcmd); in iwm_umac_scan()
717 struct iwm_host_cmd hcmd = { in iwm_lmac_scan() local
740 hcmd.data[0] = (void *)req; in iwm_lmac_scan()
827 ret = iwm_send_cmd(sc, &hcmd); in iwm_lmac_scan()
[all …]
H A Dif_iwm_util.h108 extern int iwm_send_cmd(struct iwm_softc *sc, struct iwm_host_cmd *hcmd);
116 extern void iwm_free_resp(struct iwm_softc *sc, struct iwm_host_cmd *hcmd);
H A Dif_iwm.c4606 struct iwm_host_cmd hcmd = { in iwm_send_update_mcc_cmd() local
4635 hcmd.len[0] = sizeof(struct iwm_mcc_update_cmd); in iwm_send_update_mcc_cmd()
4637 hcmd.len[0] = sizeof(struct iwm_mcc_update_cmd_v1); in iwm_send_update_mcc_cmd()
4643 ret = iwm_send_cmd(sc, &hcmd); in iwm_send_update_mcc_cmd()
4648 pkt = hcmd.resp_pkt; in iwm_send_update_mcc_cmd()
4669 iwm_free_resp(sc, &hcmd); in iwm_send_update_mcc_cmd()
5031 uint32_t hcmd; /* last host command header */ member
5226 device_printf(sc->sc_dev, "%08X | hcmd\n", table.hcmd); in iwm_nic_error()
/freebsd-14.2/sys/contrib/dev/iwlwifi/fw/
H A Dinit.c60 struct iwl_host_cmd hcmd = { in iwl_set_soc_latency() local
97 ret = iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_set_soc_latency()
108 struct iwl_host_cmd hcmd = { in iwl_configure_rxq() local
147 hcmd.data[0] = cmd; in iwl_configure_rxq()
148 hcmd.len[0] = size; in iwl_configure_rxq()
150 ret = iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_configure_rxq()
H A Ddebugfs.c130 struct iwl_host_cmd hcmd = { in iwl_dbgfs_enabled_severities_write() local
144 ret = iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_dbgfs_enabled_severities_write()
224 struct iwl_host_cmd hcmd = { in iwl_dbgfs_send_hcmd_write() local
244 hcmd.id = be32_to_cpu(data->cmd_id); in iwl_dbgfs_send_hcmd_write()
245 hcmd.flags = be32_to_cpu(data->flags); in iwl_dbgfs_send_hcmd_write()
246 hcmd.len[0] = be16_to_cpu(data->length); in iwl_dbgfs_send_hcmd_write()
247 hcmd.data[0] = data->data; in iwl_dbgfs_send_hcmd_write()
249 if (count != header_size + hcmd.len[0] * 2 + 1) { in iwl_dbgfs_send_hcmd_write()
257 ret = fwrt->ops->send_hcmd(fwrt->ops_ctx, &hcmd); in iwl_dbgfs_send_hcmd_write()
264 if (hcmd.flags & CMD_WANT_SKB) in iwl_dbgfs_send_hcmd_write()
[all …]
H A Dpaging.c245 struct iwl_host_cmd hcmd = { in iwl_send_paging_cmd() local
262 return iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_send_paging_cmd()
H A Ddbg.c2909 struct iwl_host_cmd hcmd = { local
2934 struct iwl_host_cmd hcmd = { local
2947 iwl_trans_send_cmd(fwrt->trans, &hcmd);
3132 struct iwl_host_cmd hcmd = { local
3138 return iwl_trans_send_cmd(trans, &hcmd);
3186 struct iwl_host_cmd hcmd = { local
3211 hcmd.data[0] = ▮
3212 hcmd.len[0] = sizeof(marker);
3214 ret = iwl_trans_send_cmd(fwrt->trans, &hcmd);
3216 if (cmd_ver > 1 && hcmd.resp_pkt) {
[all …]
H A Ddump.c54 u32 hcmd; /* last host command header */ member
254 IWL_ERR(fwrt, "0x%08X | hcmd\n", table.hcmd); in iwl_fwrt_dump_lmac_error_log()
H A Dfile.h926 struct iwl_fw_dbg_conf_hcmd hcmd; member
/freebsd-14.2/sys/contrib/dev/iwlwifi/mvm/
H A Doffloading.c41 struct iwl_host_cmd hcmd = { in iwl_mvm_send_proto_offload() local
50 int ver = iwl_fw_lookup_cmd_ver(mvm->fw, hcmd.id, 0); in iwl_mvm_send_proto_offload()
185 hcmd.data[0] = common; in iwl_mvm_send_proto_offload()
208 hcmd.len[0] = size; in iwl_mvm_send_proto_offload()
209 return iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_send_proto_offload()
H A Dftm-initiator.c588 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_start_v5() local
607 return iwl_mvm_ftm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_start_v5()
614 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_start_v7() local
637 return iwl_mvm_ftm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_start_v7()
644 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_start_v8() local
663 return iwl_mvm_ftm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_start_v8()
670 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_start_v9() local
690 return iwl_mvm_ftm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_start_v9()
772 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_start_v11() local
843 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_start_v12() local
[all …]
H A Dftm-responder.c178 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_responder_dyn_cfg_v2() local
208 hcmd.len[1] = aligned_lci_len + aligned_civicloc_len; in iwl_mvm_ftm_responder_dyn_cfg_v2()
210 return iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_responder_dyn_cfg_v2()
220 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_responder_dyn_cfg_v3() local
269 return iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_responder_dyn_cfg_v3()
H A Ddebugfs.c777 struct iwl_host_cmd hcmd = { in iwl_dbgfs_tas_get_status_read() local
791 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_dbgfs_tas_get_status_read()
802 rsp = (void *)hcmd.resp_pkt->data; in iwl_dbgfs_tas_get_status_read()
928 iwl_free_resp(&hcmd); in iwl_dbgfs_tas_get_status_read()
2056 struct iwl_host_cmd hcmd = { in iwl_dbgfs_mem_read() local
2088 rsp = (void *)hcmd.resp_pkt->data; in iwl_dbgfs_mem_read()
2106 iwl_free_resp(&hcmd); in iwl_dbgfs_mem_read()
2117 struct iwl_host_cmd hcmd = {}; in iwl_dbgfs_mem_write() local
2152 hcmd.data[0] = (void *)cmd; in iwl_dbgfs_mem_write()
2153 hcmd.len[0] = cmd_size; in iwl_dbgfs_mem_write()
[all …]
H A Drfi.c87 struct iwl_host_cmd hcmd = { in iwl_rfi_send_config_cmd() local
108 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_rfi_send_config_cmd()
H A Dscan.c2792 struct iwl_host_cmd *hcmd, in iwl_mvm_build_scan_cmd() argument
2805 hcmd->id = SCAN_OFFLOAD_REQUEST_CMD; in iwl_mvm_build_scan_cmd()
2814 hcmd->id = WIDE_ID(IWL_ALWAYS_LONG_GROUP, SCAN_REQ_UMAC); in iwl_mvm_build_scan_cmd()
2931 struct iwl_host_cmd hcmd = { in iwl_mvm_reg_scan_start() local
2988 uid = iwl_mvm_build_scan_cmd(mvm, vif, &hcmd, &params, in iwl_mvm_reg_scan_start()
2996 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_reg_scan_start()
3027 struct iwl_host_cmd hcmd = { in iwl_mvm_sched_scan_start() local
3127 uid = iwl_mvm_build_scan_cmd(mvm, vif, &hcmd, &params, type); in iwl_mvm_sched_scan_start()
3134 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_sched_scan_start()
H A Dmld-sta.c938 struct iwl_host_cmd hcmd = { in iwl_mvm_mld_update_sta_queues() local
960 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_mld_update_sta_queues()
H A Dops.c918 static void iwl_mvm_frob_hcmd(void *ctx, void *hcmd, size_t len) in iwl_mvm_frob_hcmd() argument
921 struct iwl_cmd_header_wide *hdr = hcmd; in iwl_mvm_frob_hcmd()
959 memset((u8 *)hcmd + frob_start, 0xAA, frob_end - frob_start); in iwl_mvm_frob_hcmd()
H A Dmac80211.c1790 struct iwl_host_cmd hcmd = { in iwl_mvm_mc_iface_iterator() local
1809 hcmd.len[0] = len; in iwl_mvm_mc_iface_iterator()
1810 hcmd.data[0] = cmd; in iwl_mvm_mc_iface_iterator()
1812 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_mc_iface_iterator()
6072 struct iwl_host_cmd hcmd = { in iwl_mvm_sync_rx_queues_internal() local
6094 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_sync_rx_queues_internal()
/freebsd-14.2/sys/contrib/dev/iwlwifi/queue/
H A Dtx.c1166 struct iwl_host_cmd *hcmd) in iwl_txq_alloc_response() argument
1178 rsp = (void *)hcmd->resp_pkt->data; in iwl_txq_alloc_response()
1210 iwl_free_resp(hcmd); in iwl_txq_alloc_response()
1214 iwl_free_resp(hcmd); in iwl_txq_alloc_response()
1227 struct iwl_host_cmd hcmd = { in iwl_txq_dyn_alloc() local
1254 hcmd.id = SCD_QUEUE_CFG; in iwl_txq_dyn_alloc()
1255 hcmd.len[0] = sizeof(cmd.old); in iwl_txq_dyn_alloc()
1256 hcmd.data[0] = &cmd.old; in iwl_txq_dyn_alloc()
1268 hcmd.len[0] = sizeof(cmd.new); in iwl_txq_dyn_alloc()
1269 hcmd.data[0] = &cmd.new; in iwl_txq_dyn_alloc()
[all …]
/freebsd-14.2/sys/contrib/dev/iwlwifi/
H A Diwl-dbg-tlv.c160 const struct iwl_fw_ini_hcmd_tlv *hcmd = (const void *)tlv->data; in iwl_dbg_tlv_alloc_hcmd() local
161 u32 tp = le32_to_cpu(hcmd->time_point); in iwl_dbg_tlv_alloc_hcmd()
163 if (le32_to_cpu(tlv->length) <= sizeof(*hcmd)) in iwl_dbg_tlv_alloc_hcmd()
693 struct iwl_host_cmd hcmd = { in iwl_dbg_tlv_apply_buffer() local
709 ret = iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_dbg_tlv_apply_buffer()
833 struct iwl_fw_ini_hcmd_tlv *hcmd = (void *)node->tlv.data; in iwl_dbg_tlv_send_hcmds() local
834 struct iwl_fw_ini_hcmd *hcmd_data = &hcmd->hcmd; in iwl_dbg_tlv_send_hcmds()
835 u16 hcmd_len = le32_to_cpu(node->tlv.length) - sizeof(*hcmd); in iwl_dbg_tlv_send_hcmds()
H A Diwl-nvm-parse.c1967 struct iwl_host_cmd hcmd = { in iwl_get_nvm() local
1990 ret = iwl_trans_send_cmd(trans, &hcmd); in iwl_get_nvm()
1994 if (WARN(iwl_rx_packet_payload_len(hcmd.resp_pkt) != rsp_size, in iwl_get_nvm()
1996 iwl_rx_packet_payload_len(hcmd.resp_pkt))) { in iwl_get_nvm()
2001 rsp = (void *)hcmd.resp_pkt->data; in iwl_get_nvm()
2074 iwl_free_resp(&hcmd); in iwl_get_nvm()
2080 iwl_free_resp(&hcmd); in iwl_get_nvm()
H A Diwl-trans.h394 void (*frob_hcmd)(void *ctx, void *hcmd, size_t buflen);
/freebsd-14.2/sys/contrib/dev/iwlwifi/fw/api/
H A Ddbg-tlv.h249 struct iwl_fw_ini_hcmd hcmd; member