Searched refs:cpu_to_le16 (Results 1 - 200 of 939) sorted by relevance

12345

/linux-4.1.27/include/linux/usb/
H A Dassociation.h31 #define WUSB_AR_AssociationTypeId { .id = cpu_to_le16(0x0000), .len = cpu_to_le16(2) }
32 #define WUSB_AR_AssociationSubTypeId { .id = cpu_to_le16(0x0001), .len = cpu_to_le16(2) }
33 #define WUSB_AR_Length { .id = cpu_to_le16(0x0002), .len = cpu_to_le16(4) }
34 #define WUSB_AR_AssociationStatus { .id = cpu_to_le16(0x0004), .len = cpu_to_le16(4) }
35 #define WUSB_AR_LangID { .id = cpu_to_le16(0x0008), .len = cpu_to_le16(2) }
36 #define WUSB_AR_DeviceFriendlyName { .id = cpu_to_le16(0x000b), .len = cpu_to_le16(64) } /* max */
37 #define WUSB_AR_HostFriendlyName { .id = cpu_to_le16(0x000c), .len = cpu_to_le16(64) } /* max */
38 #define WUSB_AR_CHID { .id = cpu_to_le16(0x1000), .len = cpu_to_le16(16) }
39 #define WUSB_AR_CDID { .id = cpu_to_le16(0x1001), .len = cpu_to_le16(16) }
40 #define WUSB_AR_ConnectionContext { .id = cpu_to_le16(0x1002), .len = cpu_to_le16(48) }
41 #define WUSB_AR_BandGroups { .id = cpu_to_le16(0x1004), .len = cpu_to_le16(2) }
/linux-4.1.27/drivers/net/wireless/rsi/
H A Drsi_91x_pkt.c64 frame_desc[6] |= cpu_to_le16(BIT(12)); rsi_send_data_pkt()
73 frame_desc[6] |= cpu_to_le16(BIT(15)); rsi_send_data_pkt()
76 frame_desc[0] = cpu_to_le16((skb->len - FRAME_DESC_SZ) | rsi_send_data_pkt()
78 frame_desc[2] = cpu_to_le16((extnd_size) | (ieee80211_size) << 8); rsi_send_data_pkt()
82 frame_desc[3] = cpu_to_le16(RATE_INFO_ENABLE); rsi_send_data_pkt()
83 frame_desc[4] = cpu_to_le16(common->min_rate); rsi_send_data_pkt()
86 frame_desc[5] = cpu_to_le16(FULL40M_ENABLE); rsi_send_data_pkt()
91 cpu_to_le16(ENABLE_SHORTGI_RATE); rsi_send_data_pkt()
96 frame_desc[6] |= cpu_to_le16(seq_num & 0xfff); rsi_send_data_pkt()
97 frame_desc[7] = cpu_to_le16(((tx_params->tid & 0xf) << 4) | rsi_send_data_pkt()
175 msg[0] = cpu_to_le16((skb->len - FRAME_DESC_SZ) | rsi_send_mgmt_pkt()
177 msg[1] = cpu_to_le16(TX_DOT11_MGMT); rsi_send_mgmt_pkt()
178 msg[2] = cpu_to_le16(MIN_802_11_HDR_LEN << 8); rsi_send_mgmt_pkt()
179 msg[3] = cpu_to_le16(RATE_INFO_ENABLE); rsi_send_mgmt_pkt()
180 msg[6] = cpu_to_le16(le16_to_cpu(wh->seq_ctrl) >> 4); rsi_send_mgmt_pkt()
183 msg[3] |= cpu_to_le16(RSI_BROADCAST_PKT); rsi_send_mgmt_pkt()
186 msg[4] = cpu_to_le16(RSI_11B_MODE); rsi_send_mgmt_pkt()
188 msg[4] = cpu_to_le16((RSI_RATE_6 & 0x0f) | RSI_11G_MODE); rsi_send_mgmt_pkt()
191 msg[4] = cpu_to_le16(0xB | RSI_11G_MODE); rsi_send_mgmt_pkt()
192 msg[5] = cpu_to_le16(0x6); rsi_send_mgmt_pkt()
197 msg[1] |= cpu_to_le16(BIT(10)); rsi_send_mgmt_pkt()
198 msg[7] = cpu_to_le16(PROBEREQ_CONFIRM); rsi_send_mgmt_pkt()
202 msg[7] |= cpu_to_le16(vap_id << 8); rsi_send_mgmt_pkt()
H A Drsi_91x_mgmt.c22 .magic_number = cpu_to_le16(0x5aa5),
33 .pll_reg_1 = cpu_to_le16((TA_PLL_N_VAL_20 << 8)|
35 .pll_reg_2 = cpu_to_le16(TA_PLL_P_VAL_20),
38 .pll_reg_1 = cpu_to_le16((PLL960_P_VAL_20 << 8)|
40 .pll_reg_2 = cpu_to_le16(PLL960_M_VAL_20),
44 .pll_reg = cpu_to_le16(0x9f0),
48 .switch_clk_info = cpu_to_le16(BIT(3)),
49 .bbp_lmac_clk_reg_val = cpu_to_le16(0x121),
57 .pll_reg_1 = cpu_to_le16((TA_PLL_N_VAL_20 << 8)|
59 .pll_reg_2 = cpu_to_le16(TA_PLL_P_VAL_20),
62 .pll_reg_1 = cpu_to_le16((PLL960_P_VAL_20 << 8)|
64 .pll_reg_2 = cpu_to_le16(PLL960_M_VAL_20),
68 .pll_reg = cpu_to_le16(0x9f0),
81 .pll_reg_1 = cpu_to_le16((TA_PLL_N_VAL_20 << 8)|
83 .pll_reg_2 = cpu_to_le16(TA_PLL_P_VAL_20),
86 .pll_reg_1 = cpu_to_le16((PLL960_P_VAL_20 << 8)|
88 .pll_reg_2 = cpu_to_le16(PLL960_M_VAL_20),
92 .pll_reg = cpu_to_le16(0x9f0),
113 .magic_number = cpu_to_le16(0x5aa5),
124 .pll_reg_1 = cpu_to_le16((TA_PLL_N_VAL_40 << 8)|
126 .pll_reg_2 = cpu_to_le16(TA_PLL_P_VAL_40),
129 .pll_reg_1 = cpu_to_le16((PLL960_P_VAL_40 << 8)|
131 .pll_reg_2 = cpu_to_le16(PLL960_M_VAL_40),
135 .pll_reg = cpu_to_le16(0x9f0),
139 .switch_clk_info = cpu_to_le16(0x09),
140 .bbp_lmac_clk_reg_val = cpu_to_le16(0x1121),
141 .umac_clock_reg_config = cpu_to_le16(0x48),
148 .pll_reg_1 = cpu_to_le16((TA_PLL_N_VAL_40 << 8)|
150 .pll_reg_2 = cpu_to_le16(TA_PLL_P_VAL_40),
153 .pll_reg_1 = cpu_to_le16((PLL960_P_VAL_40 << 8)|
155 .pll_reg_2 = cpu_to_le16(PLL960_M_VAL_40),
159 .pll_reg = cpu_to_le16(0x9f0),
172 .pll_reg_1 = cpu_to_le16((TA_PLL_N_VAL_40 << 8)|
174 .pll_reg_2 = cpu_to_le16(TA_PLL_P_VAL_40),
177 .pll_reg_1 = cpu_to_le16((PLL960_P_VAL_40 << 8)|
179 .pll_reg_2 = cpu_to_le16(PLL960_M_VAL_40),
183 .pll_reg = cpu_to_le16(0x9f0),
303 radio_caps->desc_word[1] = cpu_to_le16(RADIO_CAPABILITIES); rsi_load_radio_caps()
304 radio_caps->desc_word[4] = cpu_to_le16(RSI_RF_TYPE << 8); rsi_load_radio_caps()
307 radio_caps->desc_word[7] |= cpu_to_le16(RSI_LMAC_CLOCK_80MHZ); rsi_load_radio_caps()
308 radio_caps->desc_word[7] |= cpu_to_le16(RSI_ENABLE_40MHZ); rsi_load_radio_caps()
315 cpu_to_le16(LOWER_20_ENABLE); rsi_load_radio_caps()
317 cpu_to_le16(LOWER_20_ENABLE >> 12); rsi_load_radio_caps()
320 cpu_to_le16(UPPER_20_ENABLE); rsi_load_radio_caps()
322 cpu_to_le16(UPPER_20_ENABLE >> 12); rsi_load_radio_caps()
325 cpu_to_le16(BW_40MHZ << 12); rsi_load_radio_caps()
327 cpu_to_le16(FULL40M_ENABLE); rsi_load_radio_caps()
332 radio_caps->sifs_tx_11n = cpu_to_le16(SIFS_TX_11N_VALUE); rsi_load_radio_caps()
333 radio_caps->sifs_tx_11b = cpu_to_le16(SIFS_TX_11B_VALUE); rsi_load_radio_caps()
334 radio_caps->slot_rx_11n = cpu_to_le16(SHORT_SLOT_VALUE); rsi_load_radio_caps()
335 radio_caps->ofdm_ack_tout = cpu_to_le16(OFDM_ACK_TOUT_VALUE); rsi_load_radio_caps()
336 radio_caps->cck_ack_tout = cpu_to_le16(CCK_ACK_TOUT_VALUE); rsi_load_radio_caps()
337 radio_caps->preamble_type = cpu_to_le16(LONG_PREAMBLE); rsi_load_radio_caps()
339 radio_caps->desc_word[7] |= cpu_to_le16(radio_id << 8); rsi_load_radio_caps()
342 radio_caps->qos_params[ii].cont_win_min_q = cpu_to_le16(3); rsi_load_radio_caps()
343 radio_caps->qos_params[ii].cont_win_max_q = cpu_to_le16(0x3f); rsi_load_radio_caps()
344 radio_caps->qos_params[ii].aifsn_val_q = cpu_to_le16(2); rsi_load_radio_caps()
350 cpu_to_le16(common->edca_params[ii].cw_min); rsi_load_radio_caps()
352 cpu_to_le16(common->edca_params[ii].cw_max); rsi_load_radio_caps()
354 cpu_to_le16((common->edca_params[ii].aifs) << 8); rsi_load_radio_caps()
356 cpu_to_le16(common->edca_params[ii].txop); rsi_load_radio_caps()
362 cpu_to_le16(common->rate_pwr[ii] & 0x00FF); rsi_load_radio_caps()
364 radio_caps->desc_word[0] = cpu_to_le16((sizeof(struct rsi_radio_caps) - rsi_load_radio_caps()
472 peer_notify->command = cpu_to_le16(opmode << 1); rsi_hal_send_sta_notify_frame()
476 peer_notify->command |= cpu_to_le16(RSI_ADD_PEER); rsi_hal_send_sta_notify_frame()
479 peer_notify->command |= cpu_to_le16(RSI_DELETE_PEER); rsi_hal_send_sta_notify_frame()
485 peer_notify->command |= cpu_to_le16((aid & 0xfff) << 4); rsi_hal_send_sta_notify_frame()
491 cpu_to_le16((sizeof(struct rsi_peer_notify) - FRAME_DESC_SZ) | rsi_hal_send_sta_notify_frame()
493 peer_notify->desc_word[1] = cpu_to_le16(PEER_NOTIFY); rsi_hal_send_sta_notify_frame()
494 peer_notify->desc_word[7] |= cpu_to_le16(vap_id << 8); rsi_hal_send_sta_notify_frame()
541 mgmt_frame->desc_word[0] = cpu_to_le16(RSI_WIFI_MGMT_Q << 12); rsi_send_aggregation_params_frame()
542 mgmt_frame->desc_word[1] = cpu_to_le16(AMPDU_IND); rsi_send_aggregation_params_frame()
545 mgmt_frame->desc_word[4] = cpu_to_le16(ssn); rsi_send_aggregation_params_frame()
546 mgmt_frame->desc_word[5] = cpu_to_le16(buf_size); rsi_send_aggregation_params_frame()
548 cpu_to_le16((tid | (START_AMPDU_AGGR << 4) | (peer_id << 8))); rsi_send_aggregation_params_frame()
550 mgmt_frame->desc_word[4] = cpu_to_le16(ssn); rsi_send_aggregation_params_frame()
551 mgmt_frame->desc_word[7] = cpu_to_le16(tid | rsi_send_aggregation_params_frame()
556 mgmt_frame->desc_word[7] = cpu_to_le16(tid | rsi_send_aggregation_params_frame()
560 mgmt_frame->desc_word[7] = cpu_to_le16(tid | rsi_send_aggregation_params_frame()
595 mgmt_frame->desc_word[0] = cpu_to_le16(RSI_WIFI_MGMT_Q << 12); rsi_program_bb_rf()
596 mgmt_frame->desc_word[1] = cpu_to_le16(BBP_PROG_IN_TA); rsi_program_bb_rf()
597 mgmt_frame->desc_word[4] = cpu_to_le16(common->endpoint); rsi_program_bb_rf()
600 mgmt_frame->desc_word[7] = cpu_to_le16(RF_RESET_ENABLE); rsi_program_bb_rf()
606 mgmt_frame->desc_word[7] |= cpu_to_le16(PUT_BBP_RESET | rsi_program_bb_rf()
641 vap_caps->desc_word[0] = cpu_to_le16((sizeof(struct rsi_vap_caps) - rsi_set_vap_capabilities()
644 vap_caps->desc_word[1] = cpu_to_le16(VAP_CAPABILITIES); rsi_set_vap_capabilities()
645 vap_caps->desc_word[4] = cpu_to_le16(mode | rsi_set_vap_capabilities()
647 vap_caps->desc_word[7] = cpu_to_le16((vap_id << 8) | rsi_set_vap_capabilities()
652 vap_caps->keep_alive_period = cpu_to_le16(90); rsi_set_vap_capabilities()
653 vap_caps->frag_threshold = cpu_to_le16(IEEE80211_MAX_FRAG_THRESHOLD); rsi_set_vap_capabilities()
655 vap_caps->rts_threshold = cpu_to_le16(common->rts_threshold); rsi_set_vap_capabilities()
675 vap_caps->beacon_interval = cpu_to_le16(200); rsi_set_vap_capabilities()
676 vap_caps->dtim_period = cpu_to_le16(4); rsi_set_vap_capabilities()
732 set_key->desc_word[0] = cpu_to_le16((sizeof(struct rsi_set_key) - rsi_hal_load_key()
735 set_key->desc_word[1] = cpu_to_le16(SET_KEY_REQ); rsi_hal_load_key()
736 set_key->desc_word[4] = cpu_to_le16(key_descriptor); rsi_hal_load_key()
785 boot_params->desc_word[7] = cpu_to_le16(UMAC_CLK_40BW); rsi_load_bootup_params()
791 boot_params->desc_word[7] = cpu_to_le16(UMAC_CLK_20BW); rsi_load_bootup_params()
796 boot_params->desc_word[7] = cpu_to_le16(UMAC_CLK_40MHZ); rsi_load_bootup_params()
807 boot_params->desc_word[0] = cpu_to_le16(sizeof(struct bootup_params) | rsi_load_bootup_params()
809 boot_params->desc_word[1] = cpu_to_le16(BOOTUP_PARAMS_REQUEST); rsi_load_bootup_params()
840 mgmt_frame->desc_word[0] = cpu_to_le16(RSI_WIFI_MGMT_Q << 12); rsi_send_reset_mac()
841 mgmt_frame->desc_word[1] = cpu_to_le16(RESET_MAC_REQ); rsi_send_reset_mac()
842 mgmt_frame->desc_word[4] = cpu_to_le16(RETRY_COUNT << 8); rsi_send_reset_mac()
931 mgmt_frame->desc_word[0] = cpu_to_le16(RSI_WIFI_MGMT_Q << 12); rsi_set_channel()
932 mgmt_frame->desc_word[1] = cpu_to_le16(SCAN_REQUEST); rsi_set_channel()
933 mgmt_frame->desc_word[4] = cpu_to_le16(channel); rsi_set_channel()
935 mgmt_frame->desc_word[7] = cpu_to_le16(PUT_BBP_RESET | rsi_set_channel()
939 mgmt_frame->desc_word[5] = cpu_to_le16(0x01); rsi_set_channel()
940 mgmt_frame->desc_word[6] = cpu_to_le16(0x12); rsi_set_channel()
943 mgmt_frame->desc_word[5] |= cpu_to_le16(0x1 << 8); rsi_set_channel()
1039 auto_rate->aarf_rssi = cpu_to_le16(((u16)3 << 6) | (u16)(18 & 0x3f)); rsi_send_auto_rate_request()
1040 auto_rate->collision_tolerance = cpu_to_le16(3); rsi_send_auto_rate_request()
1041 auto_rate->failure_limit = cpu_to_le16(3); rsi_send_auto_rate_request()
1042 auto_rate->initial_boundary = cpu_to_le16(3); rsi_send_auto_rate_request()
1043 auto_rate->max_threshold_limt = cpu_to_le16(27); rsi_send_auto_rate_request()
1045 auto_rate->desc_word[1] = cpu_to_le16(AUTO_RATE_IND); rsi_send_auto_rate_request()
1048 auto_rate->desc_word[7] |= cpu_to_le16(1); rsi_send_auto_rate_request()
1081 cpu_to_le16(rsi_rates[kk].hw_value); rsi_send_auto_rate_request()
1084 cpu_to_le16(rsi_mcsrates[kk]); rsi_send_auto_rate_request()
1095 cpu_to_le16(rsi_mcsrates[kk] | BIT(9)); rsi_send_auto_rate_request()
1097 cpu_to_le16(rsi_mcsrates[kk--]); rsi_send_auto_rate_request()
1102 cpu_to_le16(rsi_mcsrates[0]); rsi_send_auto_rate_request()
1107 auto_rate->supported_rates[ii] = cpu_to_le16(min_rate); rsi_send_auto_rate_request()
1109 auto_rate->num_supported_rates = cpu_to_le16(num_supported_rates * 2); rsi_send_auto_rate_request()
1110 auto_rate->moderate_rate_inx = cpu_to_le16(num_supported_rates / 2); rsi_send_auto_rate_request()
1111 auto_rate->desc_word[7] |= cpu_to_le16(0 << 8); rsi_send_auto_rate_request()
1114 auto_rate->desc_word[0] = cpu_to_le16((sizeof(*auto_rate) - rsi_send_auto_rate_request()
1187 mgmt_frame->desc_word[1] = cpu_to_le16(EEPROM_READ_TYPE); rsi_eeprom_read()
1188 mgmt_frame->desc_word[0] = cpu_to_le16(RSI_WIFI_MGMT_Q << 12); rsi_eeprom_read()
1190 mgmt_frame->desc_word[3] = cpu_to_le16(ETH_ALEN + rsi_eeprom_read()
1195 mgmt_frame->desc_word[4] = cpu_to_le16(WLAN_MAC_EEPROM_ADDR); rsi_eeprom_read()
1227 mgmt_frame->desc_word[0] = cpu_to_le16(RSI_WIFI_MGMT_Q << 12); rsi_send_block_unblock_frame()
1228 mgmt_frame->desc_word[1] = cpu_to_le16(BLOCK_HW_QUEUE); rsi_send_block_unblock_frame()
1232 mgmt_frame->desc_word[4] = cpu_to_le16(0xf); rsi_send_block_unblock_frame()
1235 mgmt_frame->desc_word[5] = cpu_to_le16(0xf); rsi_send_block_unblock_frame()
/linux-4.1.27/drivers/net/wireless/mwifiex/
H A Dsta_cmd.c46 cmd->command = cpu_to_le16(HostCmd_CMD_RSSI_INFO); mwifiex_cmd_802_11_rssi_info()
47 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_rssi_info) + mwifiex_cmd_802_11_rssi_info()
49 cmd->params.rssi_info.action = cpu_to_le16(cmd_action); mwifiex_cmd_802_11_rssi_info()
50 cmd->params.rssi_info.ndata = cpu_to_le16(priv->data_avg_factor); mwifiex_cmd_802_11_rssi_info()
51 cmd->params.rssi_info.nbcn = cpu_to_le16(priv->bcn_avg_factor); mwifiex_cmd_802_11_rssi_info()
85 cmd->command = cpu_to_le16(HostCmd_CMD_MAC_CONTROL); mwifiex_cmd_mac_control()
87 cpu_to_le16(sizeof(struct host_cmd_ds_mac_control) + S_DS_GEN); mwifiex_cmd_mac_control()
88 mac_ctrl->action = cpu_to_le16(*action); mwifiex_cmd_mac_control()
116 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_SNMP_MIB); mwifiex_cmd_802_11_snmp_mib()
117 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_snmp_mib) mwifiex_cmd_802_11_snmp_mib()
120 snmp_mib->oid = cpu_to_le16((u16)cmd_oid); mwifiex_cmd_802_11_snmp_mib()
122 snmp_mib->query_type = cpu_to_le16(HostCmd_ACT_GEN_GET); mwifiex_cmd_802_11_snmp_mib()
123 snmp_mib->buf_size = cpu_to_le16(MAX_SNMP_BUF_SIZE); mwifiex_cmd_802_11_snmp_mib()
126 snmp_mib->query_type = cpu_to_le16(HostCmd_ACT_GEN_SET); mwifiex_cmd_802_11_snmp_mib()
127 snmp_mib->buf_size = cpu_to_le16(sizeof(u16)); mwifiex_cmd_802_11_snmp_mib()
128 *((__le16 *) (snmp_mib->value)) = cpu_to_le16(*ul_temp); mwifiex_cmd_802_11_snmp_mib()
150 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_GET_LOG); mwifiex_cmd_802_11_get_log()
151 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_get_log) + mwifiex_cmd_802_11_get_log()
174 cmd->command = cpu_to_le16(HostCmd_CMD_TX_RATE_CFG); mwifiex_cmd_tx_rate_cfg()
176 rate_cfg->action = cpu_to_le16(cmd_action); mwifiex_cmd_tx_rate_cfg()
181 rate_scope->type = cpu_to_le16(TLV_TYPE_RATE_SCOPE); mwifiex_cmd_tx_rate_cfg()
182 rate_scope->length = cpu_to_le16 mwifiex_cmd_tx_rate_cfg()
185 rate_scope->hr_dsss_rate_bitmap = cpu_to_le16(pbitmap_rates[0]); mwifiex_cmd_tx_rate_cfg()
186 rate_scope->ofdm_rate_bitmap = cpu_to_le16(pbitmap_rates[1]); mwifiex_cmd_tx_rate_cfg()
191 cpu_to_le16(pbitmap_rates[2 + i]); mwifiex_cmd_tx_rate_cfg()
197 cpu_to_le16(pbitmap_rates[10 + i]); mwifiex_cmd_tx_rate_cfg()
201 cpu_to_le16(priv->bitmap_rates[0]); mwifiex_cmd_tx_rate_cfg()
203 cpu_to_le16(priv->bitmap_rates[1]); mwifiex_cmd_tx_rate_cfg()
208 cpu_to_le16(priv->bitmap_rates[2 + i]); mwifiex_cmd_tx_rate_cfg()
214 cpu_to_le16(priv->bitmap_rates[10 + i]); mwifiex_cmd_tx_rate_cfg()
220 rate_drop->type = cpu_to_le16(TLV_TYPE_RATE_DROP_CONTROL); mwifiex_cmd_tx_rate_cfg()
221 rate_drop->length = cpu_to_le16(sizeof(rate_drop->rate_drop_mode)); mwifiex_cmd_tx_rate_cfg()
225 cpu_to_le16(S_DS_GEN + sizeof(struct host_cmd_ds_tx_rate_cfg) + mwifiex_cmd_tx_rate_cfg()
248 cmd->command = cpu_to_le16(HostCmd_CMD_TXPWR_CFG); mwifiex_cmd_tx_power_cfg()
250 cpu_to_le16(S_DS_GEN + sizeof(struct host_cmd_ds_txpwr_cfg)); mwifiex_cmd_tx_power_cfg()
265 cmd->size = cpu_to_le16(le16_to_cpu(cmd->size) + mwifiex_cmd_tx_power_cfg()
271 cmd_txp_cfg->action = cpu_to_le16(cmd_action); mwifiex_cmd_tx_power_cfg()
274 cmd_txp_cfg->action = cpu_to_le16(cmd_action); mwifiex_cmd_tx_power_cfg()
290 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_rf_tx_pwr) mwifiex_cmd_rf_tx_power()
292 cmd->command = cpu_to_le16(HostCmd_CMD_RF_TX_PWR); mwifiex_cmd_rf_tx_power()
293 txp->action = cpu_to_le16(cmd_action); mwifiex_cmd_rf_tx_power()
309 cmd->command = cpu_to_le16(HostCmd_CMD_RF_ANTENNA); mwifiex_cmd_rf_antenna()
315 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_rf_ant_mimo) + mwifiex_cmd_rf_antenna()
317 ant_mimo->action_tx = cpu_to_le16(HostCmd_ACT_SET_TX); mwifiex_cmd_rf_antenna()
318 ant_mimo->tx_ant_mode = cpu_to_le16((u16)ant_cfg->tx_ant); mwifiex_cmd_rf_antenna()
319 ant_mimo->action_rx = cpu_to_le16(HostCmd_ACT_SET_RX); mwifiex_cmd_rf_antenna()
320 ant_mimo->rx_ant_mode = cpu_to_le16((u16)ant_cfg->rx_ant); mwifiex_cmd_rf_antenna()
322 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_rf_ant_siso) + mwifiex_cmd_rf_antenna()
324 ant_siso->action = cpu_to_le16(HostCmd_ACT_SET_BOTH); mwifiex_cmd_rf_antenna()
325 ant_siso->ant_mode = cpu_to_le16((u16)ant_cfg->tx_ant); mwifiex_cmd_rf_antenna()
353 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_HS_CFG_ENH); mwifiex_cmd_802_11_hs_cfg()
365 cmd->size = cpu_to_le16 mwifiex_cmd_802_11_hs_cfg()
370 cmd->size = cpu_to_le16(S_DS_GEN + sizeof(struct mwifiex_cmd_802_11_hs_cfg()
374 hs_cfg->action = cpu_to_le16(HS_ACTIVATE); mwifiex_cmd_802_11_hs_cfg()
375 hs_cfg->params.hs_activate.resp_ctrl = cpu_to_le16(RESP_NEEDED); mwifiex_cmd_802_11_hs_cfg()
377 hs_cfg->action = cpu_to_le16(HS_CONFIGURE); mwifiex_cmd_802_11_hs_cfg()
403 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_MAC_ADDRESS); mwifiex_cmd_802_11_mac_address()
404 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_mac_address) + mwifiex_cmd_802_11_mac_address()
408 cmd->params.mac_addr.action = cpu_to_le16(cmd_action); mwifiex_cmd_802_11_mac_address()
431 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_mac_multicast_adr) + mwifiex_cmd_mac_multicast_adr()
433 cmd->command = cpu_to_le16(HostCmd_CMD_MAC_MULTICAST_ADR); mwifiex_cmd_mac_multicast_adr()
435 mcast_addr->action = cpu_to_le16(cmd_action); mwifiex_cmd_mac_multicast_adr()
437 cpu_to_le16((u16) mcast_list->num_multicast_addr); mwifiex_cmd_mac_multicast_adr()
458 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_DEAUTHENTICATE); mwifiex_cmd_802_11_deauthenticate()
459 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_deauthenticate) mwifiex_cmd_802_11_deauthenticate()
467 deauth->reason_code = cpu_to_le16(WLAN_REASON_DEAUTH_LEAVING); mwifiex_cmd_802_11_deauthenticate()
481 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_AD_HOC_STOP); mwifiex_cmd_802_11_ad_hoc_stop()
482 cmd->size = cpu_to_le16(S_DS_GEN); mwifiex_cmd_802_11_ad_hoc_stop()
505 cpu_to_le16(TLV_TYPE_KEY_MATERIAL); mwifiex_set_keyparamset_wep()
508 key_param_set->length = cpu_to_le16((u16) mwifiex_set_keyparamset_wep()
513 cpu_to_le16(KEY_TYPE_ID_WEP); mwifiex_set_keyparamset_wep()
515 cpu_to_le16(KEY_ENABLED | KEY_UNICAST | mwifiex_set_keyparamset_wep()
518 cpu_to_le16(priv->wep_key[i].key_length); mwifiex_set_keyparamset_wep()
569 km->key_param_set.key_info &= cpu_to_le16(~KEY_MCAST); mwifiex_set_aes_key_v2()
570 km->key_param_set.key_info |= cpu_to_le16(KEY_IGTK); mwifiex_set_aes_key_v2()
573 cpu_to_le16(enc_key->key_len); mwifiex_set_aes_key_v2()
584 cpu_to_le16(enc_key->key_len); mwifiex_set_aes_key_v2()
590 km->key_param_set.len = cpu_to_le16(len); mwifiex_set_aes_key_v2()
593 cmd->size = cpu_to_le16(size); mwifiex_set_aes_key_v2()
618 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_KEY_MATERIAL); mwifiex_cmd_802_11_key_material_v2()
619 km->action = cpu_to_le16(cmd_action); mwifiex_cmd_802_11_key_material_v2()
625 km->key_param_set.type = cpu_to_le16(TLV_TYPE_KEY_PARAM_V2); mwifiex_cmd_802_11_key_material_v2()
626 km->key_param_set.len = cpu_to_le16(KEY_PARAMS_FIXED_LEN); mwifiex_cmd_802_11_key_material_v2()
637 km->key_param_set.key_info = cpu_to_le16(key_info); mwifiex_cmd_802_11_key_material_v2()
639 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + mwifiex_cmd_802_11_key_material_v2()
650 km->action = cpu_to_le16(HostCmd_ACT_GEN_REMOVE); mwifiex_cmd_802_11_key_material_v2()
651 km->key_param_set.type = cpu_to_le16(TLV_TYPE_KEY_PARAM_V2); mwifiex_cmd_802_11_key_material_v2()
652 km->key_param_set.len = cpu_to_le16(KEY_PARAMS_FIXED_LEN); mwifiex_cmd_802_11_key_material_v2()
655 km->key_param_set.key_info = cpu_to_le16(key_info); mwifiex_cmd_802_11_key_material_v2()
657 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + mwifiex_cmd_802_11_key_material_v2()
663 km->action = cpu_to_le16(HostCmd_ACT_GEN_SET); mwifiex_cmd_802_11_key_material_v2()
665 km->key_param_set.type = cpu_to_le16(TLV_TYPE_KEY_PARAM_V2); mwifiex_cmd_802_11_key_material_v2()
672 km->key_param_set.len = cpu_to_le16(len); mwifiex_cmd_802_11_key_material_v2()
695 km->key_param_set.key_info = cpu_to_le16(key_info); mwifiex_cmd_802_11_key_material_v2()
698 cpu_to_le16(enc_key->key_len); mwifiex_cmd_802_11_key_material_v2()
702 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + mwifiex_cmd_802_11_key_material_v2()
718 cpu_to_le16(enc_key->key_len); mwifiex_cmd_802_11_key_material_v2()
726 km->key_param_set.key_info = cpu_to_le16(key_info); mwifiex_cmd_802_11_key_material_v2()
729 km->key_param_set.len = cpu_to_le16(len); mwifiex_cmd_802_11_key_material_v2()
730 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + mwifiex_cmd_802_11_key_material_v2()
747 km->key_param_set.key_info = cpu_to_le16(key_info); mwifiex_cmd_802_11_key_material_v2()
759 cpu_to_le16(enc_key->key_len); mwifiex_cmd_802_11_key_material_v2()
764 km->key_param_set.len = cpu_to_le16(len); mwifiex_cmd_802_11_key_material_v2()
765 cmd->size = cpu_to_le16(sizeof(struct mwifiex_ie_types_header) + mwifiex_cmd_802_11_key_material_v2()
794 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_KEY_MATERIAL); mwifiex_cmd_802_11_key_material_v1()
795 key_material->action = cpu_to_le16(cmd_action); mwifiex_cmd_802_11_key_material_v1()
799 cpu_to_le16(sizeof(key_material->action) + S_DS_GEN); mwifiex_cmd_802_11_key_material_v1()
810 cmd->size = cpu_to_le16(key_param_len + mwifiex_cmd_802_11_key_material_v1()
819 cpu_to_le16(KEY_TYPE_ID_WAPI); mwifiex_cmd_802_11_key_material_v1()
822 cpu_to_le16(KEY_ENABLED); mwifiex_cmd_802_11_key_material_v1()
825 cpu_to_le16(!KEY_ENABLED); mwifiex_cmd_802_11_key_material_v1()
837 cpu_to_le16(KEY_UNICAST); mwifiex_cmd_802_11_key_material_v1()
840 cpu_to_le16(KEY_MCAST); mwifiex_cmd_802_11_key_material_v1()
845 cpu_to_le16(TLV_TYPE_KEY_MATERIAL); mwifiex_cmd_802_11_key_material_v1()
847 cpu_to_le16(WAPI_KEY_LEN); mwifiex_cmd_802_11_key_material_v1()
853 cpu_to_le16(WAPI_KEY_LEN + KEYPARAMSET_FIXED_LEN); mwifiex_cmd_802_11_key_material_v1()
857 cmd->size = cpu_to_le16(sizeof(key_material->action) mwifiex_cmd_802_11_key_material_v1()
865 cpu_to_le16(KEY_TYPE_ID_AES_CMAC); mwifiex_cmd_802_11_key_material_v1()
868 cpu_to_le16(KEY_ENABLED); mwifiex_cmd_802_11_key_material_v1()
871 cpu_to_le16(!KEY_ENABLED); mwifiex_cmd_802_11_key_material_v1()
874 cpu_to_le16(KEY_IGTK); mwifiex_cmd_802_11_key_material_v1()
878 cpu_to_le16(KEY_TYPE_ID_AES); mwifiex_cmd_802_11_key_material_v1()
881 cpu_to_le16(KEY_ENABLED); mwifiex_cmd_802_11_key_material_v1()
884 cpu_to_le16(!KEY_ENABLED); mwifiex_cmd_802_11_key_material_v1()
889 cpu_to_le16(KEY_UNICAST); mwifiex_cmd_802_11_key_material_v1()
892 cpu_to_le16(KEY_MCAST); mwifiex_cmd_802_11_key_material_v1()
897 cpu_to_le16(KEY_TYPE_ID_TKIP); mwifiex_cmd_802_11_key_material_v1()
899 cpu_to_le16(KEY_ENABLED); mwifiex_cmd_802_11_key_material_v1()
904 cpu_to_le16(KEY_UNICAST); mwifiex_cmd_802_11_key_material_v1()
907 cpu_to_le16(KEY_MCAST); mwifiex_cmd_802_11_key_material_v1()
912 cpu_to_le16(TLV_TYPE_KEY_MATERIAL); mwifiex_cmd_802_11_key_material_v1()
914 cpu_to_le16((u16) enc_key->key_len); mwifiex_cmd_802_11_key_material_v1()
918 cpu_to_le16((u16) enc_key->key_len + mwifiex_cmd_802_11_key_material_v1()
935 cpu_to_le16(key_param_len); mwifiex_cmd_802_11_key_material_v1()
938 cpu_to_le16(key_param_len); mwifiex_cmd_802_11_key_material_v1()
942 cmd->size = cpu_to_le16(sizeof(key_material->action) + S_DS_GEN mwifiex_cmd_802_11_key_material_v1()
949 cpu_to_le16(TLV_TYPE_STA_MAC_ADDR); mwifiex_cmd_802_11_key_material_v1()
950 tlv_mac->header.len = cpu_to_le16(ETH_ALEN); mwifiex_cmd_802_11_key_material_v1()
959 cmd->size = cpu_to_le16(cmd_size); mwifiex_cmd_802_11_key_material_v1()
1004 cmd->command = cpu_to_le16(HostCmd_CMD_802_11D_DOMAIN_INFO); mwifiex_cmd_802_11d_domain_info()
1005 domain_info->action = cpu_to_le16(cmd_action); mwifiex_cmd_802_11d_domain_info()
1007 cmd->size = cpu_to_le16(sizeof(domain_info->action) + S_DS_GEN); mwifiex_cmd_802_11d_domain_info()
1012 domain->header.type = cpu_to_le16(WLAN_EID_COUNTRY); mwifiex_cmd_802_11d_domain_info()
1017 cpu_to_le16((no_of_triplet * mwifiex_cmd_802_11d_domain_info()
1026 cmd->size = cpu_to_le16(sizeof(domain_info->action) + mwifiex_cmd_802_11d_domain_info()
1031 cmd->size = cpu_to_le16(sizeof(domain_info->action) + S_DS_GEN); mwifiex_cmd_802_11d_domain_info()
1051 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_IBSS_COALESCING_STATUS); mwifiex_cmd_ibss_coalescing_status()
1052 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_ibss_status) + mwifiex_cmd_ibss_coalescing_status()
1055 ibss_coal->action = cpu_to_le16(cmd_action); mwifiex_cmd_ibss_coalescing_status()
1060 ibss_coal->enable = cpu_to_le16(*enable); mwifiex_cmd_ibss_coalescing_status()
1101 cmd->size = cpu_to_le16(sizeof(*mac_reg) + S_DS_GEN); mwifiex_cmd_reg_access()
1103 mac_reg->action = cpu_to_le16(cmd_action); mwifiex_cmd_reg_access()
1105 cpu_to_le16((u16) le32_to_cpu(reg_rw->offset)); mwifiex_cmd_reg_access()
1113 cmd->size = cpu_to_le16(sizeof(*bbp_reg) + S_DS_GEN); mwifiex_cmd_reg_access()
1115 bbp_reg->action = cpu_to_le16(cmd_action); mwifiex_cmd_reg_access()
1117 cpu_to_le16((u16) le32_to_cpu(reg_rw->offset)); mwifiex_cmd_reg_access()
1125 cmd->size = cpu_to_le16(sizeof(*rf_reg) + S_DS_GEN); mwifiex_cmd_reg_access()
1127 rf_reg->action = cpu_to_le16(cmd_action); mwifiex_cmd_reg_access()
1128 rf_reg->offset = cpu_to_le16((u16) le32_to_cpu(reg_rw->offset)); mwifiex_cmd_reg_access()
1136 cmd->size = cpu_to_le16(sizeof(*pmic_reg) + S_DS_GEN); mwifiex_cmd_reg_access()
1138 pmic_reg->action = cpu_to_le16(cmd_action); mwifiex_cmd_reg_access()
1140 cpu_to_le16((u16) le32_to_cpu(reg_rw->offset)); mwifiex_cmd_reg_access()
1148 cmd->size = cpu_to_le16(sizeof(*cau_reg) + S_DS_GEN); mwifiex_cmd_reg_access()
1150 cau_reg->action = cpu_to_le16(cmd_action); mwifiex_cmd_reg_access()
1152 cpu_to_le16((u16) le32_to_cpu(reg_rw->offset)); mwifiex_cmd_reg_access()
1162 cmd->size = cpu_to_le16(sizeof(*cmd_eeprom) + S_DS_GEN); mwifiex_cmd_reg_access()
1163 cmd_eeprom->action = cpu_to_le16(cmd_action); mwifiex_cmd_reg_access()
1193 cmd->command = cpu_to_le16(HostCmd_CMD_PCIE_DESC_DETAILS); mwifiex_cmd_pcie_host_spec()
1194 cmd->size = cpu_to_le16(sizeof(struct mwifiex_cmd_pcie_host_spec()
1241 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_SUBSCRIBE_EVENT); mwifiex_cmd_802_11_subsc_evt()
1242 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_subsc_evt) + mwifiex_cmd_802_11_subsc_evt()
1245 subsc_evt->action = cpu_to_le16(subsc_evt_cfg->action); mwifiex_cmd_802_11_subsc_evt()
1252 subsc_evt->events = cpu_to_le16(subsc_evt_cfg->events); mwifiex_cmd_802_11_subsc_evt()
1280 rssi_tlv->header.type = cpu_to_le16(TLV_TYPE_RSSI_LOW); mwifiex_cmd_802_11_subsc_evt()
1282 cpu_to_le16(sizeof(struct mwifiex_ie_types_rssi_threshold) - mwifiex_cmd_802_11_subsc_evt()
1300 rssi_tlv->header.type = cpu_to_le16(TLV_TYPE_RSSI_HIGH); mwifiex_cmd_802_11_subsc_evt()
1302 cpu_to_le16(sizeof(struct mwifiex_ie_types_rssi_threshold) - mwifiex_cmd_802_11_subsc_evt()
1377 cmd->command = cpu_to_le16(HostCmd_CMD_MEF_CFG); mwifiex_cmd_mef_cfg()
1380 mef_cfg->num_entries = cpu_to_le16(mef->num_entries); mwifiex_cmd_mef_cfg()
1394 cpu_to_le16(pos - mef_entry->expr); mwifiex_cmd_mef_cfg()
1396 cmd->size = cpu_to_le16((u16) (pos - (u8 *)mef_cfg) + S_DS_GEN); mwifiex_cmd_mef_cfg()
1476 cmd->command = cpu_to_le16(HostCmd_CMD_CFG_DATA); mwifiex_cmd_cfg_data()
1477 cmd->size = cpu_to_le16(S_DS_GEN + len); mwifiex_cmd_cfg_data()
1494 cmd->command = cpu_to_le16(HostCmd_CMD_COALESCE_CFG); mwifiex_cmd_coalesce_cfg()
1495 cmd->size = cpu_to_le16(S_DS_GEN); mwifiex_cmd_coalesce_cfg()
1497 coalesce_cfg->action = cpu_to_le16(cmd_action); mwifiex_cmd_coalesce_cfg()
1498 coalesce_cfg->num_of_rules = cpu_to_le16(cfg->num_of_rules); mwifiex_cmd_coalesce_cfg()
1502 rule->header.type = cpu_to_le16(TLV_TYPE_COALESCE_RULE); mwifiex_cmd_coalesce_cfg()
1504 cpu_to_le16(cfg->rule[cnt].max_coalescing_delay); mwifiex_cmd_coalesce_cfg()
1516 cpu_to_le16(cfg->rule[cnt].params[idx].offset); mwifiex_cmd_coalesce_cfg()
1530 rule->header.len = cpu_to_le16(length + sizeof(u16) + mwifiex_cmd_coalesce_cfg()
1565 cmd->command = cpu_to_le16(HostCmd_CMD_TDLS_OPER); mwifiex_cmd_tdls_oper()
1566 cmd->size = cpu_to_le16(S_DS_GEN); mwifiex_cmd_tdls_oper()
1577 tdls_oper->tdls_action = cpu_to_le16(ACT_TDLS_DELETE); mwifiex_cmd_tdls_oper()
1580 tdls_oper->tdls_action = cpu_to_le16(ACT_TDLS_CREATE); mwifiex_cmd_tdls_oper()
1583 tdls_oper->tdls_action = cpu_to_le16(ACT_TDLS_CONFIG); mwifiex_cmd_tdls_oper()
1592 *(__le16 *)pos = cpu_to_le16(params->capability); mwifiex_cmd_tdls_oper()
1598 wmm_qos_info->header.type = cpu_to_le16(WLAN_EID_QOS_CAPA); mwifiex_cmd_tdls_oper()
1599 wmm_qos_info->header.len = cpu_to_le16(sizeof(qos_info)); mwifiex_cmd_tdls_oper()
1607 cpu_to_le16(WLAN_EID_HT_CAPABILITY); mwifiex_cmd_tdls_oper()
1609 cpu_to_le16(sizeof(struct ieee80211_ht_cap)); mwifiex_cmd_tdls_oper()
1619 cpu_to_le16(WLAN_EID_SUPP_RATES); mwifiex_cmd_tdls_oper()
1621 cpu_to_le16(params->supported_rates_len); mwifiex_cmd_tdls_oper()
1632 cpu_to_le16(WLAN_EID_EXT_CAPABILITY); mwifiex_cmd_tdls_oper()
1633 extcap->header.len = cpu_to_le16(params->ext_capab_len); mwifiex_cmd_tdls_oper()
1643 cpu_to_le16(WLAN_EID_VHT_CAPABILITY); mwifiex_cmd_tdls_oper()
1645 cpu_to_le16(sizeof(struct ieee80211_vht_cap)); mwifiex_cmd_tdls_oper()
1652 aid->header.type = cpu_to_le16(WLAN_EID_AID); mwifiex_cmd_tdls_oper()
1653 aid->header.len = cpu_to_le16(sizeof(params->aid)); mwifiex_cmd_tdls_oper()
1654 aid->aid = cpu_to_le16(params->aid); mwifiex_cmd_tdls_oper()
1659 timeout->header.type = cpu_to_le16(TLV_TYPE_TDLS_IDLE_TIMEOUT); mwifiex_cmd_tdls_oper()
1660 timeout->header.len = cpu_to_le16(sizeof(timeout->value)); mwifiex_cmd_tdls_oper()
1661 timeout->value = cpu_to_le16(MWIFIEX_TDLS_IDLE_TIMEOUT_IN_SEC); mwifiex_cmd_tdls_oper()
1682 cmd->command = cpu_to_le16(HostCmd_CMD_SDIO_SP_RX_AGGR_CFG); mwifiex_cmd_sdio_rx_aggr_cfg()
1684 cpu_to_le16(sizeof(struct host_cmd_sdio_sp_rx_aggr_cfg) + mwifiex_cmd_sdio_rx_aggr_cfg()
1786 cpu_to_le16(HostCmd_CMD_802_11_TX_RATE_QUERY); mwifiex_sta_prepare_cmd()
1788 cpu_to_le16(sizeof(struct host_cmd_ds_tx_rate_query) + mwifiex_sta_prepare_cmd()
1794 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_sta_prepare_cmd()
1800 cpu_to_le16(sizeof(struct host_cmd_ds_version_ext) + mwifiex_sta_prepare_cmd()
1805 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_sta_prepare_cmd()
1806 cmd_ptr->params.reg_mask.action = cpu_to_le16(cmd_action); mwifiex_sta_prepare_cmd()
1809 cpu_to_le16(sizeof(struct host_cmd_ds_mgmt_frame_reg) + mwifiex_sta_prepare_cmd()
1814 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_sta_prepare_cmd()
1818 cpu_to_le16(sizeof(struct host_cmd_ds_remain_on_chan) + mwifiex_sta_prepare_cmd()
1825 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_sta_prepare_cmd()
1826 cmd_ptr->params.mode_cfg.action = cpu_to_le16(cmd_action); mwifiex_sta_prepare_cmd()
1827 cmd_ptr->params.mode_cfg.mode = cpu_to_le16(*(u16 *)data_buf); mwifiex_sta_prepare_cmd()
1829 cpu_to_le16(sizeof(struct host_cmd_ds_p2p_mode_cfg) + mwifiex_sta_prepare_cmd()
1835 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_sta_prepare_cmd()
1836 cmd_ptr->size = cpu_to_le16(S_DS_GEN); mwifiex_sta_prepare_cmd()
1840 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_sta_prepare_cmd()
1841 cmd_ptr->size = cpu_to_le16(S_DS_GEN); mwifiex_sta_prepare_cmd()
1875 cmd_ptr->command = cpu_to_le16(HostCmd_CMD_WMM_GET_STATUS); mwifiex_sta_prepare_cmd()
1877 cpu_to_le16(sizeof(struct host_cmd_ds_wmm_get_status) + mwifiex_sta_prepare_cmd()
1897 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_sta_prepare_cmd()
1906 cmd_ptr->size = cpu_to_le16(sizeof(struct mwifiex_sta_prepare_cmd()
H A Duap_cmd.c196 bss_cfg->ht_cap.cap_info = cpu_to_le16(MWIFIEX_DEF_HT_CAP); mwifiex_set_ht_params()
318 tlv_akmp->header.type = cpu_to_le16(TLV_TYPE_UAP_AKMP); mwifiex_uap_bss_wpa()
319 tlv_akmp->header.len = cpu_to_le16(sizeof(struct host_cmd_tlv_akmp) - mwifiex_uap_bss_wpa()
321 tlv_akmp->key_mgmt_operation = cpu_to_le16(bss_cfg->key_mgmt_operation); mwifiex_uap_bss_wpa()
322 tlv_akmp->key_mgmt = cpu_to_le16(bss_cfg->key_mgmt); mwifiex_uap_bss_wpa()
328 pwk_cipher->header.type = cpu_to_le16(TLV_TYPE_PWK_CIPHER); mwifiex_uap_bss_wpa()
330 cpu_to_le16(sizeof(struct host_cmd_tlv_pwk_cipher) - mwifiex_uap_bss_wpa()
332 pwk_cipher->proto = cpu_to_le16(PROTOCOL_WPA); mwifiex_uap_bss_wpa()
340 pwk_cipher->header.type = cpu_to_le16(TLV_TYPE_PWK_CIPHER); mwifiex_uap_bss_wpa()
342 cpu_to_le16(sizeof(struct host_cmd_tlv_pwk_cipher) - mwifiex_uap_bss_wpa()
344 pwk_cipher->proto = cpu_to_le16(PROTOCOL_WPA2); mwifiex_uap_bss_wpa()
352 gwk_cipher->header.type = cpu_to_le16(TLV_TYPE_GWK_CIPHER); mwifiex_uap_bss_wpa()
354 cpu_to_le16(sizeof(struct host_cmd_tlv_gwk_cipher) - mwifiex_uap_bss_wpa()
364 cpu_to_le16(TLV_TYPE_UAP_WPA_PASSPHRASE); mwifiex_uap_bss_wpa()
365 passphrase->header.len = cpu_to_le16(bss_cfg->wpa_cfg.length); mwifiex_uap_bss_wpa()
431 cpu_to_le16(TLV_TYPE_UAP_WEP_KEY); mwifiex_uap_bss_wep()
433 cpu_to_le16(bss_cfg->wep_cfg[i].length + 2); mwifiex_uap_bss_wep()
477 ssid->header.type = cpu_to_le16(TLV_TYPE_UAP_SSID); mwifiex_uap_bss_param_prepare()
478 ssid->header.len = cpu_to_le16((u16)bss_cfg->ssid.ssid_len); mwifiex_uap_bss_param_prepare()
486 bcast_ssid->header.type = cpu_to_le16(TLV_TYPE_UAP_BCAST_SSID); mwifiex_uap_bss_param_prepare()
488 cpu_to_le16(sizeof(bcast_ssid->bcast_ctl)); mwifiex_uap_bss_param_prepare()
495 tlv_rates->header.type = cpu_to_le16(TLV_TYPE_UAP_RATES); mwifiex_uap_bss_param_prepare()
501 tlv_rates->header.len = cpu_to_le16(i); mwifiex_uap_bss_param_prepare()
511 chan_band->header.type = cpu_to_le16(TLV_TYPE_CHANNELBANDLIST); mwifiex_uap_bss_param_prepare()
513 cpu_to_le16(sizeof(struct host_cmd_tlv_channel_band) - mwifiex_uap_bss_param_prepare()
524 cpu_to_le16(TLV_TYPE_UAP_BEACON_PERIOD); mwifiex_uap_bss_param_prepare()
526 cpu_to_le16(sizeof(struct host_cmd_tlv_beacon_period) - mwifiex_uap_bss_param_prepare()
528 beacon_period->period = cpu_to_le16(bss_cfg->beacon_period); mwifiex_uap_bss_param_prepare()
536 cpu_to_le16(TLV_TYPE_UAP_DTIM_PERIOD); mwifiex_uap_bss_param_prepare()
538 cpu_to_le16(sizeof(struct host_cmd_tlv_dtim_period) - mwifiex_uap_bss_param_prepare()
547 cpu_to_le16(TLV_TYPE_UAP_RTS_THRESHOLD); mwifiex_uap_bss_param_prepare()
549 cpu_to_le16(sizeof(struct host_cmd_tlv_rts_threshold) - mwifiex_uap_bss_param_prepare()
551 rts_threshold->rts_thr = cpu_to_le16(bss_cfg->rts_threshold); mwifiex_uap_bss_param_prepare()
559 cpu_to_le16(TLV_TYPE_UAP_FRAG_THRESHOLD); mwifiex_uap_bss_param_prepare()
561 cpu_to_le16(sizeof(struct host_cmd_tlv_frag_threshold) - mwifiex_uap_bss_param_prepare()
563 frag_threshold->frag_thr = cpu_to_le16(bss_cfg->frag_threshold); mwifiex_uap_bss_param_prepare()
570 cpu_to_le16(TLV_TYPE_UAP_RETRY_LIMIT); mwifiex_uap_bss_param_prepare()
572 cpu_to_le16(sizeof(struct host_cmd_tlv_retry_limit) - mwifiex_uap_bss_param_prepare()
588 auth_type->header.type = cpu_to_le16(TLV_TYPE_AUTH_TYPE); mwifiex_uap_bss_param_prepare()
590 cpu_to_le16(sizeof(struct host_cmd_tlv_auth_type) - mwifiex_uap_bss_param_prepare()
599 cpu_to_le16(TLV_TYPE_UAP_ENCRY_PROTOCOL); mwifiex_uap_bss_param_prepare()
601 cpu_to_le16(sizeof(struct host_cmd_tlv_encrypt_protocol) mwifiex_uap_bss_param_prepare()
603 encrypt_protocol->proto = cpu_to_le16(bss_cfg->protocol); mwifiex_uap_bss_param_prepare()
610 htcap->header.type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); mwifiex_uap_bss_param_prepare()
612 cpu_to_le16(sizeof(struct ieee80211_ht_cap)); mwifiex_uap_bss_param_prepare()
629 wmm_cap->header.type = cpu_to_le16(WLAN_EID_VENDOR_SPECIFIC); mwifiex_uap_bss_param_prepare()
630 wmm_cap->header.len = cpu_to_le16(sizeof(wmm_cap->wmm_info)); mwifiex_uap_bss_param_prepare()
639 ao_timer->header.type = cpu_to_le16(TLV_TYPE_UAP_AO_TIMER); mwifiex_uap_bss_param_prepare()
640 ao_timer->header.len = cpu_to_le16(sizeof(*ao_timer) - mwifiex_uap_bss_param_prepare()
650 cpu_to_le16(TLV_TYPE_UAP_PS_AO_TIMER); mwifiex_uap_bss_param_prepare()
651 ps_ao_timer->header.len = cpu_to_le16(sizeof(*ps_ao_timer) - mwifiex_uap_bss_param_prepare()
676 tlv_ie->type = cpu_to_le16(TLV_TYPE_MGMT_IE); mwifiex_uap_custom_ie_prepare()
696 cmd->command = cpu_to_le16(HostCmd_CMD_UAP_SYS_CONFIG); mwifiex_cmd_uap_sys_config()
699 sys_cfg->action = cpu_to_le16(cmd_action); mwifiex_cmd_uap_sys_config()
707 cmd->size = cpu_to_le16(param_size); mwifiex_cmd_uap_sys_config()
713 cmd->size = cpu_to_le16(ie_size); mwifiex_cmd_uap_sys_config()
730 cmd->command = cpu_to_le16(HostCmd_CMD_UAP_STA_DEAUTH); mwifiex_cmd_uap_sta_deauth()
732 sta_deauth->reason = cpu_to_le16(WLAN_REASON_DEAUTH_LEAVING); mwifiex_cmd_uap_sta_deauth()
734 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_sta_deauth) + mwifiex_cmd_uap_sta_deauth()
757 cmd->command = cpu_to_le16(cmd_no); mwifiex_uap_prepare_cmd()
758 cmd->size = cpu_to_le16(S_DS_GEN); mwifiex_uap_prepare_cmd()
H A Die.c114 priv->mgmt_ie[index].ie_index = cpu_to_le16(index); mwifiex_update_autoindex_ies()
116 cpu_to_le16(mask); mwifiex_update_autoindex_ies()
118 ie->ie_index = cpu_to_le16(index); mwifiex_update_autoindex_ies()
167 ap_custom_ie->type = cpu_to_le16(TLV_TYPE_MGMT_IE); mwifiex_update_uap_custom_ie()
246 ie->mgmt_subtype_mask = cpu_to_le16(mask); mwifiex_update_vs_ie()
247 ie->ie_index = cpu_to_le16(MWIFIEX_AUTO_IDX_MASK); mwifiex_update_vs_ie()
335 gen_ie->ie_index = cpu_to_le16(gen_idx); mwifiex_uap_set_head_tail_ies()
336 gen_ie->mgmt_subtype_mask = cpu_to_le16(MGMT_MASK_BEACON | mwifiex_uap_set_head_tail_ies()
346 gen_ie->ie_length = cpu_to_le16(ie_len); mwifiex_uap_set_head_tail_ies()
358 gen_ie->ie_length = cpu_to_le16(ie_len); mwifiex_uap_set_head_tail_ies()
367 gen_ie->ie_length = cpu_to_le16(ie_len); mwifiex_uap_set_head_tail_ies()
411 gen_ie->ie_index = cpu_to_le16(priv->gen_idx); mwifiex_del_mgmt_ies()
412 gen_ie->mgmt_subtype_mask = cpu_to_le16(MWIFIEX_DELETE_MASK); mwifiex_del_mgmt_ies()
430 beacon_ie->ie_index = cpu_to_le16(priv->beacon_idx); mwifiex_del_mgmt_ies()
431 beacon_ie->mgmt_subtype_mask = cpu_to_le16(MWIFIEX_DELETE_MASK); mwifiex_del_mgmt_ies()
440 pr_ie->ie_index = cpu_to_le16(priv->proberesp_idx); mwifiex_del_mgmt_ies()
441 pr_ie->mgmt_subtype_mask = cpu_to_le16(MWIFIEX_DELETE_MASK); mwifiex_del_mgmt_ies()
450 ar_ie->ie_index = cpu_to_le16(priv->assocresp_idx); mwifiex_del_mgmt_ies()
451 ar_ie->mgmt_subtype_mask = cpu_to_le16(MWIFIEX_DELETE_MASK); mwifiex_del_mgmt_ies()
H A D11ac.c139 vht_cap->supp_mcs.rx_mcs_map = cpu_to_le16(mcs_map_result); mwifiex_fill_vht_cap_tlv()
142 vht_cap->supp_mcs.rx_highest = cpu_to_le16(tmp); mwifiex_fill_vht_cap_tlv()
161 vht_cap->supp_mcs.tx_mcs_map = cpu_to_le16(mcs_map_result); mwifiex_fill_vht_cap_tlv()
164 vht_cap->supp_mcs.tx_highest = cpu_to_le16(tmp); mwifiex_fill_vht_cap_tlv()
191 vht_cap->header.type = cpu_to_le16(WLAN_EID_VHT_CAPABILITY); mwifiex_cmd_append_11ac_tlv()
193 cpu_to_le16(sizeof(struct ieee80211_vht_cap)); mwifiex_cmd_append_11ac_tlv()
210 cpu_to_le16(WLAN_EID_VHT_OPERATION); mwifiex_cmd_append_11ac_tlv()
211 vht_op->header.len = cpu_to_le16(sizeof(*vht_op) - mwifiex_cmd_append_11ac_tlv()
255 oper_ntf->header.type = cpu_to_le16(WLAN_EID_OPMODE_NOTIF); mwifiex_cmd_append_11ac_tlv()
256 oper_ntf->header.len = cpu_to_le16(sizeof(u8)); mwifiex_cmd_append_11ac_tlv()
271 cmd->command = cpu_to_le16(HostCmd_CMD_11AC_CFG); mwifiex_cmd_11ac_cfg()
272 cmd->size = cpu_to_le16(sizeof(struct host_cmd_11ac_vht_cfg) + mwifiex_cmd_11ac_cfg()
274 vhtcfg->action = cpu_to_le16(cmd_action); mwifiex_cmd_11ac_cfg()
H A D11n.c69 ht_cap->cap_info = cpu_to_le16(sband->ht_cap.cap); mwifiex_fill_cap_info()
70 ht_cap->extended_ht_cap_info = cpu_to_le16(ht_ext_cap); mwifiex_fill_cap_info()
165 add_ba_rsp->ssn = cpu_to_le16((le16_to_cpu(add_ba_rsp->ssn)) mwifiex_ret_11n_addba_req()
221 cmd->command = cpu_to_le16(HostCmd_CMD_RECONFIGURE_TX_BUFF); mwifiex_cmd_recfg_tx_buf()
223 cpu_to_le16(sizeof(struct host_cmd_ds_txbuf_cfg) + S_DS_GEN); mwifiex_cmd_recfg_tx_buf()
224 tx_buf->action = cpu_to_le16(action); mwifiex_cmd_recfg_tx_buf()
228 tx_buf->buff_size = cpu_to_le16(*buf_size); mwifiex_cmd_recfg_tx_buf()
254 cmd->command = cpu_to_le16(HostCmd_CMD_AMSDU_AGGR_CTRL); mwifiex_cmd_amsdu_aggr_ctrl()
255 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_amsdu_aggr_ctrl) mwifiex_cmd_amsdu_aggr_ctrl()
257 amsdu_ctrl->action = cpu_to_le16(action); mwifiex_cmd_amsdu_aggr_ctrl()
260 amsdu_ctrl->enable = cpu_to_le16(aa_ctrl->enable); mwifiex_cmd_amsdu_aggr_ctrl()
285 cmd->command = cpu_to_le16(HostCmd_CMD_11N_CFG); mwifiex_cmd_11n_cfg()
286 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_11n_cfg) + S_DS_GEN); mwifiex_cmd_11n_cfg()
287 htcfg->action = cpu_to_le16(cmd_action); mwifiex_cmd_11n_cfg()
288 htcfg->ht_tx_cap = cpu_to_le16(txcfg->tx_htcap); mwifiex_cmd_11n_cfg()
289 htcfg->ht_tx_info = cpu_to_le16(txcfg->tx_htinfo); mwifiex_cmd_11n_cfg()
292 htcfg->misc_config = cpu_to_le16(txcfg->misc_config); mwifiex_cmd_11n_cfg()
333 ht_cap->header.type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); mwifiex_cmd_append_11n_tlv()
335 cpu_to_le16(sizeof(struct ieee80211_ht_cap)); mwifiex_cmd_append_11n_tlv()
352 cpu_to_le16(WLAN_EID_HT_OPERATION); mwifiex_cmd_append_11n_tlv()
354 cpu_to_le16( mwifiex_cmd_append_11n_tlv()
376 chan_list->header.type = cpu_to_le16(TLV_TYPE_CHANLIST); mwifiex_cmd_append_11n_tlv()
377 chan_list->header.len = cpu_to_le16( mwifiex_cmd_append_11n_tlv()
401 bss_co_2040->header.type = cpu_to_le16(WLAN_EID_BSS_COEX_2040); mwifiex_cmd_append_11n_tlv()
403 cpu_to_le16(sizeof(bss_co_2040->bss_co_2040)); mwifiex_cmd_append_11n_tlv()
419 ext_cap->header.type = cpu_to_le16(WLAN_EID_EXT_CAPABILITY); mwifiex_cmd_append_11n_tlv()
420 ext_cap->header.len = cpu_to_le16(hdr->len); mwifiex_cmd_append_11n_tlv()
597 add_ba_req.block_ack_param_set = cpu_to_le16(block_ack_param_set); mwifiex_send_addba()
598 add_ba_req.block_ack_tmo = cpu_to_le16((u16)priv->add_ba_param.timeout); mwifiex_send_addba()
626 delba.del_ba_param_set = cpu_to_le16(tid << DELBA_TID_POS); mwifiex_send_delba()
H A Djoin.c61 ie_header.type = cpu_to_le16(TLV_TYPE_PASSTHROUGH); mwifiex_cmd_append_generic_ie()
62 ie_header.len = cpu_to_le16(priv->gen_ie_buf_len); mwifiex_cmd_append_generic_ie()
115 tsf_tlv.header.type = cpu_to_le16(TLV_TYPE_TSFTIMESTAMP); mwifiex_cmd_append_tsf_tlv()
116 tsf_tlv.header.len = cpu_to_le16(2 * sizeof(tsf_val)); mwifiex_cmd_append_tsf_tlv()
253 ie_header.type = cpu_to_le16(TLV_TYPE_MGMT_IE); mwifiex_cmd_append_wps_ie()
254 ie_header.len = cpu_to_le16(priv->wps_ie_len); mwifiex_cmd_append_wps_ie()
299 ie_header.type = cpu_to_le16(TLV_TYPE_WAPI_IE); mwifiex_cmd_append_wapi_ie()
300 ie_header.len = cpu_to_le16(priv->wapi_ie_len); mwifiex_cmd_append_wapi_ie()
336 rsn_ie_tlv->header.type = cpu_to_le16((u16) priv->wpa_ie[0]); mwifiex_append_rsn_ie_wpa_wpa2()
337 rsn_ie_tlv->header.type = cpu_to_le16( mwifiex_append_rsn_ie_wpa_wpa2()
339 rsn_ie_tlv->header.len = cpu_to_le16((u16) priv->wpa_ie[1]); mwifiex_append_rsn_ie_wpa_wpa2()
340 rsn_ie_tlv->header.len = cpu_to_le16(le16_to_cpu(rsn_ie_tlv->header.len) mwifiex_append_rsn_ie_wpa_wpa2()
402 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_ASSOCIATE); mwifiex_cmd_802_11_associate()
412 assoc->listen_interval = cpu_to_le16(priv->listen_interval); mwifiex_cmd_802_11_associate()
414 assoc->beacon_period = cpu_to_le16(bss_desc->beacon_period); mwifiex_cmd_802_11_associate()
422 ssid_tlv->header.type = cpu_to_le16(WLAN_EID_SSID); mwifiex_cmd_802_11_associate()
423 ssid_tlv->header.len = cpu_to_le16((u16) bss_desc->ssid.ssid_len); mwifiex_cmd_802_11_associate()
429 phy_tlv->header.type = cpu_to_le16(WLAN_EID_DS_PARAMS); mwifiex_cmd_802_11_associate()
430 phy_tlv->header.len = cpu_to_le16(sizeof(phy_tlv->fh_ds.ds_param_set)); mwifiex_cmd_802_11_associate()
437 ss_tlv->header.type = cpu_to_le16(WLAN_EID_CF_PARAMS); mwifiex_cmd_802_11_associate()
438 ss_tlv->header.len = cpu_to_le16(sizeof(ss_tlv->cf_ibss.cf_param_set)); mwifiex_cmd_802_11_associate()
452 rates_tlv->header.type = cpu_to_le16(WLAN_EID_SUPP_RATES); mwifiex_cmd_802_11_associate()
453 rates_tlv->header.len = cpu_to_le16((u16) rates_size); mwifiex_cmd_802_11_associate()
461 auth_tlv->header.type = cpu_to_le16(TLV_TYPE_AUTH_TYPE); mwifiex_cmd_802_11_associate()
462 auth_tlv->header.len = cpu_to_le16(sizeof(auth_tlv->auth_type)); mwifiex_cmd_802_11_associate()
464 auth_tlv->auth_type = cpu_to_le16( mwifiex_cmd_802_11_associate()
467 auth_tlv->auth_type = cpu_to_le16(NL80211_AUTHTYPE_OPEN_SYSTEM); mwifiex_cmd_802_11_associate()
482 chan_tlv->header.type = cpu_to_le16(TLV_TYPE_CHANLIST); mwifiex_cmd_802_11_associate()
484 cpu_to_le16(sizeof(struct mwifiex_chan_scan_param_set)); mwifiex_cmd_802_11_associate()
538 cmd->size = cpu_to_le16((u16) (pos - (u8 *) assoc) + S_DS_GEN); mwifiex_cmd_802_11_associate()
549 assoc->cap_info_bitmap = cpu_to_le16(tmp_cap); mwifiex_cmd_802_11_associate()
799 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_AD_HOC_START); mwifiex_cmd_802_11_ad_hoc_start()
829 adhoc_start->beacon_period = cpu_to_le16(priv->beacon_period); mwifiex_cmd_802_11_ad_hoc_start()
877 = cpu_to_le16(priv->atim_window); mwifiex_cmd_802_11_ad_hoc_start()
929 chan_tlv->header.type = cpu_to_le16(TLV_TYPE_CHANLIST); mwifiex_cmd_802_11_ad_hoc_start()
931 cpu_to_le16(sizeof(struct mwifiex_chan_scan_param_set)); mwifiex_cmd_802_11_ad_hoc_start()
978 ht_cap->header.type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); mwifiex_cmd_802_11_ad_hoc_start()
980 cpu_to_le16(sizeof(struct ieee80211_ht_cap)); mwifiex_cmd_802_11_ad_hoc_start()
992 ht_cap->ht_cap.cap_info = cpu_to_le16(tmp_ht_cap); mwifiex_cmd_802_11_ad_hoc_start()
1001 ht_info->header.type = cpu_to_le16(WLAN_EID_HT_OPERATION); mwifiex_cmd_802_11_ad_hoc_start()
1003 cpu_to_le16(sizeof(struct ieee80211_ht_operation)); mwifiex_cmd_802_11_ad_hoc_start()
1013 cpu_to_le16(IEEE80211_HT_OP_MODE_NON_GF_STA_PRSNT); mwifiex_cmd_802_11_ad_hoc_start()
1021 cpu_to_le16((u16)(sizeof(struct host_cmd_ds_802_11_ad_hoc_start) mwifiex_cmd_802_11_ad_hoc_start()
1029 adhoc_start->cap_info_bitmap = cpu_to_le16(tmp_cap); mwifiex_cmd_802_11_ad_hoc_start()
1085 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_AD_HOC_JOIN); mwifiex_cmd_802_11_ad_hoc_join()
1090 = cpu_to_le16(bss_desc->beacon_period); mwifiex_cmd_802_11_ad_hoc_join()
1144 chan_tlv->header.type = cpu_to_le16(TLV_TYPE_CHANLIST); mwifiex_cmd_802_11_ad_hoc_join()
1146 cpu_to_le16(sizeof(struct mwifiex_chan_scan_param_set)); mwifiex_cmd_802_11_ad_hoc_join()
1180 cmd->size = cpu_to_le16 mwifiex_cmd_802_11_ad_hoc_join()
1184 adhoc_join->bss_descriptor.cap_info_bitmap = cpu_to_le16(tmp_cap); mwifiex_cmd_802_11_ad_hoc_join()
H A D11h.c55 cap->header.type = cpu_to_le16(WLAN_EID_PWR_CAPABILITY); mwifiex_11h_process_infra_join()
56 cap->header.len = cpu_to_le16(2); mwifiex_11h_process_infra_join()
62 constraint->header.type = cpu_to_le16(WLAN_EID_PWR_CONSTRAINT); mwifiex_11h_process_infra_join()
63 constraint->header.len = cpu_to_le16(2); mwifiex_11h_process_infra_join()
69 ie_header->type = cpu_to_le16(TLV_TYPE_PASSTHROUGH); mwifiex_11h_process_infra_join()
70 ie_header->len = cpu_to_le16(2 * sband->n_channels + 2); mwifiex_11h_process_infra_join()
155 cmd->command = cpu_to_le16(HostCmd_CMD_CHAN_REPORT_REQUEST); mwifiex_cmd_issue_chan_report_request()
156 cmd->size = cpu_to_le16(S_DS_GEN); mwifiex_cmd_issue_chan_report_request()
159 cr_req->chan_desc.start_freq = cpu_to_le16(MWIFIEX_A_BAND_START_FREQ); mwifiex_cmd_issue_chan_report_request()
H A Dcmdevt.c176 host_cmd->seq_num = cpu_to_le16(HostCmd_SET_SEQ_NO_BSS_INFO mwifiex_dnld_cmd_to_fw()
279 cpu_to_le16((HostCmd_SET_SEQ_NO_BSS_INFO mwifiex_dnld_sleep_confirm_cmd()
547 cmd_ptr->command = cpu_to_le16(cmd_no); mwifiex_send_cmd()
743 cpu_to_le16(HostCmd_CMD_802_11_HS_CFG_ENH))) { mwifiex_exec_next_cmd()
814 resp->command = cpu_to_le16(orig_cmdresp_no & HostCmd_CMD_ID_MASK); mwifiex_process_cmdresp()
1154 if (phs_cfg->action == cpu_to_le16(HS_ACTIVATE) && mwifiex_ret_802_11_hs_cfg()
1254 cmd->command = cpu_to_le16(command); mwifiex_process_sleep_confirm_resp()
1255 cmd->seq_num = cpu_to_le16(seq_num); mwifiex_process_sleep_confirm_resp()
1281 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_PS_MODE_ENH); mwifiex_cmd_enh_power_mode()
1283 psmode_enh->action = cpu_to_le16(DIS_AUTO_PS); mwifiex_cmd_enh_power_mode()
1284 psmode_enh->params.ps_bitmap = cpu_to_le16(ps_bitmap); mwifiex_cmd_enh_power_mode()
1285 cmd->size = cpu_to_le16(S_DS_GEN + sizeof(psmode_enh->action) + mwifiex_cmd_enh_power_mode()
1288 psmode_enh->action = cpu_to_le16(GET_PS); mwifiex_cmd_enh_power_mode()
1289 psmode_enh->params.ps_bitmap = cpu_to_le16(ps_bitmap); mwifiex_cmd_enh_power_mode()
1290 cmd->size = cpu_to_le16(S_DS_GEN + sizeof(psmode_enh->action) + mwifiex_cmd_enh_power_mode()
1293 psmode_enh->action = cpu_to_le16(EN_AUTO_PS); mwifiex_cmd_enh_power_mode()
1294 psmode_enh->params.ps_bitmap = cpu_to_le16(ps_bitmap); mwifiex_cmd_enh_power_mode()
1303 ps_tlv->header.type = cpu_to_le16(TLV_TYPE_PS_PARAM); mwifiex_cmd_enh_power_mode()
1304 ps_tlv->header.len = cpu_to_le16(sizeof(*ps_tlv) - mwifiex_cmd_enh_power_mode()
1310 cpu_to_le16(adapter->null_pkt_interval); mwifiex_cmd_enh_power_mode()
1312 cpu_to_le16(adapter->multiple_dtim); mwifiex_cmd_enh_power_mode()
1314 cpu_to_le16(adapter->bcn_miss_time_out); mwifiex_cmd_enh_power_mode()
1316 cpu_to_le16(adapter->local_listen_interval); mwifiex_cmd_enh_power_mode()
1318 cpu_to_le16(adapter->adhoc_awake_period); mwifiex_cmd_enh_power_mode()
1320 cpu_to_le16(adapter->delay_to_ps); mwifiex_cmd_enh_power_mode()
1321 ps_mode->mode = cpu_to_le16(adapter->enhanced_ps_mode); mwifiex_cmd_enh_power_mode()
1330 cpu_to_le16(TLV_TYPE_AUTO_DS_PARAM); mwifiex_cmd_enh_power_mode()
1332 cpu_to_le16(sizeof(*auto_ds_tlv) - mwifiex_cmd_enh_power_mode()
1340 auto_ds_tlv->deep_sleep_timeout = cpu_to_le16(idletime); mwifiex_cmd_enh_power_mode()
1342 cmd->size = cpu_to_le16(cmd_size); mwifiex_cmd_enh_power_mode()
1425 cmd->command = cpu_to_le16(HostCmd_CMD_GET_HW_SPEC); mwifiex_cmd_get_hw_spec()
1427 cpu_to_le16(sizeof(struct host_cmd_ds_get_hw_spec) + S_DS_GEN); mwifiex_cmd_get_hw_spec()
H A D11n_rxreorder.c433 cmd->command = cpu_to_le16(HostCmd_CMD_11N_ADDBA_REQ); mwifiex_cmd_11n_addba_req()
434 cmd->size = cpu_to_le16(sizeof(*add_ba_req) + S_DS_GEN); mwifiex_cmd_11n_addba_req()
480 cmd->command = cpu_to_le16(HostCmd_CMD_11N_ADDBA_RSP); mwifiex_cmd_11n_addba_rsp_gen()
481 cmd->size = cpu_to_le16(sizeof(*add_ba_rsp) + S_DS_GEN); mwifiex_cmd_11n_addba_rsp_gen()
492 add_ba_rsp->status_code = cpu_to_le16(ADDBA_RSP_STATUS_ACCEPT); mwifiex_cmd_11n_addba_rsp_gen()
500 add_ba_rsp->block_ack_param_set = cpu_to_le16(block_ack_param_set); mwifiex_cmd_11n_addba_rsp_gen()
504 cmd_addba_req->block_ack_param_set = cpu_to_le16(block_ack_param_set); mwifiex_cmd_11n_addba_rsp_gen()
524 cmd->command = cpu_to_le16(HostCmd_CMD_11N_DELBA); mwifiex_cmd_11n_delba()
525 cmd->size = cpu_to_le16(sizeof(*del_ba) + S_DS_GEN); mwifiex_cmd_11n_delba()
769 cpu_to_le16((u16) event->tid << DELBA_TID_POS); mwifiex_11n_ba_stream_timeout()
770 delba.del_ba_param_set |= cpu_to_le16( mwifiex_11n_ba_stream_timeout()
772 delba.reason_code = cpu_to_le16(WLAN_REASON_QSTA_TIMEOUT); mwifiex_11n_ba_stream_timeout()
H A Dscan.c513 cpu_to_le16((u16) user_scan_in-> mwifiex_scan_create_channel_list()
517 cpu_to_le16(adapter->passive_scan_time); mwifiex_scan_create_channel_list()
520 cpu_to_le16(adapter->active_scan_time); mwifiex_scan_create_channel_list()
532 cpu_to_le16(adapter->specific_scan_time); mwifiex_scan_create_channel_list()
566 rates_tlv->header.type = cpu_to_le16(WLAN_EID_SUPP_RATES); mwifiex_append_rate_tlv()
567 rates_tlv->header.len = cpu_to_le16((u16) rates_size); mwifiex_append_rate_tlv()
612 chan_tlv_out->header.type = cpu_to_le16(TLV_TYPE_CHANLIST); mwifiex_scan_channel_list()
871 bssid_tlv->header.type = cpu_to_le16(TLV_TYPE_BSSID); mwifiex_config_scan()
872 bssid_tlv->header.len = cpu_to_le16(ETH_ALEN); mwifiex_config_scan()
885 cpu_to_le16(TLV_TYPE_WILDCARDSSID); mwifiex_config_scan()
886 wildcard_ssid_tlv->header.len = cpu_to_le16( mwifiex_config_scan()
938 cpu_to_le16(TLV_TYPE_SCAN_CHANNEL_GAP); mwifiex_config_scan()
940 cpu_to_le16(sizeof(chan_gap_tlv->chan_gap)); mwifiex_config_scan()
942 cpu_to_le16((user_scan_in->scan_chan_gap)); mwifiex_config_scan()
968 num_probes_tlv->header.type = cpu_to_le16(TLV_TYPE_NUMPROBES); mwifiex_config_scan()
970 cpu_to_le16(sizeof(num_probes_tlv->num_probes)); mwifiex_config_scan()
971 num_probes_tlv->num_probes = cpu_to_le16((u16) num_probes); mwifiex_config_scan()
983 ht_cap->header.type = cpu_to_le16(WLAN_EID_HT_CAPABILITY); mwifiex_config_scan()
985 cpu_to_le16(sizeof(struct ieee80211_ht_cap)); mwifiex_config_scan()
1049 cpu_to_le16(scan_dur); mwifiex_config_scan()
1051 cpu_to_le16(scan_dur); mwifiex_config_scan()
1526 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_SCAN); mwifiex_cmd_802_11_scan()
1529 cmd->size = cpu_to_le16((u16) (sizeof(scan_cmd->bss_mode) mwifiex_cmd_802_11_scan()
1977 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_SCAN_EXT); mwifiex_cmd_802_11_scan_ext()
1980 cmd->size = cpu_to_le16((u16)(sizeof(ext_scan->reserved) mwifiex_cmd_802_11_scan_ext()
2236 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_BG_SCAN_QUERY); mwifiex_cmd_802_11_bg_scan_query()
2237 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_bg_scan_query) mwifiex_cmd_802_11_bg_scan_query()
2356 cpu_to_le16(TLV_TYPE_PASSTHROUGH); mwifiex_cmd_append_vsie_tlv()
2358 cpu_to_le16((((u16) priv->vs_ie[id].ie[1]) mwifiex_cmd_append_vsie_tlv()
H A Dsta_tx.c73 local_tx_pd->tx_pkt_length = cpu_to_le16((u16)(skb->len - mwifiex_process_sta_txpd()
112 local_tx_pd->tx_pkt_type = cpu_to_le16(pkt_type); mwifiex_process_sta_txpd()
116 local_tx_pd->tx_pkt_offset = cpu_to_le16(pkt_offset); mwifiex_process_sta_txpd()
171 local_tx_pd->tx_pkt_offset = cpu_to_le16(sizeof(struct txpd)); mwifiex_send_null_packet()
H A D11n_aggr.c124 local_tx_pd->tx_pkt_offset = cpu_to_le16(sizeof(struct txpd) + mwifiex_11n_form_amsdu_txpd()
126 local_tx_pd->tx_pkt_type = cpu_to_le16(PKT_TYPE_AMSDU); mwifiex_11n_form_amsdu_txpd()
127 local_tx_pd->tx_pkt_length = cpu_to_le16(skb->len - mwifiex_11n_form_amsdu_txpd()
H A Dtdls.c323 vht_oper->basic_mcs_set = cpu_to_le16(mcs_map_result); mwifiex_tdls_add_vht_oper()
445 tf->u.setup_req.capability = cpu_to_le16(capab); mwifiex_prep_tdls_encap_data()
481 tf->u.setup_resp.status_code = cpu_to_le16(status_code); mwifiex_prep_tdls_encap_data()
483 tf->u.setup_resp.capability = cpu_to_le16(capab); mwifiex_prep_tdls_encap_data()
519 tf->u.setup_cfm.status_code = cpu_to_le16(status_code); mwifiex_prep_tdls_encap_data()
547 tf->u.teardown.reason_code = cpu_to_le16(status_code); mwifiex_prep_tdls_encap_data()
693 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | mwifiex_construct_tdls_action_frame()
708 cpu_to_le16(capab); mwifiex_construct_tdls_action_frame()
861 cap = cpu_to_le16(*(u16 *)pos); mwifiex_process_tdls_action_frame()
871 cap = cpu_to_le16(*(u16 *)pos); mwifiex_process_tdls_action_frame()
/linux-4.1.27/drivers/net/ethernet/3com/
H A Dtyphoon.h206 #define TYPHOON_TSO_FIRST cpu_to_le16(0x1000)
207 #define TYPHOON_TSO_LAST cpu_to_le16(0x2000)
225 #define TYPHOON_IPSEC_GEN_IV cpu_to_le16(0x0000)
226 #define TYPHOON_IPSEC_USE_IV cpu_to_le16(0x0001)
273 #define TYPHOON_RX_FILTER_MASK cpu_to_le16(0x7fff)
274 #define TYPHOON_RX_FILTERED cpu_to_le16(0x8000)
276 #define TYPHOON_RX_OUTER_AH_GOOD cpu_to_le16(0x0001)
277 #define TYPHOON_RX_OUTER_ESP_GOOD cpu_to_le16(0x0002)
278 #define TYPHOON_RX_INNER_AH_GOOD cpu_to_le16(0x0004)
279 #define TYPHOON_RX_INNER_ESP_GOOD cpu_to_le16(0x0008)
280 #define TYPHOON_RX_OUTER_AH_FAIL cpu_to_le16(0x0010)
281 #define TYPHOON_RX_OUTER_ESP_FAIL cpu_to_le16(0x0020)
282 #define TYPHOON_RX_INNER_AH_FAIL cpu_to_le16(0x0040)
283 #define TYPHOON_RX_INNER_ESP_FAIL cpu_to_le16(0x0080)
284 #define TYPHOON_RX_UNKNOWN_SA cpu_to_le16(0x0100)
285 #define TYPHOON_RX_ESP_FORMAT_ERR cpu_to_le16(0x0200)
321 #define TYPHOON_CMD_TX_ENABLE cpu_to_le16(0x0001)
322 #define TYPHOON_CMD_TX_DISABLE cpu_to_le16(0x0002)
323 #define TYPHOON_CMD_RX_ENABLE cpu_to_le16(0x0003)
324 #define TYPHOON_CMD_RX_DISABLE cpu_to_le16(0x0004)
325 #define TYPHOON_CMD_SET_RX_FILTER cpu_to_le16(0x0005)
326 #define TYPHOON_CMD_READ_STATS cpu_to_le16(0x0007)
327 #define TYPHOON_CMD_XCVR_SELECT cpu_to_le16(0x0013)
328 #define TYPHOON_CMD_SET_MAX_PKT_SIZE cpu_to_le16(0x001a)
329 #define TYPHOON_CMD_READ_MEDIA_STATUS cpu_to_le16(0x001b)
330 #define TYPHOON_CMD_GOTO_SLEEP cpu_to_le16(0x0023)
331 #define TYPHOON_CMD_SET_MULTICAST_HASH cpu_to_le16(0x0025)
332 #define TYPHOON_CMD_SET_MAC_ADDRESS cpu_to_le16(0x0026)
333 #define TYPHOON_CMD_READ_MAC_ADDRESS cpu_to_le16(0x0027)
334 #define TYPHOON_CMD_VLAN_TYPE_WRITE cpu_to_le16(0x002b)
335 #define TYPHOON_CMD_CREATE_SA cpu_to_le16(0x0034)
336 #define TYPHOON_CMD_DELETE_SA cpu_to_le16(0x0035)
337 #define TYPHOON_CMD_READ_VERSIONS cpu_to_le16(0x0043)
338 #define TYPHOON_CMD_IRQ_COALESCE_CTRL cpu_to_le16(0x0045)
339 #define TYPHOON_CMD_ENABLE_WAKE_EVENTS cpu_to_le16(0x0049)
340 #define TYPHOON_CMD_SET_OFFLOAD_TASKS cpu_to_le16(0x004f)
341 #define TYPHOON_CMD_HELLO_RESP cpu_to_le16(0x0057)
342 #define TYPHOON_CMD_HALT cpu_to_le16(0x005d)
343 #define TYPHOON_CMD_READ_IPSEC_INFO cpu_to_le16(0x005e)
344 #define TYPHOON_CMD_GET_IPSEC_ENABLE cpu_to_le16(0x0067)
345 #define TYPHOON_CMD_GET_CMD_LVL cpu_to_le16(0x0069)
383 #define TYPHOON_RX_FILTER_DIRECTED cpu_to_le16(0x0001)
384 #define TYPHOON_RX_FILTER_ALL_MCAST cpu_to_le16(0x0002)
385 #define TYPHOON_RX_FILTER_BROADCAST cpu_to_le16(0x0004)
386 #define TYPHOON_RX_FILTER_PROMISCOUS cpu_to_le16(0x0008)
387 #define TYPHOON_RX_FILTER_MCAST_HASH cpu_to_le16(0x0010)
434 #define TYPHOON_XCVR_10HALF cpu_to_le16(0x0000)
435 #define TYPHOON_XCVR_10FULL cpu_to_le16(0x0001)
436 #define TYPHOON_XCVR_100HALF cpu_to_le16(0x0002)
437 #define TYPHOON_XCVR_100FULL cpu_to_le16(0x0003)
438 #define TYPHOON_XCVR_AUTONEG cpu_to_le16(0x0004)
442 #define TYPHOON_MEDIA_STAT_CRC_STRIP_DISABLE cpu_to_le16(0x0004)
443 #define TYPHOON_MEDIA_STAT_COLLISION_DETECT cpu_to_le16(0x0010)
444 #define TYPHOON_MEDIA_STAT_CARRIER_SENSE cpu_to_le16(0x0020)
445 #define TYPHOON_MEDIA_STAT_POLARITY_REV cpu_to_le16(0x0400)
446 #define TYPHOON_MEDIA_STAT_NO_LINK cpu_to_le16(0x0800)
450 #define TYPHOON_MCAST_HASH_DISABLE cpu_to_le16(0x0000)
451 #define TYPHOON_MCAST_HASH_ENABLE cpu_to_le16(0x0001)
452 #define TYPHOON_MCAST_HASH_SET cpu_to_le16(0x0002)
462 #define TYPHOON_SA_MODE_NULL cpu_to_le16(0x0000)
463 #define TYPHOON_SA_MODE_AH cpu_to_le16(0x0001)
464 #define TYPHOON_SA_MODE_ESP cpu_to_le16(0x0002)
508 #define TYPHOON_WAKE_MAGIC_PKT cpu_to_le16(0x01)
509 #define TYPHOON_WAKE_LINK_EVENT cpu_to_le16(0x02)
510 #define TYPHOON_WAKE_ICMP_ECHO cpu_to_le16(0x04)
511 #define TYPHOON_WAKE_ARP cpu_to_le16(0x08)
/linux-4.1.27/drivers/usb/gadget/legacy/
H A Dwebcam.c80 .bcdUSB = cpu_to_le16(0x0200),
85 .idVendor = cpu_to_le16(WEBCAM_VENDOR_ID),
86 .idProduct = cpu_to_le16(WEBCAM_PRODUCT_ID),
87 .bcdDevice = cpu_to_le16(WEBCAM_DEVICE_BCD),
100 .bcdUVC = cpu_to_le16(0x0100),
112 .wTerminalType = cpu_to_le16(0x0201),
115 .wObjectiveFocalLengthMin = cpu_to_le16(0),
116 .wObjectiveFocalLengthMax = cpu_to_le16(0),
117 .wOcularFocalLength = cpu_to_le16(0),
130 .wMaxMultiplier = cpu_to_le16(16*1024),
142 .wTerminalType = cpu_to_le16(0x0101),
193 .wWidth = cpu_to_le16(640),
194 .wHeight = cpu_to_le16(360),
211 .wWidth = cpu_to_le16(1280),
212 .wHeight = cpu_to_le16(720),
244 .wWidth = cpu_to_le16(640),
245 .wHeight = cpu_to_le16(360),
262 .wWidth = cpu_to_le16(1280),
263 .wHeight = cpu_to_le16(720),
H A Dserial.c69 .bcdUSB = cpu_to_le16(0x0200),
74 .idVendor = cpu_to_le16(GS_VENDOR_ID),
76 .bcdDevice = cpu_to_le16(GS_VERSION_NUM),
252 cpu_to_le16(GS_CDC_PRODUCT_ID); init()
258 cpu_to_le16(GS_CDC_OBEX_PRODUCT_ID); init()
264 cpu_to_le16(GS_PRODUCT_ID); init()
H A Dether.c154 .bcdUSB = cpu_to_le16 (0x0200),
165 .idVendor = cpu_to_le16 (CDC_VENDOR_NUM),
166 .idProduct = cpu_to_le16 (CDC_PRODUCT_NUM),
342 device_desc.idVendor = cpu_to_le16(EEM_VENDOR_NUM); eth_bind()
343 device_desc.idProduct = cpu_to_le16(EEM_PRODUCT_NUM); eth_bind()
370 device_desc.idVendor = cpu_to_le16(SIMPLE_VENDOR_NUM); eth_bind()
371 device_desc.idProduct = cpu_to_le16(SIMPLE_PRODUCT_NUM); eth_bind()
404 device_desc.idVendor = cpu_to_le16(RNDIS_VENDOR_NUM); eth_bind()
405 device_desc.idProduct = cpu_to_le16(RNDIS_PRODUCT_NUM); eth_bind()
H A Dacm_ms.c43 .bcdUSB = cpu_to_le16(0x0200),
52 .idVendor = cpu_to_le16(ACM_MS_VENDOR_NUM),
53 .idProduct = cpu_to_le16(ACM_MS_PRODUCT_NUM),
H A Dcdc2.c46 .bcdUSB = cpu_to_le16(0x0200),
54 .idVendor = cpu_to_le16(CDC_VENDOR_NUM),
55 .idProduct = cpu_to_le16(CDC_PRODUCT_NUM),
H A Dhid.c51 .bcdUSB = cpu_to_le16(0x0200),
62 .idVendor = cpu_to_le16(HIDG_VENDOR_NUM),
63 .idProduct = cpu_to_le16(HIDG_PRODUCT_NUM),
H A Dmass_storage.c58 .bcdUSB = cpu_to_le16(0x0200),
62 .idVendor = cpu_to_le16(FSG_VENDOR_ID),
63 .idProduct = cpu_to_le16(FSG_PRODUCT_ID),
H A Dncm.c52 .bcdUSB = cpu_to_le16 (0x0200),
63 .idVendor = cpu_to_le16 (CDC_VENDOR_NUM),
64 .idProduct = cpu_to_le16 (CDC_PRODUCT_NUM),
H A Dprinter.c76 .bcdUSB = cpu_to_le16(0x0200),
80 .idVendor = cpu_to_le16(PRINTER_VENDOR_NUM),
81 .idProduct = cpu_to_le16(PRINTER_PRODUCT_NUM),
H A Dmulti.c70 .bcdUSB = cpu_to_le16(0x0200),
77 .idVendor = cpu_to_le16(MULTI_VENDOR_NUM),
78 .idProduct = cpu_to_le16(MULTI_PRODUCT_NUM),
/linux-4.1.27/net/bluetooth/
H A Dmgmt_util.c41 hdr->opcode = cpu_to_le16(event); mgmt_send_event()
43 hdr->index = cpu_to_le16(hdev->id); mgmt_send_event()
45 hdr->index = cpu_to_le16(MGMT_INDEX_NONE); mgmt_send_event()
46 hdr->len = cpu_to_le16(data_len); mgmt_send_event()
75 hdr->opcode = cpu_to_le16(MGMT_EV_CMD_STATUS); mgmt_cmd_status()
76 hdr->index = cpu_to_le16(index); mgmt_cmd_status()
77 hdr->len = cpu_to_le16(sizeof(*ev)); mgmt_cmd_status()
81 ev->opcode = cpu_to_le16(cmd); mgmt_cmd_status()
106 hdr->opcode = cpu_to_le16(MGMT_EV_CMD_COMPLETE); mgmt_cmd_complete()
107 hdr->index = cpu_to_le16(index); mgmt_cmd_complete()
108 hdr->len = cpu_to_le16(sizeof(*ev) + rp_len); mgmt_cmd_complete()
111 ev->opcode = cpu_to_le16(cmd); mgmt_cmd_complete()
H A Dhci_conn.c93 cpu_to_le16(0x8000); hci_acl_create_connection()
101 cp.pkt_type = cpu_to_le16(conn->pkt_type); hci_acl_create_connection()
148 clkoff_cp.handle = cpu_to_le16(conn->handle); hci_disconnect()
155 cp.handle = cpu_to_le16(conn->handle); hci_disconnect()
186 cp.handle = cpu_to_le16(handle); hci_add_sco()
187 cp.pkt_type = cpu_to_le16(conn->pkt_type); hci_add_sco()
205 cp.handle = cpu_to_le16(handle); hci_setup_sync()
209 cp.voice_setting = cpu_to_le16(conn->setting); hci_setup_sync()
262 cp.handle = cpu_to_le16(conn->handle); hci_le_conn_update()
263 cp.conn_interval_min = cpu_to_le16(min); hci_le_conn_update()
264 cp.conn_interval_max = cpu_to_le16(max); hci_le_conn_update()
265 cp.conn_latency = cpu_to_le16(latency); hci_le_conn_update()
266 cp.supervision_timeout = cpu_to_le16(to_multiplier); hci_le_conn_update()
267 cp.min_ce_len = cpu_to_le16(0x0000); hci_le_conn_update()
268 cp.max_ce_len = cpu_to_le16(0x0000); hci_le_conn_update()
288 cp.handle = cpu_to_le16(conn->handle); hci_le_start_enc()
381 cp.handle = cpu_to_le16(conn->handle); hci_conn_idle()
382 cp.max_latency = cpu_to_le16(0); hci_conn_idle()
383 cp.min_remote_timeout = cpu_to_le16(0); hci_conn_idle()
384 cp.min_local_timeout = cpu_to_le16(0); hci_conn_idle()
390 cp.handle = cpu_to_le16(conn->handle); hci_conn_idle()
391 cp.max_interval = cpu_to_le16(hdev->sniff_max_interval); hci_conn_idle()
392 cp.min_interval = cpu_to_le16(hdev->sniff_min_interval); hci_conn_idle()
393 cp.attempt = cpu_to_le16(4); hci_conn_idle()
394 cp.timeout = cpu_to_le16(1); hci_conn_idle()
673 cp.scan_interval = cpu_to_le16(hdev->le_scan_interval); hci_req_add_le_create_conn()
674 cp.scan_window = cpu_to_le16(hdev->le_scan_window); hci_req_add_le_create_conn()
678 cp.conn_interval_min = cpu_to_le16(conn->le_conn_min_interval); hci_req_add_le_create_conn()
679 cp.conn_interval_max = cpu_to_le16(conn->le_conn_max_interval); hci_req_add_le_create_conn()
680 cp.conn_latency = cpu_to_le16(conn->le_conn_latency); hci_req_add_le_create_conn()
681 cp.supervision_timeout = cpu_to_le16(conn->le_supv_timeout); hci_req_add_le_create_conn()
682 cp.min_ce_len = cpu_to_le16(0x0000); hci_req_add_le_create_conn()
683 cp.max_ce_len = cpu_to_le16(0x0000); hci_req_add_le_create_conn()
980 cp.handle = cpu_to_le16(conn->handle); hci_conn_auth()
1003 cp.handle = cpu_to_le16(conn->handle); hci_conn_encrypt()
1133 cp.handle = cpu_to_le16(conn->handle); hci_conn_enter_active_mode()
H A Damp.c231 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); amp_read_loc_assoc_frag()
232 cp.len_so_far = cpu_to_le16(loc_assoc->offset); amp_read_loc_assoc_frag()
244 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); amp_read_loc_assoc()
257 cp.len_so_far = cpu_to_le16(0); amp_read_loc_assoc_final_data()
258 cp.max_len = cpu_to_le16(hdev->amp_assoc_size); amp_read_loc_assoc_final_data()
301 cp->len_so_far = cpu_to_le16(ctrl->assoc_len_so_far); amp_write_rem_assoc_frag()
302 cp->rem_len = cpu_to_le16(ctrl->assoc_rem_len); amp_write_rem_assoc_frag()
433 cp.tx_flow_spec.msdu = cpu_to_le16(chan->local_msdu); amp_create_logical_link()
440 cp.rx_flow_spec.msdu = cpu_to_le16(chan->remote_msdu); amp_create_logical_link()
465 cp.log_handle = cpu_to_le16(hchan->handle); amp_disconnect_logical_link()
H A Dl2cap_core.c204 if (!__l2cap_global_chan_by_addr(cpu_to_le16(p), src)) { l2cap_add_psm()
205 chan->psm = cpu_to_le16(p); l2cap_add_psm()
206 chan->sport = cpu_to_le16(p); l2cap_add_psm()
679 rsp.dcid = cpu_to_le16(chan->scid); l2cap_chan_le_connect_reject()
680 rsp.mtu = cpu_to_le16(chan->imtu); l2cap_chan_le_connect_reject()
681 rsp.mps = cpu_to_le16(chan->mps); l2cap_chan_le_connect_reject()
682 rsp.credits = cpu_to_le16(chan->rx_credits); l2cap_chan_le_connect_reject()
683 rsp.result = cpu_to_le16(result); l2cap_chan_le_connect_reject()
702 rsp.scid = cpu_to_le16(chan->dcid); l2cap_chan_connect_reject()
703 rsp.dcid = cpu_to_le16(chan->scid); l2cap_chan_connect_reject()
704 rsp.result = cpu_to_le16(result); l2cap_chan_connect_reject()
705 rsp.status = cpu_to_le16(L2CAP_CS_NO_INFO); l2cap_chan_connect_reject()
768 if (chan->psm == cpu_to_le16(L2CAP_PSM_3DSP)) { l2cap_get_auth_type()
779 if (chan->psm == cpu_to_le16(L2CAP_PSM_SDP)) { l2cap_get_auth_type()
1041 lh->len = cpu_to_le16(hlen - L2CAP_HDR_SIZE); l2cap_create_sframe_pdu()
1042 lh->cid = cpu_to_le16(chan->dcid); l2cap_create_sframe_pdu()
1165 req.scid = cpu_to_le16(chan->scid); l2cap_send_conn_req()
1178 req.scid = cpu_to_le16(chan->scid); l2cap_send_create_chan_req()
1275 req.scid = cpu_to_le16(chan->scid); l2cap_le_connect()
1276 req.mtu = cpu_to_le16(chan->imtu); l2cap_le_connect()
1277 req.mps = cpu_to_le16(chan->mps); l2cap_le_connect()
1278 req.credits = cpu_to_le16(chan->rx_credits); l2cap_le_connect()
1321 req.type = cpu_to_le16(L2CAP_IT_FEAT_MASK); l2cap_request_info()
1389 req.dcid = cpu_to_le16(chan->dcid); l2cap_send_disconn_req()
1390 req.scid = cpu_to_le16(chan->scid); l2cap_send_disconn_req()
1435 rsp.scid = cpu_to_le16(chan->dcid); l2cap_conn_start()
1436 rsp.dcid = cpu_to_le16(chan->scid); l2cap_conn_start()
1440 rsp.result = cpu_to_le16(L2CAP_CR_PEND); l2cap_conn_start()
1441 rsp.status = cpu_to_le16(L2CAP_CS_AUTHOR_PEND); l2cap_conn_start()
1446 rsp.result = cpu_to_le16(L2CAP_CR_SUCCESS); l2cap_conn_start()
1447 rsp.status = cpu_to_le16(L2CAP_CS_NO_INFO); l2cap_conn_start()
1450 rsp.result = cpu_to_le16(L2CAP_CR_PEND); l2cap_conn_start()
1451 rsp.status = cpu_to_le16(L2CAP_CS_AUTHEN_PEND); l2cap_conn_start()
1498 req.min = cpu_to_le16(hcon->le_conn_min_interval); l2cap_le_conn_ready()
1499 req.max = cpu_to_le16(hcon->le_conn_max_interval); l2cap_le_conn_ready()
1500 req.latency = cpu_to_le16(hcon->le_conn_latency); l2cap_le_conn_ready()
1501 req.to_multiplier = cpu_to_le16(hcon->le_supv_timeout); l2cap_le_conn_ready()
2179 lh->cid = cpu_to_le16(chan->dcid); l2cap_create_connless_pdu()
2180 lh->len = cpu_to_le16(len + L2CAP_PSMLEN_SIZE); l2cap_create_connless_pdu()
2210 lh->cid = cpu_to_le16(chan->dcid); l2cap_create_basic_pdu()
2211 lh->len = cpu_to_le16(len); l2cap_create_basic_pdu()
2252 lh->cid = cpu_to_le16(chan->dcid); l2cap_create_iframe_pdu()
2253 lh->len = cpu_to_le16(len + (hlen - L2CAP_HDR_SIZE)); l2cap_create_iframe_pdu()
2370 lh->cid = cpu_to_le16(chan->dcid); l2cap_create_le_flowctl_pdu()
2371 lh->len = cpu_to_le16(len + (hlen - L2CAP_HDR_SIZE)); l2cap_create_le_flowctl_pdu()
2895 lh->len = cpu_to_le16(L2CAP_CMD_HDR_SIZE + dlen); l2cap_build_cmd()
2898 lh->cid = cpu_to_le16(L2CAP_CID_LE_SIGNALING); l2cap_build_cmd()
2900 lh->cid = cpu_to_le16(L2CAP_CID_SIGNALING); l2cap_build_cmd()
2905 cmd->len = cpu_to_le16(dlen); l2cap_build_cmd()
3011 efs.msdu = cpu_to_le16(chan->local_msdu); l2cap_add_opt_efs()
3020 efs.msdu = cpu_to_le16(chan->local_msdu); l2cap_add_opt_efs()
3154 rfc->retrans_timeout = cpu_to_le16((u16) ertm_to); __l2cap_set_ertm_timeouts()
3157 rfc->retrans_timeout = cpu_to_le16(L2CAP_DEFAULT_RETRANS_TO); __l2cap_set_ertm_timeouts()
3158 rfc->monitor_timeout = cpu_to_le16(L2CAP_DEFAULT_MONITOR_TO); __l2cap_set_ertm_timeouts()
3237 rfc.max_pdu_size = cpu_to_le16(size); l2cap_build_conf_req()
3274 rfc.max_pdu_size = cpu_to_le16(size); l2cap_build_conf_req()
3292 req->dcid = cpu_to_le16(chan->dcid); l2cap_build_conf_req()
3293 req->flags = cpu_to_le16(0); l2cap_build_conf_req()
3455 rfc.max_pdu_size = cpu_to_le16(size); l2cap_parse_conf_req()
3485 rfc.max_pdu_size = cpu_to_le16(size); l2cap_parse_conf_req()
3505 rsp->scid = cpu_to_le16(chan->dcid); l2cap_parse_conf_req()
3506 rsp->result = cpu_to_le16(result); l2cap_parse_conf_req()
3507 rsp->flags = cpu_to_le16(0); l2cap_parse_conf_req()
3615 req->dcid = cpu_to_le16(chan->dcid); l2cap_parse_conf_rsp()
3616 req->flags = cpu_to_le16(0); l2cap_parse_conf_rsp()
3629 rsp->scid = cpu_to_le16(chan->dcid); l2cap_build_conf_rsp()
3630 rsp->result = cpu_to_le16(result); l2cap_build_conf_rsp()
3631 rsp->flags = cpu_to_le16(flags); l2cap_build_conf_rsp()
3643 rsp.dcid = cpu_to_le16(chan->scid); __l2cap_le_connect_rsp_defer()
3644 rsp.mtu = cpu_to_le16(chan->imtu); __l2cap_le_connect_rsp_defer()
3645 rsp.mps = cpu_to_le16(chan->mps); __l2cap_le_connect_rsp_defer()
3646 rsp.credits = cpu_to_le16(chan->rx_credits); __l2cap_le_connect_rsp_defer()
3647 rsp.result = cpu_to_le16(L2CAP_CR_SUCCESS); __l2cap_le_connect_rsp_defer()
3660 rsp.scid = cpu_to_le16(chan->dcid); __l2cap_connect_rsp_defer()
3661 rsp.dcid = cpu_to_le16(chan->scid); __l2cap_connect_rsp_defer()
3662 rsp.result = cpu_to_le16(L2CAP_CR_SUCCESS); __l2cap_connect_rsp_defer()
3663 rsp.status = cpu_to_le16(L2CAP_CS_NO_INFO); __l2cap_connect_rsp_defer()
3692 .retrans_timeout = cpu_to_le16(L2CAP_DEFAULT_RETRANS_TO), l2cap_conf_rfc_get()
3693 .monitor_timeout = cpu_to_le16(L2CAP_DEFAULT_MONITOR_TO), l2cap_conf_rfc_get()
3694 .max_pdu_size = cpu_to_le16(chan->imtu), l2cap_conf_rfc_get()
3784 if (psm != cpu_to_le16(L2CAP_PSM_SDP) && l2cap_connect()
3862 rsp.scid = cpu_to_le16(scid); l2cap_connect()
3863 rsp.dcid = cpu_to_le16(dcid); l2cap_connect()
3864 rsp.result = cpu_to_le16(result); l2cap_connect()
3865 rsp.status = cpu_to_le16(status); l2cap_connect()
3870 info.type = cpu_to_le16(L2CAP_IT_FEAT_MASK); l2cap_connect()
4017 rej.reason = cpu_to_le16(L2CAP_REJ_INVALID_CID); cmd_reject_invalid_cid()
4273 rsp.dcid = cpu_to_le16(chan->scid); l2cap_disconnect_req()
4274 rsp.scid = cpu_to_le16(chan->dcid); l2cap_disconnect_req()
4349 rsp->type = cpu_to_le16(L2CAP_IT_FEAT_MASK); l2cap_information_req()
4350 rsp->result = cpu_to_le16(L2CAP_IR_SUCCESS); l2cap_information_req()
4365 rsp->type = cpu_to_le16(L2CAP_IT_FIXED_CHAN); l2cap_information_req()
4366 rsp->result = cpu_to_le16(L2CAP_IR_SUCCESS); l2cap_information_req()
4373 rsp.type = cpu_to_le16(type); l2cap_information_req()
4374 rsp.result = cpu_to_le16(L2CAP_IR_NOTSUPP); l2cap_information_req()
4419 req.type = cpu_to_le16(L2CAP_IT_FIXED_CHAN); l2cap_information_rsp()
4512 rsp.scid = cpu_to_le16(scid); l2cap_create_channel_req()
4513 rsp.result = cpu_to_le16(L2CAP_CR_BAD_AMP); l2cap_create_channel_req()
4514 rsp.status = cpu_to_le16(L2CAP_CS_NO_INFO); l2cap_create_channel_req()
4532 req.icid = cpu_to_le16(chan->scid); l2cap_send_move_chan_req()
4547 rsp.icid = cpu_to_le16(chan->dcid); l2cap_send_move_chan_rsp()
4548 rsp.result = cpu_to_le16(result); l2cap_send_move_chan_rsp()
4562 cfm.icid = cpu_to_le16(chan->scid); l2cap_send_move_chan_cfm()
4563 cfm.result = cpu_to_le16(result); l2cap_send_move_chan_cfm()
4577 cfm.icid = cpu_to_le16(icid); l2cap_send_move_chan_cfm_icid()
4578 cfm.result = cpu_to_le16(L2CAP_MC_UNCONFIRMED); l2cap_send_move_chan_cfm_icid()
4591 rsp.icid = cpu_to_le16(icid); l2cap_send_move_chan_cfm_rsp()
4756 rsp.scid = cpu_to_le16(chan->dcid); l2cap_do_create()
4757 rsp.dcid = cpu_to_le16(chan->scid); l2cap_do_create()
4761 rsp.result = cpu_to_le16(L2CAP_CR_SUCCESS); l2cap_do_create()
4762 rsp.status = cpu_to_le16(L2CAP_CS_NO_INFO); l2cap_do_create()
4765 rsp.result = cpu_to_le16(L2CAP_CR_NO_MEM); l2cap_do_create()
4766 rsp.status = cpu_to_le16(L2CAP_CS_NO_INFO); l2cap_do_create()
4893 rsp.icid = cpu_to_le16(icid); l2cap_move_channel_req()
4894 rsp.result = cpu_to_le16(L2CAP_MR_NOT_ALLOWED); l2cap_move_channel_req()
5217 rsp.result = cpu_to_le16(L2CAP_CONN_PARAM_REJECTED); l2cap_conn_param_update_req()
5219 rsp.result = cpu_to_le16(L2CAP_CONN_PARAM_ACCEPTED); l2cap_conn_param_update_req()
5501 rsp.mtu = cpu_to_le16(chan->imtu); l2cap_le_connect_req()
5502 rsp.mps = cpu_to_le16(chan->mps); l2cap_le_connect_req()
5508 rsp.dcid = cpu_to_le16(dcid); l2cap_le_connect_req()
5509 rsp.credits = cpu_to_le16(credits); l2cap_le_connect_req()
5510 rsp.result = cpu_to_le16(result); l2cap_le_connect_req()
5669 rej.reason = cpu_to_le16(L2CAP_REJ_NOT_UNDERSTOOD); l2cap_le_sig_channel()
5714 rej.reason = cpu_to_le16(L2CAP_REJ_NOT_UNDERSTOOD); l2cap_sig_channel()
6672 pkt.cid = cpu_to_le16(chan->scid); l2cap_chan_le_send_credits()
6673 pkt.credits = cpu_to_le16(return_credits); l2cap_chan_le_send_credits()
7420 rsp.scid = cpu_to_le16(chan->dcid); l2cap_security_cfm()
7421 rsp.dcid = cpu_to_le16(chan->scid); l2cap_security_cfm()
7422 rsp.result = cpu_to_le16(res); l2cap_security_cfm()
7423 rsp.status = cpu_to_le16(stat); l2cap_security_cfm()
H A Dhci_sock.c265 opcode = cpu_to_le16(HCI_MON_COMMAND_PKT); hci_send_to_monitor()
268 opcode = cpu_to_le16(HCI_MON_EVENT_PKT); hci_send_to_monitor()
272 opcode = cpu_to_le16(HCI_MON_ACL_RX_PKT); hci_send_to_monitor()
274 opcode = cpu_to_le16(HCI_MON_ACL_TX_PKT); hci_send_to_monitor()
278 opcode = cpu_to_le16(HCI_MON_SCO_RX_PKT); hci_send_to_monitor()
280 opcode = cpu_to_le16(HCI_MON_SCO_TX_PKT); hci_send_to_monitor()
294 hdr->index = cpu_to_le16(hdev->id); hci_send_to_monitor()
295 hdr->len = cpu_to_le16(skb->len); hci_send_to_monitor()
321 opcode = cpu_to_le16(HCI_MON_NEW_INDEX); create_monitor_event()
329 opcode = cpu_to_le16(HCI_MON_DEL_INDEX); create_monitor_event()
340 hdr->index = cpu_to_le16(hdev->id); create_monitor_event()
341 hdr->len = cpu_to_le16(skb->len - HCI_MON_HDR_SIZE); create_monitor_event()
/linux-4.1.27/fs/cifs/
H A Dcifssmb.c508 cpu_to_le16(CIFS_CRYPTO_KEY_SIZE)) { decode_lanman_negprot_rsp()
580 pSMB->ByteCount = cpu_to_le16(count); CIFSSMBNegotiate()
818 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSPOSIXDelFile()
831 pRqD->type = cpu_to_le16(type); CIFSPOSIXDelFile()
832 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSPOSIXDelFile()
833 pSMB->DataOffset = cpu_to_le16(offset); CIFSPOSIXDelFile()
836 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_PATH_INFORMATION); CIFSPOSIXDelFile()
839 pSMB->DataCount = cpu_to_le16(sizeof(struct unlink_psx_rq)); CIFSPOSIXDelFile()
840 pSMB->TotalDataCount = cpu_to_le16(sizeof(struct unlink_psx_rq)); CIFSPOSIXDelFile()
841 pSMB->ParameterCount = cpu_to_le16(params); CIFSPOSIXDelFile()
843 pSMB->InformationLevel = cpu_to_le16(SMB_POSIX_UNLINK); CIFSPOSIXDelFile()
846 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSPOSIXDelFile()
890 cpu_to_le16(ATTR_READONLY | ATTR_HIDDEN | ATTR_SYSTEM); CIFSSMBDelFile()
893 pSMB->ByteCount = cpu_to_le16(name_len + 1); CIFSSMBDelFile()
939 pSMB->ByteCount = cpu_to_le16(name_len + 1); CIFSSMBRmDir()
984 pSMB->ByteCount = cpu_to_le16(name_len + 1); CIFSSMBMkDir()
1034 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSPOSIXCreate()
1035 pSMB->MaxDataCount = cpu_to_le16(1000); /* large enough */ CIFSPOSIXCreate()
1045 pdata->Level = cpu_to_le16(SMB_QUERY_FILE_UNIX_BASIC); CIFSPOSIXCreate()
1049 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSPOSIXCreate()
1050 pSMB->DataOffset = cpu_to_le16(offset); CIFSPOSIXCreate()
1053 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_PATH_INFORMATION); CIFSPOSIXCreate()
1056 pSMB->DataCount = cpu_to_le16(count); CIFSPOSIXCreate()
1057 pSMB->ParameterCount = cpu_to_le16(params); CIFSPOSIXCreate()
1060 pSMB->InformationLevel = cpu_to_le16(SMB_POSIX_OPEN); CIFSPOSIXCreate()
1063 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSPOSIXCreate()
1091 if (psx_rsp->ReturnedLevel != cpu_to_le16(SMB_QUERY_FILE_UNIX_BASIC)) { CIFSPOSIXCreate()
1200 pSMB->OpenFlags = cpu_to_le16(REQ_OPLOCK); SMBLegacyOpen()
1202 pSMB->OpenFlags = cpu_to_le16(REQ_BATCHOPLOCK); SMBLegacyOpen()
1204 pSMB->OpenFlags |= cpu_to_le16(REQ_MORE_INFO); SMBLegacyOpen()
1205 pSMB->Mode = cpu_to_le16(access_flags_to_smbopen_mode(access_flags)); SMBLegacyOpen()
1206 pSMB->Mode |= cpu_to_le16(0x40); /* deny none */ SMBLegacyOpen()
1212 pSMB->FileAttributes = cpu_to_le16(ATTR_SYSTEM); SMBLegacyOpen()
1214 pSMB->FileAttributes = cpu_to_le16(0/*ATTR_NORMAL*/); SMBLegacyOpen()
1217 pSMB->FileAttributes |= cpu_to_le16(ATTR_READONLY); SMBLegacyOpen()
1224 pSMB->Sattr = cpu_to_le16(ATTR_HIDDEN | ATTR_SYSTEM | ATTR_DIRECTORY); SMBLegacyOpen()
1225 pSMB->OpenFunction = cpu_to_le16(convert_disposition(openDisposition)); SMBLegacyOpen()
1229 pSMB->ByteCount = cpu_to_le16(count); SMBLegacyOpen()
1307 req->NameLength = cpu_to_le16(name_len); CIFS_open()
1315 req->NameLength = cpu_to_le16(name_len); CIFS_open()
1357 req->ByteCount = cpu_to_le16(count); CIFS_open()
1623 smb->hdr.Pid = cpu_to_le16((__u16)rdata->pid); cifs_async_readv()
1624 smb->hdr.PidHigh = cpu_to_le16((__u16)(rdata->pid >> 16)); cifs_async_readv()
1632 smb->MaxCount = cpu_to_le16(rdata->bytes & 0xFFFF); cifs_async_readv()
1693 pSMB->hdr.Pid = cpu_to_le16((__u16)pid); CIFSSMBRead()
1694 pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid >> 16)); CIFSSMBRead()
1707 pSMB->MaxCount = cpu_to_le16(count & 0xFFFF); CIFSSMBRead()
1807 pSMB->hdr.Pid = cpu_to_le16((__u16)pid); CIFSSMBWrite()
1808 pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid >> 16)); CIFSSMBWrite()
1838 cpu_to_le16(offsetof(struct smb_com_write_req, Data) - 4); CIFSSMBWrite()
1856 pSMB->DataLengthLow = cpu_to_le16(bytes_sent & 0xFFFF); CIFSSMBWrite()
1857 pSMB->DataLengthHigh = cpu_to_le16(bytes_sent >> 16); CIFSSMBWrite()
1861 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBWrite()
1866 pSMBW->ByteCount = cpu_to_le16(byte_count); CIFSSMBWrite()
2117 smb->hdr.Pid = cpu_to_le16((__u16)wdata->pid); cifs_async_writev()
2118 smb->hdr.PidHigh = cpu_to_le16((__u16)(wdata->pid >> 16)); cifs_async_writev()
2130 cpu_to_le16(offsetof(struct smb_com_write_req, Data) - 4); cifs_async_writev()
2146 smb->DataLengthLow = cpu_to_le16(wdata->bytes & 0xFFFF); cifs_async_writev()
2147 smb->DataLengthHigh = cpu_to_le16(wdata->bytes >> 16); cifs_async_writev()
2207 pSMB->hdr.Pid = cpu_to_le16((__u16)pid); CIFSSMBWrite2()
2208 pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid >> 16)); CIFSSMBWrite2()
2224 cpu_to_le16(offsetof(struct smb_com_write_req, Data) - 4); CIFSSMBWrite2()
2226 pSMB->DataLengthLow = cpu_to_le16(count & 0xFFFF); CIFSSMBWrite2()
2227 pSMB->DataLengthHigh = cpu_to_le16(count >> 16); CIFSSMBWrite2()
2235 pSMB->ByteCount = cpu_to_le16(count + 1); CIFSSMBWrite2()
2239 pSMBW->ByteCount = cpu_to_le16(count + 5); CIFSSMBWrite2()
2297 pSMB->NumberOfLocks = cpu_to_le16(num_lock); cifs_lockv()
2298 pSMB->NumberOfUnlocks = cpu_to_le16(num_unlock); cifs_lockv()
2305 pSMB->ByteCount = cpu_to_le16(count); cifs_lockv()
2353 pSMB->NumberOfLocks = cpu_to_le16(numLock); CIFSSMBLock()
2354 pSMB->NumberOfUnlocks = cpu_to_le16(numUnlock); CIFSSMBLock()
2361 pSMB->Locks[0].Pid = cpu_to_le16(netpid); CIFSSMBLock()
2373 pSMB->ByteCount = cpu_to_le16(count); CIFSSMBLock()
2427 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBPosixLock()
2428 pSMB->MaxDataCount = cpu_to_le16(1000); /* BB find max SMB from sess */ CIFSSMBPosixLock()
2432 pSMB->SubCommand = cpu_to_le16(TRANS2_QUERY_FILE_INFORMATION); CIFSSMBPosixLock()
2434 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_FILE_INFORMATION); CIFSSMBPosixLock()
2436 pSMB->DataCount = cpu_to_le16(count); CIFSSMBPosixLock()
2437 pSMB->ParameterCount = cpu_to_le16(params); CIFSSMBPosixLock()
2440 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSSMBPosixLock()
2444 parm_data->lock_type = cpu_to_le16(lock_type); CIFSSMBPosixLock()
2447 parm_data->lock_flags = cpu_to_le16(1); CIFSSMBPosixLock()
2456 pSMB->DataOffset = cpu_to_le16(offset); CIFSSMBPosixLock()
2458 pSMB->InformationLevel = cpu_to_le16(SMB_SET_POSIX_LOCK); CIFSSMBPosixLock()
2461 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBPosixLock()
2495 if (parm_data->lock_type == cpu_to_le16(CIFS_UNLCK)) CIFSSMBPosixLock()
2499 cpu_to_le16(CIFS_RDLCK)) CIFSSMBPosixLock()
2502 cpu_to_le16(CIFS_WRLCK)) CIFSSMBPosixLock()
2601 cpu_to_le16(ATTR_READONLY | ATTR_HIDDEN | ATTR_SYSTEM | CIFSSMBRename()
2633 pSMB->ByteCount = cpu_to_le16(count); CIFSSMBRename()
2680 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBRenameOpenFile()
2681 pSMB->MaxDataCount = cpu_to_le16(1000); /* BB find max SMB from sess */ CIFSSMBRenameOpenFile()
2684 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_FILE_INFORMATION); CIFSSMBRenameOpenFile()
2686 pSMB->ParameterCount = cpu_to_le16(params); CIFSSMBRenameOpenFile()
2688 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSSMBRenameOpenFile()
2689 pSMB->DataOffset = cpu_to_le16(offset); CIFSSMBRenameOpenFile()
2708 pSMB->DataCount = cpu_to_le16(count); CIFSSMBRenameOpenFile()
2712 cpu_to_le16(SMB_SET_FILE_RENAME_INFORMATION); CIFSSMBRenameOpenFile()
2715 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBRenameOpenFile()
2753 pSMB->Flags = cpu_to_le16(flags & COPY_TREE); CIFSSMBCopy()
2783 pSMB->ByteCount = cpu_to_le16(count); CIFSSMBCopy()
2857 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSUnixCreateSymLink()
2859 pSMB->MaxDataCount = cpu_to_le16(1000); CIFSUnixCreateSymLink()
2862 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_PATH_INFORMATION); CIFSUnixCreateSymLink()
2864 pSMB->DataCount = cpu_to_le16(name_len_target); CIFSUnixCreateSymLink()
2865 pSMB->ParameterCount = cpu_to_le16(params); CIFSUnixCreateSymLink()
2868 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSUnixCreateSymLink()
2869 pSMB->DataOffset = cpu_to_le16(offset); CIFSUnixCreateSymLink()
2870 pSMB->InformationLevel = cpu_to_le16(SMB_SET_FILE_UNIX_LINK); CIFSUnixCreateSymLink()
2873 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSUnixCreateSymLink()
2944 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSUnixCreateHardLink()
2946 pSMB->MaxDataCount = cpu_to_le16(1000); CIFSUnixCreateHardLink()
2949 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_PATH_INFORMATION); CIFSUnixCreateHardLink()
2951 pSMB->ParameterCount = cpu_to_le16(params); CIFSUnixCreateHardLink()
2953 pSMB->DataCount = cpu_to_le16(name_len_target); CIFSUnixCreateHardLink()
2955 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSUnixCreateHardLink()
2956 pSMB->DataOffset = cpu_to_le16(offset); CIFSUnixCreateHardLink()
2957 pSMB->InformationLevel = cpu_to_le16(SMB_SET_FILE_UNIX_HLINK); CIFSUnixCreateHardLink()
2960 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSUnixCreateHardLink()
2997 cpu_to_le16(ATTR_READONLY | ATTR_HIDDEN | ATTR_SYSTEM | CIFSCreateHardLink()
2999 pSMB->Flags = cpu_to_le16(CREATE_HARD_LINK); CIFSCreateHardLink()
3034 pSMB->ByteCount = cpu_to_le16(count); CIFSCreateHardLink()
3086 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBUnixQuerySymLink()
3087 pSMB->MaxDataCount = cpu_to_le16(CIFSMaxBufSize); CIFSSMBUnixQuerySymLink()
3093 pSMB->ParameterOffset = cpu_to_le16(offsetof( CIFSSMBUnixQuerySymLink()
3099 pSMB->SubCommand = cpu_to_le16(TRANS2_QUERY_PATH_INFORMATION); CIFSSMBUnixQuerySymLink()
3101 pSMB->TotalParameterCount = cpu_to_le16(params); CIFSSMBUnixQuerySymLink()
3103 pSMB->InformationLevel = cpu_to_le16(SMB_QUERY_FILE_UNIX_LINK); CIFSSMBUnixQuerySymLink()
3106 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBUnixQuerySymLink()
3188 pSMB->SubCommand = cpu_to_le16(NT_TRANSACT_IOCTL); CIFSSMBQuerySymLink()
3292 pSMB->compression_state = cpu_to_le16(COMPRESSION_FORMAT_DEFAULT); CIFSSMB_set_compression()
3306 pSMB->SubCommand = cpu_to_le16(NT_TRANSACT_IOCTL); CIFSSMB_set_compression()
3313 pSMB->ByteCount = cpu_to_le16(5); CIFSSMB_set_compression()
3338 ace->e_perm = cpu_to_le16(cifs_ace->cifs_e_perm); cifs_convert_ace()
3339 ace->e_tag = cpu_to_le16(cifs_ace->cifs_e_tag); cifs_convert_ace()
3446 cifs_acl->version = cpu_to_le16(1); ACL_to_cifs_posix()
3448 cifs_acl->access_entry_count = cpu_to_le16(count); ACL_to_cifs_posix()
3449 cifs_acl->default_entry_count = cpu_to_le16(0xFFFF); ACL_to_cifs_posix()
3451 cifs_acl->default_entry_count = cpu_to_le16(count); ACL_to_cifs_posix()
3452 cifs_acl->access_entry_count = cpu_to_le16(0xFFFF); ACL_to_cifs_posix()
3512 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBGetPosixACL()
3514 pSMB->MaxDataCount = cpu_to_le16(4000); CIFSSMBGetPosixACL()
3520 pSMB->ParameterOffset = cpu_to_le16( CIFSSMBGetPosixACL()
3527 pSMB->SubCommand = cpu_to_le16(TRANS2_QUERY_PATH_INFORMATION); CIFSSMBGetPosixACL()
3529 pSMB->TotalParameterCount = cpu_to_le16(params); CIFSSMBGetPosixACL()
3531 pSMB->InformationLevel = cpu_to_le16(SMB_QUERY_POSIX_ACL); CIFSSMBGetPosixACL()
3534 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBGetPosixACL()
3595 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBSetPosixACL()
3597 pSMB->MaxDataCount = cpu_to_le16(1000); CIFSSMBSetPosixACL()
3607 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSSMBSetPosixACL()
3616 pSMB->DataOffset = cpu_to_le16(offset); CIFSSMBSetPosixACL()
3619 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_PATH_INFORMATION); CIFSSMBSetPosixACL()
3620 pSMB->InformationLevel = cpu_to_le16(SMB_SET_POSIX_ACL); CIFSSMBSetPosixACL()
3622 pSMB->DataCount = cpu_to_le16(data_count); CIFSSMBSetPosixACL()
3624 pSMB->ParameterCount = cpu_to_le16(params); CIFSSMBSetPosixACL()
3628 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBSetPosixACL()
3664 pSMB->t2.MaxParameterCount = cpu_to_le16(4); CIFSGetExtAttr()
3666 pSMB->t2.MaxDataCount = cpu_to_le16(4000); CIFSGetExtAttr()
3672 pSMB->t2.ParameterOffset = cpu_to_le16(offsetof(struct smb_t2_qfi_req, CIFSGetExtAttr()
3678 pSMB->t2.SubCommand = cpu_to_le16(TRANS2_QUERY_FILE_INFORMATION); CIFSGetExtAttr()
3680 pSMB->t2.TotalParameterCount = cpu_to_le16(params); CIFSGetExtAttr()
3682 pSMB->InformationLevel = cpu_to_le16(SMB_QUERY_ATTR_FLAGS); CIFSGetExtAttr()
3686 pSMB->t2.ByteCount = cpu_to_le16(byte_count); CIFSGetExtAttr()
3759 pSMB->SubCommand = cpu_to_le16(sub_command); smb_init_nttransact()
3842 pSMB->ByteCount = cpu_to_le16(11); /* 3 bytes pad + 8 bytes parm */ CIFSSMBGetCIFSACL()
3939 pSMB->SubCommand = cpu_to_le16(NT_TRANSACT_SET_SECURITY_DESC); CIFSSMBSetCIFSACL()
3940 pSMB->ByteCount = cpu_to_le16(byte_count+data_count); CIFSSMBSetCIFSACL()
4005 pSMB->ByteCount = cpu_to_le16(name_len); SMBQueryInformation()
4058 pSMB->t2.MaxParameterCount = cpu_to_le16(4); CIFSSMBQFileInfo()
4060 pSMB->t2.MaxDataCount = cpu_to_le16(CIFSMaxBufSize); CIFSSMBQFileInfo()
4066 pSMB->t2.ParameterOffset = cpu_to_le16(offsetof(struct smb_t2_qfi_req, CIFSSMBQFileInfo()
4072 pSMB->t2.SubCommand = cpu_to_le16(TRANS2_QUERY_FILE_INFORMATION); CIFSSMBQFileInfo()
4074 pSMB->t2.TotalParameterCount = cpu_to_le16(params); CIFSSMBQFileInfo()
4076 pSMB->InformationLevel = cpu_to_le16(SMB_QUERY_FILE_ALL_INFO); CIFSSMBQFileInfo()
4080 pSMB->t2.ByteCount = cpu_to_le16(byte_count); CIFSSMBQFileInfo()
4143 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBQPathInfo()
4145 pSMB->MaxDataCount = cpu_to_le16(4000); CIFSSMBQPathInfo()
4151 pSMB->ParameterOffset = cpu_to_le16(offsetof( CIFSSMBQPathInfo()
4157 pSMB->SubCommand = cpu_to_le16(TRANS2_QUERY_PATH_INFORMATION); CIFSSMBQPathInfo()
4159 pSMB->TotalParameterCount = cpu_to_le16(params); CIFSSMBQPathInfo()
4162 pSMB->InformationLevel = cpu_to_le16(SMB_INFO_STANDARD); CIFSSMBQPathInfo()
4164 pSMB->InformationLevel = cpu_to_le16(SMB_QUERY_FILE_ALL_INFO); CIFSSMBQPathInfo()
4167 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBQPathInfo()
4227 pSMB->t2.MaxParameterCount = cpu_to_le16(4); CIFSSMBUnixQFileInfo()
4229 pSMB->t2.MaxDataCount = cpu_to_le16(CIFSMaxBufSize); CIFSSMBUnixQFileInfo()
4235 pSMB->t2.ParameterOffset = cpu_to_le16(offsetof(struct smb_t2_qfi_req, CIFSSMBUnixQFileInfo()
4241 pSMB->t2.SubCommand = cpu_to_le16(TRANS2_QUERY_FILE_INFORMATION); CIFSSMBUnixQFileInfo()
4243 pSMB->t2.TotalParameterCount = cpu_to_le16(params); CIFSSMBUnixQFileInfo()
4245 pSMB->InformationLevel = cpu_to_le16(SMB_QUERY_FILE_UNIX_BASIC); CIFSSMBUnixQFileInfo()
4249 pSMB->t2.ByteCount = cpu_to_le16(byte_count); CIFSSMBUnixQFileInfo()
4312 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBUnixQPathInfo()
4314 pSMB->MaxDataCount = cpu_to_le16(4000); CIFSSMBUnixQPathInfo()
4320 pSMB->ParameterOffset = cpu_to_le16(offsetof( CIFSSMBUnixQPathInfo()
4326 pSMB->SubCommand = cpu_to_le16(TRANS2_QUERY_PATH_INFORMATION); CIFSSMBUnixQPathInfo()
4328 pSMB->TotalParameterCount = cpu_to_le16(params); CIFSSMBUnixQPathInfo()
4330 pSMB->InformationLevel = cpu_to_le16(SMB_QUERY_FILE_UNIX_BASIC); CIFSSMBUnixQPathInfo()
4333 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBUnixQPathInfo()
4423 pSMB->MaxParameterCount = cpu_to_le16(10); CIFSFindFirst()
4424 pSMB->MaxDataCount = cpu_to_le16(CIFSMaxBufSize & 0xFFFFFF00); CIFSFindFirst()
4431 pSMB->TotalParameterCount = cpu_to_le16(params); CIFSFindFirst()
4433 pSMB->ParameterOffset = cpu_to_le16( CIFSFindFirst()
4440 pSMB->SubCommand = cpu_to_le16(TRANS2_FIND_FIRST); CIFSFindFirst()
4442 cpu_to_le16(ATTR_READONLY | ATTR_HIDDEN | ATTR_SYSTEM | CIFSFindFirst()
4444 pSMB->SearchCount = cpu_to_le16(CIFSMaxBufSize/sizeof(FILE_UNIX_INFO)); CIFSFindFirst()
4445 pSMB->SearchFlags = cpu_to_le16(search_flags); CIFSFindFirst()
4446 pSMB->InformationLevel = cpu_to_le16(psrch_inf->info_level); CIFSFindFirst()
4451 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSFindFirst()
4542 pSMB->MaxParameterCount = cpu_to_le16(8); CIFSFindNext()
4543 pSMB->MaxDataCount = cpu_to_le16(CIFSMaxBufSize & 0xFFFFFF00); CIFSFindNext()
4549 pSMB->ParameterOffset = cpu_to_le16( CIFSFindNext()
4555 pSMB->SubCommand = cpu_to_le16(TRANS2_FIND_NEXT); CIFSFindNext()
4558 cpu_to_le16(CIFSMaxBufSize / sizeof(FILE_UNIX_INFO)); CIFSFindNext()
4559 pSMB->InformationLevel = cpu_to_le16(psrch_inf->info_level); CIFSFindNext()
4561 pSMB->SearchFlags = cpu_to_le16(search_flags); CIFSFindNext()
4576 pSMB->TotalParameterCount = cpu_to_le16(params); CIFSFindNext()
4579 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSFindNext()
4719 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSGetSrvInodeNumber()
4721 pSMB->MaxDataCount = cpu_to_le16(4000); CIFSGetSrvInodeNumber()
4727 pSMB->ParameterOffset = cpu_to_le16(offsetof( CIFSGetSrvInodeNumber()
4733 pSMB->SubCommand = cpu_to_le16(TRANS2_QUERY_PATH_INFORMATION); CIFSGetSrvInodeNumber()
4735 pSMB->TotalParameterCount = cpu_to_le16(params); CIFSGetSrvInodeNumber()
4737 pSMB->InformationLevel = cpu_to_le16(SMB_QUERY_FILE_INTERNAL_INFO); CIFSGetSrvInodeNumber()
4740 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSGetSrvInodeNumber()
4808 if (ref->VersionNumber != cpu_to_le16(3)) { parse_DFS_referrals()
4947 pSMB->MaxDataCount = cpu_to_le16(4000); CIFSGetDFSRefer()
4953 pSMB->ParameterOffset = cpu_to_le16(offsetof( CIFSGetDFSRefer()
4957 pSMB->SubCommand = cpu_to_le16(TRANS2_GET_DFS_REFERRAL); CIFSGetDFSRefer()
4959 pSMB->ParameterCount = cpu_to_le16(params); CIFSGetDFSRefer()
4961 pSMB->MaxReferralLevel = cpu_to_le16(3); CIFSGetDFSRefer()
4963 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSGetDFSRefer()
5018 pSMB->MaxParameterCount = cpu_to_le16(2); SMBOldQFSInfo()
5019 pSMB->MaxDataCount = cpu_to_le16(1000); SMBOldQFSInfo()
5026 pSMB->TotalParameterCount = cpu_to_le16(params); SMBOldQFSInfo()
5028 pSMB->ParameterOffset = cpu_to_le16(offsetof( SMBOldQFSInfo()
5034 pSMB->SubCommand = cpu_to_le16(TRANS2_QUERY_FS_INFORMATION); SMBOldQFSInfo()
5035 pSMB->InformationLevel = cpu_to_le16(SMB_INFO_ALLOCATION); SMBOldQFSInfo()
5037 pSMB->ByteCount = cpu_to_le16(byte_count); SMBOldQFSInfo()
5098 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBQFSInfo()
5099 pSMB->MaxDataCount = cpu_to_le16(1000); CIFSSMBQFSInfo()
5106 pSMB->TotalParameterCount = cpu_to_le16(params); CIFSSMBQFSInfo()
5108 pSMB->ParameterOffset = cpu_to_le16(offsetof( CIFSSMBQFSInfo()
5114 pSMB->SubCommand = cpu_to_le16(TRANS2_QUERY_FS_INFORMATION); CIFSSMBQFSInfo()
5115 pSMB->InformationLevel = cpu_to_le16(SMB_QUERY_FS_SIZE_INFO); CIFSSMBQFSInfo()
5117 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBQFSInfo()
5177 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBQFSAttributeInfo()
5179 pSMB->MaxDataCount = cpu_to_le16(1000); CIFSSMBQFSAttributeInfo()
5186 pSMB->TotalParameterCount = cpu_to_le16(params); CIFSSMBQFSAttributeInfo()
5188 pSMB->ParameterOffset = cpu_to_le16(offsetof( CIFSSMBQFSAttributeInfo()
5194 pSMB->SubCommand = cpu_to_le16(TRANS2_QUERY_FS_INFORMATION); CIFSSMBQFSAttributeInfo()
5195 pSMB->InformationLevel = cpu_to_le16(SMB_QUERY_FS_ATTRIBUTE_INFO); CIFSSMBQFSAttributeInfo()
5197 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBQFSAttributeInfo()
5247 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBQFSDeviceInfo()
5249 pSMB->MaxDataCount = cpu_to_le16(1000); CIFSSMBQFSDeviceInfo()
5256 pSMB->TotalParameterCount = cpu_to_le16(params); CIFSSMBQFSDeviceInfo()
5258 pSMB->ParameterOffset = cpu_to_le16(offsetof( CIFSSMBQFSDeviceInfo()
5265 pSMB->SubCommand = cpu_to_le16(TRANS2_QUERY_FS_INFORMATION); CIFSSMBQFSDeviceInfo()
5266 pSMB->InformationLevel = cpu_to_le16(SMB_QUERY_FS_DEVICE_INFO); CIFSSMBQFSDeviceInfo()
5268 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBQFSDeviceInfo()
5320 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBQFSUnixInfo()
5322 pSMB->MaxDataCount = cpu_to_le16(100); CIFSSMBQFSUnixInfo()
5329 pSMB->ParameterCount = cpu_to_le16(params); CIFSSMBQFSUnixInfo()
5331 pSMB->ParameterOffset = cpu_to_le16(offsetof(struct CIFSSMBQFSUnixInfo()
5335 pSMB->SubCommand = cpu_to_le16(TRANS2_QUERY_FS_INFORMATION); CIFSSMBQFSUnixInfo()
5336 pSMB->InformationLevel = cpu_to_le16(SMB_QUERY_CIFS_UNIX_INFO); CIFSSMBQFSUnixInfo()
5338 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBQFSUnixInfo()
5396 pSMB->MaxParameterCount = cpu_to_le16(4); CIFSSMBSetFSUnixInfo()
5398 pSMB->MaxDataCount = cpu_to_le16(100); CIFSSMBSetFSUnixInfo()
5401 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_FS_INFORMATION); CIFSSMBSetFSUnixInfo()
5404 pSMB->DataCount = cpu_to_le16(12); CIFSSMBSetFSUnixInfo()
5405 pSMB->ParameterCount = cpu_to_le16(params); CIFSSMBSetFSUnixInfo()
5408 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSSMBSetFSUnixInfo()
5409 pSMB->DataOffset = cpu_to_le16(offset); CIFSSMBSetFSUnixInfo()
5413 pSMB->InformationLevel = cpu_to_le16(SMB_SET_CIFS_UNIX_INFO); CIFSSMBSetFSUnixInfo()
5416 pSMB->ClientUnixMajor = cpu_to_le16(CIFS_UNIX_MAJOR_VERSION); CIFSSMBSetFSUnixInfo()
5417 pSMB->ClientUnixMinor = cpu_to_le16(CIFS_UNIX_MINOR_VERSION); CIFSSMBSetFSUnixInfo()
5421 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBSetFSUnixInfo()
5465 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBQFSPosixInfo()
5467 pSMB->MaxDataCount = cpu_to_le16(100); CIFSSMBQFSPosixInfo()
5474 pSMB->ParameterCount = cpu_to_le16(params); CIFSSMBQFSPosixInfo()
5476 pSMB->ParameterOffset = cpu_to_le16(offsetof(struct CIFSSMBQFSPosixInfo()
5480 pSMB->SubCommand = cpu_to_le16(TRANS2_QUERY_FS_INFORMATION); CIFSSMBQFSPosixInfo()
5481 pSMB->InformationLevel = cpu_to_le16(SMB_QUERY_POSIX_FS_INFO); CIFSSMBQFSPosixInfo()
5483 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBQFSPosixInfo()
5570 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBSetEOF()
5571 pSMB->MaxDataCount = cpu_to_le16(4100); CIFSSMBSetEOF()
5583 cpu_to_le16(SMB_SET_FILE_ALLOCATION_INFO2); CIFSSMBSetEOF()
5586 cpu_to_le16(SMB_SET_FILE_ALLOCATION_INFO); CIFSSMBSetEOF()
5590 cpu_to_le16(SMB_SET_FILE_END_OF_FILE_INFO2); CIFSSMBSetEOF()
5593 cpu_to_le16(SMB_SET_FILE_END_OF_FILE_INFO); CIFSSMBSetEOF()
5599 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSSMBSetEOF()
5600 pSMB->DataOffset = cpu_to_le16(offset); CIFSSMBSetEOF()
5603 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_PATH_INFORMATION); CIFSSMBSetEOF()
5605 pSMB->DataCount = cpu_to_le16(data_count); CIFSSMBSetEOF()
5607 pSMB->ParameterCount = cpu_to_le16(params); CIFSSMBSetEOF()
5612 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBSetEOF()
5642 pSMB->hdr.Pid = cpu_to_le16((__u16)cfile->pid); CIFSSMBSetFileSize()
5643 pSMB->hdr.PidHigh = cpu_to_le16((__u16)(cfile->pid >> 16)); CIFSSMBSetFileSize()
5655 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBSetFileSize()
5657 pSMB->MaxDataCount = cpu_to_le16(1000); CIFSSMBSetFileSize()
5660 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_FILE_INFORMATION); CIFSSMBSetFileSize()
5662 pSMB->DataCount = cpu_to_le16(count); CIFSSMBSetFileSize()
5663 pSMB->ParameterCount = cpu_to_le16(params); CIFSSMBSetFileSize()
5666 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSSMBSetFileSize()
5670 pSMB->DataOffset = cpu_to_le16(offset); CIFSSMBSetFileSize()
5676 cpu_to_le16(SMB_SET_FILE_ALLOCATION_INFO2); CIFSSMBSetFileSize()
5679 cpu_to_le16(SMB_SET_FILE_ALLOCATION_INFO); CIFSSMBSetFileSize()
5683 cpu_to_le16(SMB_SET_FILE_END_OF_FILE_INFO2); CIFSSMBSetFileSize()
5686 cpu_to_le16(SMB_SET_FILE_END_OF_FILE_INFO); CIFSSMBSetFileSize()
5690 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBSetFileSize()
5724 pSMB->hdr.Pid = cpu_to_le16((__u16)pid_of_opener); CIFSSMBSetFileInfo()
5725 pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid_of_opener >> 16)); CIFSSMBSetFileInfo()
5740 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBSetFileInfo()
5742 pSMB->MaxDataCount = cpu_to_le16(1000); CIFSSMBSetFileInfo()
5745 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_FILE_INFORMATION); CIFSSMBSetFileInfo()
5747 pSMB->DataCount = cpu_to_le16(count); CIFSSMBSetFileInfo()
5748 pSMB->ParameterCount = cpu_to_le16(params); CIFSSMBSetFileInfo()
5751 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSSMBSetFileInfo()
5752 pSMB->DataOffset = cpu_to_le16(offset); CIFSSMBSetFileInfo()
5755 pSMB->InformationLevel = cpu_to_le16(SMB_SET_FILE_BASIC_INFO2); CIFSSMBSetFileInfo()
5757 pSMB->InformationLevel = cpu_to_le16(SMB_SET_FILE_BASIC_INFO); CIFSSMBSetFileInfo()
5760 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBSetFileInfo()
5788 pSMB->hdr.Pid = cpu_to_le16((__u16)pid_of_opener); CIFSSMBSetFileDisposition()
5789 pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid_of_opener >> 16)); CIFSSMBSetFileDisposition()
5803 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBSetFileDisposition()
5805 pSMB->MaxDataCount = cpu_to_le16(1000); CIFSSMBSetFileDisposition()
5808 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_FILE_INFORMATION); CIFSSMBSetFileDisposition()
5810 pSMB->DataCount = cpu_to_le16(count); CIFSSMBSetFileDisposition()
5811 pSMB->ParameterCount = cpu_to_le16(params); CIFSSMBSetFileDisposition()
5814 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSSMBSetFileDisposition()
5815 pSMB->DataOffset = cpu_to_le16(offset); CIFSSMBSetFileDisposition()
5817 pSMB->InformationLevel = cpu_to_le16(SMB_SET_FILE_DISPOSITION_INFO); CIFSSMBSetFileDisposition()
5820 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBSetFileDisposition()
5864 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBSetPathInfo()
5866 pSMB->MaxDataCount = cpu_to_le16(1000); CIFSSMBSetPathInfo()
5876 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSSMBSetPathInfo()
5877 pSMB->DataOffset = cpu_to_le16(offset); CIFSSMBSetPathInfo()
5880 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_PATH_INFORMATION); CIFSSMBSetPathInfo()
5883 pSMB->DataCount = cpu_to_le16(count); CIFSSMBSetPathInfo()
5884 pSMB->ParameterCount = cpu_to_le16(params); CIFSSMBSetPathInfo()
5888 pSMB->InformationLevel = cpu_to_le16(SMB_SET_FILE_BASIC_INFO2); CIFSSMBSetPathInfo()
5890 pSMB->InformationLevel = cpu_to_le16(SMB_SET_FILE_BASIC_INFO); CIFSSMBSetPathInfo()
5894 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBSetPathInfo()
5942 pSMB->attr = cpu_to_le16(dos_attrs);
5945 pSMB->ByteCount = cpu_to_le16(name_len + 1);
6023 pSMB->hdr.Pid = cpu_to_le16((__u16)pid_of_opener); CIFSSMBUnixSetFileInfo()
6024 pSMB->hdr.PidHigh = cpu_to_le16((__u16)(pid_of_opener >> 16)); CIFSSMBUnixSetFileInfo()
6040 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBUnixSetFileInfo()
6042 pSMB->MaxDataCount = cpu_to_le16(1000); CIFSSMBUnixSetFileInfo()
6045 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_FILE_INFORMATION); CIFSSMBUnixSetFileInfo()
6047 pSMB->DataCount = cpu_to_le16(count); CIFSSMBUnixSetFileInfo()
6048 pSMB->ParameterCount = cpu_to_le16(params); CIFSSMBUnixSetFileInfo()
6051 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSSMBUnixSetFileInfo()
6052 pSMB->DataOffset = cpu_to_le16(offset); CIFSSMBUnixSetFileInfo()
6054 pSMB->InformationLevel = cpu_to_le16(SMB_SET_FILE_UNIX_BASIC); CIFSSMBUnixSetFileInfo()
6057 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBUnixSetFileInfo()
6107 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBUnixSetPathInfo()
6109 pSMB->MaxDataCount = cpu_to_le16(1000); CIFSSMBUnixSetPathInfo()
6122 pSMB->DataOffset = cpu_to_le16(offset); CIFSSMBUnixSetPathInfo()
6123 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSSMBUnixSetPathInfo()
6126 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_PATH_INFORMATION); CIFSSMBUnixSetPathInfo()
6128 pSMB->ParameterCount = cpu_to_le16(params); CIFSSMBUnixSetPathInfo()
6129 pSMB->DataCount = cpu_to_le16(count); CIFSSMBUnixSetPathInfo()
6132 pSMB->InformationLevel = cpu_to_le16(SMB_SET_FILE_UNIX_BASIC); CIFSSMBUnixSetPathInfo()
6138 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBUnixSetPathInfo()
6200 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBQAllEAs()
6202 pSMB->MaxDataCount = cpu_to_le16(CIFSMaxBufSize); CIFSSMBQAllEAs()
6208 pSMB->ParameterOffset = cpu_to_le16(offsetof( CIFSSMBQAllEAs()
6214 pSMB->SubCommand = cpu_to_le16(TRANS2_QUERY_PATH_INFORMATION); CIFSSMBQAllEAs()
6216 pSMB->TotalParameterCount = cpu_to_le16(params); CIFSSMBQAllEAs()
6218 pSMB->InformationLevel = cpu_to_le16(SMB_INFO_QUERY_ALL_EAS); CIFSSMBQAllEAs()
6221 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBQAllEAs()
6390 pSMB->MaxParameterCount = cpu_to_le16(2); CIFSSMBSetEA()
6392 pSMB->MaxDataCount = cpu_to_le16(1000); CIFSSMBSetEA()
6402 cpu_to_le16(SMB_SET_FILE_EA); CIFSSMBSetEA()
6407 pSMB->ParameterOffset = cpu_to_le16(param_offset); CIFSSMBSetEA()
6408 pSMB->DataOffset = cpu_to_le16(offset); CIFSSMBSetEA()
6411 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_PATH_INFORMATION); CIFSSMBSetEA()
6413 pSMB->DataCount = cpu_to_le16(count); CIFSSMBSetEA()
6422 parm_data->list[0].value_len = cpu_to_le16(ea_value_len); CIFSSMBSetEA()
6434 pSMB->ParameterCount = cpu_to_le16(params); CIFSSMBSetEA()
6438 pSMB->ByteCount = cpu_to_le16(byte_count); CIFSSMBSetEA()
6501 pSMB->SubCommand = cpu_to_le16(NT_TRANSACT_NOTIFY_CHANGE); CIFSSMBNotify()
H A Dsmb2misc.c72 /* SMB2_NEGOTIATE */ cpu_to_le16(65),
73 /* SMB2_SESSION_SETUP */ cpu_to_le16(9),
74 /* SMB2_LOGOFF */ cpu_to_le16(4),
75 /* SMB2_TREE_CONNECT */ cpu_to_le16(16),
76 /* SMB2_TREE_DISCONNECT */ cpu_to_le16(4),
77 /* SMB2_CREATE */ cpu_to_le16(89),
78 /* SMB2_CLOSE */ cpu_to_le16(60),
79 /* SMB2_FLUSH */ cpu_to_le16(4),
80 /* SMB2_READ */ cpu_to_le16(17),
81 /* SMB2_WRITE */ cpu_to_le16(17),
82 /* SMB2_LOCK */ cpu_to_le16(4),
83 /* SMB2_IOCTL */ cpu_to_le16(49),
85 /* SMB2_CANCEL */ cpu_to_le16(0),
86 /* SMB2_ECHO */ cpu_to_le16(4),
87 /* SMB2_QUERY_DIRECTORY */ cpu_to_le16(9),
88 /* SMB2_CHANGE_NOTIFY */ cpu_to_le16(9),
89 /* SMB2_QUERY_INFO */ cpu_to_le16(9),
90 /* SMB2_SET_INFO */ cpu_to_le16(2),
92 /* SMB2_OPLOCK_BREAK */ cpu_to_le16(24)
H A Dcifs_unicode.c383 dest_char = cpu_to_le16(UNI_COLON); convert_to_sfu_char()
386 dest_char = cpu_to_le16(UNI_ASTERISK); convert_to_sfu_char()
389 dest_char = cpu_to_le16(UNI_QUESTION); convert_to_sfu_char()
392 dest_char = cpu_to_le16(UNI_LESSTHAN); convert_to_sfu_char()
395 dest_char = cpu_to_le16(UNI_GRTRTHAN); convert_to_sfu_char()
398 dest_char = cpu_to_le16(UNI_PIPE); convert_to_sfu_char()
413 dest_char = cpu_to_le16(SFM_COLON); convert_to_sfm_char()
416 dest_char = cpu_to_le16(SFM_ASTERISK); convert_to_sfm_char()
419 dest_char = cpu_to_le16(SFM_QUESTION); convert_to_sfm_char()
422 dest_char = cpu_to_le16(SFM_LESSTHAN); convert_to_sfm_char()
425 dest_char = cpu_to_le16(SFM_GRTRTHAN); convert_to_sfm_char()
428 dest_char = cpu_to_le16(SFM_PIPE); convert_to_sfm_char()
483 dst_char = cpu_to_le16(tmp); cifsConvertToUTF16()
508 dst_char = cpu_to_le16(*wchar_to); cifsConvertToUTF16()
517 dst_char = cpu_to_le16(*(wchar_to + 1)); cifsConvertToUTF16()
523 dst_char = cpu_to_le16(*(wchar_to + 1)); cifsConvertToUTF16()
526 dst_char = cpu_to_le16(*(wchar_to + 2)); cifsConvertToUTF16()
533 dst_char = cpu_to_le16(0x003f); cifsConvertToUTF16()
H A Dsmb2pdu.h63 #define SMB2_NEGOTIATE cpu_to_le16(SMB2_NEGOTIATE_HE)
64 #define SMB2_SESSION_SETUP cpu_to_le16(SMB2_SESSION_SETUP_HE)
65 #define SMB2_LOGOFF cpu_to_le16(SMB2_LOGOFF_HE)
66 #define SMB2_TREE_CONNECT cpu_to_le16(SMB2_TREE_CONNECT_HE)
67 #define SMB2_TREE_DISCONNECT cpu_to_le16(SMB2_TREE_DISCONNECT_HE)
68 #define SMB2_CREATE cpu_to_le16(SMB2_CREATE_HE)
69 #define SMB2_CLOSE cpu_to_le16(SMB2_CLOSE_HE)
70 #define SMB2_FLUSH cpu_to_le16(SMB2_FLUSH_HE)
71 #define SMB2_READ cpu_to_le16(SMB2_READ_HE)
72 #define SMB2_WRITE cpu_to_le16(SMB2_WRITE_HE)
73 #define SMB2_LOCK cpu_to_le16(SMB2_LOCK_HE)
74 #define SMB2_IOCTL cpu_to_le16(SMB2_IOCTL_HE)
75 #define SMB2_CANCEL cpu_to_le16(SMB2_CANCEL_HE)
76 #define SMB2_ECHO cpu_to_le16(SMB2_ECHO_HE)
77 #define SMB2_QUERY_DIRECTORY cpu_to_le16(SMB2_QUERY_DIRECTORY_HE)
78 #define SMB2_CHANGE_NOTIFY cpu_to_le16(SMB2_CHANGE_NOTIFY_HE)
79 #define SMB2_QUERY_INFO cpu_to_le16(SMB2_QUERY_INFO_HE)
80 #define SMB2_SET_INFO cpu_to_le16(SMB2_SET_INFO_HE)
81 #define SMB2_OPLOCK_BREAK cpu_to_le16(SMB2_OPLOCK_BREAK_HE)
99 #define SMB2_HEADER_STRUCTURE_SIZE cpu_to_le16(64)
140 #define SMB2_ENCRYPTION_AES128_CCM cpu_to_le16(0x0001)
160 #define SMB2_ERROR_STRUCTURE_SIZE2 cpu_to_le16(9)
658 #define SMB2_CLOSE_FLAG_POSTQUERY_ATTRIB cpu_to_le16(0x0001)
H A Dsmb2pdu.c104 hdr->StructureSize = cpu_to_le16(64); smb2_hdr_assemble()
106 hdr->CreditRequest = cpu_to_le16(2); /* BB make this dynamic */ smb2_hdr_assemble()
116 hdr->CreditCharge = cpu_to_le16(1); smb2_hdr_assemble()
140 pdu->StructureSize2 = cpu_to_le16(parmsize); smb2_hdr_assemble()
349 req->Dialects[0] = cpu_to_le16(ses->server->vals->protocol_id); SMB2_negotiate()
351 req->DialectCount = cpu_to_le16(1); /* One vers= at a time for now */ SMB2_negotiate()
356 req->SecurityMode = cpu_to_le16(SMB2_NEGOTIATE_SIGNING_REQUIRED); SMB2_negotiate()
358 req->SecurityMode = cpu_to_le16(SMB2_NEGOTIATE_SIGNING_ENABLED); SMB2_negotiate()
389 if (rsp->DialectRevision == cpu_to_le16(SMB20_PROT_ID)) SMB2_negotiate()
391 else if (rsp->DialectRevision == cpu_to_le16(SMB21_PROT_ID)) SMB2_negotiate()
393 else if (rsp->DialectRevision == cpu_to_le16(SMB30_PROT_ID)) SMB2_negotiate()
395 else if (rsp->DialectRevision == cpu_to_le16(SMB302_PROT_ID)) SMB2_negotiate()
472 cpu_to_le16(SMB2_NEGOTIATE_SIGNING_REQUIRED); smb3_validate_negotiate()
475 cpu_to_le16(SMB2_NEGOTIATE_SIGNING_ENABLED); smb3_validate_negotiate()
479 vneg_inbuf.DialectCount = cpu_to_le16(1); smb3_validate_negotiate()
481 cpu_to_le16(tcon->ses->server->vals->protocol_id); smb3_validate_negotiate()
500 cpu_to_le16(tcon->ses->server->vals->protocol_id)) smb3_validate_negotiate()
503 if (pneg_rsp->SecurityMode != cpu_to_le16(tcon->ses->server->sec_mode)) smb3_validate_negotiate()
576 req->hdr.CreditRequest = cpu_to_le16(3); SMB2_sess_setup()
695 cpu_to_le16(sizeof(struct smb2_sess_setup_req) - SMB2_sess_setup()
697 req->SecurityBufferLength = cpu_to_le16(blob_length); SMB2_sess_setup()
895 req->PathOffset = cpu_to_le16(sizeof(struct smb2_tree_connect_req) SMB2_tcon()
897 req->PathLength = cpu_to_le16(unc_path_len - 2); SMB2_tcon()
1000 buf->ccontext.DataOffset = cpu_to_le16(offsetof create_durable_buf()
1003 buf->ccontext.NameOffset = cpu_to_le16(offsetof create_durable_buf()
1005 buf->ccontext.NameLength = cpu_to_le16(4); create_durable_buf()
1023 buf->ccontext.DataOffset = cpu_to_le16(offsetof create_reconnect_durable_buf()
1026 buf->ccontext.NameOffset = cpu_to_le16(offsetof create_reconnect_durable_buf()
1028 buf->ccontext.NameLength = cpu_to_le16(4); create_reconnect_durable_buf()
1162 req->NameOffset = cpu_to_le16(sizeof(struct smb2_create_req) - 4); SMB2_open()
1169 req->NameLength = cpu_to_le16(uni_path_len - 2); SMB2_open()
1414 cpu_to_le16(COMPRESSION_FORMAT_DEFAULT); SMB2_set_compression()
1558 cpu_to_le16(sizeof(struct smb2_query_info_req) - 1 - 4); query_info()
1639 req->hdr.CreditRequest = cpu_to_le16(1); SMB2_echo()
1849 buf->CreditCharge = cpu_to_le16(DIV_ROUND_UP(rdata->bytes, smb2_async_readv()
2009 req->DataOffset = cpu_to_le16( smb2_async_writev()
2032 req->hdr.CreditCharge = cpu_to_le16(DIV_ROUND_UP(wdata->bytes, smb2_async_writev()
2092 req->DataOffset = cpu_to_le16( SMB2_write()
2174 __le16 asteriks = cpu_to_le16('*'); SMB2_query_directory()
2213 cpu_to_le16(sizeof(struct smb2_query_directory_req) - 1 - 4); SMB2_query_directory()
2214 req->FileNameLength = cpu_to_le16(len); SMB2_query_directory()
2325 cpu_to_le16(sizeof(struct smb2_set_info_req) - 1 - 4); send_set_info()
2482 req->hdr.CreditRequest = cpu_to_le16(1); SMB2_oplock_break()
2529 cpu_to_le16(sizeof(struct smb2_query_info_req) - 1 - 4); build_qfs_info_req()
2657 req->LockCount = cpu_to_le16(num_lock); smb2_lockv()
2711 req->hdr.CreditRequest = cpu_to_le16(1); SMB2_lease_break()
2712 req->StructureSize = cpu_to_le16(36); SMB2_lease_break()
H A Dsess.c45 pSMB->req.MaxBufferSize = cpu_to_le16(min_t(u32, cifs_ssetup_hdr()
48 pSMB->req.MaxMpxCount = cpu_to_le16(ses->server->maxReq); cifs_ssetup_hdr()
49 pSMB->req.VcNumber = cpu_to_le16(1); cifs_ssetup_hdr()
414 cpu_to_le16(ses->auth_key.len - CIFS_SESS_KEY_SIZE); build_ntlmssp_auth_blob()
416 cpu_to_le16(ses->auth_key.len - CIFS_SESS_KEY_SIZE); build_ntlmssp_auth_blob()
436 sec_blob->DomainName.Length = cpu_to_le16(len); build_ntlmssp_auth_blob()
437 sec_blob->DomainName.MaximumLength = cpu_to_le16(len); build_ntlmssp_auth_blob()
452 sec_blob->UserName.Length = cpu_to_le16(len); build_ntlmssp_auth_blob()
453 sec_blob->UserName.MaximumLength = cpu_to_le16(len); build_ntlmssp_auth_blob()
467 sec_blob->SessionKey.Length = cpu_to_le16(CIFS_CPHTXT_SIZE); build_ntlmssp_auth_blob()
469 cpu_to_le16(CIFS_CPHTXT_SIZE); build_ntlmssp_auth_blob()
683 pSMB->old_req.PasswordLength = cpu_to_le16(CIFS_AUTH_RESP_SIZE); sess_auth_lanman()
786 cpu_to_le16(CIFS_AUTH_RESP_SIZE); sess_auth_ntlm()
788 cpu_to_le16(CIFS_AUTH_RESP_SIZE); sess_auth_ntlm()
914 cpu_to_le16(ses->auth_key.len - CIFS_SESS_KEY_SIZE); sess_auth_ntlmv2()
1040 pSMB->req.SecurityBlobLength = cpu_to_le16(sess_data->iov[1].iov_len); sess_auth_kerberos()
1199 pSMB->req.SecurityBlobLength = cpu_to_le16(sizeof(NEGOTIATE_MESSAGE)); sess_auth_rawntlmssp_negotiate()
1300 pSMB->req.SecurityBlobLength = cpu_to_le16(blob_len); sess_auth_rawntlmssp_authenticate()
/linux-4.1.27/drivers/net/wireless/p54/
H A Dfwio.c111 if (exp_if[i].if_id == cpu_to_le16(IF_ID_LMAC)) p54_parse_firmware()
209 hdr->flags = cpu_to_le16(hdr_flags); p54_alloc_skb()
210 hdr->len = cpu_to_le16(payload_len); p54_alloc_skb()
211 hdr->type = cpu_to_le16(type); p54_alloc_skb()
242 eeprom_hdr->v1.offset = cpu_to_le16(offset); p54_download_eeprom()
243 eeprom_hdr->v1.len = cpu_to_le16(len); p54_download_eeprom()
246 eeprom_hdr->v2.len = cpu_to_le16(len); p54_download_eeprom()
277 tim->entry[0] = cpu_to_le16(set ? (aid | 0x8000) : aid); p54_update_beacon_tim()
362 setup->mac_mode = cpu_to_le16(mode); p54_setup_mac()
371 setup->v1.max_rx = cpu_to_le16(priv->rx_mtu); p54_setup_mac()
372 setup->v1.rxhw = cpu_to_le16(priv->rxhw); p54_setup_mac()
373 setup->v1.wakeup_timer = cpu_to_le16(priv->wakeup_timer); p54_setup_mac()
374 setup->v1.unalloc0 = cpu_to_le16(0); p54_setup_mac()
377 setup->v2.max_rx = cpu_to_le16(priv->rx_mtu); p54_setup_mac()
378 setup->v2.rxhw = cpu_to_le16(priv->rxhw); p54_setup_mac()
379 setup->v2.timer = cpu_to_le16(priv->wakeup_timer); p54_setup_mac()
380 setup->v2.truncate = cpu_to_le16(48896); p54_setup_mac()
387 setup->v2.lpf_bandwidth = cpu_to_le16(65535); p54_setup_mac()
388 setup->v2.osc_start_delay = cpu_to_le16(65535); p54_setup_mac()
407 __le16 freq = cpu_to_le16(priv->hw->conf.chandef.chan->center_freq); p54_scan()
418 head->mode = cpu_to_le16(mode); p54_scan()
419 head->dwell = cpu_to_le16(dwell); p54_scan()
424 *pa_power_points = cpu_to_le16(0x0c); p54_scan()
511 rssi->mul = cpu_to_le16(rssi_data->mul); p54_scan()
512 rssi->add = cpu_to_le16(rssi_data->add); p54_scan()
516 rssi->mul = cpu_to_le16(rssi_data->longbow_unkn); p54_scan()
517 rssi->add = cpu_to_le16(rssi_data->longbow_unk2); p54_scan()
528 hdr->len = cpu_to_le16(skb->len - sizeof(*hdr)); p54_scan()
554 led->flags = cpu_to_le16(0x0003); p54_set_leds()
555 led->mask[0] = led->mask[1] = cpu_to_le16(priv->softled_state); p54_set_leds()
556 led->delay[0] = cpu_to_le16(1); p54_set_leds()
557 led->delay[1] = cpu_to_le16(0); p54_set_leds()
589 edcf->round_trip_delay = cpu_to_le16(rtd); p54_set_edcf()
591 edcf->frameburst = cpu_to_le16(0); p54_set_edcf()
619 psm->mode = cpu_to_le16(mode); p54_set_ps()
620 psm->aid = cpu_to_le16(priv->aid); p54_set_ps()
623 cpu_to_le16(priv->hw->conf.listen_interval); p54_set_ps()
624 psm->intervals[i].periods = cpu_to_le16(1); p54_set_ps()
648 xbow->magic1 = cpu_to_le16(0x1); p54_init_xbow_synth()
649 xbow->magic2 = cpu_to_le16(0x2); p54_init_xbow_synth()
650 xbow->freq = cpu_to_le16(5390); p54_init_xbow_synth()
754 grp->filter_enable = cpu_to_le16(1); p54_set_groupfilter()
755 grp->num_address = cpu_to_le16(priv->mc_maclist_num); p54_set_groupfilter()
758 grp->filter_enable = cpu_to_le16(0); p54_set_groupfilter()
759 grp->num_address = cpu_to_le16(0); p54_set_groupfilter()
H A Dp54spi.c66 addr = cpu_to_le16(address << 8 | SPI_ADRS_READ_BIT_15); p54spi_spi_read()
91 addr = cpu_to_le16(address << 8); p54spi_spi_write()
106 last_word = cpu_to_le16(((u8 *)buf)[len - 1]); p54spi_spi_write()
157 cpu_to_le16(SPI_DMA_WRITE_CTRL_ENABLE)); p54spi_spi_write_dma()
159 p54spi_write16(priv, SPI_ADRS_DMA_WRITE_LEN, cpu_to_le16(len)); p54spi_spi_write_dma()
228 p54spi_write16(priv, SPI_ADRS_DEV_CTRL_STAT, cpu_to_le16( p54spi_upload_firmware()
234 p54spi_write16(priv, SPI_ADRS_DEV_CTRL_STAT, cpu_to_le16( p54spi_upload_firmware()
260 p54spi_write16(priv, SPI_ADRS_DEV_CTRL_STAT, cpu_to_le16( p54spi_upload_firmware()
266 p54spi_write16(priv, SPI_ADRS_DEV_CTRL_STAT, cpu_to_le16( p54spi_upload_firmware()
H A Dp54.h106 queue.aifs = cpu_to_le16(ai_fs); \
107 queue.cwmin = cpu_to_le16(cw_min); \
108 queue.cwmax = cpu_to_le16(cw_max); \
109 queue.txop = cpu_to_le16(_txop); \
/linux-4.1.27/fs/udf/
H A Dmisc.c78 cpu_to_le16(TAG_IDENT_EAHD) || udf_add_extendedattr()
88 eahd->descTag.tagIdent = cpu_to_le16(TAG_IDENT_EAHD); udf_add_extendedattr()
90 eahd->descTag.descVersion = cpu_to_le16(3); udf_add_extendedattr()
92 eahd->descTag.descVersion = cpu_to_le16(2); udf_add_extendedattr()
94 cpu_to_le16(sbi->s_serial_number); udf_add_extendedattr()
137 eahd->descTag.descCRCLength = cpu_to_le16(crclen); udf_add_extendedattr()
138 eahd->descTag.descCRC = cpu_to_le16(crc_itu_t(0, (char *)eahd + udf_add_extendedattr()
166 cpu_to_le16(TAG_IDENT_EAHD) || udf_get_extendedattr()
238 if (tag_p->descVersion != cpu_to_le16(0x0002U) && udf_read_tagged()
239 tag_p->descVersion != cpu_to_le16(0x0003U)) { udf_read_tagged()
273 tptr->descCRCLength = cpu_to_le16(length); udf_update_tag()
274 tptr->descCRC = cpu_to_le16(crc_itu_t(0, data + sizeof(struct tag), length)); udf_update_tag()
282 tptr->tagIdent = cpu_to_le16(ident); udf_new_tag()
283 tptr->descVersion = cpu_to_le16(version); udf_new_tag()
284 tptr->tagSerialNum = cpu_to_le16(snum); udf_new_tag()
H A Dudfend.h22 out.partitionReferenceNum = cpu_to_le16(in.partitionReferenceNum); cpu_to_lelb()
H A Dinode.c1328 if (fe->icbTag.strategyType == cpu_to_le16(4096)) { udf_read_inode()
1355 } else if (fe->icbTag.strategyType != cpu_to_le16(4)) { udf_read_inode()
1360 if (fe->icbTag.strategyType == cpu_to_le16(4)) udf_read_inode()
1362 else /* if (fe->icbTag.strategyType == cpu_to_le16(4096)) */ udf_read_inode()
1373 if (fe->descTag.tagIdent == cpu_to_le16(TAG_IDENT_EFE)) { udf_read_inode()
1383 } else if (fe->descTag.tagIdent == cpu_to_le16(TAG_IDENT_FE)) { udf_read_inode()
1392 } else if (fe->descTag.tagIdent == cpu_to_le16(TAG_IDENT_USE)) { udf_read_inode()
1654 use->descTag.tagIdent = cpu_to_le16(TAG_IDENT_USE); udf_update_inode()
1659 use->descTag.descCRCLength = cpu_to_le16(crclen); udf_update_inode()
1660 use->descTag.descCRC = cpu_to_le16(crc_itu_t(0, (char *)use + udf_update_inode()
1689 fe->fileLinkCount = cpu_to_le16(inode->i_nlink - 1); udf_update_inode()
1691 fe->fileLinkCount = cpu_to_le16(inode->i_nlink); udf_update_inode()
1744 fe->descTag.tagIdent = cpu_to_le16(TAG_IDENT_FE); udf_update_inode()
1782 efe->descTag.tagIdent = cpu_to_le16(TAG_IDENT_EFE); udf_update_inode()
1786 fe->icbTag.strategyType = cpu_to_le16(4096); udf_update_inode()
1787 fe->icbTag.strategyParameter = cpu_to_le16(1); udf_update_inode()
1788 fe->icbTag.numEntries = cpu_to_le16(2); udf_update_inode()
1790 fe->icbTag.strategyType = cpu_to_le16(4); udf_update_inode()
1791 fe->icbTag.numEntries = cpu_to_le16(1); udf_update_inode()
1817 fe->icbTag.flags = cpu_to_le16(icbflags); udf_update_inode()
1819 fe->descTag.descVersion = cpu_to_le16(3); udf_update_inode()
1821 fe->descTag.descVersion = cpu_to_le16(2); udf_update_inode()
1822 fe->descTag.tagSerialNum = cpu_to_le16(sbi->s_serial_number); udf_update_inode()
1826 fe->descTag.descCRCLength = cpu_to_le16(crclen); udf_update_inode()
1827 fe->descTag.descCRC = cpu_to_le16(crc_itu_t(0, (char *)fe + sizeof(struct tag), udf_update_inode()
H A Dudftime.c131 dest->typeAndTimezone = cpu_to_le16(0x1000 | (offset & 0x0FFF)); udf_time_to_disk_stamp()
154 dest->year = cpu_to_le16(y); udf_time_to_disk_stamp()
/linux-4.1.27/drivers/staging/rtl8712/
H A Dwifi.h163 *(unsigned short *)(pbuf) |= cpu_to_le16(_TO_DS_); \
170 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_TO_DS_)); \
174 *(unsigned short *)(pbuf) |= cpu_to_le16(_FROM_DS_); \
181 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_FROM_DS_)); \
188 *(unsigned short *)(pbuf) |= cpu_to_le16(_MORE_FRAG_); \
195 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_MORE_FRAG_)); \
199 *(unsigned short *)(pbuf) |= cpu_to_le16(_RETRY_); \
206 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_RETRY_)); \
210 *(unsigned short *)(pbuf) |= cpu_to_le16(_PWRMGT_); \
217 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_PWRMGT_)); \
221 *(unsigned short *)(pbuf) |= cpu_to_le16(_MORE_DATA_); \
228 *(unsigned short *)(pbuf) &= (~cpu_to_le16(_MORE_DATA_)); \
232 *(unsigned short *)(pbuf) |= cpu_to_le16(_PRIVACY_); \
246 *(unsigned short *)(pbuf) &= cpu_to_le16(~(BIT(3) | \
248 *(unsigned short *)(pbuf) |= cpu_to_le16(type); \
251 #define GetFrameSubType(pbuf) (cpu_to_le16(*(unsigned short *)(pbuf)) & \
257 *(unsigned short *)(pbuf) &= cpu_to_le16(~(BIT(7) | BIT(6) | \
259 *(unsigned short *)(pbuf) |= cpu_to_le16(type); \
262 #define GetSequence(pbuf) (cpu_to_le16(*(unsigned short *)\
265 #define GetFragNum(pbuf) (cpu_to_le16(*(unsigned short *)((addr_t)\
277 cpu_to_le16(0xffff & (dur)); \
281 *(unsigned short *)(pbuf) |= cpu_to_le16(tid & 0xf); \
287 *(unsigned short *)(pbuf) |= cpu_to_le16((ack & 3) << 5); \
294 #define GetAid(pbuf) (cpu_to_le16(*(unsigned short *)((addr_t)(pbuf) + 2)) \
483 *(unsigned short *)(pbuf) |= cpu_to_le16(_ORDER_); \
H A Dieee80211.c182 *(u16 *)ie = cpu_to_le16((u16)pdev_network->Configuration.BeaconPeriod); r8712_generate_ie()
187 *(u16 *)ie |= cpu_to_le16(cap_IBSS); r8712_generate_ie()
189 *(u16 *)ie |= cpu_to_le16(cap_ShortPremble); r8712_generate_ie()
191 *(u16 *)ie |= cpu_to_le16(cap_Privacy); r8712_generate_ie()
/linux-4.1.27/drivers/net/wireless/libertas/
H A Dcmd.c97 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_update_hw_spec()
197 cmd_config.hdr.size = cpu_to_le16(sizeof(cmd_config)); lbs_host_sleep_cfg()
242 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_set_ps_mode()
243 cmd.action = cpu_to_le16(cmd_action); lbs_set_ps_mode()
247 cmd.multipledtim = cpu_to_le16(1); /* Default DTIM multiple */ lbs_set_ps_mode()
280 cmd.error = cpu_to_le16(sp->sp_error); lbs_cmd_802_11_sleep_params()
281 cmd.offset = cpu_to_le16(sp->sp_offset); lbs_cmd_802_11_sleep_params()
282 cmd.stabletime = cpu_to_le16(sp->sp_stabletime); lbs_cmd_802_11_sleep_params()
285 cmd.reserved = cpu_to_le16(sp->sp_reserved); lbs_cmd_802_11_sleep_params()
287 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_cmd_802_11_sleep_params()
288 cmd.action = cpu_to_le16(cmd_action); lbs_cmd_802_11_sleep_params()
444 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_set_snmp_mib()
445 cmd.action = cpu_to_le16(CMD_ACT_SET); lbs_set_snmp_mib()
446 cmd.oid = cpu_to_le16((u16) oid); lbs_set_snmp_mib()
450 cmd.bufsize = cpu_to_le16(sizeof(u8)); lbs_set_snmp_mib()
458 cmd.bufsize = cpu_to_le16(sizeof(u16)); lbs_set_snmp_mib()
459 *((__le16 *)(&cmd.value)) = cpu_to_le16(val); lbs_set_snmp_mib()
494 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_get_snmp_mib()
495 cmd.action = cpu_to_le16(CMD_ACT_GET); lbs_get_snmp_mib()
496 cmd.oid = cpu_to_le16(oid); lbs_get_snmp_mib()
539 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_get_tx_power()
540 cmd.action = cpu_to_le16(CMD_ACT_GET); lbs_get_tx_power()
571 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_set_tx_power()
572 cmd.action = cpu_to_le16(CMD_ACT_SET); lbs_set_tx_power()
573 cmd.curlevel = cpu_to_le16(dbm); lbs_set_tx_power()
598 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_set_monitor_mode()
599 cmd.action = cpu_to_le16(CMD_ACT_SET); lbs_set_monitor_mode()
601 cmd.mode = cpu_to_le16(0x1); lbs_set_monitor_mode()
630 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_get_channel()
631 cmd.action = cpu_to_le16(CMD_OPT_802_11_RF_CHANNEL_GET); lbs_get_channel()
680 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_set_channel()
681 cmd.action = cpu_to_le16(CMD_OPT_802_11_RF_CHANNEL_SET); lbs_set_channel()
682 cmd.channel = cpu_to_le16(channel); lbs_set_channel()
717 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_get_rssi()
719 cmd.n_or_snr = cpu_to_le16(8); lbs_get_rssi()
760 cmd.action = cpu_to_le16(CMD_ACT_SET); lbs_set_11d_domain_info()
765 domain->header.type = cpu_to_le16(TLV_TYPE_DOMAIN); lbs_set_11d_domain_info()
836 domain->header.len = cpu_to_le16(sizeof(domain->country_code) + lbs_set_11d_domain_info()
843 cmd.hdr.size = cpu_to_le16(sizeof(cmd.hdr) + lbs_set_11d_domain_info()
877 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_get_reg()
878 cmd.action = cpu_to_le16(CMD_ACT_GET); lbs_get_reg()
879 cmd.offset = cpu_to_le16(offset); lbs_get_reg()
920 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_set_reg()
921 cmd.action = cpu_to_le16(CMD_ACT_SET); lbs_set_reg()
922 cmd.offset = cpu_to_le16(offset); lbs_set_reg()
962 if (psm->action == cpu_to_le16(PS_MODE_ACTION_EXIT_PS)) { lbs_queue_cmd()
1003 cmd->seqnum = cpu_to_le16(priv->seqnum); lbs_submit_command()
1112 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_set_radio()
1113 cmd.action = cpu_to_le16(CMD_ACT_SET); lbs_set_radio()
1122 cmd.control = cpu_to_le16(preamble); lbs_set_radio()
1130 cmd.control |= cpu_to_le16(0x1); lbs_set_radio()
1132 cmd.control &= cpu_to_le16(~0x1); lbs_set_radio()
1154 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_set_mac_control()
1155 cmd.action = cpu_to_le16(priv->mac_control); lbs_set_mac_control()
1170 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_set_mac_control_sync()
1171 cmd.action = cpu_to_le16(priv->mac_control); lbs_set_mac_control_sync()
1368 if (cmd->command != cpu_to_le16(CMD_802_11_PS_MODE)) { lbs_execute_next_command()
1396 cpu_to_le16(PS_MODE_ACTION_EXIT_PS)) { lbs_execute_next_command()
1573 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_set_tpc_cfg()
1574 cmd.action = cpu_to_le16(CMD_ACT_SET); lbs_set_tpc_cfg()
1605 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_set_power_adapt_cfg()
1606 cmd.action = cpu_to_le16(CMD_ACT_SET); lbs_set_power_adapt_cfg()
1661 cmdnode->cmdbuf->command = cpu_to_le16(command); __lbs_cmd_async()
1662 cmdnode->cmdbuf->size = cpu_to_le16(in_cmd_size); __lbs_cmd_async()
H A Dethtool.c52 cmd.hdr.size = cpu_to_le16(sizeof(struct cmd_ds_802_11_eeprom_access) - lbs_ethtool_get_eeprom()
54 cmd.action = cpu_to_le16(CMD_ACT_GET); lbs_ethtool_get_eeprom()
55 cmd.offset = cpu_to_le16(eeprom->offset); lbs_ethtool_get_eeprom()
56 cmd.len = cpu_to_le16(eeprom->len); lbs_ethtool_get_eeprom()
H A Dcfg.c173 ssid_tlv->header.type = cpu_to_le16(TLV_TYPE_SSID); lbs_add_ssid_tlv()
174 ssid_tlv->header.len = cpu_to_le16(ssid_len); lbs_add_ssid_tlv()
210 header->type = cpu_to_le16(TLV_TYPE_CHANLIST); lbs_add_channel_list_tlv()
211 header->len = cpu_to_le16(chanscanparamsize); lbs_add_channel_list_tlv()
225 param->maxscantime = cpu_to_le16(LBS_DWELL_ACTIVE); lbs_add_channel_list_tlv()
228 param->maxscantime = cpu_to_le16(LBS_DWELL_PASSIVE); lbs_add_channel_list_tlv()
260 rate_tlv->header.type = cpu_to_le16(TLV_TYPE_RATES); lbs_add_supported_rates_tlv()
264 rate_tlv->header.len = cpu_to_le16(i); lbs_add_supported_rates_tlv()
310 rate_tlv->header.type = cpu_to_le16(TLV_TYPE_RATES); lbs_add_common_rates_tlv()
331 rate_tlv->header.len = cpu_to_le16(n); lbs_add_common_rates_tlv()
353 auth->header.type = cpu_to_le16(TLV_TYPE_AUTH_TYPE); lbs_add_auth_type_tlv()
354 auth->header.len = cpu_to_le16(sizeof(*auth)-sizeof(auth->header)); lbs_add_auth_type_tlv()
355 auth->auth = cpu_to_le16(lbs_auth_to_authtype(auth_type)); lbs_add_auth_type_tlv()
375 ds->header.type = cpu_to_le16(TLV_TYPE_PHY_DS); lbs_add_channel_tlv()
376 ds->header.len = cpu_to_le16(sizeof(*ds)-sizeof(ds->header)); lbs_add_channel_tlv()
400 cf->header.type = cpu_to_le16(TLV_TYPE_CF); lbs_add_cf_param_tlv()
401 cf->header.len = cpu_to_le16(sizeof(*cf)-sizeof(cf->header)); lbs_add_cf_param_tlv()
740 scan_cmd->hdr.size = cpu_to_le16(tlv - (u8 *)scan_cmd); lbs_scan_worker()
885 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_remove_wep_keys()
886 cmd.keyindex = cpu_to_le16(priv->wep_tx_key); lbs_remove_wep_keys()
887 cmd.action = cpu_to_le16(CMD_ACT_REMOVE); lbs_remove_wep_keys()
929 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_set_wep_keys()
930 cmd.keyindex = cpu_to_le16(priv->wep_tx_key); lbs_set_wep_keys()
931 cmd.action = cpu_to_le16(CMD_ACT_ADD); lbs_set_wep_keys()
979 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_enable_rsn()
980 cmd.action = cpu_to_le16(CMD_ACT_SET); lbs_enable_rsn()
981 cmd.enable = cpu_to_le16(enable); lbs_enable_rsn()
1031 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_set_key_material()
1032 cmd.action = cpu_to_le16(CMD_ACT_SET); lbs_set_key_material()
1033 cmd.param.type = cpu_to_le16(TLV_TYPE_KEY_MATERIAL); lbs_set_key_material()
1034 cmd.param.length = cpu_to_le16(sizeof(cmd.param) - 4); lbs_set_key_material()
1035 cmd.param.keytypeid = cpu_to_le16(key_type); lbs_set_key_material()
1036 cmd.param.keyinfo = cpu_to_le16(key_info); lbs_set_key_material()
1037 cmd.param.keylen = cpu_to_le16(key_len); lbs_set_key_material()
1072 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_set_authtype()
1134 cmd->hdr.command = cpu_to_le16(CMD_802_11_ASSOCIATE); lbs_associate()
1138 cmd->listeninterval = cpu_to_le16(MRVDRV_DEFAULT_LISTEN_INTERVAL); lbs_associate()
1139 cmd->capability = cpu_to_le16(bss->capability); lbs_associate()
1174 cmd->hdr.size = cpu_to_le16(len); lbs_associate()
1450 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_disconnect()
1453 cmd.reasoncode = cpu_to_le16(reason); lbs_disconnect()
1826 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_ibss_join_existing()
1831 cmd.bss.beaconperiod = cpu_to_le16(params->beacon_interval); lbs_ibss_join_existing()
1838 cmd.bss.capability = cpu_to_le16(bss->capability & CAPINFO_MASK); lbs_ibss_join_existing()
1867 cmd.failtimeout = cpu_to_le16(MRVDRV_ASSOCIATION_TIME_OUT); lbs_ibss_join_existing()
1868 cmd.probedelay = cpu_to_le16(CMD_SCAN_PROBE_DELAY_TIME); lbs_ibss_join_existing()
1937 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_ibss_start_new()
1940 cmd.beaconperiod = cpu_to_le16(params->beacon_interval); lbs_ibss_start_new()
1949 cmd.probedelay = cpu_to_le16(CMD_SCAN_PROBE_DELAY_TIME); lbs_ibss_start_new()
1952 cmd.capability = cpu_to_le16(capability); lbs_ibss_start_new()
2030 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbs_leave_ibss()
H A Dmesh.c31 cmd->hdr.command = cpu_to_le16(CMD_MESH_ACCESS); lbs_mesh_access()
32 cmd->hdr.size = cpu_to_le16(sizeof(*cmd)); lbs_mesh_access()
35 cmd->action = cpu_to_le16(cmd_action); lbs_mesh_access()
60 cmd->hdr.command = cpu_to_le16(command); __lbs_mesh_config_send()
61 cmd->hdr.size = cpu_to_le16(sizeof(struct cmd_ds_mesh_config)); __lbs_mesh_config_send()
64 cmd->type = cpu_to_le16(type); __lbs_mesh_config_send()
65 cmd->action = cpu_to_le16(action); __lbs_mesh_config_send()
98 cmd.channel = cpu_to_le16(chan); lbs_mesh_config()
117 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie_val)); lbs_mesh_config()
390 cmd.length = cpu_to_le16(sizeof(uint32_t)); bootflag_set()
449 cmd.length = cpu_to_le16(sizeof(uint8_t)); boottime_set()
498 *((__le16 *)&cmd.data[0]) = cpu_to_le16(datum); channel_set()
499 cmd.length = cpu_to_le16(sizeof(uint16_t)); channel_set()
563 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie)); mesh_id_set()
628 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie)); protocol_id_set()
689 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie)); metric_id_set()
750 cmd.length = cpu_to_le16(sizeof(struct mrvl_meshie)); capability_set()
H A Ddebugfs.c214 if (tlv_h->type == cpu_to_le16(tlv_type)) lbs_tlv_find()
248 subscribed->hdr.size = cpu_to_le16(sizeof(*subscribed)); lbs_threshold_read()
249 subscribed->action = cpu_to_le16(CMD_ACT_GET); lbs_threshold_read()
310 events->hdr.size = cpu_to_le16(sizeof(*events)); lbs_threshold_write()
311 events->action = cpu_to_le16(CMD_ACT_GET); lbs_threshold_write()
328 events->action = cpu_to_le16(CMD_ACT_SET); lbs_threshold_write()
329 events->events = cpu_to_le16(new_mask); lbs_threshold_write()
330 tlv->header.type = cpu_to_le16(tlv_type); lbs_threshold_write()
331 tlv->header.len = cpu_to_le16(sizeof(*tlv) - sizeof(tlv->header)); lbs_threshold_write()
337 events->hdr.size = cpu_to_le16(sizeof(events->hdr) + 4 + sizeof(*tlv)); lbs_threshold_write()
/linux-4.1.27/arch/mips/include/asm/mach-ip27/
H A Dmangle-port.h19 # define __mem_ioswabw(a, x) cpu_to_le16(x)
/linux-4.1.27/arch/mips/include/asm/mach-ip32/
H A Dmangle-port.h20 # define __mem_ioswabw(a, x) cpu_to_le16(x)
/linux-4.1.27/fs/ext4/
H A Dbitmap.c51 gdp->bg_inode_bitmap_csum_lo = cpu_to_le16(csum & 0xFFFF); ext4_inode_bitmap_csum_set()
53 gdp->bg_inode_bitmap_csum_hi = cpu_to_le16(csum >> 16); ext4_inode_bitmap_csum_set()
94 gdp->bg_block_bitmap_csum_lo = cpu_to_le16(csum & 0xFFFF); ext4_block_bitmap_csum_set()
96 gdp->bg_block_bitmap_csum_hi = cpu_to_le16(csum >> 16); ext4_block_bitmap_csum_set()
H A Dext4_extents.h105 #define EXT4_EXT_MAGIC cpu_to_le16(0xf30a)
195 ext->ee_len |= cpu_to_le16(EXT_INIT_MAX_LEN); ext4_ext_mark_unwritten()
213 ext->ee_len = cpu_to_le16(ext4_ext_get_actual_len(ext)); ext4_ext_mark_initialized()
251 ex->ee_start_hi = cpu_to_le16((unsigned long) ((pb >> 31) >> 1) & ext4_ext_store_pblock()
264 ix->ei_leaf_hi = cpu_to_le16((unsigned long) ((pb >> 31) >> 1) & ext4_idx_store_pblock()
H A Dacl.c105 entry->e_tag = cpu_to_le16(acl_e->e_tag); ext4_acl_to_disk()
106 entry->e_perm = cpu_to_le16(acl_e->e_perm); ext4_acl_to_disk()
/linux-4.1.27/drivers/net/wireless/libertas_tf/
H A Dcmd.c92 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbtf_update_hw_spec()
160 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbtf_set_channel()
161 cmd.action = cpu_to_le16(CMD_OPT_802_11_RF_CHANNEL_SET); lbtf_set_channel()
162 cmd.channel = cpu_to_le16(channel); lbtf_set_channel()
181 cmd.hdr.size = cpu_to_le16(size); lbtf_beacon_set()
182 cmd.len = cpu_to_le16(beacon->len); lbtf_beacon_set()
197 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbtf_beacon_ctrl()
198 cmd.action = cpu_to_le16(CMD_ACT_SET); lbtf_beacon_ctrl()
199 cmd.beacon_enable = cpu_to_le16(beacon_enable); lbtf_beacon_ctrl()
200 cmd.beacon_period = cpu_to_le16(beacon_int); lbtf_beacon_ctrl()
326 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbtf_cmd_set_mac_multicast_addr()
327 cmd.action = cpu_to_le16(CMD_ACT_SET); lbtf_cmd_set_mac_multicast_addr()
329 cmd.nr_of_adrs = cpu_to_le16((u16) priv->nr_of_multicastmacaddr); lbtf_cmd_set_mac_multicast_addr()
347 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbtf_set_mode()
348 cmd.mode = cpu_to_le16(mode); lbtf_set_mode()
360 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbtf_set_bssid()
374 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbtf_set_mac_address()
375 cmd.action = cpu_to_le16(CMD_ACT_SET); lbtf_set_mac_address()
391 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbtf_set_radio_control()
392 cmd.action = cpu_to_le16(CMD_ACT_SET); lbtf_set_radio_control()
396 cmd.control = cpu_to_le16(SET_SHORT_PREAMBLE); lbtf_set_radio_control()
400 cmd.control = cpu_to_le16(SET_LONG_PREAMBLE); lbtf_set_radio_control()
405 cmd.control = cpu_to_le16(SET_AUTO_PREAMBLE); lbtf_set_radio_control()
410 cmd.control |= cpu_to_le16(TURN_ON_RF); lbtf_set_radio_control()
412 cmd.control &= cpu_to_le16(~TURN_ON_RF); lbtf_set_radio_control()
428 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); lbtf_set_mac_control()
429 cmd.action = cpu_to_le16(priv->mac_control); lbtf_set_mac_control()
641 cmdnode->cmdbuf->command = cpu_to_le16(command); __lbtf_cmd_async()
642 cmdnode->cmdbuf->size = cpu_to_le16(in_cmd_size); __lbtf_cmd_async()
643 cmdnode->cmdbuf->seqnum = cpu_to_le16(priv->seqnum); __lbtf_cmd_async()
756 if (resp->result == cpu_to_le16(0x0004)) { lbtf_process_rx_command()
/linux-4.1.27/drivers/media/usb/as102/
H A Das10x_cmd_cfg.c46 pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT); as10x_cmd_get_context()
47 pcmd->body.context.req.tag = cpu_to_le16(tag); as10x_cmd_get_context()
48 pcmd->body.context.req.type = cpu_to_le16(GET_CONTEXT_DATA); as10x_cmd_get_context()
102 pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT); as10x_cmd_set_context()
105 pcmd->body.context.req.tag = cpu_to_le16(tag); as10x_cmd_set_context()
106 pcmd->body.context.req.type = cpu_to_le16(SET_CONTEXT_DATA); as10x_cmd_set_context()
157 cpu_to_le16(CONTROL_PROC_ELNA_CHANGE_MODE); as10x_cmd_eLNA_change_mode()
H A Das10x_cmd_stream.c42 cpu_to_le16(CONTROL_PROC_SETFILTER); as10x_cmd_add_PID_filter()
43 pcmd->body.add_pid_filter.req.pid = cpu_to_le16(filter->pid); as10x_cmd_add_PID_filter()
99 cpu_to_le16(CONTROL_PROC_REMOVEFILTER); as10x_cmd_del_PID_filter()
100 pcmd->body.del_pid_filter.req.pid = cpu_to_le16(pid_value); as10x_cmd_del_PID_filter()
143 cpu_to_le16(CONTROL_PROC_START_STREAMING); as10x_cmd_start_streaming()
186 cpu_to_le16(CONTROL_PROC_STOP_STREAMING); as10x_cmd_stop_streaming()
H A Das10x_cmd.c40 pcmd->body.turn_on.req.proc_id = cpu_to_le16(CONTROL_PROC_TURNON); as10x_cmd_turn_on()
81 pcmd->body.turn_off.req.proc_id = cpu_to_le16(CONTROL_PROC_TURNOFF); as10x_cmd_turn_off()
123 preq->body.set_tune.req.proc_id = cpu_to_le16(CONTROL_PROC_SETTUNE); as10x_cmd_set_tune()
179 cpu_to_le16(CONTROL_PROC_GETTUNESTAT); as10x_cmd_get_tune_status()
231 cpu_to_le16(CONTROL_PROC_GETTPS); as10x_cmd_get_tps()
290 cpu_to_le16(CONTROL_PROC_GET_DEMOD_STATS); as10x_cmd_get_demod_stats()
350 cpu_to_le16(CONTROL_PROC_GET_IMPULSE_RESP); as10x_cmd_get_impulse_resp()
387 pcmd->header.req_id = cpu_to_le16(xid); as10x_cmd_build()
388 pcmd->header.prog = cpu_to_le16(SERVICE_PROG_ID); as10x_cmd_build()
389 pcmd->header.version = cpu_to_le16(SERVICE_PROG_VERSION); as10x_cmd_build()
390 pcmd->header.data_len = cpu_to_le16(cmd_len); as10x_cmd_build()
/linux-4.1.27/drivers/staging/vt6655/
H A Drxtx.c157 return cpu_to_le16(wTimeStampOff[priv->byPreambleType % 2] vnt_time_stamp_off()
193 return cpu_to_le16((u16)s_uGetTxRsvTime(priv, pkt_type, vnt_rxtx_rsvtime_le16()
227 return cpu_to_le16((u16)uRrvTime); s_uGetRTSCTSRsvTime()
232 return cpu_to_le16((u16)uRrvTime); s_uGetRTSCTSRsvTime()
485 return cpu_to_le16((u16)uDurTime); s_uGetRTSCTSDuration()
522 __le16 dur = cpu_to_le16(pDevice->current_aid | BIT(14) | BIT(15)); s_uFillDataHead()
529 cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameLength, s_uFillDataHead()
534 cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_B, cbFrameLength, s_uFillDataHead()
555 buf->duration_a = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameLength, byPktType, s_uFillDataHead()
557 buf->duration_b = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_B, cbFrameLength, PK_TYPE_11B, s_uFillDataHead()
559 buf->duration_a_f0 = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A_F0, cbFrameLength, byPktType, s_uFillDataHead()
561 buf->duration_a_f1 = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A_F1, cbFrameLength, byPktType, s_uFillDataHead()
578 buf->duration = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameLength, byPktType, s_uFillDataHead()
580 buf->duration_f0 = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A_F0, cbFrameLength, byPktType, s_uFillDataHead()
582 buf->duration_f1 = cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A_F1, cbFrameLength, byPktType, s_uFillDataHead()
593 __le16 dur = cpu_to_le16(pDevice->current_aid | BIT(14) | BIT(15)); s_uFillDataHead()
599 cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_A, cbFrameLength, byPktType, s_uFillDataHead()
615 __le16 dur = cpu_to_le16(pDevice->current_aid | BIT(14) | BIT(15)); s_uFillDataHead()
621 cpu_to_le16((u16)s_uGetDataDuration(pDevice, DATADUR_B, cbFrameLength, byPktType, s_uFillDataHead()
692 cpu_to_le16(IEEE80211_FTYPE_CTL | s_vFillRTSHead()
746 cpu_to_le16(IEEE80211_FTYPE_CTL | s_vFillRTSHead()
768 cpu_to_le16(IEEE80211_FTYPE_CTL | s_vFillRTSHead()
798 cpu_to_le16(IEEE80211_FTYPE_CTL | s_vFillRTSHead()
819 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_RTS); s_vFillRTSHead()
884 cpu_to_le16(IEEE80211_FTYPE_CTL | s_vFillCTSHead()
909 cpu_to_le16(IEEE80211_FTYPE_CTL | s_vFillCTSHead()
962 tx_buffer_head->current_rate = cpu_to_le16(wCurrentRate); s_vGenerateTxParameter()
1262 mic_hdr->frame_control = cpu_to_le16( vnt_fill_txkey()
1264 mic_hdr->seq_ctrl = cpu_to_le16( vnt_fill_txkey()
1325 tx_buffer_head->fifo_ctl = cpu_to_le16(FIFOCTL_11B); vnt_generate_fifo_header()
1327 tx_buffer_head->fifo_ctl = cpu_to_le16(FIFOCTL_11GB); vnt_generate_fifo_header()
1329 tx_buffer_head->fifo_ctl = cpu_to_le16(FIFOCTL_11GA); vnt_generate_fifo_header()
1332 tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_GENINT); vnt_generate_fifo_header()
1335 tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_TMOEN); vnt_generate_fifo_header()
1336 tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_ISDMA0); vnt_generate_fifo_header()
1338 cpu_to_le16(DEFAULT_MGN_LIFETIME_RES_64us); vnt_generate_fifo_header()
1341 cpu_to_le16(DEFAULT_MSDU_LIFETIME_RES_64us); vnt_generate_fifo_header()
1345 tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_NEEDACK); vnt_generate_fifo_header()
1348 tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_LRETRY); vnt_generate_fifo_header()
1356 tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_RTS); vnt_generate_fifo_header()
1359 tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_LHEAD); vnt_generate_fifo_header()
1367 cpu_to_le16(ieee80211_get_hdrlen_from_skb(skb) << 10); vnt_generate_fifo_header()
1375 tx_buffer_head->frag_ctl |= cpu_to_le16(FRAGCTL_LEGACY); vnt_generate_fifo_header()
1378 tx_buffer_head->frag_ctl |= cpu_to_le16(FRAGCTL_TKIP); vnt_generate_fifo_header()
1381 tx_buffer_head->frag_ctl |= cpu_to_le16(FRAGCTL_AES); vnt_generate_fifo_header()
1387 tx_buffer_head->current_rate = cpu_to_le16(current_rate); vnt_generate_fifo_header()
1393 cpu_to_le16(FIFOCTL_AUTO_FB_0); vnt_generate_fifo_header()
1396 cpu_to_le16(FIFOCTL_AUTO_FB_1); vnt_generate_fifo_header()
1400 tx_buffer_head->frag_ctl |= cpu_to_le16(FRAGCTL_NONFRAG); vnt_generate_fifo_header()
1437 cpu_to_le16((u16)s_uGetDataDuration(priv, DATADUR_B, vnt_beacon_xmit()
1445 short_head->fifo_ctl |= cpu_to_le16(FIFOCTL_11B); vnt_beacon_xmit()
1453 cpu_to_le16((u16)s_uGetDataDuration(priv, DATADUR_B, vnt_beacon_xmit()
1461 short_head->fifo_ctl |= cpu_to_le16(FIFOCTL_GENINT); vnt_beacon_xmit()
1474 hdr->seq_ctrl = cpu_to_le16(priv->wSeqCounter << 4); vnt_beacon_xmit()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
H A Dpower.c139 if (!(cmd->flags & cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) { iwl_mvm_power_log()
148 if (cmd->flags & cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK)) iwl_mvm_power_log()
151 if (cmd->flags & cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK)) iwl_mvm_power_log()
154 if (cmd->flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK)) { iwl_mvm_power_log()
180 cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK); iwl_mvm_power_configure_uapsd()
204 if (!(cmd->flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) { iwl_mvm_power_configure_uapsd()
209 cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK); iwl_mvm_power_configure_uapsd()
214 cmd->flags |= cpu_to_le16(POWER_FLAGS_UAPSD_MISBEHAVING_ENA_MSK); iwl_mvm_power_configure_uapsd()
220 cmd->flags |= cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK); iwl_mvm_power_configure_uapsd()
221 cmd->snooze_interval = cpu_to_le16(IWL_MVM_PS_SNOOZE_INTERVAL); iwl_mvm_power_configure_uapsd()
223 cpu_to_le16(IWL_MVM_WOWLAN_PS_SNOOZE_WINDOW) : iwl_mvm_power_configure_uapsd()
224 cpu_to_le16(IWL_MVM_PS_SNOOZE_WINDOW); iwl_mvm_power_configure_uapsd()
230 cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK)) { iwl_mvm_power_configure_uapsd()
242 if (cmd->flags & cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK)) { iwl_mvm_power_configure_uapsd()
353 cmd->keep_alive_seconds = cpu_to_le16(keep_alive); iwl_mvm_power_build_cmd()
358 cmd->flags |= cpu_to_le16(POWER_FLAGS_POWER_SAVE_ENA_MSK); iwl_mvm_power_build_cmd()
364 cmd->flags |= cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK); iwl_mvm_power_build_cmd()
369 cmd->flags |= cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK); iwl_mvm_power_build_cmd()
384 cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK); iwl_mvm_power_build_cmd()
405 cpu_to_le16(mvmvif->dbgfs_pm.keep_alive_seconds); iwl_mvm_power_build_cmd()
409 cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK); iwl_mvm_power_build_cmd()
412 cpu_to_le16(~POWER_FLAGS_SKIP_OVER_DTIM_MSK); iwl_mvm_power_build_cmd()
424 cmd->flags |= cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK); iwl_mvm_power_build_cmd()
426 cmd->flags &= cpu_to_le16(~POWER_FLAGS_LPRX_ENA_MSK); iwl_mvm_power_build_cmd()
433 cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK); iwl_mvm_power_build_cmd()
436 cpu_to_le16(~POWER_FLAGS_SNOOZE_ENA_MSK); iwl_mvm_power_build_cmd()
441 cmd->flags |= cpu_to_le16(flag); iwl_mvm_power_build_cmd()
443 cmd->flags &= cpu_to_le16(flag); iwl_mvm_power_build_cmd()
466 .flags = cpu_to_le16(DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK), iwl_mvm_power_update_device()
473 cmd.flags |= cpu_to_le16(DEVICE_POWER_FLAGS_CAM_MSK); iwl_mvm_power_update_device()
479 cpu_to_le16(~DEVICE_POWER_FLAGS_POWER_SAVE_ENA_MSK); iwl_mvm_power_update_device()
710 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) iwl_mvm_power_mac_dbgfs_read()
715 cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK)) ? 1 : 0); iwl_mvm_power_mac_dbgfs_read()
718 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) { iwl_mvm_power_mac_dbgfs_read()
724 if (cmd.flags & cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK)) iwl_mvm_power_mac_dbgfs_read()
729 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK))) iwl_mvm_power_mac_dbgfs_read()
751 cpu_to_le16(POWER_FLAGS_UAPSD_MISBEHAVING_ENA_MSK)) ? iwl_mvm_power_mac_dbgfs_read()
754 if (!(cmd.flags & cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK))) iwl_mvm_power_mac_dbgfs_read()
1007 cmd.flags |= cpu_to_le16( iwl_mvm_update_d0i3_power_mode()
H A Dscan.c116 return cpu_to_le16(rx_chain); iwl_mvm_scan_rx_chain()
664 cpu_to_le16(channels[i]->hw_value); iwl_mvm_lmac_scan_cfg_channels()
665 channel_cfg[i].iter_count = cpu_to_le16(1); iwl_mvm_lmac_scan_cfg_channels()
729 frame->frame_control = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); iwl_mvm_build_unified_scan_probe()
739 preq->mac_header.len = cpu_to_le16(24 + 2); iwl_mvm_build_unified_scan_probe()
746 preq->band_data[0].offset = cpu_to_le16(pos - preq->buf); iwl_mvm_build_unified_scan_probe()
747 preq->band_data[0].len = cpu_to_le16(newpos - pos); iwl_mvm_build_unified_scan_probe()
752 preq->band_data[1].offset = cpu_to_le16(pos - preq->buf); iwl_mvm_build_unified_scan_probe()
753 preq->band_data[1].len = cpu_to_le16(ies->len[IEEE80211_BAND_5GHZ]); iwl_mvm_build_unified_scan_probe()
757 preq->common_data.offset = cpu_to_le16(pos - preq->buf); iwl_mvm_build_unified_scan_probe()
758 preq->common_data.len = cpu_to_le16(ies->common_ie_len); iwl_mvm_build_unified_scan_probe()
855 cpu_to_le16(IWL_SCAN_CHANNEL_FLAG_EBS | iwl_mvm_unified_scan_lmac()
859 cpu_to_le16(IWL_DENSE_EBS_SCAN_RATIO); iwl_mvm_unified_scan_lmac()
861 cpu_to_le16(IWL_SCAN_CHANNEL_FLAG_EBS | iwl_mvm_unified_scan_lmac()
865 cpu_to_le16(IWL_SPARSE_EBS_SCAN_RATIO); iwl_mvm_unified_scan_lmac()
967 cmd->schedule[0].delay = cpu_to_le16(req->interval / MSEC_PER_SEC); iwl_mvm_unified_sched_scan_lmac()
971 cmd->schedule[1].delay = cpu_to_le16(req->interval / MSEC_PER_SEC); iwl_mvm_unified_sched_scan_lmac()
978 cpu_to_le16(IWL_SCAN_CHANNEL_FLAG_EBS | iwl_mvm_unified_sched_scan_lmac()
982 cpu_to_le16(IWL_DENSE_EBS_SCAN_RATIO); iwl_mvm_unified_sched_scan_lmac()
984 cpu_to_le16(IWL_SCAN_CHANNEL_FLAG_EBS | iwl_mvm_unified_sched_scan_lmac()
988 cpu_to_le16(IWL_SPARSE_EBS_SCAN_RATIO); iwl_mvm_unified_sched_scan_lmac()
1108 scan_config->hdr.size = cpu_to_le16(data_size); iwl_mvm_config_scan()
1225 cmd->hdr.size = cpu_to_le16(iwl_mvm_scan_size(mvm) - iwl_mvm_build_generic_umac_scan_cmd()
1450 cpu_to_le16(req->interval / MSEC_PER_SEC); iwl_mvm_sched_scan_umac()
1456 sec_part->delay = cpu_to_le16(U16_MAX); iwl_mvm_sched_scan_umac()
1458 sec_part->delay = cpu_to_le16(req->delay); iwl_mvm_sched_scan_umac()
1554 .hdr.size = cpu_to_le16(sizeof(struct iwl_umac_scan_abort) - iwl_umac_scan_abort_one()
H A Dsta.c809 cmd.add_immediate_ba_ssn = cpu_to_le16(ssn); iwl_mvm_sta_rx_agg()
872 cmd.tid_disable_tx = cpu_to_le16(mvm_sta->tid_disable_agg); iwl_mvm_sta_tx_agg()
1203 key_flags = cpu_to_le16(keyidx); iwl_mvm_send_sta_key()
1204 key_flags |= cpu_to_le16(STA_KEY_FLG_WEP_KEY_MAP); iwl_mvm_send_sta_key()
1208 key_flags |= cpu_to_le16(STA_KEY_FLG_TKIP); iwl_mvm_send_sta_key()
1211 cmd.tkip_rx_ttak[i] = cpu_to_le16(tkip_p1k[i]); iwl_mvm_send_sta_key()
1215 key_flags |= cpu_to_le16(STA_KEY_FLG_CCM); iwl_mvm_send_sta_key()
1219 key_flags |= cpu_to_le16(STA_KEY_FLG_WEP_13BYTES); iwl_mvm_send_sta_key()
1222 key_flags |= cpu_to_le16(STA_KEY_FLG_WEP); iwl_mvm_send_sta_key()
1226 key_flags |= cpu_to_le16(STA_KEY_FLG_EXT); iwl_mvm_send_sta_key()
1231 key_flags |= cpu_to_le16(STA_KEY_MULTICAST); iwl_mvm_send_sta_key()
1366 key_flags = cpu_to_le16((keyconf->keyidx << STA_KEY_FLG_KEYID_POS) & __iwl_mvm_remove_sta_key()
1368 key_flags |= cpu_to_le16(STA_KEY_FLG_NO_ENC | STA_KEY_FLG_WEP_KEY_MAP); __iwl_mvm_remove_sta_key()
1369 key_flags |= cpu_to_le16(STA_KEY_NOT_VALID); __iwl_mvm_remove_sta_key()
1372 key_flags |= cpu_to_le16(STA_KEY_MULTICAST); __iwl_mvm_remove_sta_key()
1592 .sleep_tx_count = cpu_to_le16(cnt), iwl_mvm_sta_modify_sleep_tx_count()
1640 cmd.sleep_tx_count = cpu_to_le16(cnt - remaining); iwl_mvm_sta_modify_sleep_tx_count()
1649 cmd.sleep_state_flags |= cpu_to_le16(STA_SLEEP_STATE_MOREDATA); iwl_mvm_sta_modify_sleep_tx_count()
1653 cmd.sleep_state_flags |= cpu_to_le16(STA_SLEEP_STATE_PS_POLL); iwl_mvm_sta_modify_sleep_tx_count()
1655 cmd.sleep_state_flags |= cpu_to_le16(STA_SLEEP_STATE_UAPSD); iwl_mvm_sta_modify_sleep_tx_count()
/linux-4.1.27/drivers/staging/vt6656/
H A Drxtx.c109 return cpu_to_le16(vnt_time_stampoff[priv->preamble_type % 2] vnt_time_stamp_off()
137 return cpu_to_le16((u16)vnt_get_rsvtime(priv, pkt_type, vnt_rxtx_rsvtime_le16()
176 return cpu_to_le16((u16)rrv_time); vnt_get_rtscts_rsvtime_le()
181 return cpu_to_le16((u16)rrv_time); vnt_get_rtscts_rsvtime_le()
197 return cpu_to_le16((u16)(priv->sifs + ack_time)); vnt_get_duration_le()
244 return cpu_to_le16((u16)dur_time); vnt_get_rtscts_duration_le()
278 __le16 dur = cpu_to_le16(priv->current_aid | BIT(14) | BIT(15)); vnt_rxtx_datahead_g()
371 __le16 dur = cpu_to_le16(priv->current_aid | BIT(14) | BIT(15)); vnt_rxtx_datahead_ab()
394 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_RTS); vnt_fill_ieee80211_rts()
550 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_CTS); vnt_fill_cts_fb_head()
576 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_CTS); vnt_fill_cts_head()
762 mic_hdr->frame_control = cpu_to_le16( vnt_fill_txkey()
764 mic_hdr->seq_ctrl = cpu_to_le16( vnt_fill_txkey()
846 tx_buffer_head->fifo_ctl = cpu_to_le16(FIFOCTL_11B); vnt_tx_packet()
848 tx_buffer_head->fifo_ctl = cpu_to_le16(FIFOCTL_11GB); vnt_tx_packet()
850 tx_buffer_head->fifo_ctl = cpu_to_le16(FIFOCTL_11GA); vnt_tx_packet()
853 tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_GENINT | vnt_tx_packet()
855 tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_TMOEN); vnt_tx_packet()
858 cpu_to_le16(DEFAULT_MGN_LIFETIME_RES_64us); vnt_tx_packet()
861 cpu_to_le16(DEFAULT_MSDU_LIFETIME_RES_64us); vnt_tx_packet()
865 tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_NEEDACK); vnt_tx_packet()
870 tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_LRETRY); vnt_tx_packet()
879 tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_RTS); vnt_tx_packet()
883 tx_buffer_head->fifo_ctl |= cpu_to_le16(FIFOCTL_LHEAD); vnt_tx_packet()
889 cpu_to_le16(ieee80211_get_hdrlen_from_skb(skb) << 10); vnt_tx_packet()
896 tx_buffer_head->frag_ctl |= cpu_to_le16(FRAGCTL_LEGACY); vnt_tx_packet()
899 tx_buffer_head->frag_ctl |= cpu_to_le16(FRAGCTL_TKIP); vnt_tx_packet()
902 tx_buffer_head->frag_ctl |= cpu_to_le16(FRAGCTL_AES); vnt_tx_packet()
910 tx_buffer_head->current_rate = cpu_to_le16(current_rate); vnt_tx_packet()
916 cpu_to_le16(FIFOCTL_AUTO_FB_0); vnt_tx_packet()
926 cpu_to_le16(FIFOCTL_AUTO_FB_1); vnt_tx_packet()
948 tx_buffer_head->frag_ctl |= cpu_to_le16(FRAGCTL_NONFRAG); vnt_tx_packet()
954 hdr->duration_id = cpu_to_le16(duration_id); vnt_tx_packet()
966 tx_buffer->tx_byte_count = cpu_to_le16(tx_bytes); vnt_tx_packet()
1029 short_head->fifo_ctl |= cpu_to_le16(FIFOCTL_11B); vnt_beacon_xmit()
1054 hdr->seq_ctrl = cpu_to_le16(priv->seq_counter << 4); vnt_beacon_xmit()
1063 beacon_buffer->tx_byte_count = cpu_to_le16(count); vnt_beacon_xmit()
/linux-4.1.27/fs/befs/
H A Dendian.h63 return (__force fs16)cpu_to_le16(n); cpu_to_fs16()
94 run.start = cpu_to_le16(n.start); cpu_to_fsrun()
95 run.len = cpu_to_le16(n.len); cpu_to_fsrun()
/linux-4.1.27/drivers/net/ethernet/cisco/enic/
H A Dwq_enet_desc.h59 desc->length = cpu_to_le16(length & WQ_ENET_LEN_MASK); wq_enet_desc_enc()
60 desc->mss_loopback = cpu_to_le16((mss & WQ_ENET_MSS_MASK) << wq_enet_desc_enc()
62 desc->header_length_flags = cpu_to_le16( wq_enet_desc_enc()
69 desc->vlan_tag = cpu_to_le16(vlan_tag); wq_enet_desc_enc()
H A Drq_enet_desc.h47 desc->length_type = cpu_to_le16((length & RQ_ENET_LEN_MASK) | rq_enet_desc_enc()
/linux-4.1.27/drivers/scsi/fnic/
H A Dwq_enet_desc.h57 desc->length = cpu_to_le16(length & WQ_ENET_LEN_MASK); wq_enet_desc_enc()
58 desc->mss_loopback = cpu_to_le16((mss & WQ_ENET_MSS_MASK) << wq_enet_desc_enc()
60 desc->header_length_flags = cpu_to_le16( wq_enet_desc_enc()
67 desc->vlan_tag = cpu_to_le16(vlan_tag); wq_enet_desc_enc()
H A Drq_enet_desc.h45 desc->length_type = cpu_to_le16((length & RQ_ENET_LEN_MASK) | rq_enet_desc_enc()
/linux-4.1.27/include/linux/
H A Dext2_fs.h36 if (*(__le16 *)(p + EXT2_SB_MAGIC_OFFSET) != cpu_to_le16(EXT2_SUPER_MAGIC)) ext2_image_size()
H A Dieee80211.h255 return (fc & cpu_to_le16(IEEE80211_FCTL_TODS)) != 0; ieee80211_has_tods()
264 return (fc & cpu_to_le16(IEEE80211_FCTL_FROMDS)) != 0; ieee80211_has_fromds()
273 __le16 tmp = cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS); ieee80211_has_a4()
283 return (fc & cpu_to_le16(IEEE80211_FCTL_MOREFRAGS)) != 0; ieee80211_has_morefrags()
292 return (fc & cpu_to_le16(IEEE80211_FCTL_RETRY)) != 0; ieee80211_has_retry()
301 return (fc & cpu_to_le16(IEEE80211_FCTL_PM)) != 0; ieee80211_has_pm()
310 return (fc & cpu_to_le16(IEEE80211_FCTL_MOREDATA)) != 0; ieee80211_has_moredata()
319 return (fc & cpu_to_le16(IEEE80211_FCTL_PROTECTED)) != 0; ieee80211_has_protected()
328 return (fc & cpu_to_le16(IEEE80211_FCTL_ORDER)) != 0; ieee80211_has_order()
337 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE)) == ieee80211_is_mgmt()
338 cpu_to_le16(IEEE80211_FTYPE_MGMT); ieee80211_is_mgmt()
347 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE)) == ieee80211_is_ctl()
348 cpu_to_le16(IEEE80211_FTYPE_CTL); ieee80211_is_ctl()
357 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE)) == ieee80211_is_data()
358 cpu_to_le16(IEEE80211_FTYPE_DATA); ieee80211_is_data()
371 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_STYPE_QOS_DATA)) == ieee80211_is_data_qos()
372 cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_DATA); ieee80211_is_data_qos()
385 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | 0x40)) == ieee80211_is_data_present()
386 cpu_to_le16(IEEE80211_FTYPE_DATA); ieee80211_is_data_present()
395 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_assoc_req()
396 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_ASSOC_REQ); ieee80211_is_assoc_req()
405 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_assoc_resp()
406 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_ASSOC_RESP); ieee80211_is_assoc_resp()
415 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_reassoc_req()
416 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_REASSOC_REQ); ieee80211_is_reassoc_req()
425 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_reassoc_resp()
426 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_REASSOC_RESP); ieee80211_is_reassoc_resp()
435 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_probe_req()
436 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_PROBE_REQ); ieee80211_is_probe_req()
445 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_probe_resp()
446 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_PROBE_RESP); ieee80211_is_probe_resp()
455 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_beacon()
456 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_BEACON); ieee80211_is_beacon()
465 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_atim()
466 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_ATIM); ieee80211_is_atim()
475 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_disassoc()
476 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_DISASSOC); ieee80211_is_disassoc()
485 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_auth()
486 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_AUTH); ieee80211_is_auth()
495 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_deauth()
496 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_DEAUTH); ieee80211_is_deauth()
505 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_action()
506 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_ACTION); ieee80211_is_action()
515 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_back_req()
516 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_BACK_REQ); ieee80211_is_back_req()
525 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_back()
526 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_BACK); ieee80211_is_back()
535 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_pspoll()
536 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_PSPOLL); ieee80211_is_pspoll()
545 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_rts()
546 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_RTS); ieee80211_is_rts()
555 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_cts()
556 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_CTS); ieee80211_is_cts()
565 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_ack()
566 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_ACK); ieee80211_is_ack()
575 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_cfend()
576 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_CFEND); ieee80211_is_cfend()
585 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_cfendack()
586 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_CFENDACK); ieee80211_is_cfendack()
595 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_nullfunc()
596 cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_NULLFUNC); ieee80211_is_nullfunc()
605 return (fc & cpu_to_le16(IEEE80211_FCTL_FTYPE | IEEE80211_FCTL_STYPE)) == ieee80211_is_qos_nullfunc()
606 cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_NULLFUNC); ieee80211_is_qos_nullfunc()
629 return (seq_ctrl & cpu_to_le16(IEEE80211_SCTL_FRAG)) == 0; ieee80211_is_first_frag()
H A Dvirtio_byteorder.h22 return (__force __virtio16)cpu_to_le16(val); __cpu_to_virtio16()
/linux-4.1.27/drivers/net/ethernet/via/
H A Dvia-velocity.h74 #define RSR_DETAG cpu_to_le16(0x0080)
75 #define RSR_SNTAG cpu_to_le16(0x0040)
76 #define RSR_RXER cpu_to_le16(0x0020)
77 #define RSR_RL cpu_to_le16(0x0010)
78 #define RSR_CE cpu_to_le16(0x0008)
79 #define RSR_FAE cpu_to_le16(0x0004)
80 #define RSR_CRC cpu_to_le16(0x0002)
81 #define RSR_VIDM cpu_to_le16(0x0001)
87 #define RSR_RXOK cpu_to_le16(0x8000) // rx OK
88 #define RSR_PFT cpu_to_le16(0x4000) // Perfect filtering address match
89 #define RSR_MAR cpu_to_le16(0x2000) // MAC accept multicast address packet
90 #define RSR_BAR cpu_to_le16(0x1000) // MAC accept broadcast address packet
91 #define RSR_PHY cpu_to_le16(0x0800) // MAC accept physical address packet
92 #define RSR_VTAG cpu_to_le16(0x0400) // 802.1p/1q tagging packet indicator
93 #define RSR_STP cpu_to_le16(0x0200) // start of packet
94 #define RSR_EDP cpu_to_le16(0x0100) // end of packet
111 #define TSR0_ABT cpu_to_le16(0x0080) // Tx abort because of excessive collision
112 #define TSR0_OWT cpu_to_le16(0x0040) // Jumbo frame Tx abort
113 #define TSR0_OWC cpu_to_le16(0x0020) // Out of window collision
114 #define TSR0_COLS cpu_to_le16(0x0010) // experience collision in this transmit event
115 #define TSR0_NCR3 cpu_to_le16(0x0008) // collision retry counter[3]
116 #define TSR0_NCR2 cpu_to_le16(0x0004) // collision retry counter[2]
117 #define TSR0_NCR1 cpu_to_le16(0x0002) // collision retry counter[1]
118 #define TSR0_NCR0 cpu_to_le16(0x0001) // collision retry counter[0]
119 #define TSR0_TERR cpu_to_le16(0x8000) //
120 #define TSR0_FDX cpu_to_le16(0x4000) // current transaction is serviced by full duplex mode
121 #define TSR0_GMII cpu_to_le16(0x2000) // current transaction is serviced by GMII mode
122 #define TSR0_LNKFL cpu_to_le16(0x1000) // packet serviced during link down
123 #define TSR0_SHDN cpu_to_le16(0x0400) // shutdown case
124 #define TSR0_CRS cpu_to_le16(0x0200) // carrier sense lost
125 #define TSR0_CDH cpu_to_le16(0x0100) // AQE test fail (CD heartbeat)
187 RX_INTEN = cpu_to_le16(0x8000)
214 TD_QUEUE = cpu_to_le16(0x8000)
246 OWNED_BY_NIC = cpu_to_le16(0x8000)
/linux-4.1.27/drivers/net/wireless/
H A Dmwl8k.c646 cmd->code = cpu_to_le16(MWL8K_CMD_CODE_DNLD); mwl8k_load_fw_image()
656 cmd->length = cpu_to_le16(block_size); mwl8k_load_fw_image()
881 tr->fwlen = cpu_to_le16(skb->len - sizeof(*tr) + tail_pad); mwl8k_add_dma_header()
975 rxd->pkt_len = cpu_to_le16(len); mwl8k_rxd_ap_refill()
1085 rxd->pkt_len = cpu_to_le16(len); mwl8k_rxd_sta_refill()
1929 wh->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG); mwl8k_txq_xmit()
1930 wh->seq_ctrl |= cpu_to_le16(mwl8k_vif->seqno); mwl8k_txq_xmit()
2083 tx->qos_control = cpu_to_le16(qos); mwl8k_txq_xmit()
2085 tx->pkt_len = cpu_to_le16(skb->len); mwl8k_txq_xmit()
2452 cmd->header.code = cpu_to_le16(MWL8K_CMD_GET_HW_SPEC); mwl8k_cmd_get_hw_spec_sta()
2453 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_get_hw_spec_sta()
2517 cmd->header.code = cpu_to_le16(MWL8K_CMD_GET_HW_SPEC); mwl8k_cmd_get_hw_spec_ap()
2518 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_get_hw_spec_ap()
2619 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_HW_SPEC); mwl8k_cmd_set_hw_spec()
2620 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_set_hw_spec()
2689 cmd->header.code = cpu_to_le16(MWL8K_CMD_MAC_MULTICAST_ADR); __mwl8k_cmd_mac_multicast_adr()
2690 cmd->header.length = cpu_to_le16(size); __mwl8k_cmd_mac_multicast_adr()
2691 cmd->action = cpu_to_le16(MWL8K_ENABLE_RX_DIRECTED | __mwl8k_cmd_mac_multicast_adr()
2695 cmd->action |= cpu_to_le16(MWL8K_ENABLE_RX_ALL_MULTICAST); __mwl8k_cmd_mac_multicast_adr()
2700 cmd->action |= cpu_to_le16(MWL8K_ENABLE_RX_MULTICAST); __mwl8k_cmd_mac_multicast_adr()
2701 cmd->numaddr = cpu_to_le16(mc_count); netdev_hw_addr_list_for_each()
2733 cmd->header.code = cpu_to_le16(MWL8K_CMD_GET_STAT); mwl8k_cmd_get_stat()
2734 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_get_stat()
2776 cmd->header.code = cpu_to_le16(MWL8K_CMD_RADIO_CONTROL); mwl8k_cmd_radio_control()
2777 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_radio_control()
2778 cmd->action = cpu_to_le16(MWL8K_CMD_SET); mwl8k_cmd_radio_control()
2779 cmd->control = cpu_to_le16(priv->radio_short_preamble ? 3 : 1); mwl8k_cmd_radio_control()
2780 cmd->radio_on = cpu_to_le16(enable ? 0x0001 : 0x0000); mwl8k_cmd_radio_control()
2834 cmd->header.code = cpu_to_le16(MWL8K_CMD_RF_TX_POWER); mwl8k_cmd_rf_tx_power()
2835 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_rf_tx_power()
2836 cmd->action = cpu_to_le16(MWL8K_CMD_SET); mwl8k_cmd_rf_tx_power()
2837 cmd->support_level = cpu_to_le16(dBm); mwl8k_cmd_rf_tx_power()
2875 cmd->header.code = cpu_to_le16(MWL8K_CMD_TX_POWER); mwl8k_cmd_tx_power()
2876 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_tx_power()
2877 cmd->action = cpu_to_le16(MWL8K_CMD_SET_LIST); mwl8k_cmd_tx_power()
2880 cmd->band = cpu_to_le16(0x1); mwl8k_cmd_tx_power()
2882 cmd->band = cpu_to_le16(0x4); mwl8k_cmd_tx_power()
2884 cmd->channel = cpu_to_le16(channel->hw_value); mwl8k_cmd_tx_power()
2888 cmd->bw = cpu_to_le16(0x2); mwl8k_cmd_tx_power()
2890 cmd->bw = cpu_to_le16(0x4); mwl8k_cmd_tx_power()
2892 cmd->sub_ch = cpu_to_le16(0x3); mwl8k_cmd_tx_power()
2894 cmd->sub_ch = cpu_to_le16(0x1); mwl8k_cmd_tx_power()
2898 cmd->power_level_list[i] = cpu_to_le16(pwr); mwl8k_cmd_tx_power()
2928 cmd->header.code = cpu_to_le16(MWL8K_CMD_RF_ANTENNA); mwl8k_cmd_rf_antenna()
2929 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_rf_antenna()
2930 cmd->antenna = cpu_to_le16(antenna); mwl8k_cmd_rf_antenna()
2931 cmd->mode = cpu_to_le16(mask); mwl8k_cmd_rf_antenna()
2958 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_BEACON); mwl8k_cmd_set_beacon()
2959 cmd->header.length = cpu_to_le16(sizeof(*cmd) + len); mwl8k_cmd_set_beacon()
2960 cmd->beacon_len = cpu_to_le16(len); mwl8k_cmd_set_beacon()
2985 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_PRE_SCAN); mwl8k_cmd_set_pre_scan()
2986 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_set_pre_scan()
3018 cmd->header.code = cpu_to_le16(MWL8K_CMD_BBP_REG_ACCESS); mwl8k_cmd_bbp_reg_access()
3019 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_bbp_reg_access()
3020 cmd->action = cpu_to_le16(action); mwl8k_cmd_bbp_reg_access()
3021 cmd->offset = cpu_to_le16(offset); mwl8k_cmd_bbp_reg_access()
3054 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_POST_SCAN); mwl8k_cmd_set_post_scan()
3055 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_set_post_scan()
3147 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_RF_CHANNEL); mwl8k_cmd_set_rf_channel()
3148 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_set_rf_channel()
3149 cmd->action = cpu_to_le16(MWL8K_CMD_SET); mwl8k_cmd_set_rf_channel()
3233 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_AID); mwl8k_cmd_set_aid()
3234 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_set_aid()
3235 cmd->aid = cpu_to_le16(vif->bss_conf.aid); mwl8k_cmd_set_aid()
3254 cmd->protection_mode = cpu_to_le16(prot_mode); mwl8k_cmd_set_aid()
3287 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_RATE); mwl8k_cmd_set_rate()
3288 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_set_rate()
3321 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_FINALIZE_JOIN); mwl8k_cmd_finalize_join()
3322 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_finalize_join()
3358 cmd->header.code = cpu_to_le16(MWL8K_CMD_RTS_THRESHOLD); mwl8k_cmd_set_rts_threshold()
3359 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_set_rts_threshold()
3360 cmd->action = cpu_to_le16(MWL8K_CMD_SET); mwl8k_cmd_set_rts_threshold()
3361 cmd->threshold = cpu_to_le16(rts_thresh); mwl8k_cmd_set_rts_threshold()
3387 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_SLOT); mwl8k_cmd_set_slot()
3388 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_set_slot()
3389 cmd->action = cpu_to_le16(MWL8K_CMD_SET); mwl8k_cmd_set_slot()
3461 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_EDCA_PARAMS); mwl8k_cmd_set_edca_params()
3462 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_set_edca_params()
3463 cmd->action = cpu_to_le16(MWL8K_SET_EDCA_ALL); mwl8k_cmd_set_edca_params()
3464 cmd->txop = cpu_to_le16(txop); mwl8k_cmd_set_edca_params()
3501 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_WMM_MODE); mwl8k_cmd_set_wmm_mode()
3502 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_set_wmm_mode()
3503 cmd->action = cpu_to_le16(!!enable); mwl8k_cmd_set_wmm_mode()
3533 cmd->header.code = cpu_to_le16(MWL8K_CMD_MIMO_CONFIG); mwl8k_cmd_mimo_config()
3534 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_mimo_config()
3576 cmd->header.code = cpu_to_le16(MWL8K_CMD_USE_FIXED_RATE); mwl8k_cmd_use_fixed_rate_sta()
3577 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_use_fixed_rate_sta()
3616 cmd->header.code = cpu_to_le16(MWL8K_CMD_USE_FIXED_RATE); mwl8k_cmd_use_fixed_rate_ap()
3617 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_use_fixed_rate_ap()
3645 cmd->header.code = cpu_to_le16(MWL8K_CMD_ENABLE_SNIFFER); mwl8k_cmd_enable_sniffer()
3646 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_enable_sniffer()
3701 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_MAC_ADDR); mwl8k_cmd_update_mac_addr()
3703 cmd->header.code = cpu_to_le16(MWL8K_CMD_DEL_MAC_ADDR); mwl8k_cmd_update_mac_addr()
3705 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_update_mac_addr()
3707 cmd->mbss.mac_type = cpu_to_le16(mac_type); mwl8k_cmd_update_mac_addr()
3755 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_RATEADAPT_MODE); mwl8k_cmd_set_rateadapt_mode()
3756 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_set_rateadapt_mode()
3757 cmd->action = cpu_to_le16(MWL8K_CMD_SET); mwl8k_cmd_set_rateadapt_mode()
3758 cmd->mode = cpu_to_le16(mode); mwl8k_cmd_set_rateadapt_mode()
3783 cmd->header.code = cpu_to_le16(MWL8K_CMD_GET_WATCHDOG_BITMAP); mwl8k_cmd_get_watchdog_bitmap()
3784 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_get_watchdog_bitmap()
3872 cmd->header.code = cpu_to_le16(MWL8K_CMD_BSS_START); mwl8k_cmd_bss_start()
3873 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_bss_start()
3964 cmd->header.code = cpu_to_le16(MWL8K_CMD_BASTREAM); mwl8k_check_ba()
3965 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_check_ba()
3997 cmd->header.code = cpu_to_le16(MWL8K_CMD_BASTREAM); mwl8k_create_ba()
3998 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_create_ba()
4008 cmd->create_params.curr_seq_no = cpu_to_le16(0); mwl8k_create_ba()
4039 cmd->header.code = cpu_to_le16(MWL8K_CMD_BASTREAM); mwl8k_destroy_ba()
4040 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_destroy_ba()
4091 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_NEW_STN); mwl8k_cmd_set_new_stn_add()
4092 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_set_new_stn_add()
4093 cmd->aid = cpu_to_le16(sta->aid); mwl8k_cmd_set_new_stn_add()
4095 cmd->stn_id = cpu_to_le16(sta->aid); mwl8k_cmd_set_new_stn_add()
4096 cmd->action = cpu_to_le16(MWL8K_STA_ACTION_ADD); mwl8k_cmd_set_new_stn_add()
4107 cmd->ht_capabilities_info = cpu_to_le16(sta->ht_cap.cap); mwl8k_cmd_set_new_stn_add()
4129 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_NEW_STN); mwl8k_cmd_set_new_stn_add_self()
4130 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_set_new_stn_add_self()
4172 cmd->header.code = cpu_to_le16(MWL8K_CMD_SET_NEW_STN); mwl8k_cmd_set_new_stn_del()
4173 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_set_new_stn_del()
4175 cmd->action = cpu_to_le16(MWL8K_STA_ACTION_REMOVE); mwl8k_cmd_set_new_stn_del()
4257 cmd->header.code = cpu_to_le16(MWL8K_CMD_UPDATE_ENCRYPTION); mwl8k_cmd_update_encryption_enable()
4258 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_update_encryption_enable()
4273 cmd->header.code = cpu_to_le16(MWL8K_CMD_UPDATE_ENCRYPTION); mwl8k_encryption_set_cmd_info()
4274 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_encryption_set_cmd_info()
4275 cmd->length = cpu_to_le16(sizeof(*cmd) - mwl8k_encryption_set_cmd_info()
4278 cmd->key_len = cpu_to_le16(key->keylen); mwl8k_encryption_set_cmd_info()
4284 cmd->key_type_id = cpu_to_le16(MWL8K_ALG_WEP); mwl8k_encryption_set_cmd_info()
4290 cmd->key_type_id = cpu_to_le16(MWL8K_ALG_TKIP); mwl8k_encryption_set_cmd_info()
4298 cmd->key_type_id = cpu_to_le16(MWL8K_ALG_CCMP); mwl8k_encryption_set_cmd_info()
4520 cmd->header.code = cpu_to_le16(MWL8K_CMD_UPDATE_STADB); mwl8k_cmd_update_stadb_add()
4521 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_update_stadb_add()
4527 p->basic_caps = cpu_to_le16(vif->bss_conf.assoc_capability); mwl8k_cmd_update_stadb_add()
4529 p->ht_caps = cpu_to_le16(sta->ht_cap.cap); mwl8k_cmd_update_stadb_add()
4559 cmd->header.code = cpu_to_le16(MWL8K_CMD_UPDATE_STADB); mwl8k_cmd_update_stadb_del()
4560 cmd->header.length = cpu_to_le16(sizeof(*cmd)); mwl8k_cmd_update_stadb_del()
H A Dairo.c527 #define MOD_DEFAULT cpu_to_le16(0)
528 #define MOD_CCK cpu_to_le16(1)
529 #define MOD_MOK cpu_to_le16(2)
536 #define MODE_STA_IBSS cpu_to_le16(0)
537 #define MODE_STA_ESS cpu_to_le16(1)
538 #define MODE_AP cpu_to_le16(2)
539 #define MODE_AP_RPTR cpu_to_le16(3)
540 #define MODE_CFG_MASK cpu_to_le16(0xff)
541 #define MODE_ETHERNET_HOST cpu_to_le16(0<<8) /* rx payloads converted */
542 #define MODE_LLC_HOST cpu_to_le16(1<<8) /* rx payloads left as is */
543 #define MODE_AIRONET_EXTEND cpu_to_le16(1<<9) /* enable Aironet extenstions */
544 #define MODE_AP_INTERFACE cpu_to_le16(1<<10) /* enable ap interface extensions */
545 #define MODE_ANTENNA_ALIGN cpu_to_le16(1<<11) /* enable antenna alignment */
546 #define MODE_ETHER_LLC cpu_to_le16(1<<12) /* enable ethernet LLC */
547 #define MODE_LEAF_NODE cpu_to_le16(1<<13) /* enable leaf node bridge */
548 #define MODE_CF_POLLABLE cpu_to_le16(1<<14) /* enable CF pollable */
549 #define MODE_MIC cpu_to_le16(1<<15) /* enable MIC */
551 #define RXMODE_BC_MC_ADDR cpu_to_le16(0)
552 #define RXMODE_BC_ADDR cpu_to_le16(1) /* ignore multicasts */
553 #define RXMODE_ADDR cpu_to_le16(2) /* ignore multicast and broadcast */
554 #define RXMODE_RFMON cpu_to_le16(3) /* wireless monitor mode */
555 #define RXMODE_RFMON_ANYBSS cpu_to_le16(4)
556 #define RXMODE_LANMON cpu_to_le16(5) /* lan style monitor -- data packets only */
557 #define RXMODE_MASK cpu_to_le16(255)
558 #define RXMODE_DISABLE_802_3_HEADER cpu_to_le16(1<<8) /* disables 802.3 header on rx */
560 #define RXMODE_NORMALIZED_RSSI cpu_to_le16(1<<9) /* return normalized RSSI */
577 #define SCANMODE_ACTIVE cpu_to_le16(0)
578 #define SCANMODE_PASSIVE cpu_to_le16(1)
579 #define SCANMODE_AIROSCAN cpu_to_le16(2)
587 #define AUTH_OPEN cpu_to_le16(0x1)
588 #define AUTH_ENCRYPT cpu_to_le16(0x101)
589 #define AUTH_SHAREDKEY cpu_to_le16(0x102)
590 #define AUTH_ALLOW_UNENCRYPTED cpu_to_le16(0x200)
598 #define DISABLE_REFRESH cpu_to_le16(0xFFFF)
602 #define POWERSAVE_CAM cpu_to_le16(0)
603 #define POWERSAVE_PSP cpu_to_le16(1)
604 #define POWERSAVE_PSPCAM cpu_to_le16(2)
622 #define RADIOTYPE_DEFAULT cpu_to_le16(0)
623 #define RADIOTYPE_802_11 cpu_to_le16(1)
624 #define RADIOTYPE_LEGACY cpu_to_le16(2)
632 #define PREAMBLE_AUTO cpu_to_le16(0)
633 #define PREAMBLE_LONG cpu_to_le16(1)
634 #define PREAMBLE_SHORT cpu_to_le16(2)
779 #define CAP_ESS cpu_to_le16(1<<0)
780 #define CAP_IBSS cpu_to_le16(1<<1)
781 #define CAP_PRIVACY cpu_to_le16(1<<4)
782 #define CAP_SHORTHDR cpu_to_le16(1<<5)
2021 *payloadLen = cpu_to_le16(len-sizeof(etherHead)+sizeof(pMic)); mpi_send_packet()
2031 *payloadLen = cpu_to_le16(len - sizeof(etherHead)); mpi_send_packet()
2877 ai->wep_capable = (cap_rid.softCap & cpu_to_le16(0x02)) ? 1 : 0; _init_airo_card()
2878 ai->max_wep_idx = (cap_rid.softCap & cpu_to_le16(0x80)) ? 3 : 0; _init_airo_card()
3017 if((rc) || (bss.index == cpu_to_le16(0xffff))) { airo_process_scan_results()
3024 while((!rc) && (bss.index != cpu_to_le16(0xffff))) { airo_process_scan_results()
3858 if (cap_rid.softCap & cpu_to_le16(8)) setup_card()
3869 (cap_rid.extSoftCap & cpu_to_le16(1)) && setup_card()
3898 mySsid.ssids[i].len = cpu_to_le16(len); setup_card()
3901 mySsid.len = cpu_to_le16(sizeof(mySsid)); setup_card()
3921 if (wkr.kindex == cpu_to_le16(0xffff)) { setup_card()
4187 *(__le16*)pBuf = cpu_to_le16((u16)len); PC4500_writerid()
4294 txControl = cpu_to_le16(TXCTL_TXOK | TXCTL_TXEX | TXCTL_802_11 transmit_allocate()
4297 txControl = cpu_to_le16(TXCTL_TXOK | TXCTL_TXEX | TXCTL_802_3 transmit_allocate()
4341 payloadLen = cpu_to_le16(len + miclen); transmit_802_3_packet()
4380 payloadLen = cpu_to_le16(len-hdrlen); transmit_802_11_packet()
4868 ai->config.channelSet = cpu_to_le16(v); proc_config_on_close()
4876 ai->config.txPower = cpu_to_le16(v); proc_config_on_close()
4899 ai->config.longRetryLimit = cpu_to_le16(v); proc_config_on_close()
4907 ai->config.shortRetryLimit = cpu_to_le16(v); proc_config_on_close()
4915 ai->config.rtsThres = cpu_to_le16(v); proc_config_on_close()
4923 ai->config.txLifetime = cpu_to_le16(v); proc_config_on_close()
4931 ai->config.rxLifetime = cpu_to_le16(v); proc_config_on_close()
4950 ai->config.fragThresh = cpu_to_le16(v); proc_config_on_close()
5101 SSID_rid.ssids[i].len = cpu_to_le16(j); proc_SSID_on_close()
5107 SSID_rid.len = cpu_to_le16(sizeof(SSID_rid)); proc_SSID_on_close()
5123 APList_rid.len = cpu_to_le16(sizeof(APList_rid)); proc_APList_on_close()
5193 if (wkr.kindex == cpu_to_le16(0xffff)) get_wep_tx_idx()
5213 wkr.len = cpu_to_le16(sizeof(wkr)); set_wep_key()
5214 wkr.kindex = cpu_to_le16(index); set_wep_key()
5215 wkr.klen = cpu_to_le16(keylen); set_wep_key()
5231 wkr.len = cpu_to_le16(sizeof(wkr)); set_wep_tx_idx()
5232 wkr.kindex = cpu_to_le16(0xffff); set_wep_tx_idx()
5330 if (wkr.kindex == cpu_to_le16(0xffff)) { proc_wepkey_open()
5472 while(rc == 0 && BSSList_rid.index != cpu_to_le16(0xffff)) { proc_BSSList_open()
5745 if ((status_rid->mode & cpu_to_le16(0x3f)) != cpu_to_le16(0x3f)) airo_get_quality()
5748 if (!(cap_rid->hardCap & cpu_to_le16(8))) airo_get_quality()
5817 local->config.channelSet = cpu_to_le16(channel); airo_set_freq()
5890 SSID_rid.ssids[index].len = cpu_to_le16(dwrq->length); airo_set_essid()
5892 SSID_rid.len = cpu_to_le16(sizeof(SSID_rid)); airo_set_essid()
5955 APList_rid.len = cpu_to_le16(sizeof(APList_rid)); airo_set_wap()
6137 local->config.rtsThres = cpu_to_le16(rthr); airo_set_rts()
6181 local->config.fragThresh = cpu_to_le16(fthr); airo_set_frag()
6763 __le16 v = cpu_to_le16(vwrq->value); airo_set_txpow()
6824 __le16 v = cpu_to_le16(vwrq->value); airo_set_retry()
6838 local->config.txLifetime = cpu_to_le16(vwrq->value / 1024); airo_set_retry()
6951 if(cap_rid.softCap & cpu_to_le16(2)) { airo_get_range()
6955 if (cap_rid.softCap & cpu_to_le16(0x100)) { airo_get_range()
6961 cap_rid.softCap & cpu_to_le16(0x80) ? 4 : 1; airo_get_range()
7024 local->config.fastListenDelay = cpu_to_le16((vwrq->value + 500) / 1024); airo_set_power()
7030 cpu_to_le16((vwrq->value + 500) / 1024); airo_set_power()
7103 cpu_to_le16(vwrq->disabled ? RSSI_DEFAULT : vwrq->value); airo_set_sens()
7171 if (BSSList.index == cpu_to_le16(0xffff)) airo_get_aplist()
H A Dzd1201.c166 *((__le16*)&command[4]) = cpu_to_le16(cmd); zd1201_docmd()
167 *((__le16*)&command[6]) = cpu_to_le16(parm0); zd1201_docmd()
168 *((__le16*)&command[8]) = cpu_to_le16(parm1); zd1201_docmd()
169 *((__le16*)&command[10])= cpu_to_le16(parm2); zd1201_docmd()
544 *(__le16*)&request[4] = cpu_to_le16((len-2+1)/2); zd1201_setconfig()
545 *(__le16*)&request[6] = cpu_to_le16(rid); zd1201_setconfig()
572 cpu_to_le16(ZD1201_CMDCODE_ACCESS|ZD1201_ACCESSBIT); zd1201_setconfig()
573 *((__le16*)&request[6]) = cpu_to_le16(rid); zd1201_setconfig()
574 *((__le16*)&request[8]) = cpu_to_le16(0); zd1201_setconfig()
575 *((__le16*)&request[10]) = cpu_to_le16(0); zd1201_setconfig()
610 __le16 zdval = cpu_to_le16(val); zd1201_setconfig16()
722 *(__le16 *)buf = cpu_to_le16(essidlen); zd1201_join()
991 *(__le16 *)buffer = cpu_to_le16(zd->essidlen); zd1201_set_mode()
1796 *(__le16 *)buf = cpu_to_le16(0); zd1201_probe()
/linux-4.1.27/drivers/gpu/drm/radeon/
H A Datombios_crtc.c51 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); atombios_overscan_setup()
52 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); atombios_overscan_setup()
53 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); atombios_overscan_setup()
54 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); atombios_overscan_setup()
61 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); atombios_overscan_setup()
62 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); atombios_overscan_setup()
64 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); atombios_overscan_setup()
65 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); atombios_overscan_setup()
70 args.usOverscanRight = cpu_to_le16(radeon_crtc->h_border); atombios_overscan_setup()
71 args.usOverscanLeft = cpu_to_le16(radeon_crtc->h_border); atombios_overscan_setup()
72 args.usOverscanBottom = cpu_to_le16(radeon_crtc->v_border); atombios_overscan_setup()
73 args.usOverscanTop = cpu_to_le16(radeon_crtc->v_border); atombios_overscan_setup()
308 args.usH_Size = cpu_to_le16(mode->crtc_hdisplay - (radeon_crtc->h_border * 2)); atombios_set_crtc_dtd_timing()
310 cpu_to_le16(mode->crtc_hblank_end - mode->crtc_hdisplay + (radeon_crtc->h_border * 2)); atombios_set_crtc_dtd_timing()
311 args.usV_Size = cpu_to_le16(mode->crtc_vdisplay - (radeon_crtc->v_border * 2)); atombios_set_crtc_dtd_timing()
313 cpu_to_le16(mode->crtc_vblank_end - mode->crtc_vdisplay + (radeon_crtc->v_border * 2)); atombios_set_crtc_dtd_timing()
315 cpu_to_le16(mode->crtc_hsync_start - mode->crtc_hdisplay + radeon_crtc->h_border); atombios_set_crtc_dtd_timing()
317 cpu_to_le16(mode->crtc_hsync_end - mode->crtc_hsync_start); atombios_set_crtc_dtd_timing()
319 cpu_to_le16(mode->crtc_vsync_start - mode->crtc_vdisplay + radeon_crtc->v_border); atombios_set_crtc_dtd_timing()
321 cpu_to_le16(mode->crtc_vsync_end - mode->crtc_vsync_start); atombios_set_crtc_dtd_timing()
338 args.susModeMiscInfo.usAccess = cpu_to_le16(misc); atombios_set_crtc_dtd_timing()
355 args.usH_Total = cpu_to_le16(mode->crtc_htotal); atombios_crtc_set_timing()
356 args.usH_Disp = cpu_to_le16(mode->crtc_hdisplay); atombios_crtc_set_timing()
357 args.usH_SyncStart = cpu_to_le16(mode->crtc_hsync_start); atombios_crtc_set_timing()
359 cpu_to_le16(mode->crtc_hsync_end - mode->crtc_hsync_start); atombios_crtc_set_timing()
360 args.usV_Total = cpu_to_le16(mode->crtc_vtotal); atombios_crtc_set_timing()
361 args.usV_Disp = cpu_to_le16(mode->crtc_vdisplay); atombios_crtc_set_timing()
362 args.usV_SyncStart = cpu_to_le16(mode->crtc_vsync_start); atombios_crtc_set_timing()
364 cpu_to_le16(mode->crtc_vsync_end - mode->crtc_vsync_start); atombios_crtc_set_timing()
384 args.susModeMiscInfo.usAccess = cpu_to_le16(misc); atombios_crtc_set_timing()
476 args.v3.usSpreadSpectrumAmountFrac = cpu_to_le16(0); atombios_crtc_program_ss()
491 args.v3.usSpreadSpectrumAmount = cpu_to_le16(ss->amount); atombios_crtc_program_ss()
492 args.v3.usSpreadSpectrumStep = cpu_to_le16(ss->step); atombios_crtc_program_ss()
495 args.v2.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); atombios_crtc_program_ss()
510 args.v2.usSpreadSpectrumAmount = cpu_to_le16(ss->amount); atombios_crtc_program_ss()
511 args.v2.usSpreadSpectrumStep = cpu_to_le16(ss->step); atombios_crtc_program_ss()
514 args.v1.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); atombios_crtc_program_ss()
527 args.lvds_ss_2.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); atombios_crtc_program_ss()
538 args.lvds_ss.usSpreadSpectrumPercentage = cpu_to_le16(ss->percentage); atombios_crtc_program_ss()
686 args.v1.usPixelClock = cpu_to_le16(clock / 10); atombios_adjust_pll()
698 args.v3.sInput.usPixelClock = cpu_to_le16(clock / 10); atombios_adjust_pll()
709 args.v3.sInput.usPixelClock = cpu_to_le16(dp_clock / 10); atombios_adjust_pll()
787 args.v5.usPixelClock = cpu_to_le16(dispclk); atombios_crtc_set_disp_eng_pll()
846 args.v1.usPixelClock = cpu_to_le16(clock / 10); atombios_crtc_program_pll()
847 args.v1.usRefDiv = cpu_to_le16(ref_div); atombios_crtc_program_pll()
848 args.v1.usFbDiv = cpu_to_le16(fb_div); atombios_crtc_program_pll()
856 args.v2.usPixelClock = cpu_to_le16(clock / 10); atombios_crtc_program_pll()
857 args.v2.usRefDiv = cpu_to_le16(ref_div); atombios_crtc_program_pll()
858 args.v2.usFbDiv = cpu_to_le16(fb_div); atombios_crtc_program_pll()
866 args.v3.usPixelClock = cpu_to_le16(clock / 10); atombios_crtc_program_pll()
867 args.v3.usRefDiv = cpu_to_le16(ref_div); atombios_crtc_program_pll()
868 args.v3.usFbDiv = cpu_to_le16(fb_div); atombios_crtc_program_pll()
883 args.v5.usPixelClock = cpu_to_le16(clock / 10); atombios_crtc_program_pll()
885 args.v5.usFbDiv = cpu_to_le16(fb_div); atombios_crtc_program_pll()
914 args.v6.usFbDiv = cpu_to_le16(fb_div); atombios_crtc_program_pll()
H A Datombios_encoders.c390 args.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_dac_setup()
446 args.sTVEncoder.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_tv_setup()
519 args.dvo.sDVOEncoder.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_dvo_setup()
529 args.dvo_v3.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_dvo_setup()
535 args.dvo_v4.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_dvo_setup()
605 args.v1.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_digital_setup()
630 args.v2.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_digital_setup()
886 args.v1.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_dig_encoder_setup2()
923 args.v3.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_dig_encoder_setup2()
946 args.v4.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_dig_encoder_setup2()
1088 args.v1.usInitInfo = cpu_to_le16(connector_object_id); atombios_dig_transmitter_setup2()
1094 args.v1.usPixelClock = cpu_to_le16(dp_clock / 10); atombios_dig_transmitter_setup2()
1096 args.v1.usPixelClock = cpu_to_le16((radeon_encoder->pixel_clock / 2) / 10); atombios_dig_transmitter_setup2()
1098 args.v1.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_dig_transmitter_setup2()
1145 args.v2.usInitInfo = cpu_to_le16(connector_object_id); atombios_dig_transmitter_setup2()
1151 args.v2.usPixelClock = cpu_to_le16(dp_clock / 10); atombios_dig_transmitter_setup2()
1153 args.v2.usPixelClock = cpu_to_le16((radeon_encoder->pixel_clock / 2) / 10); atombios_dig_transmitter_setup2()
1155 args.v2.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_dig_transmitter_setup2()
1187 args.v3.usInitInfo = cpu_to_le16(connector_object_id); atombios_dig_transmitter_setup2()
1193 args.v3.usPixelClock = cpu_to_le16(dp_clock / 10); atombios_dig_transmitter_setup2()
1195 args.v3.usPixelClock = cpu_to_le16((radeon_encoder->pixel_clock / 2) / 10); atombios_dig_transmitter_setup2()
1197 args.v3.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_dig_transmitter_setup2()
1246 args.v4.usInitInfo = cpu_to_le16(connector_object_id); atombios_dig_transmitter_setup2()
1252 args.v4.usPixelClock = cpu_to_le16(dp_clock / 10); atombios_dig_transmitter_setup2()
1254 args.v4.usPixelClock = cpu_to_le16((radeon_encoder->pixel_clock / 2) / 10); atombios_dig_transmitter_setup2()
1256 args.v4.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_dig_transmitter_setup2()
1308 args.v5.usSymClock = cpu_to_le16(dp_clock / 10); atombios_dig_transmitter_setup2()
1310 args.v5.usSymClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_dig_transmitter_setup2()
1478 args.v1.sDigEncoder.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_external_encoder_setup()
1493 args.v3.sExtEncoder.usConnectorId = cpu_to_le16(connector_object_id); atombios_external_encoder_setup()
1495 args.v3.sExtEncoder.usPixelClock = cpu_to_le16(radeon_encoder->pixel_clock / 10); atombios_external_encoder_setup()
2352 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CRT1_SUPPORT); atombios_dac_load_detect()
2354 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CRT2_SUPPORT); atombios_dac_load_detect()
2356 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_CV_SUPPORT); atombios_dac_load_detect()
2360 args.sDacload.usDeviceID = cpu_to_le16(ATOM_DEVICE_TV1_SUPPORT); atombios_dac_load_detect()
H A Datombios_i2c.c45 u16 out = cpu_to_le16(0); radeon_process_i2c_ch()
69 args.lpI2CDataOut = cpu_to_le16(out); radeon_process_i2c_ch()
/linux-4.1.27/drivers/staging/rtl8188eu/include/
H A Dwifi.h248 *(__le16 *)(pbuf) |= cpu_to_le16(_TO_DS_)
250 #define GetToDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_TO_DS_)) != 0)
253 *(__le16 *)(pbuf) &= (~cpu_to_le16(_TO_DS_))
256 *(__le16 *)(pbuf) |= cpu_to_le16(_FROM_DS_)
258 #define GetFrDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_FROM_DS_)) != 0)
261 *(__le16 *)(pbuf) &= (~cpu_to_le16(_FROM_DS_))
267 *(__le16 *)(pbuf) |= cpu_to_le16(_MORE_FRAG_)
269 #define GetMFrag(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_MORE_FRAG_)) != 0)
272 *(__le16 *)(pbuf) &= (~cpu_to_le16(_MORE_FRAG_))
275 *(__le16 *)(pbuf) |= cpu_to_le16(_RETRY_)
277 #define GetRetry(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_RETRY_)) != 0)
280 *(__le16 *)(pbuf) &= (~cpu_to_le16(_RETRY_))
283 *(__le16 *)(pbuf) |= cpu_to_le16(_PWRMGT_)
285 #define GetPwrMgt(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_PWRMGT_)) != 0)
288 *(__le16 *)(pbuf) &= (~cpu_to_le16(_PWRMGT_))
291 *(__le16 *)(pbuf) |= cpu_to_le16(_MORE_DATA_)
293 #define GetMData(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_MORE_DATA_)) != 0)
296 *(__le16 *)(pbuf) &= (~cpu_to_le16(_MORE_DATA_))
299 *(__le16 *)(pbuf) |= cpu_to_le16(_PRIVACY_)
302 (((*(__le16 *)(pbuf)) & cpu_to_le16(_PRIVACY_)) != 0)
305 (((*(__le16 *)(pbuf)) & cpu_to_le16(_ORDER_)) != 0)
315 *(__le16 *)(pbuf) &= cpu_to_le16(~(BIT(7) | BIT(6) | \
317 *(__le16 *)(pbuf) |= cpu_to_le16(type); \
329 ((*(__le16 *)((size_t)(pbuf) + 22)) & cpu_to_le16((unsigned short)0x000f)) | \
330 cpu_to_le16((unsigned short)(0xfff0 & (num << 4))); \
334 *(__le16 *)((size_t)(pbuf) + 2) = cpu_to_le16(0xffff & (dur))
338 *(__le16 *)(pbuf) |= cpu_to_le16(tid & 0xf)
343 *(__le16 *)(pbuf) |= cpu_to_le16((eosp & 1) << 4)
346 *(__le16 *)(pbuf) |= cpu_to_le16((ack & 3) << 5)
579 *(unsigned short *)(pbuf) |= cpu_to_le16(_ORDER_); \
/linux-4.1.27/drivers/net/wireless/ipw2x00/
H A Dipw2200.h271 #define QOS_TX0_CW_MIN_OFDM cpu_to_le16(CW_MIN_OFDM)
272 #define QOS_TX1_CW_MIN_OFDM cpu_to_le16(CW_MIN_OFDM)
273 #define QOS_TX2_CW_MIN_OFDM cpu_to_le16((CW_MIN_OFDM + 1)/2 - 1)
274 #define QOS_TX3_CW_MIN_OFDM cpu_to_le16((CW_MIN_OFDM + 1)/4 - 1)
276 #define QOS_TX0_CW_MIN_CCK cpu_to_le16(CW_MIN_CCK)
277 #define QOS_TX1_CW_MIN_CCK cpu_to_le16(CW_MIN_CCK)
278 #define QOS_TX2_CW_MIN_CCK cpu_to_le16((CW_MIN_CCK + 1)/2 - 1)
279 #define QOS_TX3_CW_MIN_CCK cpu_to_le16((CW_MIN_CCK + 1)/4 - 1)
281 #define QOS_TX0_CW_MAX_OFDM cpu_to_le16(CW_MAX_OFDM)
282 #define QOS_TX1_CW_MAX_OFDM cpu_to_le16(CW_MAX_OFDM)
283 #define QOS_TX2_CW_MAX_OFDM cpu_to_le16(CW_MIN_OFDM)
284 #define QOS_TX3_CW_MAX_OFDM cpu_to_le16((CW_MIN_OFDM + 1)/2 - 1)
286 #define QOS_TX0_CW_MAX_CCK cpu_to_le16(CW_MAX_CCK)
287 #define QOS_TX1_CW_MAX_CCK cpu_to_le16(CW_MAX_CCK)
288 #define QOS_TX2_CW_MAX_CCK cpu_to_le16(CW_MIN_CCK)
289 #define QOS_TX3_CW_MAX_CCK cpu_to_le16((CW_MIN_CCK + 1)/2 - 1)
303 #define QOS_TX2_TXOP_LIMIT_CCK cpu_to_le16(6016)
304 #define QOS_TX3_TXOP_LIMIT_CCK cpu_to_le16(3264)
308 #define QOS_TX2_TXOP_LIMIT_OFDM cpu_to_le16(3008)
309 #define QOS_TX3_TXOP_LIMIT_OFDM cpu_to_le16(1504)
311 #define DEF_TX0_CW_MIN_OFDM cpu_to_le16(CW_MIN_OFDM)
312 #define DEF_TX1_CW_MIN_OFDM cpu_to_le16(CW_MIN_OFDM)
313 #define DEF_TX2_CW_MIN_OFDM cpu_to_le16(CW_MIN_OFDM)
314 #define DEF_TX3_CW_MIN_OFDM cpu_to_le16(CW_MIN_OFDM)
316 #define DEF_TX0_CW_MIN_CCK cpu_to_le16(CW_MIN_CCK)
317 #define DEF_TX1_CW_MIN_CCK cpu_to_le16(CW_MIN_CCK)
318 #define DEF_TX2_CW_MIN_CCK cpu_to_le16(CW_MIN_CCK)
319 #define DEF_TX3_CW_MIN_CCK cpu_to_le16(CW_MIN_CCK)
321 #define DEF_TX0_CW_MAX_OFDM cpu_to_le16(CW_MAX_OFDM)
322 #define DEF_TX1_CW_MAX_OFDM cpu_to_le16(CW_MAX_OFDM)
323 #define DEF_TX2_CW_MAX_OFDM cpu_to_le16(CW_MAX_OFDM)
324 #define DEF_TX3_CW_MAX_OFDM cpu_to_le16(CW_MAX_OFDM)
326 #define DEF_TX0_CW_MAX_CCK cpu_to_le16(CW_MAX_CCK)
327 #define DEF_TX1_CW_MAX_CCK cpu_to_le16(CW_MAX_CCK)
328 #define DEF_TX2_CW_MAX_CCK cpu_to_le16(CW_MAX_CCK)
329 #define DEF_TX3_CW_MAX_CCK cpu_to_le16(CW_MAX_CCK)
1773 #define HC_QOS_SUPPORT_ASSOC cpu_to_le16(0x01)
H A Dlibipw_rx.c1026 qos_param->cw_min[i] = cpu_to_le16((1 << cw_min) - 1); libipw_qos_convert_ac_to_parameters()
1029 qos_param->cw_max[i] = cpu_to_le16((1 << cw_max) - 1); libipw_qos_convert_ac_to_parameters()
1035 qos_param->tx_op_limit[i] = cpu_to_le16(txop); libipw_qos_convert_ac_to_parameters()
1550 (beacon->capability & cpu_to_le16(1 << 0xf)) ? '1' : '0', libipw_process_probe_response()
1551 (beacon->capability & cpu_to_le16(1 << 0xe)) ? '1' : '0', libipw_process_probe_response()
1552 (beacon->capability & cpu_to_le16(1 << 0xd)) ? '1' : '0', libipw_process_probe_response()
1553 (beacon->capability & cpu_to_le16(1 << 0xc)) ? '1' : '0', libipw_process_probe_response()
1554 (beacon->capability & cpu_to_le16(1 << 0xb)) ? '1' : '0', libipw_process_probe_response()
1555 (beacon->capability & cpu_to_le16(1 << 0xa)) ? '1' : '0', libipw_process_probe_response()
1556 (beacon->capability & cpu_to_le16(1 << 0x9)) ? '1' : '0', libipw_process_probe_response()
1557 (beacon->capability & cpu_to_le16(1 << 0x8)) ? '1' : '0', libipw_process_probe_response()
1558 (beacon->capability & cpu_to_le16(1 << 0x7)) ? '1' : '0', libipw_process_probe_response()
1559 (beacon->capability & cpu_to_le16(1 << 0x6)) ? '1' : '0', libipw_process_probe_response()
1560 (beacon->capability & cpu_to_le16(1 << 0x5)) ? '1' : '0', libipw_process_probe_response()
1561 (beacon->capability & cpu_to_le16(1 << 0x4)) ? '1' : '0', libipw_process_probe_response()
1562 (beacon->capability & cpu_to_le16(1 << 0x3)) ? '1' : '0', libipw_process_probe_response()
1563 (beacon->capability & cpu_to_le16(1 << 0x2)) ? '1' : '0', libipw_process_probe_response()
1564 (beacon->capability & cpu_to_le16(1 << 0x1)) ? '1' : '0', libipw_process_probe_response()
1565 (beacon->capability & cpu_to_le16(1 << 0x0)) ? '1' : '0'); libipw_process_probe_response()
H A Dlibipw_tx.c340 header.qos_ctl |= cpu_to_le16(skb->priority & LIBIPW_QCTL_TID); libipw_xmit()
342 header.frame_ctl = cpu_to_le16(fc); libipw_xmit()
449 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_RTS); libipw_xmit()
455 header.frame_ctl = cpu_to_le16(fc); libipw_xmit()
481 cpu_to_le16(fc | IEEE80211_FCTL_MOREFRAGS); libipw_xmit()
/linux-4.1.27/arch/parisc/lib/
H A Dio.c182 l = cpu_to_le16(inw(port)) << 16; insw()
183 l |= cpu_to_le16(inw(port)); insw()
188 *(unsigned short *)p = cpu_to_le16(inw(port)); insw()
193 *(unsigned short *)p = cpu_to_le16(inw(port)); insw()
199 l = cpu_to_le16(inw(port)) << 16; insw()
200 l |= cpu_to_le16(inw(port)); insw()
205 *(unsigned short *)p = cpu_to_le16(inw(port)); insw()
215 l = cpu_to_le16(inw(port)); insw()
220 l2 = cpu_to_le16(inw(port)); insw()
/linux-4.1.27/drivers/net/wireless/prism54/
H A Doid_mgt.c361 bss->age = cpu_to_le16(bss->age); mgt_cpu_to_le()
362 bss->channel = cpu_to_le16(bss->channel); mgt_cpu_to_le()
363 bss->capinfo = cpu_to_le16(bss->capinfo); mgt_cpu_to_le()
364 bss->rates = cpu_to_le16(bss->rates); mgt_cpu_to_le()
365 bss->basic_rates = cpu_to_le16(bss->basic_rates); mgt_cpu_to_le()
379 freq->nr = cpu_to_le16(freq->nr); mgt_cpu_to_le()
381 freq->mhz[i] = cpu_to_le16(freq->mhz[i]); mgt_cpu_to_le()
386 mlme->id = cpu_to_le16(mlme->id); mgt_cpu_to_le()
387 mlme->state = cpu_to_le16(mlme->state); mgt_cpu_to_le()
388 mlme->code = cpu_to_le16(mlme->code); mgt_cpu_to_le()
393 mlme->id = cpu_to_le16(mlme->id); mgt_cpu_to_le()
394 mlme->state = cpu_to_le16(mlme->state); mgt_cpu_to_le()
395 mlme->code = cpu_to_le16(mlme->code); mgt_cpu_to_le()
396 mlme->size = cpu_to_le16(mlme->size); mgt_cpu_to_le()
401 attach->id = cpu_to_le16(attach->id); mgt_cpu_to_le()
402 attach->size = cpu_to_le16(attach->size); mgt_cpu_to_le()
/linux-4.1.27/drivers/usb/gadget/function/
H A Df_ecm.c135 .bcdCDC = cpu_to_le16(0x0110),
154 .wMaxSegmentSize = cpu_to_le16(ETH_FRAME_LEN),
155 .wNumberMCFilters = cpu_to_le16(0),
197 .wMaxPacketSize = cpu_to_le16(ECM_STATUS_BYTECOUNT),
244 .wMaxPacketSize = cpu_to_le16(ECM_STATUS_BYTECOUNT),
254 .wMaxPacketSize = cpu_to_le16(512),
263 .wMaxPacketSize = cpu_to_le16(512),
293 .wMaxPacketSize = cpu_to_le16(ECM_STATUS_BYTECOUNT),
304 .wBytesPerInterval = cpu_to_le16(ECM_STATUS_BYTECOUNT),
313 .wMaxPacketSize = cpu_to_le16(1024),
322 .wMaxPacketSize = cpu_to_le16(1024),
398 event->wValue = cpu_to_le16(1); ecm_do_notify()
400 event->wValue = cpu_to_le16(0); ecm_do_notify()
411 event->wValue = cpu_to_le16(0); ecm_do_notify()
412 event->wLength = cpu_to_le16(8); ecm_do_notify()
425 event->wIndex = cpu_to_le16(ecm->ctrl_id); ecm_do_notify()
H A Df_uvc.c96 .wMaxPacketSize = cpu_to_le16(UVC_STATUS_MAX_PACKET_SIZE),
106 .wBytesPerInterval = cpu_to_le16(UVC_STATUS_MAX_PACKET_SIZE),
113 .wMaxTransferSize = cpu_to_le16(UVC_STATUS_MAX_PACKET_SIZE),
570 uvc_control_header->wTotalLength = cpu_to_le16(control_size); uvc_copy_descriptors()
584 uvc_streaming_header->wTotalLength = cpu_to_le16(streaming_size); uvc_copy_descriptors()
632 cpu_to_le16(min(opts->streaming_maxpacket, 1023U)); uvc_function_bind()
636 cpu_to_le16(max_packet_size | ((max_packet_mult - 1) << 11)); uvc_function_bind()
639 uvc_ss_streaming_ep.wMaxPacketSize = cpu_to_le16(max_packet_size); uvc_function_bind()
644 cpu_to_le16(max_packet_size * max_packet_mult * uvc_function_bind()
809 cd->wTerminalType = cpu_to_le16(0x0201); uvc_alloc_inst()
812 cd->wObjectiveFocalLengthMin = cpu_to_le16(0); uvc_alloc_inst()
813 cd->wObjectiveFocalLengthMax = cpu_to_le16(0); uvc_alloc_inst()
814 cd->wOcularFocalLength = cpu_to_le16(0); uvc_alloc_inst()
826 pd->wMaxMultiplier = cpu_to_le16(16*1024); uvc_alloc_inst()
837 od->wTerminalType = cpu_to_le16(0x0101); uvc_alloc_inst()
H A Df_subset.c97 .bcdCDC = cpu_to_le16(0x0110),
105 .bcdVersion = cpu_to_le16(0x0100),
134 .wMaxSegmentSize = cpu_to_le16(ETH_FRAME_LEN),
135 .wNumberMCFilters = cpu_to_le16(0),
175 .wMaxPacketSize = cpu_to_le16(512),
183 .wMaxPacketSize = cpu_to_le16(512),
204 .wMaxPacketSize = cpu_to_le16(1024),
212 .wMaxPacketSize = cpu_to_le16(1024),
H A Df_ncm.c126 .wLength = cpu_to_le16(sizeof(ntb_parameters)),
127 .bmNtbFormatsSupported = cpu_to_le16(FORMATS_SUPPORTED),
129 .wNdpInDivisor = cpu_to_le16(4),
130 .wNdpInPayloadRemainder = cpu_to_le16(0),
131 .wNdpInAlignment = cpu_to_le16(4),
134 .wNdpOutDivisor = cpu_to_le16(4),
135 .wNdpOutPayloadRemainder = cpu_to_le16(0),
136 .wNdpOutAlignment = cpu_to_le16(4),
179 .bcdCDC = cpu_to_le16(0x0110),
198 .wMaxSegmentSize = cpu_to_le16(ETH_FRAME_LEN),
199 .wNumberMCFilters = cpu_to_le16(0),
210 .bcdNcmVersion = cpu_to_le16(0x0100),
253 .wMaxPacketSize = cpu_to_le16(NCM_STATUS_BYTECOUNT),
298 .wMaxPacketSize = cpu_to_le16(NCM_STATUS_BYTECOUNT),
307 .wMaxPacketSize = cpu_to_le16(512),
316 .wMaxPacketSize = cpu_to_le16(512),
494 event->wValue = cpu_to_le16(1); ncm_do_notify()
496 event->wValue = cpu_to_le16(0); ncm_do_notify()
507 event->wValue = cpu_to_le16(0); ncm_do_notify()
508 event->wLength = cpu_to_le16(8); ncm_do_notify()
521 event->wIndex = cpu_to_le16(ncm->ctrl_id); ncm_do_notify()
H A Df_serial.c86 .wMaxPacketSize = cpu_to_le16(512),
93 .wMaxPacketSize = cpu_to_le16(512),
107 .wMaxPacketSize = cpu_to_le16(1024),
114 .wMaxPacketSize = cpu_to_le16(1024),
H A Df_acm.c137 .bcdCDC = cpu_to_le16(0x0110),
171 .wMaxPacketSize = cpu_to_le16(GS_NOTIFY_MAXPACKET),
209 .wMaxPacketSize = cpu_to_le16(GS_NOTIFY_MAXPACKET),
217 .wMaxPacketSize = cpu_to_le16(512),
224 .wMaxPacketSize = cpu_to_le16(512),
245 .wMaxPacketSize = cpu_to_le16(1024),
252 .wMaxPacketSize = cpu_to_le16(1024),
519 notify->wValue = cpu_to_le16(value); acm_cdc_notify()
520 notify->wIndex = cpu_to_le16(acm->ctrl_id); acm_cdc_notify()
521 notify->wLength = cpu_to_le16(length); acm_cdc_notify()
H A Df_loopback.c95 .wMaxPacketSize = cpu_to_le16(512),
103 .wMaxPacketSize = cpu_to_le16(512),
120 .wMaxPacketSize = cpu_to_le16(1024),
136 .wMaxPacketSize = cpu_to_le16(1024),
H A Df_obex.c111 .bcdCDC = cpu_to_le16(0x0120),
126 .bcdVersion = cpu_to_le16(0x0100),
137 .wMaxPacketSize = cpu_to_le16(512),
146 .wMaxPacketSize = cpu_to_le16(512),
H A Dstorage_common.c96 .wMaxPacketSize = cpu_to_le16(512),
106 .wMaxPacketSize = cpu_to_le16(512),
126 .wMaxPacketSize = cpu_to_le16(1024),
144 .wMaxPacketSize = cpu_to_le16(1024),
H A Df_sourcesink.c119 .wMaxPacketSize = cpu_to_le16(1023),
129 .wMaxPacketSize = cpu_to_le16(1023),
153 .wMaxPacketSize = cpu_to_le16(512),
161 .wMaxPacketSize = cpu_to_le16(512),
169 .wMaxPacketSize = cpu_to_le16(1024),
178 .wMaxPacketSize = cpu_to_le16(1024),
202 .wMaxPacketSize = cpu_to_le16(1024),
219 .wMaxPacketSize = cpu_to_le16(1024),
236 .wMaxPacketSize = cpu_to_le16(1024),
246 .wBytesPerInterval = cpu_to_le16(1024),
254 .wMaxPacketSize = cpu_to_le16(1024),
264 .wBytesPerInterval = cpu_to_le16(1024),
H A Df_uac2.c605 .bcdUSB = cpu_to_le16(0x200),
667 .wTerminalType = cpu_to_le16(UAC_TERMINAL_STREAMING),
681 .wTerminalType = cpu_to_le16(UAC_INPUT_TERMINAL_UNDEFINED),
695 .wTerminalType = cpu_to_le16(UAC_TERMINAL_STREAMING),
709 .wTerminalType = cpu_to_le16(UAC_OUTPUT_TERMINAL_UNDEFINED),
721 .bcdADC = cpu_to_le16(0x200),
781 .wMaxPacketSize = cpu_to_le16(1023),
790 .wMaxPacketSize = cpu_to_le16(1024),
858 .wMaxPacketSize = cpu_to_le16(1023),
867 .wMaxPacketSize = cpu_to_le16(1024),
997 ep_desc->wMaxPacketSize = cpu_to_le16(min(max_packet_size, set_ep_max_packet_size()
/linux-4.1.27/include/linux/unaligned/
H A Daccess_ok.h39 *((__le16 *)p) = cpu_to_le16(val); put_unaligned_le16()
/linux-4.1.27/arch/mips/include/asm/
H A Dvga.h35 *addr = cpu_to_le16(val); scr_writew()
/linux-4.1.27/arch/powerpc/include/asm/
H A Dvga.h28 *addr = cpu_to_le16(val); scr_writew()
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
H A Dmac.h67 hdr->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG); ath10k_tx_h_seq_no()
68 hdr->seq_ctrl |= cpu_to_le16(arvif->tx_seq_no); ath10k_tx_h_seq_no()
/linux-4.1.27/fs/ntfs/
H A Dendian.h65 return (__force sle16)cpu_to_le16(x); cpu_to_sle16()
80 return (__force sle16)cpu_to_le16(*x); cpu_to_sle16p()
H A Dupcase.c77 uc[i] = cpu_to_le16(i); generate_default_upcase()
85 uc[uc_word_table[r][0]] = cpu_to_le16(uc_word_table[r][1]); generate_default_upcase()
/linux-4.1.27/net/mac80211/
H A Dvht.c110 vht_cap->vht_mcs.rx_mcs_map = cpu_to_le16(rxmcs_cap); ieee80211_apply_vhtcap_overrides()
111 vht_cap->vht_mcs.tx_mcs_map = cpu_to_le16(txmcs_cap); ieee80211_apply_vhtcap_overrides()
247 ~cpu_to_le16(IEEE80211_VHT_MCS_NOT_SUPPORTED << i * 2); ieee80211_vht_cap_ie_to_sta_vht_cap()
248 vht_cap->vht_mcs.rx_mcs_map |= cpu_to_le16(peer_rx << i * 2); ieee80211_vht_cap_ie_to_sta_vht_cap()
251 ~cpu_to_le16(IEEE80211_VHT_MCS_NOT_SUPPORTED << i * 2); ieee80211_vht_cap_ie_to_sta_vht_cap()
252 vht_cap->vht_mcs.tx_mcs_map |= cpu_to_le16(peer_tx << i * 2); ieee80211_vht_cap_ie_to_sta_vht_cap()
H A Dht.c27 __le16 le_flag = cpu_to_le16(flag); __check_htcap_disable()
39 __le16 le_flag = cpu_to_le16(flag); __check_htcap_enable()
385 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | ieee80211_send_delba()
395 mgmt->u.action.u.delba.params = cpu_to_le16(params); ieee80211_send_delba()
396 mgmt->u.action.u.delba.reason_code = cpu_to_le16(reason_code); ieee80211_send_delba()
442 action_frame->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | ieee80211_send_smps_action()
H A Dmesh_ps.c34 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_QOS_NULLFUNC); mps_qos_null_get()
206 hdr->frame_control &= cpu_to_le16(~IEEE80211_FCTL_PM); ieee80211_mps_set_frame_flags()
208 hdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM); ieee80211_mps_set_frame_flags()
378 cpu_to_le16(IEEE80211_FCTL_MOREDATA); mpsp_trigger_send()
507 cpu_to_le16(IEEE80211_FCTL_MOREDATA); mps_frame_deliver()
510 cpu_to_le16(~IEEE80211_FCTL_MOREDATA); mps_frame_deliver()
H A Dwpa.c322 mask_fc &= ~cpu_to_le16(IEEE80211_FCTL_RETRY | ccmp_special_blocks()
325 mask_fc &= ~cpu_to_le16(0x0070); ccmp_special_blocks()
326 mask_fc |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); ccmp_special_blocks()
573 mask_fc &= ~cpu_to_le16(IEEE80211_FCTL_RETRY | gcmp_special_blocks()
576 mask_fc &= ~cpu_to_le16(0x0070); gcmp_special_blocks()
577 mask_fc |= cpu_to_le16(IEEE80211_FCTL_PROTECTED); gcmp_special_blocks()
885 mask_fc &= ~cpu_to_le16(IEEE80211_FCTL_RETRY | IEEE80211_FCTL_PM | bip_aad()
940 mmie->key_id = cpu_to_le16(key->conf.keyidx); ieee80211_crypto_aes_cmac_encrypt()
984 mmie->key_id = cpu_to_le16(key->conf.keyidx); ieee80211_crypto_aes_cmac_256_encrypt()
1129 mmie->key_id = cpu_to_le16(key->conf.keyidx); ieee80211_crypto_aes_gmac_encrypt()
/linux-4.1.27/drivers/scsi/qla2xxx/
H A Dqla_iocb.c216 cmd_pkt->control_flags |= cpu_to_le16(qla2x00_get_cmd_direction(sp)); qla2x00_build_scsi_iocbs_32()
274 cmd_pkt->control_flags |= cpu_to_le16(qla2x00_get_cmd_direction(sp)); qla2x00_build_scsi_iocbs_64()
401 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds); qla2x00_start_scsi()
405 cmd_pkt->lun = cpu_to_le16(cmd->device->lun); qla2x00_start_scsi()
525 mrk24->nport_handle = cpu_to_le16(loop_id); __qla2x00_marker()
532 mrk->lun = cpu_to_le16((uint16_t)lun); __qla2x00_marker()
1332 cmd_pkt->fcp_cmnd_dseg_len = cpu_to_le16(fcp_cmnd_len); qla24xx_build_scsi_crc_2_iocbs()
1386 crc_ctx_pkt->u.bundling.dseg_count = cpu_to_le16(tot_dsds - qla24xx_build_scsi_crc_2_iocbs()
1392 crc_ctx_pkt->blk_size = cpu_to_le16(blk_size); qla24xx_build_scsi_crc_2_iocbs()
1393 crc_ctx_pkt->prot_opts = cpu_to_le16(fw_prot_opts); qla24xx_build_scsi_crc_2_iocbs()
1529 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds); qla24xx_start_scsi()
1532 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); qla24xx_start_scsi()
1736 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); qla24xx_dif_start_scsi()
1745 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds); qla24xx_dif_start_scsi()
1904 logio->control_flags = cpu_to_le16(LCF_COMMAND_PLOGI); qla24xx_login_iocb()
1906 logio->control_flags |= cpu_to_le16(LCF_COND_PLOGI); qla24xx_login_iocb()
1908 logio->control_flags |= cpu_to_le16(LCF_SKIP_PRLI); qla24xx_login_iocb()
1909 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id); qla24xx_login_iocb()
1925 mbx->mb0 = cpu_to_le16(MBC_LOGIN_FABRIC_PORT); qla2x00_login_iocb()
1929 mbx->mb1 = cpu_to_le16(sp->fcport->loop_id); qla2x00_login_iocb()
1930 mbx->mb10 = cpu_to_le16(opts); qla2x00_login_iocb()
1932 mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | opts); qla2x00_login_iocb()
1934 mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain); qla2x00_login_iocb()
1935 mbx->mb3 = cpu_to_le16(sp->fcport->d_id.b.area << 8 | qla2x00_login_iocb()
1937 mbx->mb9 = cpu_to_le16(sp->fcport->vha->vp_idx); qla2x00_login_iocb()
1945 cpu_to_le16(LCF_COMMAND_LOGO|LCF_IMPL_LOGO); qla24xx_logout_iocb()
1948 logio->control_flags |= cpu_to_le16(LCF_FREE_NPORT); qla24xx_logout_iocb()
1949 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id); qla24xx_logout_iocb()
1963 mbx->mb0 = cpu_to_le16(MBC_LOGOUT_FABRIC_PORT); qla2x00_logout_iocb()
1965 cpu_to_le16(sp->fcport->loop_id): qla2x00_logout_iocb()
1966 cpu_to_le16(sp->fcport->loop_id << 8); qla2x00_logout_iocb()
1967 mbx->mb2 = cpu_to_le16(sp->fcport->d_id.b.domain); qla2x00_logout_iocb()
1968 mbx->mb3 = cpu_to_le16(sp->fcport->d_id.b.area << 8 | qla2x00_logout_iocb()
1970 mbx->mb9 = cpu_to_le16(sp->fcport->vha->vp_idx); qla2x00_logout_iocb()
1978 logio->control_flags = cpu_to_le16(LCF_COMMAND_ADISC); qla24xx_adisc_iocb()
1979 logio->nport_handle = cpu_to_le16(sp->fcport->loop_id); qla24xx_adisc_iocb()
1990 mbx->mb0 = cpu_to_le16(MBC_GET_PORT_DATABASE); qla2x00_adisc_iocb()
1992 mbx->mb1 = cpu_to_le16(sp->fcport->loop_id); qla2x00_adisc_iocb()
1993 mbx->mb10 = cpu_to_le16(BIT_0); qla2x00_adisc_iocb()
1995 mbx->mb1 = cpu_to_le16((sp->fcport->loop_id << 8) | BIT_0); qla2x00_adisc_iocb()
1997 mbx->mb2 = cpu_to_le16(MSW(ha->async_pd_dma)); qla2x00_adisc_iocb()
1998 mbx->mb3 = cpu_to_le16(LSW(ha->async_pd_dma)); qla2x00_adisc_iocb()
1999 mbx->mb6 = cpu_to_le16(MSW(MSD(ha->async_pd_dma))); qla2x00_adisc_iocb()
2000 mbx->mb7 = cpu_to_le16(LSW(MSD(ha->async_pd_dma))); qla2x00_adisc_iocb()
2001 mbx->mb9 = cpu_to_le16(sp->fcport->vha->vp_idx); qla2x00_adisc_iocb()
2021 tsk->nport_handle = cpu_to_le16(fcport->loop_id); qla24xx_tm_iocb()
2022 tsk->timeout = cpu_to_le16(ha->r_a_tov / 10 * 2); qla24xx_tm_iocb()
2046 els_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id); qla24xx_els_iocb()
2181 ct_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id); qla24xx_ct_iocb()
2413 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds); qla82xx_start_scsi()
2416 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); qla82xx_start_scsi()
2450 cmd_pkt->fcp_cmnd_dseg_len = cpu_to_le16(ctx->fcp_cmnd_len); qla82xx_start_scsi()
2486 cmd_pkt->dseg_count = cpu_to_le16(tot_dsds); qla82xx_start_scsi()
2489 cmd_pkt->nport_handle = cpu_to_le16(sp->fcport->loop_id); qla82xx_start_scsi()
2590 abt_iocb->nport_handle = cpu_to_le16(sp->fcport->loop_id); qla24xx_abort_iocb()
2597 abt_iocb->req_que_no = cpu_to_le16(req->id); qla24xx_abort_iocb()
2691 cmd_pkt->wr_dseg_count = cpu_to_le16(bsg_job->request_payload.sg_cnt); qla25xx_build_bidir_iocb()
2692 cmd_pkt->rd_dseg_count = cpu_to_le16(bsg_job->reply_payload.sg_cnt); qla25xx_build_bidir_iocb()
2700 cmd_pkt->timeout = cpu_to_le16(qla2x00_get_async_timeout(vha) + 2); qla25xx_build_bidir_iocb()
2841 cmd_pkt->nport_handle = cpu_to_le16(vha->self_login_loop_id); qla2x00_start_bidir()
H A Dqla_mr.c1927 fdisc->u.fxiocb.req_func_type = cpu_to_le16(fx_type); qlafx00_fx_disc()
2180 if (cpstatus != cpu_to_le16((uint16_t)CS_COMPLETE) || qlafx00_tm_iocb_entry()
2181 (sstatus & cpu_to_le16((uint16_t)SS_RESPONSE_INFO_LEN_VALID))) qlafx00_tm_iocb_entry()
2182 cpstatus = cpu_to_le16((uint16_t)CS_INCOMPLETE); qlafx00_tm_iocb_entry()
2298 scsi_status = sts->scsi_status & cpu_to_le16((uint16_t)SS_MASK); qlafx00_status_entry()
2343 lscsi_status = scsi_status & cpu_to_le16((uint16_t)STATUS_MASK); qlafx00_status_entry()
2350 if (scsi_status & cpu_to_le16((uint16_t)SS_SENSE_LEN_VALID)) qlafx00_status_entry()
2352 if (scsi_status & cpu_to_le16(((uint16_t)SS_RESIDUAL_UNDER qlafx00_status_entry()
2355 if (comp_status == cpu_to_le16((uint16_t)CS_DATA_UNDERRUN)) qlafx00_status_entry()
2362 scsi_status & cpu_to_le16((uint16_t)SS_RESIDUAL_OVER)) qlafx00_status_entry()
2363 comp_status = cpu_to_le16((uint16_t)CS_DATA_OVERRUN); qlafx00_status_entry()
2375 if (scsi_status & cpu_to_le16(((uint16_t)SS_RESIDUAL_UNDER qlafx00_status_entry()
2395 cpu_to_le16((uint16_t)SAM_STAT_TASK_SET_FULL)) { qlafx00_status_entry()
2401 if (lscsi_status != cpu_to_le16((uint16_t)SS_CHECK_CONDITION)) qlafx00_status_entry()
2405 if (!(scsi_status & cpu_to_le16((uint16_t)SS_SENSE_LEN_VALID))) qlafx00_status_entry()
2419 if (scsi_status & cpu_to_le16((uint16_t)SS_RESIDUAL_UNDER)) { qlafx00_status_entry()
2445 cpu_to_le16((uint16_t)SAM_STAT_TASK_SET_FULL) && qlafx00_status_entry()
2446 lscsi_status != cpu_to_le16((uint16_t)SAM_STAT_BUSY)) { qlafx00_status_entry()
2475 cpu_to_le16((uint16_t)SAM_STAT_TASK_SET_FULL)) { qlafx00_status_entry()
2482 cpu_to_le16((uint16_t)SS_CHECK_CONDITION)) qlafx00_status_entry()
2487 cpu_to_le16((uint16_t)SS_SENSE_LEN_VALID))) qlafx00_status_entry()
3152 lcmd_pkt.dseg_count = cpu_to_le16(tot_dsds); qlafx00_start_scsi()
3153 lcmd_pkt.tgt_idx = cpu_to_le16(sp->fcport->tgt_id); qlafx00_start_scsi()
3220 tm_iocb.tgt_id = cpu_to_le16(sp->fcport->tgt_id); qlafx00_tm_iocb()
3247 abt_iocb.tgt_id_sts = cpu_to_le16(sp->fcport->tgt_id); qlafx00_abort_iocb()
3248 abt_iocb.req_que_no = cpu_to_le16(req->id); qlafx00_abort_iocb()
3279 fx_iocb.req_dsdcnt = cpu_to_le16(1); qlafx00_fxdisc_iocb()
3281 cpu_to_le16(fxio->u.fxiocb.req_len); qlafx00_fxdisc_iocb()
3291 fx_iocb.rsp_dsdcnt = cpu_to_le16(1); qlafx00_fxdisc_iocb()
3293 cpu_to_le16(fxio->u.fxiocb.rsp_len); qlafx00_fxdisc_iocb()
3330 cpu_to_le16(bsg_job->request_payload.sg_cnt); qlafx00_fxdisc_iocb()
3393 cpu_to_le16(bsg_job->reply_payload.sg_cnt); qlafx00_fxdisc_iocb()
/linux-4.1.27/drivers/net/wimax/i2400m/
H A Dcontrol.c532 if (l3l4_hdr->status == cpu_to_le16(I2400M_MS_DONE_OK)) { i2400m_report_hook()
875 cmd->hdr.type = cpu_to_le16(I2400M_MT_CMD_ENTER_POWERSAVE); i2400m_cmd_enter_powersave()
876 cmd->hdr.length = cpu_to_le16(sizeof(*cmd) - sizeof(cmd->hdr)); i2400m_cmd_enter_powersave()
877 cmd->hdr.version = cpu_to_le16(I2400M_L3L4_VERSION); i2400m_cmd_enter_powersave()
878 cmd->tlv.type = cpu_to_le16(I2400M_TLV_TYPE_WAKEUP_MODE); i2400m_cmd_enter_powersave()
879 cmd->tlv.length = cpu_to_le16(sizeof(cmd->val)); i2400m_cmd_enter_powersave()
943 cmd->type = cpu_to_le16(I2400M_MT_GET_DEVICE_INFO); i2400m_get_device_info()
945 cmd->version = cpu_to_le16(I2400M_L3L4_VERSION); i2400m_get_device_info()
1026 cmd->type = cpu_to_le16(I2400M_MT_GET_LM_VERSION); i2400m_firmware_check()
1028 cmd->version = cpu_to_le16(I2400M_L3L4_VERSION); i2400m_firmware_check()
1105 cmd->type = cpu_to_le16(I2400M_MT_CMD_EXIT_IDLE); i2400m_cmd_exit_idle()
1107 cmd->version = cpu_to_le16(I2400M_L3L4_VERSION); i2400m_cmd_exit_idle()
1155 cmd->type = cpu_to_le16(I2400M_MT_GET_STATE); i2400m_cmd_get_state()
1157 cmd->version = cpu_to_le16(I2400M_L3L4_VERSION); i2400m_cmd_get_state()
1226 cmd->type = cpu_to_le16(I2400M_MT_SET_INIT_CONFIG); i2400m_set_init_config()
1227 cmd->length = cpu_to_le16(argsize); i2400m_set_init_config()
1228 cmd->version = cpu_to_le16(I2400M_L3L4_VERSION); i2400m_set_init_config()
1302 cmd->hdr.type = cpu_to_le16(I2400M_MT_GET_STATE); i2400m_set_idle_timeout()
1303 cmd->hdr.length = cpu_to_le16(sizeof(*cmd) - sizeof(cmd->hdr)); i2400m_set_idle_timeout()
1304 cmd->hdr.version = cpu_to_le16(I2400M_L3L4_VERSION); i2400m_set_idle_timeout()
1307 cpu_to_le16(I2400M_TLV_CONFIG_IDLE_TIMEOUT); i2400m_set_idle_timeout()
1308 cmd->cit.hdr.length = cpu_to_le16(sizeof(cmd->cit.timeout)); i2400m_set_idle_timeout()
1366 cpu_to_le16(I2400M_TLV_CONFIG_IDLE_PARAMETERS); i2400m_dev_initialize()
1367 idle_params.hdr.length = cpu_to_le16( i2400m_dev_initialize()
1374 cpu_to_le16(I2400M_TLV_CONFIG_IDLE_TIMEOUT); i2400m_dev_initialize()
1375 idle_timeout.hdr.length = cpu_to_le16( i2400m_dev_initialize()
1384 cpu_to_le16(I2400M_TLV_CONFIG_D2H_DATA_FORMAT); i2400m_dev_initialize()
1385 df.hdr.length = cpu_to_le16( i2400m_dev_initialize()
1394 cpu_to_le16(I2400M_TLV_CONFIG_DL_HOST_REORDER); i2400m_dev_initialize()
1395 dlhr.hdr.length = cpu_to_le16( i2400m_dev_initialize()
H A Dop-rfkill.c103 cmd->hdr.type = cpu_to_le16(I2400M_MT_CMD_RF_CONTROL); i2400m_op_rfkill_sw_toggle()
105 cmd->hdr.version = cpu_to_le16(I2400M_L3L4_VERSION); i2400m_op_rfkill_sw_toggle()
106 cmd->sw_rf.hdr.type = cpu_to_le16(I2400M_TLV_RF_OPERATION); i2400m_op_rfkill_sw_toggle()
107 cmd->sw_rf.hdr.length = cpu_to_le16(sizeof(cmd->sw_rf.status)); i2400m_op_rfkill_sw_toggle()
/linux-4.1.27/drivers/net/wireless/iwlegacy/
H A Ddebug.c56 switch (fc & cpu_to_le16(IEEE80211_FCTL_STYPE)) { il_update_stats()
57 case cpu_to_le16(IEEE80211_STYPE_ASSOC_REQ): il_update_stats()
60 case cpu_to_le16(IEEE80211_STYPE_ASSOC_RESP): il_update_stats()
63 case cpu_to_le16(IEEE80211_STYPE_REASSOC_REQ): il_update_stats()
66 case cpu_to_le16(IEEE80211_STYPE_REASSOC_RESP): il_update_stats()
69 case cpu_to_le16(IEEE80211_STYPE_PROBE_REQ): il_update_stats()
72 case cpu_to_le16(IEEE80211_STYPE_PROBE_RESP): il_update_stats()
75 case cpu_to_le16(IEEE80211_STYPE_BEACON): il_update_stats()
78 case cpu_to_le16(IEEE80211_STYPE_ATIM): il_update_stats()
81 case cpu_to_le16(IEEE80211_STYPE_DISASSOC): il_update_stats()
84 case cpu_to_le16(IEEE80211_STYPE_AUTH): il_update_stats()
87 case cpu_to_le16(IEEE80211_STYPE_DEAUTH): il_update_stats()
90 case cpu_to_le16(IEEE80211_STYPE_ACTION): il_update_stats()
95 switch (fc & cpu_to_le16(IEEE80211_FCTL_STYPE)) { il_update_stats()
96 case cpu_to_le16(IEEE80211_STYPE_BACK_REQ): il_update_stats()
99 case cpu_to_le16(IEEE80211_STYPE_BACK): il_update_stats()
102 case cpu_to_le16(IEEE80211_STYPE_PSPOLL): il_update_stats()
105 case cpu_to_le16(IEEE80211_STYPE_RTS): il_update_stats()
108 case cpu_to_le16(IEEE80211_STYPE_CTS): il_update_stats()
111 case cpu_to_le16(IEEE80211_STYPE_ACK): il_update_stats()
114 case cpu_to_le16(IEEE80211_STYPE_CFEND): il_update_stats()
117 case cpu_to_le16(IEEE80211_STYPE_CFENDACK): il_update_stats()
H A D4965-calib.c360 cpu_to_le16((u16) data->auto_corr_ofdm); il4965_prepare_legacy_sensitivity_tbl()
362 cpu_to_le16((u16) data->auto_corr_ofdm_mrc); il4965_prepare_legacy_sensitivity_tbl()
364 cpu_to_le16((u16) data->auto_corr_ofdm_x1); il4965_prepare_legacy_sensitivity_tbl()
366 cpu_to_le16((u16) data->auto_corr_ofdm_mrc_x1); il4965_prepare_legacy_sensitivity_tbl()
369 cpu_to_le16((u16) data->auto_corr_cck); il4965_prepare_legacy_sensitivity_tbl()
371 cpu_to_le16((u16) data->auto_corr_cck_mrc); il4965_prepare_legacy_sensitivity_tbl()
373 tbl[HD_MIN_ENERGY_CCK_DET_IDX] = cpu_to_le16((u16) data->nrg_th_cck); il4965_prepare_legacy_sensitivity_tbl()
374 tbl[HD_MIN_ENERGY_OFDM_DET_IDX] = cpu_to_le16((u16) data->nrg_th_ofdm); il4965_prepare_legacy_sensitivity_tbl()
377 cpu_to_le16(data->barker_corr_th_min); il4965_prepare_legacy_sensitivity_tbl()
379 cpu_to_le16(data->barker_corr_th_min_mrc); il4965_prepare_legacy_sensitivity_tbl()
380 tbl[HD_OFDM_ENERGY_TH_IN_IDX] = cpu_to_le16(data->nrg_th_cca); il4965_prepare_legacy_sensitivity_tbl()
/linux-4.1.27/drivers/atm/
H A Dsolos-pci.c214 header->size = cpu_to_le16(buflen); solos_param_show()
215 header->vpi = cpu_to_le16(0); solos_param_show()
216 header->vci = cpu_to_le16(0); solos_param_show()
217 header->type = cpu_to_le16(PKT_COMMAND); solos_param_show()
270 header->size = cpu_to_le16(buflen); solos_param_store()
271 header->vpi = cpu_to_le16(0); solos_param_store()
272 header->vci = cpu_to_le16(0); solos_param_store()
273 header->type = cpu_to_le16(PKT_COMMAND); solos_param_store()
485 header->size = cpu_to_le16(size); send_command()
486 header->vpi = cpu_to_le16(0); send_command()
487 header->vci = cpu_to_le16(0); send_command()
488 header->type = cpu_to_le16(PKT_COMMAND); send_command()
936 header->size = cpu_to_le16(0); popen()
937 header->vpi = cpu_to_le16(vcc->vpi); popen()
938 header->vci = cpu_to_le16(vcc->vci); popen()
939 header->type = cpu_to_le16(PKT_POPEN); popen()
973 header->size = cpu_to_le16(0); pclose()
974 header->vpi = cpu_to_le16(vcc->vpi); pclose()
975 header->vci = cpu_to_le16(vcc->vci); pclose()
976 header->type = cpu_to_le16(PKT_PCLOSE); pclose()
1166 header->size = cpu_to_le16(pktlen); psend()
1167 header->vpi = cpu_to_le16(vcc->vpi); psend()
1168 header->vci = cpu_to_le16(vcc->vci); psend()
1169 header->type = cpu_to_le16(PKT_DATA); psend()
1389 header->size = cpu_to_le16(0); atm_init()
1390 header->vpi = cpu_to_le16(0); atm_init()
1391 header->vci = cpu_to_le16(0); atm_init()
1392 header->type = cpu_to_le16(PKT_STATUS); atm_init()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
H A Di40e_common.c607 desc.flags |= cpu_to_le16(I40E_AQ_FLAG_BUF); i40e_aq_mac_address_read()
634 cmd_data->command_flags = cpu_to_le16(flags); i40e_aq_mac_address_write()
635 cmd_data->mac_sah = cpu_to_le16((u16)mac_addr[0] << 8 | mac_addr[1]); i40e_aq_mac_address_write()
1226 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); i40e_aq_get_phy_capabilities()
1228 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); i40e_aq_get_phy_capabilities()
1444 resp->command_flags = cpu_to_le16(command_flags); i40e_aq_get_link_info()
1482 if (resp->command_flags & cpu_to_le16(I40E_AQ_LSE_ENABLE)) i40e_aq_get_link_info()
1522 cmd->event_mask = cpu_to_le16(mask); i40e_aq_set_phy_int_mask()
1552 cmd->uplink_seid = cpu_to_le16(vsi_ctx->uplink_seid); i40e_aq_add_vsi()
1555 cmd->vsi_flags = cpu_to_le16(vsi_ctx->flags); i40e_aq_add_vsi()
1557 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); i40e_aq_add_vsi()
1597 cmd->promiscuous_flags = cpu_to_le16(flags); i40e_aq_set_vsi_unicast_promiscuous()
1599 cmd->valid_flags = cpu_to_le16(I40E_AQC_SET_VSI_PROMISC_UNICAST); i40e_aq_set_vsi_unicast_promiscuous()
1601 cmd->seid = cpu_to_le16(seid); i40e_aq_set_vsi_unicast_promiscuous()
1629 cmd->promiscuous_flags = cpu_to_le16(flags); i40e_aq_set_vsi_multicast_promiscuous()
1631 cmd->valid_flags = cpu_to_le16(I40E_AQC_SET_VSI_PROMISC_MULTICAST); i40e_aq_set_vsi_multicast_promiscuous()
1633 cmd->seid = cpu_to_le16(seid); i40e_aq_set_vsi_multicast_promiscuous()
1662 |= cpu_to_le16(I40E_AQC_SET_VSI_PROMISC_BROADCAST); i40e_aq_set_vsi_broadcast()
1665 &= cpu_to_le16(~I40E_AQC_SET_VSI_PROMISC_BROADCAST); i40e_aq_set_vsi_broadcast()
1667 cmd->valid_flags = cpu_to_le16(I40E_AQC_SET_VSI_PROMISC_BROADCAST); i40e_aq_set_vsi_broadcast()
1668 cmd->seid = cpu_to_le16(seid); i40e_aq_set_vsi_broadcast()
1695 cmd->uplink_seid = cpu_to_le16(vsi_ctx->seid); i40e_aq_get_vsi_params()
1697 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); i40e_aq_get_vsi_params()
1733 cmd->uplink_seid = cpu_to_le16(vsi_ctx->seid); i40e_aq_update_vsi_params()
1735 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); i40e_aq_update_vsi_params()
1765 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); i40e_aq_get_switch_config()
1767 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); i40e_aq_get_switch_config()
1768 scfg->seid = cpu_to_le16(*start_seid); i40e_aq_get_switch_config()
1842 desc.flags |= cpu_to_le16(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD); i40e_aq_send_driver_version()
1919 cmd->uplink_seid = cpu_to_le16(uplink_seid); i40e_aq_add_veb()
1920 cmd->downlink_seid = cpu_to_le16(downlink_seid); i40e_aq_add_veb()
1932 cmd->veb_flags = cpu_to_le16(veb_flags); i40e_aq_add_veb()
1973 cmd_resp->seid = cpu_to_le16(veb_seid); i40e_aq_get_veb_parameters()
2026 cmd->num_addresses = cpu_to_le16(count); i40e_aq_add_macvlan()
2027 cmd->seid[0] = cpu_to_le16(I40E_AQC_MACVLAN_CMD_SEID_VALID | seid); i40e_aq_add_macvlan()
2031 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); i40e_aq_add_macvlan()
2033 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); i40e_aq_add_macvlan()
2068 cmd->num_addresses = cpu_to_le16(count); i40e_aq_remove_macvlan()
2069 cmd->seid[0] = cpu_to_le16(I40E_AQC_MACVLAN_CMD_SEID_VALID | seid); i40e_aq_remove_macvlan()
2073 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); i40e_aq_remove_macvlan()
2075 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); i40e_aq_remove_macvlan()
2108 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_SI); i40e_aq_send_msg_to_vf()
2110 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | i40e_aq_send_msg_to_vf()
2113 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); i40e_aq_send_msg_to_vf()
2114 desc.datalen = cpu_to_le16(msglen); i40e_aq_send_msg_to_vf()
2239 cmd_resp->resource_id = cpu_to_le16(resource); i40e_aq_request_resource()
2240 cmd_resp->access_type = cpu_to_le16(access); i40e_aq_request_resource()
2277 cmd->resource_id = cpu_to_le16(resource); i40e_aq_release_resource()
2320 cmd->length = cpu_to_le16(length); i40e_aq_read_nvm()
2322 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); i40e_aq_read_nvm()
2324 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); i40e_aq_read_nvm()
2365 cmd->length = cpu_to_le16(length); i40e_aq_erase_nvm()
2627 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); i40e_aq_discover_capabilities()
2629 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); i40e_aq_discover_capabilities()
2679 cmd->length = cpu_to_le16(length); i40e_aq_update_nvm()
2681 desc.flags |= cpu_to_le16((u16)(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD)); i40e_aq_update_nvm()
2683 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); i40e_aq_update_nvm()
2721 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); i40e_aq_get_lldp_mib()
2727 desc.datalen = cpu_to_le16(buff_size); i40e_aq_get_lldp_mib()
2729 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); i40e_aq_get_lldp_mib()
2731 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); i40e_aq_get_lldp_mib()
2843 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); i40e_aq_get_cee_dcb_config()
2873 cmd->udp_port = cpu_to_le16(udp_port); i40e_aq_add_udp_tunnel()
2928 cmd->seid = cpu_to_le16(seid); i40e_aq_delete_element()
3003 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); i40e_aq_tx_sched_cmd()
3005 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_RD); i40e_aq_tx_sched_cmd()
3007 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); i40e_aq_tx_sched_cmd()
3009 desc.datalen = cpu_to_le16(buff_size); i40e_aq_tx_sched_cmd()
3011 cmd->vsi_seid = cpu_to_le16(seid); i40e_aq_tx_sched_cmd()
3038 cmd->vsi_seid = cpu_to_le16(seid); i40e_aq_config_vsi_bw_limit()
3039 cmd->credit = cpu_to_le16(credit); i40e_aq_config_vsi_bw_limit()
3382 cmd->queue = cpu_to_le16(queue); i40e_aq_add_rem_control_packet_filter()
3391 cmd->etype = cpu_to_le16(ethtype); i40e_aq_add_rem_control_packet_filter()
3392 cmd->flags = cpu_to_le16(flags); i40e_aq_add_rem_control_packet_filter()
3393 cmd->seid = cpu_to_le16(vsi_seid); i40e_aq_add_rem_control_packet_filter()
3547 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); i40e_aq_debug_dump()
3549 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); i40e_aq_debug_dump()
3555 desc.datalen = cpu_to_le16(buff_size); i40e_aq_debug_dump()
3632 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); i40e_aq_configure_partition_bw()
3633 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_RD); i40e_aq_configure_partition_bw()
3636 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_LB); i40e_aq_configure_partition_bw()
3638 desc.datalen = cpu_to_le16(bwd_size); i40e_aq_configure_partition_bw()
H A Di40e_adminq.c41 return (desc->opcode == cpu_to_le16(i40e_aqc_opc_nvm_erase)) || i40e_is_nvm_update_op()
42 (desc->opcode == cpu_to_le16(i40e_aqc_opc_nvm_update)); i40e_is_nvm_update_op()
182 desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF); i40e_alloc_arq_bufs()
184 desc->flags |= cpu_to_le16(I40E_AQ_FLAG_LB); i40e_alloc_arq_bufs()
189 desc->datalen = cpu_to_le16((u16)bi->size); i40e_alloc_arq_bufs()
779 desc->flags &= ~cpu_to_le16(details->flags_dis); i40e_asq_send_command()
780 desc->flags |= cpu_to_le16(details->flags_ena); i40e_asq_send_command()
827 desc_on_ring->datalen = cpu_to_le16(buff_size); i40e_asq_send_command()
919 desc->opcode = cpu_to_le16(opcode); i40e_fill_default_direct_cmd_desc()
920 desc->flags = cpu_to_le16(I40E_AQ_FLAG_SI); i40e_fill_default_direct_cmd_desc()
990 desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF); i40e_clean_arq_element()
992 desc->flags |= cpu_to_le16(I40E_AQ_FLAG_LB); i40e_clean_arq_element()
993 desc->datalen = cpu_to_le16((u16)bi->size); i40e_clean_arq_element()
/linux-4.1.27/drivers/scsi/aic94xx/
H A Daic94xx_tmf.c176 scb->clear_nexus.conn_handle = cpu_to_le16((u16)(unsigned long) asd_clear_nexus_I_T()
228 scb->clear_nexus.conn_handle = cpu_to_le16((u16)(unsigned long) asd_clear_nexus_I_T_L()
243 scb->clear_nexus.conn_handle = cpu_to_le16((u16)(unsigned long) asd_clear_nexus_tag()
256 scb->clear_nexus.conn_handle = cpu_to_le16((u16)(unsigned long) asd_clear_nexus_index()
258 scb->clear_nexus.index = cpu_to_le16(tascb->tc_index); asd_clear_nexus_index()
467 scb->abort_task.sister_scb = cpu_to_le16(0xFFFF); asd_abort_task()
468 scb->abort_task.conn_handle = cpu_to_le16( asd_abort_task()
471 scb->abort_task.index = cpu_to_le16((u16)tascb->tc_index); asd_abort_task()
472 scb->abort_task.itnl_to = cpu_to_le16(ITNL_TIMEOUT_CONST); asd_abort_task()
614 scb->ssp_tmf.sister_scb = cpu_to_le16(0xFFFF); asd_initiate_ssp_tmf()
615 scb->ssp_tmf.conn_handle= cpu_to_le16((u16)(unsigned long) asd_initiate_ssp_tmf()
618 scb->ssp_tmf.itnl_to = cpu_to_le16(ITNL_TIMEOUT_CONST); asd_initiate_ssp_tmf()
620 scb->ssp_tmf.index = cpu_to_le16(index); asd_initiate_ssp_tmf()
H A Daic94xx_task.c393 scb->ata_task.sister_scb = cpu_to_le16(0xFFFF); asd_build_ata_ascb()
394 scb->ata_task.conn_handle = cpu_to_le16( asd_build_ata_ascb()
460 scb->smp_task.sister_scb = cpu_to_le16(0xFFFF); asd_build_smp_ascb()
461 scb->smp_task.conn_handle = cpu_to_le16((u16) asd_build_smp_ascb()
511 scb->ssp_task.sister_scb = cpu_to_le16(0xFFFF); asd_build_ssp_ascb()
512 scb->ssp_task.conn_handle = cpu_to_le16( asd_build_ssp_ascb()
/linux-4.1.27/fs/fat/
H A Dmisc.c238 *date = cpu_to_le16((0 << 9) | (1 << 5) | 1); fat_time_unix2fat()
244 *time = cpu_to_le16((23 << 11) | (59 << 5) | 29); fat_time_unix2fat()
245 *date = cpu_to_le16((127 << 9) | (12 << 5) | 31); fat_time_unix2fat()
258 *time = cpu_to_le16(tm.tm_hour << 11 | tm.tm_min << 5 | tm.tm_sec); fat_time_unix2fat()
259 *date = cpu_to_le16(tm.tm_year << 9 | tm.tm_mon << 5 | tm.tm_mday); fat_time_unix2fat()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
H A Dacx.c275 rx_timeout->ps_poll_timeout = cpu_to_le16(wl->conf.rx.ps_poll_timeout); wl1271_acx_service_period_timeout()
276 rx_timeout->upsd_timeout = cpu_to_le16(wl->conf.rx.upsd_timeout); wl1271_acx_service_period_timeout()
313 rts->threshold = cpu_to_le16((u16)rts_threshold); wl1271_acx_rts_threshold()
565 detection->rx_cca_threshold = cpu_to_le16(wl->conf.rx.rx_cca_threshold); wl1271_acx_cca_threshold()
592 bb->beacon_rx_timeout = cpu_to_le16(wl->conf.conn.beacon_rx_timeout); wl1271_acx_bcn_dtim_options()
593 bb->broadcast_timeout = cpu_to_le16(wl->conf.conn.broadcast_timeout); wl1271_acx_bcn_dtim_options()
622 acx_aid->aid = cpu_to_le16(aid); wl1271_acx_aid()
859 acx->cw_max = cpu_to_le16(cw_max); wl1271_acx_ac_cfg()
861 acx->tx_op_limit = cpu_to_le16(txop); wl1271_acx_ac_cfg()
932 acx->frag_threshold = cpu_to_le16((u16)frag_threshold); wl1271_acx_frag_threshold()
958 acx->tx_compl_timeout = cpu_to_le16(wl->conf.tx.tx_compl_timeout); wl1271_acx_tx_config_options()
959 acx->tx_compl_threshold = cpu_to_le16(wl->conf.tx.tx_compl_threshold); wl1271_acx_tx_config_options()
1056 rx_conf->threshold = cpu_to_le16(wl->conf.rx.irq_pkt_threshold); wl1271_acx_init_rx_interrupt()
1057 rx_conf->timeout = cpu_to_le16(wl->conf.rx.irq_timeout); wl1271_acx_init_rx_interrupt()
1058 rx_conf->mblk_threshold = cpu_to_le16(wl->conf.rx.irq_blk_threshold); wl1271_acx_init_rx_interrupt()
1244 acx->pacing = cpu_to_le16(wl->conf.roam_trigger.trigger_pacing); wl1271_acx_rssi_snr_trigger()
1254 acx->threshold = cpu_to_le16(thold); wl1271_acx_rssi_snr_trigger()
1552 acx->max_tx_retry = cpu_to_le16(wl->conf.tx.max_tx_retries); wl1271_acx_ap_max_tx_retry()
1640 cpu_to_le16(wl->conf.fm_coex.m_divider_fref_set_1); wl1271_acx_fm_coex()
1642 cpu_to_le16(wl->conf.fm_coex.m_divider_fref_set_2); wl1271_acx_fm_coex()
1646 cpu_to_le16(wl->conf.fm_coex.ldo_stabilization_time); wl1271_acx_fm_coex()
1675 acx->rate_retry_score = cpu_to_le16(conf->rate_retry_score); wl12xx_acx_set_rate_mgmt_params()
1676 acx->per_add = cpu_to_le16(conf->per_add); wl12xx_acx_set_rate_mgmt_params()
1677 acx->per_th1 = cpu_to_le16(conf->per_th1); wl12xx_acx_set_rate_mgmt_params()
1678 acx->per_th2 = cpu_to_le16(conf->per_th2); wl12xx_acx_set_rate_mgmt_params()
1679 acx->max_per = cpu_to_le16(conf->max_per); wl12xx_acx_set_rate_mgmt_params()
H A Dcmd.c71 cmd->id = cpu_to_le16(id); __wlcore_cmd_send()
494 cmd->reason = cpu_to_le16(WLAN_REASON_UNSPECIFIED); wl12xx_cmd_role_stop_dev()
531 cmd->sta.beacon_interval = cpu_to_le16(wlvif->beacon_int); wl12xx_cmd_role_start_sta()
605 cmd->reason = cpu_to_le16(WLAN_REASON_UNSPECIFIED); wl12xx_cmd_role_stop_sta()
658 cmd->ap.aging_period = cpu_to_le16(wl->conf.tx.ap_aging_period); wl12xx_cmd_role_start_ap()
665 cmd->ap.beacon_interval = cpu_to_le16(wlvif->beacon_int); wl12xx_cmd_role_start_ap()
780 cmd->ibss.beacon_interval = cpu_to_le16(wlvif->beacon_int); wl12xx_cmd_role_start_ibss()
869 acx->id = cpu_to_le16(id); wl1271_cmd_interrogate()
872 acx->len = cpu_to_le16(res_len - sizeof(*acx)); wl1271_cmd_interrogate()
902 acx->id = cpu_to_le16(id); wlcore_cmd_configure_failsafe()
905 acx->len = cpu_to_le16(len - sizeof(*acx)); wlcore_cmd_configure_failsafe()
1033 cmd->len = cpu_to_le16(buf_len); wl1271_cmd_template_set()
1293 hdr->frame_control = cpu_to_le16(fc); wl1271_cmd_build_arp_rsp()
1317 template.frame_control = cpu_to_le16(IEEE80211_FTYPE_DATA | wl1271_build_qos_null_data()
1322 template.qos_ctrl = cpu_to_le16(0); wl1271_build_qos_null_data()
1346 cmd->key_action = cpu_to_le16(KEY_SET_ID); wl12xx_cmd_set_default_wep_key()
1388 cmd->key_action = cpu_to_le16(action); wl1271_cmd_set_sta_key()
1392 cmd->ac_seq_num16[0] = cpu_to_le16(tx_seq_16); wl1271_cmd_set_sta_key()
1458 cmd->key_action = cpu_to_le16(action); wl1271_cmd_set_ap_key()
1462 cmd->ac_seq_num16[0] = cpu_to_le16(tx_seq_16); wl1271_cmd_set_ap_key()
H A Dscan.c203 cpu_to_le16(dwell_time_dfs); wlcore_scan_get_channels()
206 cpu_to_le16(dwell_time_passive); wlcore_scan_get_channels()
210 cpu_to_le16(min_dwell_time_active); wlcore_scan_get_channels()
212 cpu_to_le16(max_dwell_time_active); wlcore_scan_get_channels()
/linux-4.1.27/drivers/staging/rtl8723au/hal/
H A Drtl8723a_cmd.c200 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_BEACON); ConstructBeacon()
288 cpu_to_le16(IEEE80211_FTYPE_CTL | IEEE80211_STYPE_PSPOLL); ConstructPSPoll()
289 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM); ConstructPSPoll()
292 pwlanhdr->duration_id = cpu_to_le16(pmlmeinfo->aid | 0xc000); ConstructPSPoll()
321 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM); ConstructNullFunctionData()
326 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_TODS); ConstructNullFunctionData()
335 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_FROMDS); ConstructNullFunctionData()
356 cpu_to_le16(IEEE80211_FTYPE_DATA | ConstructNullFunctionData()
359 qoshdr->qos_ctrl = cpu_to_le16(AC & IEEE80211_QOS_CTL_TID_MASK); ConstructNullFunctionData()
361 qoshdr->qos_ctrl |= cpu_to_le16(IEEE80211_QOS_CTL_EOSP); ConstructNullFunctionData()
366 cpu_to_le16(IEEE80211_FTYPE_DATA | ConstructNullFunctionData()
393 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_PROBE_RESP); ConstructProbeRsp()
H A Drtl8723au_recv.c202 cpu_to_le16(IEEE80211_FCTL_TODS | update_recvframe_phyinfo()
204 case cpu_to_le16(IEEE80211_FCTL_TODS): update_recvframe_phyinfo()
207 case cpu_to_le16(IEEE80211_FCTL_FROMDS): update_recvframe_phyinfo()
210 case cpu_to_le16(0): update_recvframe_phyinfo()
/linux-4.1.27/include/uapi/linux/
H A Dncp.h60 #define AR_READ (cpu_to_le16(1))
61 #define AR_WRITE (cpu_to_le16(2))
62 #define AR_EXCLUSIVE (cpu_to_le16(0x20))
/linux-4.1.27/net/mac802154/
H A Dcfg.c122 if (pan_id == cpu_to_le16(IEEE802154_PAN_ID_BROADCAST)) ieee802154_set_pan_id()
163 if (short_addr == cpu_to_le16(IEEE802154_ADDR_SHORT_UNSPEC) || ieee802154_set_short_addr()
164 short_addr == cpu_to_le16(IEEE802154_ADDR_SHORT_BROADCAST)) ieee802154_set_short_addr()
H A Diface.c107 wpan_dev->pan_id = cpu_to_le16(sa->addr.pan_id); mac802154_wpan_ioctl()
108 wpan_dev->short_addr = cpu_to_le16(sa->addr.short_addr); mac802154_wpan_ioctl()
385 if (wpan_dev->short_addr == cpu_to_le16(IEEE802154_ADDR_BROADCAST) || mac802154_header_create()
386 wpan_dev->short_addr == cpu_to_le16(IEEE802154_ADDR_UNDEF) || mac802154_header_create()
387 wpan_dev->pan_id == cpu_to_le16(IEEE802154_PANID_BROADCAST)) { mac802154_header_create()
492 wpan_dev->pan_id = cpu_to_le16(IEEE802154_PANID_BROADCAST); ieee802154_setup_sdata()
493 wpan_dev->short_addr = cpu_to_le16(IEEE802154_ADDR_BROADCAST); ieee802154_setup_sdata()
H A Drx.c66 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) ieee802154_subif_frame()
75 mac_cb(skb)->dest.pan_id != cpu_to_le16(IEEE802154_PANID_BROADCAST)) ieee802154_subif_frame()
80 cpu_to_le16(IEEE802154_ADDR_BROADCAST)) ieee802154_subif_frame()
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-viperboard.c128 rmsg->header.addr = cpu_to_le16(start + 0x4000); vprbrd_i2c_read()
201 rmsg->header.tf1 = cpu_to_le16(len1); vprbrd_i2c_read()
202 rmsg->header.tf2 = cpu_to_le16(len2); vprbrd_i2c_read()
237 wmsg->header.addr = cpu_to_le16(start + 0x4000); vprbrd_i2c_write()
300 amsg->len = cpu_to_le16(pmsg->len); vprbrd_i2c_xfer()
325 amsg->len = cpu_to_le16(pmsg->len); vprbrd_i2c_xfer()
/linux-4.1.27/drivers/s390/crypto/
H A Dzcrypt_cca_key.h169 key->t6_hdr.blen = cpu_to_le16(0x189); zcrypt_type6_mex_key_de()
170 key->t6_hdr.ulen = cpu_to_le16(0x189 - 2); zcrypt_type6_mex_key_de()
258 key->t6_hdr.ulen = cpu_to_le16(key->pubHdr.token_length + 4); zcrypt_type6_mex_key_en()
259 key->t6_hdr.blen = cpu_to_le16(key->pubHdr.token_length + 6); zcrypt_type6_mex_key_en()
305 key->t6_hdr.blen = cpu_to_le16(size); zcrypt_type6_crt_key()
306 key->t6_hdr.ulen = cpu_to_le16(size - 2); zcrypt_type6_crt_key()
/linux-4.1.27/drivers/macintosh/
H A Drack-meter.c185 cmd->req_count = cpu_to_le16(4); rackmeter_setup_dbdma()
186 cmd->command = cpu_to_le16(STORE_WORD | INTR_ALWAYS | KEY_SYSTEM); rackmeter_setup_dbdma()
192 cmd->req_count = cpu_to_le16(SAMPLE_COUNT * 4); rackmeter_setup_dbdma()
193 cmd->command = cpu_to_le16(OUTPUT_MORE); rackmeter_setup_dbdma()
198 cmd->req_count = cpu_to_le16(4); rackmeter_setup_dbdma()
199 cmd->command = cpu_to_le16(STORE_WORD | INTR_ALWAYS | KEY_SYSTEM); rackmeter_setup_dbdma()
205 cmd->req_count = cpu_to_le16(SAMPLE_COUNT * 4); rackmeter_setup_dbdma()
206 cmd->command = cpu_to_le16(OUTPUT_MORE | BR_ALWAYS); rackmeter_setup_dbdma()
/linux-4.1.27/drivers/media/usb/pwc/
H A Dpwc-uncompress.c51 raw_frame->type = cpu_to_le16(pdev->type); pwc_decompress()
52 raw_frame->vbandlength = cpu_to_le16(pdev->vbandlength); pwc_decompress()
/linux-4.1.27/drivers/scsi/qla4xxx/
H A Dql4_iocb.c105 marker_entry->target = cpu_to_le16(ddb_entry->fw_ddb_index); qla4xxx_send_marker_iocb()
106 marker_entry->modifier = cpu_to_le16(mrkr_mod); qla4xxx_send_marker_iocb()
130 cont_entry->hdr.systemDefined = (uint8_t) cpu_to_le16(ha->request_in); qla4xxx_alloc_cont_entry()
326 cmd_entry->target = cpu_to_le16(ddb_entry->fw_ddb_index); qla4xxx_send_command_to_isp()
331 cmd_entry->dataSegCnt = cpu_to_le16(tot_dsds); qla4xxx_send_command_to_isp()
408 passthru_iocb->target = cpu_to_le16(ddb_entry->fw_ddb_index); qla4xxx_send_passthru0()
409 passthru_iocb->timeout = cpu_to_le16(PT_DEFAULT_TIMEOUT); qla4xxx_send_passthru0()
434 passthru_iocb->control_flags = cpu_to_le16(ctrl_flags); qla4xxx_send_passthru0()
H A Dql4_os.c2027 cpu_to_le16( qla4xxx_set_ipv6()
2031 cpu_to_le16( qla4xxx_set_ipv6()
2044 init_fw_cb->ipv6_addtl_opts |= cpu_to_le16( qla4xxx_set_ipv6()
2048 init_fw_cb->ipv6_addtl_opts &= cpu_to_le16( qla4xxx_set_ipv6()
2066 cpu_to_le16(IPV6_OPT_IPV6_PROTOCOL_ENABLE); qla4xxx_set_ipv6()
2070 cpu_to_le16(~IPV6_OPT_IPV6_PROTOCOL_ENABLE & qla4xxx_set_ipv6()
2084 cpu_to_le16(IPV6_OPT_VLAN_TAGGING_ENABLE); qla4xxx_set_ipv6()
2087 cpu_to_le16(~IPV6_OPT_VLAN_TAGGING_ENABLE); qla4xxx_set_ipv6()
2091 cpu_to_le16(*(uint16_t *)iface_param->value); qla4xxx_set_ipv6()
2099 cpu_to_le16(*(uint16_t *)iface_param->value); qla4xxx_set_ipv6()
2106 cpu_to_le16(IPV6_TCPOPT_DELAYED_ACK_DISABLE); qla4xxx_set_ipv6()
2109 cpu_to_le16(~IPV6_TCPOPT_DELAYED_ACK_DISABLE & qla4xxx_set_ipv6()
2117 cpu_to_le16(IPV6_TCPOPT_NAGLE_ALGO_DISABLE); qla4xxx_set_ipv6()
2120 cpu_to_le16(~IPV6_TCPOPT_NAGLE_ALGO_DISABLE); qla4xxx_set_ipv6()
2127 cpu_to_le16(IPV6_TCPOPT_WINDOW_SCALE_DISABLE); qla4xxx_set_ipv6()
2130 cpu_to_le16(~IPV6_TCPOPT_WINDOW_SCALE_DISABLE); qla4xxx_set_ipv6()
2141 cpu_to_le16(~IPV6_TCPOPT_TIMER_SCALE); qla4xxx_set_ipv6()
2143 cpu_to_le16((iface_param->value[0] << 1) & qla4xxx_set_ipv6()
2151 cpu_to_le16(IPV6_TCPOPT_TIMESTAMP_EN); qla4xxx_set_ipv6()
2154 cpu_to_le16(~IPV6_TCPOPT_TIMESTAMP_EN); qla4xxx_set_ipv6()
2161 cpu_to_le16(IPV6_OPT_GRAT_NEIGHBOR_ADV_EN); qla4xxx_set_ipv6()
2164 cpu_to_le16(~IPV6_OPT_GRAT_NEIGHBOR_ADV_EN); qla4xxx_set_ipv6()
2171 cpu_to_le16(IPV6_OPT_REDIRECT_EN); qla4xxx_set_ipv6()
2174 cpu_to_le16(~IPV6_OPT_REDIRECT_EN); qla4xxx_set_ipv6()
2181 cpu_to_le16(IPV6_ADDOPT_MLD_EN); qla4xxx_set_ipv6()
2184 cpu_to_le16(~IPV6_ADDOPT_MLD_EN); qla4xxx_set_ipv6()
2190 cpu_to_le16(*(uint16_t *)iface_param->value); qla4xxx_set_ipv6()
2258 cpu_to_le16(TCPOPT_DHCP_ENABLE); qla4xxx_set_ipv4()
2261 cpu_to_le16(~TCPOPT_DHCP_ENABLE); qla4xxx_set_ipv4()
2268 cpu_to_le16(IPOPT_IPV4_PROTOCOL_ENABLE); qla4xxx_set_ipv4()
2272 cpu_to_le16(~IPOPT_IPV4_PROTOCOL_ENABLE & qla4xxx_set_ipv4()
2286 cpu_to_le16(IPOPT_VLAN_TAGGING_ENABLE); qla4xxx_set_ipv4()
2289 cpu_to_le16(~IPOPT_VLAN_TAGGING_ENABLE); qla4xxx_set_ipv4()
2293 cpu_to_le16(*(uint16_t *)iface_param->value); qla4xxx_set_ipv4()
2297 cpu_to_le16(*(uint16_t *)iface_param->value); qla4xxx_set_ipv4()
2304 cpu_to_le16(TCPOPT_DELAYED_ACK_DISABLE); qla4xxx_set_ipv4()
2307 cpu_to_le16(~TCPOPT_DELAYED_ACK_DISABLE & qla4xxx_set_ipv4()
2315 cpu_to_le16(TCPOPT_NAGLE_ALGO_DISABLE); qla4xxx_set_ipv4()
2318 cpu_to_le16(~TCPOPT_NAGLE_ALGO_DISABLE); qla4xxx_set_ipv4()
2325 cpu_to_le16(TCPOPT_WINDOW_SCALE_DISABLE); qla4xxx_set_ipv4()
2328 cpu_to_le16(~TCPOPT_WINDOW_SCALE_DISABLE); qla4xxx_set_ipv4()
2338 init_fw_cb->ipv4_tcp_opts &= cpu_to_le16(~TCPOPT_TIMER_SCALE); qla4xxx_set_ipv4()
2340 cpu_to_le16((iface_param->value[0] << 1) & qla4xxx_set_ipv4()
2348 cpu_to_le16(TCPOPT_TIMESTAMP_ENABLE); qla4xxx_set_ipv4()
2351 cpu_to_le16(~TCPOPT_TIMESTAMP_ENABLE); qla4xxx_set_ipv4()
2358 cpu_to_le16(TCPOPT_DNS_SERVER_IP_EN); qla4xxx_set_ipv4()
2361 cpu_to_le16(~TCPOPT_DNS_SERVER_IP_EN); qla4xxx_set_ipv4()
2368 cpu_to_le16(TCPOPT_SLP_DA_INFO_EN); qla4xxx_set_ipv4()
2371 cpu_to_le16(~TCPOPT_SLP_DA_INFO_EN); qla4xxx_set_ipv4()
2378 cpu_to_le16(IPOPT_IPV4_TOS_EN); qla4xxx_set_ipv4()
2381 cpu_to_le16(~IPOPT_IPV4_TOS_EN); qla4xxx_set_ipv4()
2393 cpu_to_le16(IPOPT_GRAT_ARP_EN); qla4xxx_set_ipv4()
2396 cpu_to_le16(~IPOPT_GRAT_ARP_EN); qla4xxx_set_ipv4()
2403 cpu_to_le16(IPOPT_ALT_CID_EN); qla4xxx_set_ipv4()
2406 cpu_to_le16(~IPOPT_ALT_CID_EN); qla4xxx_set_ipv4()
2421 cpu_to_le16(IPOPT_REQ_VID_EN); qla4xxx_set_ipv4()
2424 cpu_to_le16(~IPOPT_REQ_VID_EN); qla4xxx_set_ipv4()
2431 cpu_to_le16(IPOPT_USE_VID_EN); qla4xxx_set_ipv4()
2434 cpu_to_le16(~IPOPT_USE_VID_EN); qla4xxx_set_ipv4()
2449 cpu_to_le16(IPOPT_LEARN_IQN_EN); qla4xxx_set_ipv4()
2452 cpu_to_le16(~IPOPT_LEARN_IQN_EN); qla4xxx_set_ipv4()
2459 cpu_to_le16(IPOPT_FRAGMENTATION_DISABLE); qla4xxx_set_ipv4()
2462 cpu_to_le16(~IPOPT_FRAGMENTATION_DISABLE); qla4xxx_set_ipv4()
2469 cpu_to_le16(IPOPT_IN_FORWARD_EN); qla4xxx_set_ipv4()
2472 cpu_to_le16(~IPOPT_IN_FORWARD_EN); qla4xxx_set_ipv4()
2479 cpu_to_le16(IPOPT_ARP_REDIRECT_EN); qla4xxx_set_ipv4()
2482 cpu_to_le16(~IPOPT_ARP_REDIRECT_EN); qla4xxx_set_ipv4()
2505 cpu_to_le16(*(uint16_t *)iface_param->value); qla4xxx_set_iscsi_param()
2512 cpu_to_le16(ISCSIOPTS_HEADER_DIGEST_EN); qla4xxx_set_iscsi_param()
2515 cpu_to_le16(~ISCSIOPTS_HEADER_DIGEST_EN); qla4xxx_set_iscsi_param()
2522 cpu_to_le16(ISCSIOPTS_DATA_DIGEST_EN); qla4xxx_set_iscsi_param()
2525 cpu_to_le16(~ISCSIOPTS_DATA_DIGEST_EN); qla4xxx_set_iscsi_param()
2532 cpu_to_le16(ISCSIOPTS_IMMEDIATE_DATA_EN); qla4xxx_set_iscsi_param()
2535 cpu_to_le16(~ISCSIOPTS_IMMEDIATE_DATA_EN); qla4xxx_set_iscsi_param()
2542 cpu_to_le16(ISCSIOPTS_INITIAL_R2T_EN); qla4xxx_set_iscsi_param()
2545 cpu_to_le16(~ISCSIOPTS_INITIAL_R2T_EN); qla4xxx_set_iscsi_param()
2552 cpu_to_le16(ISCSIOPTS_DATA_SEQ_INORDER_EN); qla4xxx_set_iscsi_param()
2555 cpu_to_le16(~ISCSIOPTS_DATA_SEQ_INORDER_EN); qla4xxx_set_iscsi_param()
2562 cpu_to_le16(ISCSIOPTS_DATA_PDU_INORDER_EN); qla4xxx_set_iscsi_param()
2565 cpu_to_le16(~ISCSIOPTS_DATA_PDU_INORDER_EN); qla4xxx_set_iscsi_param()
2570 init_fw_cb->iscsi_opts &= cpu_to_le16(~ISCSIOPTS_ERL); qla4xxx_set_iscsi_param()
2571 init_fw_cb->iscsi_opts |= cpu_to_le16(iface_param->value[0] & qla4xxx_set_iscsi_param()
2592 cpu_to_le16(*(uint16_t *)iface_param->value); qla4xxx_set_iscsi_param()
2606 cpu_to_le16(ISCSIOPTS_CHAP_AUTH_EN); qla4xxx_set_iscsi_param()
2609 cpu_to_le16(~ISCSIOPTS_CHAP_AUTH_EN); qla4xxx_set_iscsi_param()
2616 cpu_to_le16(ISCSIOPTS_BIDI_CHAP_EN); qla4xxx_set_iscsi_param()
2619 cpu_to_le16(~ISCSIOPTS_BIDI_CHAP_EN); qla4xxx_set_iscsi_param()
2626 cpu_to_le16(ISCSIOPTS_DISCOVERY_AUTH_EN); qla4xxx_set_iscsi_param()
2629 cpu_to_le16(~ISCSIOPTS_DISCOVERY_AUTH_EN); qla4xxx_set_iscsi_param()
2636 cpu_to_le16(ISCSIOPTS_DISCOVERY_LOGOUT_EN); qla4xxx_set_iscsi_param()
2639 cpu_to_le16(~ISCSIOPTS_DISCOVERY_LOGOUT_EN); qla4xxx_set_iscsi_param()
2646 cpu_to_le16(ISCSIOPTS_STRICT_LOGIN_COMP_EN); qla4xxx_set_iscsi_param()
2649 cpu_to_le16(~ISCSIOPTS_STRICT_LOGIN_COMP_EN); qla4xxx_set_iscsi_param()
3613 fw_ddb_entry->options = cpu_to_le16(options); qla4xxx_copy_to_fwddb_param()
3629 fw_ddb_entry->iscsi_options = cpu_to_le16(options); qla4xxx_copy_to_fwddb_param()
3639 fw_ddb_entry->tcp_options = cpu_to_le16(options); qla4xxx_copy_to_fwddb_param()
3643 fw_ddb_entry->ip_options = cpu_to_le16(options); qla4xxx_copy_to_fwddb_param()
3645 fw_ddb_entry->iscsi_max_outsnd_r2t = cpu_to_le16(sess->max_r2t); qla4xxx_copy_to_fwddb_param()
3647 cpu_to_le16(conn->max_recv_dlength / BYTE_UNITS); qla4xxx_copy_to_fwddb_param()
3649 cpu_to_le16(conn->max_xmit_dlength / BYTE_UNITS); qla4xxx_copy_to_fwddb_param()
3651 cpu_to_le16(sess->first_burst / BYTE_UNITS); qla4xxx_copy_to_fwddb_param()
3652 fw_ddb_entry->iscsi_max_burst_len = cpu_to_le16(sess->max_burst / qla4xxx_copy_to_fwddb_param()
3654 fw_ddb_entry->iscsi_def_time2wait = cpu_to_le16(sess->time2wait); qla4xxx_copy_to_fwddb_param()
3655 fw_ddb_entry->iscsi_def_time2retain = cpu_to_le16(sess->time2retain); qla4xxx_copy_to_fwddb_param()
3656 fw_ddb_entry->tgt_portal_grp = cpu_to_le16(sess->tpgt); qla4xxx_copy_to_fwddb_param()
3657 fw_ddb_entry->mss = cpu_to_le16(conn->max_segment_size); qla4xxx_copy_to_fwddb_param()
3660 fw_ddb_entry->ipv6_flow_lbl = cpu_to_le16(conn->ipv6_flow_label); qla4xxx_copy_to_fwddb_param()
3661 fw_ddb_entry->ka_timeout = cpu_to_le16(conn->keepalive_timeout); qla4xxx_copy_to_fwddb_param()
3662 fw_ddb_entry->lcl_port = cpu_to_le16(conn->local_port); qla4xxx_copy_to_fwddb_param()
3665 fw_ddb_entry->ddb_link = cpu_to_le16(sess->discovery_parent_idx); qla4xxx_copy_to_fwddb_param()
3666 fw_ddb_entry->chap_tbl_idx = cpu_to_le16(sess->chap_out_idx); qla4xxx_copy_to_fwddb_param()
3667 fw_ddb_entry->tsid = cpu_to_le16(sess->tsid); qla4xxx_copy_to_fwddb_param()
3668 fw_ddb_entry->port = cpu_to_le16(conn->port); qla4xxx_copy_to_fwddb_param()
3670 cpu_to_le16(sess->default_taskmgmt_timeout); qla4xxx_copy_to_fwddb_param()
6965 cpu_to_le16(ddb_idx->flash_ddb_idx); list_for_each_entry_safe()
7136 fw_ddb_entry->ddb_link = cpu_to_le16(target_id); qla4xxx_build_new_nt_list()
/linux-4.1.27/drivers/input/misc/
H A Dpowermate.c129 pm->configcr->wValue = cpu_to_le16( SET_PULSE_ASLEEP ); powermate_sync_state()
130 pm->configcr->wIndex = cpu_to_le16( pm->pulse_asleep ? 1 : 0 ); powermate_sync_state()
133 pm->configcr->wValue = cpu_to_le16( SET_PULSE_AWAKE ); powermate_sync_state()
134 pm->configcr->wIndex = cpu_to_le16( pm->pulse_awake ? 1 : 0 ); powermate_sync_state()
165 pm->configcr->wValue = cpu_to_le16( (pm->pulse_table << 8) | SET_PULSE_MODE ); powermate_sync_state()
166 pm->configcr->wIndex = cpu_to_le16( (arg << 8) | op ); powermate_sync_state()
169 pm->configcr->wValue = cpu_to_le16( SET_STATIC_BRIGHTNESS ); powermate_sync_state()
170 pm->configcr->wIndex = cpu_to_le16( pm->static_brightness ); powermate_sync_state()
/linux-4.1.27/include/net/
H A Ddn_fib.h161 return cpu_to_le16(~((1 << (16 - n)) - 1)); dnet_make_mask()
162 return cpu_to_le16(0); dnet_make_mask()
/linux-4.1.27/include/linux/uwb/
H A Dspec.h349 ie->drp_control = cpu_to_le16(drp_control); uwb_ie_drp_set_type()
356 ie->drp_control = cpu_to_le16(drp_control); uwb_ie_drp_set_stream_index()
364 ie->drp_control = cpu_to_le16(drp_control); uwb_ie_drp_set_reason_code()
371 ie->drp_control = cpu_to_le16(drp_control); uwb_ie_drp_set_status()
378 ie->drp_control = cpu_to_le16(drp_control); uwb_ie_drp_set_owner()
385 ie->drp_control = cpu_to_le16(drp_control); uwb_ie_drp_set_tiebreaker()
392 ie->drp_control = cpu_to_le16(drp_control); uwb_ie_drp_set_unsafe()
419 ie->relinquish_req_control = cpu_to_le16(ctrl); uwb_ie_relinquish_req_set_reason_code()
/linux-4.1.27/sound/ppc/
H A Dpmac.c243 chip->extra_dma.cmds->command = cpu_to_le16(DBDMA_STOP); snd_pmac_pcm_prepare()
255 cp->req_count = cpu_to_le16(rec->period_size); snd_pmac_pcm_prepare()
256 /*cp->res_count = cpu_to_le16(0);*/ snd_pmac_pcm_prepare()
257 cp->xfer_status = cpu_to_le16(0); snd_pmac_pcm_prepare()
261 cp->command = cpu_to_le16(DBDMA_NOP + BR_ALWAYS); snd_pmac_pcm_prepare()
430 cp->xfer_status = cpu_to_le16(0); snd_pmac_pcm_dead_xfer()
431 cp->req_count = cpu_to_le16(rec->period_size); snd_pmac_pcm_dead_xfer()
441 cp->req_count = cpu_to_le16(res); snd_pmac_pcm_dead_xfer()
442 cp->res_count = cpu_to_le16(0); snd_pmac_pcm_dead_xfer()
443 cp->xfer_status = cpu_to_le16(0); snd_pmac_pcm_dead_xfer()
449 cp->command = cpu_to_le16(OUTPUT_MORE | BR_ALWAYS | INTR_ALWAYS); snd_pmac_pcm_dead_xfer()
492 cp->xfer_status = cpu_to_le16(0); snd_pmac_pcm_update()
493 cp->req_count = cpu_to_le16(rec->period_size); snd_pmac_pcm_update()
494 /*cp->res_count = cpu_to_le16(0);*/ snd_pmac_pcm_update()
763 chip->extra_dma.cmds->req_count = cpu_to_le16(bytes); snd_pmac_beep_dma_start()
764 chip->extra_dma.cmds->xfer_status = cpu_to_le16(0); snd_pmac_beep_dma_start()
767 chip->extra_dma.cmds->command = cpu_to_le16(OUTPUT_MORE + BR_ALWAYS); snd_pmac_beep_dma_start()
779 chip->extra_dma.cmds->command = cpu_to_le16(DBDMA_STOP); snd_pmac_beep_dma_stop()
/linux-4.1.27/fs/jfs/
H A Djfs_txnmgr.c1309 lrd->type = cpu_to_le16(LOG_COMMIT); txCommit()
1449 lrd->log.redopage.type = cpu_to_le16(LOG_INODE); diLog()
1450 lrd->log.redopage.l2linesize = cpu_to_le16(L2INODESLOTSIZE); diLog()
1459 lrd->type = cpu_to_le16(LOG_REDOPAGE); diLog()
1485 lrd->type = cpu_to_le16(LOG_NOREDOINOEXT); diLog()
1522 lrd->type = cpu_to_le16(LOG_UPDATEMAP); diLog()
1528 cpu_to_le16(LOG_ALLOCPXD); diLog()
1531 cpu_to_le16(LOG_FREEPXD); diLog()
1532 lrd->log.updatemap.nxd = cpu_to_le16(1); diLog()
1560 lrd->log.redopage.type = cpu_to_le16(LOG_DATA); dataLog()
1561 lrd->log.redopage.l2linesize = cpu_to_le16(L2DATASLOTSIZE); dataLog()
1566 lrd->type = cpu_to_le16(LOG_REDOPAGE); dataLog()
1607 lrd->log.redopage.type = cpu_to_le16(LOG_DTREE); dtLog()
1608 lrd->log.redopage.l2linesize = cpu_to_le16(L2DTSLOTSIZE); dtLog()
1613 lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT); dtLog()
1626 lrd->type = cpu_to_le16(LOG_REDOPAGE); dtLog()
1628 lrd->log.redopage.type |= cpu_to_le16(LOG_EXTEND); dtLog()
1630 lrd->log.redopage.type |= cpu_to_le16(LOG_NEW); dtLog()
1659 lrd->type = cpu_to_le16(LOG_REDOPAGE); dtLog()
1682 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); dtLog()
1717 lrd->log.redopage.type = cpu_to_le16(LOG_XTREE); xtLog()
1718 lrd->log.redopage.l2linesize = cpu_to_le16(L2XTSLOTSIZE); xtLog()
1723 lrd->log.redopage.type |= cpu_to_le16(LOG_BTROOT); xtLog()
1727 cpu_to_le16(LOG_DIR_XTREE); xtLog()
1749 lrd->type = cpu_to_le16(LOG_REDOPAGE); xtLog()
1838 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); xtLog()
1848 lrd->type = cpu_to_le16(LOG_REDOPAGE); xtLog()
1858 lrd->type = cpu_to_le16(LOG_UPDATEMAP); xtLog()
1859 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEXADLIST); xtLog()
1863 cpu_to_le16(hwm - XTENTRYSTART + 1); xtLog()
1960 lrd->type = cpu_to_le16(LOG_REDOPAGE); xtLog()
1977 lrd->type = cpu_to_le16(LOG_UPDATEMAP); xtLog()
1978 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD); xtLog()
1979 lrd->log.updatemap.nxd = cpu_to_le16(1); xtLog()
1994 lrd->type = cpu_to_le16(LOG_UPDATEMAP); xtLog()
1996 cpu_to_le16(LOG_FREEXADLIST); xtLog()
2000 cpu_to_le16(hwm - next + 1); xtLog()
2104 lrd->type = cpu_to_le16(LOG_NOREDOPAGE); mapLog()
2120 lrd->type = cpu_to_le16(LOG_UPDATEMAP); mapLog()
2121 lrd->log.updatemap.type = cpu_to_le16(LOG_FREEPXD); mapLog()
2122 lrd->log.updatemap.nxd = cpu_to_le16(1); mapLog()
2143 lrd->type = cpu_to_le16(LOG_UPDATEMAP); mapLog()
2149 cpu_to_le16(LOG_ALLOCPXD); mapLog()
2152 cpu_to_le16(LOG_FREEPXD); mapLog()
2153 lrd->log.updatemap.nxd = cpu_to_le16(1); mapLog()
H A Djfs_logmgr.c469 lvd->offset = cpu_to_le16(lv->offset); lmWriteRecord()
470 lvd->length = cpu_to_le16(lv->length); lmWriteRecord()
485 lrd->length = cpu_to_le16(len); lmWriteRecord()
512 if (lrd->type & cpu_to_le16(LOG_COMMIT)) { lmWriteRecord()
636 lp->h.eor = lp->t.eor = cpu_to_le16(bp->l_ceor); lmNextPage()
658 lp->h.eor = lp->t.eor = cpu_to_le16(LOGPHDRSIZE); lmNextPage()
797 lp->h.eor = lp->t.eor = cpu_to_le16(bp->l_ceor); lmGCwrite()
805 lp->h.eor = lp->t.eor = cpu_to_le16(bp->l_ceor); lmGCwrite()
889 lp->h.eor = lp->t.eor = cpu_to_le16(bp->l_eor); lmPostGC()
987 lrd.type = cpu_to_le16(LOG_SYNCPT); lmLogSync()
1387 lrd.type = cpu_to_le16(LOG_SYNCPT); lmLogInit()
1394 lp->h.eor = lp->t.eor = cpu_to_le16(bp->l_eor); lmLogInit()
1674 lrd.type = cpu_to_le16(LOG_SYNCPT); lmLogShutdown()
1681 lp->h.eor = lp->t.eor = cpu_to_le16(bp->l_eor); lmLogShutdown()
2462 lp->h.eor = lp->t.eor = cpu_to_le16(LOGPHDRSIZE + LOGRDSIZE); lmLogFormat()
2467 lrd_ptr->type = cpu_to_le16(LOG_SYNCPT); lmLogFormat()
2482 lp->h.eor = lp->t.eor = cpu_to_le16(LOGPHDRSIZE); lmLogFormat()
/linux-4.1.27/fs/ncpfs/
H A Dncplib_kernel.c434 ncp_add_word(server, cpu_to_le16(0x8006)); /* get all */ ncp_obtain_info()
464 ncp_add_word(server, cpu_to_le16(0x8006)); /* get all */ ncp_obtain_DOS_dir_base()
553 ncp_add_word(server, cpu_to_le16(0x8006)); /* get all */ ncp_ObtainSpecificDirBase()
639 target->creationTime = target->modifyTime = cpu_to_le16(0x0000); ncp_lookup_volume()
640 target->creationDate = target->modifyDate = target->lastAccessDate = cpu_to_le16(0x0C21); ncp_lookup_volume()
659 ncp_add_word(server, cpu_to_le16(0x8006)); /* search attribs: all */ ncp_modify_file_or_subdir_dos_info_path()
739 return ncp_DeleteNSEntry(server, 1, volnum, dirent, NULL, NW_NS_DOS, cpu_to_le16(0x8006)); ncp_del_file_or_subdir2()
762 return ncp_DeleteNSEntry(server, 1, volnum, dirent, name, name_space, cpu_to_le16(0x8006)); ncp_del_file_or_subdir()
768 dest[1] = cpu_to_le16(v0); ConvertToNWfromDWORD()
769 dest[2] = cpu_to_le16(v1); ConvertToNWfromDWORD()
770 dest[0] = cpu_to_le16(v0 + 1); ConvertToNWfromDWORD()
783 __le16 search_attribs = cpu_to_le16(0x0006); ncp_open_create_file_or_subdir()
792 search_attribs |= cpu_to_le16(0x8000); ncp_open_create_file_or_subdir()
867 ncp_add_word(server, cpu_to_le16(0x8006)); ncp_search_for_fileset()
869 ncp_add_word(server, cpu_to_le16(32767)); /* max returned items */ ncp_search_for_fileset()
945 __le16 old_type = cpu_to_le16(0x06); ncp_ren_or_mov_file_or_subdir()
952 old_type = cpu_to_le16(0x16); ncp_ren_or_mov_file_or_subdir()
/linux-4.1.27/drivers/staging/rtl8192e/
H A Drtllib_softmac.c249 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0]<<4); softmac_mgmt_xmit()
266 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); softmac_mgmt_xmit()
323 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); softmac_ps_mgmt_xmit()
337 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); softmac_ps_mgmt_xmit()
370 req->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_PROBE_REQ); rtllib_probe_req()
812 auth->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_AUTH); rtllib_authentication_req()
814 auth->header.frame_ctl |= cpu_to_le16(RTLLIB_FCTL_WEP); rtllib_authentication_req()
816 auth->header.duration_id = cpu_to_le16(0x013a); rtllib_authentication_req()
823 auth->algorithm = cpu_to_le16(WLAN_AUTH_SHARED_KEY); rtllib_authentication_req()
826 auth->transaction = cpu_to_le16(ieee->associate_seq); rtllib_authentication_req()
829 auth->status = cpu_to_le16(WLAN_STATUS_SUCCESS); rtllib_authentication_req()
916 cpu_to_le16(ieee->current_network.beacon_interval); rtllib_probe_resp()
918 cpu_to_le16(ieee->current_network.capability & rtllib_probe_resp()
921 cpu_to_le16(ieee->current_network.capability & rtllib_probe_resp()
927 cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT_TIME); rtllib_probe_resp()
931 beacon_buf->capability |= cpu_to_le16(WLAN_CAPABILITY_PRIVACY); rtllib_probe_resp()
934 beacon_buf->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_PROBE_RESP); rtllib_probe_resp()
1006 assoc->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_ASSOC_RESP); rtllib_assoc_resp()
1010 assoc->capability = cpu_to_le16(ieee->iw_mode == IW_MODE_MASTER ? rtllib_assoc_resp()
1016 cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT_TIME); rtllib_assoc_resp()
1026 assoc->capability |= cpu_to_le16(WLAN_CAPABILITY_PRIVACY); rtllib_assoc_resp()
1029 assoc->aid = cpu_to_le16(ieee->assoc_id); rtllib_assoc_resp()
1060 auth->status = cpu_to_le16(status); rtllib_auth_resp()
1061 auth->transaction = cpu_to_le16(2); rtllib_auth_resp()
1062 auth->algorithm = cpu_to_le16(WLAN_AUTH_OPEN); rtllib_auth_resp()
1067 auth->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_AUTH); rtllib_auth_resp()
1091 hdr->frame_ctl = cpu_to_le16(RTLLIB_FTYPE_DATA | rtllib_null_func()
1117 hdr->aid = cpu_to_le16(ieee->assoc_id | 0xc000); rtllib_pspoll_func()
1118 hdr->frame_ctl = cpu_to_le16(RTLLIB_FTYPE_CTL | RTLLIB_STYPE_PSPOLL | rtllib_pspoll_func()
1266 hdr->header.duration_id = cpu_to_le16(37); rtllib_association_req()
1273 hdr->capability = cpu_to_le16(WLAN_CAPABILITY_ESS); rtllib_association_req()
1275 hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_PRIVACY); rtllib_association_req()
1278 hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_PREAMBLE); rtllib_association_req()
1282 hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT_TIME); rtllib_association_req()
1285 hdr->listen_interval = cpu_to_le16(beacon->listen_interval); rtllib_association_req()
1816 return cpu_to_le16(a->status); auth_parse()
2582 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); rtllib_wake_queue()
2924 b->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_BEACON); rtllib_get_beacon_()
2940 b->header.seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); rtllib_get_beacon()
3517 disauth->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_DEAUTH); rtllib_disauth_skb()
3524 disauth->reason = cpu_to_le16(asRsn); rtllib_disauth_skb()
3544 disass->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_DISASSOC); rtllib_disassociate_skb()
3551 disass->reason = cpu_to_le16(asRsn); rtllib_disassociate_skb()
H A Drtllib_tx.c235 txb->frag_size = cpu_to_le16(txb_size); rtllib_alloc_txb()
626 txb->payload_size = cpu_to_le16(skb->len); rtllib_xmit_inter()
717 header.frame_ctl = cpu_to_le16(fc); rtllib_xmit_inter()
743 header.qos_ctl = cpu_to_le16(qos_ctl & RTLLIB_QOS_TID); rtllib_xmit_inter()
787 txb->payload_size = cpu_to_le16(bytes); rtllib_xmit_inter()
826 frag_hdr->frame_ctl = cpu_to_le16( rtllib_xmit_inter()
836 cpu_to_le16(rtllib_query_seqnum(ieee, skb_frag, rtllib_xmit_inter()
839 cpu_to_le16(le16_to_cpu(frag_hdr->seq_ctl)<<4 | i); rtllib_xmit_inter()
842 cpu_to_le16(ieee->seq_ctrl[0]<<4 | i); rtllib_xmit_inter()
894 txb->payload_size = cpu_to_le16(skb->len); rtllib_xmit_inter()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
H A Dcommands.h519 #define RXON_RX_CHAIN_DRIVER_FORCE_MSK cpu_to_le16(0x1 << 0)
521 #define RXON_RX_CHAIN_VALID_MSK cpu_to_le16(0x7 << 1)
523 #define RXON_RX_CHAIN_FORCE_SEL_MSK cpu_to_le16(0x7 << 4)
525 #define RXON_RX_CHAIN_FORCE_MIMO_SEL_MSK cpu_to_le16(0x7 << 7)
527 #define RXON_RX_CHAIN_CNT_MSK cpu_to_le16(0x3 << 10)
529 #define RXON_RX_CHAIN_MIMO_CNT_MSK cpu_to_le16(0x3 << 12)
531 #define RXON_RX_CHAIN_MIMO_FORCE_MSK cpu_to_le16(0x1 << 14)
814 #define STA_KEY_FLG_ENCRYPT_MSK cpu_to_le16(0x0007)
815 #define STA_KEY_FLG_NO_ENC cpu_to_le16(0x0000)
816 #define STA_KEY_FLG_WEP cpu_to_le16(0x0001)
817 #define STA_KEY_FLG_CCMP cpu_to_le16(0x0002)
818 #define STA_KEY_FLG_TKIP cpu_to_le16(0x0003)
821 #define STA_KEY_FLG_INVALID cpu_to_le16(0x0800)
823 #define STA_KEY_FLG_MAP_KEY_MSK cpu_to_le16(0x0008)
826 #define STA_KEY_FLG_KEY_SIZE_MSK cpu_to_le16(0x1000)
827 #define STA_KEY_MULTICAST_MSK cpu_to_le16(0x4000)
1054 #define RX_RES_PHY_FLAGS_BAND_24_MSK cpu_to_le16(1 << 0)
1055 #define RX_RES_PHY_FLAGS_MOD_CCK_MSK cpu_to_le16(1 << 1)
1056 #define RX_RES_PHY_FLAGS_SHORT_PREAMBLE_MSK cpu_to_le16(1 << 2)
1057 #define RX_RES_PHY_FLAGS_NARROW_BAND_MSK cpu_to_le16(1 << 3)
1060 #define RX_RES_PHY_FLAGS_AGG_MSK cpu_to_le16(1 << 7)
1924 #define IWLAGN_BT_VALID_ENABLE_FLAGS cpu_to_le16(BIT(0))
1925 #define IWLAGN_BT_VALID_BOOST cpu_to_le16(BIT(1))
1926 #define IWLAGN_BT_VALID_MAX_KILL cpu_to_le16(BIT(2))
1927 #define IWLAGN_BT_VALID_3W_TIMERS cpu_to_le16(BIT(3))
1928 #define IWLAGN_BT_VALID_KILL_ACK_MASK cpu_to_le16(BIT(4))
1929 #define IWLAGN_BT_VALID_KILL_CTS_MASK cpu_to_le16(BIT(5))
1930 #define IWLAGN_BT_VALID_REDUCED_TX_PWR cpu_to_le16(BIT(6))
1931 #define IWLAGN_BT_VALID_3W_LUT cpu_to_le16(BIT(7))
2158 #define IWL_POWER_DRIVER_ALLOW_SLEEP_MSK cpu_to_le16(BIT(0))
2159 #define IWL_POWER_POWER_SAVE_ENA_MSK cpu_to_le16(BIT(0))
2160 #define IWL_POWER_POWER_MANAGEMENT_ENA_MSK cpu_to_le16(BIT(1))
2161 #define IWL_POWER_SLEEP_OVER_DTIM_MSK cpu_to_le16(BIT(2))
2162 #define IWL_POWER_PCI_PM_MSK cpu_to_le16(BIT(3))
2163 #define IWL_POWER_FAST_PD cpu_to_le16(BIT(4))
2164 #define IWL_POWER_BEACON_FILTERING cpu_to_le16(BIT(5))
2165 #define IWL_POWER_SHADOW_REG_ENA cpu_to_le16(BIT(6))
2166 #define IWL_POWER_CT_KILL_SET cpu_to_le16(BIT(7))
2167 #define IWL_POWER_BT_SCO_ENA cpu_to_le16(BIT(8))
2168 #define IWL_POWER_ADVANCE_PM_ENA_MSK cpu_to_le16(BIT(9))
2308 #define IWL_GOOD_CRC_TH_DEFAULT cpu_to_le16(1)
2309 #define IWL_GOOD_CRC_TH_NEVER cpu_to_le16(0xffff)
3037 #define HD_INA_NON_SQUARE_DET_OFDM_DATA_V1 cpu_to_le16(0)
3038 #define HD_INA_NON_SQUARE_DET_CCK_DATA_V1 cpu_to_le16(0)
3039 #define HD_CORR_11_INSTEAD_OF_CORR_9_EN_DATA_V1 cpu_to_le16(0)
3040 #define HD_OFDM_NON_SQUARE_DET_SLOPE_MRC_DATA_V1 cpu_to_le16(668)
3041 #define HD_OFDM_NON_SQUARE_DET_INTERCEPT_MRC_DATA_V1 cpu_to_le16(4)
3042 #define HD_OFDM_NON_SQUARE_DET_SLOPE_DATA_V1 cpu_to_le16(486)
3043 #define HD_OFDM_NON_SQUARE_DET_INTERCEPT_DATA_V1 cpu_to_le16(37)
3044 #define HD_CCK_NON_SQUARE_DET_SLOPE_MRC_DATA_V1 cpu_to_le16(853)
3045 #define HD_CCK_NON_SQUARE_DET_INTERCEPT_MRC_DATA_V1 cpu_to_le16(4)
3046 #define HD_CCK_NON_SQUARE_DET_SLOPE_DATA_V1 cpu_to_le16(476)
3047 #define HD_CCK_NON_SQUARE_DET_INTERCEPT_DATA_V1 cpu_to_le16(99)
3049 #define HD_INA_NON_SQUARE_DET_OFDM_DATA_V2 cpu_to_le16(1)
3050 #define HD_INA_NON_SQUARE_DET_CCK_DATA_V2 cpu_to_le16(1)
3051 #define HD_CORR_11_INSTEAD_OF_CORR_9_EN_DATA_V2 cpu_to_le16(1)
3052 #define HD_OFDM_NON_SQUARE_DET_SLOPE_MRC_DATA_V2 cpu_to_le16(600)
3053 #define HD_OFDM_NON_SQUARE_DET_INTERCEPT_MRC_DATA_V2 cpu_to_le16(40)
3054 #define HD_OFDM_NON_SQUARE_DET_SLOPE_DATA_V2 cpu_to_le16(486)
3055 #define HD_OFDM_NON_SQUARE_DET_INTERCEPT_DATA_V2 cpu_to_le16(45)
3056 #define HD_CCK_NON_SQUARE_DET_SLOPE_MRC_DATA_V2 cpu_to_le16(853)
3057 #define HD_CCK_NON_SQUARE_DET_INTERCEPT_MRC_DATA_V2 cpu_to_le16(60)
3058 #define HD_CCK_NON_SQUARE_DET_SLOPE_DATA_V2 cpu_to_le16(476)
3059 #define HD_CCK_NON_SQUARE_DET_INTERCEPT_DATA_V2 cpu_to_le16(99)
3063 #define SENSITIVITY_CMD_CONTROL_DEFAULT_TABLE cpu_to_le16(0)
3064 #define SENSITIVITY_CMD_CONTROL_WORK_TABLE cpu_to_le16(1)
3228 #define DEFAULT_RADIO_SENSOR_OFFSET cpu_to_le16(2700)
H A Dcalib.c435 cpu_to_le16((u16)data->auto_corr_ofdm); iwl_prepare_legacy_sensitivity_tbl()
437 cpu_to_le16((u16)data->auto_corr_ofdm_mrc); iwl_prepare_legacy_sensitivity_tbl()
439 cpu_to_le16((u16)data->auto_corr_ofdm_x1); iwl_prepare_legacy_sensitivity_tbl()
441 cpu_to_le16((u16)data->auto_corr_ofdm_mrc_x1); iwl_prepare_legacy_sensitivity_tbl()
444 cpu_to_le16((u16)data->auto_corr_cck); iwl_prepare_legacy_sensitivity_tbl()
446 cpu_to_le16((u16)data->auto_corr_cck_mrc); iwl_prepare_legacy_sensitivity_tbl()
449 cpu_to_le16((u16)data->nrg_th_cck); iwl_prepare_legacy_sensitivity_tbl()
451 cpu_to_le16((u16)data->nrg_th_ofdm); iwl_prepare_legacy_sensitivity_tbl()
454 cpu_to_le16(data->barker_corr_th_min); iwl_prepare_legacy_sensitivity_tbl()
456 cpu_to_le16(data->barker_corr_th_min_mrc); iwl_prepare_legacy_sensitivity_tbl()
458 cpu_to_le16(data->nrg_th_cca); iwl_prepare_legacy_sensitivity_tbl()
H A Dlib.c141 .flush_control = cpu_to_le16(IWL_DROP_ALL), iwlagn_txfifo_flush()
144 .flush_control = cpu_to_le16(IWL_DROP_ALL), iwlagn_txfifo_flush()
164 flush_cmd_v2.queue_control = cpu_to_le16((u16)queue_control); iwlagn_txfifo_flush()
863 ctx->staging.rx_chain = cpu_to_le16(rx_chain); iwlagn_set_rxon_chain()
901 out[i] = cpu_to_le16(p1k[i]); iwlagn_convert_p1k()
954 tkip_tx_sc->iv16 = cpu_to_le16(seq.tkip.iv16); iwlagn_wowlan_program_keys()
979 tkip_sc[i].iv16 = cpu_to_le16(seq.tkip.iv16); iwlagn_wowlan_program_keys()
1117 wakeup_filter_cmd.non_qos_seq = cpu_to_le16(seq); iwlagn_suspend()
1126 wakeup_filter_cmd.qos_seq[i] = cpu_to_le16(seq); iwlagn_suspend()
1225 kek_kck_cmd.kck_len = cpu_to_le16(NL80211_KCK_LEN); iwlagn_suspend()
1227 kek_kck_cmd.kek_len = cpu_to_le16(NL80211_KEK_LEN); iwlagn_suspend()
H A Dscan.c496 scan_ch->channel = cpu_to_le16(channel); iwl_get_channel_for_reset_scan()
499 cpu_to_le16(IWL_RADIO_RESET_DWELL_TIME); iwl_get_channel_for_reset_scan()
501 cpu_to_le16(IWL_RADIO_RESET_DWELL_TIME); iwl_get_channel_for_reset_scan()
545 scan_ch->channel = cpu_to_le16(channel); iwl_get_channels_for_scan()
555 scan_ch->active_dwell = cpu_to_le16(active_dwell); iwl_get_channels_for_scan()
556 scan_ch->passive_dwell = cpu_to_le16(passive_dwell); iwl_get_channels_for_scan()
602 frame->frame_control = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); iwl_fill_probe_req()
724 scan->quiet_time = cpu_to_le16(IWL_RADIO_RESET_DWELL_TIME); iwlagn_request_scan()
864 scan->rx_chain = cpu_to_le16(rx_chain); iwlagn_request_scan()
886 scan->tx_cmd.len = cpu_to_le16(cmd_len); iwlagn_request_scan()
914 scan->len = cpu_to_le16(cmd.len[0]); iwlagn_request_scan()
/linux-4.1.27/drivers/firewire/
H A Dohci.c676 d->res_count = cpu_to_le16(PAGE_SIZE); ar_context_link_page()
751 if (next_res_count == cpu_to_le16(PAGE_SIZE)) { ar_search_last_active_buffer()
764 if (next_res_count != cpu_to_le16(PAGE_SIZE)) ar_search_last_active_buffer()
1024 d->req_count = cpu_to_le16(PAGE_SIZE); ar_context_init()
1025 d->control = cpu_to_le16(DESCRIPTOR_INPUT_MORE | ar_context_init()
1058 branch = d->control & cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS); find_branch_descriptor()
1061 if (z == 2 && branch == cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS)) find_branch_descriptor()
1166 ctx->buffer_tail->buffer->control = cpu_to_le16(DESCRIPTOR_OUTPUT_LAST); context_init()
1167 ctx->buffer_tail->buffer->transfer_status = cpu_to_le16(0x8011); context_init()
1258 (ctx->prev->control & cpu_to_le16(DESCRIPTOR_CMD)) == context_append()
1259 cpu_to_le16(DESCRIPTOR_INPUT_MORE)) { context_append()
1313 d[0].control = cpu_to_le16(DESCRIPTOR_KEY_IMMEDIATE); at_context_queue_packet()
1314 d[0].res_count = cpu_to_le16(packet->timestamp); at_context_queue_packet()
1345 d[0].req_count = cpu_to_le16(packet->header_length); at_context_queue_packet()
1353 d[0].req_count = cpu_to_le16(12); at_context_queue_packet()
1356 d[0].control |= cpu_to_le16(DESCRIPTOR_PING); at_context_queue_packet()
1363 d[0].req_count = cpu_to_le16(8); at_context_queue_packet()
1395 d[2].req_count = cpu_to_le16(packet->payload_length); at_context_queue_packet()
1404 last->control |= cpu_to_le16(DESCRIPTOR_OUTPUT_LAST | at_context_queue_packet()
2785 while (!(d->control & cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS))) { handle_ir_packet_per_buffer()
2797 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS)) handle_ir_packet_per_buffer()
2832 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS)) { handle_ir_buffer_fill()
2862 if (pd->control & cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS)) sync_it_packet_for_cpu()
2875 if (pd->control & cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS)) sync_it_packet_for_cpu()
2889 } while (!(control & cpu_to_le16(DESCRIPTOR_BRANCH_ALWAYS))); sync_it_packet_for_cpu()
2923 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS)) handle_it_packet()
3241 d[0].control = cpu_to_le16(DESCRIPTOR_KEY_IMMEDIATE); queue_iso_transmit()
3242 d[0].req_count = cpu_to_le16(8); queue_iso_transmit()
3264 d[2].req_count = cpu_to_le16(p->header_length); queue_iso_transmit()
3277 pd[i].req_count = cpu_to_le16(length); queue_iso_transmit()
3295 last->control |= cpu_to_le16(DESCRIPTOR_OUTPUT_LAST | queue_iso_transmit()
3338 d->control = cpu_to_le16(DESCRIPTOR_STATUS | queue_iso_packet_per_buffer()
3341 d->control |= cpu_to_le16(DESCRIPTOR_WAIT); queue_iso_packet_per_buffer()
3342 d->req_count = cpu_to_le16(header_size); queue_iso_packet_per_buffer()
3351 pd->control = cpu_to_le16(DESCRIPTOR_STATUS | queue_iso_packet_per_buffer()
3358 pd->req_count = cpu_to_le16(length); queue_iso_packet_per_buffer()
3374 pd->control = cpu_to_le16(DESCRIPTOR_STATUS | queue_iso_packet_per_buffer()
3378 pd->control |= cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS); queue_iso_packet_per_buffer()
3410 d->control = cpu_to_le16(DESCRIPTOR_INPUT_MORE | queue_iso_buffer_fill()
3413 d->control |= cpu_to_le16(DESCRIPTOR_WAIT); queue_iso_buffer_fill()
3415 d->control |= cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS); queue_iso_buffer_fill()
3421 d->req_count = cpu_to_le16(length); queue_iso_buffer_fill()
/linux-4.1.27/arch/mips/include/asm/mach-cavium-octeon/
H A Dmangle-port.h66 # define __mem_ioswabw(a, x) cpu_to_le16(x)
/linux-4.1.27/arch/mips/include/asm/mach-generic/
H A Dmangle-port.h44 # define __mem_ioswabw(a, x) cpu_to_le16(x)
/linux-4.1.27/drivers/usb/host/
H A Dfhci-hub.c278 cpu_to_le16(fhci->vroot_hub->hub.wHubStatus); fhci_hub_control()
280 cpu_to_le16(fhci->vroot_hub->hub.wHubChange); fhci_hub_control()
285 cpu_to_le16(fhci->vroot_hub->port.wPortStatus); fhci_hub_control()
287 cpu_to_le16(fhci->vroot_hub->port.wPortChange); fhci_hub_control()
H A Dohci-s3c2410.c251 desc->wHubCharacteristics &= ~cpu_to_le16(HUB_CHAR_LPSM); ohci_s3c2410_hub_control()
252 desc->wHubCharacteristics |= cpu_to_le16( ohci_s3c2410_hub_control()
256 desc->wHubCharacteristics &= ~cpu_to_le16( ohci_s3c2410_hub_control()
258 desc->wHubCharacteristics |= cpu_to_le16( ohci_s3c2410_hub_control()
/linux-4.1.27/drivers/uwb/i1480/dfu/
H A Dphy.c61 cmd->rccb.wCommand = cpu_to_le16(i1480_CMD_MPI_WRITE); i1480_mpi_write()
62 cmd->size = cpu_to_le16(size); i1480_mpi_write()
113 cmd->rccb.wCommand = cpu_to_le16(i1480_CMD_MPI_READ); i1480_mpi_read()
114 cmd->size = cpu_to_le16(3*size); i1480_mpi_read()
/linux-4.1.27/arch/sh/include/mach-common/mach/
H A Dmangle-port.h41 # define __mem_ioswabw(x) cpu_to_le16(x)
/linux-4.1.27/include/linux/ceph/
H A Dpagelist.h62 __le16 ev = cpu_to_le16(v); ceph_pagelist_encode_16()
/linux-4.1.27/drivers/net/ethernet/intel/ixgb/
H A Dixgb_ee.c417 ee_map->init_ctrl_reg_1 = cpu_to_le16(EEPROM_ICW1_SIGNATURE_CLEAR); ixgb_write_eeprom()
480 hw->eeprom[i] = cpu_to_le16(ee_data); ixgb_get_eeprom_data()
487 ee_map->init_ctrl_reg_1 = cpu_to_le16(EEPROM_ICW1_SIGNATURE_CLEAR); ixgb_get_eeprom_data()
491 if ((ee_map->init_ctrl_reg_1 & cpu_to_le16(EEPROM_ICW1_SIGNATURE_MASK)) ixgb_get_eeprom_data()
492 != cpu_to_le16(EEPROM_ICW1_SIGNATURE_VALID)) { ixgb_get_eeprom_data()
515 if ((ee_map->init_ctrl_reg_1 & cpu_to_le16(EEPROM_ICW1_SIGNATURE_MASK)) ixgb_check_and_get_eeprom_data()
516 == cpu_to_le16(EEPROM_ICW1_SIGNATURE_VALID)) { ixgb_check_and_get_eeprom_data()
/linux-4.1.27/drivers/gpio/
H A Dgpio-dln2.c95 .pin = cpu_to_le16(pin), dln2_gpio_pin_cmd()
105 .pin = cpu_to_le16(pin), dln2_gpio_pin_val()
143 .pin = cpu_to_le16(pin), dln2_gpio_pin_set_out_val()
158 .pin = cpu_to_le16(offset), dln2_gpio_request()
239 .pin = cpu_to_le16(offset), dln2_gpio_set_direction()
293 .pin = cpu_to_le16(pin), dln2_gpio_set_event_cfg()
295 .period = cpu_to_le16(period), dln2_gpio_set_event_cfg()
/linux-4.1.27/drivers/net/wireless/b43/
H A Dxmit.c286 (wlhdr->duration_id & cpu_to_le16(0x8000)) || b43_generate_txhdr()
287 (wlhdr->duration_id == cpu_to_le16(0))) { b43_generate_txhdr()
541 txhdr->phy_ctl1_rts = cpu_to_le16( b43_generate_txhdr()
543 txhdr->phy_ctl1_rts_fb = cpu_to_le16( b43_generate_txhdr()
551 txhdr->format_598.cookie = cpu_to_le16(cookie); b43_generate_txhdr()
554 txhdr->format_351.cookie = cpu_to_le16(cookie); b43_generate_txhdr()
557 txhdr->format_410.cookie = cpu_to_le16(cookie); b43_generate_txhdr()
563 cpu_to_le16(b43_generate_tx_phy_ctl1(dev, rate)); b43_generate_txhdr()
565 cpu_to_le16(b43_generate_tx_phy_ctl1(dev, rate_fb)); b43_generate_txhdr()
570 txhdr->phy_ctl = cpu_to_le16(phy_ctl); b43_generate_txhdr()
/linux-4.1.27/drivers/media/usb/gspca/
H A Dkinect.c151 chdr->cmd = cpu_to_le16(cmd); send_cmd()
152 chdr->tag = cpu_to_le16(sd->cam_tag); send_cmd()
153 chdr->len = cpu_to_le16(cmd_len / 2); send_cmd()
217 cmd[0] = cpu_to_le16(reg); write_register()
218 cmd[1] = cpu_to_le16(data); write_register()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
H A Dwmi.c183 .len = cpu_to_le16(sizeof(cmd.wmi) + len), __wmi_send()
187 .id = cpu_to_le16(cmdid), __wmi_send()
246 cmd.hdr.seq = cpu_to_le16(++wil->wmi_seq); __wmi_send()
866 .bcon_interval = cpu_to_le16(bi), wmi_pcp_start()
1032 cmd->ie_len = cpu_to_le16(ie_len); wmi_set_ie()
1079 .max_mpdu_size = cpu_to_le16(wil_mtu2macbuf(mtu_max)), wmi_rx_chain_add()
1081 .ring_size = cpu_to_le16(vring->size), wmi_rx_chain_add()
1086 .host_thrsh = cpu_to_le16(rx_ring_overflow_thrsh), wmi_rx_chain_add()
1163 .disconnect_reason = cpu_to_le16(reason), wmi_disconnect_sta()
1178 .ba_timeout = cpu_to_le16(timeout), wmi_addba()
1192 .reason = cpu_to_le16(reason), wmi_delba_tx()
1205 .reason = cpu_to_le16(reason), wmi_delba_rx()
1221 .status_code = cpu_to_le16(status), wmi_addba_rx_resp()
1227 .ba_param_set = cpu_to_le16((amsdu ? 1 : 0) | (tid << 2) | wmi_addba_rx_resp()
1229 .ba_timeout = cpu_to_le16(timeout), wmi_addba_rx_resp()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_ctx.c293 prq->valid_field_offset = cpu_to_le16(temp_u16); qlcnic_82xx_fw_cmd_create_rx_ctx()
303 prq->num_rds_rings = cpu_to_le16(nrds_rings); qlcnic_82xx_fw_cmd_create_rx_ctx()
304 prq->num_sds_rings = cpu_to_le16(nsds_rings); qlcnic_82xx_fw_cmd_create_rx_ctx()
334 prq_sds[i].msi_index = cpu_to_le16(ahw->intr_tbl[i].id); qlcnic_82xx_fw_cmd_create_rx_ctx()
336 prq_sds[i].msi_index = cpu_to_le16(i); qlcnic_82xx_fw_cmd_create_rx_ctx()
469 prq->msi_index = cpu_to_le16(msix_id); qlcnic_82xx_fw_cmd_create_tx_ctx()
917 nic_info->pci_func = cpu_to_le16(nic->pci_func); qlcnic_82xx_set_nic_info()
918 nic_info->op_mode = cpu_to_le16(nic->op_mode); qlcnic_82xx_set_nic_info()
919 nic_info->phys_port = cpu_to_le16(nic->phys_port); qlcnic_82xx_set_nic_info()
920 nic_info->switch_mode = cpu_to_le16(nic->switch_mode); qlcnic_82xx_set_nic_info()
923 nic_info->max_tx_ques = cpu_to_le16(nic->max_tx_ques); qlcnic_82xx_set_nic_info()
924 nic_info->max_rx_ques = cpu_to_le16(nic->max_rx_ques); qlcnic_82xx_set_nic_info()
925 nic_info->min_tx_bw = cpu_to_le16(nic->min_tx_bw); qlcnic_82xx_set_nic_info()
926 nic_info->max_tx_bw = cpu_to_le16(nic->max_tx_bw); qlcnic_82xx_set_nic_info()
/linux-4.1.27/fs/hpfs/
H A Danode.c140 btree->first_free = cpu_to_le16((char *)&(btree->u.internal[1]) - (char *)btree); hpfs_add_sector_to_btree()
207 anode->btree.first_free = cpu_to_le16(16); hpfs_add_sector_to_btree()
256 btree->first_free = cpu_to_le16((char *)&btree->u.internal[2] - (char *)btree); hpfs_add_sector_to_btree()
419 btree->first_free = cpu_to_le16(8); hpfs_truncate_btree()
438 btree->first_free = cpu_to_le16(8 + 8 * btree->n_used_nodes); hpfs_truncate_btree()
472 btree->first_free = cpu_to_le16(8 + 12 * btree->n_used_nodes); hpfs_truncate_btree()
H A Dea.c244 fnode->ea_offs = cpu_to_le16(0xc4); hpfs_set_ea()
261 fnode->ea_size_s = cpu_to_le16(le16_to_cpu(fnode->ea_size_s) + strlen(key) + size + 5); hpfs_set_ea()
277 fnode->ea_size_s = cpu_to_le16(0); hpfs_set_ea()
307 anode->btree.first_free = cpu_to_le16(le16_to_cpu(anode->btree.first_free) + 12); hpfs_set_ea()
/linux-4.1.27/fs/exofs/
H A Ddir.c463 de->rec_len = cpu_to_le16(chunk_size); exofs_add_link()
503 de1->rec_len = cpu_to_le16(rec_len - name_len); exofs_add_link()
504 de->rec_len = cpu_to_le16(name_len); exofs_add_link()
559 pde->rec_len = cpu_to_le16(to - from); exofs_delete_entry()
597 de->rec_len = cpu_to_le16(EXOFS_DIR_REC_LEN(1)); exofs_make_empty()
604 de->rec_len = cpu_to_le16(chunk_size - EXOFS_DIR_REC_LEN(1)); exofs_make_empty()
/linux-4.1.27/drivers/net/wireless/orinoco/
H A Dorinoco_usb.c736 req->magic = cpu_to_le16(EZUSB_MAGIC); ezusb_fill_req()
739 req->frame_type = cpu_to_le16(frame_type); ezusb_fill_req()
740 req->size = cpu_to_le16(length + 4); ezusb_fill_req()
741 req->crc = cpu_to_le16(build_crc(req)); ezusb_fill_req()
742 req->hermes_len = cpu_to_le16(HERMES_BYTES_TO_RECLEN(length)); ezusb_fill_req()
743 req->hermes_rid = cpu_to_le16(rid); ezusb_fill_req()
1004 cpu_to_le16(cmd), ezusb_doicmd_wait()
1005 cpu_to_le16(parm0), ezusb_doicmd_wait()
1006 cpu_to_le16(parm1), ezusb_doicmd_wait()
1007 cpu_to_le16(parm2), ezusb_doicmd_wait()
1027 cpu_to_le16(cmd), ezusb_docmd_wait()
1028 cpu_to_le16(parm0), ezusb_docmd_wait()
1080 cpu_to_le16(pda_addr & 0xffff), ezusb_read_pda()
1081 cpu_to_le16(pda_len - 4) ezusb_read_pda()
1090 pda[0] = cpu_to_le16(pda_len - 2); ezusb_read_pda()
1092 pda[1] = cpu_to_le16(0x0800); /* CFG_PROD_DATA */ ezusb_read_pda()
1243 *tx_cntl = cpu_to_le16(tx_control); ezusb_xmit()
H A Dhw.c528 idbuf.len = cpu_to_le16(strlen(priv->desired_essid)); orinoco_hw_program_rids()
549 idbuf.len = cpu_to_le16(strlen(priv->nick)); orinoco_hw_program_rids()
836 keys[i].len = cpu_to_le16(LARGE_KEY_SIZE); __orinoco_hw_setup_wepkeys()
838 keys[i].len = cpu_to_le16(SMALL_KEY_SIZE); __orinoco_hw_setup_wepkeys()
840 keys[i].len = cpu_to_le16(0); __orinoco_hw_setup_wepkeys()
1013 buf.idx = cpu_to_le16(key_idx); __orinoco_hw_set_tkip_key()
1273 req[0] = cpu_to_le16(0x3fff); /* All channels */ orinoco_hw_trigger_scan()
1274 req[1] = cpu_to_le16(0x0001); /* rate 1 Mbps */ orinoco_hw_trigger_scan()
1285 idbuf.len = cpu_to_le16(len); orinoco_hw_trigger_scan()
1339 buf.reason_code = cpu_to_le16(reason_code); orinoco_hw_disassociate()
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
H A Dieee80211_softmac.c244 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0]<<4); softmac_mgmt_xmit()
262 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); softmac_mgmt_xmit()
298 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); softmac_ps_mgmt_xmit()
311 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); softmac_ps_mgmt_xmit()
343 req->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); ieee80211_probe_req()
680 auth->transaction = cpu_to_le16(ieee->associate_seq); ieee80211_authentication_req()
683 auth->status = cpu_to_le16(WLAN_STATUS_SUCCESS); ieee80211_authentication_req()
773 cpu_to_le16(ieee->current_network.beacon_interval); ieee80211_probe_resp()
775 cpu_to_le16(ieee->current_network.capability & WLAN_CAPABILITY_IBSS); ieee80211_probe_resp()
777 cpu_to_le16(ieee->current_network.capability & WLAN_CAPABILITY_SHORT_PREAMBLE); //add short preamble here ieee80211_probe_resp()
780 beacon_buf->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT); ieee80211_probe_resp()
784 beacon_buf->capability |= cpu_to_le16(WLAN_CAPABILITY_PRIVACY); ieee80211_probe_resp()
787 beacon_buf->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_PROBE_RESP); ieee80211_probe_resp()
865 assoc->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_ASSOC_RESP); ieee80211_assoc_resp()
869 assoc->capability = cpu_to_le16(ieee->iw_mode == IW_MODE_MASTER ? ieee80211_assoc_resp()
874 assoc->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT); ieee80211_assoc_resp()
883 assoc->capability |= cpu_to_le16(WLAN_CAPABILITY_PRIVACY); ieee80211_assoc_resp()
886 assoc->aid = cpu_to_le16(ieee->assoc_id); ieee80211_assoc_resp()
914 auth->status = cpu_to_le16(status); ieee80211_auth_resp()
915 auth->transaction = cpu_to_le16(2); ieee80211_auth_resp()
916 auth->algorithm = cpu_to_le16(WLAN_AUTH_OPEN); ieee80211_auth_resp()
921 auth->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_AUTH); ieee80211_auth_resp()
944 hdr->frame_ctl = cpu_to_le16(IEEE80211_FTYPE_DATA | ieee80211_null_func()
1094 hdr->capability = cpu_to_le16(WLAN_CAPABILITY_BSS); ieee80211_association_req()
1096 hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_PRIVACY); ieee80211_association_req()
1099 hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_PREAMBLE); //add short_preamble here ieee80211_association_req()
1102 hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_SHORT_SLOT); ieee80211_association_req()
1104 hdr->capability |= cpu_to_le16(WLAN_CAPABILITY_QOS); ieee80211_association_req()
1561 return cpu_to_le16(a->status); auth_parse()
2258 header->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); ieee80211_wake_queue()
2569 b->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_BEACON); ieee80211_get_beacon_()
2585 b->header.seq_ctl = cpu_to_le16(ieee->seq_ctrl[0] << 4); ieee80211_get_beacon()
3122 disass->header.frame_ctl = cpu_to_le16(IEEE80211_STYPE_DISASSOC); ieee80211_disassociate_skb()
/linux-4.1.27/drivers/scsi/
H A Dnsp32_io.h82 writew(cpu_to_le16(val), ptr); nsp32_mmio_write2()
223 writew(cpu_to_le16(val), data_ptr ); nsp32_mmio_index_write2()
H A Dstex.c426 dst->sg_count = cpu_to_le16((u16)nseg); stex_map_sg()
427 dst->max_sg_count = cpu_to_le16(hba->host->sg_tablesize); stex_map_sg()
458 dst->sg_count = cpu_to_le16((u16)nseg); stex_ss_map_sg()
459 dst->max_sg_count = cpu_to_le16(hba->host->sg_tablesize); stex_ss_map_sg()
505 req->tag = cpu_to_le16(tag); stex_send_cmd()
522 req->tag = cpu_to_le16(tag); stex_ss_send_cmd()
531 msg_h->timeout = cpu_to_le16(cmd->request->timeout/HZ); stex_ss_send_cmd()
1001 h->req_sz = cpu_to_le16(hba->rq_size); stex_common_handshake()
1002 h->req_cnt = cpu_to_le16(hba->rq_count+1); stex_common_handshake()
1003 h->status_sz = cpu_to_le16(sizeof(struct status_msg)); stex_common_handshake()
1004 h->status_cnt = cpu_to_le16(hba->sts_count+1); stex_common_handshake()
1075 h->req_sz = cpu_to_le16(hba->rq_size); stex_ss_handshake()
1076 h->req_cnt = cpu_to_le16(hba->rq_count+1); stex_ss_handshake()
1077 h->status_sz = cpu_to_le16(sizeof(struct status_msg)); stex_ss_handshake()
1078 h->status_cnt = cpu_to_le16(hba->sts_count+1); stex_ss_handshake()
H A D3w-9xxx.c494 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); twa_aen_sync_time()
499 param->table_id = cpu_to_le16(TW_TIMEKEEP_TABLE | 0x8000); /* Controller time keep table */ twa_aen_sync_time()
500 param->parameter_id = cpu_to_le16(0x3); /* SchedulerTime */ twa_aen_sync_time()
501 param->parameter_size_bytes = cpu_to_le16(4); twa_aen_sync_time()
1070 command_packet->byte6_offset.block_count = cpu_to_le16(1); twa_get_param()
1075 param->table_id = cpu_to_le16(table_id | 0x8000); twa_get_param()
1076 param->parameter_id = cpu_to_le16(parameter_id); twa_get_param()
1077 param->parameter_size_bytes = cpu_to_le16(parameter_size_bytes); twa_get_param()
1129 tw_initconnect->message_credits = cpu_to_le16(message_credits); twa_initconnection()
1139 tw_initconnect->fw_srl = cpu_to_le16(current_fw_srl); twa_initconnection()
1140 tw_initconnect->fw_arch_id = cpu_to_le16(current_fw_arch_id); twa_initconnection()
1141 tw_initconnect->fw_branch = cpu_to_le16(current_fw_branch); twa_initconnection()
1142 tw_initconnect->fw_build = cpu_to_le16(current_fw_build); twa_initconnection()
1391 cpu_to_le16(TW_REQ_LUN_IN(TW_LUN_OUT(newcommand->request_id__lunl), request_id)); twa_load_sgl()
1397 cpu_to_le16(TW_REQ_LUN_IN(TW_LUN_OUT(newcommand->sgl_entries__lunh), length ? 1 : 0)); twa_load_sgl()
1836 cpu_to_le16(TW_REQ_LUN_IN(srb->device->lun, request_id)); twa_scsiop_execute_scsi()
1839 cpu_to_le16(TW_REQ_LUN_IN(0, request_id)); twa_scsiop_execute_scsi()
1871 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev->srb[request_id])));
1883 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg));
H A D3w-sas.c328 cpu_to_le16(TW_REQ_LUN_IN(srb->device->lun, request_id)); twl_scsiop_execute_scsi()
331 cpu_to_le16(TW_REQ_LUN_IN(0, request_id)); twl_scsiop_execute_scsi()
348 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev->srb[request_id])));
356 command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN(0, use_sg));
429 command_packet->byte6_offset.parameter_count = cpu_to_le16(1); twl_aen_sync_time()
434 param->table_id = cpu_to_le16(TW_TIMEKEEP_TABLE | 0x8000); /* Controller time keep table */ twl_aen_sync_time()
435 param->parameter_id = cpu_to_le16(0x3); /* SchedulerTime */ twl_aen_sync_time()
436 param->parameter_size_bytes = cpu_to_le16(4); twl_aen_sync_time()
695 cpu_to_le16(TW_REQ_LUN_IN(TW_LUN_OUT(newcommand->request_id__lunl), request_id)); twl_load_sgl()
701 cpu_to_le16(TW_REQ_LUN_IN(TW_LUN_OUT(newcommand->sgl_entries__lunh), length ? 1 : 0)); twl_load_sgl()
945 command_packet->byte6_offset.block_count = cpu_to_le16(1); twl_get_param()
950 param->table_id = cpu_to_le16(table_id | 0x8000); twl_get_param()
951 param->parameter_id = cpu_to_le16(parameter_id); twl_get_param()
952 param->parameter_size_bytes = cpu_to_le16(parameter_size_bytes); twl_get_param()
996 tw_initconnect->message_credits = cpu_to_le16(message_credits); twl_initconnection()
1006 tw_initconnect->fw_srl = cpu_to_le16(current_fw_srl); twl_initconnection()
1007 tw_initconnect->fw_arch_id = cpu_to_le16(current_fw_arch_id); twl_initconnection()
1008 tw_initconnect->fw_branch = cpu_to_le16(current_fw_branch); twl_initconnection()
1009 tw_initconnect->fw_build = cpu_to_le16(current_fw_build); twl_initconnection()
/linux-4.1.27/drivers/staging/rtl8723au/core/
H A Drtw_mlme_ext.c2396 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_BEACON); issue_beacon23a()
2551 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_PROBE_RESP); issue_probersp()
2557 mgmt->seq_ctrl = cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); issue_probersp()
2705 pwlanhdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | _issue_probereq()
2721 cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); _issue_probereq()
2852 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_AUTH); issue_auth()
2853 mgmt->seq_ctrl = cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); issue_auth()
2875 mgmt->u.auth.auth_alg = cpu_to_le16(val16); issue_auth()
2879 cpu_to_le16((u16)psta->auth_seq); issue_auth()
2882 mgmt->u.auth.status_code = cpu_to_le16(status); issue_auth()
2931 iv_mgmt->u.auth.auth_alg = cpu_to_le16(auth_algo); issue_auth()
2935 cpu_to_le16(pmlmeinfo->auth_seq); issue_auth()
2938 iv_mgmt->u.auth.status_code = cpu_to_le16(status); issue_auth()
2951 cpu_to_le16(IEEE80211_FCTL_PROTECTED); issue_auth()
3003 mgmt->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | pkt_type); issue_assocrsp()
3009 mgmt->seq_ctrl = cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); issue_assocrsp()
3017 mgmt->u.assoc_resp.capab_info = cpu_to_le16(pnetwork->capability); issue_assocrsp()
3018 mgmt->u.assoc_resp.status_code = cpu_to_le16(status); issue_assocrsp()
3019 mgmt->u.assoc_resp.aid = cpu_to_le16(pstat->aid | BIT(14) | BIT(15)); issue_assocrsp()
3126 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_ASSOC_REQ); issue_assocreq()
3132 mgmt->seq_ctrl = cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); issue_assocreq()
3237 cap->cap_info &= ~cpu_to_le16( issue_assocreq()
3241 cap->cap_info |= cpu_to_le16( issue_assocreq()
3246 cap->cap_info |= cpu_to_le16(IEEE80211_HT_CAP_SM_PS); issue_assocreq()
3254 cap->cap_info |= cpu_to_le16(1 << IEEE80211_HT_CAP_RX_STBC_SHIFT); issue_assocreq()
3276 cap->cap_info |= cpu_to_le16(2 << IEEE80211_HT_CAP_RX_STBC_SHIFT); issue_assocreq()
3389 pwlanhdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_DATA | _issue_nulldata23a()
3393 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_FROMDS); _issue_nulldata23a()
3395 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_TODS); _issue_nulldata23a()
3398 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_PM); _issue_nulldata23a()
3405 cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); _issue_nulldata23a()
3510 pwlanhdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_DATA | _issue_qos_nulldata23a()
3514 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_FROMDS); _issue_qos_nulldata23a()
3516 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_TODS); _issue_qos_nulldata23a()
3519 pwlanhdr->frame_control |= cpu_to_le16(IEEE80211_FCTL_MOREDATA); _issue_qos_nulldata23a()
3521 pwlanhdr->qos_ctrl = cpu_to_le16(tid & IEEE80211_QOS_CTL_TID_MASK); _issue_qos_nulldata23a()
3522 pwlanhdr->qos_ctrl |= cpu_to_le16((pattrib->ack_policy << 5) & _issue_qos_nulldata23a()
3525 pwlanhdr->qos_ctrl |= cpu_to_le16(IEEE80211_QOS_CTL_EOSP); _issue_qos_nulldata23a()
3532 cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); _issue_qos_nulldata23a()
3629 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_DEAUTH); _issue_deauth()
3635 mgmt->seq_ctrl = cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); _issue_deauth()
3640 mgmt->u.deauth.reason_code = cpu_to_le16(reason); _issue_deauth()
3732 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_ACTION); issue_action_spct_ch_switch23a()
3738 mgmt->seq_ctrl = cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); issue_action_spct_ch_switch23a()
3793 cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_ACTION); issue_action_BA23a()
3799 mgmt->seq_ctrl = cpu_to_le16(IEEE80211_SN_TO_SEQ(pmlmeext->mgnt_seq)); issue_action_BA23a()
3806 status = cpu_to_le16(status); issue_action_BA23a()
3921 mgmt->u.action.u.delba.params = cpu_to_le16(BA_para_set); issue_action_BA23a()
3923 cpu_to_le16(WLAN_REASON_QSTA_NOT_USE); issue_action_BA23a()
4293 cpu_to_le16(IEEE80211_HT_CAP_40MHZ_INTOLERANT)) collect_bss_info()
/linux-4.1.27/drivers/uwb/
H A Dscan.c71 cmd->rccb.wCommand = cpu_to_le16(UWB_RC_CMD_SCAN); uwb_rc_scan()
74 cmd->wStartTime = cpu_to_le16(bpst_offset); uwb_rc_scan()
H A Die.c123 cmd->wCommand = cpu_to_le16(UWB_RC_CMD_GET_IE); uwb_rc_get_ie()
213 uwb_rc->ies->rccb.wCommand = cpu_to_le16(UWB_RC_CMD_SET_IE); uwb_rc_ie_setup()
261 rc->ies->wIELength = cpu_to_le16(length + new_ie_len); uwb_rc_ie_add_one()
351 uwb_rc->ies->wIELength = cpu_to_le16(len); uwb_rc_ie_cache_rm()
/linux-4.1.27/fs/ext2/
H A Dacl.c107 entry->e_tag = cpu_to_le16(acl_e->e_tag); ext2_acl_to_disk()
108 entry->e_perm = cpu_to_le16(acl_e->e_perm); ext2_acl_to_disk()
/linux-4.1.27/fs/ext3/
H A Dacl.c103 entry->e_tag = cpu_to_le16(acl_e->e_tag); ext3_acl_to_disk()
104 entry->e_perm = cpu_to_le16(acl_e->e_perm); ext3_acl_to_disk()
/linux-4.1.27/net/caif/
H A Dcffrml.c146 data = cpu_to_le16(chks); cffrml_transmit()
152 data = cpu_to_le16(len); cffrml_transmit()
/linux-4.1.27/drivers/leds/
H A Dleds-dac124s085.c48 word = cpu_to_le16(((led->id) << 14) | REG_WRITE_UPDATE | dac124s085_led_work()
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
H A Dcmd.c193 vbm->len = cpu_to_le16(bitmap_len + 5); wl1251_cmd_vbm()
408 cmd->size = cpu_to_le16(buf_len); wl1251_cmd_template_set()
450 cmd->params.scan_options |= cpu_to_le16(WL1251_SCAN_OPT_PRIORITY_HIGH); wl1251_cmd_scan()
453 cmd->params.tx_rate = cpu_to_le16(1 << 1); /* 2 Mbps */ wl1251_cmd_scan()
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
H A Dmac.c484 key.user = cpu_to_le16(id); carl9170_upload_key()
485 key.keyId = cpu_to_le16(keyidx); carl9170_upload_key()
486 key.type = cpu_to_le16(ktype); carl9170_upload_key()
499 key.user = cpu_to_le16(id); carl9170_disable_key()
H A Dtx.c422 if (super->f.mac_control & cpu_to_le16(AR9170_TX_MAC_IMM_BA)) { carl9170_tx_status_process_ampdu()
919 __le16 mac_tmp = cpu_to_le16(0); carl9170_tx_apply_rateset()
925 mac_tmp |= cpu_to_le16(AR9170_TX_MAC_AGGR); carl9170_tx_apply_rateset()
928 mac_tmp |= cpu_to_le16(AR9170_TX_MAC_PROT_RTS); carl9170_tx_apply_rateset()
930 mac_tmp |= cpu_to_le16(AR9170_TX_MAC_PROT_CTS); carl9170_tx_apply_rateset()
1011 mac_tmp = cpu_to_le16(AR9170_TX_MAC_HW_DURATION | carl9170_tx_prepare()
1013 mac_tmp |= cpu_to_le16((hw_queue << AR9170_TX_MAC_QOS_S) & carl9170_tx_prepare()
1017 mac_tmp |= cpu_to_le16(AR9170_TX_MAC_NO_ACK); carl9170_tx_prepare()
1026 mac_tmp |= cpu_to_le16(AR9170_TX_MAC_ENCR_RC4); carl9170_tx_prepare()
1029 mac_tmp |= cpu_to_le16(AR9170_TX_MAC_ENCR_AES); carl9170_tx_prepare()
1064 txc->s.len = cpu_to_le16(skb->len); carl9170_tx_prepare()
1065 txc->f.length = cpu_to_le16(len + FCS_LEN); carl9170_tx_prepare()
1084 super->f.mac_control |= cpu_to_le16(AR9170_TX_MAC_IMM_BA); carl9170_set_immba()
/linux-4.1.27/fs/ufs/
H A Dswab.h92 return (__force __fs16)cpu_to_le16(n); cpu_to_fs16()
/linux-4.1.27/fs/ocfs2/
H A Dacl.c101 entry->e_tag = cpu_to_le16(acl->a_entries[n].e_tag); ocfs2_acl_to_xattr()
102 entry->e_perm = cpu_to_le16(acl->a_entries[n].e_perm); ocfs2_acl_to_xattr()
205 di->i_mode = cpu_to_le16(inode->i_mode); ocfs2_acl_set_mode()
/linux-4.1.27/drivers/net/wireless/b43legacy/
H A Dxmit.c222 (wlhdr->duration_id & cpu_to_le16(0x8000)) || generate_txhdr_fw3()
223 (wlhdr->duration_id == cpu_to_le16(0))) { generate_txhdr_fw3()
349 txhdr->cookie = cpu_to_le16(cookie); generate_txhdr_fw3()
353 txhdr->phy_ctl = cpu_to_le16(phy_ctl); generate_txhdr_fw3()
497 fctl &= ~cpu_to_le16(IEEE80211_FCTL_PROTECTED); b43legacy_rx()
/linux-4.1.27/drivers/usb/gadget/udc/bdc/
H A Dbdc_udc.c61 .wMaxPacketSize = cpu_to_le16(EP0_MAX_PKT_SIZE),
90 cpu_to_le16(EP0_MAX_PKT_SIZE); bdc_uspc_connected()
102 bdc_gadget_ep0_desc.wMaxPacketSize = cpu_to_le16(64); bdc_uspc_connected()
108 bdc_gadget_ep0_desc.wMaxPacketSize = cpu_to_le16(64); bdc_uspc_connected()
114 bdc_gadget_ep0_desc.wMaxPacketSize = cpu_to_le16(8); bdc_uspc_connected()
/linux-4.1.27/net/decnet/
H A Ddn_neigh.c234 *((__le16 *)data) = cpu_to_le16(skb->len - 2); dn_long_output()
279 *((__le16 *)data) = cpu_to_le16(skb->len - 2); dn_short_output()
320 *((__le16 *)data) = cpu_to_le16(skb->len - 2); dn_phase3_output()
324 sp->dstnode = cb->dst & cpu_to_le16(0x03ff); dn_phase3_output()
325 sp->srcnode = cb->src & cpu_to_le16(0x03ff); dn_phase3_output()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
H A Di40e_adminq.c180 desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF); i40e_alloc_arq_bufs()
182 desc->flags |= cpu_to_le16(I40E_AQ_FLAG_LB); i40e_alloc_arq_bufs()
187 desc->datalen = cpu_to_le16((u16)bi->size); i40e_alloc_arq_bufs()
730 desc->flags &= ~cpu_to_le16(details->flags_dis); i40evf_asq_send_command()
731 desc->flags |= cpu_to_le16(details->flags_ena); i40evf_asq_send_command()
778 desc_on_ring->datalen = cpu_to_le16(buff_size); i40evf_asq_send_command()
871 desc->opcode = cpu_to_le16(opcode); i40evf_fill_default_direct_cmd_desc()
872 desc->flags = cpu_to_le16(I40E_AQ_FLAG_SI); i40evf_fill_default_direct_cmd_desc()
942 desc->flags = cpu_to_le16(I40E_AQ_FLAG_BUF); i40evf_clean_arq_element()
944 desc->flags |= cpu_to_le16(I40E_AQ_FLAG_LB); i40evf_clean_arq_element()
945 desc->datalen = cpu_to_le16((u16)bi->size); i40evf_clean_arq_element()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
H A Dmsgbuf.c454 request->output_buf_len = cpu_to_le16(len); brcmf_msgbuf_tx_ioctl()
455 request->trans_id = cpu_to_le16(msgbuf->reqid); brcmf_msgbuf_tx_ioctl()
458 request->input_buf_len = cpu_to_le16(buf_len); brcmf_msgbuf_tx_ioctl()
618 create->flow_ring_id = cpu_to_le16(flowid + brcmf_msgbuf_flowring_create_worker()
625 create->max_items = cpu_to_le16(BRCMF_H2D_TXFLOWRING_MAX_ITEM); brcmf_msgbuf_flowring_create_worker()
626 create->len_item = cpu_to_le16(BRCMF_H2D_TXFLOWRING_ITEMSIZE); brcmf_msgbuf_flowring_create_worker()
743 tx_msghdr->data_len = cpu_to_le16(skb->len - ETH_HLEN); brcmf_msgbuf_txflow()
933 cpu_to_le16(msgbuf->rx_metadata_offset); brcmf_msgbuf_rxbuf_data_post()
947 rx_bufpost->data_buf_len = cpu_to_le16((u16)pktlen); brcmf_msgbuf_rxbuf_data_post()
1046 rx_bufpost->host_buf_len = cpu_to_le16((u16)pktlen); brcmf_msgbuf_rxbuf_ctrl_post()
1346 delete->flow_ring_id = cpu_to_le16(flowid + brcmf_msgbuf_delete_flowring()
/linux-4.1.27/net/wireless/
H A Dutil.c371 if ((fc & cpu_to_le16(0x00E0)) == cpu_to_le16(0x00C0)) ieee80211_hdrlen()
439 cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS)) { ieee80211_data_to_8023()
440 case cpu_to_le16(IEEE80211_FCTL_TODS): ieee80211_data_to_8023()
446 case cpu_to_le16(IEEE80211_FCTL_TODS | IEEE80211_FCTL_FROMDS): ieee80211_data_to_8023()
471 case cpu_to_le16(IEEE80211_FCTL_FROMDS): ieee80211_data_to_8023()
493 case cpu_to_le16(0): ieee80211_data_to_8023()
551 fc = cpu_to_le16(IEEE80211_FTYPE_DATA | IEEE80211_STYPE_DATA); ieee80211_data_from_8023()
557 fc |= cpu_to_le16(IEEE80211_FCTL_FROMDS); ieee80211_data_from_8023()
566 fc |= cpu_to_le16(IEEE80211_FCTL_TODS); ieee80211_data_from_8023()
586 fc |= cpu_to_le16(IEEE80211_STYPE_QOS_DATA); ieee80211_data_from_8023()
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
H A Dbe_cmds.c919 req->num_pages = cpu_to_le16(PAGES_4K_SPANNED(q_mem->va, q_mem->size)); be_cmd_eq_create()
968 req->if_id = cpu_to_le16((u16)if_handle); be_cmd_mac_addr_query()
1081 req->num_pages = cpu_to_le16(PAGES_4K_SPANNED(q_mem->va, q_mem->size)); be_cmd_cq_create()
1159 req->num_pages = cpu_to_le16(PAGES_4K_SPANNED(q_mem->va, q_mem->size)); be_cmd_mccq_ext_create()
1167 req->cq_id = cpu_to_le16(cq->id); be_cmd_mccq_ext_create()
1224 req->num_pages = cpu_to_le16(PAGES_4K_SPANNED(q_mem->va, q_mem->size)); be_cmd_mccq_org_create()
1285 req->if_id = cpu_to_le16(adapter->if_handle); be_cmd_txq_create()
1289 req->cq_id = cpu_to_le16(cq->id); be_cmd_txq_create()
1331 req->cq_id = cpu_to_le16(cq_id); be_cmd_rxq_create()
1336 req->max_frame_size = cpu_to_le16(BE_MAX_JUMBO_FRAME_SIZE); be_cmd_rxq_create()
1397 req->id = cpu_to_le16(q->id); be_cmd_q_destroy()
1424 req->id = cpu_to_le16(q->id); be_cmd_rxq_destroy()
1561 req->cmd_params.params.pport_num = cpu_to_le16(adapter->hba_port_num); lancer_cmd_get_pport_stats()
1979 req->tx_flow_control = cpu_to_le16((u16)tx_fc); be_cmd_set_flow_control()
1980 req->rx_flow_control = cpu_to_le16((u16)rx_fc); be_cmd_set_flow_control()
2121 req->enable_rss = cpu_to_le16(rss_hash_opts); be_cmd_rss_config()
2122 req->cpu_table_size_log2 = cpu_to_le16(fls(table_size) - 1); be_cmd_rss_config()
3005 req->iface_id = cpu_to_le16(if_handle); be_cmd_get_mac_from_list()
3770 nic->channel_id_param = cpu_to_le16(0xF000); be_reset_nic_desc()
3857 nic_vft->rq_count = cpu_to_le16(num_vf_qs); be_fill_vf_res_template()
3858 nic_vft->txq_count = cpu_to_le16(num_vf_qs); be_fill_vf_res_template()
3859 nic_vft->rssq_count = cpu_to_le16(num_vf_qs); be_fill_vf_res_template()
3860 nic_vft->cq_count = cpu_to_le16(pool_res.max_cq_count / be_fill_vf_res_template()
3867 nic_vft->unicast_mac_count = cpu_to_le16(pool_res.max_uc_mac / be_fill_vf_res_template()
3871 nic_vft->vlan_count = cpu_to_le16(pool_res.max_vlans / be_fill_vf_res_template()
3875 nic_vft->iface_count = cpu_to_le16(pool_res.max_iface_count / be_fill_vf_res_template()
3879 nic_vft->mcc_count = cpu_to_le16(pool_res.max_mcc_count / be_fill_vf_res_template()
3899 desc.pcie.num_vfs = cpu_to_le16(num_vfs); be_cmd_set_sriov_config()
/linux-4.1.27/drivers/scsi/megaraid/
H A Dmegaraid_sas_fusion.c663 IOCInitMessage->MsgVersion = cpu_to_le16(MPI2_VERSION); megasas_ioc_init_fusion()
664 IOCInitMessage->HeaderVersion = cpu_to_le16(MPI2_HEADER_VERSION); megasas_ioc_init_fusion()
665 IOCInitMessage->SystemRequestFrameSize = cpu_to_le16(MEGA_MPI2_RAID_DEFAULT_IO_FRAME_SIZE / 4); megasas_ioc_init_fusion()
667 IOCInitMessage->ReplyDescriptorPostQueueDepth = cpu_to_le16(fusion->reply_q_depth); megasas_ioc_init_fusion()
676 frame_hdr->flags |= cpu_to_le16(MFI_FRAME_DONT_POST_IN_REPLY_QUEUE); megasas_ioc_init_fusion()
809 dcmd->flags = cpu_to_le16(MFI_FRAME_DIR_READ); megasas_get_ld_map_info()
914 dcmd->flags = cpu_to_le16(MFI_FRAME_DIR_WRITE); megasas_sync_map_info()
1349 io_request->IoFlags = cpu_to_le16(32); /* Specify 32-byte cdb */ megasas_set_pd_lba()
1359 io_request->EEDPFlags = cpu_to_le16( megasas_set_pd_lba()
1366 io_request->EEDPFlags = cpu_to_le16( megasas_set_pd_lba()
1399 io_request->IoFlags = cpu_to_le16(10); /* Specify 10-byte cdb */ megasas_set_pd_lba()
1437 io_request->IoFlags = cpu_to_le16(16); /* Specify 16-byte cdb */ megasas_set_pd_lba()
1505 io_request->RaidContext.VirtualDiskTgtId = cpu_to_le16(device_id); megasas_build_ldio_fusion()
1609 io_request->IoFlags |= cpu_to_le16(MPI25_SAS_DEVICE0_FLAGS_ENABLED_FAST_PATH); megasas_build_ldio_fusion()
1630 cpu_to_le16(local_map_ptr->raidMap.fpPdIoTimeoutSec); megasas_build_ldio_fusion()
1648 io_request->DevHandle = cpu_to_le16(device_id); megasas_build_ldio_fusion()
1711 cpu_to_le16(os_timeout_value); megasas_build_dcdb_fusion()
1721 cpu_to_le16((os_timeout_value > timeout_limit) ? megasas_build_dcdb_fusion()
1726 cpu_to_le16(MPI25_SAS_DEVICE0_FLAGS_ENABLED_FAST_PATH); megasas_build_dcdb_fusion()
1763 pRAID_Context->timeoutValue = cpu_to_le16(raid->fpIoTimeoutForLd); megasas_build_dcdb_fusion()
1764 pRAID_Context->VirtualDiskTgtId = cpu_to_le16(device_id); megasas_build_dcdb_fusion()
1793 io_request->DevHandle = cpu_to_le16(device_id); megasas_build_dcdb_fusion()
1798 io_request->RaidContext.VirtualDiskTgtId = cpu_to_le16(device_id); megasas_build_dcdb_fusion()
1838 io_request->IoFlags = cpu_to_le16(scp->cmd_len); megasas_build_io_fusion()
1863 io_request->SGLFlags = cpu_to_le16(MPI2_SGE_FLAGS_64_BIT_ADDRESSING); megasas_build_io_fusion()
1939 req_desc->SCSIIO.SMID = cpu_to_le16(index); megasas_build_and_issue_cmd_fusion()
2248 if (frame_hdr->flags & cpu_to_le16(MFI_FRAME_DONT_POST_IN_REPLY_QUEUE)) build_mpt_mfi_pass_thru()
2308 req_desc->SCSIIO.SMID = cpu_to_le16(index); build_mpt_cmd()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
H A Dwmi.c263 data_hdr->info3 |= cpu_to_le16(WMI_DATA_HDR_EOSP); ath6kl_wmi_data_hdr_add()
265 data_hdr->info2 |= cpu_to_le16(meta_ver << WMI_DATA_HDR_META_SHIFT); ath6kl_wmi_data_hdr_add()
266 data_hdr->info3 |= cpu_to_le16(if_idx & WMI_DATA_HDR_IF_IDX_MASK); ath6kl_wmi_data_hdr_add()
403 sub_type = pwh->frame_control & cpu_to_le16(IEEE80211_FCTL_STYPE); ath6kl_wmi_dot11_hdr_remove()
408 if (sub_type == cpu_to_le16(IEEE80211_STYPE_QOS_DATA)) { ath6kl_wmi_dot11_hdr_remove()
412 } else if (sub_type == cpu_to_le16(IEEE80211_STYPE_DATA)) { ath6kl_wmi_dot11_hdr_remove()
772 cmd->info.params.lrssi_scan_period = cpu_to_le16(DEF_LRSSI_SCAN_PERIOD); ath6kl_wmi_set_roam_lrssi_cmd()
1814 cmd_hdr->cmd_id = cpu_to_le16(cmd_id); ath6kl_wmi_cmd_send()
1816 cmd_hdr->info1 = cpu_to_le16(info1); ath6kl_wmi_cmd_send()
1890 cc->ch = cpu_to_le16(channel); ath6kl_wmi_connect_cmd()
1920 cc->channel = cpu_to_le16(channel); ath6kl_wmi_reconnect_cmd()
1985 sc->ch_list[i] = cpu_to_le16(ch_list[i]); ath6kl_wmi_startscan_cmd()
2069 sc->ch_list[i] = cpu_to_le16(ch_list[i]); ath6kl_wmi_beginscan_cmd()
2115 sc->fg_start_period = cpu_to_le16(fg_start_sec); ath6kl_wmi_scanparams_cmd()
2116 sc->fg_end_period = cpu_to_le16(fg_end_sec); ath6kl_wmi_scanparams_cmd()
2117 sc->bg_period = cpu_to_le16(bg_sec); ath6kl_wmi_scanparams_cmd()
2118 sc->minact_chdwell_time = cpu_to_le16(minact_chdw_msec); ath6kl_wmi_scanparams_cmd()
2119 sc->maxact_chdwell_time = cpu_to_le16(maxact_chdw_msec); ath6kl_wmi_scanparams_cmd()
2120 sc->pas_chdwell_time = cpu_to_le16(pas_chdw_msec); ath6kl_wmi_scanparams_cmd()
2124 sc->maxact_scan_per_ssid = cpu_to_le16(maxact_scan_per_ssid); ath6kl_wmi_scanparams_cmd()
2203 cmd->listen_intvl = cpu_to_le16(listen_interval); ath6kl_wmi_listeninterval_cmd()
2204 cmd->num_beacons = cpu_to_le16(listen_beacons); ath6kl_wmi_listeninterval_cmd()
2223 cmd->bmiss_time = cpu_to_le16(bmiss_time); ath6kl_wmi_bmisstime_cmd()
2224 cmd->num_beacons = cpu_to_le16(num_beacons); ath6kl_wmi_bmisstime_cmd()
2264 pm->idle_period = cpu_to_le16(idle_period); ath6kl_wmi_pmparams_cmd()
2265 pm->pspoll_number = cpu_to_le16(ps_poll_num); ath6kl_wmi_pmparams_cmd()
2266 pm->dtim_policy = cpu_to_le16(dtim_policy); ath6kl_wmi_pmparams_cmd()
2267 pm->tx_wakeup_policy = cpu_to_le16(tx_wakeup_policy); ath6kl_wmi_pmparams_cmd()
2268 pm->num_tx_to_wakeup = cpu_to_le16(num_tx_to_wakeup); ath6kl_wmi_pmparams_cmd()
2269 pm->ps_fail_event_policy = cpu_to_le16(ps_fail_event_policy); ath6kl_wmi_pmparams_cmd()
2435 data_hdr->info3 = cpu_to_le16(if_idx & WMI_DATA_HDR_IF_IDX_MASK); ath6kl_wmi_data_sync_send()
2936 cmd->host_req_delay = cpu_to_le16(host_req_delay); ath6kl_wmi_set_wow_mode_cmd()
2992 cmd->filter_list_id = cpu_to_le16(list_id); ath6kl_wmi_del_wow_pattern_cmd()
2993 cmd->filter_id = cpu_to_le16(filter_id); ath6kl_wmi_del_wow_pattern_cmd()
3120 cmd->threshold = cpu_to_le16(threshold); ath6kl_wmi_set_rts_cmd()
3414 cm->reason = cpu_to_le16(reason); ath6kl_wmi_ap_set_mlme()
3468 cmd->aid = cpu_to_le16(aid); ath6kl_wmi_set_apsd_bfrd_traf()
3469 cmd->bitmap = cpu_to_le16(bitmap); ath6kl_wmi_set_apsd_bfrd_traf()
3512 cmd->aid = cpu_to_le16(aid); ath6kl_wmi_set_pvb_cmd()
3513 cmd->rsvd = cpu_to_le16(0); ath6kl_wmi_set_pvb_cmd()
3666 p->len = cpu_to_le16(data_len); ath6kl_wmi_send_action_cmd()
3706 p->len = cpu_to_le16(data_len); __ath6kl_wmi_send_mgmt_cmd()
3759 p->len = cpu_to_le16(data_len); ath6kl_wmi_send_probe_response_cmd()
/linux-4.1.27/drivers/tty/serial/
H A Dicom.c238 (unsigned short int) cpu_to_le16(XMIT_BUFF_SZ); get_port_memory()
247 (unsigned short int) cpu_to_le16(XMIT_BUFF_SZ); get_port_memory()
265 (unsigned short int) cpu_to_le16(RCV_BUFF_SZ); get_port_memory()
640 if (cpu_to_le16(ICOM_PORT->statStg->xmit[0].flags) & icom_write()
659 cpu_to_le16(SA_FLAGS_READY_TO_XMIT); icom_write()
661 cpu_to_le16(data_count); icom_write()
720 cpu_to_le16(~SA_FLAGS_READY_TO_XMIT); xmit_interrupt()
723 cpu_to_le16(icom_port->statStg->xmit[0].leLength); xmit_interrupt()
753 status = cpu_to_le16(icom_port->statStg->rcv[rcv_buff].flags); recv_interrupt()
758 count = cpu_to_le16(icom_port->statStg->rcv[rcv_buff].leLength); recv_interrupt()
835 (unsigned short int) cpu_to_le16(RCV_BUFF_SZ); recv_interrupt()
841 status = cpu_to_le16(icom_port->statStg->rcv[rcv_buff].flags); recv_interrupt()
947 if (cpu_to_le16(ICOM_PORT->statStg->xmit[0].flags) & icom_tx_empty()
1228 (unsigned short int) cpu_to_le16(RCV_BUFF_SZ); icom_set_termios()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_sp.c861 cpu_to_le16(elem->cmd_data.vlan_mac.u.mac.is_inner_mac); bnx2x_set_one_mac_e2()
879 cpu_to_le16(elem->cmd_data.vlan_mac. bnx2x_set_one_mac_e2()
909 hdr->client_id = cpu_to_le16(0xff); bnx2x_vlan_mac_set_rdata_hdr_e1x()
923 cfg_entry->vlan_id = cpu_to_le16(vlan_id); bnx2x_vlan_mac_set_cfg_entry_e1x()
1015 rule_entry->vlan.vlan = cpu_to_le16(vlan); bnx2x_set_one_vlan_e2()
1029 rule_entry->vlan.vlan = cpu_to_le16(vlan); bnx2x_set_one_vlan_e2()
2194 cmd->state = cpu_to_le16(state); bnx2x_rx_mode_set_cmd_state_e2()
3239 data->hdr.client_id = cpu_to_le16(0xff); bnx2x_mcast_set_rdata_hdr_e1()
4073 data->capabilities = cpu_to_le16(caps); bnx2x_setup_rss()
4330 gen_data->mtu = cpu_to_le16(params->mtu); bnx2x_q_fill_init_general_data()
4353 cpu_to_le16(params->default_vlan); bnx2x_q_fill_init_tx_data()
4388 rx_data->cqe_pause_thr_low = cpu_to_le16(params->rcq_th_lo); bnx2x_q_fill_init_pause_data()
4389 rx_data->cqe_pause_thr_high = cpu_to_le16(params->rcq_th_hi); bnx2x_q_fill_init_pause_data()
4390 rx_data->bd_pause_thr_low = cpu_to_le16(params->bd_th_lo); bnx2x_q_fill_init_pause_data()
4391 rx_data->bd_pause_thr_high = cpu_to_le16(params->bd_th_hi); bnx2x_q_fill_init_pause_data()
4392 rx_data->sge_pause_thr_low = cpu_to_le16(params->sge_th_lo); bnx2x_q_fill_init_pause_data()
4393 rx_data->sge_pause_thr_high = cpu_to_le16(params->sge_th_hi); bnx2x_q_fill_init_pause_data()
4394 rx_data->rx_cos_mask = cpu_to_le16(params->pri_map); bnx2x_q_fill_init_pause_data()
4414 rx_data->max_agg_size = cpu_to_le16(params->tpa_agg_sz); bnx2x_q_fill_init_rx_data()
4417 rx_data->state = cpu_to_le16(CLIENT_INIT_RX_DATA_UCAST_DROP_ALL | bnx2x_q_fill_init_rx_data()
4432 rx_data->max_bytes_on_bd = cpu_to_le16(params->buf_sz); bnx2x_q_fill_init_rx_data()
4433 rx_data->sge_buff_size = cpu_to_le16(params->sge_buf_sz); bnx2x_q_fill_init_rx_data()
4459 cpu_to_le16(params->silent_removal_value); bnx2x_q_fill_init_rx_data()
4461 cpu_to_le16(params->silent_removal_mask); bnx2x_q_fill_init_rx_data()
4676 data->default_vlan = cpu_to_le16(params->def_vlan); bnx2x_q_fill_update_data()
4719 data->silent_vlan_value = cpu_to_le16(params->silent_removal_value); bnx2x_q_fill_update_data()
4720 data->silent_vlan_mask = cpu_to_le16(params->silent_removal_mask); bnx2x_q_fill_update_data()
4820 data->max_agg_size = cpu_to_le16(params->max_agg_sz); bnx2x_q_fill_update_tpa_data()
4823 data->sge_buff_size = cpu_to_le16(params->sge_buff_sz); bnx2x_q_fill_update_tpa_data()
4826 data->sge_pause_thr_high = cpu_to_le16(params->sge_pause_thr_high); bnx2x_q_fill_update_tpa_data()
4827 data->sge_pause_thr_low = cpu_to_le16(params->sge_pause_thr_low); bnx2x_q_fill_update_tpa_data()
5669 rdata->sd_vlan_tag = cpu_to_le16(start_params->sd_vlan_tag); bnx2x_func_send_start()
5675 rdata->vxlan_dst_port = cpu_to_le16(4789); bnx2x_func_send_start()
5680 cpu_to_le16(start_params->class_fail_ethtype); bnx2x_func_send_start()
5687 cpu_to_le16(start_params->sd_vlan_eth_type); bnx2x_func_send_start()
5690 cpu_to_le16(0x8100); bnx2x_func_send_start()
5730 cpu_to_le16(switch_update_params->vlan); bnx2x_func_send_switch_update()
5737 cpu_to_le16(switch_update_params->vlan_eth_type); bnx2x_func_send_switch_update()
5761 rdata->vxlan_dst_port = cpu_to_le16(4789); bnx2x_func_send_switch_update()
5791 rdata->vif_id = cpu_to_le16(afex_update_params->vif_id); bnx2x_func_send_afex_update()
5794 cpu_to_le16(afex_update_params->afex_default_vlan); bnx2x_func_send_afex_update()
5829 rdata->vif_list_index = cpu_to_le16(afex_vif_params->vif_list_index); bnx2x_func_send_afex_viflists()
/linux-4.1.27/drivers/net/can/usb/peak_usb/
H A Dpcan_usb_fd.c245 prc->sel_mask = cpu_to_le16(PUCAN_WRERRCNT_TE|PUCAN_WRERRCNT_RE); pcan_usb_fd_build_restart_cmd()
264 puo->options = cpu_to_le16(PUCAN_OPTION_CANDFDISO); pcan_usb_fd_build_restart_cmd()
337 cmd->idx = cpu_to_le16(i); pcan_usb_fd_set_filter_std()
359 cmd->ucan_mask = cpu_to_le16(ucan_mask); pcan_usb_fd_set_options()
360 cmd->usb_mask = cpu_to_le16(usb_mask); pcan_usb_fd_set_options()
406 cmd->brp = cpu_to_le16(PUCAN_TSLOW_BRP(bt->brp - 1)); pcan_usb_fd_set_bittiming_slow()
425 cmd->brp = cpu_to_le16(PUCAN_TFAST_BRP(bt->brp - 1)); pcan_usb_fd_set_bittiming_fast()
729 tx_msg->size = cpu_to_le16(tx_msg_size); pcan_usb_fd_encode_msg()
730 tx_msg->type = cpu_to_le16(PUCAN_MSG_CAN_TX); pcan_usb_fd_encode_msg()
759 tx_msg->flags = cpu_to_le16(tx_msg_flags); pcan_usb_fd_encode_msg()
/linux-4.1.27/drivers/net/usb/
H A Dpegasus.c183 req->wValue = cpu_to_le16(0); update_eth_regs_async()
184 req->wIndex = cpu_to_le16(EthCtrl0); update_eth_regs_async()
185 req->wLength = cpu_to_le16(3); update_eth_regs_async()
210 *t = cpu_to_le16(*regd); __mii_op()
317 __le16 le_data = cpu_to_le16(data); write_eprom_word()
351 ((__le16 *) id)[i] = cpu_to_le16(w16); get_node_id()
696 ((__le16 *) pegasus->tx_buff)[0] = cpu_to_le16(l16); pegasus_start_xmit()
732 __le16 tmp = cpu_to_le16(0); disable_net_traffic()
1098 if ((udd->idVendor == cpu_to_le16(VENDOR_BELKIN)) && pegasus_blacklisted()
1099 (udd->idProduct == cpu_to_le16(0x0121)) && pegasus_blacklisted()
/linux-4.1.27/fs/nilfs2/
H A Dsuper.c88 sbp[0]->s_state |= cpu_to_le16(NILFS_ERROR_FS); nilfs_set_error()
90 sbp[1]->s_state |= cpu_to_le16(NILFS_ERROR_FS); nilfs_set_error()
271 if (sbp[0]->s_magic != cpu_to_le16(NILFS_SUPER_MAGIC)) { nilfs_prepare_super()
273 sbp[1]->s_magic == cpu_to_le16(NILFS_SUPER_MAGIC)) { nilfs_prepare_super()
281 sbp[1]->s_magic != cpu_to_le16(NILFS_SUPER_MAGIC)) { nilfs_prepare_super()
336 sbp[0]->s_state = cpu_to_le16(nilfs->ns_mount_state); nilfs_cleanup_super()
458 sbp[0]->s_state = cpu_to_le16(le16_to_cpu(sbp[0]->s_state) & nilfs_resize_fs()
843 sbp[0]->s_max_mnt_count = cpu_to_le16(NILFS_DFL_MAX_MNT_COUNT); nilfs_setup_super()
845 sbp[0]->s_mnt_count = cpu_to_le16(mnt_count + 1); nilfs_setup_super()
850 cpu_to_le16(le16_to_cpu(sbp[0]->s_state) & ~NILFS_VALID_FS); nilfs_setup_super()
/linux-4.1.27/net/bluetooth/rfcomm/
H A Dcore.c774 addr.l2_psm = cpu_to_le16(L2CAP_PSM_RFCOMM); rfcomm_session_create()
953 pn->mtu = cpu_to_le16(channel_mtu); rfcomm_send_pn()
955 pn->mtu = cpu_to_le16(d->mtu); rfcomm_send_pn()
993 rpn->param_mask = cpu_to_le16(param_mask); rfcomm_send_rpn()
1157 put_unaligned(cpu_to_le16(__len16(len)), (__le16 *) &hdr->len); rfcomm_make_uih()
1486 if (rpn->param_mask & cpu_to_le16(RFCOMM_RPN_PM_BITRATE)) { rfcomm_recv_rpn()
1495 if (rpn->param_mask & cpu_to_le16(RFCOMM_RPN_PM_DATA)) { rfcomm_recv_rpn()
1504 if (rpn->param_mask & cpu_to_le16(RFCOMM_RPN_PM_STOP)) { rfcomm_recv_rpn()
1513 if (rpn->param_mask & cpu_to_le16(RFCOMM_RPN_PM_PARITY)) { rfcomm_recv_rpn()
1522 if (rpn->param_mask & cpu_to_le16(RFCOMM_RPN_PM_FLOW)) { rfcomm_recv_rpn()
1531 if (rpn->param_mask & cpu_to_le16(RFCOMM_RPN_PM_XON)) { rfcomm_recv_rpn()
1540 if (rpn->param_mask & cpu_to_le16(RFCOMM_RPN_PM_XOFF)) { rfcomm_recv_rpn()
2041 addr.l2_psm = cpu_to_le16(L2CAP_PSM_RFCOMM); rfcomm_add_listener()
/linux-4.1.27/drivers/net/ethernet/intel/
H A De100.c784 return cpu_to_le16(data); e100_eeprom_read()
804 if (cpu_to_le16(0xBABA - checksum) != nic->eeprom[nic->eeprom_wc - 1]) { e100_eeprom_load()
832 nic->eeprom[nic->eeprom_wc - 1] = cpu_to_le16(0xBABA - checksum); e100_eeprom_save()
901 cb->command |= cpu_to_le16(cb_s); e100_exec_cb()
903 cb->prev->command &= cpu_to_le16(~cb_s); e100_exec_cb()
1081 nic->tx_command = cpu_to_le16(cb_tx | cb_tx_sf | e100_get_defaults()
1087 nic->blank_rfd.size = cpu_to_le16(VLAN_ETH_FRAME_LEN + ETH_FCS_LEN); e100_get_defaults()
1103 cb->command = cpu_to_le16(cb_config); e100_configure()
1361 cb->command = cpu_to_le16(cb_ucode | cb_el); e100_setup_ucode()
1388 while (!(cb->status & cpu_to_le16(cb_complete))) { e100_load_ucode_wait()
1397 if (!counter || !(cb->status & cpu_to_le16(cb_ok))) { e100_load_ucode_wait()
1408 cb->command = cpu_to_le16(cb_iaaddr); e100_setup_iaaddr()
1415 cb->command = cpu_to_le16(cb_dump); e100_dump()
1594 cb->command = cpu_to_le16(cb_multi); e100_multi()
1595 cb->u.multi.count = cpu_to_le16(count * ETH_ALEN); e100_multi()
1781 cb->command |= cpu_to_le16(cb_tx_nc); e100_xmit_prepare()
1783 cb->command &= ~cpu_to_le16(cb_tx_nc); e100_xmit_prepare()
1787 cb->command |= cpu_to_le16(cb_i); e100_xmit_prepare()
1793 cb->u.tcb.tbd.size = cpu_to_le16(skb->len); e100_xmit_prepare()
1844 cb->status & cpu_to_le16(cb_complete); e100_tx_clean()
2125 new_before_last_rfd->command |= cpu_to_le16(cb_el); e100_rx_clean()
2133 old_before_last_rfd->command &= ~cpu_to_le16(cb_el); e100_rx_clean()
2137 old_before_last_rfd->size = cpu_to_le16(VLAN_ETH_FRAME_LEN e100_rx_clean()
2204 before_last->command |= cpu_to_le16(cb_el); e100_rx_alloc_list()

Completed in 6067 milliseconds

12345