Home
last modified time | relevance | path

Searched refs:cpu_to_le16 (Results 1 – 25 of 1090) sorted by relevance

12345678910>>...44

/linux/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)
[all …]
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsta_cmd.c38 cmd->command = cpu_to_le16(HostCmd_CMD_RSSI_INFO); in mwifiex_cmd_802_11_rssi_info()
39 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_rssi_info) + in mwifiex_cmd_802_11_rssi_info()
41 cmd->params.rssi_info.action = cpu_to_le16(cmd_action); in mwifiex_cmd_802_11_rssi_info()
42 cmd->params.rssi_info.ndata = cpu_to_le16(priv->data_avg_factor); in mwifiex_cmd_802_11_rssi_info()
43 cmd->params.rssi_info.nbcn = cpu_to_le16(priv->bcn_avg_factor); in mwifiex_cmd_802_11_rssi_info()
77 cmd->command = cpu_to_le16(HostCmd_CMD_MAC_CONTROL); in mwifiex_cmd_mac_control()
79 cpu_to_le16(sizeof(struct host_cmd_ds_mac_control) + S_DS_GEN); in mwifiex_cmd_mac_control()
109 cmd->command = cpu_to_le16(HostCmd_CMD_802_11_SNMP_MIB); in mwifiex_cmd_802_11_snmp_mib()
110 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_802_11_snmp_mib) in mwifiex_cmd_802_11_snmp_mib()
113 snmp_mib->oid = cpu_to_le16((u16)cmd_oid); in mwifiex_cmd_802_11_snmp_mib()
[all …]
H A Duap_cmd.c159 bss_cfg->ht_cap.cap_info = cpu_to_le16(MWIFIEX_DEF_HT_CAP); in mwifiex_set_ht_params()
303 tlv_akmp->header.type = cpu_to_le16(TLV_TYPE_UAP_AKMP); in mwifiex_uap_bss_wpa()
304 tlv_akmp->header.len = cpu_to_le16(sizeof(struct host_cmd_tlv_akmp) - in mwifiex_uap_bss_wpa()
306 tlv_akmp->key_mgmt_operation = cpu_to_le16(bss_cfg->key_mgmt_operation); in mwifiex_uap_bss_wpa()
307 tlv_akmp->key_mgmt = cpu_to_le16(bss_cfg->key_mgmt); in mwifiex_uap_bss_wpa()
313 pwk_cipher->header.type = cpu_to_le16(TLV_TYPE_PWK_CIPHER); in mwifiex_uap_bss_wpa()
315 cpu_to_le16(sizeof(struct host_cmd_tlv_pwk_cipher) - in mwifiex_uap_bss_wpa()
317 pwk_cipher->proto = cpu_to_le16(PROTOCOL_WPA); in mwifiex_uap_bss_wpa()
325 pwk_cipher->header.type = cpu_to_le16(TLV_TYPE_PWK_CIPHER); in mwifiex_uap_bss_wpa()
327 cpu_to_le16(sizeof(struct host_cmd_tlv_pwk_cipher) - in mwifiex_uap_bss_wpa()
[all …]
H A D11n.c57 ht_cap->cap_info = cpu_to_le16(sband->ht_cap.cap); in mwifiex_fill_cap_info()
58 ht_cap->extended_ht_cap_info = cpu_to_le16(ht_ext_cap); in mwifiex_fill_cap_info()
151 add_ba_rsp->ssn = cpu_to_le16((le16_to_cpu(add_ba_rsp->ssn)) in mwifiex_ret_11n_addba_req()
209 cmd->command = cpu_to_le16(HostCmd_CMD_RECONFIGURE_TX_BUFF); in mwifiex_cmd_recfg_tx_buf()
211 cpu_to_le16(sizeof(struct host_cmd_ds_txbuf_cfg) + S_DS_GEN); in mwifiex_cmd_recfg_tx_buf()
212 tx_buf->action = cpu_to_le16(action); in mwifiex_cmd_recfg_tx_buf()
217 tx_buf->buff_size = cpu_to_le16(*buf_size); in mwifiex_cmd_recfg_tx_buf()
243 cmd->command = cpu_to_le16(HostCmd_CMD_AMSDU_AGGR_CTRL); in mwifiex_cmd_amsdu_aggr_ctrl()
244 cmd->size = cpu_to_le16(sizeof(struct host_cmd_ds_amsdu_aggr_ctrl) in mwifiex_cmd_amsdu_aggr_ctrl()
246 amsdu_ctrl->action = cpu_to_le16(action); in mwifiex_cmd_amsdu_aggr_ctrl()
[all …]
H A Djoin.c49 ie_header.type = cpu_to_le16(TLV_TYPE_PASSTHROUGH); in mwifiex_cmd_append_generic_ie()
50 ie_header.len = cpu_to_le16(priv->gen_ie_buf_len); in mwifiex_cmd_append_generic_ie()
103 tsf_tlv.header.type = cpu_to_le16(TLV_TYPE_TSFTIMESTAMP); in mwifiex_cmd_append_tsf_tlv()
104 tsf_tlv.header.len = cpu_to_le16(2 * sizeof(tsf_val)); in mwifiex_cmd_append_tsf_tlv()
244 ie_header.type = cpu_to_le16(TLV_TYPE_PASSTHROUGH); in mwifiex_cmd_append_wps_ie()
245 ie_header.len = cpu_to_le16(priv->wps_ie_len); in mwifiex_cmd_append_wps_ie()
291 ie_header.type = cpu_to_le16(TLV_TYPE_WAPI_IE); in mwifiex_cmd_append_wapi_ie()
292 ie_header.len = cpu_to_le16(priv->wapi_ie_len); in mwifiex_cmd_append_wapi_ie()
328 rsn_ie_tlv->header.type = cpu_to_le16((u16) priv->wpa_ie[0]); in mwifiex_append_rsn_ie_wpa_wpa2()
329 rsn_ie_tlv->header.type = cpu_to_le16( in mwifiex_append_rsn_ie_wpa_wpa2()
[all …]
/linux/drivers/net/wireless/rsi/
H A Drsi_91x_mgmt.c25 .magic_number = cpu_to_le16(0x5aa5),
36 .pll_reg_1 = cpu_to_le16((TA_PLL_N_VAL_20 << 8)|
38 .pll_reg_2 = cpu_to_le16(TA_PLL_P_VAL_20),
41 .pll_reg_1 = cpu_to_le16((PLL960_P_VAL_20 << 8)|
43 .pll_reg_2 = cpu_to_le16(PLL960_M_VAL_20),
47 .pll_reg = cpu_to_le16(0x9f0),
51 .switch_clk_info = cpu_to_le16(0xb),
52 .bbp_lmac_clk_reg_val = cpu_to_le16(0x111),
53 .umac_clock_reg_config = cpu_to_le16(0x48),
54 .qspi_uart_clock_reg_config = cpu_to_le16(0x1211)
[all …]
/linux/fs/fat/
H A Dfat_test.c36 .time = cpu_to_le16(0),
37 .date = cpu_to_le16(33),
44 .time = cpu_to_le16(49021),
45 .date = cpu_to_le16(65439),
52 .time = cpu_to_le16(0),
53 .date = cpu_to_le16(33),
60 .time = cpu_to_le16(49021),
61 .date = cpu_to_le16(65439),
68 .time = cpu_to_le16(0),
69 .date = cpu_to_le16(8285),
[all …]
/linux/fs/smb/client/
H A Dcifssmb.c442 pSMB->ByteCount = cpu_to_le16(count); in CIFSSMBNegotiate()
692 pSMB->MaxParameterCount = cpu_to_le16(2); in CIFSPOSIXDelFile()
708 pRqD->type = cpu_to_le16(type); in CIFSPOSIXDelFile()
709 pSMB->ParameterOffset = cpu_to_le16(param_offset); in CIFSPOSIXDelFile()
710 pSMB->DataOffset = cpu_to_le16(offset); in CIFSPOSIXDelFile()
713 pSMB->SubCommand = cpu_to_le16(TRANS2_SET_PATH_INFORMATION); in CIFSPOSIXDelFile()
716 pSMB->DataCount = cpu_to_le16(sizeof(struct unlink_psx_rq)); in CIFSPOSIXDelFile()
717 pSMB->TotalDataCount = cpu_to_le16(sizeof(struct unlink_psx_rq)); in CIFSPOSIXDelFile()
718 pSMB->ParameterCount = cpu_to_le16(params); in CIFSPOSIXDelFile()
720 pSMB->InformationLevel = cpu_to_le16(SMB_POSIX_UNLINK); in CIFSPOSIXDelFile()
[all …]
H A Dcifs_unicode.c373 dest_char = cpu_to_le16(UNI_COLON); in convert_to_sfu_char()
376 dest_char = cpu_to_le16(UNI_ASTERISK); in convert_to_sfu_char()
379 dest_char = cpu_to_le16(UNI_QUESTION); in convert_to_sfu_char()
382 dest_char = cpu_to_le16(UNI_LESSTHAN); in convert_to_sfu_char()
385 dest_char = cpu_to_le16(UNI_GRTRTHAN); in convert_to_sfu_char()
388 dest_char = cpu_to_le16(UNI_PIPE); in convert_to_sfu_char()
402 dest_char = cpu_to_le16(src_char + 0xF000); in convert_to_sfm_char()
407 dest_char = cpu_to_le16(SFM_COLON); in convert_to_sfm_char()
410 dest_char = cpu_to_le16(SFM_DOUBLEQUOTE); in convert_to_sfm_char()
413 dest_char = cpu_to_le16(SFM_ASTERISK); in convert_to_sfm_char()
[all …]
/linux/drivers/staging/rtl8723bs/include/
H A Dwifi.h74 (*(__le16 *)(pbuf) |= cpu_to_le16(_TO_DS_))
76 #define GetToDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_TO_DS_)) != 0)
79 (*(__le16 *)(pbuf) |= cpu_to_le16(_FROM_DS_))
81 #define GetFrDs(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_FROM_DS_)) != 0)
86 (*(__le16 *)(pbuf) |= cpu_to_le16(_MORE_FRAG_))
88 #define GetMFrag(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_MORE_FRAG_)) != 0)
91 (*(__le16 *)(pbuf) &= (~cpu_to_le16(_MORE_FRAG_)))
93 #define GetRetry(pbuf) (((*(__le16 *)(pbuf)) & cpu_to_le16(_RETRY_)) != 0)
96 (*(__le16 *)(pbuf) &= (~cpu_to_le16(_RETRY_)))
99 (*(__le16 *)(pbuf) |= cpu_to_le16(_PWRMGT_))
[all …]
/linux/include/soc/fsl/
H A Ddpaa2-fd.h230 fd->simple.format_offset &= cpu_to_le16(~FD_OFFSET_MASK); in dpaa2_fd_set_offset()
231 fd->simple.format_offset |= cpu_to_le16(offset); in dpaa2_fd_set_offset()
256 cpu_to_le16(~(FD_FORMAT_MASK << FD_FORMAT_SHIFT)); in dpaa2_fd_set_format()
257 fd->simple.format_offset |= cpu_to_le16(format << FD_FORMAT_SHIFT); in dpaa2_fd_set_format()
278 fd->simple.bpid &= cpu_to_le16(~(FD_BPID_MASK)); in dpaa2_fd_set_bpid()
279 fd->simple.bpid |= cpu_to_le16(bpid); in dpaa2_fd_set_bpid()
374 sg->format_offset &= cpu_to_le16(~SG_OFFSET_MASK); in dpaa2_sg_set_offset()
375 sg->format_offset |= cpu_to_le16(offset); in dpaa2_sg_set_offset()
399 sg->format_offset &= cpu_to_le16(~(SG_FORMAT_MASK << SG_FORMAT_SHIFT)); in dpaa2_sg_set_format()
400 sg->format_offset |= cpu_to_le16(format << SG_FORMAT_SHIFT); in dpaa2_sg_set_format()
[all …]
/linux/drivers/net/wireless/marvell/libertas/
H A Dcmd.c96 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbs_update_hw_spec()
193 cmd_config.hdr.size = cpu_to_le16(sizeof(cmd_config)); in lbs_host_sleep_cfg()
236 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbs_set_ps_mode()
237 cmd.action = cpu_to_le16(cmd_action); in lbs_set_ps_mode()
241 cmd.multipledtim = cpu_to_le16(1); /* Default DTIM multiple */ in lbs_set_ps_mode()
271 cmd.error = cpu_to_le16(sp->sp_error); in lbs_cmd_802_11_sleep_params()
272 cmd.offset = cpu_to_le16(sp->sp_offset); in lbs_cmd_802_11_sleep_params()
273 cmd.stabletime = cpu_to_le16(sp->sp_stabletime); in lbs_cmd_802_11_sleep_params()
276 cmd.reserved = cpu_to_le16(sp->sp_reserved); in lbs_cmd_802_11_sleep_params()
278 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbs_cmd_802_11_sleep_params()
[all …]
/linux/drivers/staging/greybus/
H A Daudio_apbridgea.c19 req.hdr.i2s_port = cpu_to_le16(i2s_port); in gb_audio_apbridgea_set_config()
37 req.hdr.i2s_port = cpu_to_le16(i2s_port); in gb_audio_apbridgea_register_cport()
38 req.cport = cpu_to_le16(cportid); in gb_audio_apbridgea_register_cport()
58 req.hdr.i2s_port = cpu_to_le16(i2s_port); in gb_audio_apbridgea_unregister_cport()
59 req.cport = cpu_to_le16(cportid); in gb_audio_apbridgea_unregister_cport()
77 req.hdr.i2s_port = cpu_to_le16(i2s_port); in gb_audio_apbridgea_set_tx_data_size()
78 req.size = cpu_to_le16(size); in gb_audio_apbridgea_set_tx_data_size()
91 req.hdr.i2s_port = cpu_to_le16(i2s_port); in gb_audio_apbridgea_prepare_tx()
104 req.hdr.i2s_port = cpu_to_le16(i2s_port); in gb_audio_apbridgea_start_tx()
117 req.hdr.i2s_port = cpu_to_le16(i2s_port); in gb_audio_apbridgea_stop_tx()
[all …]
/linux/drivers/net/wireless/intersil/p54/
H A Dfwio.c108 if (exp_if[i].if_id == cpu_to_le16(IF_ID_LMAC)) in p54_parse_firmware()
205 hdr->flags = cpu_to_le16(hdr_flags); in p54_alloc_skb()
206 hdr->len = cpu_to_le16(payload_len); in p54_alloc_skb()
207 hdr->type = cpu_to_le16(type); in p54_alloc_skb()
237 eeprom_hdr->v1.offset = cpu_to_le16(offset); in p54_download_eeprom()
238 eeprom_hdr->v1.len = cpu_to_le16(len); in p54_download_eeprom()
241 eeprom_hdr->v2.len = cpu_to_le16(len); in p54_download_eeprom()
272 tim->entry[0] = cpu_to_le16(set ? (aid | 0x8000) : aid); in p54_update_beacon_tim()
356 setup->mac_mode = cpu_to_le16(mode); in p54_setup_mac()
365 setup->v1.max_rx = cpu_to_le16(priv->rx_mtu); in p54_setup_mac()
[all …]
/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpsw.c354 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_set_link_cfg()
385 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_get_link_state()
423 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_set_tci()
427 cmd_params->conf = cpu_to_le16(tmp_conf); in dpsw_if_set_tci()
456 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_get_tci()
496 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_set_stp()
497 cmd_params->vlan_id = cpu_to_le16(cfg->vlan_id); in dpsw_if_set_stp()
528 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_get_counter()
562 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_enable()
587 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_disable()
[all …]
/linux/fs/smb/server/
H A Dsmb2misc.c32 /* SMB2_NEGOTIATE */ cpu_to_le16(36),
33 /* SMB2_SESSION_SETUP */ cpu_to_le16(25),
34 /* SMB2_LOGOFF */ cpu_to_le16(4),
35 /* SMB2_TREE_CONNECT */ cpu_to_le16(9),
36 /* SMB2_TREE_DISCONNECT */ cpu_to_le16(4),
37 /* SMB2_CREATE */ cpu_to_le16(57),
38 /* SMB2_CLOSE */ cpu_to_le16(24),
39 /* SMB2_FLUSH */ cpu_to_le16(24),
40 /* SMB2_READ */ cpu_to_le16(49),
41 /* SMB2_WRITE */ cpu_to_le16(49),
[all …]
/linux/fs/smb/common/
H A Dsmb2pdu.h40 #define SMB2_NEGOTIATE cpu_to_le16(SMB2_NEGOTIATE_HE)
41 #define SMB2_SESSION_SETUP cpu_to_le16(SMB2_SESSION_SETUP_HE)
42 #define SMB2_LOGOFF cpu_to_le16(SMB2_LOGOFF_HE)
43 #define SMB2_TREE_CONNECT cpu_to_le16(SMB2_TREE_CONNECT_HE)
44 #define SMB2_TREE_DISCONNECT cpu_to_le16(SMB2_TREE_DISCONNECT_HE)
45 #define SMB2_CREATE cpu_to_le16(SMB2_CREATE_HE)
46 #define SMB2_CLOSE cpu_to_le16(SMB2_CLOSE_HE)
47 #define SMB2_FLUSH cpu_to_le16(SMB2_FLUSH_HE)
48 #define SMB2_READ cpu_to_le16(SMB2_READ_HE)
49 #define SMB2_WRITE cpu_to_le16(SMB2_WRITE_HE)
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Drfi.c16 {cpu_to_le16(160), {50, 58, 60, 62, 64, 52, 54, 56},
21 {cpu_to_le16(176), {149, 151, 153, 157, 159, 161, 165, 163, 167, 169,
28 {cpu_to_le16(192), {79, 81, 83, 85, 87, 89, 91, 93},
33 {cpu_to_le16(223), {114, 116, 118, 120, 122, 106, 110, 124, 126},
38 {cpu_to_le16(240), {114, 151, 155, 157, 159, 161, 165},
43 {cpu_to_le16(256), {79, 83, 85, 87, 89, 91, 93,},
48 {cpu_to_le16(264), {111, 119, 123, 125, 129, 131, 133, 135, 143,},
53 {cpu_to_le16(312), {36, 38, 40, 42, 44, 46, 50,},
58 {cpu_to_le16(336), {106, 110, 112, 114, 116, 118, 120, 122},
63 {cpu_to_le16(360), {3, 5, 7, 9, 11, 13, 15,},
[all …]
H A Dpower.c95 if (!(cmd->flags & cpu_to_le16(POWER_FLAGS_POWER_MANAGEMENT_ENA_MSK))) { in iwl_mvm_power_log()
104 if (cmd->flags & cpu_to_le16(POWER_FLAGS_SKIP_OVER_DTIM_MSK)) in iwl_mvm_power_log()
107 if (cmd->flags & cpu_to_le16(POWER_FLAGS_LPRX_ENA_MSK)) in iwl_mvm_power_log()
110 if (cmd->flags & cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK)) { in iwl_mvm_power_log()
131 cmd->flags & cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK)) { in iwl_mvm_power_configure_uapsd()
146 cmd->flags |= cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK); in iwl_mvm_power_configure_uapsd()
157 cpu_to_le16(POWER_FLAGS_ADVANCE_PM_ENA_MSK); in iwl_mvm_power_configure_uapsd()
181 cmd->flags |= cpu_to_le16(POWER_FLAGS_UAPSD_MISBEHAVING_ENA_MSK); in iwl_mvm_power_configure_uapsd()
187 cmd->flags |= cpu_to_le16(POWER_FLAGS_SNOOZE_ENA_MSK); in iwl_mvm_power_configure_uapsd()
188 cmd->snooze_interval = cpu_to_le16(IWL_MVM_PS_SNOOZE_INTERVAL); in iwl_mvm_power_configure_uapsd()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/dvm/
H A Dcommands.h456 #define RXON_RX_CHAIN_DRIVER_FORCE_MSK cpu_to_le16(0x1 << 0)
458 #define RXON_RX_CHAIN_VALID_MSK cpu_to_le16(0x7 << 1)
460 #define RXON_RX_CHAIN_FORCE_SEL_MSK cpu_to_le16(0x7 << 4)
462 #define RXON_RX_CHAIN_FORCE_MIMO_SEL_MSK cpu_to_le16(0x7 << 7)
464 #define RXON_RX_CHAIN_CNT_MSK cpu_to_le16(0x3 << 10)
466 #define RXON_RX_CHAIN_MIMO_CNT_MSK cpu_to_le16(0x3 << 12)
468 #define RXON_RX_CHAIN_MIMO_FORCE_MSK cpu_to_le16(0x1 << 14)
752 #define STA_KEY_FLG_ENCRYPT_MSK cpu_to_le16(0x0007)
753 #define STA_KEY_FLG_NO_ENC cpu_to_le16(0x0000)
754 #define STA_KEY_FLG_WEP cpu_to_le16(0x0001)
[all …]
/linux/drivers/net/wireless/marvell/libertas_tf/
H A Dcmd.c88 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbtf_update_hw_spec()
156 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbtf_set_channel()
157 cmd.action = cpu_to_le16(CMD_OPT_802_11_RF_CHANNEL_SET); in lbtf_set_channel()
158 cmd.channel = cpu_to_le16(channel); in lbtf_set_channel()
177 cmd.hdr.size = cpu_to_le16(size); in lbtf_beacon_set()
178 cmd.len = cpu_to_le16(beacon->len); in lbtf_beacon_set()
193 cmd.hdr.size = cpu_to_le16(sizeof(cmd)); in lbtf_beacon_ctrl()
194 cmd.action = cpu_to_le16(CMD_ACT_SET); in lbtf_beacon_ctrl()
195 cmd.beacon_enable = cpu_to_le16(beacon_enable); in lbtf_beacon_ctrl()
196 cmd.beacon_period = cpu_to_le16(beacon_int); in lbtf_beacon_ctrl()
[all …]
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_common.c262 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_set_rss_lut()
263 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_RD); in i40e_aq_get_set_rss_lut()
267 cmd_resp->vsi_id = cpu_to_le16(vsi_id); in i40e_aq_get_set_rss_lut()
276 cmd_resp->flags = cpu_to_le16(flags); in i40e_aq_get_set_rss_lut()
343 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_BUF); in i40e_aq_get_set_rss_key()
344 desc.flags |= cpu_to_le16((u16)I40E_AQ_FLAG_RD); in i40e_aq_get_set_rss_key()
348 cmd_resp->vsi_id = cpu_to_le16(vsi_id); in i40e_aq_get_set_rss_key()
448 desc.flags |= cpu_to_le16(I40E_AQ_FLAG_BUF); in i40e_aq_mac_address_read()
475 cmd_data->command_flags = cpu_to_le16(flags); in i40e_aq_mac_address_write()
476 cmd_data->mac_sah = cpu_to_le16((u16)mac_addr[0] << 8 | mac_addr[1]); in i40e_aq_mac_address_write()
[all …]
/linux/drivers/vdpa/pds/
H A Dcmds.c23 .vdpa_init.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_init_hw()
45 .vdpa.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_cmd_reset()
65 .vdpa_status.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_cmd_set_status()
86 .vdpa_setattr.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_cmd_set_mac()
109 .vdpa_setattr.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_cmd_set_max_vq_pairs()
111 .vdpa_setattr.max_vq_pairs = cpu_to_le16(max_vqp), in pds_vdpa_cmd_set_max_vq_pairs()
133 .vdpa_vq_init.vf_id = cpu_to_le16(pdsv->vdpa_aux->vf_id), in pds_vdpa_cmd_init_vq()
134 .vdpa_vq_init.qid = cpu_to_le16(qid), in pds_vdpa_cmd_init_vq()
135 .vdpa_vq_init.len = cpu_to_le16(ilog2(vq_info->q_len)), in pds_vdpa_cmd_init_vq()
139 .vdpa_vq_init.intr_index = cpu_to_le16(qid), in pds_vdpa_cmd_init_vq()
[all …]
/linux/drivers/gpu/drm/amd/amdgpu/
H A Datombios_crtc.c55 args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
56 args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - mode->crtc_vdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
57 args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
58 args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - mode->crtc_hdisplay) / 2); in amdgpu_atombios_crtc_overscan_setup()
65 …args.usOverscanLeft = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup()
66 …args.usOverscanRight = cpu_to_le16((adjusted_mode->crtc_hdisplay - (a2 / mode->crtc_vdisplay)) / 2… in amdgpu_atombios_crtc_overscan_setup()
68 … args.usOverscanTop = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / 2); in amdgpu_atombios_crtc_overscan_setup()
69 …args.usOverscanBottom = cpu_to_le16((adjusted_mode->crtc_vdisplay - (a1 / mode->crtc_hdisplay)) / … in amdgpu_atombios_crtc_overscan_setup()
74 args.usOverscanRight = cpu_to_le16(amdgpu_crtc->h_border); in amdgpu_atombios_crtc_overscan_setup()
75 args.usOverscanLeft = cpu_to_le16(amdgpu_crtc->h_border); in amdgpu_atombios_crtc_overscan_setup()
[all …]
/linux/drivers/net/ethernet/via/
H A Dvia-velocity.h64 #define RSR_DETAG cpu_to_le16(0x0080)
65 #define RSR_SNTAG cpu_to_le16(0x0040)
66 #define RSR_RXER cpu_to_le16(0x0020)
67 #define RSR_RL cpu_to_le16(0x0010)
68 #define RSR_CE cpu_to_le16(0x0008)
69 #define RSR_FAE cpu_to_le16(0x0004)
70 #define RSR_CRC cpu_to_le16(0x0002)
71 #define RSR_VIDM cpu_to_le16(0x0001)
77 #define RSR_RXOK cpu_to_le16(0x8000) // rx OK
78 #define RSR_PFT cpu_to_le16(0x4000) // Perfect filtering address match
[all …]

12345678910>>...44