Home
last modified time | relevance | path

Searched refs:sbuf (Results 1 – 25 of 125) sorted by relevance

12345

/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/uw-imap/uw-imap/
H A Duw-imap-fix-incompatible-pointer-types.patch31 if (sbuf.st_ctime > sbuf.st_atime) {
32 tp[0] = sbuf.st_atime; /* preserve atime and mtime */
33 tp[1] = sbuf.st_mtime;
50 else tp[0] = (sbuf.st_ctime > sbuf.st_atime) ? sbuf.st_atime : time(0);
51 tp[1] = sbuf.st_mtime; /* preserve mtime */
59 else tp[0] = (sbuf.st_ctime > sbuf.st_atime) ? sbuf.st_atime : time(0);
60 tp[1] = sbuf.st_mtime; /* preserve mtime */
76 fstat (LOCAL->fd,&sbuf); /* get new write time */
77 tp[1] = LOCAL->filetime = sbuf.st_mtime;
100 if ((sbuf.st_ctime > sbuf.st_atime) || (sbuf.st_mtime > sbuf.st_atime)) {
[all …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_format_helper.c48 void (*xfrm_line)(void *dbuf, const void *sbuf, unsigned int npixels)) in __drm_fb_xfrm() argument
55 const void *sbuf; in __drm_fb_xfrm() local
74 sbuf = memcpy(stmp, vaddr, sbuf_len); in __drm_fb_xfrm()
76 sbuf = vaddr; in __drm_fb_xfrm()
77 xfrm_line(dst, sbuf, linepixels); in __drm_fb_xfrm()
91 void (*xfrm_line)(void *dbuf, const void *sbuf, unsigned int npixels)) in __drm_fb_xfrm_toio() argument
100 const void *sbuf; in __drm_fb_xfrm_toio() local
118 sbuf = memcpy(stmp, vaddr, sbuf_len); in __drm_fb_xfrm_toio()
120 sbuf = vaddr; in __drm_fb_xfrm_toio()
121 xfrm_line(dbuf, sbuf, linepixels); in __drm_fb_xfrm_toio()
[all …]
/openbmc/linux/tools/perf/bench/
H A Devlist-open-close.c117 char sbuf[STRERR_BUFSIZE]; in bench__do_evlist_open_close() local
121 pr_err("evlist__open: %s\n", str_error_r(errno, sbuf, sizeof(sbuf))); in bench__do_evlist_open_close()
127 pr_err("evlist__mmap: %s\n", str_error_r(errno, sbuf, sizeof(sbuf))); in bench__do_evlist_open_close()
193 char sbuf[STRERR_BUFSIZE]; in bench__repeat_event_string() local
200 pr_err("strbuf_init: %s\n", str_error_r(err, sbuf, sizeof(sbuf))); in bench__repeat_event_string()
207 pr_err("strbuf_add: %s\n", str_error_r(err, sbuf, sizeof(sbuf))); in bench__repeat_event_string()
213 pr_err("strbuf_addch: %s\n", str_error_r(err, sbuf, sizeof(sbuf))); in bench__repeat_event_string()
/openbmc/u-boot/tools/
H A Ddumpimage.c31 void *ptr, struct stat *sbuf) in dumpimage_extract_subimage() argument
37 sbuf->st_size, &params); in dumpimage_extract_subimage()
61 struct stat sbuf; in main() local
148 if (fstat(ifd, &sbuf) < 0) { in main()
154 if ((uint32_t)sbuf.st_size < tparams->header_size) { in main()
160 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, ifd, 0); in main()
177 retval = dumpimage_extract_subimage(tparams, ptr, &sbuf); in main()
183 retval = imagetool_verify_print_header(ptr, &sbuf, tparams, in main()
187 (void)munmap((void *)ptr, sbuf.st_size); in main()
H A Dfit_common.c44 void **blobp, struct stat *sbuf, bool delete_on_error) in mmap_fdt() argument
58 if (fstat(fd, sbuf) < 0) { in mmap_fdt()
65 sbuf->st_size += size_inc; in mmap_fdt()
66 if (ftruncate(fd, sbuf->st_size)) { in mmap_fdt()
74 ptr = mmap(0, sbuf->st_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in mmap_fdt()
91 ret = fdt_open_into(ptr, ptr, sbuf->st_size); in mmap_fdt()
H A Dmkimage.c315 struct stat sbuf; in main() local
384 if (fstat(ifd, &sbuf) < 0) { in main()
391 if ((unsigned)sbuf.st_size < tparams->header_size) { in main()
398 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, ifd, 0); in main()
412 retval = imagetool_verify_print_header_by_type(ptr, &sbuf, in main()
415 (void) munmap((void *)ptr, sbuf.st_size); in main()
430 if (fstat(dfd, &sbuf) < 0) { in main()
437 params.file_size = sbuf.st_size + tparams->header_size; in main()
473 if (stat (file, &sbuf) < 0) { in main()
478 size = cpu_to_uimage (sbuf.st_size); in main()
[all …]
H A Dimagetool.c31 struct stat *sbuf, in imagetool_verify_print_header() argument
45 sbuf->st_size, params); in imagetool_verify_print_header()
70 struct stat *sbuf, in imagetool_verify_print_header_by_type() argument
76 retval = tparams->verify_header((unsigned char *)ptr, sbuf->st_size, in imagetool_verify_print_header_by_type()
129 struct stat sbuf; in imagetool_get_filesize() local
139 if (fstat(fd, &sbuf) < 0) { in imagetool_get_filesize()
147 return sbuf.st_size; in imagetool_get_filesize()
H A Dimx8image.c27 static void imx8image_set_header(void *ptr, struct stat *sbuf, int ifd, in imx8image_set_header() argument
277 static void check_file(struct stat *sbuf, char *filename) in check_file() argument
287 if (fstat(tmp_fd, sbuf) < 0) { in check_file()
300 struct stat sbuf; in copy_file_aligned() local
320 if (fstat(dfd, &sbuf) < 0) { in copy_file_aligned()
326 if (sbuf.st_size == 0) in copy_file_aligned()
329 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in copy_file_aligned()
336 size = sbuf.st_size; in copy_file_aligned()
356 munmap((void *)ptr, sbuf.st_size); in copy_file_aligned()
364 struct stat sbuf; in copy_file() local
[all …]
H A Daisimage.c181 struct stat sbuf; in ais_alloc_buffer() local
192 if (fstat(dfd, &sbuf) < 0) { in ais_alloc_buffer()
205 ais_img_size = WORD_ALIGN(sbuf.st_size) + MAX_CMD_BUFFER; in ais_alloc_buffer()
206 ptr = (uint32_t *)malloc(WORD_ALIGN(sbuf.st_size) + MAX_CMD_BUFFER); in ais_alloc_buffer()
223 struct stat sbuf; in ais_copy_image() local
234 if (fstat(dfd, &sbuf) < 0) { in ais_copy_image()
240 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in ais_copy_image()
243 *aisptr++ = sbuf.st_size; in ais_copy_image()
244 memcpy((void *)aisptr, ptr, sbuf.st_size); in ais_copy_image()
245 aisptr += WORD_ALIGN(sbuf.st_size) / sizeof(uint32_t); in ais_copy_image()
[all …]
H A Dfit_image.c32 struct stat sbuf; in fit_add_file_data() local
36 tfd = mmap_fdt(params->cmdname, tmpfile, size_inc, &ptr, &sbuf, true); in fit_add_file_data()
55 sbuf.st_mtime); in fit_add_file_data()
73 munmap(ptr, sbuf.st_size); in fit_add_file_data()
117 struct stat sbuf; in fdt_property_file() local
129 if (fstat(fd, &sbuf) < 0) { in fdt_property_file()
135 ret = fdt_property_placeholder(fdt, "data", sbuf.st_size, &ptr); in fdt_property_file()
138 ret = read(fd, ptr, sbuf.st_size); in fdt_property_file()
139 if (ret != sbuf.st_size) { in fdt_property_file()
417 struct stat sbuf; in fit_extract_data() local
[all …]
H A Dimx8mimage.c53 static void imx8mimage_set_header(void *ptr, struct stat *sbuf, int ifd, in imx8mimage_set_header() argument
227 struct stat sbuf; in copy_file() local
243 if (fstat(dfd, &sbuf) < 0) { in copy_file()
249 ptr = mmap(0, sbuf.st_size, PROT_READ, MAP_SHARED, dfd, 0); in copy_file()
256 size = sbuf.st_size - datafile_offset; in copy_file()
292 munmap((void *)ptr, sbuf.st_size); in copy_file()
401 struct stat sbuf; in build_image() local
420 if (fstat(hdmi_fd, &sbuf) < 0) { in build_image()
431 file_off += ALIGN(sbuf.st_size, in build_image()
443 if (fstat(ap_fd, &sbuf) < 0) { in build_image()
[all …]
/openbmc/linux/tools/perf/tests/
H A Dbackward-ring-buffer.c66 char sbuf[STRERR_BUFSIZE]; in do_test() local
71 str_error_r(errno, sbuf, sizeof(sbuf))); in do_test()
88 char pid[16], sbuf[STRERR_BUFSIZE]; in test__backward_ring_buffer() local
136 str_error_r(errno, sbuf, sizeof(sbuf))); in test__backward_ring_buffer()
157 str_error_r(errno, sbuf, sizeof(sbuf))); in test__backward_ring_buffer()
H A Dperf-record.c71 char sbuf[STRERR_BUFSIZE]; in test__PERF_RECORD() local
117 str_error_r(errno, sbuf, sizeof(sbuf))); in test__PERF_RECORD()
128 str_error_r(errno, sbuf, sizeof(sbuf))); in test__PERF_RECORD()
139 str_error_r(errno, sbuf, sizeof(sbuf))); in test__PERF_RECORD()
151 str_error_r(errno, sbuf, sizeof(sbuf))); in test__PERF_RECORD()
H A Dsigtrap.c179 char sbuf[STRERR_BUFSIZE]; in test__sigtrap() local
193 pr_debug("FAILED sigaction(): %s\n", str_error_r(errno, sbuf, sizeof(sbuf))); in test__sigtrap()
201 str_error_r(errno, sbuf, sizeof(sbuf))); in test__sigtrap()
211 pr_debug("FAILED pthread_create(): %s\n", str_error_r(errno, sbuf, sizeof(sbuf))); in test__sigtrap()
H A Dtask-exit.c53 char sbuf[STRERR_BUFSIZE]; in test__task_exit() local
104 str_error_r(-err, sbuf, sizeof(sbuf))); in test__task_exit()
110 str_error_r(errno, sbuf, sizeof(sbuf))); in test__task_exit()
H A Dsw-clock.c34 char sbuf[STRERR_BUFSIZE]; in __test__sw_clock_freq() local
80 str_error_r(errno, sbuf, sizeof(sbuf)), in __test__sw_clock_freq()
88 str_error_r(errno, sbuf, sizeof(sbuf))); in __test__sw_clock_freq()
H A Dopenat-syscall-all-cpus.c32 char sbuf[STRERR_BUFSIZE]; in test__openat_syscall_event_on_all_cpus() local
59 str_error_r(errno, sbuf, sizeof(sbuf))); in test__openat_syscall_event_on_all_cpus()
81 str_error_r(errno, sbuf, sizeof(sbuf))); in test__openat_syscall_event_on_all_cpus()
H A Dopenat-syscall-tp-fields.c44 char sbuf[STRERR_BUFSIZE]; in test__syscall_openat_tp_fields() local
72 str_error_r(errno, sbuf, sizeof(sbuf))); in test__syscall_openat_tp_fields()
79 str_error_r(errno, sbuf, sizeof(sbuf))); in test__syscall_openat_tp_fields()
H A Dmmap-basic.c46 char sbuf[STRERR_BUFSIZE]; in test__basic_mmap() local
67 str_error_r(errno, sbuf, sizeof(sbuf))); in test__basic_mmap()
101 str_error_r(errno, sbuf, sizeof(sbuf))); in test__basic_mmap()
111 str_error_r(errno, sbuf, sizeof(sbuf))); in test__basic_mmap()
/openbmc/u-boot/fs/ubifs/
H A Drecovery.c106 void *sbuf, *buf; in get_master_node() local
108 sbuf = vmalloc(c->leb_size); in get_master_node()
109 if (!sbuf) in get_master_node()
112 err = ubifs_leb_read(c, lnum, sbuf, 0, c->leb_size, 0); in get_master_node()
118 buf = sbuf; in get_master_node()
177 *pbuf = sbuf; in get_master_node()
183 vfree(sbuf); in get_master_node()
631 int offs, void *sbuf, int jhead) in ubifs_recover_leb() argument
636 void *buf = sbuf + offs; in ubifs_recover_leb()
640 sleb = ubifs_start_scan(c, lnum, offs, sbuf); in ubifs_recover_leb()
[all …]
/openbmc/linux/fs/ubifs/
H A Drecovery.c102 void *sbuf, *buf; in get_master_node() local
104 sbuf = vmalloc(c->leb_size); in get_master_node()
105 if (!sbuf) in get_master_node()
108 err = ubifs_leb_read(c, lnum, sbuf, 0, c->leb_size, 0); in get_master_node()
114 buf = sbuf; in get_master_node()
173 *pbuf = sbuf; in get_master_node()
179 vfree(sbuf); in get_master_node()
623 int offs, void *sbuf, int jhead) in ubifs_recover_leb() argument
628 void *buf = sbuf + offs; in ubifs_recover_leb()
632 sleb = ubifs_start_scan(c, lnum, offs, sbuf); in ubifs_recover_leb()
[all …]
/openbmc/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_sp.c97 struct bnxt_qplib_rcfw_sbuf sbuf; in bnxt_qplib_get_dev_attr() local
107 sbuf.size = ALIGN(sizeof(*sb), BNXT_QPLIB_CMDQE_UNITS); in bnxt_qplib_get_dev_attr()
108 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_get_dev_attr()
109 &sbuf.dma_addr, GFP_KERNEL); in bnxt_qplib_get_dev_attr()
110 if (!sbuf.sb) in bnxt_qplib_get_dev_attr()
112 sb = sbuf.sb; in bnxt_qplib_get_dev_attr()
113 req.resp_size = sbuf.size / BNXT_QPLIB_CMDQE_UNITS; in bnxt_qplib_get_dev_attr()
114 bnxt_qplib_fill_cmdqmsg(&msg, &req, &resp, &sbuf, sizeof(req), in bnxt_qplib_get_dev_attr()
185 dma_free_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_get_dev_attr()
186 sbuf.sb, sbuf.dma_addr); in bnxt_qplib_get_dev_attr()
[all …]
/openbmc/linux/tools/perf/util/
H A Dcloexec.c28 char sbuf[STRERR_BUFSIZE]; in perf_flag_probe() local
57 err, str_error_r(err, sbuf, sizeof(sbuf))); in perf_flag_probe()
75 err, str_error_r(err, sbuf, sizeof(sbuf)))) in perf_flag_probe()
/openbmc/linux/tools/perf/
H A Dbuiltin-buildid-cache.c382 char sbuf[STRERR_BUFSIZE]; in cmd_buildid_cache() local
475 pos->s, str_error_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
493 pos->s, str_error_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
511 pos->s, str_error_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
521 str_error_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
539 pos->s, str_error_r(errno, sbuf, sizeof(sbuf))); in cmd_buildid_cache()
/openbmc/linux/tools/lib/subcmd/
H A Drun-command.c33 char sbuf[STRERR_BUFSIZE]; in start_command() local
114 cmd->dir, str_error_r(errno, sbuf, sizeof(sbuf))); in start_command()
168 char sbuf[STRERR_BUFSIZE]; in wait_or_whine() local
178 str_error_r(errno, sbuf, sizeof(sbuf))); in wait_or_whine()

12345