Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/
H A Dinit.c62 struct iwl_host_cmd hcmd = { in iwl_set_soc_latency() local
99 ret = iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_set_soc_latency()
110 struct iwl_host_cmd hcmd = { in iwl_configure_rxq() local
149 hcmd.data[0] = cmd; in iwl_configure_rxq()
150 hcmd.len[0] = size; in iwl_configure_rxq()
152 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
145 ret = fwrt->ops->send_hcmd(fwrt->ops_ctx, &hcmd); in iwl_dbgfs_enabled_severities_write()
228 struct iwl_host_cmd hcmd = { in iwl_dbgfs_send_hcmd_write() local
247 hcmd.id = be32_to_cpu(data->cmd_id); in iwl_dbgfs_send_hcmd_write()
248 hcmd.flags = be32_to_cpu(data->flags); in iwl_dbgfs_send_hcmd_write()
249 hcmd.len[0] = be16_to_cpu(data->length); in iwl_dbgfs_send_hcmd_write()
250 hcmd.data[0] = data->data; in iwl_dbgfs_send_hcmd_write()
252 if (count != header_size + hcmd.len[0] * 2 + 1) { in iwl_dbgfs_send_hcmd_write()
260 ret = fwrt->ops->send_hcmd(fwrt->ops_ctx, &hcmd); in iwl_dbgfs_send_hcmd_write()
267 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.c2883 ptr = (void *)&fwrt->fw->dbg.conf_tlv[conf_id]->hcmd; in iwl_fw_start_dbg_conf()
2886 struct iwl_host_cmd hcmd = { in iwl_fw_start_dbg_conf() local
2892 ret = iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_fw_start_dbg_conf()
2911 struct iwl_host_cmd hcmd = { in iwl_send_dbg_dump_complete_cmd() local
2924 iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_send_dbg_dump_complete_cmd()
3110 struct iwl_host_cmd hcmd = { in iwl_fw_dbg_suspend_resume_hcmd() local
3116 return iwl_trans_send_cmd(trans, &hcmd); in iwl_fw_dbg_suspend_resume_hcmd()
3164 struct iwl_host_cmd hcmd = { in iwl_fw_send_timestamp_marker_cmd() local
3189 hcmd.data[0] = ▮ in iwl_fw_send_timestamp_marker_cmd()
3190 hcmd.len[0] = sizeof(marker); in iwl_fw_send_timestamp_marker_cmd()
[all …]
H A Ddump.c54 u32 hcmd; /* last host command header */ member
253 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
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-devtrace-iwlwifi.h25 __dynamic_array(u8, hcmd, total_size)
36 memcpy(__get_dynamic_array(hcmd), hdr, offset);
41 memcpy((u8 *)__get_dynamic_array(hcmd) + offset,
47 __get_str(dev), ((u8 *)__get_dynamic_array(hcmd))[1],
48 ((u8 *)__get_dynamic_array(hcmd))[0],
H A Diwl-dbg-tlv.c166 const struct iwl_fw_ini_hcmd_tlv *hcmd = (const void *)tlv->data; in iwl_dbg_tlv_alloc_hcmd() local
167 u32 tp = le32_to_cpu(hcmd->time_point); in iwl_dbg_tlv_alloc_hcmd()
169 if (le32_to_cpu(tlv->length) <= sizeof(*hcmd)) in iwl_dbg_tlv_alloc_hcmd()
699 struct iwl_host_cmd hcmd = { in iwl_dbg_tlv_apply_buffer() local
715 ret = iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_dbg_tlv_apply_buffer()
839 struct iwl_fw_ini_hcmd_tlv *hcmd = (void *)node->tlv.data; in iwl_dbg_tlv_send_hcmds() local
840 struct iwl_fw_ini_hcmd *hcmd_data = &hcmd->hcmd; in iwl_dbg_tlv_send_hcmds()
841 u16 hcmd_len = le32_to_cpu(node->tlv.length) - sizeof(*hcmd); in iwl_dbg_tlv_send_hcmds()
H A Diwl-nvm-parse.c1962 struct iwl_host_cmd hcmd = { in iwl_get_nvm() local
1985 ret = iwl_trans_send_cmd(trans, &hcmd); in iwl_get_nvm()
1989 if (WARN(iwl_rx_packet_payload_len(hcmd.resp_pkt) != rsp_size, in iwl_get_nvm()
1991 iwl_rx_packet_payload_len(hcmd.resp_pkt))) { in iwl_get_nvm()
1996 rsp = (void *)hcmd.resp_pkt->data; in iwl_get_nvm()
2065 iwl_free_resp(&hcmd); in iwl_get_nvm()
2071 iwl_free_resp(&hcmd); in iwl_get_nvm()
H A Diwl-trans.h385 void (*frob_hcmd)(void *ctx, void *hcmd, size_t buflen);
/openbmc/linux/drivers/net/wireless/intel/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.c568 static int iwl_mvm_ftm_send_cmd(struct iwl_mvm *mvm, struct iwl_host_cmd *hcmd) in iwl_mvm_ftm_send_cmd() argument
571 int err = iwl_mvm_send_cmd_status(mvm, hcmd, &status); in iwl_mvm_ftm_send_cmd()
586 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_start_v5() local
605 return iwl_mvm_ftm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_start_v5()
612 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_start_v7() local
635 return iwl_mvm_ftm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_start_v7()
642 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_start_v8() local
661 return iwl_mvm_ftm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_start_v8()
668 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_start_v9() local
688 return iwl_mvm_ftm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_start_v9()
[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.c773 struct iwl_host_cmd hcmd = { in iwl_dbgfs_tas_get_status_read() local
787 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_dbgfs_tas_get_status_read()
798 rsp = (void *)hcmd.resp_pkt->data; in iwl_dbgfs_tas_get_status_read()
924 iwl_free_resp(&hcmd); in iwl_dbgfs_tas_get_status_read()
2052 struct iwl_host_cmd hcmd = { in iwl_dbgfs_mem_read() local
2063 hcmd.id = WIDE_ID(DEBUG_GROUP, *ppos >> 24 ? UMAC_RD_WR : LMAC_RD_WR); in iwl_dbgfs_mem_read()
2073 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_dbgfs_mem_read()
2079 if (iwl_rx_packet_payload_len(hcmd.resp_pkt) < sizeof(*rsp)) { in iwl_dbgfs_mem_read()
2084 rsp = (void *)hcmd.resp_pkt->data; in iwl_dbgfs_mem_read()
2091 iwl_rx_packet_payload_len(hcmd.resp_pkt) - sizeof(*rsp)); in iwl_dbgfs_mem_read()
[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()
2932 struct iwl_host_cmd hcmd = { in iwl_mvm_reg_scan_start() local
2989 uid = iwl_mvm_build_scan_cmd(mvm, vif, &hcmd, &params, in iwl_mvm_reg_scan_start()
2997 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_reg_scan_start()
3028 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()
3133 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_sched_scan_start()
H A Dmld-sta.c948 struct iwl_host_cmd hcmd = { in iwl_mvm_mld_update_sta_queues() local
970 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_mld_update_sta_queues()
H A Dops.c896 static void iwl_mvm_frob_hcmd(void *ctx, void *hcmd, size_t len) in iwl_mvm_frob_hcmd() argument
899 struct iwl_cmd_header_wide *hdr = hcmd; in iwl_mvm_frob_hcmd()
937 memset((u8 *)hcmd + frob_start, 0xAA, frob_end - frob_start); in iwl_mvm_frob_hcmd()
H A Dmac80211.c1804 struct iwl_host_cmd hcmd = { in iwl_mvm_mc_iface_iterator() local
1823 hcmd.len[0] = len; in iwl_mvm_mc_iface_iterator()
1824 hcmd.data[0] = cmd; in iwl_mvm_mc_iface_iterator()
1826 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_mc_iface_iterator()
6068 struct iwl_host_cmd hcmd = { in iwl_mvm_sync_rx_queues_internal() local
6090 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_sync_rx_queues_internal()
H A Dsta.c2822 struct iwl_host_cmd hcmd = { in iwl_mvm_fw_baid_op_cmd() local
2839 } else if (iwl_fw_lookup_cmd_ver(mvm->fw, hcmd.id, 1) == 1) { in iwl_mvm_fw_baid_op_cmd()
2848 ret = iwl_mvm_send_cmd_status(mvm, &hcmd, &baid); in iwl_mvm_fw_baid_op_cmd()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Ddevices.c400 struct iwl_host_cmd hcmd = { in iwl5000_hw_channel_switch() local
445 return iwl_dvm_send_cmd(priv, &hcmd); in iwl5000_hw_channel_switch()
561 struct iwl_host_cmd hcmd = { in iwl6000_hw_channel_switch() local
572 hcmd.data[0] = cmd; in iwl6000_hw_channel_switch()
613 err = iwl_dvm_send_cmd(priv, &hcmd); in iwl6000_hw_channel_switch()
H A Dcalib.c36 struct iwl_host_cmd hcmd = { in iwl_send_calib_results() local
44 hcmd.len[0] = res->cmd_len; in iwl_send_calib_results()
45 hcmd.data[0] = &res->cmd; in iwl_send_calib_results()
46 hcmd.dataflags[0] = IWL_HCMD_DFL_NOCOPY; in iwl_send_calib_results()
47 ret = iwl_dvm_send_cmd(priv, &hcmd); in iwl_send_calib_results()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/queue/
H A Dtx.c1173 struct iwl_host_cmd *hcmd) in iwl_txq_alloc_response() argument
1179 if (WARN_ON(iwl_rx_packet_payload_len(hcmd->resp_pkt) != in iwl_txq_alloc_response()
1185 rsp = (void *)hcmd->resp_pkt->data; in iwl_txq_alloc_response()
1217 iwl_free_resp(hcmd); in iwl_txq_alloc_response()
1221 iwl_free_resp(hcmd); in iwl_txq_alloc_response()
1234 struct iwl_host_cmd hcmd = { in iwl_txq_dyn_alloc() local
1261 hcmd.id = SCD_QUEUE_CFG; in iwl_txq_dyn_alloc()
1262 hcmd.len[0] = sizeof(cmd.old); in iwl_txq_dyn_alloc()
1263 hcmd.data[0] = &cmd.old; in iwl_txq_dyn_alloc()
1274 hcmd.id = WIDE_ID(DATA_PATH_GROUP, SCD_QUEUE_CONFIG_CMD); in iwl_txq_dyn_alloc()
[all …]
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/fw/api/
H A Ddbg-tlv.h250 struct iwl_fw_ini_hcmd hcmd; member
/openbmc/u-boot/drivers/misc/
H A Dcros_ec.c1327 static int cros_ec_handle_non_uhepi_cmd(struct udevice *dev, uint hcmd, in cros_ec_handle_non_uhepi_cmd() argument
1334 if (hcmd == INVALID_HCMD) in cros_ec_handle_non_uhepi_cmd()
1342 ret = ec_command(dev, hcmd, 0, &req, sizeof(req), &rsp, sizeof(rsp)); in cros_ec_handle_non_uhepi_cmd()

12