/linux-master/tools/testing/selftests/net/af_unix/ |
H A D | test_unix_oob.c | 58 char buf[5]; local 60 read(fd, buf, 5); 94 int read_data(int pfd, char *buf, int size) argument 98 memset(buf, size, '0'); 99 len = read(pfd, buf, size); 119 char buf[64]; local 122 memset(buf, 'x', sizeof(buf)); 136 memset(buf, 'x', sizeof(buf)); 180 char buf[1024]; local [all...] |
/linux-master/tools/testing/selftests/resctrl/ |
H A D | fill_buf.c | 41 void mem_flush(unsigned char *buf, size_t buf_size) argument 43 unsigned char *cp = buf; 65 static int fill_one_span_read(unsigned char *buf, size_t buf_size) argument 81 sum += buf[idx * (CL_SIZE / 2)]; 91 static void fill_one_span_write(unsigned char *buf, size_t buf_size) argument 93 unsigned char *end_ptr = buf + buf_size; 96 p = buf; 103 void fill_cache_read(unsigned char *buf, size_t buf_size, bool once) argument 108 ret = fill_one_span_read(buf, buf_size); 117 static void fill_cache_write(unsigned char *buf, size_ argument 128 void *buf = NULL; local 156 unsigned char *buf; local [all...] |
/linux-master/drivers/iio/pressure/ |
H A D | mpl115_spi.c | 26 struct mpl115_spi_buf *buf; local 28 buf = devm_kzalloc(dev, sizeof(*buf), GFP_KERNEL); 29 if (!buf) 32 spi_set_drvdata(spi, buf); 40 struct mpl115_spi_buf *buf = spi_get_drvdata(spi); local 42 .tx_buf = buf->tx, 43 .rx_buf = buf->rx, 48 buf->tx[0] = MPL115_SPI_READ(address); 49 buf 61 struct mpl115_spi_buf *buf = spi_get_drvdata(spi); local [all...] |
/linux-master/tools/bpf/bpftool/ |
H A D | cfg.h | 9 void dump_xlated_cfg(struct dump_data *dd, void *buf, unsigned int len,
|
/linux-master/arch/mips/boot/compressed/ |
H A D | dbg.c | 31 unsigned char buf[10]; local 34 buf[i] = "0123456789ABCDEF"[val & 0x0F]; 37 buf[8] = '\0'; 38 puts(buf);
|
/linux-master/tools/perf/util/intel-pt-decoder/ |
H A D | intel-pt-pkt-decoder.c | 73 static int intel_pt_get_long_tnt(const unsigned char *buf, size_t len, argument 82 payload = get_unaligned_le64(buf); 96 static int intel_pt_get_pip(const unsigned char *buf, size_t len, argument 105 memcpy_le64(&payload, buf + 2, 6); 117 static int intel_pt_get_cbr(const unsigned char *buf, size_t len, argument 123 packet->payload = get_unaligned_le16(buf + 2); 127 static int intel_pt_get_vmcs(const unsigned char *buf, size_t len, argument 135 memcpy_le64(&packet->payload, buf + 2, 5); 146 static int intel_pt_get_psb(const unsigned char *buf, size_t len, argument 155 if (buf[ 169 intel_pt_get_tma(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 187 intel_pt_get_mnt(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 197 intel_pt_get_3byte(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 211 intel_pt_get_ptwrite(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 246 intel_pt_get_mwait(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 256 intel_pt_get_pwre(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 266 intel_pt_get_pwrx(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 276 intel_pt_get_bbp(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 287 intel_pt_get_bip_4(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 298 intel_pt_get_bip_8(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 325 intel_pt_get_cfe(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 336 intel_pt_get_evd(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 348 intel_pt_get_ext(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 421 intel_pt_get_cyc(unsigned int byte, const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 443 intel_pt_get_ip(enum intel_pt_pkt_type type, unsigned int byte, const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 489 intel_pt_get_mode(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 526 intel_pt_get_tsc(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 536 intel_pt_get_mtc(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet) argument 546 intel_pt_do_get_packet(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet, enum intel_pt_pkt_ctx ctx) argument 664 intel_pt_get_packet(const unsigned char *buf, size_t len, struct intel_pt_pkt *packet, enum intel_pt_pkt_ctx *ctx) argument 678 intel_pt_pkt_desc(const struct intel_pt_pkt *packet, char *buf, size_t buf_len) argument [all...] |
/linux-master/drivers/media/common/videobuf2/ |
H A D | videobuf2-vmalloc.c | 40 struct vb2_vmalloc_buf *buf; local 42 buf = kzalloc(sizeof(*buf), GFP_KERNEL | vb->vb2_queue->gfp_flags); 43 if (!buf) 46 buf->size = size; 47 buf->vaddr = vmalloc_user(buf->size); 48 if (!buf->vaddr) { 49 pr_debug("vmalloc of size %ld failed\n", buf->size); 50 kfree(buf); 65 struct vb2_vmalloc_buf *buf = buf_priv; local 76 struct vb2_vmalloc_buf *buf; local 128 struct vb2_vmalloc_buf *buf = buf_priv; local 154 struct vb2_vmalloc_buf *buf = buf_priv; local 166 struct vb2_vmalloc_buf *buf = buf_priv; local 172 struct vb2_vmalloc_buf *buf = buf_priv; local 216 struct vb2_vmalloc_buf *buf = dbuf->priv; local 313 struct vb2_vmalloc_buf *buf = dbuf->priv; local 340 struct vb2_vmalloc_buf *buf = buf_priv; local 370 struct vb2_vmalloc_buf *buf = mem_priv; local 384 struct vb2_vmalloc_buf *buf = mem_priv; local 393 struct vb2_vmalloc_buf *buf = mem_priv; local 407 struct vb2_vmalloc_buf *buf; local [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_probe_read_user_str.c | 12 char buf[256] = {}; variable 20 ret = bpf_probe_read_user_str(buf, sizeof(buf), user_ptr);
|
/linux-master/include/crypto/ |
H A D | dh.h | 55 * @buf: Buffer allocated by the caller to hold the packet DH 66 int crypto_dh_encode_key(char *buf, unsigned int len, const struct dh *params); 70 * @buf: Buffer holding a packet key that should be decoded 76 * in @buf. Thus, both pointers refer to the same memory. 80 int crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params); 84 * @buf: Buffer holding a packet key that should be decoded 95 int __crypto_dh_decode_key(const char *buf, unsigned int len,
|
/linux-master/tools/lib/perf/include/internal/ |
H A D | lib.h | 9 ssize_t readn(int fd, void *buf, size_t n); 10 ssize_t writen(int fd, const void *buf, size_t n); 12 ssize_t preadn(int fd, void *buf, size_t n, off_t offs);
|
/linux-master/tools/perf/arch/powerpc/tests/ |
H A D | dwarf-unwind.c | 19 u64 stack_size, *buf; local 21 buf = malloc(STACK_SIZE); 22 if (!buf) { 32 free(buf); 39 memcpy(buf, (void *) sp, stack_size); 40 stack->data = (char *) buf; 49 u64 *buf; local 51 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX); 52 if (!buf) { 57 perf_regs_load(buf); [all...] |
/linux-master/tools/perf/arch/arm64/tests/ |
H A D | dwarf-unwind.c | 19 u64 stack_size, *buf; local 21 buf = malloc(STACK_SIZE); 22 if (!buf) { 32 free(buf); 39 memcpy(buf, (void *) sp, stack_size); 40 stack->data = (char *) buf; 49 u64 *buf; local 51 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX); 52 if (!buf) { 57 perf_regs_load(buf); [all...] |
/linux-master/tools/perf/arch/arm/tests/ |
H A D | dwarf-unwind.c | 19 u64 stack_size, *buf; local 21 buf = malloc(STACK_SIZE); 22 if (!buf) { 32 free(buf); 39 memcpy(buf, (void *) sp, stack_size); 40 stack->data = (char *) buf; 49 u64 *buf; local 51 buf = calloc(1, sizeof(u64) * PERF_REGS_MAX); 52 if (!buf) { 57 perf_regs_load(buf); [all...] |
/linux-master/arch/s390/crypto/ |
H A D | crc32-vx.h | 8 u32 crc32_be_vgfm_16(u32 crc, unsigned char const *buf, size_t size); 9 u32 crc32_le_vgfm_16(u32 crc, unsigned char const *buf, size_t size); 10 u32 crc32c_le_vgfm_16(u32 crc, unsigned char const *buf, size_t size);
|
/linux-master/drivers/tty/ |
H A D | tty_buffer.c | 55 struct tty_bufhead *buf = &port->buf; local 57 atomic_inc(&buf->priority); 58 mutex_lock(&buf->lock); 72 struct tty_bufhead *buf = &port->buf; local 73 bool restart = buf->head->commit != buf->head->read; 75 atomic_dec(&buf->priority); 76 mutex_unlock(&buf 122 struct tty_bufhead *buf = &port->buf; local 200 struct tty_bufhead *buf = &port->buf; local 224 struct tty_bufhead *buf = &port->buf; local 264 struct tty_bufhead *buf = &port->buf; local 465 struct tty_bufhead *buf = &port->buf; local 531 struct tty_bufhead *buf = &port->buf; local 555 struct tty_bufhead *buf = &port->buf; local 578 struct tty_bufhead *buf = &port->buf; local [all...] |
/linux-master/drivers/media/pci/ivtv/ |
H A D | ivtv-queue.c | 13 int ivtv_buf_copy_from_user(struct ivtv_stream *s, struct ivtv_buffer *buf, const char __user *src, int copybytes) argument 15 if (s->buf_size - buf->bytesused < copybytes) 16 copybytes = s->buf_size - buf->bytesused; 17 if (copy_from_user(buf->buf + buf->bytesused, src, copybytes)) { 20 buf->bytesused += copybytes; 24 void ivtv_buf_swap(struct ivtv_buffer *buf) argument 28 for (i = 0; i < buf->bytesused; i += 4) 29 swab32s((u32 *)(buf 40 ivtv_enqueue(struct ivtv_stream *s, struct ivtv_buffer *buf, struct ivtv_queue *q) argument 61 struct ivtv_buffer *buf = NULL; local 79 struct ivtv_buffer *buf = list_entry(from->list.next, struct ivtv_buffer, list); local 133 struct ivtv_buffer *buf = list_entry(steal->list.prev, struct ivtv_buffer, list); local 229 struct ivtv_buffer *buf = kzalloc(sizeof(struct ivtv_buffer), local 256 struct ivtv_buffer *buf; local [all...] |
/linux-master/drivers/net/wireless/ath/ath11k/ |
H A D | debugfs_htt_stats.c | 43 u8 *buf = stats_req->buf; local 50 len += scnprintf(buf + len, buf_len - len, "HTT_STATS_STRING_TLV:\n"); 52 len += scnprintf(buf + len, buf_len - len, 55 len += scnprintf(buf + len, 60 len += scnprintf(buf + len, buf_len - len, "\n\n"); 63 buf[buf_len - 1] = 0; 65 buf[len] = 0; 74 u8 *buf = stats_req->buf; local 194 u8 *buf = stats_req->buf; local 218 u8 *buf = stats_req->buf; local 242 u8 *buf = stats_req->buf; local 266 u8 *buf = stats_req->buf; local 290 u8 *buf = stats_req->buf; local 314 u8 *buf = stats_req->buf; local 350 u8 *buf = stats_req->buf; local 375 u8 *buf = stats_req->buf; local 402 u8 *buf = stats_req->buf; local 427 u8 *buf = stats_req->buf; local 467 u8 *buf = stats_req->buf; local 514 u8 *buf = stats_req->buf; local 567 u8 *buf = stats_req->buf; local 624 u8 *buf = stats_req->buf; local 659 u8 *buf = stats_req->buf; local 683 u8 *buf = stats_req->buf; local 729 u8 *buf = stats_req->buf; local 778 u8 *buf = stats_req->buf; local 828 u8 *buf = stats_req->buf; local 888 u8 *buf = stats_req->buf; local 913 u8 *buf = stats_req->buf; local 947 u8 *buf = stats_req->buf; local 971 u8 *buf = stats_req->buf; local 1038 u8 *buf = stats_req->buf; local 1065 u8 *buf = stats_req->buf; local 1092 u8 *buf = stats_req->buf; local 1118 u8 *buf = stats_req->buf; local 1145 u8 *buf = stats_req->buf; local 1173 u8 *buf = stats_req->buf; local 1197 u8 *buf = stats_req->buf; local 1302 u8 *buf = stats_req->buf; local 1345 u8 *buf = stats_req->buf; local 1378 u8 *buf = stats_req->buf; local 1429 u8 *buf = stats_req->buf; local 1462 u8 *buf = stats_req->buf; local 1513 u8 *buf = stats_req->buf; local 1595 u8 *buf = stats_req->buf; local 1726 u8 *buf = stats_req->buf; local 1750 u8 *buf = stats_req->buf; local 1774 u8 *buf = stats_req->buf; local 1801 u8 *buf = stats_req->buf; local 1827 u8 *buf = stats_req->buf; local 1894 u8 *buf = stats_req->buf; local 1918 u8 *buf = stats_req->buf; local 1943 u8 *buf = stats_req->buf; local 1968 u8 *buf = stats_req->buf; local 1992 u8 *buf = stats_req->buf; local 2072 u8 *buf = stats_req->buf; local 2106 u8 *buf = stats_req->buf; local 2130 u8 *buf = stats_req->buf; local 2177 u8 *buf = stats_req->buf; local 2209 u8 *buf = stats_req->buf; local 2255 u8 *buf = stats_req->buf; local 2340 u8 *buf = stats_req->buf; local 2376 u8 *buf = stats_req->buf; local 2402 u8 *buf = stats_req->buf; local 2427 u8 *buf = stats_req->buf; local 2457 u8 *buf = stats_req->buf; local 2480 u8 *buf = stats_req->buf; local 2512 u8 *buf = stats_req->buf; local 2573 u8 *buf = stats_req->buf; local 2596 u8 *buf = stats_req->buf; local 2618 u8 *buf = stats_req->buf; local 2650 u8 *buf = stats_req->buf; local 2678 u8 *buf = stats_req->buf; local 2740 u8 *buf = stats_req->buf; local 2760 u8 *buf = stats_req->buf; local 2886 u8 *buf = stats_req->buf; local 3112 u8 *buf = stats_req->buf; local 3159 u8 *buf = stats_req->buf; local 3185 u8 *buf = stats_req->buf; local 3210 u8 *buf = stats_req->buf; local 3234 u8 *buf = stats_req->buf; local 3274 u8 *buf = stats_req->buf; local 3297 u8 *buf = stats_req->buf; local 3414 u8 *buf = stats_req->buf; local 3438 u8 *buf = stats_req->buf; local 3461 u8 *buf = stats_req->buf; local 3487 u8 *buf = stats_req->buf; local 3519 u8 *buf = stats_req->buf; local 3546 u8 *buf = stats_req->buf; local 3590 u8 *buf = stats_req->buf; local 3613 u8 *buf = stats_req->buf; local 3658 u8 *buf = stats_req->buf; local 3695 u8 *buf = stats_req->buf; local 3733 u8 *buf = stats_req->buf; local 3805 u8 *buf = stats_req->buf; local 3837 u8 *buf = stats_req->buf; local 3869 u8 *buf = stats_req->buf; local 3904 u8 *buf = stats_req->buf; local 3939 u8 *buf = stats_req->buf; local 3991 u8 *buf = stats_req->buf; local 4020 u8 *buf = stats_req->buf; local 4051 u8 *buf = stats_req->buf; local 4127 u8 *buf = stats_req->buf; local 4609 char buf[32]; local 4820 char *buf; local 4841 char buf[32]; local [all...] |
/linux-master/drivers/media/usb/uvc/ |
H A D | uvc_isight.c | 35 static int isight_decode(struct uvc_video_queue *queue, struct uvc_buffer *buf, argument 49 if (buf == NULL) 59 if (buf->state != UVC_BUF_STATE_ACTIVE) { 66 buf->state = UVC_BUF_STATE_ACTIVE; 75 if (is_header && buf->bytesused != 0) { 76 buf->state = UVC_BUF_STATE_DONE; 85 maxlen = buf->length - buf->bytesused; 86 mem = buf->mem + buf 101 uvc_video_decode_isight(struct uvc_urb *uvc_urb, struct uvc_buffer *buf, struct uvc_buffer *meta_buf) argument [all...] |
/linux-master/drivers/rtc/ |
H A D | rtc-ds1672.c | 31 unsigned char buf[4]; local 37 .buf = &addr 43 .buf = buf 53 if (buf[0] & DS1672_REG_CONTROL_EOSC) { 69 __func__, buf[0], buf[1], buf[2], buf[3]); 71 time = ((unsigned long)buf[ 85 unsigned char buf[6]; local [all...] |
H A D | rtc-88pm80x.c | 102 unsigned char buf[4]; local 104 regmap_raw_read(info->map, PM800_RTC_EXPIRE2_1, buf, 4); 105 base = ((unsigned long)buf[3] << 24) | (buf[2] << 16) | 106 (buf[1] << 8) | buf[0]; 107 dev_dbg(info->dev, "%x-%x-%x-%x\n", buf[0], buf[1], buf[2], buf[ 123 unsigned char buf[4]; local 147 unsigned char buf[4]; local 175 unsigned char buf[4]; local [all...] |
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | sockopt_multi.c | 13 __u8 buf; local 18 buf = 0x80; 19 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); 25 buf = 0x00; 27 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); 33 if (buf != 0x80) { 34 log_err("Unexpected getsockopt 0x%x != 0x80 without BPF", buf); 49 buf = 0x00; 51 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); 57 if (buf ! 164 __u8 buf; local [all...] |
/linux-master/drivers/iio/chemical/ |
H A D | sps30_serial.c | 45 unsigned char buf[SPS30_SERIAL_MAX_BUF_SIZE]; member in struct:sps30_serial_priv 51 static int sps30_serial_xfer(struct sps30_state *state, const unsigned char *buf, size_t size) argument 61 ret = serdev_device_write(serdev, buf, size, SPS30_SERIAL_TIMEOUT); 86 static int sps30_serial_put_byte(u8 *buf, u8 byte) argument 94 buf[0] = SPS30_SERIAL_ESCAPE_CHAR; 95 buf[1] = sps30_serial_bytes[i].byte2; 100 buf[0] = byte; 122 static unsigned char sps30_serial_calc_chksum(const unsigned char *buf, size_t num) argument 128 chksum += buf[i]; 133 static int sps30_serial_prep_frame(u8 *buf, u argument 156 sps30_serial_frame_valid(struct sps30_state *state, const unsigned char *buf) argument 194 unsigned char buf[SPS30_SERIAL_MAX_BUF_SIZE]; local 213 sps30_serial_receive_buf(struct serdev_device *serdev, const u8 *buf, size_t size) argument 278 unsigned char buf[] = { 0x01, 0x03 }; local 325 unsigned char buf[] = { 0x00 }; local 340 unsigned char buf[5] = { 0x00 }; local 353 unsigned char buf[32 + 1] = { 0x03 }; local [all...] |
/linux-master/tools/testing/selftests/cgroup/ |
H A D | cgroup_util.c | 23 static ssize_t read_text(const char *path, char *buf, size_t max_len) argument 32 len = read(fd, buf, max_len - 1); 35 buf[len] = 0; 42 static ssize_t write_text(const char *path, char *buf, ssize_t len) argument 50 len = write(fd, buf, len); 86 int cg_read(const char *cgroup, const char *control, char *buf, size_t len) argument 93 ret = read_text(path, buf, len); 101 char *buf; local 110 buf = malloc(size); 111 if (!buf) 126 char buf[PAGE_SIZE]; local 136 char buf[128]; local 146 char buf[PAGE_SIZE]; local 161 char buf[PAGE_SIZE]; local 176 cg_write(const char *cgroup, const char *control, char *buf) argument 188 char buf[64]; local 200 char buf[10 * PAGE_SIZE]; local 234 char buf[10 * PAGE_SIZE] = {0}; local 259 char buf[PAGE_SIZE]; local 333 char buf[64]; local 456 char buf[64]; local 474 char buf[PAGE_SIZE]; local 498 char *buf, *ptr; local 510 char buf[PAGE_SIZE]; local 547 char buf[4 * PAGE_SIZE]; local 557 proc_read_text(int pid, bool thread, const char *item, char *buf, size_t size) argument 574 char buf[PAGE_SIZE]; local [all...] |
/linux-master/drivers/media/tuners/ |
H A D | mt20xx.c | 103 unsigned char *buf, 162 buf[0]=lo1n-1; 163 buf[1]=lo1a | (sel<<4); 164 buf[2]=0x86; // LOGC 165 buf[3]=0x0f; //reserved 166 buf[4]=0x1f; 167 buf[5]=(lo2n-1) | (lo2a<<5); 169 buf[6]=0xe4; 171 buf[6]=0xf4; // set PKEN per rev 1.2 172 buf[ 98 mt2032_compute_freq(struct dvb_frontend *fe, unsigned int rfin, unsigned int if1, unsigned int if2, unsigned int spectrum_from, unsigned int spectrum_to, unsigned char *buf, int *ret_sel, unsigned int xogc) argument 186 unsigned char buf[2]; local 207 unsigned char buf[2]; local 245 unsigned char buf[21]; local 375 unsigned char buf[21]; local 431 unsigned char buf[2]; local 445 unsigned char buf[6]; local 569 unsigned char buf[2]; local 596 unsigned char buf[21]; local [all...] |
/linux-master/arch/alpha/lib/ |
H A D | srm_printk.c | 12 static char buf[1024]; local 18 len = vsprintf(buf, fmt, args); 24 for (src = buf; *src; ++src) { 32 for (dst = src + num_lf; src >= buf; ) { 40 srm_puts(buf, num_lf+len);
|