/kernel/linux/linux-6.6/drivers/auxdisplay/ |
H A D | ht16k33.c | 84 uint8_t *buffer; member 258 p2 = fbdev->buffer; in ht16k33_fb_update() 273 p2 = fbdev->buffer + HT16K33_FB_SIZE - 1; in ht16k33_fb_update() 283 p2 = fbdev->buffer + first; in ht16k33_fb_update() 352 struct page *pages = virt_to_page(priv->fbdev.buffer); in ht16k33_mmap() 617 fbdev->buffer = (unsigned char *) get_zeroed_page(GFP_KERNEL); in ht16k33_fbdev_probe() 618 if (!fbdev->buffer) in ht16k33_fbdev_probe() 643 fbdev->info->screen_buffer = fbdev->buffer; in ht16k33_fbdev_probe() 661 free_page((unsigned long) fbdev->buffer); in ht16k33_fbdev_probe() 788 free_page((unsigned long)fbdev->buffer); in ht16k33_remove() [all...] |
/kernel/linux/linux-6.6/drivers/pnp/pnpacpi/ |
H A D | rsparser.c | 623 struct acpi_buffer *buffer) in pnpacpi_build_resource_template() 639 buffer->length = sizeof(struct acpi_resource) * (res_cnt + 1) + 1; in pnpacpi_build_resource_template() 640 buffer->pointer = kzalloc(buffer->length - 1, GFP_KERNEL); in pnpacpi_build_resource_template() 641 if (!buffer->pointer) in pnpacpi_build_resource_template() 644 resource = (struct acpi_resource *)buffer->pointer; in pnpacpi_build_resource_template() 648 kfree(buffer->pointer); in pnpacpi_build_resource_template() 877 int pnpacpi_encode_resources(struct pnp_dev *dev, struct acpi_buffer *buffer) in pnpacpi_encode_resources() argument 881 int res_cnt = (buffer->length - 1) / sizeof(struct acpi_resource) - 1; in pnpacpi_encode_resources() 882 struct acpi_resource *resource = buffer in pnpacpi_encode_resources() 622 pnpacpi_build_resource_template(struct pnp_dev *dev, struct acpi_buffer *buffer) pnpacpi_build_resource_template() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/misc/ |
H A D | iowarrior.c | 81 unsigned char *int_in_buffer; /* buffer for data to be read */ 236 /* free up our allocated buffer */ in iowarrior_write_callback() 274 static ssize_t iowarrior_read(struct file *file, char __user *buffer, in iowarrior_read() argument 295 /* repeat until no buffer overrun in callback handler occur */ in iowarrior_read() 326 if (copy_to_user(buffer, dev->read_queue + offset, count)) { in iowarrior_read() 345 char *buf = NULL; /* for IOW24 and IOW56 we need a buffer */ in iowarrior_write() 425 "Unable to allocate buffer\n"); in iowarrior_write() 479 __u8 *buffer; in iowarrior_ioctl() local 488 buffer = kzalloc(dev->report_size, GFP_KERNEL); in iowarrior_ioctl() 489 if (!buffer) in iowarrior_ioctl() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/microchip/wilc1000/ |
H A D | sdio.c | 49 u8 *buffer; member 97 u8 *buf = cmd->buffer; in wilc_sdio_cmd53() 117 memcpy(buf, cmd->buffer, size); in wilc_sdio_cmd53() 124 memcpy(cmd->buffer, buf, size); in wilc_sdio_cmd53() 402 cmd.buffer = (u8 *)&data; in wilc_sdio_write_reg() 446 cmd.buffer = buf; in wilc_sdio_write() 468 cmd.buffer = buf; in wilc_sdio_write() 521 cmd.buffer = (u8 *)data; in wilc_sdio_read_reg() 569 cmd.buffer = buf; in wilc_sdio_read() 591 cmd.buffer in wilc_sdio_read() [all...] |
/kernel/linux/linux-6.6/drivers/i2c/busses/ |
H A D | i2c-nomadik.c | 138 * @buffer: client data buffer 145 unsigned char *buffer; member 497 writeb(*dev->cli.buffer, in fill_tx_fifo() 499 dev->cli.buffer++; in fill_tx_fifo() 678 dev->cli.buffer = msgs[i].buf; in nmk_i2c_xfer() 771 *dev->cli.buffer = readb(dev->virtbase + I2C_RFR); in i2c_irq_handler() 772 dev->cli.buffer++; in i2c_irq_handler() 781 *dev->cli.buffer = readb(dev->virtbase + I2C_RFR); in i2c_irq_handler() 782 dev->cli.buffer in i2c_irq_handler() [all...] |
/kernel/linux/linux-6.6/sound/pci/ice1712/ |
H A D | quartet.c | 194 * The output buffer must be allocated prior to calling the function. 196 static char *get_binary(char *buffer, int value) in get_binary() argument 203 buffer[pos] = '1'; in get_binary() 205 buffer[pos] = '0'; in get_binary() 209 buffer[pos] = ' '; in get_binary() 213 buffer[pos] = '\0'; in get_binary() 214 return buffer; in get_binary() 475 struct snd_info_buffer *buffer) in proc_regs_read() 480 snd_iprintf(buffer, "SCR: %s\n", get_binary(bin_buffer, in proc_regs_read() 482 snd_iprintf(buffer, "MC in proc_regs_read() 474 proc_regs_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) proc_regs_read() argument [all...] |
/kernel/linux/linux-5.10/drivers/staging/vc04_services/vchiq-mmal/ |
H A D | mmal-vchiq.c | 137 /* actual buffer used to store bulk reply */ 138 struct mmal_buffer *buffer; member 139 /* amount of buffer used */ 141 /* MMAL buffer flags */ 257 struct mmal_buffer *buffer = msg_context->u.bulk.buffer; in buffer_work_cb() local 259 if (!buffer) { in buffer_work_cb() 260 pr_err("%s: ctx: %p, No mmal buffer to pass details\n", in buffer_work_cb() 265 buffer->length = msg_context->u.bulk.buffer_used; in buffer_work_cb() 266 buffer in buffer_work_cb() 1592 vchiq_mmal_submit_buffer(struct vchiq_mmal_instance *instance, struct vchiq_mmal_port *port, struct mmal_buffer *buffer) vchiq_mmal_submit_buffer() argument [all...] |
/kernel/linux/linux-6.6/drivers/staging/vc04_services/vchiq-mmal/ |
H A D | mmal-vchiq.c | 137 /* actual buffer used to store bulk reply */ 138 struct mmal_buffer *buffer; member 139 /* amount of buffer used */ 141 /* MMAL buffer flags */ 254 struct mmal_buffer *buffer = msg_context->u.bulk.buffer; in buffer_work_cb() local 256 if (!buffer) { in buffer_work_cb() 257 pr_err("%s: ctx: %p, No mmal buffer to pass details\n", in buffer_work_cb() 262 buffer->length = msg_context->u.bulk.buffer_used; in buffer_work_cb() 263 buffer in buffer_work_cb() 1589 vchiq_mmal_submit_buffer(struct vchiq_mmal_instance *instance, struct vchiq_mmal_port *port, struct mmal_buffer *buffer) vchiq_mmal_submit_buffer() argument [all...] |
/test/xts/acts/multimedia/avsource/entry/src/main/cpp/ |
H A D | multimediaCore.cpp | 91 const char *bufferKey = "buffer value key"; 224 uint8_t *buffer = reinterpret_cast<uint8_t *>(malloc(sizeIn)); in MultimediaCoreAVFormatGetBufferOne() local 225 OH_AVFormat_SetBuffer(AVFormat, bufferKey, buffer, sizeIn); in MultimediaCoreAVFormatGetBufferOne() 231 free(buffer); in MultimediaCoreAVFormatGetBufferOne() 242 uint8_t *buffer = reinterpret_cast<uint8_t *>(malloc(sizeIn)); in MultimediaCoreAVFormatGetBufferTwo() local 243 OH_AVFormat_SetBuffer(AVFormat, bufferKey, buffer, sizeIn); in MultimediaCoreAVFormatGetBufferTwo() 249 free(buffer); in MultimediaCoreAVFormatGetBufferTwo() 260 uint8_t *buffer = reinterpret_cast<uint8_t *>(malloc(sizeIn)); in MultimediaCoreAVFormatGetBufferThree() local 261 OH_AVFormat_SetBuffer(AVFormat, bufferKey, buffer, sizeIn); in MultimediaCoreAVFormatGetBufferThree() 267 free(buffer); in MultimediaCoreAVFormatGetBufferThree() 278 uint8_t *buffer = reinterpret_cast<uint8_t *>(malloc(sizeIn)); MultimediaCoreAVFormatGetBufferFour() local 295 uint8_t *buffer = reinterpret_cast<uint8_t *>(malloc(sizeIn)); MultimediaCoreAVFormatGetBufferFive() local 627 uint8_t *buffer = reinterpret_cast<uint8_t *>(malloc(sizeIn)); MultimediaCoreAVFormatSetBufferOne() local 642 uint8_t *buffer = reinterpret_cast<uint8_t *>(malloc(sizeIn)); MultimediaCoreAVFormatSetBufferTwo() local 657 uint8_t *buffer = reinterpret_cast<uint8_t *>(malloc(sizeIn)); MultimediaCoreAVFormatSetBufferThree() local 1352 uint8_t *buffer = reinterpret_cast<uint8_t *>(malloc(sizeIn)); MultimediaCoreAVFormatSetBufferAll() local [all...] |
/base/account/os_account/services/accountmgr/src/ |
H A D | account_file_watcher_manager.cpp | 204 uint8_t *buffer = static_cast<uint8_t *>(malloc(len)); in GenerateAccountInfoDigest() local 205 if (buffer == nullptr) { in GenerateAccountInfoDigest() 206 ACCOUNT_LOGE("buffer malloc err"); in GenerateAccountInfoDigest() 209 (void)memcpy_s(buffer, len, inData.c_str(), len); in GenerateAccountInfoDigest() 210 struct HksBlob inDataBlob = { inData.size(), buffer }; in GenerateAccountInfoDigest() 214 free(buffer); in GenerateAccountInfoDigest() 220 free(buffer); in GenerateAccountInfoDigest()
|
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | hap_parser_test.cpp | 210 std::unique_ptr<uint8_t[]> buffer; in HWTEST_F() local 212 int32_t ret = HapParser::ReadIndexFromFile(zipFile.c_str(), buffer, len); in HWTEST_F() 224 std::unique_ptr<uint8_t[]> buffer; in HWTEST_F() local 226 int32_t ret = HapParser::ReadIndexFromFile(zipFile.c_str(), buffer, len); in HWTEST_F() 238 std::unique_ptr<uint8_t[]> buffer; in HWTEST_F() local 240 int32_t ret = HapParser::ReadIndexFromFile(zipFile.c_str(), buffer, len); in HWTEST_F()
|
/base/security/device_security_level/test/dslm_fuzz_test/dslm_fuzzer/ |
H A D | dslm_fuzzer.cpp | 329 const uint8_t *buffer = parcel.ReadBuffer(DEVICE_ID_MAX_LEN); in OnPeerMsgReceivedFuzzer() local 330 if (buffer != nullptr) { in OnPeerMsgReceivedFuzzer() 331 (void)memcpy_s(deviceIdentify.identity, DEVICE_ID_MAX_LEN, buffer, DEVICE_ID_MAX_LEN); in OnPeerMsgReceivedFuzzer() 364 const uint8_t *buffer = parcel.ReadBuffer(DEVICE_ID_MAX_LEN); in OnRemoteRequestFuzzer() local 365 if (buffer == nullptr) { in OnRemoteRequestFuzzer() 368 data.WriteBuffer(buffer, DEVICE_ID_MAX_LEN); in OnRemoteRequestFuzzer()
|
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_module_interface_test.cpp | 362 const std::string buffer = "{ \ in HWTEST_F() local 371 cJSON *json = cJSON_Parse(buffer.c_str()); in HWTEST_F() 386 const std::string buffer = "{ \ in HWTEST_F() local 395 cJSON *json = cJSON_Parse(buffer.c_str()); in HWTEST_F() 410 const std::string buffer = "{ \ in HWTEST_F() local 418 cJSON *json = cJSON_Parse(buffer.c_str()); in HWTEST_F()
|
/base/web/webview/ohos_adapter/media_adapter/src/ |
H A D | media_codec_decoder_adapter_impl.cpp | 336 WVLOG_E("buffer flag not found."); in GetBufferFlag() 346 WVLOG_E("buffer flag not found."); in GetAVBufferFlag() 379 void DecoderCallbackImpl::OnInputBufferAvailable(uint32_t index, std::shared_ptr<Media::AVSharedMemory> buffer) in OnInputBufferAvailable() argument 386 if (buffer == nullptr || buffer->GetBase() == nullptr) { in OnInputBufferAvailable() 396 ohosBuffer->SetAddr(buffer->GetBase()); in OnInputBufferAvailable() 397 ohosBuffer->SetBufferSize(buffer->GetSize()); in OnInputBufferAvailable() 402 uint32_t index, AVCodecBufferInfo info, AVCodecBufferFlag flag, std::shared_ptr<Media::AVSharedMemory> buffer) in OnOutputBufferAvailable() 401 OnOutputBufferAvailable( uint32_t index, AVCodecBufferInfo info, AVCodecBufferFlag flag, std::shared_ptr<Media::AVSharedMemory> buffer) OnOutputBufferAvailable() argument
|
/kernel/linux/linux-5.10/drivers/fsi/ |
H A D | fsi-occ.c | 64 u8 *buffer; member 80 client->buffer = (u8 *)__get_free_page(GFP_KERNEL); in occ_open() 81 if (!client->buffer) { in occ_open() 90 /* We allocate a 1-page buffer, make sure it all fits */ in occ_open() 119 if (copy_to_user(buf, client->buffer + client->read_offset, rc)) in occ_read() 148 cmd = client->buffer; in occ_write() 203 free_page((unsigned long)client->buffer); in occ_release() 299 * We use the same buffer for command and response, make in occ_putsram()
|
/kernel/linux/linux-5.10/drivers/acpi/ |
H A D | device_sysfs.c | 125 * @size: Size of the buffer. 186 * @size: Size of the buffer. 448 (wchar_t *)acpi_dev->pnp.str_obj->buffer.pointer, in description_show() 449 acpi_dev->pnp.str_obj->buffer.length, in description_show() 509 struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER, NULL}; in acpi_device_setup_files() local 537 NULL, &buffer); in acpi_device_setup_files() 539 buffer.pointer = NULL; in acpi_device_setup_files() 540 dev->pnp.str_obj = buffer.pointer; in acpi_device_setup_files()
|
/kernel/linux/linux-5.10/drivers/media/firewire/ |
H A D | firedtv-fw.c | 73 #define N_PACKETS 64 /* buffer size */ 79 struct fw_iso_buffer buffer; member 94 return fw_iso_context_queue(ctx->context, &p, &ctx->buffer, in queue_iso() 150 err = fw_iso_buffer_init(&ctx->buffer, device->card, in fdtv_start_iso() 159 ctx->pages[i] = page_address(ctx->buffer.pages[i]); in fdtv_start_iso() 176 fw_iso_buffer_destroy(&ctx->buffer, device->card); in fdtv_start_iso() 190 fw_iso_buffer_destroy(&ctx->buffer, device_of(fdtv)->card); in fdtv_stop_iso()
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
H A D | hx711.c | 18 #include <linux/iio/buffer.h> 88 * triggered buffer 91 u32 buffer[4] __aligned(8); 365 memset(hx711_data->buffer, 0, sizeof(hx711_data->buffer)); in hx711_trigger() 371 hx711_data->buffer[j] = hx711_reset_read(hx711_data, in hx711_trigger() 376 iio_push_to_buffers_with_timestamp(indio_dev, hx711_data->buffer, in hx711_trigger() 562 dev_err(dev, "setup of iio triggered buffer failed\n"); in hx711_probe()
|
/kernel/linux/linux-5.10/drivers/net/fjes/ |
H A D | fjes_trace.h | 108 tx = (void *)buf_pair->tx.buffer; 109 rx = (void *)buf_pair->rx.buffer; 203 __field(phys_addr_t, buffer) 208 __entry->buffer = req_buf->start_trace.buffer[0]; 210 TP_printk("req_buf=[length=%d, mode=%d, buffer=%pap]", 211 __entry->length, __entry->mode, &__entry->buffer)
|
/kernel/linux/linux-5.10/drivers/net/wimax/i2400m/ |
H A D | usb.c | 131 * Sends a barker buffer to the device 133 * This helper will allocate a kmalloced buffer and use it to transmit 149 void *buffer; in __i2400mu_send_barker() local 158 buffer = kmalloc(barker_size, GFP_KERNEL); in __i2400mu_send_barker() 159 if (buffer == NULL) in __i2400mu_send_barker() 163 memcpy(buffer, barker, barker_size); in __i2400mu_send_barker() 165 ret = usb_bulk_msg(i2400mu->usb_dev, pipe, buffer, barker_size, in __i2400mu_send_barker() 219 kfree(buffer); in __i2400mu_send_barker()
|
/kernel/linux/linux-5.10/drivers/scsi/arm/ |
H A D | powertec.c | 181 * Returns : pointer to a static buffer containing null terminated string. 195 /* Prototype: int powertecscsi_set_proc_info(struct Scsi_Host *host, char *buffer, int length) 198 * : buffer - buffer containing string describing operation 203 powertecscsi_set_proc_info(struct Scsi_Host *host, char *buffer, int length) in powertecscsi_set_proc_info() argument 207 if (length >= 12 && strncmp(buffer, "POWERTECSCSI", 12) == 0) { in powertecscsi_set_proc_info() 208 buffer += 12; in powertecscsi_set_proc_info() 211 if (length >= 5 && strncmp(buffer, "term=", 5) == 0) { in powertecscsi_set_proc_info() 212 if (buffer[5] == '1') in powertecscsi_set_proc_info() 214 else if (buffer[ in powertecscsi_set_proc_info() [all...] |
/kernel/linux/linux-5.10/drivers/nvme/target/ |
H A D | discovery.c | 172 void *buffer; in nvmet_execute_disc_get_log_page() local 193 * Make sure we're passing at least a buffer of response header size. in nvmet_execute_disc_get_log_page() 199 buffer = kzalloc(alloc_len, GFP_KERNEL); in nvmet_execute_disc_get_log_page() 200 if (!buffer) { in nvmet_execute_disc_get_log_page() 206 hdr = buffer; in nvmet_execute_disc_get_log_page() 236 status = nvmet_copy_to_sgl(req, 0, buffer + offset, data_len); in nvmet_execute_disc_get_log_page() 237 kfree(buffer); in nvmet_execute_disc_get_log_page()
|
/kernel/linux/linux-5.10/drivers/thunderbolt/ |
H A D | dma_port.c | 52 * @buf: Temporary buffer to store a single block 68 u64 route = tb_cfg_get_route(pkg->buffer) & ~BIT_ULL(63); in dma_port_match() 84 memcpy(req->response, pkg->buffer, req->response_size); in dma_port_copy() 88 static int dma_port_read(struct tb_ctl *ctl, void *buffer, u64 route, in dma_port_read() argument 125 memcpy(buffer, &reply.data, 4 * length); in dma_port_read() 129 static int dma_port_write(struct tb_ctl *ctl, const void *buffer, u64 route, in dma_port_write() argument 146 memcpy(&request.data, buffer, length * 4); in dma_port_write() 361 * @size: Size of the buffer 403 * @size: Size of the buffer
|
/kernel/linux/linux-5.10/drivers/usb/misc/ |
H A D | usbsevseg.c | 120 unsigned char *buffer; in update_display_visual() local 126 buffer = kzalloc(MAXLEN, mf); in update_display_visual() 127 if (!buffer) in update_display_visual() 132 buffer[i] = mydev->text[mydev->textlength-1-i]; in update_display_visual() 140 buffer, in update_display_visual() 147 kfree(buffer); in update_display_visual()
|
/kernel/linux/linux-5.10/sound/core/seq/ |
H A D | seq_memory.c | 39 * ext.data.ptr = buffer pointer 112 * expand the variable length event to linear buffer space. 495 void snd_seq_info_pool(struct snd_info_buffer *buffer, in snd_seq_info_pool() argument 500 snd_iprintf(buffer, "%sPool size : %d\n", space, pool->total_elements); in snd_seq_info_pool() 501 snd_iprintf(buffer, "%sCells in use : %d\n", space, atomic_read(&pool->counter)); in snd_seq_info_pool() 502 snd_iprintf(buffer, "%sPeak cells in use : %d\n", space, pool->max_used); in snd_seq_info_pool() 503 snd_iprintf(buffer, "%sAlloc success : %d\n", space, pool->event_alloc_success); in snd_seq_info_pool() 504 snd_iprintf(buffer, "%sAlloc failures : %d\n", space, pool->event_alloc_failures); in snd_seq_info_pool()
|