Searched refs:buf (Results 51 - 75 of 8610) sorted by relevance

1234567891011>>

/linux-master/fs/
H A Dstatfs.c55 static int statfs_by_dentry(struct dentry *dentry, struct kstatfs *buf) argument
62 memset(buf, 0, sizeof(*buf));
66 retval = dentry->d_sb->s_op->statfs(dentry, buf);
67 if (retval == 0 && buf->f_frsize == 0)
68 buf->f_frsize = buf->f_bsize;
86 int vfs_statfs(const struct path *path, struct kstatfs *buf) argument
90 error = statfs_by_dentry(path->dentry, buf);
92 buf
128 struct statfs buf; local
170 struct statfs64 buf; local
269 struct compat_statfs buf; local
325 struct compat_statfs64 buf; local
348 kcompat_sys_statfs64(const char __user * pathname, compat_size_t sz, struct compat_statfs64 __user * buf) argument
367 kcompat_sys_fstatfs64(unsigned int fd, compat_size_t sz, struct compat_statfs64 __user * buf) argument
[all...]
/linux-master/arch/alpha/kernel/
H A Dbugs.c20 struct device_attribute *attr, char *buf)
23 return sprintf(buf, "Vulnerable\n");
25 return sprintf(buf, "Not affected\n");
29 struct device_attribute *attr, char *buf)
32 return sprintf(buf, "Vulnerable\n");
34 return sprintf(buf, "Not affected\n");
38 struct device_attribute *attr, char *buf)
41 return sprintf(buf, "Vulnerable\n");
43 return sprintf(buf, "Not affected\n");
19 cpu_show_meltdown(struct device *dev, struct device_attribute *attr, char *buf) argument
28 cpu_show_spectre_v1(struct device *dev, struct device_attribute *attr, char *buf) argument
37 cpu_show_spectre_v2(struct device *dev, struct device_attribute *attr, char *buf) argument
/linux-master/tools/perf/tests/
H A Ddemangle-ocaml-test.c13 char *buf = NULL; local
30 buf = ocaml_demangle_sym(test_cases[i].mangled);
31 if ((buf == NULL && test_cases[i].demangled != NULL)
32 || (buf != NULL && test_cases[i].demangled == NULL)
33 || (buf != NULL && strcmp(buf, test_cases[i].demangled))) {
35 buf == NULL ? "(null)" : buf,
39 free(buf);
/linux-master/include/trace/events/
H A Dqla.h18 TP_PROTO(const char *buf,
21 TP_ARGS(buf, vaf),
24 __string(buf, buf)
28 __assign_str(buf, buf);
32 TP_printk("%s %s", __get_str(buf), __get_str(msg))
38 TP_PROTO(const char *buf, struct va_format *vaf),
39 TP_ARGS(buf, vaf)
/linux-master/include/linux/
H A Dswab.h24 static inline void swab16_array(u16 *buf, unsigned int words) argument
27 swab16s(buf);
28 buf++;
32 static inline void swab32_array(u32 *buf, unsigned int words) argument
35 swab32s(buf);
36 buf++;
40 static inline void swab64_array(u64 *buf, unsigned int words) argument
43 swab64s(buf);
44 buf++;
H A Drelay.h53 unsigned int cpu; /* this buf's cpu */
69 struct rchan_buf * __percpu *buf; /* per-cpu channel buffers */ member in struct:rchan
84 * @buf: the channel buffer containing the new sub-buffer
101 int (*subbuf_start) (struct rchan_buf *buf,
111 * @buf: the channel buffer
134 struct rchan_buf *buf,
171 extern int relay_buf_full(struct rchan_buf *buf);
173 extern size_t relay_switch_subbuf(struct rchan_buf *buf,
194 struct rchan_buf *buf; local
197 buf
221 struct rchan_buf *buf; local
245 struct rchan_buf *buf = *get_cpu_ptr(chan->buf); local
268 subbuf_start_reserve(struct rchan_buf *buf, size_t length) argument
[all...]
H A Dhex.h11 static inline char *hex_byte_pack(char *buf, u8 byte) argument
13 *buf++ = hex_asc_hi(byte);
14 *buf++ = hex_asc_lo(byte);
15 return buf;
22 static inline char *hex_byte_pack_upper(char *buf, u8 byte) argument
24 *buf++ = hex_asc_upper_hi(byte);
25 *buf++ = hex_asc_upper_lo(byte);
26 return buf;
/linux-master/tools/testing/selftests/proc/
H A Dproc-uptime.h40 char buf[64], *p; local
44 memset(buf, 0, sizeof(buf));
45 rv = pread(fd, buf, sizeof(buf), 0);
46 assert(0 <= rv && rv <= sizeof(buf));
47 buf[sizeof(buf) - 1] = '\0';
49 p = buf;
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_devlink.c8 static void i40e_info_get_dsn(struct i40e_pf *pf, char *buf, size_t len) argument
14 snprintf(buf, len, "%8phD", dsn);
17 static void i40e_info_fw_mgmt(struct i40e_hw *hw, char *buf, size_t len) argument
21 snprintf(buf, len, "%u.%u", aq->fw_maj_ver, aq->fw_min_ver);
24 static void i40e_info_fw_mgmt_build(struct i40e_hw *hw, char *buf, size_t len) argument
28 snprintf(buf, len, "%05d", aq->fw_build);
31 static void i40e_info_fw_api(struct i40e_hw *hw, char *buf, size_t len) argument
35 snprintf(buf, len, "%u.%u", aq->api_maj_ver, aq->api_min_ver);
38 static void i40e_info_pba(struct i40e_hw *hw, char *buf, size_t len) argument
40 buf[
72 char buf[32]; local
[all...]
/linux-master/tools/perf/arch/x86/tests/
H A Ddwarf-unwind.c19 u64 stack_size, *buf; local
21 buf = malloc(STACK_SIZE);
22 if (!buf) {
32 free(buf);
40 memcpy(buf, (void *) sp, stack_size);
46 __msan_unpoison(buf, stack_size);
48 stack->data = (char *) buf;
57 u64 *buf; local
59 buf = malloc(sizeof(u64) * PERF_REGS_MAX);
60 if (!buf) {
[all...]
/linux-master/arch/sparc/prom/
H A Dconsole_32.c22 static int prom_nbputchar(const char *buf) argument
30 if ((*(romvec->pv_nbputchar))(*buf))
36 buf, 0x1) == 1)
47 void prom_console_write_buf(const char *buf, int len) argument
50 int n = prom_nbputchar(buf);
54 buf++;
/linux-master/net/sunrpc/auth_gss/
H A Dgss_generic_token.c96 der_write_length(unsigned char **buf, int length) argument
99 *(*buf)++ = (unsigned char) length;
101 *(*buf)++ = (unsigned char) (der_length_size(length)+127);
104 *(*buf)++ = (unsigned char) (length>>24);
106 *(*buf)++ = (unsigned char) ((length>>16)&0xff);
109 *(*buf)++ = (unsigned char) ((length>>8)&0xff);
110 *(*buf)++ = (unsigned char) (length&0xff);
114 /* returns decoded length, or < 0 on failure. Advances buf and
118 der_read_length(unsigned char **buf, int *bufsize) argument
125 sf = *(*buf)
160 g_make_token_header(struct xdr_netobj *mech, int body_size, unsigned char **buf) argument
183 unsigned char *buf = *buf_in; local
[all...]
/linux-master/lib/
H A Dfortify_kunit.c358 char buf[32]; local
367 int i, end = sizeof(pad.buf) - 1;
370 for (i = 0; i < sizeof(pad.buf) - 1; i++)
371 pad.buf[i] = i + '0';
373 KUNIT_EXPECT_EQ(test, pad.buf[end], '\0');
377 KUNIT_EXPECT_EQ(test, strlen(pad.buf), end);
381 pad.buf[end] = 'A';
382 end = sizeof(pad.buf);
383 KUNIT_EXPECT_EQ(test, strlen(pad.buf), end);
390 int i, end = sizeof(pad.buf)
[all...]
/linux-master/drivers/infiniband/hw/hns/
H A Dhns_roce_alloc.c38 void hns_roce_buf_free(struct hns_roce_dev *hr_dev, struct hns_roce_buf *buf) argument
43 if (!buf)
46 trunks = buf->trunk_list;
48 buf->trunk_list = NULL;
49 for (i = 0; i < buf->ntrunks; i++)
50 dma_free_coherent(hr_dev->dev, 1 << buf->trunk_shift,
51 trunks[i].buf, trunks[i].map);
56 kfree(buf);
71 struct hns_roce_buf *buf; local
80 buf
132 hns_roce_get_kmem_bufs(struct hns_roce_dev *hr_dev, dma_addr_t *bufs, int buf_cnt, struct hns_roce_buf *buf, unsigned int page_shift) argument
[all...]
/linux-master/drivers/iio/buffer/
H A Dindustrialio-hw-consumer.c55 struct hw_consumer_buffer *buf; local
57 list_for_each_entry(buf, &hwc->buffers, head) {
58 if (buf->indio_dev == indio_dev)
59 return buf;
62 buf = kzalloc(struct_size(buf, scan_mask, BITS_TO_LONGS(indio_dev->masklength)),
64 if (!buf)
67 buf->buffer.access = &iio_hw_buf_access;
68 buf->indio_dev = indio_dev;
69 buf
85 struct hw_consumer_buffer *buf; local
131 struct hw_consumer_buffer *buf, *n; local
180 struct hw_consumer_buffer *buf; local
204 struct hw_consumer_buffer *buf; local
[all...]
/linux-master/tools/lib/perf/
H A Dlib.c10 static ssize_t ion(bool is_read, int fd, void *buf, size_t n) argument
12 void *buf_start = buf;
16 /* buf must be treated as const if !is_read. */
17 ssize_t ret = is_read ? read(fd, buf, left) :
18 write(fd, buf, left);
26 buf += ret;
29 BUG_ON((size_t)(buf - buf_start) != n);
36 ssize_t readn(int fd, void *buf, size_t n) argument
38 return ion(true, fd, buf, n);
41 ssize_t preadn(int fd, void *buf, size_ argument
64 writen(int fd, const void *buf, size_t n) argument
[all...]
/linux-master/arch/s390/kernel/
H A Dkexec_image.c19 struct kexec_buf buf; local
21 buf.image = image;
23 buf.buffer = image->kernel_buf;
24 buf.bufsz = image->kernel_buf_len;
26 buf.mem = 0;
29 buf.mem += crashk_res.start;
31 buf.memsz = buf.bufsz;
34 data->kernel_mem = buf.mem;
36 data->memsz += buf
53 s390_image_probe(const char *buf, unsigned long len) argument
[all...]
/linux-master/sound/core/
H A Dump_convert.c69 static int cvt_ump_system_to_legacy(u32 data, unsigned char *buf) argument
71 buf[0] = ump_message_status_channel(data);
75 buf[1] = (data >> 8) & 0x7f;
78 buf[1] = (data >> 8) & 0x7f;
79 buf[2] = data & 0x7f;
87 static int cvt_ump_midi1_to_legacy(u32 data, unsigned char *buf) argument
89 buf[0] = ump_message_status_channel(data);
90 buf[1] = (data >> 8) & 0xff;
96 buf[2] = data & 0xff;
103 unsigned char *buf)
102 cvt_ump_midi2_to_legacy(const union snd_ump_midi2_msg *midi2, unsigned char *buf) argument
170 cvt_ump_sysex7_to_legacy(const u32 *data, unsigned char *buf) argument
219 snd_ump_convert_from_ump(const u32 *data, unsigned char *buf, unsigned char *group_ret) argument
317 const unsigned char *buf = cvt->buf; local
[all...]
/linux-master/fs/bcachefs/
H A Dthread_with_file.c72 return stdio->input.buf.nr || stdio->done;
77 return stdio->output.buf.nr || stdio->done;
84 return stdio->input.buf.nr < STDIO_REDIRECT_BUFSIZE || stdio->done;
89 return stdio->output.buf.nr < STDIO_REDIRECT_BUFSIZE || stdio->done;
92 static void stdio_buf_init(struct stdio_buf *buf) argument
94 spin_lock_init(&buf->lock);
95 init_waitqueue_head(&buf->wait);
96 darray_init(&buf->buf);
114 struct stdio_buf *buf local
167 struct stdio_buf *buf = &thr->stdio.input; local
331 struct stdio_buf *buf = &stdio->input; local
360 struct stdio_buf *buf = &stdio->input; local
424 struct stdio_buf *buf = &stdio->output; local
[all...]
/linux-master/drivers/net/wireless/ath/ath5k/
H A Ddebug.c179 char buf[500]; local
185 len += scnprintf(buf + len, sizeof(buf) - len,
190 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n",
193 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\n\n",
197 len += scnprintf(buf + len, sizeof(buf) - len, "%-24s0x%08x\tTU: %08x\n",
201 len += scnprintf(buf
228 char buf[20]; local
300 char buf[700]; local
330 char buf[20]; local
362 char buf[700]; local
435 char buf[20]; local
475 char buf[700]; local
531 char buf[700]; local
608 char buf[20]; local
651 char buf[700]; local
757 char buf[20]; local
813 char buf[700]; local
855 char buf[20]; local
882 u16 *buf; member in struct:eeprom_private
893 u16 val, *buf; local
[all...]
/linux-master/drivers/scsi/pcmcia/
H A Dnsp_io.h69 void *buf,
72 insb(BaseAddr + Register, buf, count);
76 void *buf,
79 /*nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx", buf, count);*/
80 nsp_multi_read_1(base, FIFODATA, buf, count);
88 void *buf,
91 insw(BaseAddr + Register, buf, count);
95 void *buf,
98 //nsp_dbg(NSP_DEBUG_DATA_IO, "buf
67 nsp_multi_read_1(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument
75 nsp_fifo8_read(unsigned int base, void *buf, unsigned long count) argument
86 nsp_multi_read_2(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument
94 nsp_fifo16_read(unsigned int base, void *buf, unsigned long count) argument
105 nsp_multi_read_4(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument
113 nsp_fifo32_read(unsigned int base, void *buf, unsigned long count) argument
124 nsp_multi_write_1(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument
132 nsp_fifo8_write(unsigned int base, void *buf, unsigned long count) argument
142 nsp_multi_write_2(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument
150 nsp_fifo16_write(unsigned int base, void *buf, unsigned long count) argument
160 nsp_multi_write_4(unsigned int BaseAddr, unsigned int Register, void *buf, unsigned long count) argument
168 nsp_fifo32_write(unsigned int base, void *buf, unsigned long count) argument
219 nsp_mmio_multi_read_4(unsigned long base, unsigned int Register, void *buf, unsigned long count) argument
237 nsp_mmio_fifo32_read(unsigned int base, void *buf, unsigned long count) argument
245 nsp_mmio_multi_write_4(unsigned long base, unsigned int Register, void *buf, unsigned long count) argument
263 nsp_mmio_fifo32_write(unsigned int base, void *buf, unsigned long count) argument
[all...]
/linux-master/include/linux/mtd/
H A Dnand-ecc-sw-hamming.h36 int ecc_sw_hamming_calculate(const unsigned char *buf, unsigned int step_size,
39 const unsigned char *buf,
41 int ecc_sw_hamming_correct(unsigned char *buf, unsigned char *read_ecc,
44 int nand_ecc_sw_hamming_correct(struct nand_device *nand, unsigned char *buf,
57 static inline int ecc_sw_hamming_calculate(const unsigned char *buf, argument
65 const unsigned char *buf,
71 static inline int ecc_sw_hamming_correct(unsigned char *buf, argument
80 unsigned char *buf,
64 nand_ecc_sw_hamming_calculate(struct nand_device *nand, const unsigned char *buf, unsigned char *code) argument
79 nand_ecc_sw_hamming_correct(struct nand_device *nand, unsigned char *buf, unsigned char *read_ecc, unsigned char *calc_ecc) argument
/linux-master/drivers/media/platform/st/sti/delta/
H A Ddelta-mem.h11 struct delta_buf *buf);
12 void hw_free(struct delta_ctx *ctx, struct delta_buf *buf);
/linux-master/tools/power/cpupower/lib/
H A Dcpupower_intern.h11 unsigned int cpupower_read_sysfs(const char *path, char *buf, size_t buflen);
12 unsigned int cpupower_write_sysfs(const char *path, char *buf, size_t buflen);
/linux-master/tools/testing/selftests/arm64/bti/
H A Dsystem.c17 ssize_t write(int fd, const void *buf, size_t size) argument
19 return syscall(__NR_write, fd, buf, size);

Completed in 184 milliseconds

1234567891011>>