Home
last modified time | relevance | path

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

/openbmc/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()
/openbmc/linux/kernel/bpf/
H A Dlog.c91 u32 buf_start, buf_end, new_n; in bpf_verifier_vlog() local
108 div_u64_rem(new_end, log->len_total, &buf_end); in bpf_verifier_vlog()
113 if (buf_end == 0) in bpf_verifier_vlog()
114 buf_end = log->len_total; in bpf_verifier_vlog()
122 if (buf_start < buf_end) { in bpf_verifier_vlog()
126 buf_end - buf_start)) in bpf_verifier_vlog()
135 log->kbuf + n - buf_end, in bpf_verifier_vlog()
136 buf_end)) in bpf_verifier_vlog()
/openbmc/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()
/openbmc/linux/lib/
H A Dkobject_uevent.c99 static const char *action_arg_word_end(const char *buf, const char *buf_end, in action_arg_word_end() argument
104 while (next <= buf_end && *next != delim) in action_arg_word_end()
118 const char *next, *buf_end, *key; in kobject_action_args() local
142 buf_end = buf + count - 1; in kobject_action_args()
144 while (next <= buf_end) { in kobject_action_args()
150 if (key > buf_end) in kobject_action_args()
154 next = action_arg_word_end(buf, buf_end, '='); in kobject_action_args()
155 if (!next || next > buf_end || *next != '=') in kobject_action_args()
160 if (++next > buf_end) in kobject_action_args()
164 next = action_arg_word_end(buf, buf_end, ' '); in kobject_action_args()
/openbmc/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()
/openbmc/linux/fs/xfs/scrub/
H A Dattr.c307 char *buf_end, in xchk_xattr_entry() argument
353 if (name_end > buf_end) in xchk_xattr_entry()
377 char *buf_end; in xchk_xattr_block() local
422 buf_end = (char *)bp->b_addr + mp->m_attr_geo->blksize; in xchk_xattr_block()
433 xchk_xattr_entry(ds, level, buf_end, leaf, &leafhdr, in xchk_xattr_block()
/openbmc/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.c367 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()
/openbmc/linux/drivers/comedi/
H A Dcomedi_buf.c380 unsigned int buf_end; in comedi_buf_munge() local
382 buf_end = async->prealloc_bufsz - async->munge_ptr; in comedi_buf_munge()
383 if (block_size > buf_end) in comedi_buf_munge()
384 block_size = buf_end; in comedi_buf_munge()
/openbmc/linux/arch/powerpc/platforms/pseries/
H A Ddtl.c54 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()
/openbmc/linux/drivers/mtd/nand/raw/
H A Dpl35x-nand-controller.c336 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()
/openbmc/linux/tools/mm/
H A Dpage_owner_sort.c105 char *curr = buf, *const buf_end = buf + buf_size; in read_block() local
107 while (buf_end - curr > 1 && fgets(curr, buf_end - curr, fin)) { in read_block()
/openbmc/linux/drivers/video/fbdev/
H A Ds3c-fb.c94 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,
/openbmc/qemu/block/
H A Dcurl.c283 uint64_t buf_end = (state->buf_start + state->buf_off); in curl_find_buf() local
293 (start <= buf_end) && in curl_find_buf()
295 (clamped_end <= buf_end)) in curl_find_buf()
/openbmc/linux/drivers/dma/
H A Dapple-admac.c140 dma_addr_t buf_end; member
269 adtx->buf_end = buf_addr + buf_len; in admac_prep_dma_cyclic()
293 WARN_ON_ONCE(addr + tx->period_len > tx->buf_end); in admac_cyclic_write_one_desc()
/openbmc/linux/io_uring/
H A Drsrc.c1067 u64 buf_end; in io_import_fixed() local
1072 if (unlikely(check_add_overflow(buf_addr, (u64)len, &buf_end))) in io_import_fixed()
1075 if (unlikely(buf_addr < imu->ubuf || buf_end > imu->ubuf_end)) in io_import_fixed()
/openbmc/qemu/hw/display/
H A Dexynos4210_fimd.c270 uint32_t buf_end[3]; /* End address for video frame buffer */ member
1518 s->window[w].buf_end[i] = val; in exynos4210_fimd_write()
1745 return s->window[w].buf_end[i]; in exynos4210_fimd_read()
1871 VMSTATE_UINT32_ARRAY(buf_end, Exynos4210fimdWindow, 3),
/openbmc/linux/drivers/net/wireless/legacy/
H A Drndis_wlan.c2010 void *buf_end, *bssid_end; in next_bssid_list_item() local
2012 buf_end = (char *)buf + len; in next_bssid_list_item()
2015 if ((int)(buf_end - bssid_end) < sizeof(bssid->length)) { in next_bssid_list_item()
2028 void *buf_end, *bssid_end; in check_bssid_list_item() local
2033 buf_end = (char *)buf + len; in check_bssid_list_item()
2036 return (int)(buf_end - bssid_end) >= 0 && (int)(bssid_end - buf) >= 0; in check_bssid_list_item()
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_attr_leaf.c240 char *buf_end, in xfs_attr3_leaf_verify_entry() argument
286 if (name_end > buf_end) in xfs_attr3_leaf_verify_entry()
318 char *buf_end; in xfs_attr3_leaf_verify() local
352 buf_end = (char *)bp->b_addr + mp->m_attr_geo->blksize; in xfs_attr3_leaf_verify()
354 fa = xfs_attr3_leaf_verify_entry(mp, buf_end, leaf, &ichdr, in xfs_attr3_leaf_verify()
/openbmc/linux/sound/usb/
H A Dmidi.c726 int pos, end, count, buf_end; in snd_usbmidi_akai_output() local
734 buf_end = ep->max_transfer - MAX_AKAI_SYSEX_LEN - 1; in snd_usbmidi_akai_output()
737 while (urb->transfer_buffer_length < buf_end) { in snd_usbmidi_akai_output()
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_hv.c2811 char *s, *buf_end; in debugfs_timings_read() local
2821 buf_end = s + sizeof(p->buf); in debugfs_timings_read()
2842 snprintf(s, buf_end - s, "%s: stuck\n", in debugfs_timings_read()
2845 snprintf(s, buf_end - s, in debugfs_timings_read()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dt4_hw.c2640 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()