Lines Matching refs:arg
83 void *arg, u16 cmd, long tmo);
92 void *arg, in wsm_generic_confirm() argument
105 int wsm_configuration(struct cw1200_common *priv, struct wsm_configuration *arg) in wsm_configuration() argument
112 WSM_PUT32(buf, arg->dot11MaxTransmitMsduLifeTime); in wsm_configuration()
113 WSM_PUT32(buf, arg->dot11MaxReceiveLifeTime); in wsm_configuration()
114 WSM_PUT32(buf, arg->dot11RtsThreshold); in wsm_configuration()
117 WSM_PUT16(buf, arg->dpdData_size + 12); in wsm_configuration()
119 WSM_PUT(buf, arg->dot11StationId, ETH_ALEN); in wsm_configuration()
121 WSM_PUT(buf, arg->dpdData, arg->dpdData_size); in wsm_configuration()
123 ret = wsm_cmd_send(priv, buf, arg, in wsm_configuration()
135 struct wsm_configuration *arg, in wsm_configuration_confirm() argument
145 WSM_GET(buf, arg->dot11StationId, ETH_ALEN); in wsm_configuration_confirm()
146 arg->dot11FrequencyBandsSupported = WSM_GET8(buf); in wsm_configuration_confirm()
148 arg->supportedRateMask = WSM_GET32(buf); in wsm_configuration_confirm()
150 arg->txPowerRange[i].min_power_level = WSM_GET32(buf); in wsm_configuration_confirm()
151 arg->txPowerRange[i].max_power_level = WSM_GET32(buf); in wsm_configuration_confirm()
152 arg->txPowerRange[i].stepping = WSM_GET32(buf); in wsm_configuration_confirm()
163 int wsm_reset(struct cw1200_common *priv, const struct wsm_reset *arg) in wsm_reset() argument
167 u16 cmd = WSM_RESET_REQ_ID | WSM_TX_LINK_ID(arg->link_id); in wsm_reset()
171 WSM_PUT32(buf, arg->reset_statistics ? 0 : 1); in wsm_reset()
215 struct wsm_mib *arg, in wsm_read_mib_confirm() argument
222 if (WARN_ON(WSM_GET16(buf) != arg->mib_id)) in wsm_read_mib_confirm()
226 if (size > arg->buf_size) in wsm_read_mib_confirm()
227 size = arg->buf_size; in wsm_read_mib_confirm()
229 WSM_GET(buf, arg->buf, size); in wsm_read_mib_confirm()
230 arg->buf_size = size; in wsm_read_mib_confirm()
268 struct wsm_mib *arg, in wsm_write_mib_confirm() argument
273 ret = wsm_generic_confirm(priv, arg, buf); in wsm_write_mib_confirm()
277 if (arg->mib_id == WSM_MIB_ID_OPERATIONAL_POWER_MODE) { in wsm_write_mib_confirm()
279 const char *p = arg->buf; in wsm_write_mib_confirm()
287 int wsm_scan(struct cw1200_common *priv, const struct wsm_scan *arg) in wsm_scan() argument
293 if (arg->num_channels > 48) in wsm_scan()
296 if (arg->num_ssids > 2) in wsm_scan()
299 if (arg->band > 1) in wsm_scan()
304 WSM_PUT8(buf, arg->band); in wsm_scan()
305 WSM_PUT8(buf, arg->type); in wsm_scan()
306 WSM_PUT8(buf, arg->flags); in wsm_scan()
307 WSM_PUT8(buf, arg->max_tx_rate); in wsm_scan()
308 WSM_PUT32(buf, arg->auto_scan_interval); in wsm_scan()
309 WSM_PUT8(buf, arg->num_probes); in wsm_scan()
310 WSM_PUT8(buf, arg->num_channels); in wsm_scan()
311 WSM_PUT8(buf, arg->num_ssids); in wsm_scan()
312 WSM_PUT8(buf, arg->probe_delay); in wsm_scan()
314 for (i = 0; i < arg->num_channels; ++i) { in wsm_scan()
315 WSM_PUT16(buf, arg->ch[i].number); in wsm_scan()
317 WSM_PUT32(buf, arg->ch[i].min_chan_time); in wsm_scan()
318 WSM_PUT32(buf, arg->ch[i].max_chan_time); in wsm_scan()
322 for (i = 0; i < arg->num_ssids; ++i) { in wsm_scan()
323 WSM_PUT32(buf, arg->ssids[i].length); in wsm_scan()
324 WSM_PUT(buf, &arg->ssids[i].ssid[0], in wsm_scan()
325 sizeof(arg->ssids[i].ssid)); in wsm_scan()
408 struct wsm_join_cnf *arg, in wsm_join_confirm() argument
411 arg->status = WSM_GET32(buf); in wsm_join_confirm()
412 if (WARN_ON(arg->status) != WSM_STATUS_SUCCESS) in wsm_join_confirm()
415 arg->min_power_level = WSM_GET32(buf); in wsm_join_confirm()
416 arg->max_power_level = WSM_GET32(buf); in wsm_join_confirm()
425 int wsm_join(struct cw1200_common *priv, struct wsm_join *arg) in wsm_join() argument
432 WSM_PUT8(buf, arg->mode); in wsm_join()
433 WSM_PUT8(buf, arg->band); in wsm_join()
434 WSM_PUT16(buf, arg->channel_number); in wsm_join()
435 WSM_PUT(buf, &arg->bssid[0], sizeof(arg->bssid)); in wsm_join()
436 WSM_PUT16(buf, arg->atim_window); in wsm_join()
437 WSM_PUT8(buf, arg->preamble_type); in wsm_join()
438 WSM_PUT8(buf, arg->probe_for_join); in wsm_join()
439 WSM_PUT8(buf, arg->dtim_period); in wsm_join()
440 WSM_PUT8(buf, arg->flags); in wsm_join()
441 WSM_PUT32(buf, arg->ssid_len); in wsm_join()
442 WSM_PUT(buf, &arg->ssid[0], sizeof(arg->ssid)); in wsm_join()
443 WSM_PUT32(buf, arg->beacon_interval); in wsm_join()
444 WSM_PUT32(buf, arg->basic_rate_set); in wsm_join()
464 const struct wsm_set_bss_params *arg) in wsm_set_bss_params() argument
471 WSM_PUT8(buf, (arg->reset_beacon_loss ? 0x1 : 0)); in wsm_set_bss_params()
472 WSM_PUT8(buf, arg->beacon_lost_count); in wsm_set_bss_params()
473 WSM_PUT16(buf, arg->aid); in wsm_set_bss_params()
474 WSM_PUT32(buf, arg->operational_rate_set); in wsm_set_bss_params()
489 int wsm_add_key(struct cw1200_common *priv, const struct wsm_add_key *arg) in wsm_add_key() argument
496 WSM_PUT(buf, arg, sizeof(*arg)); in wsm_add_key()
511 int wsm_remove_key(struct cw1200_common *priv, const struct wsm_remove_key *arg) in wsm_remove_key() argument
518 WSM_PUT8(buf, arg->index); in wsm_remove_key()
536 const struct wsm_set_tx_queue_params *arg, u8 id) in wsm_set_tx_queue_params() argument
546 WSM_PUT8(buf, arg->ackPolicy); in wsm_set_tx_queue_params()
548 WSM_PUT32(buf, arg->maxTransmitLifetime); in wsm_set_tx_queue_params()
549 WSM_PUT16(buf, arg->allowedMediumTime); in wsm_set_tx_queue_params()
565 const struct wsm_edca_params *arg) in wsm_set_edca_params() argument
574 WSM_PUT16(buf, arg->params[3].cwmin); in wsm_set_edca_params()
575 WSM_PUT16(buf, arg->params[2].cwmin); in wsm_set_edca_params()
576 WSM_PUT16(buf, arg->params[1].cwmin); in wsm_set_edca_params()
577 WSM_PUT16(buf, arg->params[0].cwmin); in wsm_set_edca_params()
579 WSM_PUT16(buf, arg->params[3].cwmax); in wsm_set_edca_params()
580 WSM_PUT16(buf, arg->params[2].cwmax); in wsm_set_edca_params()
581 WSM_PUT16(buf, arg->params[1].cwmax); in wsm_set_edca_params()
582 WSM_PUT16(buf, arg->params[0].cwmax); in wsm_set_edca_params()
584 WSM_PUT8(buf, arg->params[3].aifns); in wsm_set_edca_params()
585 WSM_PUT8(buf, arg->params[2].aifns); in wsm_set_edca_params()
586 WSM_PUT8(buf, arg->params[1].aifns); in wsm_set_edca_params()
587 WSM_PUT8(buf, arg->params[0].aifns); in wsm_set_edca_params()
589 WSM_PUT16(buf, arg->params[3].txop_limit); in wsm_set_edca_params()
590 WSM_PUT16(buf, arg->params[2].txop_limit); in wsm_set_edca_params()
591 WSM_PUT16(buf, arg->params[1].txop_limit); in wsm_set_edca_params()
592 WSM_PUT16(buf, arg->params[0].txop_limit); in wsm_set_edca_params()
594 WSM_PUT32(buf, arg->params[3].max_rx_lifetime); in wsm_set_edca_params()
595 WSM_PUT32(buf, arg->params[2].max_rx_lifetime); in wsm_set_edca_params()
596 WSM_PUT32(buf, arg->params[1].max_rx_lifetime); in wsm_set_edca_params()
597 WSM_PUT32(buf, arg->params[0].max_rx_lifetime); in wsm_set_edca_params()
612 const struct wsm_switch_channel *arg) in wsm_switch_channel() argument
619 WSM_PUT8(buf, arg->mode); in wsm_switch_channel()
620 WSM_PUT8(buf, arg->switch_count); in wsm_switch_channel()
621 WSM_PUT16(buf, arg->channel_number); in wsm_switch_channel()
640 int wsm_set_pm(struct cw1200_common *priv, const struct wsm_set_pm *arg) in wsm_set_pm() argument
648 WSM_PUT8(buf, arg->mode); in wsm_set_pm()
649 WSM_PUT8(buf, arg->fast_psm_idle_period); in wsm_set_pm()
650 WSM_PUT8(buf, arg->ap_psm_change_period); in wsm_set_pm()
651 WSM_PUT8(buf, arg->min_auto_pspoll_period); in wsm_set_pm()
666 int wsm_start(struct cw1200_common *priv, const struct wsm_start *arg) in wsm_start() argument
673 WSM_PUT8(buf, arg->mode); in wsm_start()
674 WSM_PUT8(buf, arg->band); in wsm_start()
675 WSM_PUT16(buf, arg->channel_number); in wsm_start()
676 WSM_PUT32(buf, arg->ct_window); in wsm_start()
677 WSM_PUT32(buf, arg->beacon_interval); in wsm_start()
678 WSM_PUT8(buf, arg->dtim_period); in wsm_start()
679 WSM_PUT8(buf, arg->preamble); in wsm_start()
680 WSM_PUT8(buf, arg->probe_delay); in wsm_start()
681 WSM_PUT8(buf, arg->ssid_len); in wsm_start()
682 WSM_PUT(buf, arg->ssid, sizeof(arg->ssid)); in wsm_start()
683 WSM_PUT32(buf, arg->basic_rate_set); in wsm_start()
700 const struct wsm_beacon_transmit *arg) in wsm_beacon_transmit() argument
707 WSM_PUT32(buf, arg->enable_beaconing ? 1 : 0); in wsm_beacon_transmit()
748 int wsm_map_link(struct cw1200_common *priv, const struct wsm_map_link *arg) in wsm_map_link() argument
752 u16 cmd = 0x001C | WSM_TX_LINK_ID(arg->link_id); in wsm_map_link()
756 WSM_PUT(buf, &arg->mac_addr[0], sizeof(arg->mac_addr)); in wsm_map_link()
772 const struct wsm_update_ie *arg) in wsm_update_ie() argument
779 WSM_PUT16(buf, arg->what); in wsm_update_ie()
780 WSM_PUT16(buf, arg->count); in wsm_update_ie()
781 WSM_PUT(buf, arg->ies, arg->length); in wsm_update_ie()
977 static int wsm_scan_started(struct cw1200_common *priv, void *arg, in wsm_scan_started() argument
995 struct wsm_scan_complete arg; in wsm_scan_complete_indication() local
996 arg.status = WSM_GET32(buf); in wsm_scan_complete_indication()
997 arg.psm = WSM_GET8(buf); in wsm_scan_complete_indication()
998 arg.num_channels = WSM_GET8(buf); in wsm_scan_complete_indication()
999 cw1200_scan_complete_cb(priv, &arg); in wsm_scan_complete_indication()
1010 struct wsm_join_complete arg; in wsm_join_complete_indication() local
1011 arg.status = WSM_GET32(buf); in wsm_join_complete_indication()
1012 pr_debug("[WSM] Join complete indication, status: %d\n", arg.status); in wsm_join_complete_indication()
1013 cw1200_join_complete_cb(priv, &arg); in wsm_join_complete_indication()
1052 struct wsm_suspend_resume arg; in wsm_suspend_resume_indication() local
1055 arg.link_id = link_id; in wsm_suspend_resume_indication()
1056 arg.stop = !(flags & 1); in wsm_suspend_resume_indication()
1057 arg.multicast = !!(flags & 8); in wsm_suspend_resume_indication()
1058 arg.queue = (flags >> 1) & 3; in wsm_suspend_resume_indication()
1060 cw1200_suspend_resume(priv, &arg); in wsm_suspend_resume_indication()
1074 void *arg, u16 cmd, long tmo) in wsm_cmd_send() argument
1117 priv->wsm_cmd.arg = arg; in wsm_cmd_send()
1324 wsm_arg = priv->wsm_cmd.arg; in wsm_handle_rx()