Home
last modified time | relevance | path

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

1234

/u-boot/drivers/power/
A Dpower_i2c.c44 buf[2] = (cpu_to_le32(val) >> 16) & 0xff; in pmic_reg_write()
45 buf[1] = (cpu_to_le32(val) >> 8) & 0xff; in pmic_reg_write()
46 buf[0] = cpu_to_le32(val) & 0xff; in pmic_reg_write()
48 buf[0] = (cpu_to_le32(val) >> 16) & 0xff; in pmic_reg_write()
49 buf[1] = (cpu_to_le32(val) >> 8) & 0xff; in pmic_reg_write()
50 buf[2] = cpu_to_le32(val) & 0xff; in pmic_reg_write()
55 buf[1] = (cpu_to_le32(val) >> 8) & 0xff; in pmic_reg_write()
56 buf[0] = cpu_to_le32(val) & 0xff; in pmic_reg_write()
58 buf[0] = (cpu_to_le32(val) >> 8) & 0xff; in pmic_reg_write()
59 buf[1] = cpu_to_le32(val) & 0xff; in pmic_reg_write()
[all …]
/u-boot/fs/ubifs/
A Dsb.c168 sup->flags = cpu_to_le32(sup_flags); in create_default_filesystem()
174 sup->log_lebs = cpu_to_le32(log_lebs); in create_default_filesystem()
175 sup->lpt_lebs = cpu_to_le32(lpt_lebs); in create_default_filesystem()
176 sup->orph_lebs = cpu_to_le32(orph_lebs); in create_default_filesystem()
215 mst->root_len = cpu_to_le32(tmp); in create_default_filesystem()
228 mst->lscan_lnum = cpu_to_le32(main_first); in create_default_filesystem()
230 mst->idx_lebs = cpu_to_le32(1); in create_default_filesystem()
280 br->len = cpu_to_le32(UBIFS_INO_NODE_SZ); in create_default_filesystem()
298 ino->nlink = cpu_to_le32(2); in create_default_filesystem()
310 ino->flags = cpu_to_le32(UBIFS_COMPR_FL); in create_default_filesystem()
[all …]
A Dkey.h102 key->j32[0] = cpu_to_le32(inum); in ino_key_init_flash()
103 key->j32[1] = cpu_to_le32(UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS); in ino_key_init_flash()
182 key->j32[0] = cpu_to_le32(inum); in dent_key_init_flash()
183 key->j32[1] = cpu_to_le32(hash | in dent_key_init_flash()
233 key->j32[0] = cpu_to_le32(inum); in xent_key_init_flash()
234 key->j32[1] = cpu_to_le32(hash | in xent_key_init_flash()
430 t->j32[0] = cpu_to_le32(from->u32[0]); in key_write()
431 t->j32[1] = cpu_to_le32(from->u32[1]); in key_write()
446 t->j32[0] = cpu_to_le32(from->u32[0]); in key_write_idx()
447 t->j32[1] = cpu_to_le32(from->u32[1]); in key_write_idx()
/u-boot/tools/
A Dstm32image.c16 #define HEADER_DEFAULT_OPTION (cpu_to_le32(0x00000001))
18 #define HEADER_TYPE_UBOOT (cpu_to_le32(0x00000000))
48 ptr->ecdsa_algorithm = cpu_to_le32(1); in stm32image_default_header()
130 stm32hdr->load_address = cpu_to_le32(params->addr); in stm32image_set_header()
131 stm32hdr->image_entry_point = cpu_to_le32(params->ep); in stm32image_set_header()
132 stm32hdr->image_length = cpu_to_le32((uint32_t)sbuf->st_size - in stm32image_set_header()
135 cpu_to_le32(stm32image_checksum(ptr, sbuf->st_size)); in stm32image_set_header()
A Dmtk_image.c581 hdr->version = cpu_to_le32(1); in put_brom_layout_header()
582 hdr->magic = cpu_to_le32(BRLYT_MAGIC); in put_brom_layout_header()
583 hdr->type = cpu_to_le32(type); in put_brom_layout_header()
607 gfh->file_info.unused = cpu_to_le32(1); in put_ghf_header()
617 gfh->file_info.processed = cpu_to_le32(1); in put_ghf_header()
622 gfh->bl_info.attr = cpu_to_le32(1); in put_ghf_header()
680 hdr->boot.version = cpu_to_le32(1); in mtk_image_set_gen_header()
719 brlyt->header_size = cpu_to_le32(2); in mtk_image_set_nand_header()
723 brlyt->unused = cpu_to_le32(1); in mtk_image_set_nand_header()
741 lk->magic = cpu_to_le32(LK_PART_MAGIC); in mtk_image_set_header()
[all …]
A Dzynqimage.c51 #define HEADER_INTERRUPT_DEFAULT (cpu_to_le32(0xeafffffe))
52 #define HEADER_REGINIT_NULL (cpu_to_le32(0xffffffff))
53 #define HEADER_WIDTHDETECTION (cpu_to_le32(0xaa995566))
54 #define HEADER_IMAGEIDENTIFIER (cpu_to_le32(0x584c4e58))
109 return cpu_to_le32(checksum); in zynqimage_checksum()
121 ptr->encryption = cpu_to_le32(ENCRYPTION_NONE); in zynqimage_default_header()
276 cpu_to_le32((uint32_t)sizeof(struct zynq_header)); in zynqimage_set_header()
277 zynqhdr->image_size = cpu_to_le32((uint32_t)sbuf->st_size); in zynqimage_set_header()
281 zynqhdr->image_load = cpu_to_le32((uint32_t)params->ep); in zynqimage_set_header()
A Dsunxi_egon.c82 header->b_instruction = cpu_to_le32(value); in egon_set_header()
85 header->check_sum = cpu_to_le32(BROM_STAMP_VALUE); in egon_set_header()
86 header->length = cpu_to_le32(params->file_size); in egon_set_header()
98 header->dt_name_offset = cpu_to_le32(value); in egon_set_header()
106 header->check_sum = cpu_to_le32(checksum); in egon_set_header()
A Dzynqmpimage.h17 #define HEADER_INTERRUPT_DEFAULT (cpu_to_le32(0xeafffffe))
18 #define HEADER_REGINIT_NULL (cpu_to_le32(0xffffffff))
19 #define HEADER_WIDTHDETECTION (cpu_to_le32(0xaa995566))
20 #define HEADER_IMAGEIDENTIFIER (cpu_to_le32(0x584c4e58))
A Dmksunxiboot.c35 head_p->check_sum = cpu_to_le32(STAMP_VALUE); /* fill stamp */ in gen_check_sum()
43 head_p->check_sum = cpu_to_le32(sum); in gen_check_sum()
145 img.header.b_instruction = cpu_to_le32(img.header.b_instruction); in main()
146 img.header.length = cpu_to_le32(img.header.length); in main()
155 cpu_to_le32(offsetof(struct boot_file_head, in main()
A Dzynqmpbif.c325 .len_enc = cpu_to_le32(len_padded / 4), in bif_add_part()
326 .len_unenc = cpu_to_le32(len_padded / 4), in bif_add_part()
327 .len = cpu_to_le32(len_padded / 4), in bif_add_part()
348 parthdr.offset = cpu_to_le32(bf->offset / 4); in bif_add_part()
357 parthdr.len = cpu_to_le32((bf->offset + len - in bif_add_part()
383 parthdr.checksum = cpu_to_le32(csum); in bif_add_part()
393 .version = cpu_to_le32(0x01020000), in bif_add_part()
411 cpu_to_le32(parthdr_offset / 4); in bif_add_part()
419 cpu_to_le32(parthdr_offset / 4); in bif_add_part()
427 cpu_to_le32(bf->offset); in bif_add_part()
[all …]
A Dmxsboot.c558 cb->signature = cpu_to_le32(0x00112233); in mx28_create_sd_image()
559 cb->primary_boot_tag = cpu_to_le32(0x1); in mx28_create_sd_image()
560 cb->secondary_boot_tag = cpu_to_le32(0x1); in mx28_create_sd_image()
561 cb->num_copies = cpu_to_le32(1); in mx28_create_sd_image()
562 cb->drv_info[0].chip_num = cpu_to_le32(0x0); in mx28_create_sd_image()
563 cb->drv_info[0].drive_type = cpu_to_le32(0x0); in mx28_create_sd_image()
564 cb->drv_info[0].tag = cpu_to_le32(0x1); in mx28_create_sd_image()
565 cb->drv_info[0].first_sector_number = cpu_to_le32(sd_sector + 4); in mx28_create_sd_image()
566 cb->drv_info[0].sector_count = cpu_to_le32((size - 4) / 512); in mx28_create_sd_image()
A Dsocfpgaimage.c138 .validation = cpu_to_le32(VALIDATION_WORD), in sfp_build_header()
146 .validation = cpu_to_le32(VALIDATION_WORD), in sfp_build_header()
150 .length_u8 = cpu_to_le32(length_bytes), in sfp_build_header()
152 .entry_offset = cpu_to_le32(entry_offset), in sfp_build_header()
230 *((uint32_t *)(buf + crc_off)) = cpu_to_le32(calc_crc); in sfp_sign_buffer()
A Dkwbimage.c895 main_hdr->srcaddr = cpu_to_le32(headersz); in image_create_v0()
897 main_hdr->destaddr = cpu_to_le32(params->addr); in image_create_v0()
898 main_hdr->execaddr = cpu_to_le32(params->ep); in image_create_v0()
919 ext_hdr->offset = cpu_to_le32(0x40); in image_create_v0()
927 cpu_to_le32(e->regdata.raddr); in image_create_v0()
929 cpu_to_le32(e->regdata.rdata); in image_create_v0()
1068 *args = cpu_to_le32(binarye->binary.nargs); in add_binary_header_v1()
1191 secure_hdr->boxid = cpu_to_le32(e_boxid->boxid); in add_secure_header_v1()
1257 main_hdr->execaddr = cpu_to_le32(params->ep); in image_create_v1()
1258 main_hdr->srcaddr = cpu_to_le32(headersz); in image_create_v1()
[all …]
A Dzynqmpimage.c86 return cpu_to_le32(checksum); in zynqmpimage_checksum()
99 ptr->encryption = cpu_to_le32(ENCRYPTION_NONE); in zynqmpimage_default_header()
411 cpu_to_le32((uint32_t)sizeof(struct zynqmp_header)); in zynqmpimage_set_header()
412 zynqhdr->image_size = cpu_to_le32(params->file_size - in zynqmpimage_set_header()
417 zynqhdr->image_load = cpu_to_le32((uint32_t)params->ep); in zynqmpimage_set_header()
/u-boot/drivers/usb/gadget/
A Drndis.c210 *outbuf = cpu_to_le32(params->medium); in gen_ndis_query_resp()
218 *outbuf = cpu_to_le32(params->medium); in gen_ndis_query_resp()
226 *outbuf = cpu_to_le32(params->mtu); in gen_ndis_query_resp()
247 *outbuf = cpu_to_le32(params->mtu); in gen_ndis_query_resp()
256 *outbuf = cpu_to_le32(params->mtu); in gen_ndis_query_resp()
333 *outbuf = cpu_to_le32( in gen_ndis_query_resp()
347 *outbuf = cpu_to_le32( in gen_ndis_query_resp()
395 *outbuf = cpu_to_le32( in gen_ndis_query_resp()
408 *outbuf = cpu_to_le32( in gen_ndis_query_resp()
792 resp->MaxTransferSize = cpu_to_le32( in rndis_init_response()
[all …]
/u-boot/drivers/usb/host/
A Dxhci-mem.c340 cpu_to_le32(LINK_TOGGLE); in xhci_ring_alloc()
569 entry->seg_size = cpu_to_le32(TRBS_PER_SEGMENT); in xhci_mem_init()
750 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(1)); in xhci_setup_addressable_virt_dev()
775 slot_ctx->dev_info |= cpu_to_le32(route); in xhci_setup_addressable_virt_dev()
779 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_SS); in xhci_setup_addressable_virt_dev()
782 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_HS); in xhci_setup_addressable_virt_dev()
785 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_FS); in xhci_setup_addressable_virt_dev()
788 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_LS); in xhci_setup_addressable_virt_dev()
812 slot_ctx->dev_info |= cpu_to_le32(DEV_MTT); in xhci_setup_addressable_virt_dev()
823 cpu_to_le32(((port_num & ROOT_HUB_PORT_MASK) << in xhci_setup_addressable_virt_dev()
[all …]
A Dxhci.c557 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG); in xhci_set_configuration()
563 ctrl_ctx->add_flags |= cpu_to_le32(1 << (ep_flag + 1)); in xhci_set_configuration()
573 slot_ctx->dev_info &= ~(cpu_to_le32(LAST_CTX_MASK)); in xhci_set_configuration()
621 cpu_to_le32(MAX_PACKET in xhci_set_configuration()
628 cpu_to_le32(MAX_BURST(max_burst) | in xhci_set_configuration()
652 cpu_to_le32(EP_BPKTS(1) | EP_BBM(1)); in xhci_set_configuration()
841 ctrl_ctx->add_flags = cpu_to_le32(EP0_FLAG); in xhci_check_maxpacket()
1471 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG); in xhci_update_hub_device()
1481 slot_ctx->dev_info |= cpu_to_le32(DEV_HUB); in xhci_update_hub_device()
1488 slot_ctx->dev_info |= cpu_to_le32(DEV_MTT); in xhci_update_hub_device()
[all …]
/u-boot/drivers/net/
A Ddc2114x.c125 writel(cpu_to_le32(command), priv->iobase + addr); in dc2114x_outl()
306 priv->tx_ring[priv->tx_new].buf = cpu_to_le32(phys_to_bus(priv->devno, in send_setup_frame()
309 priv->tx_ring[priv->tx_new].status = cpu_to_le32(T_OWN); in send_setup_frame()
350 priv->tx_ring[priv->tx_new].status = cpu_to_le32(T_OWN); in dc21x4x_send_common()
416 priv->rx_ring[i].status = cpu_to_le32(R_OWN); in dc21x4x_init_common()
417 priv->rx_ring[i].des1 = cpu_to_le32(RX_BUFF_SZ); in dc21x4x_init_common()
418 priv->rx_ring[i].buf = cpu_to_le32(phys_to_bus(priv->devno, in dc21x4x_init_common()
434 priv->rx_ring[priv->rx_ring_size - 1].des1 |= cpu_to_le32(RD_RER); in dc21x4x_init_common()
435 priv->tx_ring[priv->tx_ring_size - 1].des1 |= cpu_to_le32(TD_TER); in dc21x4x_init_common()
536 priv->rx_ring[priv->rx_new].status = cpu_to_le32(R_OWN); in dc21x4x_recv()
[all …]
A Dns8382x.c295 *(vu_long *) ((addr + dev->iobase)) = cpu_to_le32(command); in OUTL()
622 txd.bufptr = cpu_to_le32((u32) & txb[0]); in ns8382x_init_txd()
649 cpu_to_le32((i + 1 < in ns8382x_init_rxd()
653 rxd[i].extsts = cpu_to_le32((u32) 0x0); in ns8382x_init_rxd()
654 rxd[i].cmdsts = cpu_to_le32((u32) RX_BUF_SIZE); in ns8382x_init_rxd()
655 rxd[i].bufptr = cpu_to_le32((u32) & rxb[i * RX_BUF_SIZE]); in ns8382x_init_rxd()
749 txd.link = cpu_to_le32(0x0); in ns8382x_send()
750 txd.bufptr = cpu_to_le32(phys_to_bus((u32)packet)); in ns8382x_send()
751 txd.extsts = cpu_to_le32(0x0); in ns8382x_send()
752 txd.cmdsts = cpu_to_le32(DescOwn | length); in ns8382x_send()
[all …]
A Duli526x.c464 txptr->tdes1 = cpu_to_le32(0xe1000000 | length); in uli526x_start_xmit()
614 if (!(rxptr->rdes0 & cpu_to_le32(0x80000000))) in uli526x_reuse_buf()
615 rxptr->rdes0 = cpu_to_le32(0x80000000); in uli526x_reuse_buf()
659 tmp_tx->tdes0 = cpu_to_le32(0); in uli526x_descriptor_init()
661 tmp_tx->tdes2 = cpu_to_le32(tmp_buf_dma); in uli526x_descriptor_init()
663 tmp_tx->tdes3 = cpu_to_le32(tmp_tx_dma); in uli526x_descriptor_init()
675 tmp_rx->rdes0 = cpu_to_le32(0); in uli526x_descriptor_init()
676 tmp_rx->rdes1 = cpu_to_le32(0x01000600); in uli526x_descriptor_init()
678 tmp_rx->rdes3 = cpu_to_le32(tmp_rx_dma); in uli526x_descriptor_init()
715 rxptr->rdes2 = cpu_to_le32(addr); in allocate_rx_buffer()
[all …]
A Dcalxedaxgmac.c219 p->buf_size = cpu_to_le32(MAX_DESC_BUF_SZ | in desc_set_buf_len()
222 p->buf_size = cpu_to_le32(buf_sz); in desc_set_buf_len()
242 end->buf_size |= cpu_to_le32(RXDESC1_END_RING); in desc_init_rx_desc()
248 p[ring_size - 1].flags = cpu_to_le32(TXDESC_END_RING); in desc_init_tx_desc()
259 p->flags = cpu_to_le32(DESC_OWN); in desc_set_rx_owner()
267 p->flags = cpu_to_le32(tmpflags); in desc_set_tx_owner()
278 p->buf1_addr = cpu_to_le32(paddr); in desc_set_buf_addr()
280 p->buf2_addr = cpu_to_le32(paddr + MAX_DESC_BUF_SZ); in desc_set_buf_addr()
A Dnatsemi.c273 *(vu_long *) ((addr + dev->iobase)) = cpu_to_le32(command); in OUTL()
689 cpu_to_le32((i + 1 < in natsemi_init_rxd()
693 rxd[i].cmdsts = cpu_to_le32((u32) RX_BUF_SIZE); in natsemi_init_rxd()
694 rxd[i].bufptr = cpu_to_le32((u32) & rxb[i * RX_BUF_SIZE]); in natsemi_init_rxd()
772 txd.link = cpu_to_le32(0); in natsemi_send()
773 txd.bufptr = cpu_to_le32(phys_to_bus((u32) packet)); in natsemi_send()
774 txd.cmdsts = cpu_to_le32(DescOwn | length); in natsemi_send()
850 rxd[cur_rx].cmdsts = cpu_to_le32(RX_BUF_SIZE); in natsemi_poll()
851 rxd[cur_rx].bufptr = cpu_to_le32((u32) & rxb[cur_rx * RX_BUF_SIZE]); in natsemi_poll()
A Drtl8169.c550 cpu_to_le32((OWNbit | EORbit) + RX_BUF_SIZE); in rtl_recv_common()
553 cpu_to_le32(OWNbit + RX_BUF_SIZE); in rtl_recv_common()
555 tpc->RxDescArray[cur_rx].buf_addr = cpu_to_le32( in rtl_recv_common()
560 tpc->RxDescArray[cur_rx].buf_addr = cpu_to_le32( in rtl_recv_common()
641 tpc->TxDescArray[entry].buf_addr = cpu_to_le32( in rtl_send_common()
644 tpc->TxDescArray[entry].buf_addr = cpu_to_le32( in rtl_send_common()
649 cpu_to_le32((OWNbit | FSbit | LSbit) | in rtl_send_common()
653 cpu_to_le32((OWNbit | EORbit | FSbit | LSbit) | in rtl_send_common()
833 cpu_to_le32((OWNbit | EORbit) + RX_BUF_SIZE); in rtl8169_init_ring()
836 cpu_to_le32(OWNbit + RX_BUF_SIZE); in rtl8169_init_ring()
[all …]
A Deepro100.c243 writel(cpu_to_le32(command), addr + priv->iobase); in OUTL()
370 cpu_to_le32(phys_to_bus(priv->devno, in init_rx_ring()
374 rx_ring[i].count = cpu_to_le32(PKTSIZE_ALIGN << 16); in init_rx_ring()
598 cfg_cmd->link = cpu_to_le32(phys_to_bus(priv->devno, in eepro100_init_common()
619 ias_cmd->link = cpu_to_le32(phys_to_bus(priv->devno, in eepro100_init_common()
657 desc->count = cpu_to_le32(priv->tx_threshold); in eepro100_send_common()
658 desc->link = cpu_to_le32(phys_to_bus(priv->devno, in eepro100_send_common()
660 desc->tx_desc_addr = cpu_to_le32(phys_to_bus(priv->devno, in eepro100_send_common()
662 desc->tx_buf_addr0 = cpu_to_le32(phys_to_bus(priv->devno, in eepro100_send_common()
664 desc->tx_buf_size0 = cpu_to_le32(length); in eepro100_send_common()
[all …]
/u-boot/arch/mips/include/asm/mach-generic/
A Dmangle-port.h43 # define __mem_ioswabl(a, x) cpu_to_le32(x)
45 # define __mem_ioswabq(a, x) cpu_to_le32(x)

Completed in 55 milliseconds

1234