| /openbmc/u-boot/lib/ |
| H A D | strto.c | 33 unsigned long simple_strtoul(const char *cp, char **endp, in simple_strtoul() argument 39 cp = _parse_integer_fixup_radix(cp, &base); in simple_strtoul() 41 while (isxdigit(*cp) && (value = isdigit(*cp) ? *cp-'0' : (islower(*cp) in simple_strtoul() 42 ? toupper(*cp) : *cp)-'A'+10) < base) { in simple_strtoul() 44 cp++; in simple_strtoul() 48 *endp = (char *)cp; in simple_strtoul() 53 int strict_strtoul(const char *cp, unsigned int base, unsigned long *res) in strict_strtoul() argument 60 len = strlen(cp); in strict_strtoul() 64 val = simple_strtoul(cp, &tail, base); in strict_strtoul() 65 if (tail == cp) in strict_strtoul() [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-networking/recipes-daemons/tftp-hpa/files/ |
| H A D | tftp-hpa-0.49-fortify-strcpy-crash.patch | 13 char *cp; 17 cp = (char *)&(tp->th_stuff); 18 - strcpy(cp, name); 19 - cp += strlen(name); 20 - *cp++ = '\0'; 21 - strcpy(cp, mode); 22 - cp += strlen(mode); 23 - *cp++ = '\0'; 25 + memcpy(cp, name, len); 26 + cp += len; [all …]
|
| H A D | tftp-0.49-cmd_arg.patch | 86 char *cp, *targ; 95 - cp = strchr(targ, '\0'); 96 - *cp++ = '/'; 103 + cp = remote_pth + dirlen; 109 + cp = remote_pth + dirlen; 113 strcpy(cp, tail(argv[n])); 142 char *cp; 153 for (cp = line; *cp;) { 156 *argp++ = cp; 163 while (*cp != '\0' && !isspace(*cp)) [all …]
|
| /openbmc/u-boot/fs/yaffs2/ |
| H A D | yaffs_yaffs2.c | 253 struct yaffs_checkpt_validity cp; in yaffs2_wr_checkpt_validity_marker() local 255 memset(&cp, 0, sizeof(cp)); in yaffs2_wr_checkpt_validity_marker() 257 cp.struct_type = sizeof(cp); in yaffs2_wr_checkpt_validity_marker() 258 cp.magic = YAFFS_MAGIC; in yaffs2_wr_checkpt_validity_marker() 259 cp.version = YAFFS_CHECKPOINT_VERSION; in yaffs2_wr_checkpt_validity_marker() 260 cp.head = (head) ? 1 : 0; in yaffs2_wr_checkpt_validity_marker() 262 return (yaffs2_checkpt_wr(dev, &cp, sizeof(cp)) == sizeof(cp)) ? 1 : 0; in yaffs2_wr_checkpt_validity_marker() 267 struct yaffs_checkpt_validity cp; in yaffs2_rd_checkpt_validity_marker() local 270 ok = (yaffs2_checkpt_rd(dev, &cp, sizeof(cp)) == sizeof(cp)); in yaffs2_rd_checkpt_validity_marker() 273 ok = (cp.struct_type == sizeof(cp)) && in yaffs2_rd_checkpt_validity_marker() [all …]
|
| /openbmc/qemu/util/ |
| H A D | unicode.c | 67 int cp; in mod_utf8_codepoint() local 78 cp = byte; /* one byte sequence */ in mod_utf8_codepoint() 80 cp = -1; /* impossible bytes 0xFE, 0xFF */ in mod_utf8_codepoint() 82 cp = -1; /* unexpected continuation byte */ in mod_utf8_codepoint() 90 cp = byte & (mask - 1); in mod_utf8_codepoint() 94 cp = -1; /* continuation byte missing */ in mod_utf8_codepoint() 98 cp <<= 6; in mod_utf8_codepoint() 99 cp |= byte & 0x3F; in mod_utf8_codepoint() 101 if (!is_valid_codepoint(cp)) { in mod_utf8_codepoint() 102 cp = -1; in mod_utf8_codepoint() [all …]
|
| /openbmc/u-boot/drivers/spi/ |
| H A D | mpc8xx_spi.c | 35 cpm8xx_t __iomem *cp = &immr->im_cpm; in mpc8xx_spi_probe() local 36 spi_t __iomem *spi = (spi_t __iomem *)&cp->cp_dparam[PROFF_SPI]; in mpc8xx_spi_probe() 55 clrsetbits_be32(&cp->cp_pbpar, 0x00000001, 0x0000000E); /* set bits */ in mpc8xx_spi_probe() 64 setbits_be32(&cp->cp_pbdir, 0x0000000F); in mpc8xx_spi_probe() 74 clrsetbits_be16(&cp->cp_pbodr, 0x00000007, 0x00000008); in mpc8xx_spi_probe() 109 while (in_be16(&cp->cp_cpcr) & CPM_CR_FLG) in mpc8xx_spi_probe() 112 out_be16(&cp->cp_cpcr, mk_cr_cmd(CPM_CR_CH_SPI, CPM_CR_INIT_TRX) | in mpc8xx_spi_probe() 114 while (in_be16(&cp->cp_cpcr) & CPM_CR_FLG) in mpc8xx_spi_probe() 132 tbdf = (cbd_t __iomem *)&cp->cp_dpmem[CPM_SPI_BASE_TX]; in mpc8xx_spi_probe() 133 rbdf = (cbd_t __iomem *)&cp->cp_dpmem[CPM_SPI_BASE_RX]; in mpc8xx_spi_probe() [all …]
|
| /openbmc/openbmc/poky/meta/recipes-kernel/linux/ |
| H A D | kernel-devsrc.bb | 63 cp --parents $(find -type f -name "Makefile*" -o -name "Kconfig*") $kerneldir/build 64 cp --parents $(find -type f -name "Build" -o -name "Build.include") $kerneldir/build 76 cp Module.symvers $kerneldir/build 78 cp System.map-* $kerneldir/build 81 cp Module.markers $kerneldir/build 84 cp -a .config $kerneldir/build 90 # cp -a scripts $kerneldir/build 96 cp -a --parents scripts/module.lds $kerneldir/build/ 2>/dev/null || : 99 cp -a arch/${ARCH}/scripts $kerneldir/build/arch/${ARCH} 102 cp -a arch/${ARCH}/*lds $kerneldir/build/arch/${ARCH} [all …]
|
| /openbmc/u-boot/cmd/ |
| H A D | spi.c | 101 char *cp = 0; in do_spi() local 114 bus = simple_strtoul(argv[1], &cp, 10); in do_spi() 115 if (*cp == ':') { in do_spi() 116 cs = simple_strtoul(cp+1, &cp, 10); in do_spi() 121 if (*cp == '.') in do_spi() 122 mode = simple_strtoul(cp+1, NULL, 10); in do_spi() 127 cp = argv[3]; in do_spi() 128 for(j = 0; *cp; j++, cp++) { in do_spi() 129 tmp = *cp - '0'; in do_spi() 135 printf("Hex conversion error on %c\n", *cp); in do_spi()
|
| H A D | dtimg.c | 109 cmd_tbl_t *cp; in do_dtimg() local 111 cp = find_cmd_tbl(argv[1], cmd_dtimg_sub, ARRAY_SIZE(cmd_dtimg_sub)); in do_dtimg() 117 if (!cp || argc > cp->maxargs) in do_dtimg() 119 if (flag == CMD_FLAG_REPEAT && !cmd_is_repeatable(cp)) in do_dtimg() 122 return cp->cmd(cmdtp, flag, argc, argv); in do_dtimg()
|
| H A D | bootcount.c | 33 cmd_tbl_t *cp; in do_bootcount() local 42 cp = find_cmd_tbl(argv[0], bootcount_sub, ARRAY_SIZE(bootcount_sub)); in do_bootcount() 43 if (cp) in do_bootcount() 44 return cp->cmd(cmdtp, flag, argc, argv); in do_bootcount()
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/atop/atop/ |
| H A D | fix-permissions.patch | 21 cp atopacct.service $(DESTDIR)$(SYSDPATH) 23 cp atop-pm.sh $(DESTDIR)$(PMPATHD) 30 cp atopacct.init $(DESTDIR)$(INIPATH)/atopacct 31 cp atop.cronsysv $(DESTDIR)$(CRNPATH)/atop 32 cp atop.daily $(DESTDIR)$(SCRPATH) 39 then cp 45atoppm $(DESTDIR)$(PMPATH1); \ 44 then cp 45atoppm $(DESTDIR)$(PMPATH2); \ 53 cp atop $(DESTDIR)$(BINPATH)/atop 57 cp atopacctd $(DESTDIR)$(SBINPATH)/atopacctd 60 cp atop $(DESTDIR)$(BINPATH)/atop-$(VERS) [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/sanlock/sanlock/ |
| H A D | 0001-sanlock-Replace-cp-a-with-cp-R-no-dereference-preser.patch | 4 Subject: [PATCH] sanlock: Replace "cp -a" with "cp -R --no-dereference 7 Using "cp -a" leaks UID of user running the builds 25 - cp -a $(LIB_ENTIRE_TARGET).so $(DESTDIR)/$(LIBDIR) 26 - cp -a $(LIB_CLIENT_TARGET).so $(DESTDIR)/$(LIBDIR) 27 - cp -a $(LIB_ENTIRE_TARGET).so.$(SOMAJOR) $(DESTDIR)/$(LIBDIR) 28 - cp -a $(LIB_CLIENT_TARGET).so.$(SOMAJOR) $(DESTDIR)/$(LIBDIR) 29 + cp -R --no-dereference --preserve=mode,links $(LIB_ENTIRE_TARGET).so $(DESTDIR)/$(LIBDIR) 30 + cp -R --no-dereference --preserve=mode,links $(LIB_CLIENT_TARGET).so $(DESTDIR)/$(LIBDIR) 31 + cp -R --no-dereference --preserve=mode,links $(LIB_ENTIRE_TARGET).so.$(SOMAJOR) $(DESTDIR)/$(LIBD… 32 + cp -R --no-dereference --preserve=mode,links $(LIB_CLIENT_TARGET).so.$(SOMAJOR) $(DESTDIR)/$(LIBD… [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-networking/recipes-extended/dlm/dlm/ |
| H A D | 0001-make-Replace-cp-a-with-mode-preserving-options.patch | 4 Subject: [PATCH] make: Replace cp -a with mode preserving options 23 - cp -a $(LIB_SO) $(DESTDIR)/$(LIBDIR) 24 - cp -a $(LIB_SMAJOR) $(DESTDIR)/$(LIBDIR) 25 + cp -R --no-dereference --preserve=mode,links $(LIB_SO) $(DESTDIR)/$(LIBDIR) 26 + cp -R --no-dereference --preserve=mode,links $(LIB_SMAJOR) $(DESTDIR)/$(LIBDIR) 38 - cp -a $(LIB_SO) $(DESTDIR)/$(LIBDIR) 39 - cp -a $(LIB_SMAJOR) $(DESTDIR)/$(LIBDIR) 40 - cp -a $(LLT_SO) $(DESTDIR)/$(LIBDIR) 41 - cp -a $(LLT_SMAJOR) $(DESTDIR)/$(LIBDIR) 42 + cp -R --no-dereference --preserve=mode,links $(LIB_SO) $(DESTDIR)/$(LIBDIR) [all …]
|
| /openbmc/u-boot/drivers/usb/gadget/ |
| H A D | config.c | 83 struct usb_config_descriptor *cp = buf; in usb_gadget_config_buf() local 90 memcpy(cp, config, sizeof(*cp)); in usb_gadget_config_buf() 102 cp->bLength = USB_DT_CONFIG_SIZE; in usb_gadget_config_buf() 103 cp->bDescriptorType = USB_DT_CONFIG; in usb_gadget_config_buf() 104 put_unaligned_le16(len, &cp->wTotalLength); in usb_gadget_config_buf() 105 cp->bmAttributes |= USB_CONFIG_ATT_ONE; in usb_gadget_config_buf()
|
| /openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/rdist/rdist-6.1.5/ |
| H A D | rdist-6.1.5-cleanup.patch | 143 - register char *cp; 145 + char *cp; 153 - if (cp = msgparseopts(localmsglist, TRUE)) { 154 + if ((cp = msgparseopts(localmsglist, TRUE))) { 156 localmsglist, cp); 162 - if (cp = msgparseopts(optarg, TRUE)) { 163 + if ((cp = msgparseopts(optarg, TRUE))) { 164 error("Bad log option \"%s\": %s.", optarg,cp); 171 - if (cp = msgparseopts("stdout=all,debug", TRUE)) { 172 + if ((cp = msgparseopts("stdout=all,debug", TRUE))) { [all …]
|
| /openbmc/u-boot/drivers/serial/ |
| H A D | serial_mpc8xx.c | 39 static void serial_setdivisor(cpm8xx_t __iomem *cp, int baudrate) in serial_setdivisor() argument 51 out_be32(&cp->cp_brgc1, ((divisor - 1) << 1) | CPM_BRG_EN); in serial_setdivisor() 53 out_be32(&cp->cp_brgc1, ((divisor / 16 - 1) << 1) | CPM_BRG_EN | in serial_setdivisor() 65 cpm8xx_t __iomem *cp = &(im->im_cpm); in serial_mpc8xx_setbrg() local 73 out_be32(&cp->cp_simode, 0); in serial_mpc8xx_setbrg() 75 serial_setdivisor(cp, baudrate); in serial_mpc8xx_setbrg() 85 cpm8xx_t __iomem *cp = &(im->im_cpm); in serial_mpc8xx_probe() local 90 sp = cp->cp_smc + SMC_INDEX; in serial_mpc8xx_probe() 91 up = (smc_uart_t __iomem *)&cp->cp_dparam[PROFF_SMC]; in serial_mpc8xx_probe() 108 setbits_be32(&cp->cp_pbpar, IOPINS); in serial_mpc8xx_probe() [all …]
|
| /openbmc/qemu/qobject/ |
| H A D | json-writer.c | 109 int cp; in quoted_str() local 114 cp = mod_utf8_codepoint(ptr, 6, &end); in quoted_str() 115 switch (cp) { in quoted_str() 138 if (cp < 0) { in quoted_str() 139 cp = 0xFFFD; /* replacement character */ in quoted_str() 141 if (cp > 0xFFFF) { in quoted_str() 144 0xD800 + ((cp - 0x10000) >> 10), in quoted_str() 145 0xDC00 + ((cp - 0x10000) & 0x3FF)); in quoted_str() 146 } else if (cp < 0x20 || cp >= 0x7F) { in quoted_str() 147 g_string_append_printf(writer->contents, "\\u%04X", cp); in quoted_str() [all …]
|
| H A D | json-parser.c | 74 int cp, i; in cvt4hex() local 76 cp = 0; in cvt4hex() 81 cp <<= 4; in cvt4hex() 83 cp |= s[i] - '0'; in cvt4hex() 85 cp |= 10 + s[i] - 'a'; in cvt4hex() 87 cp |= 10 + s[i] - 'A'; in cvt4hex() 92 return cp; in cvt4hex() 135 int cp, trailing; in parse_string() local 178 cp = cvt4hex(ptr); in parse_string() 182 if (cp >= 0xD800 && cp <= 0xDBFF in parse_string() [all …]
|
| /openbmc/openbmc/meta-ampere/meta-jade/recipes-phosphor/fans/ |
| H A D | phosphor-fan_%.bbappend | 20 cp ${UNPACKDIR}/events.json ${S}/control/config_files/${MACHINE}/events.json 21 cp ${UNPACKDIR}/fans.json ${S}/control/config_files/${MACHINE}/fans.json 22 cp ${UNPACKDIR}/groups.json ${S}/control/config_files/${MACHINE}/groups.json 23 cp ${UNPACKDIR}/zones.json ${S}/control/config_files/${MACHINE}/zones.json 26 cp ${UNPACKDIR}/monitor.json ${S}/monitor/config_files/${MACHINE}/config.json 29 cp ${UNPACKDIR}/presence.json ${S}/presence/config_files/${MACHINE}/config.json
|
| /openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-bsp/images/ |
| H A D | firmware-image-juno.bb | 37 cp -a ${S} ${D}/ 38 cp -f ${RECIPE_SYSROOT}/firmware/bl1-juno.bin \ 41 cp -f ${RECIPE_SYSROOT}/firmware/fip-juno.bin \ 44 cp -f ${RECIPE_SYSROOT}/firmware/scp_romfw_bypass.bin \ 48 cp -f ${UNPACKDIR}/uEnv.txt ${D}/${FIRMWARE_DIR}/SOFTWARE/ 51 cp -f ${UNPACKDIR}/images-r0.txt ${D}/${FIRMWARE_DIR}/SITE1/HBI0262B/images.txt 52 cp -f ${UNPACKDIR}/images-r1.txt ${D}/${FIRMWARE_DIR}/SITE1/HBI0262C/images.txt 53 cp -f ${UNPACKDIR}/images-r2.txt ${D}/${FIRMWARE_DIR}/SITE1/HBI0262D/images.txt 67 cp -L -f ${DEPLOY_DIR_IMAGE}/Image.gz-initramfs-juno.bin \ 70 cp -L -f ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE} ${D}/${FIRMWARE_DIR}/SOFTWARE/
|
| /openbmc/u-boot/include/ |
| H A D | exports.h | 27 unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base); 28 int strict_strtoul(const char *cp, unsigned int base, unsigned long *res); 31 long simple_strtol(const char *cp, char **endp, unsigned int base); 33 unsigned long ustrtoul(const char *cp, char **endp, unsigned int base); 34 unsigned long long ustrtoull(const char *cp, char **endp, unsigned int base);
|
| /openbmc/openbmc/meta-openembedded/meta-networking/recipes-connectivity/autossh/ |
| H A D | autossh_1.4g.bb | 21 cp ${WORKDIR}/autossh-${PV}/CHANGES ${WORKDIR}/build 22 cp ${WORKDIR}/autossh-${PV}/README ${WORKDIR}/build 23 cp ${WORKDIR}/autossh-${PV}/autossh.host ${WORKDIR}/build 24 cp ${WORKDIR}/autossh-${PV}/rscreen ${WORKDIR}/build 25 cp ${WORKDIR}/autossh-${PV}/autossh.1 ${WORKDIR}/build 26 cp ${WORKDIR}/autossh-${PV}/autossh.spec ${WORKDIR}/build
|
| /openbmc/openbmc/poky/meta/recipes-support/libssh2/ |
| H A D | libssh2_1.11.1.bb | 44 cp -rf ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests/ 45 cp -rf ${B}/tests/test_simple ${D}${PTEST_PATH}/tests/ 46 cp -rf ${S}/tests/mansyntax.sh ${D}${PTEST_PATH}/tests/ 47 cp -rf ${S}/tests/key* ${D}${PTEST_PATH}/tests/ 48 cp -rf ${S}/tests/openssh_server/ ${D}${PTEST_PATH}/tests/ 49 cp -rf ${S}/tests/*.test ${D}${PTEST_PATH}/tests/ 51 cp -r ${S}/docs/* ${D}${PTEST_PATH}/docs/
|
| /openbmc/u-boot/arch/arm/mach-omap2/ |
| H A D | config_secure.mk | 19 "$@ was NOT secured!"; cp $< $@ 24 $@ was NOT secured!"; cp $< $@ 37 "$@ was NOT secured!"; cp $< $@ 42 "$@ was NOT secured!"; cp $< $@ 57 cp -f $@ MLO; \ 74 cp -f $@ MLO; \ 90 cp -f $@ MLO; \ 121 cp -f $@ u-boot.img; \
|
| /openbmc/openbmc/poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/ |
| H A D | have_strerror.patch | 8 while (*bp = *cp) 9 if (*cp == '%' && cp[1] == 'm') { 20 cp += 2;
|