Lines Matching refs:arg
86 void *arg, u16 cmd, long tmo);
95 void *arg, in wsm_generic_confirm() argument
108 int wsm_configuration(struct cw1200_common *priv, struct wsm_configuration *arg) in wsm_configuration() argument
115 WSM_PUT32(buf, arg->dot11MaxTransmitMsduLifeTime); in wsm_configuration()
116 WSM_PUT32(buf, arg->dot11MaxReceiveLifeTime); in wsm_configuration()
117 WSM_PUT32(buf, arg->dot11RtsThreshold); in wsm_configuration()
120 WSM_PUT16(buf, arg->dpdData_size + 12); in wsm_configuration()
122 WSM_PUT(buf, arg->dot11StationId, ETH_ALEN); in wsm_configuration()
124 WSM_PUT(buf, arg->dpdData, arg->dpdData_size); in wsm_configuration()
126 ret = wsm_cmd_send(priv, buf, arg, in wsm_configuration()
138 struct wsm_configuration *arg, in wsm_configuration_confirm() argument
148 WSM_GET(buf, arg->dot11StationId, ETH_ALEN); in wsm_configuration_confirm()
149 arg->dot11FrequencyBandsSupported = WSM_GET8(buf); in wsm_configuration_confirm()
151 arg->supportedRateMask = WSM_GET32(buf); in wsm_configuration_confirm()
153 arg->txPowerRange[i].min_power_level = WSM_GET32(buf); in wsm_configuration_confirm()
154 arg->txPowerRange[i].max_power_level = WSM_GET32(buf); in wsm_configuration_confirm()
155 arg->txPowerRange[i].stepping = WSM_GET32(buf); in wsm_configuration_confirm()
166 int wsm_reset(struct cw1200_common *priv, const struct wsm_reset *arg) in wsm_reset() argument
170 u16 cmd = WSM_RESET_REQ_ID | WSM_TX_LINK_ID(arg->link_id); in wsm_reset()
174 WSM_PUT32(buf, arg->reset_statistics ? 0 : 1); in wsm_reset()
218 struct wsm_mib *arg, in wsm_read_mib_confirm() argument
225 if (WARN_ON(WSM_GET16(buf) != arg->mib_id)) in wsm_read_mib_confirm()
229 if (size > arg->buf_size) in wsm_read_mib_confirm()
230 size = arg->buf_size; in wsm_read_mib_confirm()
232 WSM_GET(buf, arg->buf, size); in wsm_read_mib_confirm()
233 arg->buf_size = size; in wsm_read_mib_confirm()
271 struct wsm_mib *arg, in wsm_write_mib_confirm() argument
276 ret = wsm_generic_confirm(priv, arg, buf); in wsm_write_mib_confirm()
280 if (arg->mib_id == WSM_MIB_ID_OPERATIONAL_POWER_MODE) { in wsm_write_mib_confirm()
282 const char *p = arg->buf; in wsm_write_mib_confirm()
290 int wsm_scan(struct cw1200_common *priv, const struct wsm_scan *arg) in wsm_scan() argument
296 if (arg->num_channels > 48) in wsm_scan()
299 if (arg->num_ssids > 2) in wsm_scan()
302 if (arg->band > 1) in wsm_scan()
307 WSM_PUT8(buf, arg->band); in wsm_scan()
308 WSM_PUT8(buf, arg->type); in wsm_scan()
309 WSM_PUT8(buf, arg->flags); in wsm_scan()
310 WSM_PUT8(buf, arg->max_tx_rate); in wsm_scan()
311 WSM_PUT32(buf, arg->auto_scan_interval); in wsm_scan()
312 WSM_PUT8(buf, arg->num_probes); in wsm_scan()
313 WSM_PUT8(buf, arg->num_channels); in wsm_scan()
314 WSM_PUT8(buf, arg->num_ssids); in wsm_scan()
315 WSM_PUT8(buf, arg->probe_delay); in wsm_scan()
317 for (i = 0; i < arg->num_channels; ++i) { in wsm_scan()
318 WSM_PUT16(buf, arg->ch[i].number); in wsm_scan()
320 WSM_PUT32(buf, arg->ch[i].min_chan_time); in wsm_scan()
321 WSM_PUT32(buf, arg->ch[i].max_chan_time); in wsm_scan()
325 for (i = 0; i < arg->num_ssids; ++i) { in wsm_scan()
326 WSM_PUT32(buf, arg->ssids[i].length); in wsm_scan()
327 WSM_PUT(buf, &arg->ssids[i].ssid[0], in wsm_scan()
328 sizeof(arg->ssids[i].ssid)); in wsm_scan()
413 struct wsm_join_cnf *arg, in wsm_join_confirm() argument
416 arg->status = WSM_GET32(buf); in wsm_join_confirm()
417 if (WARN_ON(arg->status) != WSM_STATUS_SUCCESS) in wsm_join_confirm()
420 arg->min_power_level = WSM_GET32(buf); in wsm_join_confirm()
421 arg->max_power_level = WSM_GET32(buf); in wsm_join_confirm()
430 int wsm_join(struct cw1200_common *priv, struct wsm_join *arg) in wsm_join() argument
437 WSM_PUT8(buf, arg->mode); in wsm_join()
438 WSM_PUT8(buf, arg->band); in wsm_join()
439 WSM_PUT16(buf, arg->channel_number); in wsm_join()
440 WSM_PUT(buf, &arg->bssid[0], sizeof(arg->bssid)); in wsm_join()
441 WSM_PUT16(buf, arg->atim_window); in wsm_join()
442 WSM_PUT8(buf, arg->preamble_type); in wsm_join()
443 WSM_PUT8(buf, arg->probe_for_join); in wsm_join()
444 WSM_PUT8(buf, arg->dtim_period); in wsm_join()
445 WSM_PUT8(buf, arg->flags); in wsm_join()
446 WSM_PUT32(buf, arg->ssid_len); in wsm_join()
447 WSM_PUT(buf, &arg->ssid[0], sizeof(arg->ssid)); in wsm_join()
448 WSM_PUT32(buf, arg->beacon_interval); in wsm_join()
449 WSM_PUT32(buf, arg->basic_rate_set); in wsm_join()
469 const struct wsm_set_bss_params *arg) in wsm_set_bss_params() argument
476 WSM_PUT8(buf, (arg->reset_beacon_loss ? 0x1 : 0)); in wsm_set_bss_params()
477 WSM_PUT8(buf, arg->beacon_lost_count); in wsm_set_bss_params()
478 WSM_PUT16(buf, arg->aid); in wsm_set_bss_params()
479 WSM_PUT32(buf, arg->operational_rate_set); in wsm_set_bss_params()
494 int wsm_add_key(struct cw1200_common *priv, const struct wsm_add_key *arg) in wsm_add_key() argument
501 WSM_PUT(buf, arg, sizeof(*arg)); in wsm_add_key()
516 int wsm_remove_key(struct cw1200_common *priv, const struct wsm_remove_key *arg) in wsm_remove_key() argument
523 WSM_PUT8(buf, arg->index); in wsm_remove_key()
541 const struct wsm_set_tx_queue_params *arg, u8 id) in wsm_set_tx_queue_params() argument
551 WSM_PUT8(buf, arg->ackPolicy); in wsm_set_tx_queue_params()
553 WSM_PUT32(buf, arg->maxTransmitLifetime); in wsm_set_tx_queue_params()
554 WSM_PUT16(buf, arg->allowedMediumTime); in wsm_set_tx_queue_params()
570 const struct wsm_edca_params *arg) in wsm_set_edca_params() argument
579 WSM_PUT16(buf, arg->params[3].cwmin); in wsm_set_edca_params()
580 WSM_PUT16(buf, arg->params[2].cwmin); in wsm_set_edca_params()
581 WSM_PUT16(buf, arg->params[1].cwmin); in wsm_set_edca_params()
582 WSM_PUT16(buf, arg->params[0].cwmin); in wsm_set_edca_params()
584 WSM_PUT16(buf, arg->params[3].cwmax); in wsm_set_edca_params()
585 WSM_PUT16(buf, arg->params[2].cwmax); in wsm_set_edca_params()
586 WSM_PUT16(buf, arg->params[1].cwmax); in wsm_set_edca_params()
587 WSM_PUT16(buf, arg->params[0].cwmax); in wsm_set_edca_params()
589 WSM_PUT8(buf, arg->params[3].aifns); in wsm_set_edca_params()
590 WSM_PUT8(buf, arg->params[2].aifns); in wsm_set_edca_params()
591 WSM_PUT8(buf, arg->params[1].aifns); in wsm_set_edca_params()
592 WSM_PUT8(buf, arg->params[0].aifns); in wsm_set_edca_params()
594 WSM_PUT16(buf, arg->params[3].txop_limit); in wsm_set_edca_params()
595 WSM_PUT16(buf, arg->params[2].txop_limit); in wsm_set_edca_params()
596 WSM_PUT16(buf, arg->params[1].txop_limit); in wsm_set_edca_params()
597 WSM_PUT16(buf, arg->params[0].txop_limit); in wsm_set_edca_params()
599 WSM_PUT32(buf, arg->params[3].max_rx_lifetime); in wsm_set_edca_params()
600 WSM_PUT32(buf, arg->params[2].max_rx_lifetime); in wsm_set_edca_params()
601 WSM_PUT32(buf, arg->params[1].max_rx_lifetime); in wsm_set_edca_params()
602 WSM_PUT32(buf, arg->params[0].max_rx_lifetime); in wsm_set_edca_params()
617 const struct wsm_switch_channel *arg) in wsm_switch_channel() argument
624 WSM_PUT8(buf, arg->mode); in wsm_switch_channel()
625 WSM_PUT8(buf, arg->switch_count); in wsm_switch_channel()
626 WSM_PUT16(buf, arg->channel_number); in wsm_switch_channel()
645 int wsm_set_pm(struct cw1200_common *priv, const struct wsm_set_pm *arg) in wsm_set_pm() argument
653 WSM_PUT8(buf, arg->mode); in wsm_set_pm()
654 WSM_PUT8(buf, arg->fast_psm_idle_period); in wsm_set_pm()
655 WSM_PUT8(buf, arg->ap_psm_change_period); in wsm_set_pm()
656 WSM_PUT8(buf, arg->min_auto_pspoll_period); in wsm_set_pm()
671 int wsm_start(struct cw1200_common *priv, const struct wsm_start *arg) in wsm_start() argument
678 WSM_PUT8(buf, arg->mode); in wsm_start()
679 WSM_PUT8(buf, arg->band); in wsm_start()
680 WSM_PUT16(buf, arg->channel_number); in wsm_start()
681 WSM_PUT32(buf, arg->ct_window); in wsm_start()
682 WSM_PUT32(buf, arg->beacon_interval); in wsm_start()
683 WSM_PUT8(buf, arg->dtim_period); in wsm_start()
684 WSM_PUT8(buf, arg->preamble); in wsm_start()
685 WSM_PUT8(buf, arg->probe_delay); in wsm_start()
686 WSM_PUT8(buf, arg->ssid_len); in wsm_start()
687 WSM_PUT(buf, arg->ssid, sizeof(arg->ssid)); in wsm_start()
688 WSM_PUT32(buf, arg->basic_rate_set); in wsm_start()
705 const struct wsm_beacon_transmit *arg) in wsm_beacon_transmit() argument
712 WSM_PUT32(buf, arg->enable_beaconing ? 1 : 0); in wsm_beacon_transmit()
753 int wsm_map_link(struct cw1200_common *priv, const struct wsm_map_link *arg) in wsm_map_link() argument
757 u16 cmd = 0x001C | WSM_TX_LINK_ID(arg->link_id); in wsm_map_link()
761 WSM_PUT(buf, &arg->mac_addr[0], sizeof(arg->mac_addr)); in wsm_map_link()
777 const struct wsm_update_ie *arg) in wsm_update_ie() argument
784 WSM_PUT16(buf, arg->what); in wsm_update_ie()
785 WSM_PUT16(buf, arg->count); in wsm_update_ie()
786 WSM_PUT(buf, arg->ies, arg->length); in wsm_update_ie()
982 static int wsm_scan_started(struct cw1200_common *priv, void *arg, in wsm_scan_started() argument
1000 struct wsm_scan_complete arg; in wsm_scan_complete_indication() local
1001 arg.status = WSM_GET32(buf); in wsm_scan_complete_indication()
1002 arg.psm = WSM_GET8(buf); in wsm_scan_complete_indication()
1003 arg.num_channels = WSM_GET8(buf); in wsm_scan_complete_indication()
1004 cw1200_scan_complete_cb(priv, &arg); in wsm_scan_complete_indication()
1015 struct wsm_join_complete arg; in wsm_join_complete_indication() local
1016 arg.status = WSM_GET32(buf); in wsm_join_complete_indication()
1017 pr_debug("[WSM] Join complete indication, status: %d\n", arg.status); in wsm_join_complete_indication()
1018 cw1200_join_complete_cb(priv, &arg); in wsm_join_complete_indication()
1059 struct wsm_suspend_resume arg; in wsm_suspend_resume_indication() local
1062 arg.link_id = link_id; in wsm_suspend_resume_indication()
1063 arg.stop = !(flags & 1); in wsm_suspend_resume_indication()
1064 arg.multicast = !!(flags & 8); in wsm_suspend_resume_indication()
1065 arg.queue = (flags >> 1) & 3; in wsm_suspend_resume_indication()
1067 cw1200_suspend_resume(priv, &arg); in wsm_suspend_resume_indication()
1081 void *arg, u16 cmd, long tmo) in wsm_cmd_send() argument
1124 priv->wsm_cmd.arg = arg; in wsm_cmd_send()
1331 wsm_arg = priv->wsm_cmd.arg; in wsm_handle_rx()