Lines Matching refs:tof_data

70 	struct iwl_mvm_tof_data *tof_data = &mvm->tof_data;  in iwl_mvm_tof_init()  local
75 memset(tof_data, 0, sizeof(*tof_data)); in iwl_mvm_tof_init()
77 tof_data->tof_cfg.sub_grp_cmd_id = cpu_to_le32(TOF_CONFIG_CMD); in iwl_mvm_tof_init()
81 tof_data->responder_cfg.sub_grp_cmd_id = in iwl_mvm_tof_init()
83 tof_data->responder_cfg.sta_id = IWL_MVM_STATION_COUNT; in iwl_mvm_tof_init()
87 tof_data->range_req.sub_grp_cmd_id = cpu_to_le32(TOF_RANGE_REQ_CMD); in iwl_mvm_tof_init()
88 tof_data->range_req.req_timeout = 1; in iwl_mvm_tof_init()
89 tof_data->range_req.initiator = 1; in iwl_mvm_tof_init()
90 tof_data->range_req.report_policy = 3; in iwl_mvm_tof_init()
92 tof_data->range_req_ext.sub_grp_cmd_id = in iwl_mvm_tof_init()
95 mvm->tof_data.active_range_request = IWL_MVM_TOF_RANGE_REQ_MAX_ID; in iwl_mvm_tof_init()
100 struct iwl_mvm_tof_data *tof_data = &mvm->tof_data; in iwl_mvm_tof_clean() local
105 memset(tof_data, 0, sizeof(*tof_data)); in iwl_mvm_tof_clean()
106 mvm->tof_data.active_range_request = IWL_MVM_TOF_RANGE_REQ_MAX_ID; in iwl_mvm_tof_clean()
121 struct iwl_tof_config_cmd *cmd = &mvm->tof_data.tof_cfg; in iwl_mvm_tof_config_cmd()
137 mvm->tof_data.active_range_request = IWL_MVM_TOF_RANGE_REQ_MAX_ID; in iwl_mvm_tof_config_cmd()
155 if (id != mvm->tof_data.active_range_request) { in iwl_mvm_tof_range_abort_cmd()
157 id, mvm->tof_data.active_range_request); in iwl_mvm_tof_range_abort_cmd()
162 mvm->tof_data.active_range_request = IWL_MVM_TOF_RANGE_REQ_MAX_ID; in iwl_mvm_tof_range_abort_cmd()
173 struct iwl_tof_responder_config_cmd *cmd = &mvm->tof_data.responder_cfg; in iwl_mvm_tof_responder_cmd()
200 .len = { sizeof(mvm->tof_data.range_req), }, in iwl_mvm_tof_range_request_cmd()
216 if (mvm->tof_data.active_range_request != in iwl_mvm_tof_range_request_cmd()
219 mvm->tof_data.active_range_request); in iwl_mvm_tof_range_request_cmd()
223 mvm->tof_data.active_range_request = mvm->tof_data.range_req.request_id; in iwl_mvm_tof_range_request_cmd()
225 cmd.data[0] = &mvm->tof_data.range_req; in iwl_mvm_tof_range_request_cmd()
244 0, sizeof(mvm->tof_data.range_req_ext), in iwl_mvm_tof_range_request_ext_cmd()
245 &mvm->tof_data.range_req_ext); in iwl_mvm_tof_range_request_ext_cmd()
252 if (resp->request_id != mvm->tof_data.active_range_request) { in iwl_mvm_tof_range_resp()
254 resp->request_id, mvm->tof_data.active_range_request); in iwl_mvm_tof_range_resp()
258 memcpy(&mvm->tof_data.range_resp, resp, in iwl_mvm_tof_range_resp()
260 mvm->tof_data.active_range_request = IWL_MVM_TOF_RANGE_REQ_MAX_ID; in iwl_mvm_tof_range_resp()