Home
last modified time | relevance | path

Searched refs:be16_to_cpu (Results 1 – 25 of 40) sorted by relevance

12

/arch/powerpc/platforms/powernv/
Dopal-fadump.c63 if (be16_to_cpu(opal_fdm_active->registered_regions) == 0) in opal_fadump_dt_scan()
98 pr_debug("Boot memory regions count: %d\n", be16_to_cpu(fdm->region_cnt)); in opal_fadump_update_config()
129 for (i = 0; i < be16_to_cpu(fdm->region_cnt); i++) { in opal_fadump_get_config()
158 if (be16_to_cpu(fdm->region_cnt) > be16_to_cpu(fdm->registered_regions)) { in opal_fadump_get_config()
161 i = be16_to_cpu(fdm->registered_regions); in opal_fadump_get_config()
162 while (i < be16_to_cpu(fdm->region_cnt)) { in opal_fadump_get_config()
174 fadump_conf->boot_mem_regs_cnt = be16_to_cpu(fdm->region_cnt); in opal_fadump_get_config()
197 reg_cnt = be16_to_cpu(opal_fdm->region_cnt); in opal_fadump_init_mem_struct()
279 registered_regs = be16_to_cpu(opal_fdm->registered_regions); in opal_fadump_register()
280 for (i = 0; i < be16_to_cpu(opal_fdm->region_cnt); i++) { in opal_fadump_register()
[all …]
Dopal-power.c41 for (i = 0; i < be16_to_cpu(epow_classes); i++) { in detect_epow()
42 epow = be16_to_cpu(opal_epow_status[i]); in detect_epow()
Deeh-powernv.c549 if (be16_to_cpu(pcierr) != OPAL_EEH_PHB_ERROR) { in pnv_eeh_get_phb_state()
1296 switch (be16_to_cpu(data->type)) { in pnv_eeh_get_and_dump_hub_diag()
1443 if (be16_to_cpu(err_type) == OPAL_EEH_NO_ERROR || in pnv_eeh_next_error()
1444 be16_to_cpu(severity) == OPAL_EEH_SEV_NO_ERROR) { in pnv_eeh_next_error()
1456 __func__, be16_to_cpu(err_type), in pnv_eeh_next_error()
1457 be16_to_cpu(severity), be64_to_cpu(frozen_pe_no), in pnv_eeh_next_error()
1459 switch (be16_to_cpu(err_type)) { in pnv_eeh_next_error()
1461 if (be16_to_cpu(severity) == OPAL_EEH_SEV_IOC_DEAD) { in pnv_eeh_next_error()
1464 } else if (be16_to_cpu(severity) == OPAL_EEH_SEV_INF) { in pnv_eeh_next_error()
1473 if (be16_to_cpu(severity) == OPAL_EEH_SEV_PHB_DEAD) { in pnv_eeh_next_error()
[all …]
Dopal-prd.c196 size = be16_to_cpu(item->msg.header.size); in opal_prd_read()
238 size = be16_to_cpu(hdr.size); in opal_prd_write()
355 msg_size = be16_to_cpu(hdr->size); in opal_prd_msg_notifier()
/arch/powerpc/boot/
Dof.h31 #define be16_to_cpu(x) swab16(x) macro
38 #define be16_to_cpu(x) (x) macro
Dlibfdt_env.h20 #define fdt16_to_cpu(x) be16_to_cpu(x)
/arch/m68k/mvme16x/
Dconfig.c59 uint16_t tag = be16_to_cpu(bi->tag); in mvme16x_parse_bootinfo()
85 sprintf(model, "Motorola MVME%x%s", be16_to_cpu(p->brdno), suf); in mvme16x_get_model()
91 uint16_t brdno = be16_to_cpu(mvme_bdid.brdno); in mvme16x_get_hardware_list()
269 uint16_t brdno = be16_to_cpu(p->brdno); in config_mvme16x()
322 uint16_t brdno = be16_to_cpu(mvme_bdid.brdno); in mvme16x_abort_int()
389 uint16_t brdno = be16_to_cpu(mvme_bdid.brdno); in mvme16x_sched_init()
/arch/m68k/kernel/
Dbootinfo_proc.c39 while (be16_to_cpu(bi->tag) != BI_LAST) { in save_bootinfo()
40 uint16_t n = be16_to_cpu(bi->size); in save_bootinfo()
Dsetup_mm.c142 while ((tag = be16_to_cpu(record->tag)) != BI_LAST) { in m68k_parse_bootinfo()
145 uint16_t size = be16_to_cpu(record->size); in m68k_parse_bootinfo()
/arch/powerpc/perf/
Dhv-24x7.c255 *len = be16_to_cpu(ev->event_name_len) - 2; in event_name()
261 unsigned nl = be16_to_cpu(ev->event_name_len); in event_desc()
264 *len = be16_to_cpu(*desc_len) - 2; in event_desc()
270 unsigned nl = be16_to_cpu(ev->event_name_len); in event_long_desc()
272 unsigned desc_len = be16_to_cpu(*desc_len_); in event_long_desc()
275 *len = be16_to_cpu(*long_desc_len) - 2; in event_long_desc()
300 unsigned nl = be16_to_cpu(ev->event_name_len); in event_end()
316 dl = be16_to_cpu(*dl_); in event_end()
331 ldl = be16_to_cpu(*ldl_); in event_end()
429 be16_to_cpu(event->event_counter_offs) + in event_fmt()
[all …]
/arch/powerpc/sysdev/xics/
Dics-opal.c115 server = be16_to_cpu(oserver); in ics_opal_set_affinity()
195 return ics_opal_unmangle_server(be16_to_cpu(server)); in ics_opal_get_server()
/arch/powerpc/platforms/pseries/
Dvas.c515 caps->max_lpar_creds = be16_to_cpu(hv_caps->max_lpar_creds); in get_vas_capabilities()
516 caps->max_win_creds = be16_to_cpu(hv_caps->max_win_creds); in get_vas_capabilities()
518 be16_to_cpu(hv_caps->target_lpar_creds)); in get_vas_capabilities()
520 caps->def_lpar_creds = be16_to_cpu(hv_caps->def_lpar_creds); in get_vas_capabilities()
/arch/powerpc/include/asm/
Drtas.h206 return be16_to_cpu(sect->id); in pseries_errorlog_id()
212 return be16_to_cpu(sect->length); in pseries_errorlog_length()
/arch/parisc/lib/
Dchecksum.c46 result = be16_to_cpu(*buff); in do_csum()
/arch/m68k/mvme147/
Dconfig.c50 uint16_t tag = be16_to_cpu(bi->tag); in mvme147_parse_bootinfo()
/arch/sh/kernel/
Diomap.c25 return be16_to_cpu(__raw_readw(addr)); in ioread16be()
/arch/m68k/amiga/
Dconfig.c147 switch (be16_to_cpu(record->tag)) { in amiga_parse_bootinfo()
178 dev->slotaddr = be16_to_cpu(cd->cd_SlotAddr); in amiga_parse_bootinfo()
179 dev->slotsize = be16_to_cpu(cd->cd_SlotSize); in amiga_parse_bootinfo()
Dplatform.c72 if (be16_to_cpu(rom->er_Manufacturer) == ZORRO_MANUF(id) && in z_dev_present()
/arch/powerpc/kernel/
Dnvram_64.c505 if (be16_to_cpu(oops_hdr->version) < OOPS_HDR_VERSION) { in nvram_pstore_read()
508 length = be16_to_cpu(oops_hdr->version); in nvram_pstore_read()
513 length = be16_to_cpu(oops_hdr->report_length); in nvram_pstore_read()
1017 phead.length = be16_to_cpu(phead.length); in nvram_scan_partitions()
/arch/arm64/include/asm/
Dio.h152 #define ioread16be(p) ({ __u16 __v = be16_to_cpu((__force __be16)__raw_readw(p)); __iormb(__v); __…
/arch/m68k/apollo/
Dconfig.c51 switch (be16_to_cpu(record->tag)) { in apollo_parse_bootinfo()
/arch/mips/boot/tools/
Drelocs.c134 #define be16_to_cpu(val) bswap_16(val) macro
149 #define be16_to_cpu(val) (val) macro
166 return be16_to_cpu(val); in elf16_to_cpu()
/arch/m68k/hp300/
Dconfig.c78 switch (be16_to_cpu(record->tag)) { in hp300_parse_bootinfo()
/arch/m68k/bvme6000/
Dconfig.c49 if (be16_to_cpu(bi->tag) == BI_VME_TYPE) in bvme6000_parse_bootinfo()
/arch/arc/include/asm/
Dio.h40 #define ioread16be(p) ({ u16 __v = be16_to_cpu((__force __be16)__raw_readw(p)); __iormb(); __v; })

12