Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 18 of 18) sorted by relevance

/lib/
Dcrc-t10dif.c57 __u16 crc_t10dif_update(__u16 crc, const unsigned char *buffer, size_t len) in crc_t10dif_update() argument
66 return crc_t10dif_generic(crc, buffer, len); in crc_t10dif_update()
72 err = crypto_shash_update(&desc.shash, buffer, len); in crc_t10dif_update()
81 __u16 crc_t10dif(const unsigned char *buffer, size_t len) in crc_t10dif() argument
83 return crc_t10dif_update(0, buffer, len); in crc_t10dif()
107 static int crc_t10dif_transform_show(char *buffer, const struct kernel_param *kp) in crc_t10dif_transform_show() argument
110 return sprintf(buffer, "fallback\n"); in crc_t10dif_transform_show()
112 return sprintf(buffer, "%s\n", in crc_t10dif_transform_show()
Doid_registry.c106 int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize) in sprint_oid() argument
118 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40); in sprint_oid()
121 buffer += count; in sprint_oid()
139 ret += count = snprintf(buffer, bufsize, ".%lu", num); in sprint_oid()
142 buffer += count; in sprint_oid()
149 snprintf(buffer, bufsize, "(bad)"); in sprint_oid()
163 int sprint_OID(enum OID oid, char *buffer, size_t bufsize) in sprint_OID() argument
171 buffer, bufsize); in sprint_OID()
Dcrc-ccitt.c99 u16 crc_ccitt(u16 crc, u8 const *buffer, size_t len) in crc_ccitt() argument
102 crc = crc_ccitt_byte(crc, *buffer++); in crc_ccitt()
114 u16 crc_ccitt_false(u16 crc, u8 const *buffer, size_t len) in crc_ccitt_false() argument
117 crc = crc_ccitt_false_byte(crc, *buffer++); in crc_ccitt_false()
Ddecompress_unlzma.c70 uint8_t *buffer; member
85 static long INIT nofill(void *buffer, unsigned long len) in nofill() argument
93 rc->buffer_size = rc->fill((char *)rc->buffer, LZMA_IOBUF_SIZE); in rc_read()
96 rc->ptr = rc->buffer; in rc_read()
97 rc->buffer_end = rc->buffer + rc->buffer_size; in rc_read()
103 char *buffer, long buffer_size) in rc_init() argument
109 rc->buffer = (uint8_t *)buffer; in rc_init()
111 rc->buffer_end = rc->buffer + rc->buffer_size; in rc_init()
112 rc->ptr = rc->buffer; in rc_init()
278 uint8_t *buffer; member
[all …]
Dseq_buf.c44 return seq_write(m, s->buffer, len); in seq_buf_print_seq()
64 len = vsnprintf(s->buffer + s->len, s->size - s->len, fmt, args); in seq_buf_vprintf()
121 ret = bstr_printf(s->buffer + s->len, len, fmt, binary); in seq_buf_bprintf()
151 memcpy(s->buffer + s->len, str, len); in seq_buf_puts()
174 s->buffer[s->len++] = c; in seq_buf_putc()
198 memcpy(s->buffer + s->len, mem, len); in seq_buf_putmem()
322 ret = copy_to_user(ubuf, s->buffer + s->readpos, cnt);
Dstring_helpers.c599 char *buffer, *quoted; in kstrdup_quotable_cmdline() local
602 buffer = kmalloc(PAGE_SIZE, GFP_KERNEL); in kstrdup_quotable_cmdline()
603 if (!buffer) in kstrdup_quotable_cmdline()
606 res = get_cmdline(task, buffer, PAGE_SIZE - 1); in kstrdup_quotable_cmdline()
607 buffer[res] = '\0'; in kstrdup_quotable_cmdline()
610 while (--res >= 0 && buffer[res] == '\0') in kstrdup_quotable_cmdline()
615 if (buffer[i] == '\0') in kstrdup_quotable_cmdline()
616 buffer[i] = ' '; in kstrdup_quotable_cmdline()
619 quoted = kstrdup_quotable(buffer, gfp); in kstrdup_quotable_cmdline()
620 kfree(buffer); in kstrdup_quotable_cmdline()
Dcrc16.c55 u16 crc16(u16 crc, u8 const *buffer, size_t len) in crc16() argument
58 crc = crc16_byte(crc, *buffer++); in crc16()
Dcrc7.c65 u8 crc7_be(u8 crc, const u8 *buffer, size_t len) in crc7_be() argument
68 crc = crc7_be_byte(crc, *buffer++); in crc7_be()
Dcrc-itu-t.c57 u16 crc_itu_t(u16 crc, const u8 *buffer, size_t len) in crc_itu_t() argument
60 crc = crc_itu_t_byte(crc, *buffer++); in crc_itu_t()
Dlogic_pio.c264 void logic_ins##bw(unsigned long addr, void *buffer, \
268 reads##bw(PCI_IOBASE + addr, buffer, count); \
274 addr, buffer, sizeof(type), count); \
281 void logic_outs##bw(unsigned long addr, const void *buffer, \
285 writes##bw(PCI_IOBASE + addr, buffer, count); \
291 addr, buffer, sizeof(type), count); \
Ddecompress_inflate.c32 static long INIT nofill(void *buffer, unsigned long len) in nofill() argument
Dkfifo.c66 int __kfifo_init(struct __kfifo *fifo, void *buffer, in __kfifo_init() argument
77 fifo->data = buffer; in __kfifo_init()
DKconfig.debug410 will be able to flush the buffer cache to disk, reboot the system
1648 With remote DMA, you can monitor the printk buffer remotely using
/lib/mpi/
Dmpicoder.c37 const uint8_t *buffer = xbuffer; in mpi_read_raw_data() local
43 while (nbytes > 0 && buffer[0] == 0) { in mpi_read_raw_data()
44 buffer++; in mpi_read_raw_data()
54 nbits -= count_leading_zeros(buffer[0]) - (BITS_PER_LONG - 8); in mpi_read_raw_data()
71 a |= *buffer++; in mpi_read_raw_data()
83 const uint8_t *buffer = xbuffer; in mpi_read_from_buffer() local
89 nbits = buffer[0] << 8 | buffer[1]; in mpi_read_from_buffer()
103 val = mpi_read_raw_data(buffer + 2, nbytes); in mpi_read_from_buffer()
/lib/fonts/
DKconfig16 your frame buffer console usually use.
29 This is the "high resolution" font for the VGA frame buffer (the one
35 Given the resolution provided by the frame buffer device, answer N
42 This is the "high resolution" font for the VGA frame buffer (the one
/lib/zstd/
Dfse_compress.c301 size_t FSE_writeNCount(void *buffer, size_t bufferSize, const short *normalizedCounter, unsigned ma… in FSE_writeNCount() argument
309 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
311 return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1); in FSE_writeNCount()
Dfse.h118 FSE_PUBLIC_API size_t FSE_writeNCount(void *buffer, size_t bufferSize, const short *normalizedCount…
Ddecompress.c172 unsigned ZSTD_isFrame(const void *buffer, size_t size) in ZSTD_isFrame() argument
177 U32 const magic = ZSTD_readLE32(buffer); in ZSTD_isFrame()