Home
last modified time | relevance | path

Searched refs:buffer (Results 451 - 475 of 14158) sorted by relevance

1...<<11121314151617181920>>...567

/kernel/linux/linux-5.10/drivers/media/tuners/
H A Dtuner-simple.c397 u8 buffer[4] = { 0x14, 0x00, 0x17, 0x00}; in simple_std_setup() local
401 buffer[1] = 0x04; in simple_std_setup()
405 rc = tuner_i2c_xfer_send(&i2c, &buffer[0], 2); in simple_std_setup()
409 rc = tuner_i2c_xfer_send(&i2c, &buffer[2], 2); in simple_std_setup()
426 u8 buffer[2]; in simple_set_aux_byte() local
428 buffer[0] = (config & ~0x38) | 0x18; in simple_set_aux_byte()
429 buffer[1] = aux; in simple_set_aux_byte()
431 tuner_dbg("setting aux byte: 0x%02x 0x%02x\n", buffer[0], buffer[1]); in simple_set_aux_byte()
433 rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, in simple_set_aux_byte()
440 simple_post_tune(struct dvb_frontend *fe, u8 *buffer, u16 div, u8 config, u8 cb) simple_post_tune() argument
495 simple_radio_bandswitch(struct dvb_frontend *fe, u8 *buffer) simple_radio_bandswitch() argument
549 u8 buffer[4]; simple_set_tv_freq() local
669 u8 buffer[4]; simple_set_radio_freq() local
[all...]
/kernel/linux/linux-6.6/drivers/media/tuners/
H A Dtuner-simple.c397 u8 buffer[4] = { 0x14, 0x00, 0x17, 0x00}; in simple_std_setup() local
401 buffer[1] = 0x04; in simple_std_setup()
405 rc = tuner_i2c_xfer_send(&i2c, &buffer[0], 2); in simple_std_setup()
409 rc = tuner_i2c_xfer_send(&i2c, &buffer[2], 2); in simple_std_setup()
426 u8 buffer[2]; in simple_set_aux_byte() local
428 buffer[0] = (config & ~0x38) | 0x18; in simple_set_aux_byte()
429 buffer[1] = aux; in simple_set_aux_byte()
431 tuner_dbg("setting aux byte: 0x%02x 0x%02x\n", buffer[0], buffer[1]); in simple_set_aux_byte()
433 rc = tuner_i2c_xfer_send(&priv->i2c_props, buffer, in simple_set_aux_byte()
440 simple_post_tune(struct dvb_frontend *fe, u8 *buffer, u16 div, u8 config, u8 cb) simple_post_tune() argument
495 simple_radio_bandswitch(struct dvb_frontend *fe, u8 *buffer) simple_radio_bandswitch() argument
549 u8 buffer[4]; simple_set_tv_freq() local
669 u8 buffer[4]; simple_set_radio_freq() local
[all...]
/third_party/curl/tests/unit/
H A Dunit1661.c51 char *buffer = NULL; variable
70 buffer = malloc(13);
71 abort_unless(buffer, "Out of memory");
72 Curl_bufref_set(&bufref, buffer, 13, test_free);
74 fail_unless((char *) bufref.ptr == buffer, "Referenced data badly set");
82 fail_unless((char *) Curl_bufref_ptr(&bufref) == buffer,
98 fail_unless((char *) bufref.ptr != buffer, "Returned pointer not set");
99 buffer = (char *) Curl_bufref_ptr(&bufref);
100 fail_unless(buffer, "Allocated pointer is NULL");
102 fail_unless(!buffer[
[all...]
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/localeconverter/
H A DCalculateCRC32.java54 public static int computeCRC32(String buffer) { in computeCRC32() argument
55 return computeCRC32(buffer, 0xFFFFFFFF); in computeCRC32()
58 public static int computeCRC32(byte buffer[]) { in computeCRC32() argument
59 return computeCRC32(buffer, 0xFFFFFFFF); in computeCRC32()
62 public static int computeCRC32(String buffer, int crc){ in computeCRC32() argument
63 return computeCRC32(buffer.getBytes(), crc); in computeCRC32()
66 public static int computeCRC32(byte buffer[], int crc) { in computeCRC32() argument
67 return computeCRC32(buffer, 0, buffer.length, crc); in computeCRC32()
70 public static int computeCRC32(byte buffer[], in argument
[all...]
/third_party/skia/third_party/externals/harfbuzz/util/
H A Dshape-consumer.hh48 buffer = hb_buffer_create (); in init()
50 output.init (buffer, app); in init()
66 populate_buffer (buffer, text, text_len, app.text_before, app.text_after); in consume_line()
68 output.consume_text (buffer, text, text_len, utf8_clusters); in consume_line()
69 if (!shape (app.font, buffer, &error)) in consume_line()
73 if (hb_buffer_get_content_type (buffer) == HB_BUFFER_CONTENT_TYPE_GLYPHS) in consume_line()
80 output.consume_glyphs (buffer, text, text_len, utf8_clusters); in consume_line()
86 output.finish (buffer, app); in finish()
87 hb_buffer_destroy (buffer); in finish()
88 buffer in finish()
97 hb_buffer_t *buffer = nullptr; global() member
[all...]
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/port/
H A Dmemory_output_stream.cc27 void MemoryOutputStream::Write(std::vector<uint8_t>* buffer) { in Write() argument
28 store_.insert(store_.end(), buffer->begin(), buffer->end()); in Write()
31 void MemoryOutputStream::Write(std::vector<uint8_t>* buffer, in Write() argument
34 assert(buffer); in Write()
37 buffer->begin() + offset, in Write()
38 buffer->begin() + offset + length); in Write()
46 void MemoryOutputStream::Write(uint8_t* buffer, int32_t offset, int32_t length) { in Write() argument
47 assert(buffer); in Write()
49 store_.insert(store_.end(), buffer in Write()
[all...]
/foundation/graphic/graphic_surface/surface/test/fuzztest/nativebuffer_fuzzer/
H A Dnativebuffer_fuzzer.cpp47 OH_NativeBuffer* buffer = OH_NativeBuffer_Alloc(&config); in DoSomethingInterestingWithMyAPI() local
48 CreateNativeWindowBufferFromNativeBuffer(buffer); in DoSomethingInterestingWithMyAPI()
49 OH_NativeBuffer_GetSeqNum(buffer); in DoSomethingInterestingWithMyAPI()
50 OH_NativeBuffer_GetConfig(buffer, &checkConfig); in DoSomethingInterestingWithMyAPI()
51 OH_NativeBuffer_Reference(buffer); in DoSomethingInterestingWithMyAPI()
52 OH_NativeBuffer_Unreference(buffer); in DoSomethingInterestingWithMyAPI()
53 OH_NativeBuffer_Map(buffer, &virAddr); in DoSomethingInterestingWithMyAPI()
54 OH_NativeBuffer_Unmap(buffer); in DoSomethingInterestingWithMyAPI()
55 OH_NativeBuffer_Unreference(buffer); in DoSomethingInterestingWithMyAPI()
56 OH_NativeBuffer_Unreference(buffer); in DoSomethingInterestingWithMyAPI()
[all...]
/kernel/liteos_a/testsuites/unittest/libc/io/full/
H A DIO_test_locale_001.cpp39 char buffer[80]; in testcase() local
48 strftime(buffer, 80, "%c", timer); in testcase()
49 printf("Date is: %s\n", buffer); in testcase()
50 ICUNIT_ASSERT_NOT_EQUAL(buffer, NULL, -1); in testcase()
53 strftime(buffer, 80, "%c", timer); in testcase()
54 printf("Date is: %s\n", buffer); in testcase()
55 ICUNIT_ASSERT_NOT_EQUAL(buffer, NULL, -1); in testcase()
58 strftime(buffer, 80, "%c", timer); in testcase()
59 printf("Date is: %s\n", buffer); in testcase()
60 ICUNIT_ASSERT_NOT_EQUAL(buffer, NUL in testcase()
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/wire/
H A DWireWGPUDevicePropertiesTests.cpp32 std::vector<char> buffer; in TEST_F() local
33 buffer.resize(sentWGPUDevicePropertiesSize); in TEST_F()
34 dawn_wire::SerializeWGPUDeviceProperties(&sentWGPUDeviceProperties, buffer.data()); in TEST_F()
38 buffer.data(), buffer.size())); in TEST_F()
44 // Test that deserialization if the buffer is just one byte too small fails.
50 std::vector<char> buffer; in TEST_F() local
51 buffer.resize(sentWGPUDevicePropertiesSize); in TEST_F()
52 dawn_wire::SerializeWGPUDeviceProperties(&sentWGPUDeviceProperties, buffer.data()); in TEST_F()
56 buffer in TEST_F()
[all...]
/foundation/distributeddatamgr/pasteboard/framework/innerkits/src/
H A Dpaste_data.cpp433 bool PasteData::Encode(std::vector<std::uint8_t> &buffer) in Encode() argument
435 Init(buffer); in Encode()
437 bool ret = Write(buffer, TAG_PROPS, props_); in Encode()
438 ret = Write(buffer, TAG_RECORDS, records_) && ret; in Encode()
439 ret = Write(buffer, TAG_DRAGGED_DATA_FLAG, isDraggedData_) && ret; in Encode()
440 ret = Write(buffer, TAG_LOCAL_PASTE_FLAG, isLocalPaste_) && ret; in Encode()
441 ret = Write(buffer, TAG_DELAY_DATA_FLAG, isDelayData_) && ret; in Encode()
442 ret = Write(buffer, TAG_DEVICE_ID, deviceId_) && ret; in Encode()
443 ret = Write(buffer, TAG_PASTE_ID, pasteId_) && ret; in Encode()
444 ret = Write(buffer, TAG_DELAY_RECORD_FLA in Encode()
491 Decode(const std::vector<std::uint8_t> &buffer) Decode() argument
645 Encode(std::vector<std::uint8_t> &buffer) Encode() argument
661 Decode(const std::vector<std::uint8_t> &buffer) Decode() argument
671 DecodeTag(const std::vector<std::uint8_t> &buffer) DecodeTag() argument
[all...]
/third_party/skia/third_party/externals/libwebp/src/dec/
H A Dbuffer_dec.c41 static VP8StatusCode CheckDecBuffer(const WebPDecBuffer* const buffer) { in CheckDecBuffer() argument
43 const WEBP_CSP_MODE mode = buffer->colorspace; in CheckDecBuffer()
44 const int width = buffer->width; in CheckDecBuffer()
45 const int height = buffer->height; in CheckDecBuffer()
49 const WebPYUVABuffer* const buf = &buffer->u.YUVA; in CheckDecBuffer()
75 const WebPRGBABuffer* const buf = &buffer->u.RGBA; in CheckDecBuffer()
87 static VP8StatusCode AllocateBuffer(WebPDecBuffer* const buffer) { in AllocateBuffer() argument
88 const int w = buffer->width; in AllocateBuffer()
89 const int h = buffer->height; in AllocateBuffer()
90 const WEBP_CSP_MODE mode = buffer in AllocateBuffer()
152 WebPFlipBuffer(WebPDecBuffer* const buffer) WebPFlipBuffer() argument
177 WebPAllocateDecBuffer(int width, int height, const WebPDecoderOptions* const options, WebPDecBuffer* const buffer) WebPAllocateDecBuffer() argument
229 WebPInitDecBufferInternal(WebPDecBuffer* buffer, int version) WebPInitDecBufferInternal() argument
238 WebPFreeDecBuffer(WebPDecBuffer* buffer) WebPFreeDecBuffer() argument
[all...]
/foundation/multimedia/av_codec/services/media_engine/filters/
H A Dsurface_decoder_adapter.cpp53 void OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) override
56 surfaceDecoderAdapter->OnInputBufferAvailable(index, buffer);
62 void OnOutputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) override
65 MEDIA_LOG_D("OnOutputBuffer flag " PUBLIC_LOG_D32, buffer->flag_);
66 surfaceDecoderAdapter->OnOutputBufferAvailable(index, buffer);
67 if (buffer->flag_ == 1) {
294 void SurfaceDecoderAdapter::OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) in OnInputBufferAvailable() argument
296 FALSE_RETURN_MSG(buffer != nullptr && buffer->meta_ != nullptr, "meta_ is nullptr."); in OnInputBufferAvailable()
298 ", flag: %{public}u", index, buffer in OnInputBufferAvailable()
323 OnOutputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) OnOutputBufferAvailable() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/mlxsw/
H A Dqos_headroom.sh32 # of buffer that priority X is mapped to.
33 dcb -j buffer show dev $swp |
57 dcb -j buffer show dev $swp | jq ".buffer_size[$idx]"
62 dcb -j buffer show dev $swp | jq '.total_size'
100 check_err $? "${what}buffer $idx size is '$current', expected '$expr'"
135 dcb buffer set dev $swp prio-buffer 0:1 1:3 2:5 3:7 4:0 5:2 6:4 7:6 2>/dev/null
160 log_test "${what}MTU impacts buffer size"
165 # In TC mode, MTU still impacts the threshold below which a buffer is
251 dcb buffer se
[all...]
/kernel/liteos_a/kernel/extended/hilog/
H A Dlos_hilog.c64 static ssize_t HiLogWrite(struct file *filep, const char *buffer, size_t bufLen);
65 static ssize_t HiLogRead(struct file *filep, char *buffer, size_t bufLen);
84 unsigned char *buffer; member
94 return g_hiLogDev.buffer + g_hiLogDev.headOffset; in HiLogBufferHead()
149 static int HiLogReadRingBuffer(unsigned char *buffer, size_t bufLen) in HiLogReadRingBuffer() argument
154 retval = HiLogBufferCopy(buffer, bufLen, HiLogBufferHead(), bufLen); in HiLogReadRingBuffer()
156 retval = HiLogBufferCopy(buffer, bufLen, HiLogBufferHead(), bufLeft); in HiLogReadRingBuffer()
161 retval = HiLogBufferCopy(buffer + bufLeft, bufLen - bufLeft, g_hiLogDev.buffer, bufLen - bufLeft); in HiLogReadRingBuffer()
166 static ssize_t HiLogRead(struct file *filep, char *buffer, size_ argument
215 HiLogWriteRingBuffer(unsigned char *buffer, size_t bufLen) HiLogWriteRingBuffer() argument
278 HiLogWriteInternal(const char *buffer, size_t bufLen) HiLogWriteInternal() argument
321 HiLogWrite(struct file *filep, const char *buffer, size_t bufLen) HiLogWrite() argument
[all...]
/third_party/skia/third_party/externals/libpng/contrib/examples/
H A Dsimpleover.c52 png_uint_16p buffer; member
104 png_imagep image, const png_uint_16 *buffer) in sprite_op()
133 const png_uint_16 *in_pixel = buffer + (y * image->width + x)*4; in sprite_op()
141 png_uint_16 *out_pixel = sprite->buffer + in sprite_op()
190 /* Read the arguments and create this sprite. The sprite buffer has already in create_sprite()
192 * composes them onto the sprite buffer (the code in the function above) in create_sprite()
219 png_uint_16p buffer; in create_sprite() local
223 buffer = malloc(PNG_IMAGE_SIZE(image)); in create_sprite()
225 if (buffer != NULL) in create_sprite()
227 if (png_image_finish_read(&image, NULL/*background*/, buffer, in create_sprite()
103 sprite_op(const struct sprite *sprite, int x_offset, int y_offset, png_imagep image, const png_uint_16 *buffer) sprite_op() argument
550 png_bytep buffer; main() local
[all...]
/third_party/skia/third_party/externals/harfbuzz/src/
H A Dhb-ot-shape-complex-thai.cc222 hb_buffer_t *buffer, in do_thai_pua_shaping()
233 hb_glyph_info_t *info = buffer->info; in do_thai_pua_shaping()
234 unsigned int count = buffer->len; in do_thai_pua_shaping()
255 buffer->unsafe_to_break (base, i); in do_thai_pua_shaping()
266 hb_buffer_t *buffer, in preprocess_text_thai()
324 buffer->clear_output (); in preprocess_text_thai()
325 unsigned int count = buffer->len; in preprocess_text_thai()
326 for (buffer->idx = 0; buffer->idx < count /* No need for: && buffer in preprocess_text_thai()
221 do_thai_pua_shaping(const hb_ot_shape_plan_t *plan HB_UNUSED, hb_buffer_t *buffer, hb_font_t *font) do_thai_pua_shaping() argument
265 preprocess_text_thai(const hb_ot_shape_plan_t *plan, hb_buffer_t *buffer, hb_font_t *font) preprocess_text_thai() argument
[all...]
/kernel/linux/linux-5.10/drivers/iio/buffer/
H A Dindustrialio-buffer-dmaengine.c17 #include <linux/iio/buffer.h>
19 #include <linux/iio/buffer-dma.h>
20 #include <linux/iio/buffer-dmaengine.h>
23 * The IIO DMAengine buffer combines the generic IIO DMA buffer infrastructure
24 * with the DMAengine framework. The generic IIO DMA buffer infrastructure is
25 * used to manage the buffer memory and implement the IIO buffer operations
27 * this results in a device independent fully functional DMA buffer
43 struct iio_buffer *buffer) in iio_buffer_to_dmaengine_buffer()
42 iio_buffer_to_dmaengine_buffer( struct iio_buffer *buffer) iio_buffer_to_dmaengine_buffer() argument
221 iio_dmaengine_buffer_free(struct iio_buffer *buffer) iio_dmaengine_buffer_free() argument
251 struct iio_buffer **bufferp, *buffer; devm_iio_dmaengine_buffer_alloc() local
[all...]
/kernel/linux/linux-5.10/drivers/iio/accel/
H A Ddmard10.c42 /* Offsets into the buffer read in dmard10_read_raw() */
76 unsigned char buffer[7]; in dmard10_reset() local
89 buffer[0] = DMARD10_REG_ACTR; in dmard10_reset()
90 buffer[1] = DMARD10_MODE_STANDBY; in dmard10_reset()
91 buffer[2] = DMARD10_MODE_READ_OTP; in dmard10_reset()
92 buffer[3] = DMARD10_MODE_STANDBY; in dmard10_reset()
93 buffer[4] = DMARD10_MODE_RESET_DATA_PATH; in dmard10_reset()
94 buffer[5] = DMARD10_MODE_STANDBY; in dmard10_reset()
95 ret = i2c_master_send(client, buffer, 6); in dmard10_reset()
106 buffer[ in dmard10_reset()
129 unsigned char buffer[3]; dmard10_shutdown() local
[all...]
/third_party/mesa3d/src/gallium/auxiliary/pipebuffer/
H A Dpb_bufmgr_cache.c49 * Wrapper around a pipe buffer which adds delayed destruction.
54 struct pb_buffer *buffer; member
89 /* the buffer won't be added if mgr is NULL */ in pb_cache_manager_remove_buffer()
94 * Actually destroy the buffer.
102 pb_reference(&buf->buffer, NULL); in _pb_cache_buffer_destroy()
114 pb_reference(&buf->buffer, NULL); in pb_cache_buffer_destroy()
128 return pb_map(buf->buffer, flags, flush_ctx); in pb_cache_buffer_map()
136 pb_unmap(buf->buffer); in pb_cache_buffer_unmap()
146 return pb_validate(buf->buffer, vl, flags); in pb_cache_buffer_validate()
155 pb_fence(buf->buffer, fenc in pb_cache_buffer_fence()
[all...]
/third_party/pcre2/pcre2/src/
H A Dpcre2_fuzzsupport.c215 unsigned char buffer[256]; in LLVMFuzzerTestOneInput() local
216 pcre2_get_error_message(errorcode, buffer, 256); in LLVMFuzzerTestOneInput()
217 printf("Match failed: error %d: %s\n", errorcode, buffer); in LLVMFuzzerTestOneInput()
252 unsigned char buffer[256]; in LLVMFuzzerTestOneInput() local
253 pcre2_get_error_message(errorcode, buffer, 256); in LLVMFuzzerTestOneInput()
254 printf("Match failed: error %d: %s\n", errorcode, buffer); in LLVMFuzzerTestOneInput()
269 unsigned char buffer[256]; in LLVMFuzzerTestOneInput() local
270 pcre2_get_error_message(errorcode, buffer, 256); in LLVMFuzzerTestOneInput()
272 printf("Error %d at offset %lu: %s\n", errorcode, erroroffset, buffer); in LLVMFuzzerTestOneInput()
274 if (strstr((const char *)buffer, "interna in LLVMFuzzerTestOneInput()
305 unsigned char *buffer; main() local
[all...]
/foundation/communication/ipc/ipc/test/serializer/
H A Dutils_serializer_test.cpp128 uint8_t buffer[BUFFER_SIZE] = {0}; in HWTEST_F() local
146 IpcIoInit(&io, buffer, BUFFER_SIZE, 0); in HWTEST_F()
149 ret = write(fd[1], buffer, io.bufferCur - io.bufferBase); in HWTEST_F()
158 IpcIoInit(&io, buffer, BUFFER_SIZE, 0); in HWTEST_F()
161 ret = read(fd[0], buffer, BUFFER_SIZE); in HWTEST_F()
225 uint8_t buffer[BUFFER_SIZE] = {0}; in HWTEST_F() local
241 IpcIoInit(&io, buffer, BUFFER_SIZE, 0); in HWTEST_F()
244 ret = write(fd[1], buffer, io.bufferCur - io.bufferBase); in HWTEST_F()
252 IpcIoInit(&io, buffer, BUFFER_SIZE, 0); in HWTEST_F()
254 ret = read(fd[0], buffer, BUFFER_SIZ in HWTEST_F()
267 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
318 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
373 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
420 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
470 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
520 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
569 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
624 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
679 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
733 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
789 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
841 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
887 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
931 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
969 uint8_t buffer[SMALL_BUFFER_SIZE] = { 0 }; HWTEST_F() local
1003 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
1043 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
1084 uint8_t buffer[BUFFER_SIZE] = {0}; HWTEST_F() local
1135 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1151 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1168 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1184 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1201 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1217 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1234 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1251 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1268 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1285 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1302 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1319 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1336 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1353 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1370 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
1387 uint8_t buffer[BUFFER_SIZE] = { 0 }; HWTEST_F() local
[all...]
/base/tee/tee_client/services/authentication/
H A Dtee_get_native_cert.c24 static int SetPathToBuf(uint8_t *buffer, uint32_t *len, uint32_t *inputLen, const char *path) in SetPathToBuf() argument
34 tloge("buffer overflow for pathLen\n"); in SetPathToBuf()
38 ret = memcpy_s(buffer, *inputLen, &pathLen, sizeof(pathLen)); in SetPathToBuf()
44 buffer += sizeof(pathLen); in SetPathToBuf()
50 tloge("buffer overflow for path\n"); in SetPathToBuf()
54 ret = memcpy_s(buffer, *inputLen, path, num); in SetPathToBuf()
66 static int SetUidToBuf(uint8_t *buffer, uint32_t *len, uint32_t *inputLen, unsigned int caUid) in SetUidToBuf() argument
74 tloge("buffer overflow for pubkeyLen\n"); in SetUidToBuf()
78 ret = memcpy_s(buffer, *inputLen, &pubkeyLen, sizeof(pubkeyLen)); in SetUidToBuf()
84 buffer in SetUidToBuf()
105 SetUserInfoToBuf(uint8_t *buffer, uint32_t *len, uint32_t *inputLen, unsigned int caUid) SetUserInfoToBuf() argument
117 TeeGetNativeCert(int caPid, unsigned int caUid, uint32_t *len, uint8_t *buffer) TeeGetNativeCert() argument
[all...]
/kernel/linux/linux-5.10/drivers/input/
H A Dinput-compat.c14 int input_event_from_user(const char __user *buffer, in input_event_from_user() argument
20 if (copy_from_user(&compat_event, buffer, in input_event_from_user()
31 if (copy_from_user(event, buffer, sizeof(struct input_event))) in input_event_from_user()
38 int input_event_to_user(char __user *buffer, in input_event_to_user() argument
50 if (copy_to_user(buffer, &compat_event, in input_event_to_user()
55 if (copy_to_user(buffer, event, sizeof(struct input_event))) in input_event_to_user()
62 int input_ff_effect_from_user(const char __user *buffer, size_t size, in input_ff_effect_from_user() argument
78 if (copy_from_user(compat_effect, buffer, in input_ff_effect_from_user()
90 if (copy_from_user(effect, buffer, sizeof(struct ff_effect))) in input_ff_effect_from_user()
99 int input_event_from_user(const char __user *buffer, in input_event_from_user() argument
108 input_event_to_user(char __user *buffer, const struct input_event *event) input_event_to_user() argument
117 input_ff_effect_from_user(const char __user *buffer, size_t size, struct ff_effect *effect) input_ff_effect_from_user() argument
[all...]
/kernel/linux/linux-5.10/drivers/platform/x86/
H A Ddell-smbios-smm.c23 static struct calling_interface_buffer *buffer; variable
91 command.ebx = virt_to_phys(buffer); in dell_smbios_smm_call()
95 memcpy(buffer, input, size); in dell_smbios_smm_call()
97 memcpy(input, buffer, size); in dell_smbios_smm_call()
116 buffer->cmd_class = CLASS_TOKEN_READ; in test_wsmt_enabled()
117 buffer->cmd_select = SELECT_TOKEN_STD; in test_wsmt_enabled()
118 memset(buffer, 0, sizeof(struct calling_interface_buffer)); in test_wsmt_enabled()
119 buffer->input[0] = wsmt->location; in test_wsmt_enabled()
120 buffer->output[0] = 99; in test_wsmt_enabled()
121 dell_smbios_smm_call(buffer); in test_wsmt_enabled()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dkallsyms.h91 /* Look up a kernel symbol and return it in a text buffer. */
92 extern int sprint_symbol(char *buffer, unsigned long address);
93 extern int sprint_symbol_build_id(char *buffer, unsigned long address);
94 extern int sprint_symbol_no_offset(char *buffer, unsigned long address);
95 extern int sprint_backtrace(char *buffer, unsigned long address);
96 extern int sprint_backtrace_build_id(char *buffer, unsigned long address);
122 static inline int sprint_symbol(char *buffer, unsigned long addr) in sprint_symbol() argument
124 *buffer = '\0'; in sprint_symbol()
128 static inline int sprint_symbol_build_id(char *buffer, unsigned long address) in sprint_symbol_build_id() argument
130 *buffer in sprint_symbol_build_id()
134 sprint_symbol_no_offset(char *buffer, unsigned long addr) sprint_symbol_no_offset() argument
140 sprint_backtrace(char *buffer, unsigned long addr) sprint_backtrace() argument
146 sprint_backtrace_build_id(char *buffer, unsigned long addr) sprint_backtrace_build_id() argument
[all...]

Completed in 14 milliseconds

1...<<11121314151617181920>>...567