| /linux/arch/powerpc/include/asm/book3s/64/ |
| H A D | pgtable.h | 268 return !!(pmd_raw(pmd) & cpu_to_be64(_PAGE_PTE)); in pmd_leaf() 274 return !!(pud_raw(pud) & cpu_to_be64(_PAGE_PTE)); in pud_leaf() 355 if ((pte_raw(*ptep) & cpu_to_be64(_PAGE_ACCESSED | H_PAGE_HASHPTE)) == 0) in __ptep_test_and_clear_young() 391 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_WRITE)); in pte_write() 396 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_READ)); in pte_read() 447 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_DIRTY)); in pte_dirty() 452 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_ACCESSED)); in pte_young() 457 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_SPECIAL)); in pte_special() 462 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_EXEC)); in pte_exec() 469 return !!(pte_raw(pte) & cpu_to_be64(_PAGE_SOFT_DIRTY)); in pte_soft_dirty() [all …]
|
| H A D | hash.h | 138 return (((pmd_raw(pmd_a) ^ pmd_raw(pmd_b)) & ~cpu_to_be64(_PAGE_HPTEFLAGS)) == 0); in hash__pmd_same() 148 return (((pud_raw(pud_a) ^ pud_raw(pud_b)) & ~cpu_to_be64(_PAGE_HPTEFLAGS)) == 0); in hash__pud_same() 179 : "r" (ptep), "r" (cpu_to_be64(clr)), "m" (*ptep), in hash__pte_update_one() 180 "r" (cpu_to_be64(H_PAGE_BUSY)), "r" (cpu_to_be64(set)) in hash__pte_update_one() 229 mask = cpu_to_be64(_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_READ | _PAGE_WRITE | in hash__ptep_set_access_flags() 242 :"r" (val), "r" (ptep), "m" (*ptep), "r" (cpu_to_be64(H_PAGE_BUSY)) in hash__ptep_set_access_flags() 248 return (((pte_raw(pte_a) ^ pte_raw(pte_b)) & ~cpu_to_be64(_PAGE_HPTEFLAGS)) == 0); in hash__pte_same()
|
| /linux/drivers/infiniband/ulp/opa_vnic/ |
| H A D | opa_vnic_vema_iface.c | 100 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() 102 cntrs->tx_packets = cpu_to_be64(vstats.netstats.tx_packets); in opa_vnic_get_summary_counters() 103 cntrs->rx_packets = cpu_to_be64(vstats.netstats.rx_packets); 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() 140 cntrs->rx_errors = cpu_to_be64(vstats.netstats.rx_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() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
| H A D | rx.c | 60 .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()
|
| /linux/arch/powerpc/include/asm/ |
| H A D | pgtable-be-types.h | 9 #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) })
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_sb.c | 923 to->sb_uquotino = cpu_to_be64(0); in xfs_sb_quota_to_disk() 924 to->sb_gquotino = cpu_to_be64(0); in xfs_sb_quota_to_disk() 925 to->sb_pquotino = cpu_to_be64(0); in xfs_sb_quota_to_disk() 929 to->sb_uquotino = cpu_to_be64(from->sb_uquotino); in xfs_sb_quota_to_disk() 937 to->sb_gquotino = cpu_to_be64(from->sb_gquotino); in xfs_sb_quota_to_disk() 938 to->sb_pquotino = cpu_to_be64(from->sb_pquotino); in xfs_sb_quota_to_disk() 968 to->sb_gquotino = cpu_to_be64(from->sb_gquotino); in xfs_sb_quota_to_disk() 970 to->sb_gquotino = cpu_to_be64(from->sb_pquotino); in xfs_sb_quota_to_disk() 980 to->sb_gquotino = cpu_to_be64(NULLFSINO); in xfs_sb_quota_to_disk() 995 to->sb_dblocks = cpu_to_be64(from->sb_dblocks); in xfs_sb_to_disk() [all …]
|
| H A D | xfs_inode_buf.c | 288 return cpu_to_be64(xfs_inode_encode_bigtime(tv)); in xfs_inode_to_disk_ts() 303 to->di_big_nextents = cpu_to_be64(xfs_ifork_nextents(&ip->i_df)); in xfs_inode_to_disk_iext_counters() 343 to->di_size = cpu_to_be64(ip->i_disk_size); in xfs_inode_to_disk() 344 to->di_nblocks = cpu_to_be64(ip->i_nblocks); in xfs_inode_to_disk() 352 to->di_changecount = cpu_to_be64(inode_peek_iversion(inode)); in xfs_inode_to_disk() 354 to->di_flags2 = cpu_to_be64(ip->i_diflags2); in xfs_inode_to_disk() 357 to->di_ino = cpu_to_be64(ip->i_ino); in xfs_inode_to_disk() 358 to->di_lsn = cpu_to_be64(lsn); in xfs_inode_to_disk() 451 if (!(dip->di_flags2 & cpu_to_be64(XFS_DIFLAG2_METADATA))) in xfs_dinode_verify_fork()
|
| /linux/include/rdma/ |
| H A D | ib_cm.h | 327 #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)
|
| /linux/fs/omfs/ |
| H A D | file.c | 24 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()
|
| /linux/arch/mips/include/asm/octeon/ |
| H A D | crypto.h | 36 : [rt] "d" (cpu_to_be64(value))); \ 62 : [rt] "d" (cpu_to_be64(value))); \ 73 : [rt] "d" (cpu_to_be64(value))); \
|
| /linux/drivers/misc/genwqe/ |
| H A D | card_dev.c | 578 *(__be64 *)&req->__asiv[0] = cpu_to_be64(dma_addr); in do_flash_update() 579 *(__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() 586 *(__be64 *)&req->__asiv[88] = cpu_to_be64(load->slu_id); in do_flash_update() 587 *(__be64 *)&req->__asiv[96] = cpu_to_be64(load->app_id); 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() 598 *(__be64 *)&req->asiv[80] = cpu_to_be64(load->slu_id); in do_flash_update() 599 *(__be64 *)&req->asiv[88] = cpu_to_be64(load->app_id); in do_flash_update() 704 *(__be64 *)&cmd->__asiv[0] = cpu_to_be64(dma_addr); in do_flash_read() [all …]
|
| /linux/arch/powerpc/platforms/pseries/ |
| H A D | rtas-fadump.c | 128 fdm.rgn[sec_cnt].source_len = cpu_to_be64(fadump_conf->cpu_state_data_size); in rtas_fadump_init_mem_struct() 129 fdm.rgn[sec_cnt].destination_address = cpu_to_be64(addr); in rtas_fadump_init_mem_struct() 137 fdm.rgn[sec_cnt].source_len = cpu_to_be64(fadump_conf->hpte_region_size); in rtas_fadump_init_mem_struct() 138 fdm.rgn[sec_cnt].destination_address = cpu_to_be64(addr); in rtas_fadump_init_mem_struct() 154 fdm.rgn[sec_cnt].source_address = cpu_to_be64(fadump_conf->boot_mem_addr[i]); in rtas_fadump_init_mem_struct() 155 fdm.rgn[sec_cnt].source_len = cpu_to_be64(fadump_conf->boot_mem_sz[i]); in rtas_fadump_init_mem_struct() 156 fdm.rgn[sec_cnt].destination_address = cpu_to_be64(addr); in rtas_fadump_init_mem_struct() 165 fdm.rgn[sec_cnt].source_address = cpu_to_be64(fadump_conf->param_area); in rtas_fadump_init_mem_struct() 166 fdm.rgn[sec_cnt].source_len = cpu_to_be64(COMMAND_LINE_SIZE); in rtas_fadump_init_mem_struct() 167 fdm.rgn[sec_cnt].destination_address = cpu_to_be64(fadump_conf->param_area); in rtas_fadump_init_mem_struct()
|
| H A D | hvconsole.c | 66 cpu_to_be64(lbuf[0]), in hvc_put_chars() 67 cpu_to_be64(lbuf[1])); in hvc_put_chars()
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | opal-core.c | 146 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()
|
| H A D | pci-ioda-tce.c | 107 cpu_to_be64(tce))); in pnv_tce() 140 *(pnv_tce(tbl, false, idx, true)) = cpu_to_be64(newtce); in pnv_tce_build() 174 oldtce = be64_to_cpu(xchg(ptce, cpu_to_be64(newtce))); in pnv_tce_xchg() 199 *ptce = cpu_to_be64(0); in pnv_tce_free() 280 addr[i] = cpu_to_be64(__pa(tmp) | in pnv_pci_ioda2_table_do_alloc_pages()
|
| /linux/fs/xfs/scrub/ |
| H A D | agheader.c | 158 if (sb->sb_dblocks != cpu_to_be64(mp->m_sb.sb_dblocks)) in xchk_superblock() 161 if (sb->sb_rblocks != cpu_to_be64(mp->m_sb.sb_rblocks)) in xchk_superblock() 164 if (sb->sb_rextents != cpu_to_be64(mp->m_sb.sb_rextents)) in xchk_superblock() 170 if (sb->sb_logstart != cpu_to_be64(mp->m_sb.sb_logstart)) in xchk_superblock() 173 if (sb->sb_rootino != cpu_to_be64(mp->m_sb.sb_rootino)) in xchk_superblock() 177 if (sb->sb_rbmino != cpu_to_be64(0)) in xchk_superblock() 180 if (sb->sb_rsumino != cpu_to_be64(0)) in xchk_superblock() 183 if (sb->sb_rbmino != cpu_to_be64(mp->m_sb.sb_rbmino)) in xchk_superblock() 186 if (sb->sb_rsumino != cpu_to_be64(mp->m_sb.sb_rsumino)) in xchk_superblock() 265 if (sb->sb_uquotino != cpu_to_be64(0)) in xchk_superblock() [all …]
|
| /linux/fs/xfs/ |
| H A D | xfs_inode_item_recover.c | 137 return cpu_to_be64(its); in xfs_log_dinode_to_disk_ts() 160 to->di_big_nextents = cpu_to_be64(from->di_big_nextents); in xfs_log_dinode_to_disk_iext_counters() 191 to->di_size = cpu_to_be64(from->di_size); in xfs_log_dinode_to_disk() 192 to->di_nblocks = cpu_to_be64(from->di_nblocks); in xfs_log_dinode_to_disk() 202 to->di_changecount = cpu_to_be64(from->di_changecount); in xfs_log_dinode_to_disk() 205 to->di_flags2 = cpu_to_be64(from->di_flags2); in xfs_log_dinode_to_disk() 208 to->di_ino = cpu_to_be64(from->di_ino); in xfs_log_dinode_to_disk() 209 to->di_lsn = cpu_to_be64(lsn); in xfs_log_dinode_to_disk()
|
| /linux/lib/crypto/ |
| H A D | gf128mul.c | 146 x->b = cpu_to_be64((b >> 8) | (a << 56)); in gf128mul_x8_lle() 147 x->a = cpu_to_be64((a >> 8) ^ (_tt << 48)); in gf128mul_x8_lle() 157 x->b = cpu_to_be64((b >> 8) | (a << 56)); in gf128mul_x8_lle_ti() 158 x->a = cpu_to_be64((a >> 8) ^ (_tt << 48)); in gf128mul_x8_lle_ti() 167 x->a = cpu_to_be64((a << 8) | (b >> 56)); in gf128mul_x8_bbe() 168 x->b = cpu_to_be64((b << 8) ^ _tt); in gf128mul_x8_bbe()
|
| /linux/drivers/infiniband/hw/hfi1/ |
| H A D | mad.c | 322 trap->tid = cpu_to_be64(ibp->rvp.tid); in send_trap() 922 pi->neigh_node_guid = cpu_to_be64(ppd->neighbor_guid); in __subn_get_opa_portinfo() 2604 rsp->port_xmit_wait = cpu_to_be64(sum_vl_xmit_wait); in a0_portstatus() 2724 cpu_to_be64(read_port_cntr(ppd, C_SW_RCV_CSTR_ERR, in pma_get_opa_portstatus() 2730 rsp->port_xmit_data = cpu_to_be64(read_dev_cntr(dd, C_DC_XMIT_FLITS, in pma_get_opa_portstatus() 2732 rsp->port_rcv_data = cpu_to_be64(read_dev_cntr(dd, C_DC_RCV_FLITS, in pma_get_opa_portstatus() 2734 rsp->port_xmit_pkts = cpu_to_be64(read_dev_cntr(dd, C_DC_XMIT_PKTS, in pma_get_opa_portstatus() 2736 rsp->port_rcv_pkts = cpu_to_be64(read_dev_cntr(dd, C_DC_RCV_PKTS, in pma_get_opa_portstatus() 2739 cpu_to_be64(read_dev_cntr(dd, C_DC_MC_XMIT_PKTS, in pma_get_opa_portstatus() 2742 cpu_to_be64(read_dev_cntr(dd, C_DC_MC_RCV_PKTS, in pma_get_opa_portstatus() [all …]
|
| /linux/arch/powerpc/boot/ |
| H A D | of.h | 34 #define cpu_to_be64(x) swab64(x) macro 41 #define cpu_to_be64(x) (x) macro
|
| /linux/tools/testing/selftests/powerpc/vphn/ |
| H A D | test-vphn.c | 11 #define cpu_to_be64(x) bswap_64(x) macro 16 #define cpu_to_be64(x) (x) macro
|
| /linux/drivers/crypto/cavium/nitrox/ |
| H A D | nitrox_reqmgr.c | 132 sgcomp[i].dma[j] = cpu_to_be64(sg_dma_address(sg)); in create_sg_component() 447 sr->instr.dptr0 = cpu_to_be64(sr->in.sgcomp_dma); in nitrox_process_se_request() 456 sr->instr.ih.bev = cpu_to_be64(sr->instr.ih.value); in nitrox_process_se_request() 468 sr->instr.irh.bev[0] = cpu_to_be64(sr->instr.irh.value[0]); in nitrox_process_se_request() 471 sr->instr.irh.s.ctxp = cpu_to_be64(ctx_handle); in nitrox_process_se_request() 476 sr->instr.slc.bev[0] = cpu_to_be64(sr->instr.slc.value[0]); in nitrox_process_se_request() 479 sr->instr.slc.s.rptr = cpu_to_be64(sr->out.sgcomp_dma); in nitrox_process_se_request()
|
| /linux/drivers/net/ethernet/fungible/funcore/ |
| H A D | fun_hci.h | 75 .key_to_data = cpu_to_be64( \ 96 cpu_to_be64(FUN_ADMIN_READ48_REQ_KEY_P_NOSWAP(key)), \ 263 .address = cpu_to_be64(_address), \ 338 .address = cpu_to_be64(_address), \ 348 .head_wb_address = cpu_to_be64(_head_wb_address), \ 513 s->sgl_data = cpu_to_be64(sgl_data); in fun_dataop_gl_init() 537 .sgl_data = cpu_to_be64(_sgl_data), \ 889 .image_size = cpu_to_be64(_image_size), \ 1000 .id = cpu_to_be32(_id), .tlsid = cpu_to_be64(_tlsid), \ 1050 .bufaddr = cpu_to_be64(_bufaddr), \ [all …]
|
| /linux/drivers/infiniband/core/ |
| H A D | packer.c | 101 mask = cpu_to_be64((~0ull >> (64 - desc[i].size_bits)) << shift); in ib_pack() 103 *addr = (*addr & ~mask) | (cpu_to_be64(val) & mask); in ib_pack() 132 case 64: *(__be64 *) (structure + offset) = cpu_to_be64(val); break; in value_write()
|
| /linux/drivers/crypto/marvell/octeontx/ |
| H A D | otx_cptvf_reqmgr.c | 131 sg_ptr->ptr0 = cpu_to_be64(list[i * 4 + 0].dma_addr); in setup_sgio_components() 132 sg_ptr->ptr1 = cpu_to_be64(list[i * 4 + 1].dma_addr); in setup_sgio_components() 133 sg_ptr->ptr2 = cpu_to_be64(list[i * 4 + 2].dma_addr); in setup_sgio_components() 134 sg_ptr->ptr3 = cpu_to_be64(list[i * 4 + 3].dma_addr); in setup_sgio_components() 142 sg_ptr->ptr2 = cpu_to_be64(list[i * 4 + 2].dma_addr); in setup_sgio_components() 146 sg_ptr->ptr1 = cpu_to_be64(list[i * 4 + 1].dma_addr); in setup_sgio_components() 150 sg_ptr->ptr0 = cpu_to_be64(list[i * 4 + 0].dma_addr); in setup_sgio_components()
|