Home
last modified time | relevance | path

Searched refs:cpu_to_le32 (Results 1 – 25 of 51) sorted by relevance

123

/external/fio/
Dcconv.c336 top->allow_create = cpu_to_le32(o->allow_create); in convert_thread_options_to_net()
337 top->allow_mounted_write = cpu_to_le32(o->allow_mounted_write); in convert_thread_options_to_net()
338 top->td_ddir = cpu_to_le32(o->td_ddir); in convert_thread_options_to_net()
339 top->rw_seq = cpu_to_le32(o->rw_seq); in convert_thread_options_to_net()
340 top->kb_base = cpu_to_le32(o->kb_base); in convert_thread_options_to_net()
341 top->unit_base = cpu_to_le32(o->unit_base); in convert_thread_options_to_net()
342 top->ddir_seq_nr = cpu_to_le32(o->ddir_seq_nr); in convert_thread_options_to_net()
343 top->iodepth = cpu_to_le32(o->iodepth); in convert_thread_options_to_net()
344 top->iodepth_low = cpu_to_le32(o->iodepth_low); in convert_thread_options_to_net()
345 top->iodepth_batch = cpu_to_le32(o->iodepth_batch); in convert_thread_options_to_net()
[all …]
Dserver.c174 cmd->pdu_len = cpu_to_le32(pdu_len); in __fio_init_net_cmd()
752 spdu.jobs = cpu_to_le32(thread_number); in handle_load_file_cmd()
753 spdu.stat_outputs = cpu_to_le32(stat_number); in handle_load_file_cmd()
795 spdu.jobs = cpu_to_le32(thread_number); in handle_job_cmd()
796 spdu.stat_outputs = cpu_to_le32(stat_number); in handle_job_cmd()
836 spdu.jobs = cpu_to_le32(thread_number); in handle_jobline_cmd()
837 spdu.stat_outputs = cpu_to_le32(stat_number); in handle_jobline_cmd()
897 je->nr_running = cpu_to_le32(je->nr_running); in handle_send_eta_cmd()
898 je->nr_ramp = cpu_to_le32(je->nr_ramp); in handle_send_eta_cmd()
899 je->nr_pending = cpu_to_le32(je->nr_pending); in handle_send_eta_cmd()
[all …]
/external/kernel-headers/original/uapi/linux/
Dncp.h74 #define RIM_NAME (cpu_to_le32(1))
75 #define RIM_SPACE_ALLOCATED (cpu_to_le32(2))
76 #define RIM_ATTRIBUTES (cpu_to_le32(4))
77 #define RIM_DATA_SIZE (cpu_to_le32(8))
78 #define RIM_TOTAL_SIZE (cpu_to_le32(0x10))
79 #define RIM_EXT_ATTR_INFO (cpu_to_le32(0x20))
80 #define RIM_ARCHIVE (cpu_to_le32(0x40))
81 #define RIM_MODIFY (cpu_to_le32(0x80))
82 #define RIM_CREATION (cpu_to_le32(0x100))
83 #define RIM_OWNING_NAMESPACE (cpu_to_le32(0x200))
[all …]
Dnilfs2_ondisk.h535 cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) | \
541 cp->cp_flags = cpu_to_le32(le32_to_cpu(cp->cp_flags) & \
597 su->su_flags = cpu_to_le32(le32_to_cpu(su->su_flags) | \
604 cpu_to_le32(le32_to_cpu(su->su_flags) & \
622 su->su_nblocks = cpu_to_le32(0); in NILFS_SEGMENT_USAGE_FNS()
623 su->su_flags = cpu_to_le32(0); in NILFS_SEGMENT_USAGE_FNS()
/external/selinux/libsepol/src/
Dwrite.c62 buf[0] = cpu_to_le32(MAPSIZE); in ebitmap_write()
63 buf[1] = cpu_to_le32(e->highbit); in ebitmap_write()
68 buf[2] = cpu_to_le32(count); in ebitmap_write()
75 bit = cpu_to_le32(n->startbit); in ebitmap_write()
123 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
125 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
127 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
163 buf32[items++] = cpu_to_le32(val); in avtab_write_item()
188 cpu_to_le32(node->datum.data); in avtab_write_item()
194 buf32[items++] = cpu_to_le32(cur->datum.data); in avtab_write_item()
[all …]
Dmodule.c903 buf[0] = cpu_to_le32(SEPOL_MODULE_PACKAGE_MAGIC); in sepol_module_package_write()
904 buf[1] = cpu_to_le32(p->version); in sepol_module_package_write()
905 buf[2] = cpu_to_le32(nsec); in sepol_module_package_write()
911 buf[0] = cpu_to_le32(offsets[0]); in sepol_module_package_write()
916 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write()
923 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write()
929 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write()
935 buf[i] = cpu_to_le32(offsets[i]); in sepol_module_package_write()
948 buf[0] = cpu_to_le32(SEPOL_PACKAGE_SECTION_FC); in sepol_module_package_write()
955 buf[0] = cpu_to_le32(SEPOL_PACKAGE_SECTION_SEUSER); in sepol_module_package_write()
[all …]
Dprivate.h27 #define cpu_to_le32(x) (x) macro
34 #define cpu_to_le32(x) bswap_32(x) macro
/external/f2fs-tools/fsck/
Ddir.c183 de->ino = cpu_to_le32(ino); in f2fs_update_dentry()
269 if (parent->i.i_current_depth != cpu_to_le32(current_depth)) { in f2fs_add_link()
270 parent->i.i_current_depth = cpu_to_le32(current_depth); in f2fs_add_link()
277 parent->i.i_links = cpu_to_le32(links + 1); in f2fs_add_link()
319 dent_blk->dentry[0].ino = cpu_to_le32(ino); in make_empty_dir()
325 dent_blk->dentry[1].ino = cpu_to_le32(pino); in make_empty_dir()
339 inode->i.i_addr[0] = cpu_to_le32(blkaddr); in make_empty_dir()
374 inode->i.i_addr[0] = cpu_to_le32(blkaddr); in page_symlink()
407 node_blk->i.i_uid = cpu_to_le32(de->uid); in init_inode_block()
408 node_blk->i.i_gid = cpu_to_le32(de->gid); in init_inode_block()
[all …]
Dnode.h47 rn->i.i_nid[off - NODE_DIR1_BLOCK] = cpu_to_le32(nid); in set_nid()
49 rn->in.nid[off] = cpu_to_le32(nid); in set_nid()
Dxattr.c49 header->h_magic = cpu_to_le32(F2FS_XATTR_MAGIC); in read_all_xattrs()
50 header->h_refcount = cpu_to_le32(1); in read_all_xattrs()
97 inode->i.i_xattr_nid = cpu_to_le32(new_nid); in write_all_xattrs()
Dnode.c47 addr_array[ofs_in_node] = cpu_to_le32(dn->data_blkaddr); in set_data_blkaddr()
74 node_blk->footer.nid = cpu_to_le32(dn->nid); in new_node_block()
76 node_blk->footer.flag = cpu_to_le32(ofs << OFFSET_BIT_SHIFT); in new_node_block()
/external/syslinux/gpxe/src/drivers/net/
Depic100.c17 #define virt_to_le32desc(addr) cpu_to_le32(virt_to_bus(addr))
276 rx_ring[i].status = cpu_to_le32(RRING_OWN); /* Owned by Epic chip */ in epic100_init_ring()
277 rx_ring[i].buflength = cpu_to_le32(PKT_BUF_SZ); in epic100_init_ring()
291 tx_ring[i].buflength = 0x0000 | cpu_to_le32(TD_STDFLAGS << 16); in epic100_init_ring()
345 tx_ring[entry].buflength |= cpu_to_le32(len); in epic100_transmit()
346 tx_ring[entry].status = cpu_to_le32(len << 16) | in epic100_transmit()
347 cpu_to_le32(TRING_OWN); /* Pass ownership to the chip. */ in epic100_transmit()
385 if ((rx_ring[entry].status & cpu_to_le32(RRING_OWN)) == RRING_OWN) in epic100_poll()
Ddmfe.c57 #define virt_to_le32desc(addr) cpu_to_le32(virt_to_bus(addr))
358 rxd[entry].rdes0 = cpu_to_le32(0x80000000); in dmfe_poll()
378 rxd[entry].rdes0 = cpu_to_le32(0x80000000); in dmfe_poll()
422 txd[db->cur_tx].tdes1 = cpu_to_le32(0xe1000000 | size); in dmfe_transmit()
423 txd[db->cur_tx].tdes0 = cpu_to_le32(0x80000000); /* give ownership to device */ in dmfe_transmit()
528 txd[i].tdes0 = cpu_to_le32(0); in dmfe_descriptor_init()
529 txd[i].tdes1 = cpu_to_le32(0x81000000); /* IC, chain */ in dmfe_descriptor_init()
530 txd[i].tdes2 = cpu_to_le32(virt_to_bus(&txb[i])); in dmfe_descriptor_init()
531 txd[i].tdes3 = cpu_to_le32(virt_to_bus(&txd[i + 1])); in dmfe_descriptor_init()
541 rxd[i].rdes0 = cpu_to_le32(0x80000000); in dmfe_descriptor_init()
[all …]
Dns83820.c61 #define virt_to_le32desc(addr) cpu_to_le32(virt_to_bus(addr))
506 rx_ring[i].cmdsts = cpu_to_le32(REAL_RX_BUF_SIZE); in ns83820_setup_rx()
507 rx_ring[i].extsts = cpu_to_le32(0); in ns83820_setup_rx()
567 tx_ring[i].cmdsts = cpu_to_le32(0); in ns83820_reset()
568 tx_ring[i].extsts = cpu_to_le32(0); in ns83820_reset()
656 rx_ring[i].cmdsts = cpu_to_le32(REAL_RX_BUF_SIZE); in ns83820_check_intr()
688 rx_ring[entry].cmdsts = cpu_to_le32(CMDSTS_OWN); in ns83820_poll()
736 tx_ring[cur_tx].extsts = cpu_to_le32(extsts); in ns83820_transmit()
738 cmdsts = cpu_to_le32(0); in ns83820_transmit()
739 cmdsts |= cpu_to_le32(CMDSTS_OWN | s); in ns83820_transmit()
[all …]
Dsis190.c175 desc->size |= cpu_to_le32(RingEnd); in sis190_mark_as_last_descriptor()
183 desc->size = cpu_to_le32((RX_BUF_SIZE & RX_BUF_MASK) | eor); in sis190_give_to_asic()
185 desc->status = cpu_to_le32(OWNbit | INTbit); in sis190_give_to_asic()
190 desc->addr = cpu_to_le32(mapping); in sis190_map_to_asic()
197 desc->addr = cpu_to_le32(0xdeadbeef); in sis190_make_unusable_by_asic()
198 desc->size &= cpu_to_le32(RingEnd); in sis190_make_unusable_by_asic()
568 tp->tx_dma = cpu_to_le32(virt_to_bus(tp->TxDescRing)); in sis190_open()
577 tp->rx_dma = cpu_to_le32(virt_to_bus(tp->RxDescRing)); in sis190_open()
661 desc->PSize = cpu_to_le32(len); in sis190_transmit()
662 desc->addr = cpu_to_le32(virt_to_bus(iob->data)); in sis190_transmit()
[all …]
Dsundance.c59 #define virt_to_le32desc(addr) cpu_to_le32(virt_to_bus(addr))
340 rx_ring[i].length = cpu_to_le32(PKT_BUF_SZ | LastFrag); in init_ring()
357 tx_ring[1].length = cpu_to_le32(LastFrag | PKT_BUF_SZ); in init_ring()
478 rx_ring[entry].length = cpu_to_le32(PKT_BUF_SZ | LastFrag); in sundance_poll()
513 tx_ring[0].length = cpu_to_le32(s | LastFrag); in sundance_transmit()
514 tx_ring[0].status = cpu_to_le32(0x00000001); in sundance_transmit()
Dtulip.c927 rx_ring[i].status = cpu_to_le32(0x80000000); in tulip_init_ring()
928 rx_ring[i].length = cpu_to_le32(BUFLEN); in tulip_init_ring()
933 rx_ring[i-1].length = cpu_to_le32(DESC_RING_WRAP | BUFLEN); in tulip_init_ring()
950 tx_ring[1].length = cpu_to_le32(DESC_RING_WRAP | BUFLEN); in tulip_init_ring()
1013 u32 addr_low = cpu_to_le32(get_unaligned((u32 *)nic->node_addr)); in tulip_reset()
1014 u32 addr_high = cpu_to_le32(get_unaligned((u16 *)(nic->node_addr+4))); in tulip_reset()
1048 tx_ring[0].length = cpu_to_le32(tx_flags); in tulip_reset()
1050 tx_ring[0].status = cpu_to_le32(0x80000000); in tulip_reset()
1125 tx_ring[0].length = cpu_to_le32(0x60000000 | s); in tulip_transmit()
1126 tx_ring[0].status = cpu_to_le32(0x80000000); in tulip_transmit()
/external/f2fs-tools/mkfs/
Df2fs_format.c235 cpu_to_le32(c.devices[i].total_segments); in f2fs_prepare_super_block()
601 cpu_to_le32(crc); in f2fs_write_check_point_pack()
652 journal->nat_j.entries[0].ne.block_addr = cpu_to_le32( in f2fs_write_check_point_pack()
781 cpu_to_le32(crc); in f2fs_write_check_point_pack()
900 raw_node->footer.next_blkaddr = cpu_to_le32( in f2fs_write_root_inode()
906 raw_node->i.i_links = cpu_to_le32(2); in f2fs_write_root_inode()
907 raw_node->i.i_uid = cpu_to_le32(getuid()); in f2fs_write_root_inode()
908 raw_node->i.i_gid = cpu_to_le32(getgid()); in f2fs_write_root_inode()
914 raw_node->i.i_atime = cpu_to_le32(time(NULL)); in f2fs_write_root_inode()
916 raw_node->i.i_ctime = cpu_to_le32(time(NULL)); in f2fs_write_root_inode()
[all …]
Df2fs_format_main.c82 c.feature |= cpu_to_le32(F2FS_FEATURE_ENCRYPT); in parse_feature()
182 c.feature |= cpu_to_le32(F2FS_FEATURE_BLKZONED); in f2fs_parse_options()
/external/syslinux/gpxe/src/drivers/net/rtl818x/
Drtl818x.c107 entry->rx_buf = cpu_to_le32(virt_to_bus(iob->data)); in rtl818x_handle_rx()
108 entry->flags = cpu_to_le32(RTL818X_RX_DESC_FLAG_OWN | MAX_RX_SIZE); in rtl818x_handle_rx()
111 entry->flags |= cpu_to_le32(RTL818X_RX_DESC_FLAG_EOR); in rtl818x_handle_rx()
208 entry->tx_buf = cpu_to_le32(virt_to_bus(iob->data)); in rtl818x_tx()
209 entry->frame_len = cpu_to_le32(len); in rtl818x_tx()
212 entry->flags = cpu_to_le32(tx_flags); in rtl818x_tx()
349 entry->rx_buf = cpu_to_le32(virt_to_bus(iob->data)); in rtl818x_init_rx_ring()
350 entry->flags = cpu_to_le32(RTL818X_RX_DESC_FLAG_OWN | in rtl818x_init_rx_ring()
353 entry->flags |= cpu_to_le32(RTL818X_RX_DESC_FLAG_EOR); in rtl818x_init_rx_ring()
388 priv->tx_ring[i].next_tx_desc = cpu_to_le32(priv->tx_ring_dma + in rtl818x_init_tx_ring()
/external/syslinux/com32/include/
Dbyteswap.h76 #define cpu_to_le32(x) (x) macro
85 #define cpu_to_le32(x) bswap_32(x) macro
152 up->x = cpu_to_le32(v); in put_le32()
/external/syslinux/gpxe/src/drivers/net/phantom/
Dphantom.c623 cpu_to_le32 ( NX_CAP0_LEGACY_CONTEXT | NX_CAP0_LEGACY_MN ); in phantom_create_rx_ctx()
625 cpu_to_le32 ( NX_HOST_INT_CRB_MODE_SHARED ); in phantom_create_rx_ctx()
627 cpu_to_le32 ( NX_HOST_RDS_CRB_MODE_UNIQUE ); in phantom_create_rx_ctx()
628 buf->hostrq.rx_ctx.rds_ring_offset = cpu_to_le32 ( 0 ); in phantom_create_rx_ctx()
630 cpu_to_le32 ( sizeof ( buf->hostrq.rds ) ); in phantom_create_rx_ctx()
636 buf->hostrq.rds.ring_size = cpu_to_le32 ( PHN_NUM_RDS ); in phantom_create_rx_ctx()
637 buf->hostrq.rds.ring_kind = cpu_to_le32 ( NX_RDS_RING_TYPE_NORMAL ); in phantom_create_rx_ctx()
640 buf->hostrq.sds.ring_size = cpu_to_le32 ( PHN_NUM_SDS ); in phantom_create_rx_ctx()
745 cpu_to_le32 ( NX_CAP0_LEGACY_CONTEXT | NX_CAP0_LEGACY_MN ); in phantom_create_tx_ctx()
747 cpu_to_le32 ( NX_HOST_INT_CRB_MODE_SHARED ); in phantom_create_tx_ctx()
[all …]
/external/syslinux/gpxe/src/drivers/bitbash/
Dspi_bit.c174 tmp_command = cpu_to_le32 ( command ); in spi_bit_rw()
181 tmp_address = cpu_to_le32 ( address ); in spi_bit_rw()
/external/syslinux/gpxe/src/net/80211/
Dwpa_tkip.c362 V[0] = cpu_to_le32 ( V[0] ); in tkip_michael()
363 V[1] = cpu_to_le32 ( V[1] ); in tkip_michael()
409 head.tsc_hi = cpu_to_le32 ( ctx->enc.tsc_hi ); in tkip_encrypt()
427 icv = cpu_to_le32 ( ~icv ); in tkip_encrypt()
/external/syslinux/gpxe/src/include/
Dbig_bswap.h9 #define cpu_to_le32(x) __bswap_32(x) macro

123