• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/wireless/libertas/

Lines Matching refs:cpu_to_le16

33 		if (command == cpu_to_le16(commands_allowed_in_ps[i]))
46 cmd->command = cpu_to_le16(cmd_get_hw_spec);
47 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_get_hw_spec) + S_DS_GEN);
63 cmd->command = cpu_to_le16(cmd_802_11_ps_mode);
64 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_ps_mode) +
66 psm->action = cpu_to_le16(cmd_action);
75 cpu_to_le16(adapter->locallisteninterval);
77 cpu_to_le16(adapter->nullpktinterval);
79 cpu_to_le16(priv->adapter->multipledtim);
104 cmd->command = cpu_to_le16(cmd_802_11_inactivity_timeout);
106 cpu_to_le16(sizeof(struct cmd_ds_802_11_inactivity_timeout)
109 cmd->params.inactivity_timeout.action = cpu_to_le16(cmd_action);
112 cmd->params.inactivity_timeout.timeout = cpu_to_le16(*timeout);
128 cmd->size = cpu_to_le16((sizeof(struct cmd_ds_802_11_sleep_params)) +
130 cmd->command = cpu_to_le16(cmd_802_11_sleep_params);
135 sp->action = cpu_to_le16(cmd_action);
137 sp->action = cpu_to_le16(cmd_action);
138 sp->error = cpu_to_le16(adapter->sp.sp_error);
139 sp->offset = cpu_to_le16(adapter->sp.sp_offset);
140 sp->stabletime = cpu_to_le16(adapter->sp.sp_stabletime);
143 sp->reserved = cpu_to_le16(adapter->sp.sp_reserved);
162 cmd->command = cpu_to_le16(cmd_802_11_set_wep);
163 cmd->size = cpu_to_le16(sizeof(*wep) + S_DS_GEN);
174 wep->action = cpu_to_le16(cmd_act_add);
177 wep->keyindex = cpu_to_le16((u16)(assoc_req->wep_tx_keyidx &
189 cpu_to_le16(cmd_type_wep_40_bit);
195 cpu_to_le16(cmd_type_wep_104_bit);
211 wep->action = cpu_to_le16(cmd_act_remove);
214 wep->keyindex = cpu_to_le16((u16)(adapter->wep_tx_keyidx &
235 cmd->command = cpu_to_le16(cmd_802_11_enable_rsn);
236 cmd->size = cpu_to_le16(sizeof(*penableRSN) + S_DS_GEN);
237 penableRSN->action = cpu_to_le16(cmd_action);
241 penableRSN->enable = cpu_to_le16(cmd_enable_rsn);
243 penableRSN->enable = cpu_to_le16(cmd_enable_rsn);
254 pkeyparamset->keytypeid = cpu_to_le16(pkey->type);
257 pkeyparamset->keyinfo |= cpu_to_le16(KEY_INFO_WPA_ENABLED);
260 pkeyparamset->keyinfo |= cpu_to_le16(KEY_INFO_WPA_UNICAST);
263 pkeyparamset->keyinfo |= cpu_to_le16(KEY_INFO_WPA_MCAST);
266 pkeyparamset->type = cpu_to_le16(TLV_TYPE_KEY_MATERIAL);
267 pkeyparamset->keylen = cpu_to_le16(pkey->len);
269 pkeyparamset->length = cpu_to_le16( sizeof(pkeyparamset->keytypeid)
288 cmd->command = cpu_to_le16(cmd_802_11_key_material);
289 pkeymaterial->action = cpu_to_le16(cmd_action);
292 cmd->size = cpu_to_le16(S_DS_GEN + sizeof (pkeymaterial->action));
311 cmd->size = cpu_to_le16( S_DS_GEN
327 cmd->command = cpu_to_le16(cmd_802_11_reset);
328 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_reset) + S_DS_GEN);
329 reset->action = cpu_to_le16(cmd_action);
337 cmd->command = cpu_to_le16(cmd_802_11_get_log);
339 cpu_to_le16(sizeof(struct cmd_ds_802_11_get_log) + S_DS_GEN);
347 cmd->command = cpu_to_le16(cmd_802_11_get_stat);
349 cpu_to_le16(sizeof(struct cmd_ds_802_11_get_stat) + S_DS_GEN);
367 cmd->command = cpu_to_le16(cmd_802_11_snmp_mib);
368 cmd->size = cpu_to_le16(sizeof(*pSNMPMIB) + S_DS_GEN);
374 pSNMPMIB->querytype = cpu_to_le16(cmd_act_set);
375 pSNMPMIB->oid = cpu_to_le16((u16) desired_bsstype_i);
393 pSNMPMIB->oid = cpu_to_le16((u16) dot11d_i);
400 cpu_to_le16((u16) ulTemp);
409 pSNMPMIB->oid = cpu_to_le16((u16) fragthresh_i);
412 pSNMPMIB->querytype = cpu_to_le16(cmd_act_get);
414 pSNMPMIB->querytype = cpu_to_le16(cmd_act_set);
415 pSNMPMIB->bufsize = cpu_to_le16(sizeof(u16));
418 cpu_to_le16((u16) ulTemp);
432 pSNMPMIB->querytype = cpu_to_le16(cmd_act_get);
434 pSNMPMIB->querytype = cpu_to_le16(cmd_act_set);
435 pSNMPMIB->bufsize = cpu_to_le16(sizeof(u16));
438 cpu_to_le16((u16) ulTemp);
444 pSNMPMIB->oid = cpu_to_le16((u16) short_retrylim_i);
447 pSNMPMIB->querytype = cpu_to_le16(cmd_act_get);
449 pSNMPMIB->querytype = cpu_to_le16(cmd_act_set);
450 pSNMPMIB->bufsize = cpu_to_le16(sizeof(u16));
452 cpu_to_le16((u16) adapter->txretrycount);
485 cpu_to_le16((sizeof(struct cmd_ds_802_11_radio_control)) +
487 cmd->command = cpu_to_le16(cmd_802_11_radio_control);
489 pradiocontrol->action = cpu_to_le16(cmd_action);
493 pradiocontrol->control = cpu_to_le16(SET_SHORT_PREAMBLE);
497 pradiocontrol->control = cpu_to_le16(SET_LONG_PREAMBLE);
502 pradiocontrol->control = cpu_to_le16(SET_AUTO_PREAMBLE);
507 pradiocontrol->control |= cpu_to_le16(TURN_ON_RF);
509 pradiocontrol->control &= cpu_to_le16(~TURN_ON_RF);
525 cpu_to_le16((sizeof(struct cmd_ds_802_11_rf_tx_power)) + S_DS_GEN);
526 cmd->command = cpu_to_le16(cmd_802_11_rf_tx_power);
527 prtp->action = cpu_to_le16(cmd_action);
535 prtp->action = cpu_to_le16(cmd_act_get);
540 prtp->action = cpu_to_le16(cmd_act_set);
541 prtp->currentlevel = cpu_to_le16(cmd_act_tx_power_index_high);
545 prtp->action = cpu_to_le16(cmd_act_set);
546 prtp->currentlevel = cpu_to_le16(cmd_act_tx_power_index_mid);
550 prtp->action = cpu_to_le16(cmd_act_set);
551 prtp->currentlevel = cpu_to_le16(*((u16 *) pdata_buf));
565 cmd->command = cpu_to_le16(cmd_802_11_rf_antenna);
566 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_rf_antenna) +
569 rant->action = cpu_to_le16(cmd_action);
571 rant->antennamode = cpu_to_le16((u16) (*(u32 *) pdata_buf));
586 cpu_to_le16(sizeof(struct cmd_ds_802_11_rate_adapt_rateset)
588 cmd->command = cpu_to_le16(cmd_802_11_rate_adapt_rateset);
592 rateadapt->action = cpu_to_le16(cmd_action);
593 rateadapt->enablehwauto = cpu_to_le16(adapter->enablehwauto);
594 rateadapt->bitmap = cpu_to_le16(adapter->ratebitmap);
609 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_data_rate) +
612 cmd->command = cpu_to_le16(cmd_802_11_data_rate);
616 pdatarate->action = cpu_to_le16(cmd_action);
637 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_mac_multicast_adr) +
639 cmd->command = cpu_to_le16(cmd_mac_multicast_adr);
641 pMCastAdr->action = cpu_to_le16(cmd_action);
643 cpu_to_le16((u16) adapter->nr_of_multicastmacaddr);
656 cmd->command = cpu_to_le16(cmd_802_11_rf_channel);
657 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_rf_channel) +
661 rfchan->currentchannel = cpu_to_le16(*((u16 *) pdata_buf));
664 rfchan->action = cpu_to_le16(option);
674 cmd->command = cpu_to_le16(cmd_802_11_rssi);
675 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_rssi) + S_DS_GEN);
676 cmd->params.rssi.N = cpu_to_le16(priv->adapter->bcn_avg_factor);
705 cpu_to_le16(sizeof (struct cmd_ds_mac_reg_access)
711 macreg->action = cpu_to_le16(cmd_action);
712 macreg->offset = cpu_to_le16((u16) offval->offset);
723 cpu_to_le16(sizeof
730 bbpreg->action = cpu_to_le16(cmd_action);
731 bbpreg->offset = cpu_to_le16((u16) offval->offset);
742 cpu_to_le16(sizeof
749 rfreg->action = cpu_to_le16(cmd_action);
750 rfreg->offset = cpu_to_le16((u16) offval->offset);
770 cmd->command = cpu_to_le16(cmd_802_11_mac_address);
771 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_mac_address) +
775 cmd->params.macadd.action = cpu_to_le16(cmd_action);
794 cmd->command = cpu_to_le16(cmd_802_11_eeprom_access);
795 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_eeprom_access) +
799 cmd->params.rdeeprom.action = cpu_to_le16(ea->action);
800 cmd->params.rdeeprom.offset = cpu_to_le16(ea->offset);
801 cmd->params.rdeeprom.bytecount = cpu_to_le16(ea->NOB);
814 cmd->command = cpu_to_le16(cmd_bt_access);
815 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_bt_access) + S_DS_GEN);
817 bt_access->action = cpu_to_le16(cmd_action);
851 cmd->command = cpu_to_le16(cmd_fwt_access);
852 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_fwt_access) + S_DS_GEN);
860 fwt_access->action = cpu_to_le16(cmd_action);
872 cmd->command = cpu_to_le16(cmd_mesh_access);
873 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_mesh_access) + S_DS_GEN);
881 mesh_access->action = cpu_to_le16(cmd_action);
907 if (psm->action == cpu_to_le16(cmd_subcmd_exit_ps)) {
976 command = cpu_to_le16(cmdptr->command);
979 cmdsize = cpu_to_le16(cmdsize);
1017 cmd->command = cpu_to_le16(cmd_mac_control);
1018 cmd->size = cpu_to_le16(sizeof(struct cmd_ds_mac_control) + S_DS_GEN);
1019 mac->action = cpu_to_le16(priv->adapter->currentpacketfilter);
1152 cmdptr->seqnum = cpu_to_le16(adapter->seqnum);
1154 cmdptr->command = cpu_to_le16(cmd_no);
1289 cmdptr->command = cpu_to_le16(cmd_no);
1290 cmdptr->size = cpu_to_le16(sizeof(struct cmd_ds_802_11_afc) +
1314 cmdptr->command = cpu_to_le16(cmd_802_11_tpc_cfg);
1316 cpu_to_le16(sizeof(struct cmd_ds_802_11_tpc_cfg) +
1335 cpu_to_le16(cmd_802_11_led_gpio_ctrl);
1339 cpu_to_le16(gpio->header.len + S_DS_GEN +
1341 gpio->header.len = cpu_to_le16(gpio->header.len);
1347 cmdptr->command = cpu_to_le16(cmd_802_11_pwr_cfg);
1349 cpu_to_le16(sizeof(struct cmd_ds_802_11_pwr_cfg) +
1369 cmdptr->command = cpu_to_le16(cmd_get_tsf);
1370 cmdptr->size = cpu_to_le16(sizeof(struct cmd_ds_get_tsf) +
1375 cmdptr->command = cpu_to_le16(cmd_802_11_tx_rate_query);
1376 cmdptr->size = cpu_to_le16(sizeof(struct cmd_tx_rate_query) +
1677 cpu_to_le16(cmd_802_11_ps_mode)) {
1703 cpu_to_le16(cmd_subcmd_exit_ps)) {