Home
last modified time | relevance | path

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

/lib/
Dcrc-t10dif.c63 __u16 crc_t10dif_update(__u16 crc, const unsigned char *buffer, size_t len) in crc_t10dif_update() argument
72 return crc_t10dif_generic(crc, buffer, len); in crc_t10dif_update()
77 err = crypto_shash_update(&desc.shash, buffer, len); in crc_t10dif_update()
86 __u16 crc_t10dif(const unsigned char *buffer, size_t len) in crc_t10dif() argument
88 return crc_t10dif_update(0, buffer, len); in crc_t10dif()
110 static int crc_t10dif_transform_show(char *buffer, const struct kernel_param *kp) in crc_t10dif_transform_show() argument
116 return sprintf(buffer, "fallback\n"); in crc_t10dif_transform_show()
120 len = snprintf(buffer, PAGE_SIZE, "%s\n", in crc_t10dif_transform_show()
Doid_registry.c130 int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize) in sprint_oid() argument
142 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40); in sprint_oid()
145 buffer += count; in sprint_oid()
163 ret += count = snprintf(buffer, bufsize, ".%lu", num); in sprint_oid()
166 buffer += count; in sprint_oid()
173 snprintf(buffer, bufsize, "(bad)"); in sprint_oid()
187 int sprint_OID(enum OID oid, char *buffer, size_t bufsize) in sprint_OID() argument
195 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 …]
Dlogic_iomem.c201 static void real_memcpy_fromio(void *buffer, const volatile void __iomem *addr, in real_memcpy_fromio() argument
207 memset(buffer, 0xff, size); in real_memcpy_fromio()
210 static void real_memcpy_toio(volatile void __iomem *addr, const void *buffer, in real_memcpy_toio() argument
276 void memcpy_fromio(void *buffer, const volatile void __iomem *addr, in memcpy_fromio() argument
280 u8 *buf = buffer; in memcpy_fromio()
284 real_memcpy_fromio(buffer, addr, size); in memcpy_fromio()
291 area->ops->copy_from(area->priv, buffer, start, size); in memcpy_fromio()
300 void memcpy_toio(volatile void __iomem *addr, const void *buffer, size_t size) in memcpy_toio() argument
303 const u8 *buf = buffer; in memcpy_toio()
307 real_memcpy_toio(addr, buffer, size); in memcpy_toio()
[all …]
Dstring_helpers.c623 char *buffer, *quoted; in kstrdup_quotable_cmdline() local
626 buffer = kmalloc(PAGE_SIZE, GFP_KERNEL); in kstrdup_quotable_cmdline()
627 if (!buffer) in kstrdup_quotable_cmdline()
630 res = get_cmdline(task, buffer, PAGE_SIZE - 1); in kstrdup_quotable_cmdline()
631 buffer[res] = '\0'; in kstrdup_quotable_cmdline()
634 while (--res >= 0 && buffer[res] == '\0') in kstrdup_quotable_cmdline()
639 if (buffer[i] == '\0') in kstrdup_quotable_cmdline()
640 buffer[i] = ' '; in kstrdup_quotable_cmdline()
643 quoted = kstrdup_quotable(buffer, gfp); in kstrdup_quotable_cmdline()
644 kfree(buffer); in kstrdup_quotable_cmdline()
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()
122 ret = bstr_printf(s->buffer + s->len, len, fmt, binary); in seq_buf_bprintf()
152 memcpy(s->buffer + s->len, str, len); in seq_buf_puts()
175 s->buffer[s->len++] = c; in seq_buf_putc()
199 memcpy(s->buffer + s->len, mem, len); in seq_buf_putmem()
327 ret = copy_to_user(ubuf, s->buffer + s->readpos, cnt);
Dlogic_pio.c269 void logic_ins##bwl(unsigned long addr, void *buffer, \
273 reads##bwl(PCI_IOBASE + addr, buffer, count); \
279 addr, buffer, sizeof(type), count); \
286 void logic_outs##bwl(unsigned long addr, const void *buffer, \
290 writes##bwl(PCI_IOBASE + addr, buffer, count); \
296 addr, buffer, sizeof(type), count); \
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()
Dcrc16.c55 u16 crc16(u16 crc, u8 const *buffer, size_t len) in crc16() argument
58 crc = crc16_byte(crc, *buffer++); in crc16()
Ddecompress_inflate.c36 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()
DKconfig673 # buffer.
DKconfig.debug518 will be able to flush the buffer cache to disk, reboot the system
1744 With remote DMA, you can monitor the printk buffer remotely using
/lib/mpi/
Dmpicoder.c38 const uint8_t *buffer = xbuffer; in mpi_read_raw_data() local
44 while (nbytes > 0 && buffer[0] == 0) { in mpi_read_raw_data()
45 buffer++; in mpi_read_raw_data()
55 nbits -= count_leading_zeros(buffer[0]) - (BITS_PER_LONG - 8); in mpi_read_raw_data()
72 a |= *buffer++; in mpi_read_raw_data()
84 const uint8_t *buffer = xbuffer; in mpi_read_from_buffer() local
90 nbits = buffer[0] << 8 | buffer[1]; in mpi_read_from_buffer()
104 val = mpi_read_raw_data(buffer + 2, nbytes); in mpi_read_from_buffer()
555 int mpi_print(enum gcry_mpi_format format, unsigned char *buffer, in mpi_print() argument
604 if (buffer && n > len) { in mpi_print()
[all …]
/lib/kunit/
Dassert.c95 char *buffer; in is_literal() local
103 buffer = kunit_kmalloc(test, len+1, gfp); in is_literal()
104 if (!buffer) in is_literal()
107 snprintf(buffer, len+1, "%lld", value); in is_literal()
108 ret = strncmp(buffer, text, len) == 0; in is_literal()
110 kunit_kfree(test, buffer); in is_literal()
Dtest.c29 char *buffer; in __kunit_fail_current_test() local
41 buffer = kunit_kmalloc(current->kunit_test, len, GFP_KERNEL); in __kunit_fail_current_test()
42 if (!buffer) in __kunit_fail_current_test()
46 vsnprintf(buffer, len, fmt, args); in __kunit_fail_current_test()
49 kunit_err(current->kunit_test, "%s:%d: %s", file, line, buffer); in __kunit_fail_current_test()
50 kunit_kfree(current->kunit_test, buffer); in __kunit_fail_current_test()
/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()