/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()
|
/third_party/ffmpeg/libavcodec/ |
H A D | srtdec.c | 61 AVBPrint buffer; in srt_decode_frame() local 78 av_bprint_init(&buffer, 0, AV_BPRINT_SIZE_UNLIMITED); in srt_decode_frame() 80 ret = srt_to_ass(avctx, &buffer, avpkt->data, x1, y1, x2, y2); in srt_decode_frame() 82 ret = ff_ass_add_rect(sub, buffer.str, s->readorder++, 0, NULL, NULL); in srt_decode_frame() 83 av_bprint_finalize(&buffer, NULL); in srt_decode_frame()
|
/third_party/ffmpeg/libavformat/ |
H A D | gopher.c | 47 char buffer[1024]; in gopher_connect() local 64 snprintf(buffer, sizeof(buffer), "%s\r\n", path); in gopher_connect() 66 if (gopher_write(h, buffer, strlen(buffer)) < 0) in gopher_connect()
|
/third_party/glfw/examples/ |
H A D | offscreen.c | 83 char* buffer; in main() local 149 buffer = calloc(4, width * height); in main() 150 glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, buffer); in main() 155 buffer + (width * 4 * (height - 1)), in main() 158 free(buffer); in main()
|
/third_party/curl/lib/ |
H A D | curl_multibyte.c | 137 int curlx_win32_stat(const char *path, struct_stat *buffer) in curlx_win32_stat() argument 144 result = _wstat(path_w, buffer); in curlx_win32_stat() 146 result = _wstati64(path_w, buffer); in curlx_win32_stat() 155 return _stat(path, buffer); in curlx_win32_stat() 157 return _stati64(path, buffer); in curlx_win32_stat()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/normalizer/ |
H A D | UnicodeNormalizer.java | 55 * replacing contents of the target buffer. 93 * replacing contents of the target buffer. 102 StringBuffer buffer = new StringBuffer(); in internalDecompose() 106 buffer.setLength(0); in internalDecompose() 109 data.getRecursiveDecomposition(canonical, ch, buffer); in internalDecompose() 115 for (int j = 0; j < buffer.length();) { in internalDecompose() 116 ch = UTF16Util.nextCodePoint(buffer, j); in internalDecompose()
|
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/ |
H A D | Checker.java | 32 private char[] buffer; field in Checker 49 buffer = new char[BUFFER_SIZE]; in Checker() 96 bufMax = inputFile.read(buffer); in nextBuffer() 122 return buffer[bufIndex++]; in nextChar() 137 buffer = theBuffer; in checkBuffer()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
H A D | IntlTestDecimalFormatSymbolsC.java | 139 StringBuffer buffer = new StringBuffer(""); in verify() 141 buffer = df.format(value, buffer, pos); in verify() 142 if(!buffer.toString().equals(expected)){ in verify() 144 expected + ", Got " + buffer); in verify()
|