/u-boot/cmd/ |
A D | mfsl.c | 20 unsigned int num; in do_frd() local 37 case 0: NGET (num, 0); in do_frd() 39 case 1: NCGET (num, 0); in do_frd() 41 case 2: GET (num, 0); in do_frd() 43 case 3: CGET (num, 0); in do_frd() 53 case 0: NGET (num, 1); in do_frd() 57 case 2: GET (num, 1); in do_frd() 59 case 3: CGET (num, 1); in do_frd() 73 case 2: GET (num, 2); in do_frd() 89 case 2: GET (num, 3); in do_frd() [all …]
|
A D | jffs2.c | 158 if (num < CONFIG_SYS_MAX_FLASH_BANKS) { in mtd_device_validate() 160 *size = flash_info[num].size; in mtd_device_validate() 172 struct mtd_info *mtd = get_nand_dev_by_index(num); in mtd_device_validate() 251 mtd = get_nand_dev_by_index(id->num); in get_part_sector_size_nand() 269 flash = &flash_info[id->num]; in get_part_sector_size_nor() 379 id->type, id->num, id->size, id->mtd_id); in mtdparts_init() 433 int num; in jffs2_part_info() local 440 dev->id->num, dev->id->mtd_id); in jffs2_part_info() 445 dev->id->num, dev->id->mtd_id); in jffs2_part_info() 450 num = 0; in jffs2_part_info() [all …]
|
/u-boot/drivers/ata/ |
A D | sata_sil3114.c | 29 u8 sil3114_spin_up (int num); 30 u8 sil3114_spin_down (int num); 64 port[num].dev_mask = 1; in sata_bus_softreset() 67 writeb (port[num].ctl_reg, port[num].ioaddr.ctl_addr); in sata_bus_softreset() 69 writeb (port[num].ctl_reg | ATA_SRST, port[num].ioaddr.ctl_addr); in sata_bus_softreset() 71 writeb (port[num].ctl_reg, port[num].ioaddr.ctl_addr); in sata_bus_softreset() 100 port[num].dev_mask = 0; in sata_bus_softreset() 130 port[num].dev_mask &= ~0x01; in sata_identify() 254 u8 sil3114_spin_up (int num) in sil3114_spin_up() argument 375 switch (num) { in wait_for_irq() [all …]
|
/u-boot/common/ |
A D | cli_readline.c | 183 num--; \ 221 memmove(&buf[*num+1], &buf[*num], wlen-1); in cread_add_char() 225 (*num)++; in cread_add_char() 233 (*num)++; in cread_add_char() 391 num++; in cread_line() 395 if (num) { in cread_line() 397 num--; in cread_line() 404 memmove(&buf[num], &buf[num+1], wlen); in cread_line() 432 if (num) { in cread_line() 434 num--; in cread_line() [all …]
|
/u-boot/include/asm-generic/bitops/ |
A D | __ffs.h | 14 int num = 0; in __ffs() local 18 num += 32; in __ffs() 23 num += 16; in __ffs() 27 num += 8; in __ffs() 31 num += 4; in __ffs() 35 num += 2; in __ffs() 39 num += 1; in __ffs() 40 return num; in __ffs()
|
A D | __fls.h | 14 int num = BITS_PER_LONG - 1; in __fls() local 18 num -= 32; in __fls() 23 num -= 16; in __fls() 27 num -= 8; in __fls() 31 num -= 4; in __fls() 35 num -= 2; in __fls() 39 num -= 1; in __fls() 40 return num; in __fls()
|
/u-boot/test/lib/ |
A D | efi_image_region.c | 24 ut_asserteq(0, regs->num); in lib_test_efi_image_region_add() 28 ut_asserteq(0, regs->num); in lib_test_efi_image_region_add() 32 ut_asserteq(1, regs->num); in lib_test_efi_image_region_add() 36 ut_asserteq(2, regs->num); in lib_test_efi_image_region_add() 40 ut_asserteq(3, regs->num); in lib_test_efi_image_region_add() 44 ut_asserteq(4, regs->num); in lib_test_efi_image_region_add() 48 ut_asserteq(5, regs->num); in lib_test_efi_image_region_add() 82 ut_asserteq(0, regs->num); in lib_test_efi_image_region_sort() 86 ut_asserteq(0, regs->num); in lib_test_efi_image_region_sort() 90 ut_asserteq(1, regs->num); in lib_test_efi_image_region_sort() [all …]
|
/u-boot/board/freescale/ls1021aqds/ |
A D | eth.c | 136 int num = 0; in board_eth_init() local 139 SET_STD_TSEC_INFO(tsec_info[num], 1); in board_eth_init() 142 tsec_info[num].flags |= TSEC_SGMII; in board_eth_init() 147 num++; in board_eth_init() 150 SET_STD_TSEC_INFO(tsec_info[num], 2); in board_eth_init() 153 tsec_info[num].flags |= TSEC_SGMII; in board_eth_init() 158 num++; in board_eth_init() 161 SET_STD_TSEC_INFO(tsec_info[num], 3); in board_eth_init() 163 num++; in board_eth_init() 165 if (!num) { in board_eth_init() [all …]
|
/u-boot/arch/arm/mach-kirkwood/ |
A D | mpp.c | 54 unsigned int num = MPP_NUM(*mpp_list); in kirkwood_mpp_conf() local 59 if (num > MPP_MAX) { in kirkwood_mpp_conf() 61 "number (%u)\n", num); in kirkwood_mpp_conf() 66 "unavailable on this hardware\n", num); in kirkwood_mpp_conf() 70 shift = (num & 7) << 2; in kirkwood_mpp_conf() 73 sel_save = (mpp_ctrl[num / 8] >> shift) & 0xf; in kirkwood_mpp_conf() 74 *mpp_save = num | (sel_save << 8) | variant_mask; in kirkwood_mpp_conf() 78 mpp_ctrl[num / 8] &= ~(0xf << shift); in kirkwood_mpp_conf() 79 mpp_ctrl[num / 8] |= sel << shift; in kirkwood_mpp_conf()
|
/u-boot/include/ |
A D | virtio_ring.h | 78 unsigned int num; member 125 #define vring_used_event(vr) ((vr)->avail->ring[(vr)->num]) 126 #define vring_avail_event(vr) (*(__virtio16 *)&(vr)->used->ring[(vr)->num]) 128 static inline void vring_init(struct vring *vr, unsigned int num, void *p, in vring_init() argument 131 vr->num = num; in vring_init() 133 vr->avail = p + num * sizeof(struct vring_desc); in vring_init() 134 vr->used = (void *)(((uintptr_t)&vr->avail->ring[num] + in vring_init() 138 static inline unsigned int vring_size(unsigned int num, unsigned long align) in vring_size() argument 140 return ((sizeof(struct vring_desc) * num + in vring_size() 141 sizeof(__virtio16) * (3 + num) + align - 1) & ~(align - 1)) + in vring_size() [all …]
|
A D | netdev.h | 86 int num = 0; in pci_eth_init() local 91 num += eepro100_initialize(bis); in pci_eth_init() 94 num += dc21x4x_initialize(bis); in pci_eth_init() 97 num += e1000_initialize(bis); in pci_eth_init() 100 num += pcnet_initialize(bis); in pci_eth_init() 103 num += natsemi_initialize(bis); in pci_eth_init() 106 num += ns8382x_initialize(bis); in pci_eth_init() 109 num += rtl8139_initialize(bis); in pci_eth_init() 112 num += rtl8169_initialize(bis); in pci_eth_init() 115 num += uli526x_initialize(bis); in pci_eth_init() [all …]
|
A D | tsec.h | 34 #define TSEC_GET_REGS(num, offset) \ argument 38 #define TSEC_GET_REGS_BASE(num) \ argument 39 TSEC_GET_REGS((num), TSEC_SIZE) 50 #define STD_TSEC_INFO(num) \ argument 52 .regs = TSEC_GET_REGS_BASE(num), \ 55 .phyaddr = TSEC##num##_PHY_ADDR, \ 56 .flags = TSEC##num##_FLAGS, \ 60 #define SET_STD_TSEC_INFO(x, num) \ argument 62 x.regs = TSEC_GET_REGS_BASE(num); \ 66 x.flags = TSEC##num##_FLAGS;\ [all …]
|
/u-boot/arch/powerpc/include/asm/ |
A D | fsl_pci.h | 194 #define SET_STD_PCI_INFO(x, num) \ argument 196 x.regs = CONFIG_SYS_PCI##num##_ADDR; \ 197 x.mem_bus = CONFIG_SYS_PCI##num##_MEM_BUS; \ 200 x.io_bus = CONFIG_SYS_PCI##num##_IO_BUS; \ 203 x.law = LAW_TRGT_IF_PCI_##num; \ 204 x.pci_num = num; \ 207 #define SET_STD_PCIE_INFO(x, num) \ argument 209 x.regs = CONFIG_SYS_PCIE##num##_ADDR; \ 213 x.io_bus = CONFIG_SYS_PCIE##num##_IO_BUS; \ 216 x.law = LAW_TRGT_IF_PCIE_##num; \ [all …]
|
/u-boot/arch/arm/mach-omap2/ |
A D | utils.c | 13 static void do_cancel_out(u32 *num, u32 *den, u32 factor) in do_cancel_out() argument 16 if (((*num)/factor*factor == (*num)) && in do_cancel_out() 18 (*num) /= factor; in do_cancel_out() 161 do_cancel_out(num, den, 2); in cancel_out() 162 do_cancel_out(num, den, 3); in cancel_out() 163 do_cancel_out(num, den, 5); in cancel_out() 164 do_cancel_out(num, den, 7); in cancel_out() 165 do_cancel_out(num, den, 11); in cancel_out() 166 do_cancel_out(num, den, 13); in cancel_out() 167 do_cancel_out(num, den, 17); in cancel_out() [all …]
|
/u-boot/arch/x86/lib/ |
A D | div64.c | 19 u64 __ashldi3(u64 num, unsigned int shift) in __ashldi3() argument 23 output.longw = num; in __ashldi3() 29 return num; in __ashldi3() 37 u64 __lshrdi3(u64 num, unsigned int shift) in __lshrdi3() argument 41 output.longw = num; in __lshrdi3() 47 return num; in __lshrdi3() 101 u64 __udivdi3(u64 num, u64 den) in __udivdi3() argument 103 return _64bit_divide(num, den, NULL); in __udivdi3() 106 u64 __umoddi3(u64 num, u64 den) in __umoddi3() argument 110 _64bit_divide(num, den, &v); in __umoddi3()
|
/u-boot/drivers/ddr/imx/imx8m/ |
A D | ddrphy_train.c | 17 unsigned int num; in ddr_cfg_phy() local 24 num = dram_timing->ddrphy_cfg_num; in ddr_cfg_phy() 25 for (i = 0; i < num; i++) { in ddr_cfg_phy() 44 num = fsp_msg->fsp_cfg_num; in ddr_cfg_phy() 45 for (j = 0; j < num; j++) { in ddr_cfg_phy() 89 num = dram_timing->ddrphy_pie_num; in ddr_cfg_phy() 90 for (i = 0; i < num; i++) { in ddr_cfg_phy()
|
/u-boot/lib/ |
A D | tiny-printf.c | 41 while (*num >= div) { in div_out() 42 *num -= div; in div_out() 175 num = *(phys_addr_t *)ptr; in pointer() 195 div_out(info, &num, div); in pointer() 203 unsigned long num; in _vprintf() local 257 num = -(long)num; in _vprintf() 260 num = -(int)num; in _vprintf() 264 if (!num) { in _vprintf() 268 div_out(info, &num, div); in _vprintf() 294 if (!num) { in _vprintf() [all …]
|
A D | vsprintf.c | 134 if (num < 100000) in put_dec() 136 rem = do_div(num, 100000); in put_dec() 178 if ((s64) num < 0) { in number() 180 num = -(s64) num; in number() 198 if (num == 0) in number() 215 num >>= shift; in number() 216 } while (num); in number() 511 u64 num; in vsnprintf_internal() local 685 num = (signed long) num; in vsnprintf_internal() 693 num = (signed short) num; in vsnprintf_internal() [all …]
|
/u-boot/arch/arm/cpu/armv7/ |
A D | mpu_v7r.c | 88 u32 num, i; in setup_mpu_regions() local 90 asm volatile ("mrc p15, 0, %0, c0, c0, 4" : "=r" (num)); in setup_mpu_regions() 91 num = (num & MPUIR_DREGION_MASK) >> MPUIR_DREGION_SHIFT; in setup_mpu_regions() 93 if (num < num_rgns) in setup_mpu_regions() 94 num_rgns = num; in setup_mpu_regions()
|
/u-boot/drivers/usb/gadget/ |
A D | ci_udc.c | 270 int num = -1; in ci_ep_alloc_request() local 285 if (num == 0) in ci_ep_alloc_request() 295 int num = -1; in ci_ep_free_request() local 300 if (num == 0) { in ci_ep_free_request() 322 if (num != 0) { in ep_enable() 326 ci_flush_qh(num); in ep_enable() 335 int num, in; in ci_ep_enable() local 341 if (num) { in ci_ep_enable() 527 ci_flush_qh(num); in ci_ep_submit_next_request() 774 int i, num, in; in stop_activity() local [all …]
|
/u-boot/drivers/virtio/ |
A D | virtio_ring.c | 186 if (unlikely(i >= vq->vring.num)) { in virtqueue_get_buf() 222 vq->num_free = vring.num; in __vring_new_virtqueue() 240 for (i = 0; i < vring.num - 1; i++) in __vring_new_virtqueue() 255 if (num & (num - 1)) { in vring_create_virtqueue() 261 for (; num && vring_size(num, vring_align) > PAGE_SIZE; num /= 2) { in vring_create_virtqueue() 267 if (!num) in vring_create_virtqueue() 286 queue, vq, num); in vring_create_virtqueue() 300 return vq->vring.num; in virtqueue_get_vring_size() 340 for (i = 0; i < vq->vring.num; i++) { in virtqueue_dump() 349 for (i = 0; i < vq->vring.num; i++) { in virtqueue_dump() [all …]
|
/u-boot/board/freescale/mpc8548cds/ |
A D | mpc8548cds.c | 314 int num = 0; in board_eth_init() local 317 SET_STD_TSEC_INFO(tsec_info[num], 1); in board_eth_init() 318 num++; in board_eth_init() 321 SET_STD_TSEC_INFO(tsec_info[num], 2); in board_eth_init() 322 num++; in board_eth_init() 327 SET_STD_TSEC_INFO(tsec_info[num], 3); in board_eth_init() 329 num++; in board_eth_init() 335 SET_STD_TSEC_INFO(tsec_info[num], 4); in board_eth_init() 337 num++; in board_eth_init() 341 if (!num) { in board_eth_init() [all …]
|
/u-boot/board/freescale/ls1021aiot/ |
A D | ls1021aiot.c | 116 int num = 0; in board_eth_init() local 119 SET_STD_TSEC_INFO(tsec_info[num], 1); in board_eth_init() 122 tsec_info[num].flags |= TSEC_SGMII; in board_eth_init() 124 num++; in board_eth_init() 127 SET_STD_TSEC_INFO(tsec_info[num], 2); in board_eth_init() 130 tsec_info[num].flags |= TSEC_SGMII; in board_eth_init() 132 num++; in board_eth_init() 134 if (!num) { in board_eth_init() 143 tsec_eth_init(bis, tsec_info, num); in board_eth_init()
|
/u-boot/tools/ |
A D | zynqmp_pm_cfg_obj_convert.py | 269 num = int(num_match.group(1)) 270 logging.debug(" - num " + str(num)) 271 value |= num 277 num = pm_define[name] 278 logging.debug(" - def " + hex(num)) 279 value |= num
|
/u-boot/board/Arcturus/ucp1020/ |
A D | ucp1020.c | 272 int num = 0; in board_eth_init() local 275 SET_STD_TSEC_INFO(tsec_info[num], 1); in board_eth_init() 276 num++; in board_eth_init() 279 SET_STD_TSEC_INFO(tsec_info[num], 2); in board_eth_init() 283 tsec_info[num].flags |= TSEC_SGMII; in board_eth_init() 284 tsec_info[num].phyaddr = TSEC2_PHY_ADDR_SGMII; in board_eth_init() 287 num++; in board_eth_init() 290 SET_STD_TSEC_INFO(tsec_info[num], 3); in board_eth_init() 291 num++; in board_eth_init() 294 if (!num) { in board_eth_init() [all …]
|