/linux/drivers/md/dm-vdo/ |
H A D | errors.c | 144 char *buf_end = buf + buflen; in uds_string_error() local 157 buffer = vdo_append_to_buffer(buffer, buf_end, "%s: %s", in uds_string_error() 160 buffer = vdo_append_to_buffer(buffer, buf_end, "Unknown %s %d", in uds_string_error() 164 buffer = vdo_append_to_buffer(buffer, buf_end, "%s", info->message); in uds_string_error() 166 const char *tmp = system_string_error(errnum, buffer, buf_end - buffer); in uds_string_error() 169 buffer = vdo_append_to_buffer(buffer, buf_end, "%s", tmp); in uds_string_error() 181 char *buf_end = buf + buflen; in uds_string_error_name() local 191 buffer = vdo_append_to_buffer(buffer, buf_end, "%s", info->name); in uds_string_error_name() 193 buffer = vdo_append_to_buffer(buffer, buf_end, "%s %d", in uds_string_error_name() 197 buffer = vdo_append_to_buffer(buffer, buf_end, " in uds_string_error_name() [all...] |
H A D | string-utils.c | 8 char *vdo_append_to_buffer(char *buffer, char *buf_end, const char *fmt, ...) in vdo_append_to_buffer() argument 14 n = vsnprintf(buffer, buf_end - buffer, fmt, args); in vdo_append_to_buffer() 15 if (n >= (size_t) (buf_end - buffer)) in vdo_append_to_buffer() 16 buffer = buf_end; in vdo_append_to_buffer()
|
H A D | string-utils.h | 20 char *vdo_append_to_buffer(char *buffer, char *buf_end, const char *fmt, ...)
|
/linux/fs/ |
H A D | binfmt_script.c | 36 const char *i_name, *i_sep, *i_arg, *i_end, *buf_end; in load_script() local 58 buf_end = bprm->buf + sizeof(bprm->buf) - 1; in load_script() 61 i_end = next_non_spacetab(bprm->buf + 2, buf_end); in load_script() 68 if (!next_terminator(i_end, buf_end)) in load_script() 70 i_end = buf_end; in load_script()
|
H A D | namespace.c | 5427 char *buf_end, *opt_end, *src, *dst; in statmount_opt_process() local 5433 buf_end = seq->buf + seq->count; in statmount_opt_process() 5437 if (src >= buf_end) { in statmount_opt_process() 5442 *buf_end = '\0'; in statmount_opt_process() 5443 for (; src < buf_end; src = opt_end + 1) { in statmount_opt_process()
|
/linux/sound/usb/line6/ |
H A D | playback.c | 30 __le16 *p, *buf_end; in change_volume() local 33 buf_end = p + urb_out->transfer_buffer_length / sizeof(*p); in change_volume() 35 for (; p < buf_end; ++p) { in change_volume() 43 unsigned char *p, *buf_end; in change_volume() local 46 buf_end = p + urb_out->transfer_buffer_length; in change_volume() 48 for (; p < buf_end; p += 3) { in change_volume() 115 __le16 *pi, *po, *buf_end; in add_monitor_signal() local 119 buf_end = po + urb_out->transfer_buffer_length / sizeof(*po); in add_monitor_signal() 121 for (; po < buf_end; ++pi, ++po) { in add_monitor_signal()
|
/linux/drivers/media/pci/tw5864/ |
H A D | tw5864-h264.c | 26 u8 *buf_end; /* pointer to buffer end */ member 35 s->buf_end = s->ptr + size; in bs_init() 46 if (s->ptr >= s->buf_end - 4) in bs_write() 66 if (s->ptr < s->buf_end) { in bs_write1()
|
/linux/kernel/bpf/ |
H A D | log.c | 94 u32 buf_start, buf_end; in bpf_verifier_vlog() local 111 div_u64_rem(new_end, log->len_total, &buf_end); in bpf_verifier_vlog() 112 /* new_end and buf_end are exclusive indices, so if buf_end is in bpf_verifier_vlog() 116 if (buf_end == 0) in bpf_verifier_vlog() 117 buf_end = log->len_total; in bpf_verifier_vlog() 119 /* if buf_start > buf_end, we wrapped around; in bpf_verifier_vlog() 120 * if buf_start == buf_end, then we fill ubuf completely; we in bpf_verifier_vlog() 121 * can't have buf_start == buf_end to mean that there is in bpf_verifier_vlog() 125 if (buf_start < buf_end) { in bpf_verifier_vlog() [all...] |
/linux/lib/crypto/tests/ |
H A D | hash-test-template.h | 203 void *const buf_end = &test_buf[TEST_BUF_LEN]; in test_hash_buffer_overruns() local 204 struct HASH_CTX *guarded_ctx = buf_end - sizeof(*guarded_ctx); in test_hash_buffer_overruns() 214 HASH(buf_end - len, len, hash); in test_hash_buffer_overruns() 216 HASH_UPDATE(&ctx, buf_end - len, len); in test_hash_buffer_overruns() 220 HASH(test_buf, len, buf_end - HASH_SIZE); in test_hash_buffer_overruns() 223 HASH_FINAL(&ctx, buf_end - HASH_SIZE); in test_hash_buffer_overruns()
|
/linux/arch/powerpc/platforms/pseries/ |
H A D | dtl.c | 54 struct dtl_entry *buf_end; member 82 if (wp == dtlr->buf_end) in consume_dtle() 96 dtlr->buf_end = dtl->buf + dtl->buf_entries; in dtl_start()
|
/linux/tools/bpf/bpftool/ |
H A D | xlated_dumper.h | 38 void dump_xlated_for_graph(struct dump_data *dd, void *buf, void *buf_end,
|
H A D | xlated_dumper.c | 367 void dump_xlated_for_graph(struct dump_data *dd, void *buf_start, void *buf_end, in dump_xlated_for_graph() argument 381 struct bpf_insn *insn_end = buf_end; in dump_xlated_for_graph()
|
/linux/fs/xfs/scrub/ |
H A D | attr_repair.c | 284 const char *buf_end, in xrep_xattr_salvage_local_attr() argument 299 if ((char *)lentry + namesize > buf_end) in xrep_xattr_salvage_local_attr() 321 const char *buf_end, in xrep_xattr_salvage_remote_attr() argument 348 if ((char *)rentry + namesize > buf_end) in xrep_xattr_salvage_remote_attr() 401 char *buf_end; in xrep_xattr_recover_leaf() local 417 buf_end = (char *)bp->b_addr + mp->m_attr_geo->blksize; in xrep_xattr_recover_leaf() 437 buf_end, lentry); in xrep_xattr_recover_leaf() 441 buf_end, rentry, i, bp); in xrep_xattr_recover_leaf()
|
/linux/drivers/mtd/nand/raw/ |
H A D | pl35x-nand-controller.c | 336 unsigned int buf_end = len / 4; in pl35x_nand_read_data_op() local 346 for (i = 0; i < buf_end; i++) { in pl35x_nand_read_data_op() 348 if (i + 1 == buf_end) in pl35x_nand_read_data_op() 368 unsigned int buf_end = len / 4; in pl35x_nand_write_data_op() local 378 for (i = 0; i < buf_end; i++) { in pl35x_nand_write_data_op() 380 if (i + 1 == buf_end) in pl35x_nand_write_data_op()
|
/linux/drivers/video/fbdev/ |
H A D | s3c-fb.c | 76 * @buf_end: Offset of buffer end registers. 94 unsigned short buf_end; member 544 writel(data, buf + sfb->variant.buf_end); in s3c_fb_set_par() 905 writel(info->fix.smem_start + end_boff, buf + sfb->variant.buf_end); in s3c_fb_pan_display() 1715 .buf_end = VIDW_BUF_END(0), 1749 .buf_end = 0x7c,
|
/linux/drivers/dma/ |
H A D | apple-admac.c | 140 dma_addr_t buf_end; member 271 adtx->buf_end = buf_addr + buf_len; in admac_prep_dma_cyclic() 295 WARN_ON_ONCE(addr + tx->period_len > tx->buf_end); in admac_cyclic_write_one_desc()
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_loader.c | 162 char err_buf[256], buf[256] = {}, *ptr, *buf_end; in compile_regex() local 167 buf_end = buf + sizeof(buf); in compile_regex() 169 while (*pattern && ptr < buf_end - 2) { in compile_regex()
|
/linux/io_uring/ |
H A D | rsrc.c | 1034 u64 buf_end; in validate_fixed_range() local 1036 if (unlikely(check_add_overflow(buf_addr, (u64)len, &buf_end))) in validate_fixed_range() 1039 if (unlikely(buf_addr < imu->ubuf || buf_end > (imu->ubuf + imu->len))) in validate_fixed_range()
|
/linux/sound/usb/ |
H A D | midi.c | 794 int pos, end, count, buf_end; in snd_usbmidi_akai_output() local 802 buf_end = ep->max_transfer - MAX_AKAI_SYSEX_LEN - 1; in snd_usbmidi_akai_output() 805 while (urb->transfer_buffer_length < buf_end) { in snd_usbmidi_akai_output()
|
/linux/arch/powerpc/kvm/ |
H A D | book3s_hv.c | 2870 char *s, *buf_end; in debugfs_timings_read() local 2880 buf_end = s + sizeof(p->buf); in debugfs_timings_read() 2901 snprintf(s, buf_end - s, "%s: stuck\n", in debugfs_timings_read() 2904 snprintf(s, buf_end - s, in debugfs_timings_read()
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | t4_hw.c | 2640 u32 *buf_end = (u32 *)((char *)buf + buf_size); in t4_get_regs() local 2682 while (reg <= last_reg && bufp < buf_end) { in t4_get_regs()
|