Home
last modified time | relevance | path

Searched refs:cpu_to_be16 (Results 1 – 25 of 26) sorted by relevance

12

/arch/um/drivers/
Dvector_user.h37 #define GRE_MODE_CHECKSUM cpu_to_be16(8 << 12) /* checksum */
38 #define GRE_MODE_RESERVED cpu_to_be16(4 << 12) /* unused */
39 #define GRE_MODE_KEY cpu_to_be16(2 << 12) /* KEY present */
40 #define GRE_MODE_SEQUENCE cpu_to_be16(1 << 12) /* sequence */
42 #define GRE_IRB cpu_to_be16(0x6558)
/arch/powerpc/boot/
Dof.h30 #define cpu_to_be16(x) swab16(x) macro
37 #define cpu_to_be16(x) (x) macro
Dlibfdt_env.h21 #define cpu_to_fdt16(x) cpu_to_be16(x)
/arch/powerpc/platforms/powernv/
Dopal-core.c133 prstatus->common.pr_cursig = cpu_to_be16(sig); in fill_prstatus()
363 elf->e_type = cpu_to_be16(ET_CORE); in create_opalcore()
364 elf->e_machine = cpu_to_be16(ELF_ARCH); in create_opalcore()
371 elf->e_ehsize = cpu_to_be16(sizeof(Elf64_Ehdr)); in create_opalcore()
372 elf->e_phentsize = cpu_to_be16(sizeof(Elf64_Phdr)); in create_opalcore()
417 elf->e_phnum = cpu_to_be16(count); in create_opalcore()
Dopal-fadump.c182 fdm->region_cnt = cpu_to_be16(0); in opal_fadump_init_metadata()
183 fdm->registered_regions = cpu_to_be16(0); in opal_fadump_init_metadata()
206 opal_fdm->region_cnt = cpu_to_be16(reg_cnt); in opal_fadump_init_mem_struct()
290 opal_fdm->registered_regions = cpu_to_be16(registered_regs); in opal_fadump_register()
339 opal_fdm->registered_regions = cpu_to_be16(0); in opal_fadump_unregister()
Dopal-power.c33 epow_classes = cpu_to_be16(OPAL_SYSEPOW_MAX); in detect_epow()
Dopal-lpc.c325 data = cpu_to_be16(data); in lpc_debug_write()
Dopal-prd.c259 msg.size = cpu_to_be16(sizeof(msg)); in opal_prd_release()
/arch/powerpc/kernel/
Dnvram_64.c363 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in zip_oops()
364 oops_hdr->report_length = cpu_to_be16(zipped_len); in zip_oops()
398 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in nvram_pstore_write()
399 oops_hdr->report_length = cpu_to_be16(record->size); in nvram_pstore_write()
695 oops_hdr->version = cpu_to_be16(OOPS_HDR_VERSION); in oops_to_nvram()
696 oops_hdr->report_length = cpu_to_be16(text_len); in oops_to_nvram()
731 phead.length = cpu_to_be16(phead.length); in nvram_write_header()
Dpaca.c114 .size = cpu_to_be16(LPPACA_SIZE), in init_lppaca()
116 .slb_count = cpu_to_be16(64), in init_lppaca()
/arch/powerpc/platforms/pseries/
Drtas-fadump.c71 fdm.header.dump_num_sections = cpu_to_be16(3); in rtas_fadump_init_mem_struct()
94 cpu_to_be16(RTAS_FADUMP_CPU_STATE_DATA); in rtas_fadump_init_mem_struct()
104 cpu_to_be16(RTAS_FADUMP_HPTE_REGION); in rtas_fadump_init_mem_struct()
114 cpu_to_be16(RTAS_FADUMP_REAL_MODE_REGION); in rtas_fadump_init_mem_struct()
Dpci.c129 cpu_to_be16((pci_iov_virtfn_bus(pdev, vf_index) in pseries_associate_pes()
133 cpu_to_be16(IODA_INVALID_PE); in pseries_associate_pes()
Deeh_pseries.c736 cpu_to_be16(pdn->pe_num_map[vf_index]); in pseries_call_allow_unfreeze()
759 vf_pe_array[0] = cpu_to_be16(vf_pe_num); in pseries_call_allow_unfreeze()
Dpapr_scm.c481 data_be = cpu_to_be16(data); in papr_scm_meta_set()
/arch/sh/kernel/
Diomap.c55 __raw_writew(cpu_to_be16(val), addr); in iowrite16be()
/arch/arm64/include/asm/
Dio.h156 #define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force __u16)cpu_to_be16(v), p); })
Dkvm_emulate.h484 return cpu_to_be16(data & 0xffff); in vcpu_data_host_to_guest()
/arch/arm64/crypto/
Daes-ce-ccm-glue.c145 ltag.l = cpu_to_be16(len); in ccm_calculate_auth_mac()
148 ltag.l = cpu_to_be16(0xfffe); in ccm_calculate_auth_mac()
/arch/powerpc/perf/
Dhv-24x7.c1267 req->data_size = cpu_to_be16(8); in add_event_to_24x7_request()
1269 req->starting_lpar_ix = cpu_to_be16(event_get_lpar(event)); in add_event_to_24x7_request()
1270 req->max_num_lpars = cpu_to_be16(1); in add_event_to_24x7_request()
1271 req->starting_ix = cpu_to_be16(idx); in add_event_to_24x7_request()
1272 req->max_ix = cpu_to_be16(1); in add_event_to_24x7_request()
Dhv-gpci.c162 arg->params.secondary_index = cpu_to_be16(secondary_index); in single_gpci_request()
/arch/arc/include/asm/
Dio.h43 #define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force u16)cpu_to_be16(v), p); })
/arch/mips/boot/tools/
Drelocs.c141 #define cpu_to_be16(val) bswap_16(val) macro
156 #define cpu_to_be16(val) (val) macro
/arch/mips/include/asm/
Dio.h419 __raw_writew(cpu_to_be16((val)), (__force unsigned *)(addr)) in BUILDIO_MEM()
/arch/arm/include/asm/
Dio.h410 #define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force __u16)cpu_to_be16(v), p); })
/arch/powerpc/kvm/
Dbook3s.c979 *(__be16 *)&buf = cpu_to_be16(val); in kvmppc_h_logical_ci_store()

12