Searched refs:ptr (Results 151 - 175 of 371) sorted by relevance

1234567891011>>

/u-boot/cmd/
H A Dmem.c374 u8 *ptr, *end, *buf; local
425 for (i = 2, ptr = search_buf; i < argc && ptr < end; i++) {
429 *(u64 *)ptr = val;
432 (size_t)(end - ptr));
434 memcpy(ptr, argv[i], len);
435 ptr += len;
442 *ptr = val;
445 *(u16 *)ptr = val;
448 *(u32 *)ptr
468 void *ptr = buf + offset; local
1154 void *ptr = NULL; local
[all...]
/u-boot/drivers/core/
H A Dtag.c37 int dev_tag_set_ptr(struct udevice *dev, enum dm_tag_t tag, void *ptr) argument
55 node->ptr = ptr;
94 *ptrp = node->ptr;
H A Ddevice.c49 void *ptr; local
119 ptr = calloc(1, drv->plat_auto);
120 if (!ptr) {
130 memcpy(ptr, plat, of_plat_size);
131 dev_set_plat(dev, ptr);
138 ptr = calloc(1, size);
139 if (!ptr) {
143 dev_set_uclass_plat(dev, ptr);
152 ptr = calloc(1, size);
153 if (!ptr) {
350 void *ptr; local
[all...]
/u-boot/lib/efi/
H A Defi.c62 static void efi_memset(void *ptr, int ch, int size) argument
64 char *dest = ptr;
131 void efi_free(struct efi_priv *priv, void *ptr) argument
135 boot->free_pool(ptr);
/u-boot/lib/libavb/
H A Davb_sysdeps.h97 void avb_free(void* ptr);
/u-boot/drivers/ddr/fsl/
H A Dfsl_mmdc.c15 static void set_wait_for_bits_clear(void *ptr, u32 value, u32 bits) argument
19 out_be32(ptr, value);
21 while (in_be32(ptr) & bits) {
26 printf("Error: %p wait for clear timeout.\n", ptr);
/u-boot/drivers/gpio/
H A Dsifive-gpio.c39 void __iomem *ptr = (void __iomem *)bptr; local
42 u32 old = readl(ptr);
45 writel(old | bit, ptr);
47 writel(old & ~bit, ptr);
/u-boot/arch/x86/lib/
H A Dtables.c166 void *ptr = (void *)CONFIG_ROM_TABLE_ADDR; local
172 acpi_write_rsdp(ptr, ctx->rsdt, ctx->xsdt);
173 ptr += ALIGN(sizeof(struct acpi_rsdp), 16);
181 memcpy(ptr, smbios, sizeof(struct smbios_entry));
/u-boot/tools/
H A Drenesas_spkgimage.c138 static int spkgimage_verify_header(unsigned char *ptr, int size, argument
141 struct spkg_file *file = (struct spkg_file *)ptr;
142 struct spkg_hdr *header = (struct spkg_hdr *)ptr;
156 crc = crc32(0, ptr, SPKG_HEADER_SIZE - SPKG_CRC_SIZE);
185 static void spkgimage_print_header(const void *ptr, argument
188 const struct spkg_hdr *h = ptr;
284 static void spkgimage_set_header(void *ptr, struct stat *sbuf, int ifd, argument
287 uint8_t *payload = ptr + SPKG_HEADER_SIZE * SPKG_HEADER_COUNT;
H A Datmelimage.c114 static int atmel_verify_header(unsigned char *ptr, int image_size, argument
117 uint32_t *ints = (uint32_t *)ptr;
185 static void atmel_print_header(const void *ptr, struct image_tool_params *params) argument
187 uint32_t *ints = (uint32_t *)ptr;
206 static void atmel_set_header(void *ptr, struct stat *sbuf, int ifd, argument
210 uint32_t *ints = (uint32_t *)ptr;
H A Dimx8image.c28 static void imx8image_set_header(void *ptr, struct stat *sbuf, int ifd, argument
33 static void imx8image_print_header(const void *ptr, struct image_tool_params *params) argument
310 unsigned char *ptr; local
338 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0);
339 if (ptr == MAP_FAILED) {
353 if (write(ifd, ptr, size) != size) {
365 munmap((void *)ptr, sbuf.st_size);
374 unsigned char *ptr; local
398 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0);
399 if (ptr
451 uint8_t *ptr; local
756 uint8_t *ptr = NULL; local
[all...]
H A Dkwbimage.c569 const unsigned char *ptr; local
574 ptr = src->key;
575 rsa = d2i_RSAPublicKey(key, &ptr, sizeof(src->key));
814 uint8_t *ptr; local
826 ptr = kak_pub_hash.hash;
831 fprintf(out, "%02hx", (ushort)ptr[i]);
832 ptr += 4;
837 fprintf(out, "%02hx", (ushort)ptr[i]);
838 ptr += 3;
1479 uint8_t *ptr, in
1478 image_create_v1(size_t *dataoff, struct image_tool_params *params, uint8_t *ptr, int payloadsz) argument
1902 kwbimage_set_header(void *ptr, struct stat *sbuf, int ifd, struct image_tool_params *params) argument
1995 kwbimage_print_header(const void *ptr, struct image_tool_params *params) argument
2049 kwbimage_verify_header(unsigned char *ptr, int image_size, struct image_tool_params *params) argument
2289 kwbimage_generate_config(void *ptr, struct image_tool_params *params) argument
2509 kwbimage_extract_subimage(void *ptr, struct image_tool_params *params) argument
[all...]
/u-boot/drivers/misc/
H A Di2c_eeprom_emul.c88 u8 *ptr; local
115 ptr = msg->buf;
117 offset = (offset << 8) | *ptr++;
136 memcpy(priv->data + offset, ptr, initial);
137 memcpy(priv->data, ptr + initial, overflow);
139 memcpy(priv->data + offset, ptr, len);
/u-boot/include/linux/
H A Dlist.h322 * @ptr: the &struct list_head pointer.
326 #define list_entry(ptr, type, member) \
327 container_of(ptr, type, member)
331 * @ptr: the list head to take the element from.
337 #define list_first_entry(ptr, type, member) \
338 list_entry((ptr)->next, type, member)
342 * @ptr: the list head to take the element from.
348 #define list_last_entry(ptr, type, member) \
349 list_entry((ptr)->prev, type, member)
353 * @ptr
[all...]
/u-boot/drivers/bios_emulator/
H A Datibios.c93 const u16 *modes_bios, *ptr; local
120 for (ptr = modes_bios; *ptr != 0xffff; ptr++)
121 debug("%x ", le16_to_cpu(*ptr));
123 size = (ptr - modes_bios) * sizeof(u16) + 2;
137 for (ptr = modes; *ptr != 0xffff; ptr++) {
138 int mode = le16_to_cpu(*ptr);
[all...]
/u-boot/drivers/net/
H A Dxilinx_axi_mrmac.c236 * @ptr: pointer to Tx buffer
244 static int axi_mrmac_send(struct udevice *dev, void *ptr, int len) argument
250 print_buffer(ptr, ptr, 1, len, 16);
258 memcpy(priv->txminframe, ptr, len);
260 ptr = priv->txminframe;
268 flush_cache((phys_addr_t)ptr, len);
274 priv->tx_bd[0]->buf_addr = lower_32_bits((u64)ptr);
278 priv->tx_bd[1]->buf_addr = lower_32_bits((u64)ptr + len / 2);
282 priv->tx_bd[0]->buf_addr_msb = upper_32_bits((u64)ptr);
[all...]
/u-boot/arch/x86/cpu/ivybridge/
H A Dlpc.c88 uint8_t route[8], *ptr; local
93 ptr = route;
94 dm_pci_write_config8(pch, PIRQA_ROUT, *ptr++);
95 dm_pci_write_config8(pch, PIRQB_ROUT, *ptr++);
96 dm_pci_write_config8(pch, PIRQC_ROUT, *ptr++);
97 dm_pci_write_config8(pch, PIRQD_ROUT, *ptr++);
99 dm_pci_write_config8(pch, PIRQE_ROUT, *ptr++);
100 dm_pci_write_config8(pch, PIRQF_ROUT, *ptr++);
101 dm_pci_write_config8(pch, PIRQG_ROUT, *ptr++);
102 dm_pci_write_config8(pch, PIRQH_ROUT, *ptr
[all...]
/u-boot/arch/arm/mach-sunxi/
H A Ddram_sun50i_h616.c595 u32 *ptr, val; local
610 ptr = (u32 *)(SUNXI_DRAM_PHY0_BASE + 0x484);
612 writel_relaxed(val, ptr);
613 writel_relaxed(val, ptr + 0x30);
614 ptr += 2;
632 ptr = (u32 *)(SUNXI_DRAM_PHY0_BASE + 0x4d8);
634 writel_relaxed(val, ptr);
635 writel_relaxed(val, ptr + 0x30);
636 ptr += 2;
654 ptr
799 u32 val, *ptr; local
881 u32 val, val2, *ptr, mr0, mr2; local
[all...]
/u-boot/arch/mips/mach-octeon/include/mach/
H A Dcvmx-regs.h403 static inline u64 cvmx_ptr_to_phys(void *ptr) argument
405 return virt_to_phys(ptr);
495 * @param ptr address in memory to add incr to
500 static inline int32_t cvmx_atomic_fetch_and_add32(int32_t * ptr, int32_t incr) argument
504 val = *ptr;
505 *ptr += incr;
517 * @param ptr address in memory to add incr to
520 static inline void cvmx_atomic_add32_nosync(int32_t * ptr, int32_t incr) argument
522 *ptr += incr;
/u-boot/arch/sandbox/cpu/
H A Dos.c220 void *ptr; local
241 ptr = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, ifd, 0);
242 if (ptr == MAP_FAILED) {
248 *bufp = ptr;
269 char *ptr; local
276 ptr = buf;
278 strcpy(ptr, dirname);
279 ptr += strlen(dirname);
280 *ptr++ = '/';
282 strcpy(ptr, fnam
429 os_free(void *ptr) argument
449 os_realloc(void *ptr, size_t length) argument
1111 fuzzer_thread(void * ptr) argument
[all...]
/u-boot/drivers/remoteproc/
H A Drproc-elf-loader.c215 void *ptr; local
238 ptr = (void *)(uintptr_t)da;
240 ptr = ops->device_to_virt(dev, da, phdr->p_memsz);
241 if (!ptr) {
250 memcpy(ptr, (void *)addr + offset, filesz);
252 memset(ptr + filesz, 0x00, memsz - filesz);
254 flush_cache(rounddown((ulong)ptr, ARCH_DMA_MINALIGN),
255 roundup((ulong)ptr + filesz, ARCH_DMA_MINALIGN) -
256 rounddown((ulong)ptr, ARCH_DMA_MINALIGN));
/u-boot/arch/arm/mach-tegra/
H A Dcboot.c558 static char *strip(const char *ptr) argument
562 while (*ptr && isblank(*ptr))
563 ptr++;
566 if (*ptr == '\0')
567 return strdup(ptr);
569 end = ptr;
577 return strndup(ptr, end - ptr + 1);
/u-boot/include/dm/
H A Ddevres.h201 * @ptr: Memory to free
205 void devm_kfree(struct udevice *dev, void *ptr);
282 static inline void devm_kfree(struct udevice *dev, void *ptr) argument
284 kfree(ptr);
/u-boot/lib/crypto/
H A Drsa_helper.c29 const u8 *ptr = value; local
39 while (n_sz && !*ptr) {
40 ptr++;
/u-boot/board/sandbox/
H A Dsandbox.c160 void *ptr; local
176 ptr = memalign(SZ_4K, SZ_64K);
177 addr = map_to_sysmem(ptr);

Completed in 177 milliseconds

1234567891011>>