Home
last modified time | relevance | path

Searched refs:cpu_to_be64 (Results 1 – 25 of 520) sorted by relevance

12345678910>>...21

/openbmc/linux/arch/powerpc/include/asm/book3s/64/
H A Dpgtable.h412 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_READ)); in pte_read()
478 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_EXEC)); in pte_exec()
503 cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE); in pte_protnone()
510 cpu_to_be64(_PAGE_PRESENT | _PAGE_PTE); in pte_hw_valid()
525 cpu_to_be64(_PAGE_INVALID | _PAGE_PTE); in pte_present()
650 u64 mask = cpu_to_be64(_PAGE_DEVMAP | _PAGE_PTE); in pte_devmap()
659 cpu_to_be64(pgprot_val(newprot))); in pte_modify()
826 if (((pte_v & cpu_to_be64(_PAGE_CACHE_CTL)) == cpu_to_be64(_PAGE_TOLERANT)) || in pte_ci()
827 ((pte_v & cpu_to_be64(_PAGE_CACHE_CTL)) == cpu_to_be64(_PAGE_NON_IDEMPOTENT))) in pte_ci()
874 cpu_to_be64(_PAGE_INVALID)) in pmd_is_serializing()
[all …]
H A Dhash.h137 return (((pmd_raw(pmd_a) ^ pmd_raw(pmd_b)) & ~cpu_to_be64(_PAGE_HPTEFLAGS)) == 0); in hash__pmd_same()
147 return (((pud_raw(pud_a) ^ pud_raw(pud_b)) & ~cpu_to_be64(_PAGE_HPTEFLAGS)) == 0); in hash__pud_same()
182 : "r" (ptep), "r" (cpu_to_be64(clr)), "m" (*ptep), in hash__pte_update()
183 "r" (cpu_to_be64(H_PAGE_BUSY)), "r" (cpu_to_be64(set)) in hash__pte_update()
203 mask = cpu_to_be64(_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_READ | _PAGE_WRITE | in hash__ptep_set_access_flags()
216 :"r" (val), "r" (ptep), "m" (*ptep), "r" (cpu_to_be64(H_PAGE_BUSY)) in hash__ptep_set_access_flags()
222 return (((pte_raw(pte_a) ^ pte_raw(pte_b)) & ~cpu_to_be64(_PAGE_HPTEFLAGS)) == 0); in hash__pte_same()
H A Dpgtable-64k.h22 return !!(pmd_raw(pmd) & cpu_to_be64(_PAGE_PTE)); in pmd_huge()
30 return !!(pud_raw(pud) & cpu_to_be64(_PAGE_PTE)); in pud_huge()
H A Dpgtable-4k.h15 return !!(pmd_raw(pmd) & cpu_to_be64(_PAGE_PTE)); in pmd_huge()
25 return !!(pud_raw(pud) & cpu_to_be64(_PAGE_PTE)); in pud_huge()
/openbmc/qemu/target/s390x/
H A Dhelper.c129 lowcore->restart_old_psw.addr = cpu_to_be64(env->psw.addr); in do_restart_interrupt()
219 sa->fprs[i] = cpu_to_be64(*get_freg(&cpu->env, i)); in s390_store_status()
222 sa->grs[i] = cpu_to_be64(cpu->env.regs[i]); in s390_store_status()
224 sa->psw.addr = cpu_to_be64(cpu->env.psw.addr); in s390_store_status()
225 sa->psw.mask = cpu_to_be64(s390_cpu_get_psw_mask(&cpu->env)); in s390_store_status()
229 sa->cputm = cpu_to_be64(cpu->env.cputm); in s390_store_status()
230 sa->ckc = cpu_to_be64(cpu->env.ckc >> 8); in s390_store_status()
235 sa->crs[i] = cpu_to_be64(cpu->env.cregs[i]); in s390_store_status()
269 sa->vregs[i][0] = cpu_to_be64(cpu->env.vregs[i][0]); in s390_store_adtl_status()
270 sa->vregs[i][1] = cpu_to_be64(cpu->env.vregs[i][1]); in s390_store_adtl_status()
[all …]
H A Darch_dump.c99 regs->psw[0] = cpu_to_be64(cpu->env.psw.mask); in s390x_write_elf64_prstatus()
100 regs->psw[1] = cpu_to_be64(cpu->env.psw.addr); in s390x_write_elf64_prstatus()
103 regs->gprs[i] = cpu_to_be64(cpu->env.regs[i]); in s390x_write_elf64_prstatus()
116 note->contents.fpregset.fprs[i] = cpu_to_be64(*get_freg(cs, i)); in s390x_write_elf64_fpregset()
126 note->contents.vregslo.vregs[i] = cpu_to_be64(cpu->env.vregs[i][1]); in s390x_write_elf64_vregslo()
139 temp_vregshi->vregs[i][0] = cpu_to_be64(cpu->env.vregs[i + 16][0]); in s390x_write_elf64_vregshi()
140 temp_vregshi->vregs[i][1] = cpu_to_be64(cpu->env.vregs[i + 16][1]); in s390x_write_elf64_vregshi()
150 note->contents.gscb.gsregs[i] = cpu_to_be64(cpu->env.gscb[i]); in s390x_write_elf64_gscb()
157 note->contents.timer = cpu_to_be64((uint64_t)(cpu->env.cputm)); in s390x_write_elf64_timer()
163 note->contents.todcmp = cpu_to_be64((uint64_t)(cpu->env.ckc)); in s390x_write_elf64_todcmp()
[all …]
/openbmc/linux/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_vema_iface.c100 cntrs->tx_errors = cpu_to_be64(vstats.netstats.tx_errors); in opa_vnic_get_summary_counters()
101 cntrs->rx_errors = cpu_to_be64(vstats.netstats.rx_errors); in opa_vnic_get_summary_counters()
104 cntrs->tx_bytes = cpu_to_be64(vstats.netstats.tx_bytes); in opa_vnic_get_summary_counters()
105 cntrs->rx_bytes = cpu_to_be64(vstats.netstats.rx_bytes); in opa_vnic_get_summary_counters()
113 *dst = cpu_to_be64(*src); in opa_vnic_get_summary_counters()
139 cntrs->tx_errors = cpu_to_be64(vstats.netstats.tx_errors); in opa_vnic_get_error_counters()
141 cntrs->tx_dlid_zero = cpu_to_be64(vstats.tx_dlid_zero); in opa_vnic_get_error_counters()
142 cntrs->tx_drop_state = cpu_to_be64(vstats.tx_drop_state); in opa_vnic_get_error_counters()
147 cntrs->rx_runt = cpu_to_be64(vstats.rx_runt); in opa_vnic_get_error_counters()
148 cntrs->rx_oversize = cpu_to_be64(vstats.rx_oversize); in opa_vnic_get_error_counters()
[all …]
/openbmc/qemu/target/s390x/tcg/
H A Dexcp_helper.c268 lowcore->per_address = cpu_to_be64(env->per_address); in do_program_interrupt()
280 lowcore->program_old_psw.addr = cpu_to_be64(env->psw.addr); in do_program_interrupt()
283 lowcore->per_breaking_event_addr = cpu_to_be64(env->gbea); in do_program_interrupt()
376 lowcore->external_old_psw.addr = cpu_to_be64(env->psw.addr); in do_ext_interrupt()
401 lowcore->io_old_psw.addr = cpu_to_be64(env->psw.addr); in do_io_interrupt()
433 sa->vregs[i][0] = cpu_to_be64(env->vregs[i][0]); in mchk_store_vregs()
434 sa->vregs[i][1] = cpu_to_be64(env->vregs[i][1]); in mchk_store_vregs()
480 lowcore->cpu_timer_save_area = cpu_to_be64(env->cputm); in do_mchk_interrupt()
481 lowcore->clock_comp_save_area = cpu_to_be64(env->ckc >> 8); in do_mchk_interrupt()
483 lowcore->mcic = cpu_to_be64(mcic); in do_mchk_interrupt()
[all …]
/openbmc/linux/arch/powerpc/include/asm/
H A Dpgtable-be-types.h9 #define __pte(x) ((pte_t) { cpu_to_be64(x) })
24 #define __pmd(x) ((pmd_t) { cpu_to_be64(x) })
38 #define __pud(x) ((pud_t) { cpu_to_be64(x) })
54 #define __pgd(x) ((pgd_t) { cpu_to_be64(x) })
106 #define __hugepd(x) ((hugepd_t) { cpu_to_be64(x) })
/openbmc/linux/drivers/net/ethernet/google/gve/
H A Dgve_adminq.c516 cpu_to_be64(tx->q_resources_bus), in gve_adminq_create_tx_queue()
517 .tx_ring_addr = cpu_to_be64(tx->bus), in gve_adminq_create_tx_queue()
542 cpu_to_be64(tx->complq_bus_dqo); in gve_adminq_create_tx_queue()
582 cpu_to_be64(rx->desc.bus), in gve_adminq_create_rx_queue()
584 cpu_to_be64(rx->data.data_bus), in gve_adminq_create_rx_queue()
604 cpu_to_be64(rx->dqo.complq.bus); in gve_adminq_create_rx_queue()
606 cpu_to_be64(rx->dqo.bufq.bus); in gve_adminq_create_rx_queue()
787 cpu_to_be64(descriptor_bus); in gve_adminq_describe_device()
929 .parameter_value = cpu_to_be64(mtu), in gve_adminq_set_mtu()
945 .interval = cpu_to_be64(interval), in gve_adminq_report_stats()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/
H A Drx.c60 .ptag = cpu_to_be64(addr | MLX5_EN_WR), in mlx5e_xsk_alloc_rx_mpwqe()
71 .va = cpu_to_be64(addr), in mlx5e_xsk_alloc_rx_mpwqe()
84 .va = cpu_to_be64(addr), in mlx5e_xsk_alloc_rx_mpwqe()
88 .va = cpu_to_be64(addr + mapping_size), in mlx5e_xsk_alloc_rx_mpwqe()
92 .va = cpu_to_be64(addr + mapping_size * 2), in mlx5e_xsk_alloc_rx_mpwqe()
96 .va = cpu_to_be64(rq->wqe_overflow.addr), in mlx5e_xsk_alloc_rx_mpwqe()
111 .va = cpu_to_be64(addr), in mlx5e_xsk_alloc_rx_mpwqe()
116 .va = cpu_to_be64(rq->wqe_overflow.addr), in mlx5e_xsk_alloc_rx_mpwqe()
191 wqe->data[0].addr = cpu_to_be64(addr + rq->buff.headroom); in mlx5e_xsk_alloc_rx_wqes_batched()
218 wqe->data[0].addr = cpu_to_be64(addr + rq->buff.headroom); in mlx5e_xsk_alloc_rx_wqes()
/openbmc/linux/include/crypto/
H A Dgf128mul.h191 r->b = cpu_to_be64((b >> 1) | (a << 63)); in gf128mul_x_lle()
192 r->a = cpu_to_be64((a >> 1) ^ _tt); in gf128mul_x_lle()
203 r->a = cpu_to_be64((a << 1) | (b >> 63)); in gf128mul_x_bbe()
204 r->b = cpu_to_be64((b << 1) ^ _tt); in gf128mul_x_bbe()
/openbmc/linux/include/net/
H A Daddrconf.h462 return ((p[0] ^ cpu_to_be64(0xff02000000000000UL)) | (p[1] ^ cpu_to_be64(1))) == 0UL; in ipv6_addr_is_ll_all_nodes()
474 return ((p[0] ^ cpu_to_be64(0xff02000000000000UL)) | (p[1] ^ cpu_to_be64(2))) == 0UL; in ipv6_addr_is_ll_all_routers()
491 return ((p[0] ^ cpu_to_be64(0xff02000000000000UL)) | in ipv6_addr_is_solict_mult()
492 ((p[1] ^ cpu_to_be64(0x00000001ff000000UL)) & in ipv6_addr_is_solict_mult()
493 cpu_to_be64(0xffffffffff000000UL))) == 0UL; in ipv6_addr_is_solict_mult()
507 return ((p[0] ^ cpu_to_be64(0xff02000000000000UL)) | in ipv6_addr_is_all_snoopers()
508 (p[1] ^ cpu_to_be64(0x6a))) == 0UL; in ipv6_addr_is_all_snoopers()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-opal.c90 req.buffer_ra = cpu_to_be64(__pa(msgs[0].buf)); in i2c_opal_master_xfer()
101 req.buffer_ra = cpu_to_be64(__pa(msgs[1].buf)); in i2c_opal_master_xfer()
126 req.buffer_ra = cpu_to_be64(__pa(&data->byte)); in i2c_opal_smbus_xfer()
134 req.buffer_ra = cpu_to_be64(__pa(&data->byte)); in i2c_opal_smbus_xfer()
146 req.buffer_ra = cpu_to_be64(__pa(local)); in i2c_opal_smbus_xfer()
154 req.buffer_ra = cpu_to_be64(__pa(&data->block[1])); in i2c_opal_smbus_xfer()
/openbmc/linux/arch/mips/cavium-octeon/crypto/
H A Docteon-crypto.h36 : [rt] "d" (cpu_to_be64(value))); \
62 : [rt] "d" (cpu_to_be64(value))); \
73 : [rt] "d" (cpu_to_be64(value))); \
/openbmc/linux/include/rdma/
H A Dib_cm.h327 #define IB_SERVICE_ID_AGN_MASK cpu_to_be64(0xFF00000000000000ULL)
328 #define IB_CM_ASSIGN_SERVICE_ID cpu_to_be64(0x0200000000000000ULL)
329 #define IB_CMA_SERVICE_ID cpu_to_be64(0x0000000001000000ULL)
330 #define IB_CMA_SERVICE_ID_MASK cpu_to_be64(0xFFFFFFFFFF000000ULL)
331 #define IB_SDP_SERVICE_ID cpu_to_be64(0x0000000000010000ULL)
332 #define IB_SDP_SERVICE_ID_MASK cpu_to_be64(0xFFFFFFFFFFFF0000ULL)
/openbmc/linux/fs/omfs/
H A Dfile.c24 oe->e_next = ~cpu_to_be64(0ULL); in omfs_make_empty_table()
27 oe->e_entry[0].e_cluster = ~cpu_to_be64(0ULL); in omfs_make_empty_table()
28 oe->e_entry[0].e_blocks = ~cpu_to_be64(0ULL); in omfs_make_empty_table()
150 terminator->e_blocks = ~(cpu_to_be64( in omfs_grow_extent()
172 entry->e_cluster = cpu_to_be64(new_block); in omfs_grow_extent()
173 entry->e_blocks = cpu_to_be64((u64) new_count); in omfs_grow_extent()
175 terminator->e_blocks = ~(cpu_to_be64( in omfs_grow_extent()
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dopal-core.c146 bufp[idx++] = cpu_to_be64(AT_ENTRY); in auxv_to_elf64_notes()
147 bufp[idx++] = cpu_to_be64(opal_boot_entry); in auxv_to_elf64_notes()
150 bufp[idx++] = cpu_to_be64(AT_NULL); in auxv_to_elf64_notes()
369 elf->e_phoff = cpu_to_be64(sizeof(Elf64_Ehdr)); in create_opalcore()
386 phdr->p_offset = cpu_to_be64(hdr_size); in create_opalcore()
387 phdr->p_filesz = phdr->p_memsz = cpu_to_be64(cpu_notes_size); in create_opalcore()
408 phdr->p_paddr = cpu_to_be64(paddr); in create_opalcore()
409 phdr->p_vaddr = cpu_to_be64(opal_base_addr + paddr); in create_opalcore()
411 cpu_to_be64(oc_conf->ptload_size[i]); in create_opalcore()
412 phdr->p_offset = cpu_to_be64(opalcore_off); in create_opalcore()
/openbmc/linux/crypto/
H A Dkeywrap.c164 block.A ^= cpu_to_be64(t); in crypto_kw_decrypt()
185 if (block.A != cpu_to_be64(0xa6a6a6a6a6a6a6a6ULL)) in crypto_kw_decrypt()
215 block.A = cpu_to_be64(0xa6a6a6a6a6a6a6a6ULL); in crypto_kw_encrypt()
241 block.A ^= cpu_to_be64(t); in crypto_kw_encrypt()
/openbmc/linux/drivers/misc/genwqe/
H A Dcard_dev.c579 *(__be64 *)&req->__asiv[8] = cpu_to_be64(tocopy); in do_flash_update()
580 *(__be64 *)&req->__asiv[16] = cpu_to_be64(flash); in do_flash_update()
590 *(__be64 *)&req->asiv[0] = cpu_to_be64(dma_addr); in do_flash_update()
593 *(__be64 *)&req->asiv[16] = cpu_to_be64(flash); in do_flash_update()
705 *(__be64 *)&cmd->__asiv[8] = cpu_to_be64(tocopy); in do_flash_read()
706 *(__be64 *)&cmd->__asiv[16] = cpu_to_be64(flash); in do_flash_read()
715 *(__be64 *)&cmd->asiv[16] = cpu_to_be64(flash); in do_flash_read()
899 cpu_to_be64(0x0); in ddcb_cmd_fixups()
911 cpu_to_be64(d_addr); in ddcb_cmd_fixups()
931 cpu_to_be64(0x0); in ddcb_cmd_fixups()
[all …]
/openbmc/linux/drivers/crypto/aspeed/
H A Daspeed-hace-hash.c49 cpu_to_be64(SHA384_H0), cpu_to_be64(SHA384_H1),
50 cpu_to_be64(SHA384_H2), cpu_to_be64(SHA384_H3),
51 cpu_to_be64(SHA384_H4), cpu_to_be64(SHA384_H5),
52 cpu_to_be64(SHA384_H6), cpu_to_be64(SHA384_H7)
56 cpu_to_be64(SHA512_H0), cpu_to_be64(SHA512_H1),
57 cpu_to_be64(SHA512_H2), cpu_to_be64(SHA512_H3),
58 cpu_to_be64(SHA512_H4), cpu_to_be64(SHA512_H5),
59 cpu_to_be64(SHA512_H6), cpu_to_be64(SHA512_H7)
89 bits[0] = cpu_to_be64(rctx->digcnt[0] << 3); in aspeed_ahash_fill_padding()
98 bits[1] = cpu_to_be64(rctx->digcnt[0] << 3); in aspeed_ahash_fill_padding()
[all …]
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_sb.c698 to->sb_uquotino = cpu_to_be64(from->sb_uquotino); in xfs_sb_quota_to_disk()
749 to->sb_gquotino = cpu_to_be64(NULLFSINO); in xfs_sb_quota_to_disk()
764 to->sb_dblocks = cpu_to_be64(from->sb_dblocks); in xfs_sb_to_disk()
765 to->sb_rblocks = cpu_to_be64(from->sb_rblocks); in xfs_sb_to_disk()
766 to->sb_rextents = cpu_to_be64(from->sb_rextents); in xfs_sb_to_disk()
769 to->sb_rootino = cpu_to_be64(from->sb_rootino); in xfs_sb_to_disk()
770 to->sb_rbmino = cpu_to_be64(from->sb_rbmino); in xfs_sb_to_disk()
771 to->sb_rsumino = cpu_to_be64(from->sb_rsumino); in xfs_sb_to_disk()
790 to->sb_icount = cpu_to_be64(from->sb_icount); in xfs_sb_to_disk()
791 to->sb_ifree = cpu_to_be64(from->sb_ifree); in xfs_sb_to_disk()
[all …]
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Dhvconsole.c66 cpu_to_be64(lbuf[0]), in hvc_put_chars()
67 cpu_to_be64(lbuf[1])); in hvc_put_chars()
H A Drtas-fadump.c98 cpu_to_be64(fadump_conf->cpu_state_data_size); in rtas_fadump_init_mem_struct()
99 fdm.cpu_state_data.destination_address = cpu_to_be64(addr); in rtas_fadump_init_mem_struct()
108 cpu_to_be64(fadump_conf->hpte_region_size); in rtas_fadump_init_mem_struct()
109 fdm.hpte_region.destination_address = cpu_to_be64(addr); in rtas_fadump_init_mem_struct()
122 fdm.rmr_region.source_address = cpu_to_be64(0); in rtas_fadump_init_mem_struct()
123 fdm.rmr_region.source_len = cpu_to_be64(fadump_conf->boot_memory_size); in rtas_fadump_init_mem_struct()
124 fdm.rmr_region.destination_address = cpu_to_be64(addr); in rtas_fadump_init_mem_struct()
/openbmc/linux/fs/xfs/
H A Dxfs_inode_item_recover.c135 return cpu_to_be64(its); in xfs_log_dinode_to_disk_ts()
158 to->di_big_nextents = cpu_to_be64(from->di_big_nextents); in xfs_log_dinode_to_disk_iext_counters()
189 to->di_size = cpu_to_be64(from->di_size); in xfs_log_dinode_to_disk()
190 to->di_nblocks = cpu_to_be64(from->di_nblocks); in xfs_log_dinode_to_disk()
200 to->di_changecount = cpu_to_be64(from->di_changecount); in xfs_log_dinode_to_disk()
203 to->di_flags2 = cpu_to_be64(from->di_flags2); in xfs_log_dinode_to_disk()
205 to->di_ino = cpu_to_be64(from->di_ino); in xfs_log_dinode_to_disk()
206 to->di_lsn = cpu_to_be64(lsn); in xfs_log_dinode_to_disk()

12345678910>>...21