/kernel/linux/linux-5.10/include/linux/ |
H A D | xattr.h | 35 struct inode *inode, const char *name, void *buffer, 38 struct inode *inode, const char *name, const void *buffer, 61 ssize_t generic_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size); 108 void *buffer, size_t size); 112 ssize_t simple_xattr_list(struct inode *inode, struct simple_xattrs *xattrs, char *buffer,
|
/kernel/linux/linux-5.10/security/apparmor/ |
H A D | path.c | 25 static int prepend(char **buffer, int buflen, const char *str, int namelen) in prepend() argument 30 *buffer -= namelen; in prepend() 31 memcpy(*buffer, str, namelen); in prepend() 77 * @buf: buffer to store path to (NOT NULL) 178 * aa_path_name - get the pathname to a buffer ensure dir / is appended 181 * @buffer: buffer to put name in (NOT NULL) 187 * from the beginning of the buffer), or NULL. If there is an error @name 197 int aa_path_name(const struct path *path, int flags, char *buffer, in aa_path_name() argument 201 int error = d_namespace_path(path, buffer, in aa_path_name() [all...] |
/kernel/linux/linux-5.10/include/sound/ |
H A D | rawmidi.h | 56 /* midi stream buffer */ 57 unsigned char *buffer; /* buffer for MIDI data */ member 58 size_t buffer_size; /* size of buffer */ 62 size_t avail; /* max used buffer for wakeup */ 64 int buffer_ref; /* buffer reference count */ 149 const unsigned char *buffer, int count); 152 unsigned char *buffer, int count); 155 unsigned char *buffer, int count); 157 unsigned char *buffer, in [all...] |
/kernel/linux/linux-5.10/drivers/platform/x86/ |
H A D | wmi-bmof.c | 39 if (off >= priv->bmofdata->buffer.length) in read_bmof() 42 if (count > priv->bmofdata->buffer.length - off) in read_bmof() 43 count = priv->bmofdata->buffer.length - off; in read_bmof() 45 memcpy(buf, priv->bmofdata->buffer.pointer + off, count); in read_bmof() 67 dev_err(&wdev->dev, "Binary MOF is not a buffer\n"); in wmi_bmof_probe() 76 priv->bmof_bin_attr.size = priv->bmofdata->buffer.length; in wmi_bmof_probe()
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/i2c/ |
H A D | atomisp-libmsrlisthelper.c | 90 static int parse_and_apply(struct i2c_client *client, uint8_t *buffer, in parse_and_apply() argument 93 u8 *endptr8 = buffer + size; in parse_and_apply() 95 (struct tbd_data_record_header *)buffer; in parse_and_apply() 101 /* In below, four variables are read from buffer */ in parse_and_apply() 105 /* All data should be located within given buffer */ in parse_and_apply() 121 buffer + header->data_offset, in parse_and_apply() 126 header = (struct tbd_data_record_header *)(buffer + in parse_and_apply()
|
/kernel/linux/linux-6.6/drivers/accessibility/speakup/ |
H A D | genmap.c | 56 char buffer[256]; in main() local 74 while (fgets(buffer, sizeof(buffer), infile)) { in main() 78 cp = strtok(buffer, delims); in main() 111 while (--cp > buffer) in main()
|
H A D | makemapdata.c | 17 static char buffer[256]; variable 23 while (fgets(buffer, sizeof(buffer)-1, infile)) { in get_define() 25 if (strncmp(buffer, "#define", 7)) in get_define() 27 c = buffer + 7; in get_define()
|
/kernel/linux/linux-6.6/drivers/android/ |
H A D | binder_alloc.h | 22 * struct binder_buffer - buffer used for binder transactions 25 * @free: %true if buffer is free 26 * @clear_on_free: %true if buffer must be zeroed after use 27 * @allow_user_free: %true if user is allowed to free buffer 28 * @async_transaction: %true if buffer is in use for an async txn 33 * @target_node: struct binder_node associated with this buffer 37 * @user_data: user pointer to base of buffer space 38 * @pid: pid to attribute the buffer to (caller) 81 * @buffer: base of per-proc address space mapped via mmap 93 * flag once the async buffer ha 104 void __user *buffer; global() member [all...] |
/kernel/linux/linux-6.6/fs/squashfs/ |
H A D | page_actor.c | 16 * an intermediate buffer, and for decompressing directly into the 23 /* Implementation of page_actor for decompressing into intermediate buffer */ 27 return actor->buffer[0]; in cache_first_page() 35 return actor->buffer[actor->next_page++]; in cache_next_page() 43 struct squashfs_page_actor *squashfs_page_actor_init(void **buffer, in squashfs_page_actor_init() argument 52 actor->buffer = buffer; in squashfs_page_actor_init()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | seq_buf.h | 13 * seq_buf - seq buffer structure 14 * @buffer: pointer to the buffer 15 * @size: size of the buffer 16 * @len: the amount of data inside the buffer 17 * @readpos: The next position to read in the buffer. 20 char *buffer; member 35 s->buffer = buf; in seq_buf_init() 41 * seq_buf have a buffer that might overflow. When this happens 57 * How much buffer i [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/i2c/ |
H A D | atomisp-libmsrlisthelper.c | 92 static int parse_and_apply(struct i2c_client *client, uint8_t *buffer, in parse_and_apply() argument 95 u8 *endptr8 = buffer + size; in parse_and_apply() 97 (struct tbd_data_record_header *)buffer; in parse_and_apply() 103 /* In below, four variables are read from buffer */ in parse_and_apply() 107 /* All data should be located within given buffer */ in parse_and_apply() 123 buffer + header->data_offset, in parse_and_apply() 128 header = (struct tbd_data_record_header *)(buffer + in parse_and_apply()
|
/kernel/linux/linux-6.6/drivers/thunderbolt/ |
H A D | ctl.h | 48 void *buffer; member 129 struct tb_cfg_result tb_cfg_read_raw(struct tb_ctl *ctl, void *buffer, 133 struct tb_cfg_result tb_cfg_write_raw(struct tb_ctl *ctl, const void *buffer, 137 int tb_cfg_read(struct tb_ctl *ctl, void *buffer, u64 route, u32 port, 139 int tb_cfg_write(struct tb_ctl *ctl, const void *buffer, u64 route, u32 port,
|
/kernel/linux/linux-6.6/drivers/usb/storage/ |
H A D | protocol.c | 113 * Scatter-gather transfer buffer access routines 117 * Copy a buffer of length buflen to/from the srb's transfer buffer. 121 unsigned int usb_stor_access_xfer_buf(unsigned char *buffer, in usb_stor_access_xfer_buf() argument 146 memcpy(buffer + cnt, miter.addr, len); in usb_stor_access_xfer_buf() 148 memcpy(miter.addr, buffer + cnt, len); in usb_stor_access_xfer_buf() 166 * Store the contents of buffer into srb's transfer buffer and set the 169 void usb_stor_set_xfer_buf(unsigned char *buffer, in usb_stor_set_xfer_buf() argument 176 buflen = usb_stor_access_xfer_buf(buffer, bufle in usb_stor_set_xfer_buf() [all...] |
/kernel/linux/linux-6.6/drivers/bluetooth/ |
H A D | h4_recv.h | 43 const unsigned char *buffer, in h4_recv_buf() 57 if (buffer[0] != (&pkts[i])->type) in h4_recv_buf() 75 buffer += 1; in h4_recv_buf() 79 skb_put_data(skb, buffer, len); in h4_recv_buf() 82 buffer += len; in h4_recv_buf() 41 h4_recv_buf(struct hci_dev *hdev, struct sk_buff *skb, const unsigned char *buffer, int count, const struct h4_recv_pkt *pkts, int pkts_count) h4_recv_buf() argument
|
/kernel/linux/linux-6.6/drivers/media/i2c/cx25840/ |
H A D | cx25840-firmware.c | 99 u8 buffer[FWSEND]; in cx25840_loadfw() local 123 buffer[0] = 0x08; in cx25840_loadfw() 124 buffer[1] = 0x02; in cx25840_loadfw() 131 memcpy(buffer + 2, ptr, len); in cx25840_loadfw() 133 retval = fw_write(client, buffer, len + 2); in cx25840_loadfw()
|
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | max11100.c | 39 u8 buffer[3] __aligned(IIO_DMA_MINALIGN); 55 ret = spi_read(state->spi, state->buffer, sizeof(state->buffer)); in max11100_read_single() 62 if (state->buffer[0]) { in max11100_read_single() 63 dev_err(&indio_dev->dev, "Invalid value: buffer[0] != 0\n"); in max11100_read_single() 67 *val = get_unaligned_be16(&state->buffer[1]); in max11100_read_single()
|
/kernel/linux/linux-6.6/tools/perf/scripts/python/ |
H A D | libxed.py | 41 self.buffer = create_string_buffer(256) 42 self.bufferp = addressof(self.buffer) 98 ok = self.xed_format_context(2, inst.xedp, inst.bufferp, sizeof(inst.buffer), ip, 0, 0) 102 result = inst.buffer.value 104 result = inst.buffer.value.decode()
|
/kernel/linux/linux-6.6/scripts/mod/ |
H A D | modpost.h | 81 struct buffer { struct 88 buf_printf(struct buffer *buf, const char *fmt, ...); 91 buf_write(struct buffer *buf, const char *s, int len); 103 struct buffer dev_table_buf; 160 void add_moddevtable(struct buffer *buf, struct module *mod);
|
/kernel/linux/linux-6.6/security/apparmor/ |
H A D | path.c | 25 static int prepend(char **buffer, int buflen, const char *str, int namelen) in prepend() argument 30 *buffer -= namelen; in prepend() 31 memcpy(*buffer, str, namelen); in prepend() 77 * @buf: buffer to store path to (NOT NULL) 178 * aa_path_name - get the pathname to a buffer ensure dir / is appended 181 * @buffer: buffer to put name in (NOT NULL) 187 * from the beginning of the buffer), or NULL. If there is an error @name 197 int aa_path_name(const struct path *path, int flags, char *buffer, in aa_path_name() argument 201 int error = d_namespace_path(path, buffer, in aa_path_name() [all...] |
/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/ |
H A D | shm_test_001.cpp | 86 char buffer[BUFSIZ + 1] = {'\0'}; in ShmWriteFunc() local 108 (void)snprintf_s(buffer, BUFSIZ, BUFSIZ + 1, "test"); in ShmWriteFunc() 110 (void)snprintf_s(buffer, BUFSIZ, BUFSIZ + 1, "end"); in ShmWriteFunc() 113 (void)strncpy_s(shared->text, TEXT_SZ, buffer, TEXT_SZ - 1); in ShmWriteFunc() 116 if (strncmp(buffer, "end", 3) == 0) { in ShmWriteFunc()
|
/kernel/linux/linux-6.6/drivers/s390/cio/ |
H A D | cio_inject.c | 90 char *buffer; in crw_inject_write() local 98 buffer = vmemdup_user(buf, lbuf); in crw_inject_write() 99 if (IS_ERR(buffer)) in crw_inject_write() 102 rc = sscanf(buffer, "%x %x %x %x %x %x %x", &slct, &oflw, &chn, &rsc, &anc, in crw_inject_write() 105 kvfree(buffer); in crw_inject_write()
|
/kernel/linux/linux-6.6/samples/fanotify/ |
H A D | fs-monitor.c | 55 static void handle_notifications(char *buffer, int len) in handle_notifications() argument 58 (struct fanotify_event_metadata *) buffer; in handle_notifications() 116 char buffer[BUFSIZ]; in main() local 133 int n = read(fd, buffer, BUFSIZ); in main() 138 handle_notifications(buffer, n); in main()
|
/kernel/liteos_a/apps/trace/src/ |
H A D | trace.c | 61 printf("\nUsage: ./trace [reset] Clear the trace record buffer.\n"); in TraceUsage() 65 printf("\nUsage: ./trace [read nBytes] Read nBytes raw data from trace buffer.\n"); in TraceUsage() 77 char *buffer = (char *)malloc(size); in TraceRead() local 78 if (buffer == NULL) { in TraceRead() 79 printf("Read buffer malloc failed.\n"); in TraceRead() 83 len = read(fd, buffer, size); in TraceRead() 85 printf("%02x ", buffer[i] & 0xFF); in TraceRead() 88 free(buffer); in TraceRead()
|
/kernel/linux/linux-5.10/kernel/power/ |
H A D | snapshot.c | 132 /* Pointer to an auxiliary buffer (1 page) */ 133 static void *buffer; variable 1383 safe_copy_page(buffer, s_page); in copy_data_page() 1385 copy_page(dst, buffer); in copy_data_page() 1496 buffer = NULL; in swsusp_free() 1886 * get_highmem_buffer - Allocate a buffer for highmem pages. 1889 * buffer to copy them and/or load their data. 1893 buffer = get_image_page(GFP_ATOMIC, safe_needed); in get_highmem_buffer() 1894 return buffer ? 0 : -ENOMEM; in get_highmem_buffer() 2054 * @buf: Memory buffer t [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/zydas/zd1211rw/ |
H A D | zd_usb.c | 177 /* Use "DMA-aware" buffer. */ in upload_code() 215 static char *get_fw_name(struct zd_usb *usb, char *buffer, size_t size, in get_fw_name() argument 218 scnprintf(buffer, size, "%s%s", in get_fw_name() 222 return buffer; in get_fw_name() 331 /* Use "DMA-aware" buffer. */ in zd_usb_read_fw() 394 if (len > sizeof(intr->read_regs.buffer)) in handle_regs_int() 395 len = sizeof(intr->read_regs.buffer); in handle_regs_int() 397 memcpy(intr->read_regs.buffer, urb->transfer_buffer, len); in handle_regs_int() 540 intr->buffer = usb_alloc_coherent(udev, USB_MAX_EP_INT_BUFFER, in zd_usb_enable_int() 542 if (!intr->buffer) { in zd_usb_enable_int() 583 void *buffer; zd_usb_disable_int() local 605 handle_rx_packet(struct zd_usb *usb, const u8 *buffer, unsigned int length) handle_rx_packet() argument 644 zd_mac_rx(zd_usb_to_hw(usb), buffer, length); handle_rx_packet() local 653 const u8 *buffer; rx_urb_complete() local 717 void *buffer; alloc_rx_urb() local 1233 scnprint_id(struct usb_device *udev, char *buffer, size_t size) scnprint_id() argument 1242 zd_usb_scnprint_id(struct zd_usb *usb, char *buffer, size_t size) zd_usb_scnprint_id() argument 1251 char buffer[40]; print_id() local [all...] |