| /linux/tools/testing/selftests/mm/ |
| H A D | hmm-tests.c | 189 struct hmm_buffer *buffer, in hmm_dmirror_cmd() argument 196 cmd.addr = (__u64)buffer->ptr; in hmm_dmirror_cmd() 197 cmd.ptr = (__u64)buffer->mirror; in hmm_dmirror_cmd() 208 buffer->cpages = cmd.cpages; in hmm_dmirror_cmd() 209 buffer->faults = cmd.faults; in hmm_dmirror_cmd() 214 static void hmm_buffer_free(struct hmm_buffer *buffer) in hmm_buffer_free() argument 216 if (buffer == NULL) in hmm_buffer_free() 219 if (buffer->ptr) { in hmm_buffer_free() 220 munmap(buffer->ptr, buffer->size); in hmm_buffer_free() 221 buffer->ptr = NULL; in hmm_buffer_free() [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/sound/hda/common/ |
| H A D | proc.c | 47 static void print_nid_array(struct snd_info_buffer *buffer, in print_nid_array() argument 58 snd_iprintf(buffer, in print_nid_array() 63 snd_iprintf(buffer, in print_nid_array() 74 static void print_nid_pcms(struct snd_info_buffer *buffer, in print_nid_pcms() argument 84 snd_iprintf(buffer, " Device: name=\"%s\", " in print_nid_pcms() 93 static void print_amp_caps(struct snd_info_buffer *buffer, in print_amp_caps() argument 100 snd_iprintf(buffer, "N/A\n"); in print_amp_caps() 103 snd_iprintf(buffer, "ofs=0x%02x, nsteps=0x%02x, stepsize=0x%02x, " in print_amp_caps() 133 static void print_amp_vals(struct snd_info_buffer *buffer, in print_amp_vals() argument 145 snd_iprintf(buffer, " ["); in print_amp_vals() 161 print_pcm_rates(struct snd_info_buffer * buffer,unsigned int pcm) print_pcm_rates() argument 177 print_pcm_bits(struct snd_info_buffer * buffer,unsigned int pcm) print_pcm_bits() argument 186 print_pcm_formats(struct snd_info_buffer * buffer,unsigned int streams) print_pcm_formats() argument 199 print_pcm_caps(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_pcm_caps() argument 304 print_pin_caps(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid,int * supports_vref) print_pin_caps() argument 400 print_pin_ctls(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid,int supports_vref) print_pin_ctls() argument 438 print_vol_knob(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_vol_knob() argument 450 print_audio_io(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid,unsigned int wid_type) print_audio_io() argument 468 print_digital_conv(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_digital_conv() argument 512 print_power_state(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_power_state() argument 553 print_unsol_cap(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_unsol_cap() argument 573 print_proc_caps(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_proc_caps() argument 598 print_conn_list(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid,unsigned int wid_type,hda_nid_t * conn,int conn_len) print_conn_list() argument 638 print_gpio(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_gpio() argument 682 print_dpmst_connections(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid,int dev_num) print_dpmst_connections() argument 714 print_device_list(struct snd_info_buffer * buffer,struct hda_codec * codec,hda_nid_t nid) print_device_list() argument 748 print_codec_core_info(struct hdac_device * codec,struct snd_info_buffer * buffer) print_codec_core_info() argument 774 print_codec_info(struct snd_info_entry * entry,struct snd_info_buffer * buffer) print_codec_info() argument [all...] |
| /linux/drivers/iio/buffer/ |
| H A D | industrialio-buffer-dmaengine.c | 18 #include <linux/iio/buffer.h> 20 #include <linux/iio/buffer-dma.h> 21 #include <linux/iio/buffer-dmaengine.h> 24 * The IIO DMAengine buffer combines the generic IIO DMA buffer infrastructure 25 * with the DMAengine framework. The generic IIO DMA buffer infrastructure is 26 * used to manage the buffer memory and implement the IIO buffer operations 28 * this results in a device independent fully functional DMA buffer 43 static struct dmaengine_buffer *iio_buffer_to_dmaengine_buffer(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() 63 iio_buffer_to_dmaengine_buffer(&queue->buffer); in iio_dmaengine_buffer_submit_block() [all …]
|
| H A D | industrialio-buffer-dma.c | 19 #include <linux/iio/buffer-dma.h> 27 * has its own memory buffer. The size of the block is the granularity at which 74 * the actual number of bytes in the buffer. Typically this will be equal to the 82 * perform a DMA transfer for the block, e.g. because the buffer was disabled 87 * It will be called when the buffer is disabled and can be used to cancel 113 iio_buffer_put(&queue->buffer); in iio_buffer_block_release() 169 return container_of(buf, struct iio_dma_buffer_queue, buffer); in iio_buffer_to_queue() 195 iio_buffer_get(&queue->buffer); in iio_dma_buffer_alloc_block() 213 if (queue->buffer.direction == IIO_BUFFER_DIRECTION_IN) in iio_dma_buffer_queue_wake() 218 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) ? \ argument 42 static int hbg_dma_map(struct hbg_buffer *buffer) in hbg_dma_map() argument 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->dir == HBG_DIR_RX) in hbg_dma_map() 61 static void hbg_dma_unmap(struct hbg_buffer *buffer) in hbg_dma_unmap() argument 63 struct hbg_priv *priv = buffer->priv; in hbg_dma_unmap() [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() 58 static void usb6fire_comm_init_buffer(u8 *buffer, u8 id, u8 request, in usb6fire_comm_init_buffer() 61 buffer[0] = 0x01; in usb6fire_comm_init_buffer() 62 buffer[2] = request; in usb6fire_comm_init_buffer() 63 buffer[3] = id; in usb6fire_comm_init_buffer() 66 buffer[1] = 0x05; /* length (starting at buffer[2]) */ in usb6fire_comm_init_buffer() 67 buffer[4] = reg; in usb6fire_comm_init_buffer() 68 buffer[ in usb6fire_comm_init_buffer() 55 usb6fire_comm_init_buffer(u8 * buffer,u8 id,u8 request,u8 reg,u8 vl,u8 vh) usb6fire_comm_init_buffer() argument 92 usb6fire_comm_send_buffer(u8 * buffer,struct usb_device * dev) usb6fire_comm_send_buffer() argument 109 u8 *buffer; usb6fire_comm_write8() local 127 u8 *buffer; usb6fire_comm_write16() local [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/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/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/kernel/trace/ |
| H A D | ring_buffer.c | 3 * Generic ring buffer 43 * The "absolute" timestamp in the buffer is only 59 bits. 75 * The ring buffer header is special. We must manually up keep it. 97 * The ring buffer is made up of a list of pages. A separate list of pages is 98 * allocated for each CPU. A writer may only write to a buffer that is 100 * from any per cpu buffer. 102 * The reader is special. For each per cpu buffer, the reader has its own 104 * page is swapped with another page in the ring buffer. 108 * again (as long as it is out of the ring buffer). 113 * |reader| RING BUFFER [all …]
|
| /linux/drivers/media/tuners/ |
| H A D | tea5767.c | 133 unsigned char *buffer) in tea5767_status_dump() argument 137 if (TEA5767_READY_FLAG_MASK & buffer[0]) in tea5767_status_dump() 142 if (TEA5767_BAND_LIMIT_MASK & buffer[0]) in tea5767_status_dump() 147 div = ((buffer[0] & 0x3f) << 8) | buffer[1]; in tea5767_status_dump() 164 buffer[0] = (div >> 8) & 0x3f; in tea5767_status_dump() 165 buffer[1] = div & 0xff; in tea5767_status_dump() 170 if (TEA5767_STEREO_MASK & buffer[2]) in tea5767_status_dump() 175 tuner_info("IF Counter = %d\n", buffer[2] & TEA5767_IF_CNTR_MASK); in tea5767_status_dump() 178 (buffer[3] & TEA5767_ADC_LEVEL_MASK) >> 4); in tea5767_status_dump() 180 tuner_info("Chip ID = %d\n", (buffer[3] & TEA5767_CHIP_ID_MASK)); in tea5767_status_dump() [all …]
|
| /linux/sound/firewire/fireworks/ |
| H A D | fireworks_proc.c | 28 proc_read_hwinfo(struct snd_info_entry *entry, struct snd_info_buffer *buffer) in proc_read_hwinfo() argument 41 snd_iprintf(buffer, "guid_hi: 0x%X\n", hwinfo->guid_hi); in proc_read_hwinfo() 42 snd_iprintf(buffer, "guid_lo: 0x%X\n", hwinfo->guid_lo); in proc_read_hwinfo() 43 snd_iprintf(buffer, "type: 0x%X\n", hwinfo->type); in proc_read_hwinfo() 44 snd_iprintf(buffer, "version: 0x%X\n", hwinfo->version); in proc_read_hwinfo() 45 snd_iprintf(buffer, "vendor_name: %s\n", hwinfo->vendor_name); in proc_read_hwinfo() 46 snd_iprintf(buffer, "model_name: %s\n", hwinfo->model_name); in proc_read_hwinfo() 48 snd_iprintf(buffer, "dsp_version: 0x%X\n", hwinfo->dsp_version); in proc_read_hwinfo() 49 snd_iprintf(buffer, "arm_version: 0x%X\n", hwinfo->arm_version); in proc_read_hwinfo() 50 snd_iprintf(buffer, "fpga_version: 0x%X\n", hwinfo->fpga_version); in proc_read_hwinfo() [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 …]
|
| /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 109 #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) argument 110 #define insw(addr, buffer, count) __insw(PCI_IOBASE + (addr), buffer, count) argument 111 #define insl(addr, buffer, count) __insl(PCI_IOBASE + (addr), buffer, count) argument [all …]
|
| /linux/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, "Node 0x%02x [Clock] wcaps 0x%x\n", nid, val); in print_clock_widget() [all …]
|
| /linux/include/linux/ |
| 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/gpu/drm/nouveau/nvkm/subdev/fault/ |
| 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, bool enable) in gv100_fault_buffer_intr() argument 78 struct nvkm_device *device = buffer->fault->subdev.device; in gv100_fault_buffer_intr() 79 const u32 intr = buffer->id ? 0x08000000 : 0x20000000; in gv100_fault_buffer_intr() [all …]
|
| H A D | tu102.c | 36 struct nvkm_fault_buffer *buffer = container_of(inth, typeof(*buffer), inth); in tu102_fault_buffer_notify() local 38 nvkm_event_ntfy(&buffer->fault->event, buffer->id, NVKM_FAULT_BUFFER_EVENT_PENDING); in tu102_fault_buffer_notify() 43 tu102_fault_buffer_intr(struct nvkm_fault_buffer *buffer, bool enable) in tu102_fault_buffer_intr() argument 46 nvkm_inth_allow(&buffer->inth); in tu102_fault_buffer_intr() 48 nvkm_inth_block(&buffer->inth); in tu102_fault_buffer_intr() 52 tu102_fault_buffer_fini(struct nvkm_fault_buffer *buffer) in tu102_fault_buffer_fini() argument 54 struct nvkm_device *device = buffer->fault->subdev.device; in tu102_fault_buffer_fini() 55 const u32 foff = buffer->id * 0x20; in tu102_fault_buffer_fini() 61 tu102_fault_buffer_init(struct nvkm_fault_buffer *buffer) in tu102_fault_buffer_init() argument 63 struct nvkm_device *device = buffer->fault->subdev.device; in tu102_fault_buffer_init() [all …]
|
| /linux/include/media/ |
| H A D | dvb_ringbuffer.h | 3 * dvb_ringbuffer.h: ring buffer implementation for the dvb driver 30 * struct dvb_ringbuffer - Describes a ring buffer used at DVB framework 37 * @queue: Wait queue used by ringbuffer clients to indicate when buffer 55 * dvb_ringbuffer_init - initialize ring buffer, lock and queue 58 * @data: pointer to the buffer where the data will be stored 59 * @len: bytes from ring buffer into @buf 65 * dvb_ringbuffer_empty - test whether buffer is empty 72 * dvb_ringbuffer_free - returns the number of free bytes in the buffer 76 * Return: number of free bytes in the buffer 81 * dvb_ringbuffer_avail - returns the number of bytes waiting in the buffer [all …]
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_cmdbuf.c | 45 * struct vmw_cmdbuf_context - Command buffer context queues 63 * struct vmw_cmdbuf_man - Command buffer manager 65 * @cur_mutex: Mutex protecting the command buffer used for incremental small 68 * main pool buffer space. 72 * @work: A struct work_struct implementeing command buffer error handling. 75 * @ctx: Array of command buffer context queues. The queues and the context 79 * @mm: Range manager for the command buffer space. Manager allocations and 81 * @cmd_space: Buffer object for the command buffer space, unless we were 83 * @map: Pointer to command buffer space. May be a mapped buffer object or 85 * @cur: Command buffer for small kernel command submissions. Protected by [all …]
|
| /linux/Documentation/userspace-api/media/v4l/ |
| H A D | buffer.rst | 10 A buffer contains data exchanged by application and driver using one of 12 planes, while the buffer structure acts as a container for the planes. 27 ``V4L2_BUF_FLAG_TSTAMP_SRC_MASK`` in :ref:`buffer-flags`. These flags 34 flags are copied from the OUTPUT video buffer to the CAPTURE video 35 buffer. 40 V4L2 exposes parameters that influence the buffer size, or the way data is 41 laid out in the buffer. Those parameters are exposed through both formats and 43 that modifies the direction in which pixels are stored in the buffer, as well 44 as the buffer size when the selected format includes padding at the end of 47 The set of information needed to interpret the content of a buffer (e.g. the [all …]
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_cksum.h | 8 * Calculate the intermediate checksum for a buffer that has the CRC field 10 * cksum_offset parameter. We do not modify the buffer during verification, 14 xfs_start_cksum_safe(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_safe() argument 20 crc = crc32c(XFS_CRC_SEED, buffer, cksum_offset); in xfs_start_cksum_safe() 26 return crc32c(crc, &buffer[cksum_offset + sizeof(__be32)], in xfs_start_cksum_safe() 31 * Fast CRC method where the buffer is modified. Callers must have exclusive 32 * access to the buffer while the calculation takes place. 35 xfs_start_cksum_update(char *buffer, size_t length, unsigned long cksum_offset) in xfs_start_cksum_update() argument 38 *(__le32 *)(buffer + cksum_offset) = 0; in xfs_start_cksum_update() 40 /* single pass CRC calculation for the entire buffer */ in xfs_start_cksum_update() [all …]
|