Home
last modified time | relevance | path

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

/freebsd/sys/dev/iwm/
H A Dif_iwm_util.c168 iwm_send_cmd(struct iwm_softc *sc, struct iwm_host_cmd *hcmd) in iwm_send_cmd() argument
186 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()
191 for (i = 0, paylen = 0; i < nitems(hcmd->len); i++) { in iwm_send_cmd()
192 paylen += hcmd->len[i]; in iwm_send_cmd()
228 paylen, hcmd->len[0]); in iwm_send_cmd()
277 for (i = 0, off = 0; i < nitems(hcmd->data); i++) { 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()
[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
628 hcmd.len[0] = (uint16_t)req_len; in iwm_umac_scan()
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
739 hcmd.len[0] = (uint16_t)req_len; 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/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
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()
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 in iwl_dbgfs_send_hcmd_write()
224 struct iwl_host_cmd hcmd = { iwl_dbgfs_send_hcmd_write() local
[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.c3045 ptr = (void *)&fwrt->fw->dbg.conf_tlv[conf_id]->hcmd;
3048 struct iwl_host_cmd hcmd = {
3054 ret = iwl_trans_send_cmd(fwrt->trans, &hcmd);
3073 struct iwl_host_cmd hcmd = {
3086 iwl_trans_send_cmd(fwrt->trans, &hcmd);
3275 struct iwl_host_cmd hcmd = {
3281 return iwl_trans_send_cmd(trans, &hcmd);
3329 struct iwl_host_cmd hcmd = {
3354 hcmd.data[0] = &marker;
3355 hcmd
2909 struct iwl_host_cmd hcmd = { global() local
2934 struct iwl_host_cmd hcmd = { global() local
3132 struct iwl_host_cmd hcmd = { global() local
3186 struct iwl_host_cmd hcmd = { global() local
[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.h952 * @hcmd: a variable length host command to be sent to apply the configuration.
963 struct iwl_fw_dbg_conf_hcmd hcmd;
926 struct iwl_fw_dbg_conf_hcmd hcmd; global() member
/freebsd/sys/contrib/dev/iwlwifi/mvm/
H A Doffloading.c42 struct iwl_host_cmd hcmd = { in iwl_mvm_send_proto_offload()
51 int ver = iwl_fw_lookup_cmd_ver(mvm->fw, hcmd.id, 0); in iwl_mvm_send_proto_offload()
186 hcmd.data[0] = common; in iwl_mvm_send_proto_offload()
212 hcmd.len[0] = size;
213 return iwl_mvm_send_cmd(mvm, &hcmd);
41 struct iwl_host_cmd hcmd = { iwl_mvm_send_proto_offload() local
H A Dftm-initiator.c603 static int iwl_mvm_ftm_send_cmd(struct iwl_mvm *mvm, struct iwl_host_cmd *hcmd) in iwl_mvm_ftm_start_v5()
606 int err = iwl_mvm_send_cmd_status(mvm, hcmd, &status); in iwl_mvm_ftm_start_v5()
621 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_start_v7()
640 return iwl_mvm_ftm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_start_v8()
647 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_start_v8()
670 return iwl_mvm_ftm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_start_v9() local
677 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_start_v9()
696 return iwl_mvm_ftm_send_cmd(mvm, &hcmd); in iter()
703 struct iwl_host_cmd hcmd = { in iter()
723 return iwl_mvm_ftm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_set_secured_ranging()
570 iwl_mvm_ftm_send_cmd(struct iwl_mvm * mvm,struct iwl_host_cmd * hcmd) iwl_mvm_ftm_send_cmd() argument
588 struct iwl_host_cmd hcmd = { iwl_mvm_ftm_start_v5() local
614 struct iwl_host_cmd hcmd = { iwl_mvm_ftm_start_v7() local
644 struct iwl_host_cmd hcmd = { iwl_mvm_ftm_start_v8() local
772 struct iwl_host_cmd hcmd = { iwl_mvm_ftm_start_v11() local
843 struct iwl_host_cmd hcmd = { iwl_mvm_ftm_start_v12() local
871 struct iwl_host_cmd hcmd = { iwl_mvm_ftm_start_v13() local
[all...]
H A Dftm-responder.c186 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_responder_dyn_cfg_v2()
216 hcmd.len[1] = aligned_lci_len + aligned_civicloc_len; in iwl_mvm_ftm_responder_dyn_cfg_v3()
218 return iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_responder_dyn_cfg_v3()
228 struct iwl_host_cmd hcmd = { in iwl_mvm_ftm_responder_dyn_cfg_v3()
277 return iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_ftm_responder_dyn_cfg_cmd()
178 struct iwl_host_cmd hcmd = { iwl_mvm_ftm_responder_dyn_cfg_v2() local
220 struct iwl_host_cmd hcmd = { iwl_mvm_ftm_responder_dyn_cfg_v3() local
H A Ddebugfs.c603 struct iwl_host_cmd hcmd = { in iwl_dbgfs_bt_notif_read()
617 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_dbgfs_bt_notif_read()
628 rsp = (void *)hcmd.resp_pkt->data; in iwl_dbgfs_bt_notif_read()
754 iwl_free_resp(&hcmd); in iwl_dbgfs_tas_get_status_read()
2007 struct iwl_host_cmd hcmd = {
2018 hcmd.id = WIDE_ID(DEBUG_GROUP, *ppos >> 24 ? UMAC_RD_WR : LMAC_RD_WR);
2028 ret = iwl_mvm_send_cmd(mvm, &hcmd);
2034 if (iwl_rx_packet_payload_len(hcmd.resp_pkt) < sizeof(*rsp)) {
2039 rsp = (void *)hcmd.resp_pkt->data;
2046 iwl_rx_packet_payload_len(hcmd
777 struct iwl_host_cmd hcmd = { iwl_dbgfs_tas_get_status_read() local
2056 struct iwl_host_cmd hcmd = { iwl_dbgfs_mem_read() local
2117 struct iwl_host_cmd hcmd = {}; iwl_dbgfs_mem_write() local
[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.c2835 struct iwl_host_cmd *hcmd,
2848 hcmd->id = SCAN_OFFLOAD_REQUEST_CMD; in iwl_mvm_scan_respect_p2p_go_iter()
2857 hcmd->id = WIDE_ID(IWL_ALWAYS_LONG_GROUP, SCAN_REQ_UMAC); in iwl_mvm_scan_respect_p2p_go_iter()
2977 struct iwl_host_cmd hcmd = { in iwl_mvm_reg_scan_start()
3042 uid = iwl_mvm_build_scan_cmd(mvm, vif, &hcmd, &params, type); in iwl_mvm_sched_scan_start()
3049 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_sched_scan_start()
3092 struct iwl_host_cmd hcmd = { in iwl_mvm_sched_scan_start()
3191 uid = iwl_mvm_build_scan_cmd(mvm, vif, &hcmd, &params, type); in iwl_mvm_rx_umac_scan_complete_notif()
3197 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_rx_umac_scan_complete_notif()
2792 iwl_mvm_build_scan_cmd(struct iwl_mvm * mvm,struct ieee80211_vif * vif,struct iwl_host_cmd * hcmd,struct iwl_mvm_scan_params * params,int type) iwl_mvm_build_scan_cmd() argument
2931 struct iwl_host_cmd hcmd = { iwl_mvm_reg_scan_start() local
3027 struct iwl_host_cmd hcmd = { iwl_mvm_sched_scan_start() local
H A Dmld-sta.c951 struct iwl_host_cmd hcmd = { in iwl_mvm_mld_update_sta_queues()
973 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_mld_update_sta_baids()
938 struct iwl_host_cmd hcmd = { iwl_mvm_mld_update_sta_queues() local
H A Dops.c1001 static void iwl_mvm_frob_hcmd(void *ctx, void *hcmd, size_t len) in iwl_mvm_frob_mem()
1004 struct iwl_cmd_header_wide *hdr = hcmd; in iwl_mvm_frob_mem()
1042 memset((u8 *)hcmd + frob_start, 0xAA, frob_end - frob_start); in iwl_mvm_mei_rfkill()
918 iwl_mvm_frob_hcmd(void * ctx,void * hcmd,size_t len) iwl_mvm_frob_hcmd() argument
H A Dmac80211.c2001 struct iwl_host_cmd hcmd = { in iwl_mvm_he_get_ppe_val()
2020 hcmd.len[0] = len; in iwl_mvm_he_get_ppe_val()
2021 hcmd.data[0] = cmd; in iwl_mvm_he_get_ppe_val()
2023 ret = iwl_mvm_send_cmd(mvm, &hcmd); in iwl_mvm_parse_ppe()
6412 struct iwl_host_cmd hcmd = {
6434 ret = iwl_mvm_send_cmd(mvm, &hcmd);
1790 struct iwl_host_cmd hcmd = { iwl_mvm_mc_iface_iterator() local
6072 struct iwl_host_cmd hcmd = { iwl_mvm_sync_rx_queues_internal() local
/freebsd/sys/contrib/dev/iwlwifi/queue/
H A Dtx.c
/freebsd/sys/contrib/dev/iwlwifi/
H A Diwl-dbg-tlv.c169 const struct iwl_fw_ini_hcmd_tlv *hcmd = (const void *)tlv->data; in iwl_dbg_tlv_alloc_hcmd()
170 u32 tp = le32_to_cpu(hcmd->time_point); in iwl_dbg_tlv_alloc_hcmd()
172 if (le32_to_cpu(tlv->length) <= sizeof(*hcmd)) in iwl_dbg_tlv_alloc_hcmd()
698 struct iwl_host_cmd hcmd = { in iwl_dbg_tlv_apply_buffer()
714 ret = iwl_trans_send_cmd(fwrt->trans, &hcmd); in iwl_dbg_tlv_apply_buffer()
838 struct iwl_fw_ini_hcmd_tlv *hcmd = (void *)node->tlv.data; in iwl_dbg_tlv_send_hcmds()
839 struct iwl_fw_ini_hcmd *hcmd_data = &hcmd->hcmd; in iwl_dbg_tlv_send_hcmds()
840 u16 hcmd_len = le32_to_cpu(node->tlv.length) - sizeof(*hcmd); in iwl_dbg_tlv_send_hcmds()
160 const struct iwl_fw_ini_hcmd_tlv *hcmd = (const void *)tlv->data; iwl_dbg_tlv_alloc_hcmd() local
693 struct iwl_host_cmd hcmd = { iwl_dbg_tlv_apply_buffer() local
833 struct iwl_fw_ini_hcmd_tlv *hcmd = (void *)node->tlv.data; iwl_dbg_tlv_send_hcmds() local
H A Diwl-nvm-parse.c2076 struct iwl_host_cmd hcmd = { in iwl_get_nvm()
2102 ret = iwl_trans_send_cmd(trans, &hcmd);
2106 if (WARN(iwl_rx_packet_payload_len(hcmd.resp_pkt) != rsp_size,
2108 iwl_rx_packet_payload_len(hcmd.resp_pkt))) {
2113 rsp = (void *)hcmd.resp_pkt->data;
2191 iwl_free_resp(&hcmd);
2197 iwl_free_resp(&hcmd);
1967 struct iwl_host_cmd hcmd = { iwl_get_nvm() local
H A Diwl-trans.h384 * @frob_hcmd: Scrub a host command, the %hcmd pointer is to the header
391 void (*frob_hcmd)(void *ctx, void *hcmd, size_t buflen);
/freebsd/sys/contrib/dev/iwlwifi/fw/api/
H A Ddbg-tlv.h273 * @period_msec: interval at which the hcmd will be sent to the FW.
275 * @hcmd: a variable length host-command to be sent to apply the configuration
281 struct iwl_fw_ini_hcmd hcmd;
442 * Hard coded time points in which the driver can send hcmd or perform dump
249 struct iwl_fw_ini_hcmd hcmd; global() member