| /rk3399_rockchip-uboot/drivers/power/ |
| H A D | power_i2c.c | 31 buf[2] = (cpu_to_le32(val) >> 16) & 0xff; in pmic_reg_write() 32 buf[1] = (cpu_to_le32(val) >> 8) & 0xff; in pmic_reg_write() 33 buf[0] = cpu_to_le32(val) & 0xff; in pmic_reg_write() 35 buf[0] = (cpu_to_le32(val) >> 16) & 0xff; in pmic_reg_write() 36 buf[1] = (cpu_to_le32(val) >> 8) & 0xff; in pmic_reg_write() 37 buf[2] = cpu_to_le32(val) & 0xff; in pmic_reg_write() 42 buf[1] = (cpu_to_le32(val) >> 8) & 0xff; in pmic_reg_write() 43 buf[0] = cpu_to_le32(val) & 0xff; in pmic_reg_write() 45 buf[0] = (cpu_to_le32(val) >> 8) & 0xff; in pmic_reg_write() 46 buf[1] = cpu_to_le32(val) & 0xff; in pmic_reg_write() [all …]
|
| /rk3399_rockchip-uboot/fs/ubifs/ |
| H A D | sb.c | 167 sup->flags = cpu_to_le32(sup_flags); in create_default_filesystem() 168 sup->min_io_size = cpu_to_le32(c->min_io_size); in create_default_filesystem() 169 sup->leb_size = cpu_to_le32(c->leb_size); in create_default_filesystem() 170 sup->leb_cnt = cpu_to_le32(c->leb_cnt); in create_default_filesystem() 171 sup->max_leb_cnt = cpu_to_le32(c->max_leb_cnt); in create_default_filesystem() 173 sup->log_lebs = cpu_to_le32(log_lebs); in create_default_filesystem() 174 sup->lpt_lebs = cpu_to_le32(lpt_lebs); in create_default_filesystem() 175 sup->orph_lebs = cpu_to_le32(orph_lebs); in create_default_filesystem() 176 sup->jhead_cnt = cpu_to_le32(DEFAULT_JHEADS_CNT); in create_default_filesystem() 177 sup->fanout = cpu_to_le32(DEFAULT_FANOUT); in create_default_filesystem() [all …]
|
| H A D | key.h | 103 key->j32[0] = cpu_to_le32(inum); in ino_key_init_flash() 104 key->j32[1] = cpu_to_le32(UBIFS_INO_KEY << UBIFS_S_KEY_BLOCK_BITS); in ino_key_init_flash() 183 key->j32[0] = cpu_to_le32(inum); in dent_key_init_flash() 184 key->j32[1] = cpu_to_le32(hash | in dent_key_init_flash() 234 key->j32[0] = cpu_to_le32(inum); in xent_key_init_flash() 235 key->j32[1] = cpu_to_le32(hash | in xent_key_init_flash() 431 t->j32[0] = cpu_to_le32(from->u32[0]); in key_write() 432 t->j32[1] = cpu_to_le32(from->u32[1]); in key_write() 447 t->j32[0] = cpu_to_le32(from->u32[0]); in key_write_idx() 448 t->j32[1] = cpu_to_le32(from->u32[1]); in key_write_idx()
|
| /rk3399_rockchip-uboot/drivers/usb/gadget/ |
| H A D | rndis.c | 195 outbuf[i] = cpu_to_le32(oid_supported_list[i]); in gen_ndis_query_resp() 216 *outbuf = cpu_to_le32(params->medium); in gen_ndis_query_resp() 224 *outbuf = cpu_to_le32(params->medium); in gen_ndis_query_resp() 232 *outbuf = cpu_to_le32(params->mtu); in gen_ndis_query_resp() 245 *outbuf = cpu_to_le32(params->speed); in gen_ndis_query_resp() 253 *outbuf = cpu_to_le32(params->mtu); in gen_ndis_query_resp() 262 *outbuf = cpu_to_le32(params->mtu); in gen_ndis_query_resp() 270 *outbuf = cpu_to_le32(params->vendorID); in gen_ndis_query_resp() 292 *outbuf = cpu_to_le32(*params->filter); in gen_ndis_query_resp() 308 *outbuf = cpu_to_le32(params->media_state); in gen_ndis_query_resp() [all …]
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | zynqimage.c | 52 #define HEADER_INTERRUPT_DEFAULT (cpu_to_le32(0xeafffffe)) 53 #define HEADER_REGINIT_NULL (cpu_to_le32(0xffffffff)) 54 #define HEADER_WIDTHDETECTION (cpu_to_le32(0xaa995566)) 55 #define HEADER_IMAGEIDENTIFIER (cpu_to_le32(0x584c4e58)) 110 return cpu_to_le32(checksum); in zynqimage_checksum() 122 ptr->encryption = cpu_to_le32(ENCRYPTION_NONE); in zynqimage_default_header() 271 cpu_to_le32((uint32_t)sizeof(struct zynq_header)); in zynqimage_set_header() 272 zynqhdr->image_size = cpu_to_le32((uint32_t)sbuf->st_size); in zynqimage_set_header() 276 zynqhdr->image_load = cpu_to_le32((uint32_t)params->ep); in zynqimage_set_header()
|
| H A D | zynqmpimage.c | 62 #define HEADER_INTERRUPT_DEFAULT (cpu_to_le32(0xeafffffe)) 63 #define HEADER_REGINIT_NULL (cpu_to_le32(0xffffffff)) 64 #define HEADER_WIDTHDETECTION (cpu_to_le32(0xaa995566)) 65 #define HEADER_IMAGEIDENTIFIER (cpu_to_le32(0x584c4e58)) 124 return cpu_to_le32(checksum); in zynqmpimage_checksum() 137 ptr->encryption = cpu_to_le32(ENCRYPTION_NONE); in zynqmpimage_default_header() 332 cpu_to_le32((uint32_t)sizeof(struct zynqmp_header)); in zynqmpimage_set_header() 333 zynqhdr->image_size = cpu_to_le32(params->file_size - in zynqmpimage_set_header() 338 zynqhdr->image_load = cpu_to_le32((uint32_t)params->ep); in zynqmpimage_set_header()
|
| H A D | mksunxiboot.c | 35 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() 148 img.header.b_instruction = cpu_to_le32(img.header.b_instruction); in main() 149 img.header.length = cpu_to_le32(img.header.length); in main() 158 cpu_to_le32(offsetof(struct boot_file_head, in main()
|
| H A D | mxsboot.c | 559 cb->signature = cpu_to_le32(0x00112233); in mx28_create_sd_image() 560 cb->primary_boot_tag = cpu_to_le32(0x1); in mx28_create_sd_image() 561 cb->secondary_boot_tag = cpu_to_le32(0x1); in mx28_create_sd_image() 562 cb->num_copies = cpu_to_le32(1); in mx28_create_sd_image() 563 cb->drv_info[0].chip_num = cpu_to_le32(0x0); in mx28_create_sd_image() 564 cb->drv_info[0].drive_type = cpu_to_le32(0x0); in mx28_create_sd_image() 565 cb->drv_info[0].tag = cpu_to_le32(0x1); in mx28_create_sd_image() 566 cb->drv_info[0].first_sector_number = cpu_to_le32(sd_sector + 4); in mx28_create_sd_image() 567 cb->drv_info[0].sector_count = cpu_to_le32((size - 4) / 512); in mx28_create_sd_image()
|
| H A D | kwbimage.c | 894 cpu_to_le32(payloadsz + sizeof(uint32_t) - headersz); in image_create_v0() 895 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() 1071 args[argi] = cpu_to_le32(binarye->binary.args[argi]); in add_binary_header_v1() 1191 secure_hdr->boxid = cpu_to_le32(e_boxid->boxid); in add_secure_header_v1() [all …]
|
| H A D | mkexynosspl.c | 161 checksum = cpu_to_le32(checksum); in main() 171 spl_size = cpu_to_le32(count + sizeof(struct var_size_header)); in main()
|
| /rk3399_rockchip-uboot/drivers/net/ |
| H A D | dc2114x.c | 182 *(volatile u_long *)(addr + dev->iobase) = cpu_to_le32(command); in OUTL() 334 rx_ring[i].status = cpu_to_le32(R_OWN); in dc21x4x_init() 335 rx_ring[i].des1 = cpu_to_le32(RX_BUFF_SZ); in dc21x4x_init() 336 rx_ring[i].buf = cpu_to_le32( in dc21x4x_init() 339 rx_ring[i].next = cpu_to_le32( in dc21x4x_init() 352 tx_ring[i].next = cpu_to_le32(phys_to_bus((u32) &tx_ring[(i+1) % NUM_TX_DESC])); in dc21x4x_init() 362 rx_ring[rxRingSize - 1].des1 |= cpu_to_le32(RD_RER); in dc21x4x_init() 363 tx_ring[txRingSize - 1].des1 |= cpu_to_le32(TD_TER); in dc21x4x_init() 389 for(i = 0; tx_ring[tx_new].status & cpu_to_le32(T_OWN); i++) { in dc21x4x_send() 396 tx_ring[tx_new].buf = cpu_to_le32(phys_to_bus((u32) packet)); in dc21x4x_send() [all …]
|
| H A D | ns8382x.c | 294 *(vu_long *) ((addr + dev->iobase)) = cpu_to_le32(command); in OUTL() 621 txd.bufptr = cpu_to_le32((u32) & txb[0]); in ns8382x_init_txd() 648 cpu_to_le32((i + 1 < in ns8382x_init_rxd() 652 rxd[i].extsts = cpu_to_le32((u32) 0x0); in ns8382x_init_rxd() 653 rxd[i].cmdsts = cpu_to_le32((u32) RX_BUF_SIZE); in ns8382x_init_rxd() 654 rxd[i].bufptr = cpu_to_le32((u32) & rxb[i * RX_BUF_SIZE]); in ns8382x_init_rxd() 748 txd.link = cpu_to_le32(0x0); in ns8382x_send() 749 txd.bufptr = cpu_to_le32(phys_to_bus((u32)packet)); in ns8382x_send() 750 txd.extsts = cpu_to_le32(0x0); in ns8382x_send() 751 txd.cmdsts = cpu_to_le32(DescOwn | length); in ns8382x_send() [all …]
|
| H A D | tsi108_eth.c | 811 cpu_to_le32((vuint32) net_rx_packets[index]); in tsi108_eth_probe() 814 cpu_to_le32((vuint32) (rx_descr + 1)); in tsi108_eth_probe() 817 rx_descr->config_status = cpu_to_le32((RX_BUFFER_SIZE << 16) | in tsi108_eth_probe() 823 rx_descr->next_descr_addr1 = cpu_to_le32(DMA_DESCR_LAST); in tsi108_eth_probe() 844 tx_descr->next_descr_addr1 = cpu_to_le32(DMA_DESCR_LAST); in tsi108_eth_probe() 846 tx_descr->config_status = cpu_to_le32(DMA_DESCR_TX_OK | in tsi108_eth_probe() 884 } while (tx_descr->config_status & cpu_to_le32(DMA_DESCR_TX_OWNER)); in tsi108_eth_send() 900 tx_descr->start_addr0 = cpu_to_le32((vuint32) packet); in tsi108_eth_send() 903 tx_descr->next_descr_addr1 = cpu_to_le32(DMA_DESCR_LAST); in tsi108_eth_send() 904 tx_descr->vlan_byte_count = cpu_to_le32(length); in tsi108_eth_send() [all …]
|
| H A D | uli526x.c | 464 txptr->tdes1 = cpu_to_le32(0xe1000000 | length); in uli526x_start_xmit() 471 txptr->tdes0 = cpu_to_le32(0x80000000); /* Set owner bit */ 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() 660 tmp_tx->tdes1 = cpu_to_le32(0x81000000); /* IC, chain */ 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() 668 (--tmp_tx)->tdes3 = cpu_to_le32(db->first_tx_desc_dma); in uli526x_descriptor_init() 675 tmp_rx->rdes0 = cpu_to_le32(0); in uli526x_descriptor_init() [all …]
|
| H A D | calxedaxgmac.c | 218 p->buf_size = cpu_to_le32(MAX_DESC_BUF_SZ | in desc_set_buf_len() 221 p->buf_size = cpu_to_le32(buf_sz); in desc_set_buf_len() 241 end->buf_size |= cpu_to_le32(RXDESC1_END_RING); in desc_init_rx_desc() 247 p[ring_size - 1].flags = cpu_to_le32(TXDESC_END_RING); in desc_init_tx_desc() 258 p->flags = cpu_to_le32(DESC_OWN); in desc_set_rx_owner() 266 p->flags = cpu_to_le32(tmpflags); in desc_set_tx_owner() 277 p->buf1_addr = cpu_to_le32(paddr); in desc_set_buf_addr() 279 p->buf2_addr = cpu_to_le32(paddr + MAX_DESC_BUF_SZ); in desc_set_buf_addr()
|
| H A D | eepro100.c | 247 *(volatile u32 *)((addr + (u_long)dev->iobase)) = cpu_to_le32(command); in OUTL() 527 cfg_cmd->link = cpu_to_le32 (phys_to_bus ((u32) & tx_ring[tx_next])); in eepro100_init() 563 ias_cmd->link = cpu_to_le32 (phys_to_bus ((u32) & tx_ring[tx_next])); in eepro100_init() 616 tx_ring[tx_cur].count = cpu_to_le32 (tx_threshold); in eepro100_send() 618 cpu_to_le32 (phys_to_bus ((u32) & tx_ring[tx_next])); in eepro100_send() 620 cpu_to_le32 (phys_to_bus ((u32) & tx_ring[tx_cur].tx_buf_addr0)); in eepro100_send() 622 cpu_to_le32 (phys_to_bus ((u_long) packet)); in eepro100_send() 623 tx_ring[tx_cur].tx_buf_size0 = cpu_to_le32 (length); in eepro100_send() 691 rx_ring[rx_next].count = cpu_to_le32 (PKTSIZE_ALIGN << 16); in eepro100_recv() 882 cpu_to_le32 (phys_to_bus in init_rx_ring() [all …]
|
| H A D | rtl8169.c | 546 cpu_to_le32((OWNbit | EORbit) + RX_BUF_SIZE); in rtl_recv_common() 549 cpu_to_le32(OWNbit + RX_BUF_SIZE); in rtl_recv_common() 551 tpc->RxDescArray[cur_rx].buf_addr = cpu_to_le32( in rtl_recv_common() 556 tpc->RxDescArray[cur_rx].buf_addr = cpu_to_le32( in rtl_recv_common() 637 tpc->TxDescArray[entry].buf_addr = cpu_to_le32( in rtl_send_common() 640 tpc->TxDescArray[entry].buf_addr = cpu_to_le32( in rtl_send_common() 645 cpu_to_le32((OWNbit | FSbit | LSbit) | in rtl_send_common() 649 cpu_to_le32((OWNbit | EORbit | FSbit | LSbit) | in rtl_send_common() 829 cpu_to_le32((OWNbit | EORbit) + RX_BUF_SIZE); in rtl8169_init_ring() 832 cpu_to_le32(OWNbit + RX_BUF_SIZE); in rtl8169_init_ring() [all …]
|
| H A D | natsemi.c | 273 *(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()
|
| /rk3399_rockchip-uboot/drivers/usb/host/ |
| H A D | xhci-mem.c | 236 prev->trbs[TRBS_PER_SEGMENT-1].link.control = cpu_to_le32(val); in xhci_link_segments() 335 cpu_to_le32(LINK_TOGGLE); in xhci_ring_alloc() 563 entry->seg_size = cpu_to_le32(TRBS_PER_SEGMENT); in xhci_mem_init() 744 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(1)); in xhci_setup_addressable_virt_dev() 773 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_SS); in xhci_setup_addressable_virt_dev() 776 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_HS); in xhci_setup_addressable_virt_dev() 779 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_FS); in xhci_setup_addressable_virt_dev() 782 slot_ctx->dev_info |= cpu_to_le32(SLOT_SPEED_LS); in xhci_setup_addressable_virt_dev() 806 slot_ctx->dev_info |= cpu_to_le32(DEV_MTT); in xhci_setup_addressable_virt_dev() 807 slot_ctx->tt_info |= cpu_to_le32(TT_PORT(port_num)); in xhci_setup_addressable_virt_dev() [all …]
|
| H A D | xhci.c | 527 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG); in xhci_set_configuration() 533 ctrl_ctx->add_flags |= cpu_to_le32(1 << (ep_flag + 1)); in xhci_set_configuration() 543 slot_ctx->dev_info &= ~(cpu_to_le32(LAST_CTX_MASK)); in xhci_set_configuration() 544 slot_ctx->dev_info |= cpu_to_le32(LAST_CTX(max_ep_flag + 1) | 0); in xhci_set_configuration() 586 cpu_to_le32(EP_MAX_ESIT_PAYLOAD_HI(max_esit_payload) | in xhci_set_configuration() 590 cpu_to_le32(ep_type << EP_TYPE_SHIFT); in xhci_set_configuration() 592 cpu_to_le32(MAX_PACKET in xhci_set_configuration() 599 cpu_to_le32(MAX_BURST(max_burst) | in xhci_set_configuration() 614 cpu_to_le32(EP_MAX_ESIT_PAYLOAD_LO(max_esit_payload) | in xhci_set_configuration() 648 ctrl_ctx->add_flags = cpu_to_le32(SLOT_FLAG | EP0_FLAG); in xhci_address_device() [all …]
|
| H A D | xhci-ring.c | 121 next->link.control &= cpu_to_le32(~TRB_CHAIN); in inc_enq() 122 next->link.control |= cpu_to_le32(chain); in inc_enq() 124 next->link.control ^= cpu_to_le32(TRB_CYCLE); in inc_enq() 192 trb->field[i] = cpu_to_le32(trb_fields[i]); in queue_trb() 243 next->link.control &= cpu_to_le32(~TRB_CHAIN); in prepare_ring() 245 next->link.control ^= cpu_to_le32(TRB_CYCLE); in prepare_ring() 370 start_trb->field[3] |= cpu_to_le32(start_cycle); in giveback_first_trb() 372 start_trb->field[3] &= cpu_to_le32(~TRB_CYCLE); in giveback_first_trb()
|
| /rk3399_rockchip-uboot/arch/mips/include/asm/mach-generic/ |
| H A D | mangle-port.h | 44 # define __mem_ioswabl(a, x) cpu_to_le32(x) 46 # define __mem_ioswabq(a, x) cpu_to_le32(x)
|
| /rk3399_rockchip-uboot/include/ |
| H A D | compiler.h | 92 # define cpu_to_le32(x) (x) macro 105 # define cpu_to_le32(x) uswap_32(x) macro
|
| /rk3399_rockchip-uboot/drivers/nvme/ |
| H A D | nvme.c | 463 c.identify.nsid = cpu_to_le32(nsid); in nvme_identify() 474 c.identify.cns = cpu_to_le32(cns); in nvme_identify() 495 c.features.nsid = cpu_to_le32(nsid); in nvme_get_features() 497 c.features.fid = cpu_to_le32(fid); in nvme_get_features() 523 c.features.fid = cpu_to_le32(fid); in nvme_set_features() 524 c.features.dword11 = cpu_to_le32(dword11); in nvme_set_features() 774 c.rw.nsid = cpu_to_le32(ns->ns_id); in nvme_blk_rw() 837 range->cattr = cpu_to_le32(0); in nvme_blk_erase() 838 range->nlb = cpu_to_le32(blkcnt); in nvme_blk_erase() 843 cmnd.dsm.nsid = cpu_to_le32(ns->ns_id); in nvme_blk_erase() [all …]
|
| /rk3399_rockchip-uboot/arch/powerpc/cpu/mpc83xx/ |
| H A D | traps.c | 117 if(immap->im_pci.pci_esr & cpu_to_le32(PCI_ERROR_PCI_NO_RSP)) { in MachineCheckException() 118 immap->im_pci.pci_esr = cpu_to_le32(PCI_ERROR_PCI_NO_RSP); in MachineCheckException()
|