Lines Matching defs:arg

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