/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | complexndk.cpp | 89 char buffer[20];
in Conj() local 91 sprintf(buffer, "%.2f", getRealAndImage);
in Conj() 92 strcat(backParam, buffer);
in Conj() 95 sprintf(buffer, "%.2f", getRealAndImage);
in Conj() 96 strcat(backParam, buffer);
in Conj() 117 char buffer[20];
in ConjF() local 119 sprintf(buffer, "%.2f", getRealAndImage);
in ConjF() 120 strcat(backParam, buffer);
in ConjF() 123 sprintf(buffer, "%.2f", getRealAndImage);
in ConjF() 124 strcat(backParam, buffer);
in ConjF() 142 char buffer[20]; ConjL() local 169 char buffer[20]; CPow() local 198 char buffer[20]; CPowF() local 225 char buffer[20]; CPowL() local 250 char buffer[20]; CProj() local 278 char buffer[20]; CProjF() local 303 char buffer[20]; CProjL() local 328 char buffer[20]; CSin() local 353 char buffer[20]; CSinF() local 378 char buffer[20]; CSinL() local 403 char buffer[20]; CSinH() local 428 char buffer[20]; CSinHf() local 453 char buffer[20]; CSinHl() local 478 char buffer[20]; CSqrt() local 503 char buffer[20]; CSqrtF() local 528 char buffer[20]; CSqrtL() local 553 char buffer[20]; CTan() local 578 char buffer[20]; CTanF() local 603 char buffer[20]; CTanL() local 628 char buffer[20]; CTanH() local 653 char buffer[20]; CTanHf() local 678 char buffer[20]; CTanHl() local 749 char buffer[20]; Cacos() local 775 char buffer[20]; Cacosl() local 801 char buffer[20]; Cacosf() local 827 char buffer[20]; Cacosh() local 853 char buffer[20]; Cacoshf() local 879 char buffer[20]; Cacoshl() local 962 char buffer[20]; Casin() local 988 char buffer[20]; Casinl() local 1014 char buffer[20]; Casinf() local 1040 char buffer[20]; Casinh() local 1066 char buffer[20]; Casinhf() local 1092 char buffer[20]; Casinhl() local 1118 char buffer[20]; Catan() local 1144 char buffer[20]; Catanl() local 1170 char buffer[20]; Catanf() local 1196 char buffer[20]; Catanh() local 1222 char buffer[20]; Catanhf() local 1248 char buffer[20]; Catanhl() local 1274 char buffer[20]; Ccos() local 1300 char buffer[20]; Ccosl() local 1326 char buffer[20]; Ccosf() local 1352 char buffer[20]; Ccosh() local 1378 char buffer[20]; Ccoshf() local 1404 char buffer[20]; Ccoshl() local 1430 char buffer[20]; Cexp() local 1456 char buffer[20]; Cexpl() local 1482 char buffer[20]; Cexpf() local 1508 char buffer[20]; Clog() local 1534 char buffer[20]; Clogf() local 1560 char buffer[20]; Clogl() local [all...] |
/kernel/linux/linux-5.10/drivers/s390/net/ |
H A D | qeth_core_mpc.h | 18 #define QETH_IPA_PDU_LEN_TOTAL(buffer) (buffer + 0x0e) 19 #define QETH_IPA_PDU_LEN_PDU1(buffer) (buffer + 0x26) 20 #define QETH_IPA_PDU_LEN_PDU2(buffer) (buffer + 0x29) 21 #define QETH_IPA_PDU_LEN_PDU3(buffer) (buffer + 0x3a) 23 #define QETH_IPA_CMD_DEST_ADDR(buffer) (buffer 500 char *buffer; global() member [all...] |
/kernel/linux/linux-6.6/drivers/s390/net/ |
H A D | qeth_core_mpc.h | 18 #define QETH_IPA_PDU_LEN_TOTAL(buffer) (buffer + 0x0e) 19 #define QETH_IPA_PDU_LEN_PDU1(buffer) (buffer + 0x26) 20 #define QETH_IPA_PDU_LEN_PDU2(buffer) (buffer + 0x29) 21 #define QETH_IPA_PDU_LEN_PDU3(buffer) (buffer + 0x3a) 23 #define QETH_IPA_CMD_DEST_ADDR(buffer) (buffer 523 char *buffer; global() member [all...] |
/kernel/linux/linux-6.6/include/linux/iio/ |
H A D | buffer_impl.h | 9 #include <uapi/linux/iio/buffer.h> 10 #include <linux/iio/buffer.h> 16 * INDIO_BUFFER_FLAG_FIXED_WATERMARK - Watermark level of the buffer can not be 17 * configured. It has a fixed value which will be buffer specific. 23 * @store_to: actually store stuff to the buffer 26 * the buffer. 27 * @remove_from: remove scan from buffer. Drivers should calls this to 28 * remove a scan from a buffer. 30 * @space_available: returns the amount of bytes available in a buffer 34 * @set_length: set number of datums in buffer 164 iio_buffer_get(struct iio_buffer *buffer) iio_buffer_get() argument 165 iio_buffer_put(struct iio_buffer *buffer) iio_buffer_put() argument [all...] |
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/payload_data/ |
H A D | send_object_info_data.cpp | 38 int SendObjectInfoData::Parser(const std::vector<uint8_t> &buffer, int32_t readSize) in Parser() argument 54 context_->storageID = MtpPacketTool::GetUInt32(buffer, offset); in Parser() 55 context_->parent = MtpPacketTool::GetUInt32(buffer, offset); in Parser() 58 int res = ParserData(buffer, offset); in Parser() 101 int SendObjectInfoData::ParserData(const std::vector<uint8_t> &buffer, size_t &offset) in ParserData() argument 105 if (!MtpPacketTool::GetUInt32(buffer, offset, tmpUse32)) { // storage ID in ParserData() 108 if (!MtpPacketTool::GetUInt16(buffer, offset, context_->format)) { in ParserData() 111 if (!MtpPacketTool::GetUInt16(buffer, offset, tmpUse16)) { // protection status in ParserData() 114 if (!MtpPacketTool::GetUInt32(buffer, offset, context_->sendObjectFileSize)) { in ParserData() 117 int res = ParserDataForImageInfo(buffer, offse in ParserData() 137 ParserDataForImageInfo(const std::vector<uint8_t> &buffer, size_t &offset) ParserDataForImageInfo() argument 167 ParserDataForFileInfo(const std::vector<uint8_t> &buffer, size_t &offset) ParserDataForFileInfo() argument [all...] |
/test/xts/hats/kernel/syscalls/fileio/preadv/ |
H A D | PreadvApiTest.cpp | 75 char buffer[MAX_LEN] = { 0 }; in HWTEST_F() local 78 .iov_base = buffer, in HWTEST_F() 81 .iov_base = &buffer[TEST_LEN], in HWTEST_F() 94 memset_s(buffer, sizeof(buffer), 0, sizeof(buffer)); in HWTEST_F() 100 memset_s(buffer, sizeof(buffer), 0, sizeof(buffer)); in HWTEST_F() 118 char buffer[MAX_LE in HWTEST_F() local 140 char buffer[MAX_LEN] = { 0 }; HWTEST_F() local 164 char buffer[MAX_LEN] = { 0 }; HWTEST_F() local 199 char buffer[MAX_LEN] = { 0 }; HWTEST_F() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/misc/ |
H A D | cytherm.c | 81 unsigned char *buffer; in brightness_store() local 84 buffer = kmalloc(8, GFP_KERNEL); in brightness_store() 85 if (!buffer) in brightness_store() 97 cytherm->brightness, buffer, 8); in brightness_store() 102 0x01, buffer, 8); in brightness_store() 106 kfree(buffer); in brightness_store() 123 unsigned char *buffer; in temp_show() local 127 buffer = kmalloc(8, GFP_KERNEL); in temp_show() 128 if (!buffer) in temp_show() 132 retval = vendor_command(cytherm->udev, READ_RAM, TEMP, 0, buffer, in temp_show() 160 unsigned char *buffer; button_show() local 189 unsigned char *buffer; port0_show() local 212 unsigned char *buffer; port0_store() local 244 unsigned char *buffer; port1_show() local 267 unsigned char *buffer; port1_store() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/fault/ |
H A D | gv100.c | 31 gv100_fault_buffer_process(struct nvkm_fault_buffer *buffer) in gv100_fault_buffer_process() argument 33 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_process() 34 struct nvkm_memory *mem = buffer->mem; in gv100_fault_buffer_process() 35 u32 get = nvkm_rd32(device, buffer->get); in gv100_fault_buffer_process() 36 u32 put = nvkm_rd32(device, buffer->put); in gv100_fault_buffer_process() 42 const u32 base = get * buffer->fault->func->buffer.entry_size; in gv100_fault_buffer_process() 53 if (++get == buffer->entries) in gv100_fault_buffer_process() 55 nvkm_wr32(device, buffer->get, get); in gv100_fault_buffer_process() 74 gv100_fault_buffer_intr(struct nvkm_fault_buffer *buffer, boo argument 85 gv100_fault_buffer_fini(struct nvkm_fault_buffer *buffer) gv100_fault_buffer_fini() argument 93 gv100_fault_buffer_init(struct nvkm_fault_buffer *buffer) gv100_fault_buffer_init() argument 105 gv100_fault_buffer_info(struct nvkm_fault_buffer *buffer) gv100_fault_buffer_info() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/misc/ |
H A D | cytherm.c | 81 unsigned char *buffer; in brightness_store() local 84 buffer = kmalloc(8, GFP_KERNEL); in brightness_store() 85 if (!buffer) in brightness_store() 97 cytherm->brightness, buffer, 8); in brightness_store() 102 0x01, buffer, 8); in brightness_store() 106 kfree(buffer); in brightness_store() 123 unsigned char *buffer; in temp_show() local 127 buffer = kmalloc(8, GFP_KERNEL); in temp_show() 128 if (!buffer) in temp_show() 132 retval = vendor_command(cytherm->udev, READ_RAM, TEMP, 0, buffer, in temp_show() 160 unsigned char *buffer; button_show() local 189 unsigned char *buffer; port0_show() local 212 unsigned char *buffer; port0_store() local 244 unsigned char *buffer; port1_show() local 267 unsigned char *buffer; port1_store() local [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_mtp_test/src/ |
H A D | mtp_set_object_prop_test.cpp | 33 vector<uint8_t> buffer; in HWTEST_F() local 36 int ret = setObjectPropValueData.Parser(buffer, 0); in HWTEST_F() 39 ret = setObjectPropValueData.Parser(buffer, 0); in HWTEST_F() 43 buffer.push_back(0); in HWTEST_F() 45 ret = setObjectPropValueData.Parser(buffer, 24); in HWTEST_F() 47 buffer.push_back((uint8_t)0x02); in HWTEST_F() 48 buffer.push_back((uint8_t)0xDC); in HWTEST_F() 49 buffer.push_back(0); in HWTEST_F() 50 buffer.push_back(0); in HWTEST_F() 51 ret = setObjectPropValueData.Parser(buffer, 2 in HWTEST_F() 63 vector<uint8_t> buffer; HWTEST_F() local 83 vector<uint8_t> buffer; HWTEST_F() local 99 vector<uint8_t> buffer; HWTEST_F() local 158 vector<uint8_t> buffer; HWTEST_F() local 179 vector<uint8_t> buffer; HWTEST_F() local 202 vector<uint8_t> buffer; HWTEST_F() local 225 vector<uint8_t> buffer; HWTEST_F() local 248 vector<uint8_t> buffer; HWTEST_F() local [all...] |
/foundation/arkui/ace_engine_lite/frameworks/common/log/ |
H A D | ace_log.cpp | 104 void HILOG_CHARACTERS(const size_t size, const char* buffer) in HILOG_CHARACTERS() argument 106 if (size == 0 || buffer == nullptr) { in HILOG_CHARACTERS() 121 buffer[index], buffer[index + len1], buffer[index + len2], in HILOG_CHARACTERS() 122 buffer[index + len3], buffer[index + len4], buffer[index + len5]); in HILOG_CHARACTERS() 125 buffer[index], buffer[inde in HILOG_CHARACTERS() [all...] |
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/ |
H A D | property.cpp | 182 bool Property::Read(const std::vector<uint8_t> &buffer, size_t &offset) in Read() argument 184 if (!MtpPacketTool::GetUInt16(buffer, offset, code_)) { in Read() 188 if (!MtpPacketTool::GetUInt16(buffer, offset, type_)) { in Read() 193 if (!MtpPacketTool::GetUInt8(buffer, offset, tmpVar)) { in Read() 198 if (!ReadValueData(buffer, offset)) { in Read() 204 if (!MtpPacketTool::GetUInt32(buffer, offset, groupCode_)) { in Read() 209 if (!ReadFormData(buffer, offset)) { in Read() 216 void Property::Write(std::vector<uint8_t> &buffer) in Write() argument 218 MtpPacketTool::PutUInt16(buffer, code_); in Write() 219 MtpPacketTool::PutUInt16(buffer, type in Write() 354 ReadValueData(const std::vector<uint8_t> &buffer, size_t &offset) ReadValueData() argument 396 ReadFormData(const std::vector<uint8_t> &buffer, size_t &offset) ReadFormData() argument 436 WriteValueData(std::vector<uint8_t> &buffer) WriteValueData() argument 464 WriteFormData(std::vector<uint8_t> &buffer) WriteFormData() argument 480 ReadValue(const std::vector<uint8_t> &buffer, size_t &offset, Value &value) ReadValue() argument 529 ReadValueEx(const std::vector<uint8_t> &buffer, size_t &offset, Value &value) ReadValueEx() argument 575 WriteValue(std::vector<uint8_t> &buffer, const Value &value) WriteValue() argument 609 WriteValueEx(std::vector<uint8_t> &buffer, const Value &value) WriteValueEx() argument 640 ReadArrayValues(const std::vector<uint8_t> &buffer, size_t &offset, std::shared_ptr<std::vector<Value>> &values) ReadArrayValues() argument 668 WriteArrayValues(std::vector<uint8_t> &buffer, const std::shared_ptr<std::vector<Value>> &values) WriteArrayValues() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/ |
H A D | avrcp_ct_notification.cpp | 64 auto buffer = BufferMalloc(bufferSize); in AssembleParameters() local 65 if (buffer == nullptr) { in AssembleParameters() 69 auto bufferPtr = static_cast<uint8_t *>(BufferPtr(buffer)); in AssembleParameters() 81 PacketPayloadAddLast(pkt, buffer); in AssembleParameters() 83 BufferFree(buffer); in AssembleParameters() 88 bool AvrcCtNotifyPacket::DisassembleParameters(uint8_t *buffer) in DisassembleParameters() argument 96 offset += PopOctets2((buffer + offset), payload); in DisassembleParameters() 101 PopOctets1((buffer + offset), payload); in DisassembleParameters() 107 isValid_ = DisassemblePlaybackStatus(buffer); in DisassembleParameters() 110 isValid_ = DisassembleTrackChanged(buffer); in DisassembleParameters() 143 DisassemblePlaybackStatus(uint8_t *buffer) DisassemblePlaybackStatus() argument 160 DisassembleTrackChanged(uint8_t *buffer) DisassembleTrackChanged() argument 177 DisassemblePlaybackPosChanged(uint8_t *buffer) DisassemblePlaybackPosChanged() argument 194 DisassemblePlayerApplicationSettingChanged(uint8_t *buffer) DisassemblePlayerApplicationSettingChanged() argument 223 DisassembleAddressedPlayerChanged(uint8_t *buffer) DisassembleAddressedPlayerChanged() argument 245 DisassembleUidsChanged(uint8_t *buffer) DisassembleUidsChanged() argument 262 DisassembleVolumeChanged(uint8_t *buffer) DisassembleVolumeChanged() argument [all...] |
/kernel/linux/linux-6.6/drivers/dma-buf/heaps/ |
H A D | system_heap.c | 85 struct system_heap_buffer *buffer = dmabuf->priv; in system_heap_attach() local 93 table = dup_sg_table(&buffer->sg_table); in system_heap_attach() 106 mutex_lock(&buffer->lock); in system_heap_attach() 107 list_add(&a->list, &buffer->attachments); in system_heap_attach() 108 mutex_unlock(&buffer->lock); in system_heap_attach() 116 struct system_heap_buffer *buffer = dmabuf->priv; in system_heap_detach() local 119 mutex_lock(&buffer->lock); in system_heap_detach() 121 mutex_unlock(&buffer->lock); in system_heap_detach() 156 struct system_heap_buffer *buffer = dmabuf->priv; in system_heap_dma_buf_begin_cpu_access() local 159 mutex_lock(&buffer in system_heap_dma_buf_begin_cpu_access() 177 struct system_heap_buffer *buffer = dmabuf->priv; system_heap_dma_buf_end_cpu_access() local 197 struct system_heap_buffer *buffer = dmabuf->priv; system_heap_mmap() local 217 system_heap_do_vmap(struct system_heap_buffer *buffer) system_heap_do_vmap() argument 245 struct system_heap_buffer *buffer = dmabuf->priv; system_heap_vmap() local 273 struct system_heap_buffer *buffer = dmabuf->priv; system_heap_vunmap() local 286 struct system_heap_buffer *buffer = dmabuf->priv; system_heap_dma_buf_release() local 339 struct system_heap_buffer *buffer; system_heap_allocate() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/ |
H A D | drm_client.c | 32 * GEM drivers which provide a GEM based dumb buffer with a virtual address are supported. 165 * is fbdev which cannot free the buffer if userspace has open file descriptors. 265 static void drm_client_buffer_delete(struct drm_client_buffer *buffer) in drm_client_buffer_delete() argument 267 if (buffer->gem) { in drm_client_buffer_delete() 268 drm_gem_vunmap_unlocked(buffer->gem, &buffer->map); in drm_client_buffer_delete() 269 drm_gem_object_put(buffer->gem); in drm_client_buffer_delete() 272 kfree(buffer); in drm_client_buffer_delete() 282 struct drm_client_buffer *buffer; in drm_client_buffer_create() local 286 buffer in drm_client_buffer_create() 338 drm_client_buffer_vmap(struct drm_client_buffer *buffer, struct iosys_map *map_copy) drm_client_buffer_vmap() argument 370 drm_client_buffer_vunmap(struct drm_client_buffer *buffer) drm_client_buffer_vunmap() argument 378 drm_client_buffer_rmfb(struct drm_client_buffer *buffer) drm_client_buffer_rmfb() argument 393 drm_client_buffer_addfb(struct drm_client_buffer *buffer, u32 width, u32 height, u32 format, u32 handle) drm_client_buffer_addfb() argument 443 struct drm_client_buffer *buffer; drm_client_framebuffer_create() local 475 drm_client_framebuffer_delete(struct drm_client_buffer *buffer) drm_client_framebuffer_delete() argument 496 drm_client_framebuffer_flush(struct drm_client_buffer *buffer, struct drm_rect *rect) drm_client_framebuffer_flush() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | sr_vendor.c | 126 unsigned char *buffer; /* the buffer for the ioctl */ in sr_set_blocklength() local 134 buffer = kmalloc(512, GFP_KERNEL); in sr_set_blocklength() 135 if (!buffer) in sr_set_blocklength() 145 modesel = (struct ccs_modesel_head *) buffer; in sr_set_blocklength() 151 cgc.buffer = buffer; in sr_set_blocklength() 164 kfree(buffer); in sr_set_blocklength() 175 unsigned char *buffer; /* the buffer fo in sr_cd_check() local [all...] |
/kernel/linux/linux-5.10/sound/pci/lola/ |
H A D | lola_proc.c | 16 static void print_audio_widget(struct snd_info_buffer *buffer, in print_audio_widget() argument 22 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); in print_audio_widget() 24 snd_iprintf(buffer, " Formats: 0x%x\n", val); in print_audio_widget() 27 static void print_pin_widget(struct snd_info_buffer *buffer, in print_pin_widget() argument 34 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); in print_pin_widget() 38 snd_iprintf(buffer, " Amp-Caps: 0x%x\n", val); in print_pin_widget() 39 snd_iprintf(buffer, " mute=%d, step-size=%d, steps=%d, ofs=%d\n", in print_pin_widget() 45 snd_iprintf(buffer, " Max-level: 0x%x\n", val); in print_pin_widget() 48 static void print_clock_widget(struct snd_info_buffer *buffer, in print_clock_widget() argument 55 snd_iprintf(buffer, "Nod in print_clock_widget() 88 print_mixer_widget(struct snd_info_buffer *buffer, struct lola *chip, int nid) print_mixer_widget() argument 97 lola_proc_codec_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) lola_proc_codec_read() argument 134 lola_proc_codec_rw_write(struct snd_info_entry *entry, struct snd_info_buffer *buffer) lola_proc_codec_rw_write() argument 149 lola_proc_codec_rw_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) lola_proc_codec_rw_read() argument 159 lola_proc_regs_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) lola_proc_regs_read() argument [all...] |
/kernel/linux/linux-6.6/drivers/scsi/ |
H A D | sr_vendor.c | 126 unsigned char *buffer; /* the buffer for the ioctl */ in sr_set_blocklength() local 134 buffer = kmalloc(512, GFP_KERNEL); in sr_set_blocklength() 135 if (!buffer) in sr_set_blocklength() 145 modesel = (struct ccs_modesel_head *) buffer; in sr_set_blocklength() 151 cgc.buffer = buffer; in sr_set_blocklength() 164 kfree(buffer); in sr_set_blocklength() 175 unsigned char *buffer; /* the buffer fo in sr_cd_check() local [all...] |
/kernel/linux/linux-6.6/sound/pci/lola/ |
H A D | lola_proc.c | 16 static void print_audio_widget(struct snd_info_buffer *buffer, in print_audio_widget() argument 22 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); in print_audio_widget() 24 snd_iprintf(buffer, " Formats: 0x%x\n", val); in print_audio_widget() 27 static void print_pin_widget(struct snd_info_buffer *buffer, in print_pin_widget() argument 34 snd_iprintf(buffer, "Node 0x%02x %s wcaps 0x%x\n", nid, name, val); in print_pin_widget() 38 snd_iprintf(buffer, " Amp-Caps: 0x%x\n", val); in print_pin_widget() 39 snd_iprintf(buffer, " mute=%d, step-size=%d, steps=%d, ofs=%d\n", in print_pin_widget() 45 snd_iprintf(buffer, " Max-level: 0x%x\n", val); in print_pin_widget() 48 static void print_clock_widget(struct snd_info_buffer *buffer, in print_clock_widget() argument 55 snd_iprintf(buffer, "Nod in print_clock_widget() 88 print_mixer_widget(struct snd_info_buffer *buffer, struct lola *chip, int nid) print_mixer_widget() argument 97 lola_proc_codec_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) lola_proc_codec_read() argument 134 lola_proc_codec_rw_write(struct snd_info_entry *entry, struct snd_info_buffer *buffer) lola_proc_codec_rw_write() argument 149 lola_proc_codec_rw_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) lola_proc_codec_rw_read() argument 159 lola_proc_regs_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) lola_proc_regs_read() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/fault/ |
H A D | base.c | 30 fault->func->buffer.intr(fault->buffer[index], false); in nvkm_fault_ntfy_fini() 37 fault->func->buffer.intr(fault->buffer[index], true); in nvkm_fault_ntfy_init() 76 struct nvkm_fault_buffer *buffer; in nvkm_fault_oneinit_buffer() local 79 if (!(buffer = kzalloc(sizeof(*buffer), GFP_KERNEL))) in nvkm_fault_oneinit_buffer() 81 buffer->fault = fault; in nvkm_fault_oneinit_buffer() 82 buffer->id = id; in nvkm_fault_oneinit_buffer() 83 fault->func->buffer in nvkm_fault_oneinit_buffer() [all...] |
H A D | gv100.c | 34 struct nvkm_fault_buffer *buffer = fault->buffer[0]; in gv100_fault_buffer_process() local 36 struct nvkm_memory *mem = buffer->mem; in gv100_fault_buffer_process() 37 u32 get = nvkm_rd32(device, buffer->get); in gv100_fault_buffer_process() 38 u32 put = nvkm_rd32(device, buffer->put); in gv100_fault_buffer_process() 44 const u32 base = get * buffer->fault->func->buffer.entry_size; in gv100_fault_buffer_process() 55 if (++get == buffer->entries) in gv100_fault_buffer_process() 57 nvkm_wr32(device, buffer->get, get); in gv100_fault_buffer_process() 76 gv100_fault_buffer_intr(struct nvkm_fault_buffer *buffer, boo argument 87 gv100_fault_buffer_fini(struct nvkm_fault_buffer *buffer) gv100_fault_buffer_fini() argument 95 gv100_fault_buffer_init(struct nvkm_fault_buffer *buffer) gv100_fault_buffer_init() argument 107 gv100_fault_buffer_info(struct nvkm_fault_buffer *buffer) gv100_fault_buffer_info() argument [all...] |
/foundation/multimedia/audio_framework/services/audio_service/common/src/ |
H A D | volume_tools.cpp | 187 int32_t VolumeTools::Process(const BufferDesc &buffer, AudioSampleFormat format, ChannelVolumes vols) in Process() argument 196 if (buffer.buffer == nullptr || buffer.bufLength % byteSizePerFrame != 0) { in Process() 197 AUDIO_ERR_LOG("Process failed with invalid buffer, size is %{public}zu", buffer.bufLength); in Process() 201 size_t frameSize = buffer.bufLength / byteSizePerFrame; in Process() 220 uint8_t *samplePtr = buffer.buffer + frameIndex * byteSizePerFrame + channelIdx * byteSizePerData; in Process() 253 static void CountU8Volume(const BufferDesc &buffer, AudioChanne argument 286 CountS16Volume(const BufferDesc &buffer, AudioChannel channel, ChannelVolumes &volMaps) CountS16Volume() argument 319 CountS24Volume(const BufferDesc &buffer, AudioChannel channel, ChannelVolumes &volMaps) CountS24Volume() argument 353 CountS32Volume(const BufferDesc &buffer, AudioChannel channel, ChannelVolumes &volMaps) CountS32Volume() argument 387 CountF32Volume(const BufferDesc &buffer, AudioChannel channel, ChannelVolumes &volMaps) CountF32Volume() argument 421 CountVolumeLevel(const BufferDesc &buffer, AudioSampleFormat format, AudioChannel channel) CountVolumeLevel() argument 459 ProcessVol(uint8_t *buffer, size_t length, AudioRawFormat rawformat, float volStart, float volEnd) ProcessVol() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp_receive.c | 34 static void SMP_ReceivePairingRequest(uint16_t handle, const Buffer *buffer); 35 static void SMP_ReceivePairingResponse(uint16_t handle, const Buffer *buffer); 36 static void SMP_ReceivePairingConfirm(uint16_t handle, const Buffer *buffer); 37 static void SMP_ReceivePairingRandom(uint16_t handle, const Buffer *buffer); 38 static void SMP_ReceiveEncryptionInformation(uint16_t handle, const Buffer *buffer); 39 static void SMP_ReceiveMasterIdentification(uint16_t handle, const Buffer *buffer); 40 static void SMP_ReceiveIdentityInformation(uint16_t handle, const Buffer *buffer); 41 static void SMP_ReceiveIdentityAddressInformation(uint16_t handle, const Buffer *buffer); 42 static void SMP_ReceiveSigningInformation(uint16_t handle, const Buffer *buffer); 43 static void SMP_ReceivePairingFailed(uint16_t handle, const Buffer *buffer); 90 Buffer *buffer = NULL; SMP_RecvDataTask() local 141 SMP_RecvDataCmdDistribution(uint16_t handle, uint8_t code, const Buffer *buffer) SMP_RecvDataCmdDistribution() argument 188 SMP_ReceivePairingRequest(uint16_t handle, const Buffer *buffer) SMP_ReceivePairingRequest() argument 256 SMP_ReceivePairingResponse(uint16_t handle, const Buffer *buffer) SMP_ReceivePairingResponse() argument 321 SMP_ReceivePairingConfirm(uint16_t handle, const Buffer *buffer) SMP_ReceivePairingConfirm() argument 372 SMP_ReceivePairingRandom(uint16_t handle, const Buffer *buffer) SMP_ReceivePairingRandom() argument 423 SMP_ReceiveEncryptionInformation(uint16_t handle, const Buffer *buffer) SMP_ReceiveEncryptionInformation() argument 443 SMP_ReceiveMasterIdentification(uint16_t handle, const Buffer *buffer) SMP_ReceiveMasterIdentification() argument 463 SMP_ReceiveIdentityInformation(uint16_t handle, const Buffer *buffer) SMP_ReceiveIdentityInformation() argument 483 SMP_ReceiveIdentityAddressInformation(uint16_t handle, const Buffer *buffer) SMP_ReceiveIdentityAddressInformation() argument 503 SMP_ReceiveSigningInformation(uint16_t handle, const Buffer *buffer) SMP_ReceiveSigningInformation() argument 523 SMP_ReceivePairingFailed(uint16_t handle, const Buffer *buffer) SMP_ReceivePairingFailed() argument 546 SMP_ReceiveSecurityRequest(uint16_t handle, const Buffer *buffer) SMP_ReceiveSecurityRequest() argument 562 SMP_ReceivePairingPublicKey(uint16_t handle, const Buffer *buffer) SMP_ReceivePairingPublicKey() argument 609 SMP_ReceivePairingDHKeyCheck(uint16_t handle, const Buffer *buffer) SMP_ReceivePairingDHKeyCheck() argument 639 SMP_RecvEncInfoProcessMaster(const Buffer *buffer) SMP_RecvEncInfoProcessMaster() argument 688 SMP_RecvEncInfoProcessSlave(const Buffer *buffer) SMP_RecvEncInfoProcessSlave() argument 710 SMP_RecvMasterIdentProcessMaster(const Buffer *buffer) SMP_RecvMasterIdentProcessMaster() argument 757 SMP_RecvMasterIdentProcessSlave(const Buffer *buffer) SMP_RecvMasterIdentProcessSlave() argument 780 SMP_RecvIdentInfoProcessMaster(const Buffer *buffer) SMP_RecvIdentInfoProcessMaster() argument 832 SMP_RecvIdentInfoProcessSlave(const Buffer *buffer) SMP_RecvIdentInfoProcessSlave() argument 856 SMP_RecvIdentAddrInfoProcessMaster(const Buffer *buffer) SMP_RecvIdentAddrInfoProcessMaster() argument 910 SMP_RecvIdentAddrInfoProcessSlave(const Buffer *buffer) SMP_RecvIdentAddrInfoProcessSlave() argument 941 SMP_RecvSignInfoProcessMaster(const Buffer *buffer) SMP_RecvSignInfoProcessMaster() argument 993 SMP_RecvSignInfoProcessSlave(const Buffer *buffer) SMP_RecvSignInfoProcessSlave() argument [all...] |
/foundation/multimedia/av_codec/services/services/codec/ipc/ |
H A D | codec_listener_stub.cpp | 23 #include "buffer/avsharedmemorybase.h" 39 std::shared_ptr<AVBuffer> buffer = nullptr; member 107 EXPECT_AND_LOGD(elem.buffer != nullptr, "index=%{public}d, flag=%{public}u, pts=%{public}" PRId64, index, in ReturnBufferToServer() 108 elem.buffer->flag_, elem.buffer->pts_); in ReturnBufferToServer() 175 void AVBufferToAVSharedMemory(const std::shared_ptr<AVBuffer> &buffer, std::shared_ptr<AVSharedMemory> &memory) in AVBufferToAVSharedMemory() argument 178 std::shared_ptr<AVMemory> &bufferMem = buffer->memory_; in AVBufferToAVSharedMemory() 185 std::string name = std::string("SharedMem_") + std::to_string(buffer->GetUniqueId()); in AVBufferToAVSharedMemory() 191 std::string name = std::string("SharedMem_") + std::to_string(buffer->GetUniqueId()); in AVBufferToAVSharedMemory() 202 bool isReadSuc = elem.buffer in HitInputCache() 391 OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) OnInputBufferAvailable() argument 397 OnOutputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) OnOutputBufferAvailable() argument 452 std::shared_ptr<AVBuffer> &buffer = elem.buffer; OnOutputBufferAvailable() local 502 std::shared_ptr<AVBuffer> &buffer = elem.buffer; WriteInputMemoryToParcel() local 521 std::shared_ptr<AVBuffer> &buffer = elem.buffer; WriteInputBufferToParcel() local [all...] |
/foundation/multimedia/media_foundation/services/media_monitor/common/include/ |
H A D | dump_buffer_wrap.h | 27 using BufferDestroyFunc = void (*)(DumpBuffer *buffer); 28 using BufferGetAddrFunc = uint8_t *(*)(DumpBuffer *buffer); 29 using BufferGetCapacityFunc = int32_t (*)(DumpBuffer *buffer); 30 using BufferGetSizeFunc = int32_t (*)(DumpBuffer *buffer); 31 using BufferSetSizeFunc = bool (*)(DumpBuffer *buffer, int32_t size); 32 using BufferGetUniIdFunc = uint64_t (*)(DumpBuffer *buffer); 33 using BufferWriteFunc = int32_t (*)(DumpBuffer *buffer, const uint8_t *in, int32_t writeSize); 34 using BufferReadFromParcelFunc = bool (*)(DumpBuffer *buffer, void *parcel); 35 using BufferWriteToParcelFunc = bool (*)(DumpBuffer *buffer, void *parcel); 45 void DestroyDumpBuffer(DumpBuffer *buffer); [all...] |