Searched refs:cpu_to_be16 (Results 1 – 25 of 26) sorted by relevance
12
/arch/um/drivers/ |
D | vector_user.h | 37 #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/ |
D | of.h | 30 #define cpu_to_be16(x) swab16(x) macro 37 #define cpu_to_be16(x) (x) macro
|
D | libfdt_env.h | 21 #define cpu_to_fdt16(x) cpu_to_be16(x)
|
/arch/powerpc/platforms/powernv/ |
D | opal-core.c | 133 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()
|
D | opal-fadump.c | 182 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()
|
D | opal-power.c | 33 epow_classes = cpu_to_be16(OPAL_SYSEPOW_MAX); in detect_epow()
|
D | opal-lpc.c | 325 data = cpu_to_be16(data); in lpc_debug_write()
|
D | opal-prd.c | 259 msg.size = cpu_to_be16(sizeof(msg)); in opal_prd_release()
|
/arch/powerpc/kernel/ |
D | nvram_64.c | 363 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()
|
D | paca.c | 114 .size = cpu_to_be16(LPPACA_SIZE), in init_lppaca() 116 .slb_count = cpu_to_be16(64), in init_lppaca()
|
/arch/powerpc/platforms/pseries/ |
D | rtas-fadump.c | 71 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()
|
D | pci.c | 129 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()
|
D | eeh_pseries.c | 736 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()
|
D | papr_scm.c | 481 data_be = cpu_to_be16(data); in papr_scm_meta_set()
|
/arch/sh/kernel/ |
D | iomap.c | 55 __raw_writew(cpu_to_be16(val), addr); in iowrite16be()
|
/arch/arm64/include/asm/ |
D | io.h | 156 #define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force __u16)cpu_to_be16(v), p); })
|
D | kvm_emulate.h | 484 return cpu_to_be16(data & 0xffff); in vcpu_data_host_to_guest()
|
/arch/arm64/crypto/ |
D | aes-ce-ccm-glue.c | 145 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/ |
D | hv-24x7.c | 1267 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()
|
D | hv-gpci.c | 162 arg->params.secondary_index = cpu_to_be16(secondary_index); in single_gpci_request()
|
/arch/arc/include/asm/ |
D | io.h | 43 #define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force u16)cpu_to_be16(v), p); })
|
/arch/mips/boot/tools/ |
D | relocs.c | 141 #define cpu_to_be16(val) bswap_16(val) macro 156 #define cpu_to_be16(val) (val) macro
|
/arch/mips/include/asm/ |
D | io.h | 419 __raw_writew(cpu_to_be16((val)), (__force unsigned *)(addr)) in BUILDIO_MEM()
|
/arch/arm/include/asm/ |
D | io.h | 410 #define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force __u16)cpu_to_be16(v), p); })
|
/arch/powerpc/kvm/ |
D | book3s.c | 979 *(__be16 *)&buf = cpu_to_be16(val); in kvmppc_h_logical_ci_store()
|
12