/kernel/linux/linux-5.10/include/linux/ |
H A D | logic_pio.h | 34 u32 (*ins)(void *hostdata, unsigned long addr, void *buffer, 36 void (*outs)(void *hostdata, unsigned long addr, const void *buffer, 50 void logic_insb(unsigned long addr, void *buffer, unsigned int count); 51 void logic_insl(unsigned long addr, void *buffer, unsigned int count); 52 void logic_insw(unsigned long addr, void *buffer, unsigned int count); 53 void logic_outsb(unsigned long addr, const void *buffer, unsigned int count); 54 void logic_outsw(unsigned long addr, const void *buffer, unsigned int count); 55 void logic_outsl(unsigned long addr, const void *buffer, unsigned int count);
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | logic_pio.h | 34 u32 (*ins)(void *hostdata, unsigned long addr, void *buffer, 36 void (*outs)(void *hostdata, unsigned long addr, const void *buffer, 50 void logic_insb(unsigned long addr, void *buffer, unsigned int count); 51 void logic_insl(unsigned long addr, void *buffer, unsigned int count); 52 void logic_insw(unsigned long addr, void *buffer, unsigned int count); 53 void logic_outsb(unsigned long addr, const void *buffer, unsigned int count); 54 void logic_outsw(unsigned long addr, const void *buffer, unsigned int count); 55 void logic_outsl(unsigned long addr, const void *buffer, unsigned int count);
|
/kernel/linux/linux-6.6/drivers/platform/x86/dell/dell-wmi-sysman/ |
H A D | passwordattr-interface.c | 45 char *buffer = NULL, *start; in set_new_password() local 65 /* build/calculate buffer */ in set_new_password() 71 buffer = kzalloc(buffer_size, GFP_KERNEL); in set_new_password() 72 if (!buffer) { in set_new_password() 78 populate_security_buffer(buffer, wmi_priv.current_admin_password); in set_new_password() 81 start = buffer + security_area_size; in set_new_password() 96 print_hex_dump_bytes("set new password data: ", DUMP_PREFIX_NONE, buffer, buffer_size); in set_new_password() 97 ret = call_password_interface(wmi_priv.password_attr_wdev, buffer, buffer_size); in set_new_password() 108 kfree(buffer); in set_new_password()
|
/kernel/linux/linux-6.6/drivers/platform/x86/dell/ |
H A D | dell-wmi-aio.c | 57 * So, we will check if the buffer matches the format 59 static bool dell_wmi_aio_event_check(u8 *buffer, int length) in dell_wmi_aio_event_check() argument 61 struct dell_wmi_event *event = (struct dell_wmi_event *)buffer; in dell_wmi_aio_event_check() 98 if (dell_wmi_aio_event_check(obj->buffer.pointer, in dell_wmi_aio_notify() 99 obj->buffer.length)) { in dell_wmi_aio_notify() 101 obj->buffer.pointer; in dell_wmi_aio_notify() 105 buffer */ in dell_wmi_aio_notify() 106 if (obj->buffer.pointer && in dell_wmi_aio_notify() 107 obj->buffer.length > 0) in dell_wmi_aio_notify() 108 scancode = obj->buffer in dell_wmi_aio_notify() [all...] |
/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpio-tpic2810.c | 18 * @buffer: Buffer for device register 24 u8 buffer; member 55 u8 buffer; in tpic2810_set_mask_bits() local 60 buffer = gpio->buffer & ~mask; in tpic2810_set_mask_bits() 61 buffer |= (mask & bits); in tpic2810_set_mask_bits() 64 buffer); in tpic2810_set_mask_bits() 66 gpio->buffer = buffer; in tpic2810_set_mask_bits()
|
/kernel/linux/linux-6.6/sound/firewire/motu/ |
H A D | amdtp-motu-trace.h | 16 static void copy_sph(u32 *frame, __be32 *buffer, unsigned int data_blocks, 18 static void copy_message(u64 *frames, __be32 *buffer, unsigned int data_blocks, 22 TP_PROTO(struct amdtp_stream *s, unsigned int data_blocks, __be32 *buffer), 23 TP_ARGS(s, data_blocks, buffer), 39 copy_sph(__get_dynamic_array(tstamps), buffer, data_blocks, s->data_block_quadlets); 51 TP_PROTO(struct amdtp_stream *s, unsigned int data_blocks, __be32 *buffer), 52 TP_ARGS(s, data_blocks, buffer), 68 copy_message(__get_dynamic_array(messages), buffer, data_blocks, s->data_block_quadlets);
|
/kernel/linux/linux-6.6/drivers/scsi/arm/ |
H A D | arm_scsi.h | 48 for_each_sg(sg_next(SCp->buffer), src_sg, bufs, i) in copy_SCp_to_sg() 60 SCp->buffer = sg_next(SCp->buffer); in next_SCp() 62 SCp->ptr = sg_virt(SCp->buffer); in next_SCp() 63 SCp->this_residual = SCp->buffer->length; in next_SCp() 97 scsi_pointer->buffer = scsi_sglist(SCpnt); in init_SCp() 99 scsi_pointer->ptr = sg_virt(scsi_pointer->buffer); in init_SCp() 100 scsi_pointer->this_residual = scsi_pointer->buffer->length; in init_SCp() 105 * Calculate correct buffer length. Some commands in init_SCp() 116 "scsi%d.%c: bad request buffer " in init_SCp() [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | oid_registry.c | 120 * sprint_OID - Print an Object Identifier into a buffer 123 * @buffer: The buffer to render into 124 * @bufsize: The size of the buffer 126 * The OID is rendered into the buffer in "a.b.c.d" format and the number of 128 * and -ENOBUFS if the buffer was too small. 130 int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize) in sprint_oid() argument 142 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40); in sprint_oid() 145 buffer += count; in sprint_oid() 162 ret += count = snprintf(buffer, bufsiz in sprint_oid() 186 sprint_OID(enum OID oid, char *buffer, size_t bufsize) sprint_OID() argument [all...] |
H A D | crc-t10dif.c | 63 __u16 crc_t10dif_update(__u16 crc, const unsigned char *buffer, size_t len) in crc_t10dif_update() argument 72 return crc_t10dif_generic(crc, buffer, len); in crc_t10dif_update() 77 err = crypto_shash_update(&desc.shash, buffer, len); in crc_t10dif_update() 86 __u16 crc_t10dif(const unsigned char *buffer, size_t len) in crc_t10dif() argument 88 return crc_t10dif_update(0, buffer, len); in crc_t10dif() 110 static int crc_t10dif_transform_show(char *buffer, const struct kernel_param *kp) in crc_t10dif_transform_show() argument 116 return sprintf(buffer, "fallback\n"); in crc_t10dif_transform_show() 120 len = snprintf(buffer, PAGE_SIZE, "%s\n", in crc_t10dif_transform_show()
|
H A D | crc64-rocksoft.c | 57 u64 crc64_rocksoft_update(u64 crc, const unsigned char *buffer, size_t len) in crc64_rocksoft_update() argument 66 return crc64_rocksoft_generic(crc, buffer, len); in crc64_rocksoft_update() 71 err = crypto_shash_update(&desc.shash, buffer, len); in crc64_rocksoft_update() 80 u64 crc64_rocksoft(const unsigned char *buffer, size_t len) in crc64_rocksoft() argument 82 return crc64_rocksoft_update(0, buffer, len); in crc64_rocksoft() 104 static int crc64_rocksoft_transform_show(char *buffer, const struct kernel_param *kp) in crc64_rocksoft_transform_show() argument 110 return sprintf(buffer, "fallback\n"); in crc64_rocksoft_transform_show() 114 len = snprintf(buffer, PAGE_SIZE, "%s\n", in crc64_rocksoft_transform_show()
|
/kernel/liteos_a/testsuites/unittest/container/smoke/ |
H A D | It_net_container_006.cpp | 47 char buffer[DATA_LEN]; in TcpClient() local 71 ret = recv(client, buffer, sizeof(buffer), 0); in TcpClient() 76 ret = strcmp(buffer, SERVER_MSG); in TcpClient() 93 char buffer[DATA_LEN]; in ChildFunc() local 132 ret = recv(client, buffer, sizeof(buffer), 0); in ChildFunc() 137 ret = strcmp(buffer, PEER_MSG); in ChildFunc()
|
/foundation/multimedia/av_codec/services/media_engine/filters/ |
H A D | surface_encoder_adapter.cpp | 60 void OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) override
64 void OnOutputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) override
67 surfaceEncoderAdapter->OnOutputBufferAvailable(index, buffer);
506 void SurfaceEncoderAdapter::TransCoderOnOutputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer)
in TransCoderOnOutputBufferAvailable() argument 508 if (buffer->pts_ >= eosPts_.load() && codecServer_) {
in TransCoderOnOutputBufferAvailable() 512 if (stopTime_ != -1 && buffer->pts_ > stopTime_) {
in TransCoderOnOutputBufferAvailable() 513 MEDIA_LOG_I("buffer->pts > stopTime, ready to stop");
in TransCoderOnOutputBufferAvailable() 517 if (startBufferTime_ == -1 && buffer->pts_ != 0) {
in TransCoderOnOutputBufferAvailable() 518 startBufferTime_ = buffer->pts_;
in TransCoderOnOutputBufferAvailable() 521 int32_t size = buffer in TransCoderOnOutputBufferAvailable() 559 OnOutputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) OnOutputBufferAvailable() argument [all...] |
/foundation/ai/neural_network_runtime/test/unittest/common/v2_0/ |
H A D | compilation_mock_idevice.cpp | 178 Buffer buffer; in ExportModelCache() local 180 buffer.data = const_cast<void*>(static_cast<const void*>(aBuffer.c_str())); in ExportModelCache() 181 buffer.length = bufferSize; in ExportModelCache() 182 modelCache.emplace_back(buffer); in ExportModelCache() 205 void* buffer = malloc(length); in AllocateBuffer() local 206 if (buffer == nullptr) { in AllocateBuffer() 207 LOGE("HDIDeviceV2_0 mock AllocateBuffer failed, the buffer is nullptr"); in AllocateBuffer() 210 return buffer; in AllocateBuffer() 213 OH_NN_ReturnCode HDIDeviceV2_0::ReleaseBuffer(const void* buffer) in ReleaseBuffer() argument 215 if (buffer in ReleaseBuffer() [all...] |
/foundation/ability/dmsfwk/services/dtbschedmgr/src/softbus_adapter/ |
H A D | softbus_adapter.cpp | 81 int32_t SoftbusAdapter::SendSoftbusEvent(std::shared_ptr<DSchedDataBuffer> buffer) in SendSoftbusEvent() argument 84 auto feedfunc = [this, buffer]() { in SendSoftbusEvent() 85 DealSendSoftbusEvent(buffer); in SendSoftbusEvent() 96 int32_t SoftbusAdapter::DealSendSoftbusEvent(std::shared_ptr<DSchedDataBuffer> buffer, const int32_t retry) in DealSendSoftbusEvent() argument 105 if (buffer == nullptr) { in DealSendSoftbusEvent() 106 HILOGE("buffer is nullptr"); in DealSendSoftbusEvent() 112 eventData.data = buffer->Data(); in DealSendSoftbusEvent() 113 eventData.dataLen = buffer->Capacity(); in DealSendSoftbusEvent() 118 return RetrySendSoftbusEvent(buffer, retry); in DealSendSoftbusEvent() 123 int32_t SoftbusAdapter::RetrySendSoftbusEvent(std::shared_ptr<DSchedDataBuffer> buffer, cons argument [all...] |
/foundation/ai/neural_network_runtime/test/unittest/common/v1_0/ |
H A D | compilation_mock_idevice.cpp | 178 Buffer buffer; in ExportModelCache() local 180 buffer.data = const_cast<void*>(static_cast<const void*>(aBuffer.c_str())); in ExportModelCache() 181 buffer.length = bufferSize; in ExportModelCache() 182 modelCache.emplace_back(buffer); in ExportModelCache() 205 void* buffer = malloc(length); in AllocateBuffer() local 206 if (buffer == nullptr) { in AllocateBuffer() 207 LOGE("HDIDeviceV1_0 mock AllocateBuffer failed, the buffer is nullptr"); in AllocateBuffer() 210 return buffer; in AllocateBuffer() 213 OH_NN_ReturnCode HDIDeviceV1_0::ReleaseBuffer(const void* buffer) in ReleaseBuffer() argument 215 if (buffer in ReleaseBuffer() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_base_render_util.h | 46 sptr<SurfaceBuffer> buffer = nullptr; member 64 sptr<OHOS::SurfaceBuffer> buffer; member 123 static bool IsBufferValid(const sptr<SurfaceBuffer>& buffer); 130 const sptr<IConsumerSurface>& consumer, const sptr<SurfaceBuffer>& buffer); 133 static Drawing::Matrix GetGravityMatrix(Gravity gravity, const sptr<SurfaceBuffer>& buffer, const RectF& bounds); 138 static Drawing::BitmapFormat GenerateDrawingBitmapFormat(const sptr<OHOS::SurfaceBuffer>& buffer); 146 static bool ConvertBufferToBitmap(sptr<SurfaceBuffer> buffer, std::vector<uint8_t>& newBuffer, 161 static bool WriteSurfaceBufferToPng(sptr<SurfaceBuffer>& buffer, uint64_t id = 0); 189 static bool CreateYuvToRGBABitMap(sptr<OHOS::SurfaceBuffer> buffer, std::vector<uint8_t>& newBuffer, 191 static bool CreateNewColorGamutBitmap(sptr<OHOS::SurfaceBuffer> buffer, st [all...] |
/foundation/multimedia/media_foundation/engine/plugin/plugins/codec_adapter/ |
H A D | codec_buffer.cpp | 27 CodecBuffer::CodecBuffer(std::shared_ptr<Buffer>& buffer, CompVerInfo& verInfo, in CodecBuffer() argument 29 : buffer_(buffer), verInfo_(verInfo) in CodecBuffer() 46 omxBuffer_->buffer = nullptr; in Init() 60 omxBuffer_->buffer = reinterpret_cast<uint8_t *>(bufferHandle); in Init() 66 omxBuffer_->buffer = reinterpret_cast<uint8_t *>(static_cast<long long>( in Init() 131 omxBuffer_->buffer = reinterpret_cast<uint8_t *>(bufferHandle); in Rebind() 136 omxBuffer_->buffer = reinterpret_cast<uint8_t *>(static_cast<long long>( in Rebind() 148 // 这里buffer需要保存一下,为了方便往下一节点传数据,通过GetBuffer()获取 in Rebind() 156 * @param buffer Copy the value of buffer_ 160 Status CodecBuffer::Unbind(std::shared_ptr<Plugin::Buffer>& buffer, cons argument [all...] |
/foundation/multimodalinput/input/service/libinput_adapter/src/ |
H A D | libinput_adapter.cpp | 50 char buffer[256] = {}; in HiLogFunc() local 51 if (vsnprintf_s(buffer, sizeof(buffer), sizeof(buffer) - 1, fmt, args) == -1) { in HiLogFunc() 56 if (strstr(buffer, "LOG_LEVEL_I") != NULL) { in HiLogFunc() 57 MMI_HILOGI("PrintLog_Info:%{public}s", buffer); in HiLogFunc() 58 } else if (strstr(buffer, "LOG_LEVEL_D") != NULL) { in HiLogFunc() 59 MMI_HILOGD("PrintLog_Info:%{public}s", buffer); in HiLogFunc() 60 } else if (strstr(buffer, "LOG_LEVEL_E") != NULL) { in HiLogFunc() 61 MMI_HILOGE("PrintLog_Info:%{public}s", buffer); in HiLogFunc() [all...] |
/kernel/linux/linux-5.10/arch/um/os-Linux/drivers/ |
H A D | tuntap_user.c | 63 char *buffer, int buffer_len, int *used_out) in tuntap_open_tramp() 89 if (buffer != NULL) { in tuntap_open_tramp() 90 iov = ((struct iovec) { buffer, buffer_len }); in tuntap_open_tramp() 132 char *output, *buffer; in tuntap_open() local 167 buffer = get_output_buffer(&len); in tuntap_open() 168 if (buffer != NULL) in tuntap_open() 173 fds[1], buffer, len, &used); in tuntap_open() 175 output = buffer; in tuntap_open() 178 free_output_buffer(buffer); in tuntap_open() 184 pri->dev_name = uml_strdup(buffer); in tuntap_open() 62 tuntap_open_tramp(char *gate, int *fd_out, int me, int remote, char *buffer, int buffer_len, int *used_out) tuntap_open_tramp() argument [all...] |
/kernel/linux/linux-6.6/arch/um/os-Linux/drivers/ |
H A D | tuntap_user.c | 63 char *buffer, int buffer_len, int *used_out) in tuntap_open_tramp() 89 if (buffer != NULL) { in tuntap_open_tramp() 90 iov = ((struct iovec) { buffer, buffer_len }); in tuntap_open_tramp() 132 char *output, *buffer; in tuntap_open() local 167 buffer = get_output_buffer(&len); in tuntap_open() 168 if (buffer != NULL) in tuntap_open() 173 fds[1], buffer, len, &used); in tuntap_open() 175 output = buffer; in tuntap_open() 178 free_output_buffer(buffer); in tuntap_open() 184 pri->dev_name = uml_strdup(buffer); in tuntap_open() 62 tuntap_open_tramp(char *gate, int *fd_out, int me, int remote, char *buffer, int buffer_len, int *used_out) tuntap_open_tramp() argument [all...] |
/kernel/linux/linux-5.10/drivers/misc/ |
H A D | lattice-ecp3-config.c | 69 u8 *buffer; in firmware_load() local 116 buffer = kzalloc(fw->size + 8, GFP_KERNEL); in firmware_load() 117 if (!buffer) { in firmware_load() 125 buffer[0] = FPGA_CMD_WRITE_INC; in firmware_load() 126 buffer[1] = 0xff; in firmware_load() 127 buffer[2] = 0xff; in firmware_load() 128 buffer[3] = 0xff; in firmware_load() 129 memcpy(buffer + 4, fw->data, fw->size); in firmware_load() 157 kfree(buffer); in firmware_load() 162 spi_write(spi, buffer, f in firmware_load() [all...] |
/kernel/linux/linux-5.10/drivers/iio/imu/ |
H A D | adis_buffer.c | 17 #include <linux/iio/buffer.h> 40 adis->buffer = kzalloc(burst_max_length + sizeof(u16), GFP_KERNEL); in adis_update_scan_mode_burst() 41 if (!adis->buffer) { in adis_update_scan_mode_burst() 47 tx = adis->buffer + burst_max_length; in adis_update_scan_mode_burst() 54 adis->xfer[1].rx_buf = adis->buffer; in adis_update_scan_mode_burst() 75 kfree(adis->buffer); in adis_update_scan_mode() 86 adis->buffer = kcalloc(indio_dev->scan_bytes, 2, GFP_KERNEL); in adis_update_scan_mode() 87 if (!adis->buffer) { in adis_update_scan_mode() 93 rx = adis->buffer; in adis_update_scan_mode() 151 iio_push_to_buffers_with_timestamp(indio_dev, adis->buffer, in adis_trigger_handler() [all...] |
/kernel/linux/linux-5.10/include/sound/ |
H A D | info.h | 14 /* buffer for information */ 16 char *buffer; /* pointer to begin of buffer */ member 17 unsigned int curr; /* current position in buffer */ 19 unsigned int len; /* total length of buffer */ 31 struct snd_info_buffer *buffer); 33 struct snd_info_buffer *buffer); 91 void snd_card_info_read_oss(struct snd_info_buffer *buffer); 94 static inline void snd_card_info_read_oss(struct snd_info_buffer *buffer) {} in snd_card_info_read_oss() argument 98 * snd_iprintf - printf on the procfs buffer 161 snd_iprintf(struct snd_info_buffer *buffer, char *fmt, ...) snd_iprintf() argument 165 snd_info_get_line(struct snd_info_buffer *buffer, char *line, int len) snd_info_get_line() argument 183 snd_card_rw_proc_new(struct snd_card *card, const char *name, void *private_data, void (*read)(struct snd_info_entry *, struct snd_info_buffer *), void (*write)(struct snd_info_entry *entry, struct snd_info_buffer *buffer)) snd_card_rw_proc_new() argument [all...] |
/kernel/linux/linux-6.6/drivers/misc/ |
H A D | lattice-ecp3-config.c | 69 u8 *buffer; in firmware_load() local 116 buffer = kzalloc(fw->size + 8, GFP_KERNEL); in firmware_load() 117 if (!buffer) { in firmware_load() 125 buffer[0] = FPGA_CMD_WRITE_INC; in firmware_load() 126 buffer[1] = 0xff; in firmware_load() 127 buffer[2] = 0xff; in firmware_load() 128 buffer[3] = 0xff; in firmware_load() 129 memcpy(buffer + 4, fw->data, fw->size); in firmware_load() 157 kfree(buffer); in firmware_load() 162 spi_write(spi, buffer, f in firmware_load() [all...] |
/kernel/linux/linux-6.6/include/sound/ |
H A D | info.h | 14 /* buffer for information */ 16 char *buffer; /* pointer to begin of buffer */ member 17 unsigned int curr; /* current position in buffer */ 19 unsigned int len; /* total length of buffer */ 31 struct snd_info_buffer *buffer); 33 struct snd_info_buffer *buffer); 91 void snd_card_info_read_oss(struct snd_info_buffer *buffer); 94 static inline void snd_card_info_read_oss(struct snd_info_buffer *buffer) {} in snd_card_info_read_oss() argument 98 * snd_iprintf - printf on the procfs buffer 159 snd_iprintf(struct snd_info_buffer *buffer, char *fmt, ...) snd_iprintf() argument 163 snd_info_get_line(struct snd_info_buffer *buffer, char *line, int len) snd_info_get_line() argument 181 snd_card_rw_proc_new(struct snd_card *card, const char *name, void *private_data, void (*read)(struct snd_info_entry *, struct snd_info_buffer *), void (*write)(struct snd_info_entry *entry, struct snd_info_buffer *buffer)) snd_card_rw_proc_new() argument [all...] |