Lines Matching refs:params
172 struct twt_add_dialog_param *params) in osif_twt_parse_add_dialog_attrs() argument
180 params->dialog_id = nla_get_u8(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
181 if (params->dialog_id > TWT_MAX_DIALOG_ID) { in osif_twt_parse_add_dialog_attrs()
182 osif_err_rl("Flow id (%u) invalid", params->dialog_id); in osif_twt_parse_add_dialog_attrs()
186 params->dialog_id = 0; in osif_twt_parse_add_dialog_attrs()
204 params->flag_bcast = nla_get_flag(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
208 params->dialog_id = nla_get_u8(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
209 osif_debug("TWT_SETUP_BCAST_ID %d", params->dialog_id); in osif_twt_parse_add_dialog_attrs()
214 params->b_twt_recommendation = nla_get_u8(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
216 params->b_twt_recommendation); in osif_twt_parse_add_dialog_attrs()
221 params->b_twt_persistence = nla_get_u8(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
223 params->b_twt_persistence); in osif_twt_parse_add_dialog_attrs()
232 ¶ms->twt_cmd); in osif_twt_parse_add_dialog_attrs()
237 params->flag_trigger = nla_get_flag(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
244 params->flag_flow_type = nla_get_u8(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
245 if (params->flag_flow_type != TWT_FLOW_TYPE_ANNOUNCED && in osif_twt_parse_add_dialog_attrs()
246 params->flag_flow_type != TWT_FLOW_TYPE_UNANNOUNCED) in osif_twt_parse_add_dialog_attrs()
250 params->flag_protection = nla_get_flag(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
254 params->sp_offset_us = nla_get_u32(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
261 params->wake_dura_us = TWT_WAKE_DURATION_MULTIPLICATION_FACTOR * in osif_twt_parse_add_dialog_attrs()
263 if (params->wake_dura_us > TWT_SETUP_WAKE_DURATION_MAX) { in osif_twt_parse_add_dialog_attrs()
265 params->wake_dura_us); in osif_twt_parse_add_dialog_attrs()
271 params->min_wake_dura_us = nla_get_u32(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
275 params->max_wake_dura_us = nla_get_u32(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
277 if (params->min_wake_dura_us > params->max_wake_dura_us) { in osif_twt_parse_add_dialog_attrs()
279 params->min_wake_dura_us, params->max_wake_dura_us); in osif_twt_parse_add_dialog_attrs()
280 params->min_wake_dura_us = 0; in osif_twt_parse_add_dialog_attrs()
281 params->max_wake_dura_us = 0; in osif_twt_parse_add_dialog_attrs()
289 params->wake_intvl_mantis = nla_get_u32(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
297 params->wake_intvl_mantis = nla_get_u32(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
299 if (params->wake_intvl_mantis > in osif_twt_parse_add_dialog_attrs()
302 params->wake_intvl_mantis); in osif_twt_parse_add_dialog_attrs()
306 if (wake_intvl_exp && params->wake_intvl_mantis) { in osif_twt_parse_add_dialog_attrs()
309 (UINT_MAX / params->wake_intvl_mantis)) { in osif_twt_parse_add_dialog_attrs()
312 params->wake_intvl_mantis); in osif_twt_parse_add_dialog_attrs()
315 params->wake_intvl_us = in osif_twt_parse_add_dialog_attrs()
316 params->wake_intvl_mantis * result; in osif_twt_parse_add_dialog_attrs()
318 params->wake_intvl_us = params->wake_intvl_mantis; in osif_twt_parse_add_dialog_attrs()
323 params->min_wake_intvl_us = nla_get_u32(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
327 params->max_wake_intvl_us = nla_get_u32(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
329 if (params->min_wake_intvl_us > params->max_wake_intvl_us) { in osif_twt_parse_add_dialog_attrs()
331 params->min_wake_intvl_us, in osif_twt_parse_add_dialog_attrs()
332 params->max_wake_intvl_us); in osif_twt_parse_add_dialog_attrs()
333 params->min_wake_dura_us = 0; in osif_twt_parse_add_dialog_attrs()
334 params->max_wake_dura_us = 0; in osif_twt_parse_add_dialog_attrs()
339 params->wake_time_tsf = nla_get_u64(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
341 params->wake_time_tsf = 0; in osif_twt_parse_add_dialog_attrs()
345 params->announce_timeout_us = nla_get_u32(tb[cmd_id]); in osif_twt_parse_add_dialog_attrs()
347 params->announce_timeout_us = 0; in osif_twt_parse_add_dialog_attrs()
350 params->dialog_id, params->vdev_id, params->wake_intvl_us, in osif_twt_parse_add_dialog_attrs()
351 params->min_wake_intvl_us, params->max_wake_intvl_us, in osif_twt_parse_add_dialog_attrs()
352 params->wake_intvl_mantis); in osif_twt_parse_add_dialog_attrs()
355 params->wake_dura_us, params->min_wake_dura_us, in osif_twt_parse_add_dialog_attrs()
356 params->max_wake_dura_us, params->sp_offset_us, in osif_twt_parse_add_dialog_attrs()
357 params->twt_cmd); in osif_twt_parse_add_dialog_attrs()
359 params->flag_bcast, params->flag_trigger, in osif_twt_parse_add_dialog_attrs()
360 params->flag_flow_type, in osif_twt_parse_add_dialog_attrs()
361 params->flag_protection, in osif_twt_parse_add_dialog_attrs()
362 params->wake_time_tsf); in osif_twt_parse_add_dialog_attrs()
365 QDF_MAC_ADDR_REF(params->peer_macaddr.bytes)); in osif_twt_parse_add_dialog_attrs()
367 params->announce_timeout_us); in osif_twt_parse_add_dialog_attrs()
383 struct twt_del_dialog_param *params) in osif_twt_parse_del_dialog_attrs() argument
389 params->dialog_id = nla_get_u8(tb[cmd_id]); in osif_twt_parse_del_dialog_attrs()
391 params->dialog_id = 0; in osif_twt_parse_del_dialog_attrs()
397 params->dialog_id = nla_get_u8(tb[cmd_id]); in osif_twt_parse_del_dialog_attrs()
398 osif_debug("TWT_SETUP_BCAST_ID %d", params->dialog_id); in osif_twt_parse_del_dialog_attrs()
402 params->dialog_id, params->vdev_id, in osif_twt_parse_del_dialog_attrs()
403 QDF_MAC_ADDR_REF(params->peer_macaddr.bytes)); in osif_twt_parse_del_dialog_attrs()
487 static const struct osif_request_params params = { in osif_send_twt_setup_req() local
492 request = osif_request_alloc(¶ms); in osif_send_twt_setup_req()
594 static const struct osif_request_params params = { in osif_send_twt_pause_req() local
599 request = osif_request_alloc(¶ms); in osif_send_twt_pause_req()
667 static const struct osif_request_params params = { in osif_send_sta_twt_teardown_req() local
672 request = osif_request_alloc(¶ms); in osif_send_sta_twt_teardown_req()
753 static const struct osif_request_params params = { in osif_send_twt_resume_req() local
758 request = osif_request_alloc(¶ms); in osif_send_twt_resume_req()
834 static const struct osif_request_params params = { in osif_send_twt_nudge_req() local
839 request = osif_request_alloc(¶ms); in osif_send_twt_nudge_req()
947 struct twt_del_dialog_param params = {0}; in osif_twt_teardown_in_ps_disable() local
957 params.dialog_id = TWT_ALL_SESSIONS_DIALOG_ID; in osif_twt_teardown_in_ps_disable()
958 params.vdev_id = vdev_id; in osif_twt_teardown_in_ps_disable()
959 qdf_copy_macaddr(¶ms.peer_macaddr, mac_addr); in osif_twt_teardown_in_ps_disable()
961 if (ucfg_twt_is_setup_done(psoc, mac_addr, params.dialog_id)) { in osif_twt_teardown_in_ps_disable()
963 params.vdev_id, params.dialog_id); in osif_twt_teardown_in_ps_disable()
964 ret = osif_send_sta_twt_teardown_req(vdev, psoc, ¶ms); in osif_twt_teardown_in_ps_disable()
969 params.dialog_id, true); in osif_twt_teardown_in_ps_disable()
1013 struct twt_add_dialog_param params = {0}; in osif_twt_setup_req() local
1033 ret = osif_fill_peer_macaddr(vdev, params.peer_macaddr.bytes); in osif_twt_setup_req()
1037 params.vdev_id = vdev_id; in osif_twt_setup_req()
1040 ret = osif_twt_parse_add_dialog_attrs(tb2, ¶ms); in osif_twt_setup_req()
1044 qdf_status = ucfg_twt_get_peer_capabilities(psoc, ¶ms.peer_macaddr, in osif_twt_setup_req()
1049 if (params.flag_bcast && !(peer_cap & WLAN_TWT_CAPA_BROADCAST)) { in osif_twt_setup_req()
1054 if (!params.flag_bcast && !(peer_cap & WLAN_TWT_CAPA_RESPONDER)) { in osif_twt_setup_req()
1088 return osif_send_twt_setup_req(vdev, psoc, ¶ms); in osif_twt_setup_req()
1113 vdev_id = event->params.vdev_id; in osif_twt_handle_renego_failure()
1134 osif_send_twt_delete_cmd(vdev, &event->params.peer_macaddr, in osif_twt_handle_renego_failure()
1135 event->params.dialog_id, false); in osif_twt_handle_renego_failure()
1150 struct twt_del_dialog_param params = {0}; in osif_twt_sap_teardown_req() local
1160 params.vdev_id = vdev_id; in osif_twt_sap_teardown_req()
1172 params.dialog_id = nla_get_u8(tb[id]); in osif_twt_sap_teardown_req()
1173 nla_memcpy(params.peer_macaddr.bytes, tb[id1], in osif_twt_sap_teardown_req()
1178 params.dialog_id = TWT_ALL_SESSIONS_DIALOG_ID; in osif_twt_sap_teardown_req()
1179 qdf_copy_macaddr(¶ms.peer_macaddr, &bcast_addr); in osif_twt_sap_teardown_req()
1185 if (!params.dialog_id) in osif_twt_sap_teardown_req()
1186 params.dialog_id = TWT_ALL_SESSIONS_DIALOG_ID; in osif_twt_sap_teardown_req()
1188 if (params.dialog_id != TWT_ALL_SESSIONS_DIALOG_ID && in osif_twt_sap_teardown_req()
1189 qdf_is_macaddr_broadcast(¶ms.peer_macaddr)) { in osif_twt_sap_teardown_req()
1191 TWT_ALL_SESSIONS_DIALOG_ID, params.dialog_id); in osif_twt_sap_teardown_req()
1196 QDF_MAC_ADDR_FMT, params.vdev_id, params.dialog_id, in osif_twt_sap_teardown_req()
1197 QDF_MAC_ADDR_REF(params.peer_macaddr.bytes)); in osif_twt_sap_teardown_req()
1199 status = ucfg_twt_teardown_req(psoc, ¶ms, NULL); in osif_twt_sap_teardown_req()
1215 struct twt_del_dialog_param params = {0}; in osif_twt_sta_teardown_req() local
1249 ret = osif_fill_peer_macaddr(vdev, params.peer_macaddr.bytes); in osif_twt_sta_teardown_req()
1253 params.vdev_id = vdev_id; in osif_twt_sta_teardown_req()
1256 ret = osif_twt_parse_del_dialog_attrs(tb2, ¶ms); in osif_twt_sta_teardown_req()
1260 return osif_send_sta_twt_teardown_req(vdev, psoc, ¶ms); in osif_twt_sta_teardown_req()
1478 struct twt_pause_dialog_cmd_param params = {0}; in osif_twt_pause_req() local
1491 ret = osif_fill_peer_macaddr(vdev, params.peer_macaddr.bytes); in osif_twt_pause_req()
1505 params.dialog_id = nla_get_u8(tb[id]); in osif_twt_pause_req()
1513 QDF_MAC_ADDR_FMT, vdev_id, params.dialog_id, in osif_twt_pause_req()
1514 QDF_MAC_ADDR_REF(params.peer_macaddr.bytes)); in osif_twt_pause_req()
1516 return osif_send_twt_pause_req(vdev, psoc, ¶ms); in osif_twt_pause_req()
1527 struct twt_resume_dialog_cmd_param params = {0}; in osif_twt_resume_req() local
1541 ret = osif_fill_peer_macaddr(vdev, params.peer_macaddr.bytes); in osif_twt_resume_req()
1554 params.dialog_id = nla_get_u8(tb[id]); in osif_twt_resume_req()
1561 params.sp_offset_us = nla_get_u32(tb[id2]); in osif_twt_resume_req()
1563 params.sp_offset_us = nla_get_u8(tb[id]); in osif_twt_resume_req()
1565 params.sp_offset_us = 0; in osif_twt_resume_req()
1569 params.next_twt_size = nla_get_u32(tb[id]); in osif_twt_resume_req()
1574 if (params.next_twt_size > TWT_MAX_NEXT_TWT_SIZE) in osif_twt_resume_req()
1578 QDF_MAC_ADDR_FMT, vdev_id, params.dialog_id, in osif_twt_resume_req()
1579 QDF_MAC_ADDR_REF(params.peer_macaddr.bytes)); in osif_twt_resume_req()
1581 return osif_send_twt_resume_req(vdev, psoc, ¶ms); in osif_twt_resume_req()
1591 struct twt_nudge_dialog_cmd_param params = {0}; in osif_twt_nudge_req() local
1614 nla_memcpy(params.peer_macaddr.bytes, tb[id], in osif_twt_nudge_req()
1617 ret = osif_fill_peer_macaddr(vdev, params.peer_macaddr.bytes); in osif_twt_nudge_req()
1627 params.dialog_id = nla_get_u8(tb[id]); in osif_twt_nudge_req()
1635 params.suspend_duration = nla_get_u32(tb[id]); in osif_twt_nudge_req()
1642 params.next_twt_size = nla_get_u32(tb[id]); in osif_twt_nudge_req()
1649 ¶ms.peer_macaddr, in osif_twt_nudge_req()
1653 params.sp_start_offset = nla_get_s32(tb[id]); in osif_twt_nudge_req()
1657 osif_debug("twt_nudge: vdev_id %d dialog_id %d ", params.vdev_id, in osif_twt_nudge_req()
1658 params.dialog_id); in osif_twt_nudge_req()
1660 params.suspend_duration, params.next_twt_size); in osif_twt_nudge_req()
1662 QDF_MAC_ADDR_REF(params.peer_macaddr.bytes)); in osif_twt_nudge_req()
1663 osif_debug("twt_nudge: sp_start_offset %d", params.sp_start_offset); in osif_twt_nudge_req()
1665 return osif_send_twt_nudge_req(vdev, psoc, ¶ms); in osif_twt_nudge_req()
1669 osif_twt_get_params_resp_len(struct twt_session_stats_info *params) in osif_twt_get_params_resp_len() argument
1716 if (params->pm_responder_bit_valid) in osif_twt_get_params_resp_len()
1740 struct twt_session_stats_info *params, in osif_twt_pack_get_params_resp_nlmsg() argument
1759 if (params[i].event_type != HOST_TWT_SESSION_SETUP && in osif_twt_pack_get_params_resp_nlmsg()
1760 params[i].event_type != HOST_TWT_SESSION_UPDATE) in osif_twt_pack_get_params_resp_nlmsg()
1771 params[i].peer_mac.bytes)) { in osif_twt_pack_get_params_resp_nlmsg()
1777 QDF_MAC_ADDR_REF(params[i].peer_mac.bytes)); in osif_twt_pack_get_params_resp_nlmsg()
1779 if (nla_put_u8(reply_skb, attr, params[i].dialog_id)) { in osif_twt_pack_get_params_resp_nlmsg()
1784 if (params[i].bcast) { in osif_twt_pack_get_params_resp_nlmsg()
1792 if (params[i].trig) { in osif_twt_pack_get_params_resp_nlmsg()
1800 if (params[i].announ) { in osif_twt_pack_get_params_resp_nlmsg()
1808 if (params[i].protection) { in osif_twt_pack_get_params_resp_nlmsg()
1816 if (params[i].pm_responder_bit_valid) { in osif_twt_pack_get_params_resp_nlmsg()
1819 params[i].pm_responder_bit)) { in osif_twt_pack_get_params_resp_nlmsg()
1825 if (!params[i].info_frame_disabled) { in osif_twt_pack_get_params_resp_nlmsg()
1834 wake_duration = (params[i].wake_dura_us / in osif_twt_pack_get_params_resp_nlmsg()
1841 wake_intvl_mantis_us = params[i].wake_intvl_us; in osif_twt_pack_get_params_resp_nlmsg()
1848 wake_intvl_mantis_tu = params[i].wake_intvl_us / in osif_twt_pack_get_params_resp_nlmsg()
1864 tsf_val = ((uint64_t)params[i].sp_tsf_us_hi << 32) | in osif_twt_pack_get_params_resp_nlmsg()
1865 params[i].sp_tsf_us_lo; in osif_twt_pack_get_params_resp_nlmsg()
1867 params[i].dialog_id, tsf_val); in osif_twt_pack_get_params_resp_nlmsg()
1875 ¶ms[i].peer_mac, in osif_twt_pack_get_params_resp_nlmsg()
1876 params[i].dialog_id); in osif_twt_pack_get_params_resp_nlmsg()
1891 struct twt_session_stats_info *params, in osif_twt_send_get_params_resp() argument
1921 if (params[i].event_type == HOST_TWT_SESSION_SETUP || in osif_twt_send_get_params_resp()
1922 params[i].event_type == HOST_TWT_SESSION_UPDATE) in osif_twt_send_get_params_resp()
1923 skb_len += osif_twt_get_params_resp_len(params + i); in osif_twt_send_get_params_resp()
1934 params, in osif_twt_send_get_params_resp()
1950 struct twt_session_stats_info *params) in osif_twt_get_peer_session_params() argument
1962 params); in osif_twt_get_peer_session_params()
1965 qdf_status = osif_twt_send_get_params_resp(vdev, params, in osif_twt_get_peer_session_params()
1973 struct twt_session_stats_info *params) in osif_send_inactive_session_reply() argument
1978 params[num_twt_session].event_type = HOST_TWT_SESSION_UPDATE; in osif_send_inactive_session_reply()
1981 qdf_status = osif_twt_send_get_params_resp(vdev, params, in osif_send_inactive_session_reply()
1994 struct twt_session_stats_info *params; in osif_twt_sap_get_session_params() local
2012 params = qdf_mem_malloc(TWT_PEER_MAX_SESSIONS * num_peer * in osif_twt_sap_get_session_params()
2013 sizeof(*params)); in osif_twt_sap_get_session_params()
2015 if (!params) in osif_twt_sap_get_session_params()
2019 params[0].vdev_id = vdev_id; in osif_twt_sap_get_session_params()
2028 params[0].dialog_id = nla_get_u8(tb[id]); in osif_twt_sap_get_session_params()
2029 nla_memcpy(params[0].peer_mac.bytes, tb[id1], QDF_MAC_ADDR_SIZE); in osif_twt_sap_get_session_params()
2031 if (qdf_is_macaddr_broadcast(¶ms[0].peer_mac) && in osif_twt_sap_get_session_params()
2032 params[0].dialog_id != TWT_ALL_SESSIONS_DIALOG_ID) { in osif_twt_sap_get_session_params()
2034 TWT_ALL_SESSIONS_DIALOG_ID, params[0].dialog_id); in osif_twt_sap_get_session_params()
2038 if (!params[0].dialog_id) in osif_twt_sap_get_session_params()
2039 params[0].dialog_id = TWT_ALL_SESSIONS_DIALOG_ID; in osif_twt_sap_get_session_params()
2042 params[0].dialog_id, in osif_twt_sap_get_session_params()
2043 QDF_MAC_ADDR_REF(params[0].peer_mac.bytes)); in osif_twt_sap_get_session_params()
2044 qdf_status = osif_twt_get_peer_session_params(vdev, params); in osif_twt_sap_get_session_params()
2047 qdf_mem_free(params); in osif_twt_sap_get_session_params()
2058 params[TWT_PSOC_MAX_SESSIONS] = { {0} }; in osif_twt_sta_get_session_params() local
2077 params[0].vdev_id = vdev_id; in osif_twt_sta_get_session_params()
2090 params[0].dialog_id = (uint32_t)nla_get_u8(tb[id]); in osif_twt_sta_get_session_params()
2092 params[0].dialog_id = 0; in osif_twt_sta_get_session_params()
2097 if (params[0].dialog_id <= TWT_MAX_DIALOG_ID) { in osif_twt_sta_get_session_params()
2098 qdf_copy_macaddr(¶ms[0].peer_mac, &peer_mac); in osif_twt_sta_get_session_params()
2100 QDF_MAC_ADDR_REF(params[0].peer_mac.bytes)); in osif_twt_sta_get_session_params()
2102 qdf_copy_macaddr(¶ms[0].peer_mac, &bcast_addr); in osif_twt_sta_get_session_params()
2106 params[0].dialog_id)) { in osif_twt_sta_get_session_params()
2108 params[0].dialog_id); in osif_twt_sta_get_session_params()
2109 qdf_status = osif_send_inactive_session_reply(vdev, params); in osif_twt_sta_get_session_params()
2114 params[0].dialog_id, in osif_twt_sta_get_session_params()
2115 QDF_MAC_ADDR_REF(params[0].peer_mac.bytes)); in osif_twt_sta_get_session_params()
2117 qdf_status = osif_twt_get_peer_session_params(vdev, params); in osif_twt_sta_get_session_params()
2418 struct twt_del_dialog_param params) in osif_twt_teardown_req_retry() argument
2426 ret = osif_send_sta_twt_teardown_req(vdev, psoc, ¶ms); in osif_twt_teardown_req_retry()
2438 struct twt_del_dialog_param params = {0}; in __osif_twt_work_handler() local
2459 qdf_copy_macaddr(¶ms.peer_macaddr, &twt_work_params.peer_macaddr); in __osif_twt_work_handler()
2460 params.dialog_id = twt_work_params.dialog_id; in __osif_twt_work_handler()
2461 params.vdev_id = vdev_id; in __osif_twt_work_handler()
2463 ret = osif_send_sta_twt_teardown_req(vdev, psoc, ¶ms); in __osif_twt_work_handler()
2471 osif_twt_teardown_req_retry(vdev, psoc, params); in __osif_twt_work_handler()