| /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, "%s", info->name); 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()
|
| /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/lib/ |
| H A D | kobject_uevent.c | 98 static const char *action_arg_word_end(const char *buf, const char *buf_end, in action_arg_word_end() argument 103 while (next <= buf_end && *next != delim) in action_arg_word_end() 117 const char *next, *buf_end, *key; in kobject_action_args() local 141 buf_end = buf + count - 1; in kobject_action_args() 143 while (next <= buf_end) { in kobject_action_args() 149 if (key > buf_end) in kobject_action_args() 153 next = action_arg_word_end(buf, buf_end, '='); in kobject_action_args() 154 if (!next || next > buf_end || *next != '=') in kobject_action_args() 159 if (++next > buf_end) in kobject_action_args() 163 next = action_arg_word_end(buf, buf_end, ' '); in kobject_action_args()
|
| /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/lib/crypto/tests/ |
| H A D | hash-test-template.h | 201 void *const buf_end = &test_buf[TEST_BUF_LEN]; in test_hash_buffer_overruns() local 202 struct HASH_CTX *guarded_ctx = buf_end - sizeof(*guarded_ctx); in test_hash_buffer_overruns() 212 HASH(buf_end - len, len, hash); in test_hash_buffer_overruns() 214 HASH_UPDATE(&ctx, buf_end - len, len); in test_hash_buffer_overruns() 218 HASH(test_buf, len, buf_end - HASH_SIZE); in test_hash_buffer_overruns() 221 HASH_FINAL(&ctx, buf_end - HASH_SIZE); in test_hash_buffer_overruns()
|
| /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/kernel/bpf/ |
| H A D | liveness.c | 406 char *buf_end = env->tmp_str_buf + sizeof(env->tmp_str_buf); in fmt_callchain() local 410 buf += snprintf(buf, buf_end - buf, "("); in fmt_callchain() 412 buf += snprintf(buf, buf_end - buf, "%s%d", i ? "," : "", callchain->callsites[i]); in fmt_callchain() 413 snprintf(buf, buf_end - buf, ")"); in fmt_callchain()
|
| /linux/tools/mm/ |
| H A D | page_owner_sort.c | 108 char *curr = buf, *const buf_end = buf + buf_size; in read_block() local 110 while (buf_end - curr > 1 && fgets(curr, buf_end - curr, fin)) { in read_block()
|
| /linux/drivers/video/fbdev/ |
| H A D | s3c-fb.c | 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 | 163 char err_buf[256], buf[256] = {}, *ptr, *buf_end; in compile_regex() 168 buf_end = buf + sizeof(buf); in compile_regex() 170 while (*pattern && ptr < buf_end - 2) { in compile_regex() 162 char err_buf[256], buf[256] = {}, *ptr, *buf_end; compile_regex() local
|
| /linux/io_uring/ |
| H A D | rsrc.c | 1039 u64 buf_end; in validate_fixed_range() local 1041 if (unlikely(check_add_overflow(buf_addr, (u64)len, &buf_end))) in validate_fixed_range() 1044 if (unlikely(buf_addr < imu->ubuf || buf_end > (imu->ubuf + imu->len))) in validate_fixed_range()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_attr_leaf.c | 241 char *buf_end, in xfs_attr3_leaf_verify_entry() argument 287 if (name_end > buf_end) in xfs_attr3_leaf_verify_entry() 319 char *buf_end; in xfs_attr3_leaf_verify() local 353 buf_end = (char *)bp->b_addr + mp->m_attr_geo->blksize; in xfs_attr3_leaf_verify() 355 fa = xfs_attr3_leaf_verify_entry(mp, buf_end, leaf, &ichdr, in xfs_attr3_leaf_verify()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_virt.c | 925 static uint8_t amdgpu_virt_crit_region_calc_checksum(uint8_t *buf_start, uint8_t *buf_end) in amdgpu_virt_crit_region_calc_checksum() argument 929 if (buf_start >= buf_end) in amdgpu_virt_crit_region_calc_checksum() 932 for (; buf_start < buf_end; buf_start++) in amdgpu_virt_crit_region_calc_checksum()
|
| /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()
|