| /linux/tools/testing/selftests/mm/ |
| H A D | hmm-tests.c | 183 struct hmm_buffer *buffer, in hmm_dmirror_cmd() argument 190 cmd.addr = (__u64)buffer->ptr; in hmm_dmirror_cmd() 191 cmd.ptr = (__u64)buffer->mirror; in hmm_dmirror_cmd() 202 buffer->cpages = cmd.cpages; in hmm_dmirror_cmd() 203 buffer->faults = cmd.faults; in hmm_dmirror_cmd() 208 static void hmm_buffer_free(struct hmm_buffer *buffer) in hmm_buffer_free() argument 210 if (buffer == NULL) in hmm_buffer_free() 213 if (buffer->ptr) { in hmm_buffer_free() 214 munmap(buffer->ptr, buffer->size); in hmm_buffer_free() 215 buffer->ptr = NULL; in hmm_buffer_free() [all …]
|
| /linux/drivers/gpu/drm/etnaviv/ |
| H A D | etnaviv_buffer.c | 22 * Command Buffer helper: 26 static inline void OUT(struct etnaviv_cmdbuf *buffer, u32 data) in OUT() argument 28 u32 *vaddr = (u32 *)buffer->vaddr; in OUT() 30 BUG_ON(buffer->user_size >= buffer->size); in OUT() 32 vaddr[buffer->user_size / 4] = data; in OUT() 33 buffer->user_size += 4; in OUT() 36 static inline void CMD_LOAD_STATE(struct etnaviv_cmdbuf *buffer, in CMD_LOAD_STATE() argument 41 buffer->user_size = ALIGN(buffer->user_size, 8); in CMD_LOAD_STATE() 44 OUT(buffer, VIV_FE_LOAD_STATE_HEADER_OP_LOAD_STATE | in CMD_LOAD_STATE() 47 OUT(buffer, value); in CMD_LOAD_STATE() [all …]
|
| /linux/drivers/s390/char/ |
| H A D | sclp_rw.c | 35 * Setup a sclp write buffer. Gets a page as input (4K) and returns 37 * end of the input page. This reduces the buffer space by a few 43 struct sclp_buffer *buffer; in sclp_make_buffer() local 51 buffer = ((struct sclp_buffer *) ((addr_t) sccb + PAGE_SIZE)) - 1; in sclp_make_buffer() 52 buffer->sccb = sccb; in sclp_make_buffer() 53 buffer->retry_count = 0; in sclp_make_buffer() 54 buffer->messages = 0; in sclp_make_buffer() 55 buffer->char_sum = 0; in sclp_make_buffer() 56 buffer->current_line = NULL; in sclp_make_buffer() 57 buffer->current_length = 0; in sclp_make_buffer() [all …]
|
| /linux/fs/configfs/ |
| H A D | file.c | 56 static int fill_read_buffer(struct file *file, struct configfs_buffer *buffer) in fill_read_buffer() argument 61 if (!buffer->page) in fill_read_buffer() 62 buffer->page = (char *) get_zeroed_page(GFP_KERNEL); in fill_read_buffer() 63 if (!buffer->page) in fill_read_buffer() 68 count = buffer->attr->show(buffer->item, buffer->page); in fill_read_buffer() 75 buffer->needs_read_fill = 0; in fill_read_buffer() 76 buffer->count = count; in fill_read_buffer() 83 struct configfs_buffer *buffer = file->private_data; in configfs_read_iter() local 86 mutex_lock(&buffer->mutex); in configfs_read_iter() 87 if (buffer->needs_read_fill) { in configfs_read_iter() [all …]
|
| /linux/include/linux/ |
| H A D | ring_buffer.h | 24 * enum ring_buffer_type - internal ring buffer types 66 u64 ring_buffer_event_time_stamp(struct trace_buffer *buffer, 73 * will try to remove the event from the ring buffer completely 79 * ring_buffer_discard_commit(buffer, event); 81 * ring_buffer_unlock_commit(buffer, event); 83 void ring_buffer_discard_commit(struct trace_buffer *buffer, 87 * size is in bytes for each per CPU buffer. 98 void *ring_buffer_meta_scratch(struct trace_buffer *buffer, unsigned int *size); 101 * Because the ring buffer is generic, if other users of the ring buffer get 103 * ring buffer's lock class separate. [all …]
|
| H A D | relay.h | 32 * Relay buffer statistics 43 unsigned int full_count; /* counter for buffer full */ 48 * Per-cpu relay channel buffer 52 void *start; /* start of channel buffer */ 53 void *data; /* start of current sub-buffer */ 54 size_t offset; /* current offset into sub-buffer */ 61 struct kref kref; /* channel buffer refcount */ 62 struct rchan_buf_stats stats; /* buffer stats */ 63 struct page **page_array; /* array of current buffer pages */ 64 unsigned int page_count; /* number of current buffer pages */ [all …]
|
| /linux/drivers/android/ |
| H A D | binder_alloc.c | 51 static struct binder_buffer *binder_buffer_next(struct binder_buffer *buffer) in binder_buffer_next() argument 53 return list_entry(buffer->entry.next, struct binder_buffer, entry); in binder_buffer_next() 56 static struct binder_buffer *binder_buffer_prev(struct binder_buffer *buffer) in binder_buffer_prev() argument 58 return list_entry(buffer->entry.prev, struct binder_buffer, entry); in binder_buffer_prev() 62 struct binder_buffer *buffer) in binder_alloc_buffer_size() argument 64 if (list_is_last(&buffer->entry, &alloc->buffers)) in binder_alloc_buffer_size() 65 return alloc->vm_start + alloc->buffer_size - buffer->user_data; in binder_alloc_buffer_size() 66 return binder_buffer_next(buffer)->user_data - buffer->user_data; in binder_alloc_buffer_size() 75 struct binder_buffer *buffer; in binder_insert_free_buffer() local 84 "%d: add free buffer, size %zd, at %pK\n", in binder_insert_free_buffer() [all …]
|
| /linux/include/linux/iio/ |
| H A D | buffer_impl.h | 9 #include <uapi/linux/iio/buffer.h> 10 #include <linux/iio/buffer.h> 20 * INDIO_BUFFER_FLAG_FIXED_WATERMARK - Watermark level of the buffer can not be 21 * configured. It has a fixed value which will be buffer specific. 27 * @store_to: actually store stuff to the buffer 30 * the buffer. 31 * @remove_from: remove scan from buffer. Drivers should calls this to 32 * remove a scan from a buffer. 34 * @space_available: returns the amount of bytes available in a buffer 38 * @set_length: set number of datums in buffer [all …]
|
| /linux/drivers/iio/ |
| H A D | industrialio-buffer.c | 6 * Handling of buffer allocation / resizing. 34 #include <linux/iio/buffer.h> 45 struct iio_buffer *buffer; member 99 /* drain the buffer if it was disabled */ in iio_buffer_ready() 128 * iio_buffer_read() - chrdev read for buffer access 130 * @buf: Destination buffer for iio buffer read 134 * This function relies on all buffer implementations having an 144 struct iio_buffer *rb = ib->buffer; in iio_buffer_read() 164 * buffer, so signal end of file now. in iio_buffer_read() 213 struct iio_buffer *rb = ib->buffer; in iio_buffer_write() [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_client.c | 33 * GEM drivers which provide a GEM based dumb buffer with a virtual address are supported. 159 * is fbdev which cannot free the buffer if userspace has open file descriptors. 182 * drm_client_buffer_delete - Delete a client buffer 183 * @buffer: DRM client buffer 185 void drm_client_buffer_delete(struct drm_client_buffer *buffer) in drm_client_buffer_delete() argument 190 if (!buffer) in drm_client_buffer_delete() 193 gem = buffer->fb->obj[0]; in drm_client_buffer_delete() 194 drm_gem_vunmap(gem, &buffer->map); in drm_client_buffer_delete() 196 ret = drm_mode_rmfb(buffer->client->dev, buffer->fb->base.id, buffer->client->file); in drm_client_buffer_delete() 198 drm_err(buffer->client->dev, in drm_client_buffer_delete() [all …]
|
| /linux/drivers/iio/buffer/ |
| H A D | industrialio-buffer-dmaengine.c | 17 #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() argument 45 return container_of(buffer, struct dmaengine_buffer, queue.buffer); in iio_buffer_to_dmaengine_buffer() 65 iio_buffer_to_dmaengine_buffer(&queue->buffer); in iio_dmaengine_buffer_submit_block() [all …]
|
| H A D | industrialio-buffer-dma.c | 18 #include <linux/iio/buffer-dma.h> 26 * has its own memory buffer. The size of the block is the granularity at which 73 * the actual number of bytes in the buffer. Typically this will be equal to the 81 * perform a DMA transfer for the block, e.g. because the buffer was disabled 86 * It will be called when the buffer is disabled and can be used to cancel 112 iio_buffer_put(&queue->buffer); in iio_buffer_block_release() 171 return container_of(buf, struct iio_dma_buffer_queue, buffer); in iio_buffer_to_queue() 199 iio_buffer_get(&queue->buffer); in iio_dma_buffer_alloc_block() 217 if (queue->buffer.direction == IIO_BUFFER_DIRECTION_IN) in iio_dma_buffer_queue_wake() 222 wake_up_interruptible_poll(&queue->buffer.pollq, flags); in iio_dma_buffer_queue_wake() [all …]
|
| /linux/drivers/pnp/ |
| H A D | interface.c | 26 char *buffer; /* pointer to begin of buffer */ member 27 char *curr; /* current position in buffer */ 29 unsigned long len; /* total length of buffer */ 37 static int pnp_printf(pnp_info_buffer_t * buffer, char *fmt, ...) in pnp_printf() argument 42 if (buffer->stop || buffer->error) in pnp_printf() 45 res = vsnprintf(buffer->curr, buffer->len - buffer->size, fmt, args); in pnp_printf() 47 if (buffer->size + res >= buffer->len) { in pnp_printf() 48 buffer->stop = 1; in pnp_printf() 51 buffer->curr += res; in pnp_printf() 52 buffer->size += res; in pnp_printf() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | port_buffer.c | 41 void *buffer; in mlx5e_port_query_buffer() local 55 buffer = MLX5_ADDR_OF(pbmc_reg, out, buffer[i]); in mlx5e_port_query_buffer() 56 port_buffer->buffer[i].lossy = in mlx5e_port_query_buffer() 57 MLX5_GET(bufferx_reg, buffer, lossy); in mlx5e_port_query_buffer() 58 port_buffer->buffer[i].epsb = in mlx5e_port_query_buffer() 59 MLX5_GET(bufferx_reg, buffer, epsb); in mlx5e_port_query_buffer() 60 port_buffer->buffer[i].size = in mlx5e_port_query_buffer() 61 MLX5_GET(bufferx_reg, buffer, size) * port_buff_cell_sz; in mlx5e_port_query_buffer() 62 port_buffer->buffer[i].xon = in mlx5e_port_query_buffer() 63 MLX5_GET(bufferx_reg, buffer, xon_threshold) * port_buff_cell_sz; in mlx5e_port_query_buffer() [all …]
|
| /linux/drivers/net/ethernet/hisilicon/hibmcge/ |
| H A D | hbg_txrx.c | 16 #define buffer_to_dma_dir(buffer) (((buffer)->dir == HBG_DIR_RX) ? \ 42 static int hbg_dma_map(struct hbg_buffer *buffer) in hbg_dma_map() 44 struct hbg_priv *priv = buffer->priv; in hbg_dma_map() 46 buffer->skb_dma = dma_map_single(&priv->pdev->dev, in hbg_dma_map() 47 buffer->skb->data, buffer->skb_len, in hbg_dma_map() 48 buffer_to_dma_dir(buffer)); in hbg_dma_map() 49 if (unlikely(dma_mapping_error(&priv->pdev->dev, buffer->skb_dma))) { in hbg_dma_map() 50 if (buffer in hbg_dma_map() 13 buffer_to_dma_dir(buffer) global() argument 34 hbg_dma_map(struct hbg_buffer * buffer) hbg_dma_map() argument 53 hbg_dma_unmap(struct hbg_buffer * buffer) hbg_dma_unmap() argument 65 hbg_init_tx_desc(struct hbg_buffer * buffer,struct hbg_tx_desc * tx_desc) hbg_init_tx_desc() argument 93 struct hbg_buffer *buffer; hbg_net_start_xmit() local 129 hbg_buffer_free_skb(struct hbg_buffer * buffer) hbg_buffer_free_skb() argument 138 hbg_buffer_alloc_skb(struct hbg_buffer * buffer) hbg_buffer_alloc_skb() argument 152 hbg_buffer_free(struct hbg_buffer * buffer) hbg_buffer_free() argument 166 struct hbg_buffer *buffer; hbg_napi_tx_recycle() local 374 struct hbg_buffer *buffer; hbg_rx_fill_one_buffer() local 397 hbg_sync_data_from_hw(struct hbg_priv * priv,struct hbg_buffer * buffer) hbg_sync_data_from_hw() argument 416 struct hbg_buffer *buffer; hbg_napi_rx_poll() local 463 struct hbg_buffer *buffer; hbg_ring_uninit() local 492 struct hbg_buffer *buffer; hbg_ring_init() local [all...] |
| /linux/sound/usb/6fire/ |
| H A D | comm.c | 22 u8 *buffer, void *context, void(*handler)(struct urb *urb)) in usb6fire_comm_init_urb() argument 25 urb->transfer_buffer = buffer; in usb6fire_comm_init_urb() 55 static void usb6fire_comm_init_buffer(u8 *buffer, u8 id, u8 request, in usb6fire_comm_init_buffer() argument 58 buffer[0] = 0x01; in usb6fire_comm_init_buffer() 59 buffer[2] = request; in usb6fire_comm_init_buffer() 60 buffer[3] = id; in usb6fire_comm_init_buffer() 63 buffer[1] = 0x05; /* length (starting at buffer[2]) */ in usb6fire_comm_init_buffer() 64 buffer[4] = reg; in usb6fire_comm_init_buffer() 65 buffer[5] = vl; in usb6fire_comm_init_buffer() 66 buffer[6] = vh; in usb6fire_comm_init_buffer() [all …]
|
| /linux/tools/wmi/ |
| H A D | dell-smbios-example.c | 32 static void show_buffer(struct dell_wmi_smbios_buffer *buffer) in show_buffer() argument 35 buffer->std.cmd_class, buffer->std.cmd_select, in show_buffer() 36 buffer->std.input[0], buffer->std.input[1], in show_buffer() 37 buffer->std.input[2], buffer->std.input[3], in show_buffer() 38 buffer->std.output[0], buffer->std.output[1], in show_buffer() 39 buffer->std.output[2], buffer->std.output[3]); in show_buffer() 42 static int run_wmi_smbios_cmd(struct dell_wmi_smbios_buffer *buffer) in run_wmi_smbios_cmd() argument 48 ret = ioctl(fd, DELL_WMI_SMBIOS_CMD, buffer); in run_wmi_smbios_cmd() 95 struct dell_wmi_smbios_buffer *buffer) in token_is_active() argument 99 buffer->std.cmd_class = CLASS_TOKEN_READ; in token_is_active() [all …]
|
| /linux/drivers/acpi/acpica/ |
| H A D | exstorob.c | 26 * DESCRIPTION: Copy a buffer object to another buffer object. 34 u8 *buffer; in acpi_ex_store_buffer_to_buffer() local 44 /* We know that source_desc is a buffer by now */ in acpi_ex_store_buffer_to_buffer() 46 buffer = ACPI_CAST_PTR(u8, source_desc->buffer.pointer); in acpi_ex_store_buffer_to_buffer() 47 length = source_desc->buffer.length; in acpi_ex_store_buffer_to_buffer() 50 * If target is a buffer of length zero or is a static buffer, in acpi_ex_store_buffer_to_buffer() 51 * allocate a new buffer of the proper length in acpi_ex_store_buffer_to_buffer() 53 if ((target_desc->buffer.length == 0) || in acpi_ex_store_buffer_to_buffer() 55 target_desc->buffer.pointer = ACPI_ALLOCATE(length); in acpi_ex_store_buffer_to_buffer() 56 if (!target_desc->buffer.pointer) { in acpi_ex_store_buffer_to_buffer() [all …]
|
| /linux/kernel/trace/ |
| H A D | ring_buffer.c | 3 * Generic ring buffer 39 * The "absolute" timestamp in the buffer is only 59 bits. 67 * The ring buffer header is special. We must manually up keep it. 89 * The ring buffer is made up of a list of pages. A separate list of pages is 90 * allocated for each CPU. A writer may only write to a buffer that is 92 * from any per cpu buffer. 94 * The reader is special. For each per cpu buffer, the reader has its own 96 * page is swapped with another page in the ring buffer. 100 * again (as long as it is out of the ring buffer). 105 * |reader| RING BUFFER [all …]
|
| /linux/sound/firewire/dice/ |
| H A D | dice-proc.c | 11 static int dice_proc_read_mem(struct snd_dice *dice, void *buffer, in dice_proc_read_mem() argument 19 buffer, 4 * quadlets, 0); in dice_proc_read_mem() 24 be32_to_cpus(&((u32 *)buffer)[i]); in dice_proc_read_mem() 57 struct snd_info_buffer *buffer) in dice_proc_read() argument 119 snd_iprintf(buffer, "sections:\n"); in dice_proc_read() 121 snd_iprintf(buffer, " %s: offset %u, size %u\n", in dice_proc_read() 128 snd_iprintf(buffer, "global:\n"); in dice_proc_read() 129 snd_iprintf(buffer, " owner: %04x:%04x%08x\n", in dice_proc_read() 132 snd_iprintf(buffer, " notification: %08x\n", buf.global.notification); in dice_proc_read() 134 snd_iprintf(buffer, " nick name: %s\n", buf.global.nick_name); in dice_proc_read() [all …]
|
| /linux/drivers/dma-buf/heaps/ |
| H A D | system_heap.c | 76 struct system_heap_buffer *buffer = dmabuf->priv; in system_heap_attach() local 84 ret = dup_sg_table(&buffer->sg_table, &a->table); in system_heap_attach() 96 mutex_lock(&buffer->lock); in system_heap_attach() 97 list_add(&a->list, &buffer->attachments); in system_heap_attach() 98 mutex_unlock(&buffer->lock); in system_heap_attach() 106 struct system_heap_buffer *buffer = dmabuf->priv; in system_heap_detach() local 109 mutex_lock(&buffer->lock); in system_heap_detach() 111 mutex_unlock(&buffer->lock); in system_heap_detach() 145 struct system_heap_buffer *buffer = dmabuf->priv; in system_heap_dma_buf_begin_cpu_access() local 148 mutex_lock(&buffer->lock); in system_heap_dma_buf_begin_cpu_access() [all …]
|
| /linux/Documentation/core-api/ |
| H A D | circular-buffers.rst | 16 buffer don't want to share a lock. 25 (*) What is a circular buffer? 35 What is a circular buffer? 38 First of all, what is a circular buffer? A circular buffer is a buffer of 42 buffer. 45 the buffer. 47 Typically when the tail pointer is equal to the head pointer, the buffer is 48 empty; and the buffer is full when the head pointer is one less than the tail 53 indices should be wrapped to 0 when they reach the end of the buffer, thus 54 allowing an infinite amount of data to flow through the buffer. [all …]
|
| /linux/drivers/s390/net/ |
| H A D | qeth_core_mpc.h | 18 #define QETH_IPA_PDU_LEN_TOTAL(buffer) (buffer + 0x0e) argument 19 #define QETH_IPA_PDU_LEN_PDU1(buffer) (buffer + 0x26) argument 20 #define QETH_IPA_PDU_LEN_PDU2(buffer) (buffer + 0x29) argument 21 #define QETH_IPA_PDU_LEN_PDU3(buffer) (buffer + 0x3a) argument 23 #define QETH_IPA_CMD_DEST_ADDR(buffer) (buffer argument 523 char *buffer; global() member 877 QETH_CM_ENABLE_ISSUER_RM_TOKEN(buffer) global() argument 878 QETH_CM_ENABLE_FILTER_TOKEN(buffer) global() argument 879 QETH_CM_ENABLE_USER_DATA(buffer) global() argument 881 QETH_CM_ENABLE_RESP_FILTER_TOKEN(buffer) global() argument 887 QETH_CM_SETUP_DEST_ADDR(buffer) global() argument 888 QETH_CM_SETUP_CONNECTION_TOKEN(buffer) global() argument 889 QETH_CM_SETUP_FILTER_TOKEN(buffer) global() argument 891 QETH_CM_SETUP_RESP_DEST_ADDR(buffer) global() argument 896 QETH_ULP_ENABLE_LINKNUM(buffer) global() argument 897 QETH_ULP_ENABLE_DEST_ADDR(buffer) global() argument 898 QETH_ULP_ENABLE_FILTER_TOKEN(buffer) global() argument 899 QETH_ULP_ENABLE_PORTNAME_AND_LL(buffer) global() argument 900 QETH_ULP_ENABLE_RESP_FILTER_TOKEN(buffer) global() argument 902 QETH_ULP_ENABLE_RESP_MAX_MTU(buffer) global() argument 904 QETH_ULP_ENABLE_RESP_DIFINFO_LEN(buffer) global() argument 906 QETH_ULP_ENABLE_RESP_LINK_TYPE(buffer) global() argument 911 QETH_ULP_ENABLE_PROT_TYPE(buffer) global() argument 912 QETH_IPA_CMD_PROT_TYPE(buffer) global() argument 916 QETH_ULP_SETUP_DEST_ADDR(buffer) global() argument 917 QETH_ULP_SETUP_CONNECTION_TOKEN(buffer) global() argument 918 QETH_ULP_SETUP_FILTER_TOKEN(buffer) global() argument 919 QETH_ULP_SETUP_CUA(buffer) global() argument 920 QETH_ULP_SETUP_REAL_DEVADDR(buffer) global() argument 922 QETH_ULP_SETUP_RESP_CONNECTION_TOKEN(buffer) global() argument 928 QETH_DM_ACT_DEST_ADDR(buffer) global() argument 929 QETH_DM_ACT_CONNECTION_TOKEN(buffer) global() argument 933 QETH_TRANSPORT_HEADER_SEQ_NO(buffer) global() argument 934 QETH_PDU_HEADER_SEQ_NO(buffer) global() argument 935 QETH_PDU_HEADER_ACK_SEQ_NO(buffer) global() argument 940 QETH_IDX_ACT_PNO(buffer) global() argument 941 QETH_IDX_ACT_ISSUER_RM_TOKEN(buffer) global() argument 943 QETH_IDX_NO_PORTNAME_REQUIRED(buffer) global() argument 944 QETH_IDX_ACT_FUNC_LEVEL(buffer) global() argument 945 QETH_IDX_ACT_DATASET_NAME(buffer) global() argument 946 QETH_IDX_ACT_QDIO_DEV_CUA(buffer) global() argument 947 QETH_IDX_ACT_QDIO_DEV_REALADDR(buffer) global() argument 948 QETH_IS_IDX_ACT_POS_REPLY(buffer) global() argument 949 QETH_IDX_REPLY_LEVEL(buffer) global() argument 950 QETH_IDX_ACT_CAUSE_CODE(buffer) global() argument 960 PDU_ENCAPSULATION(buffer) global() argument 964 IS_IPA(buffer) global() argument [all...] |
| /linux/arch/riscv/include/asm/ |
| H A D | io.h | 67 void *buffer, \ 72 ctype *buf = buffer; \ 84 const void *buffer, \ 89 const ctype *buf = buffer; \ 101 #define readsb(addr, buffer, count) __readsb(addr, buffer, count) argument 102 #define readsw(addr, buffer, count) __readsw(addr, buffer, count) argument 103 #define readsl(addr, buffer, count) __readsl(addr, buffer, count) argument 108 #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) argument 109 #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) argument 110 #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) argument [all …]
|
| /linux/drivers/platform/surface/aggregator/ |
| H A D | ssh_parser.h | 19 * struct sshp_buf - Parser buffer for SSH messages. 20 * @ptr: Pointer to the beginning of the buffer. 21 * @len: Number of bytes used in the buffer. 22 * @cap: Maximum capacity of the buffer. 31 * sshp_buf_init() - Initialize a SSH parser buffer. 32 * @buf: The buffer to initialize. 33 * @ptr: The memory backing the buffer. 34 * @cap: The length of the memory backing the buffer, i.e. its capacity. 36 * Initializes the buffer with the given memory as backing and set its used 47 * sshp_buf_alloc() - Allocate and initialize a SSH parser buffer. [all …]
|