Home
last modified time | relevance | path

Searched refs:new_buf (Results 1 – 16 of 16) sorted by relevance

/Linux-v6.6/drivers/acpi/acpica/
Dexconvrt.c178 u8 *new_buf; in acpi_ex_convert_to_buffer() local
203 new_buf = return_desc->buffer.pointer; in acpi_ex_convert_to_buffer()
204 memcpy(new_buf, &obj_desc->integer.value, in acpi_ex_convert_to_buffer()
227 new_buf = return_desc->buffer.pointer; in acpi_ex_convert_to_buffer()
228 strncpy((char *)new_buf, (char *)obj_desc->string.pointer, in acpi_ex_convert_to_buffer()
377 u8 *new_buf; in acpi_ex_convert_to_string() local
424 new_buf = return_desc->buffer.pointer; in acpi_ex_convert_to_string()
430 new_buf, in acpi_ex_convert_to_string()
436 new_buf[string_length] = 0; in acpi_ex_convert_to_string()
514 new_buf = return_desc->buffer.pointer; in acpi_ex_convert_to_string()
[all …]
Dexconcat.c345 u8 *new_buf; in acpi_ex_concat_template() local
392 new_buf = return_desc->buffer.pointer; in acpi_ex_concat_template()
393 memcpy(new_buf, operand0->buffer.pointer, length0); in acpi_ex_concat_template()
394 memcpy(new_buf + length0, operand1->buffer.pointer, length1); in acpi_ex_concat_template()
398 new_buf[new_length - 1] = 0; in acpi_ex_concat_template()
399 new_buf[new_length - 2] = ACPI_RESOURCE_NAME_END_TAG | 1; in acpi_ex_concat_template()
/Linux-v6.6/tools/testing/vsock/
Dcontrol.c190 char *new_buf; in control_readln() local
192 new_buf = realloc(buf, buflen + 80); in control_readln()
193 if (!new_buf) { in control_readln()
198 buf = new_buf; in control_readln()
/Linux-v6.6/drivers/input/keyboard/
Dpinephone-keyboard.c212 u8 *new_buf = ppkb->buf[ppkb->buf_swap]; in ppkb_update() local
217 PPKB_BUF_LEN, new_buf); in ppkb_update()
223 crc = crc8(ppkb->crc_table, &new_buf[1], PPKB_COLS, CRC8_INIT_VALUE); in ppkb_update()
224 if (crc != new_buf[0]) { in ppkb_update()
225 dev_err(dev, "Bad scan data (%02x != %02x)\n", crc, new_buf[0]); in ppkb_update()
233 u8 new = new_buf[1 + col]; in ppkb_update()
/Linux-v6.6/drivers/input/touchscreen/
Dsur40.c532 struct sur40_buffer *new_buf; in sur40_process_video() local
547 new_buf = list_entry(sur40->buf_list.next, struct sur40_buffer, list); in sur40_process_video()
548 list_del(&new_buf->list); in sur40_process_video()
582 sgt = vb2_dma_sg_plane_desc(&new_buf->vb.vb2_buf, 0); in sur40_process_video()
605 new_buf->vb.vb2_buf.timestamp = ktime_get_ns(); in sur40_process_video()
606 new_buf->vb.sequence = sur40->sequence++; in sur40_process_video()
607 new_buf->vb.field = V4L2_FIELD_NONE; in sur40_process_video()
608 vb2_buffer_done(&new_buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in sur40_process_video()
613 vb2_buffer_done(&new_buf->vb.vb2_buf, VB2_BUF_STATE_ERROR); in sur40_process_video()
/Linux-v6.6/samples/v4l/
Dv4l2-pci-skeleton.c129 list_del(&new_buf->list); in skeleton_irq()
131 new_buf->vb.vb2_buf.timestamp = ktime_get_ns(); in skeleton_irq()
132 new_buf->vb.sequence = skel->sequence++; in skeleton_irq()
133 new_buf->vb.field = skel->field; in skeleton_irq()
140 vb2_buffer_done(&new_buf->vb.vb2_buf, VB2_BUF_STATE_DONE); in skeleton_irq()
/Linux-v6.6/drivers/i2c/
Di2c-atr.c143 u16 *new_buf; in i2c_atr_map_msgs() local
146 new_buf = kmalloc_array(num, sizeof(*new_buf), GFP_KERNEL); in i2c_atr_map_msgs()
147 if (!new_buf) in i2c_atr_map_msgs()
151 chan->orig_addrs = new_buf; in i2c_atr_map_msgs()
/Linux-v6.6/drivers/media/platform/qcom/camss/
Dcamss-vfe-gen1.c459 struct camss_buffer *new_buf, in vfe_buf_update_wm_on_new() argument
469 output->buf[inactive_idx] = new_buf; in vfe_buf_update_wm_on_new()
479 vfe_buf_add_pending(output, new_buf); in vfe_buf_update_wm_on_new()
487 output->buf[0] = new_buf; in vfe_buf_update_wm_on_new()
494 vfe_buf_add_pending(output, new_buf); in vfe_buf_update_wm_on_new()
502 vfe_buf_add_pending(output, new_buf); in vfe_buf_update_wm_on_new()
/Linux-v6.6/drivers/infiniband/core/
Dmad_rmpp.c416 struct ib_mad_recv_buf *new_buf) in update_seg_num() argument
420 while (new_buf && (get_seg_num(new_buf) == rmpp_recv->seg_num + 1)) { in update_seg_num()
421 rmpp_recv->cur_seg_buf = new_buf; in update_seg_num()
423 new_buf = get_next_seg(rmpp_list, new_buf); in update_seg_num()
/Linux-v6.6/drivers/fpga/
Dfpga-mgr.c217 char *new_buf, *buf = NULL; in fpga_mgr_parse_header_sg() local
228 new_buf = krealloc(buf, new_header_size, GFP_KERNEL); in fpga_mgr_parse_header_sg()
229 if (!new_buf) { in fpga_mgr_parse_header_sg()
234 buf = new_buf; in fpga_mgr_parse_header_sg()
/Linux-v6.6/drivers/net/can/softing/
Dsofting_fw.c141 uint8_t *buf = NULL, *new_buf; in softing_load_fw() local
190 new_buf = krealloc(buf, buflen, GFP_KERNEL); in softing_load_fw()
191 if (!new_buf) { in softing_load_fw()
195 buf = new_buf; in softing_load_fw()
/Linux-v6.6/drivers/hwtracing/coresight/
Dcoresight-tmc-etr.c1148 struct etr_buf *sysfs_buf = NULL, *new_buf = NULL, *free_buf = NULL; in tmc_etr_get_sysfs_buffer() local
1164 free_buf = new_buf = tmc_etr_setup_sysfs_buf(drvdata); in tmc_etr_get_sysfs_buffer()
1165 if (IS_ERR(new_buf)) in tmc_etr_get_sysfs_buffer()
1166 return new_buf; in tmc_etr_get_sysfs_buffer()
1182 if (!sysfs_buf || (new_buf && sysfs_buf->size != new_buf->size)) { in tmc_etr_get_sysfs_buffer()
1184 drvdata->sysfs_buf = new_buf; in tmc_etr_get_sysfs_buffer()
/Linux-v6.6/drivers/staging/media/meson/vdec/
Dvdec.c133 struct amvdec_buffer *new_buf; in vdec_queue_recycle() local
135 new_buf = kmalloc(sizeof(*new_buf), GFP_KERNEL); in vdec_queue_recycle()
136 if (!new_buf) in vdec_queue_recycle()
138 new_buf->vb = vb; in vdec_queue_recycle()
141 list_add_tail(&new_buf->list, &sess->bufs_recycle); in vdec_queue_recycle()
/Linux-v6.6/drivers/usb/gadget/function/
Df_hid.c616 char *new_buf = NULL; in hidg_ssreport_complete() local
628 new_buf = krealloc(hidg->set_report_buf, req->actual, GFP_ATOMIC); in hidg_ssreport_complete()
629 if (new_buf == NULL) { in hidg_ssreport_complete()
633 hidg->set_report_buf = new_buf; in hidg_ssreport_complete()
/Linux-v6.6/drivers/net/ethernet/intel/ice/
Dice_txrx.c919 struct ice_rx_buf *new_buf; in ice_reuse_rx_page() local
921 new_buf = &rx_ring->rx_buf[nta]; in ice_reuse_rx_page()
931 new_buf->dma = old_buf->dma; in ice_reuse_rx_page()
932 new_buf->page = old_buf->page; in ice_reuse_rx_page()
933 new_buf->page_offset = old_buf->page_offset; in ice_reuse_rx_page()
934 new_buf->pagecnt_bias = old_buf->pagecnt_bias; in ice_reuse_rx_page()
/Linux-v6.6/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_io.c1071 new_buf: in chtls_sendmsg()
1103 goto new_buf; in chtls_sendmsg()
1133 goto new_buf; in chtls_sendmsg()