Home
last modified time | relevance | path

Searched refs:buf_end (Results 1 – 23 of 23) sorted by relevance

/linux/drivers/md/dm-vdo/
H A Derrors.c144 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 Dstring-utils.c8 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 Dstring-utils.h20 char *vdo_append_to_buffer(char *buffer, char *buf_end, const char *fmt, ...)
/linux/fs/
H A Dbinfmt_script.c36 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 Dnamespace.c5622 char *buf_end, *opt_end, *src, *dst; in statmount_string()
5628 buf_end = seq->buf + seq->count; in statmount_string()
5632 if (src >= buf_end) { in statmount_string()
5637 *buf_end = '\0'; in statmount_string()
5638 for (; src < buf_end; src = opt_end + 1) { in statmount_string()
5459 char *buf_end, *opt_end, *src, *dst; statmount_opt_process() local
/linux/sound/usb/line6/
H A Dplayback.c30 __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 Dkobject_uevent.c98 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 Dtw5864-h264.c26 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 Dlog.c94 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()
116 if (buf_end == 0) in bpf_verifier_vlog()
117 buf_end = log->len_total; in bpf_verifier_vlog()
125 if (buf_start < buf_end) { in bpf_verifier_vlog()
129 buf_end - buf_start)) in bpf_verifier_vlog()
138 log->kbuf + n - buf_end, in bpf_verifier_vlog()
139 buf_end)) in bpf_verifier_vlog()
/linux/fs/xfs/scrub/
H A Dattr_repair.c284 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
347 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/tools/bpf/bpftool/
H A Dxlated_dumper.h38 void dump_xlated_for_graph(struct dump_data *dd, void *buf, void *buf_end,
H A Dxlated_dumper.c355 void dump_xlated_for_graph(struct dump_data *dd, void *buf_start, void *buf_end, in dump_xlated_for_graph() argument
369 struct bpf_insn *insn_end = buf_end; in dump_xlated_for_graph()
/linux/tools/mm/
H A Dpage_owner_sort.c115 char *curr = buf, *const buf_end = buf + buf_size; in read_block()
117 while (buf_end - curr > 1 && fgets(curr, buf_end - curr, fin)) { in read_block()
108 char *curr = buf, *const buf_end = buf + buf_size; read_block() local
/linux/fs/xfs/libxfs/
H A Dxfs_attr_leaf.c298 char *buf_end, in xfs_attr3_leaf_verify_entry() argument
330 if ((char *)lentry >= buf_end) in xfs_attr3_leaf_verify_entry()
332 if ((char *)lentry + offsetof(struct xfs_attr_leaf_name_local, nameval) > buf_end) in xfs_attr3_leaf_verify_entry()
344 if ((char *)rentry >= buf_end) in xfs_attr3_leaf_verify_entry()
346 if ((char *)rentry + offsetof(struct xfs_attr_leaf_name_remote, name) > buf_end) in xfs_attr3_leaf_verify_entry()
358 if (name_end > buf_end) in xfs_attr3_leaf_verify_entry()
390 char *buf_end; in xfs_attr3_leaf_verify() local
424 buf_end = (char *)bp->b_addr + mp->m_attr_geo->blksize; in xfs_attr3_leaf_verify()
426 fa = xfs_attr3_leaf_verify_entry(mp, buf_end, leaf, &ichdr, in xfs_attr3_leaf_verify()
/linux/drivers/dma/
H A Dapple-admac.c140 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 Dtest_loader.c146 char err_buf[256], buf[256] = {}, *ptr, *buf_end; in compile_regex() local
151 buf_end = buf + sizeof(buf); in compile_regex()
153 while (*pattern && ptr < buf_end - 2) { in compile_regex()
/linux/sound/usb/
H A Dmidi.c791 int pos, end, count, buf_end; in snd_usbmidi_akai_output() local
799 buf_end = ep->max_transfer - MAX_AKAI_SYSEX_LEN - 1; in snd_usbmidi_akai_output()
800 if (buf_end <= 0) in snd_usbmidi_akai_output()
804 while (urb->transfer_buffer_length < buf_end) { in snd_usbmidi_akai_output()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_virt.c1005 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
1009 if (buf_start >= buf_end) in amdgpu_virt_crit_region_calc_checksum()
1012 for (; buf_start < buf_end; buf_start++) in amdgpu_virt_crit_region_calc_checksum()
H A Dvcn_v4_0.c1896 uint64_t buf_end; in vcn_v4_0_dec_msg() local
1904 if (size < 4 || check_add_overflow(offset, size, &buf_end) || in vcn_v4_0_dec_msg()
1905 buf_end > end - addr) { in vcn_v4_0_dec_msg()
H A Dvcn_v3_0.c1980 uint64_t buf_end; in vcn_v3_0_dec_msg() local
1988 if (size < 4 || check_add_overflow(offset, size, &buf_end) || in vcn_v3_0_dec_msg()
1989 buf_end > end - addr) { in vcn_v3_0_dec_msg()
/linux/fs/ntfs/
H A Dmft.c938 static s64 mft_reserve_end(const u8 *buf, s64 buf_start, s64 buf_end, in mft_reserve_end() argument
946 if (limit > buf_end) in mft_reserve_end()
947 limit = buf_end; in mft_reserve_end()
/linux/arch/powerpc/kvm/
H A Dbook3s_hv.c2887 char *s, *buf_end; in debugfs_timings_read() local
2897 buf_end = s + sizeof(p->buf); in debugfs_timings_read()
2918 snprintf(s, buf_end - s, "%s: stuck\n", in debugfs_timings_read()
2921 snprintf(s, buf_end - s, in debugfs_timings_read()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dt4_hw.c2641 u32 *buf_end = (u32 *)((char *)buf + buf_size); in t4_get_regs() local
2683 while (reg <= last_reg && bufp < buf_end) { in t4_get_regs()