| /include/linux/ |
| D | zutil.h | 47 typedef uLong (*check_func) (uLong check, const Byte *buf, 57 #define DO1(buf,i) {s1 += buf[i]; s2 += s1;} argument 58 #define DO2(buf,i) DO1(buf,i); DO1(buf,i+1); argument 59 #define DO4(buf,i) DO2(buf,i); DO2(buf,i+2); argument 60 #define DO8(buf,i) DO4(buf,i); DO4(buf,i+4); argument 61 #define DO16(buf) DO8(buf,0); DO8(buf,8); argument 79 const Byte *buf, in zlib_adler32() argument 86 if (buf == NULL) return 1L; in zlib_adler32() 92 DO16(buf); in zlib_adler32() 93 buf += 16; in zlib_adler32() [all …]
|
| D | relay.h | 69 struct rchan_buf * __percpu *buf; /* per-cpu channel buffers */ member 101 int (*subbuf_start) (struct rchan_buf *buf, 134 struct rchan_buf *buf, 171 extern int relay_buf_full(struct rchan_buf *buf); 173 extern size_t relay_switch_subbuf(struct rchan_buf *buf, 194 struct rchan_buf *buf; in relay_write() local 197 buf = *this_cpu_ptr(chan->buf); in relay_write() 198 if (unlikely(buf->offset + length > chan->subbuf_size)) in relay_write() 199 length = relay_switch_subbuf(buf, length); in relay_write() 200 memcpy(buf->data + buf->offset, data, length); in relay_write() [all …]
|
| D | swab.h | 24 static inline void swab16_array(u16 *buf, unsigned int words) in swab16_array() argument 27 swab16s(buf); in swab16_array() 28 buf++; in swab16_array() 32 static inline void swab32_array(u32 *buf, unsigned int words) in swab32_array() argument 35 swab32s(buf); in swab32_array() 36 buf++; in swab32_array() 40 static inline void swab64_array(u64 *buf, unsigned int words) in swab64_array() argument 43 swab64s(buf); in swab64_array() 44 buf++; in swab64_array()
|
| D | hdlcdrv.h | 29 unsigned short buf[HDLCDRV_HDLCBUFFER]; member 40 static inline void hdlcdrv_add_bitbuffer(struct hdlcdrv_bitbuffer *buf, in hdlcdrv_add_bitbuffer() argument 45 new = buf->shreg & 1; in hdlcdrv_add_bitbuffer() 46 buf->shreg >>= 1; in hdlcdrv_add_bitbuffer() 47 buf->shreg |= (!!bit) << 7; in hdlcdrv_add_bitbuffer() 49 buf->buffer[buf->wr] = buf->shreg; in hdlcdrv_add_bitbuffer() 50 buf->wr = (buf->wr+1) % sizeof(buf->buffer); in hdlcdrv_add_bitbuffer() 51 buf->shreg = 0x80; in hdlcdrv_add_bitbuffer() 55 static inline void hdlcdrv_add_bitbuffer_word(struct hdlcdrv_bitbuffer *buf, in hdlcdrv_add_bitbuffer_word() argument 58 buf->buffer[buf->wr] = bits & 0xff; in hdlcdrv_add_bitbuffer_word() [all …]
|
| D | hex.h | 11 static inline char *hex_byte_pack(char *buf, u8 byte) in hex_byte_pack() argument 13 *buf++ = hex_asc_hi(byte); in hex_byte_pack() 14 *buf++ = hex_asc_lo(byte); in hex_byte_pack() 15 return buf; in hex_byte_pack() 22 static inline char *hex_byte_pack_upper(char *buf, u8 byte) in hex_byte_pack_upper() argument 24 *buf++ = hex_asc_upper_hi(byte); in hex_byte_pack_upper() 25 *buf++ = hex_asc_upper_lo(byte); in hex_byte_pack_upper() 26 return buf; in hex_byte_pack_upper()
|
| D | nvram.h | 81 static inline ssize_t nvram_read_bytes(char *buf, size_t count, loff_t *ppos) in nvram_read_bytes() argument 85 char *p = buf; in nvram_read_bytes() 92 return p - buf; in nvram_read_bytes() 95 static inline ssize_t nvram_write_bytes(char *buf, size_t count, loff_t *ppos) in nvram_write_bytes() argument 99 char *p = buf; in nvram_write_bytes() 106 return p - buf; in nvram_write_bytes() 109 static inline ssize_t nvram_read(char *buf, size_t count, loff_t *ppos) in nvram_read() argument 113 return ppc_md.nvram_read(buf, count, ppos); in nvram_read() 116 return arch_nvram_ops.read(buf, count, ppos); in nvram_read() 118 return nvram_read_bytes(buf, count, ppos); in nvram_read() [all …]
|
| D | cpu.h | 52 struct device_attribute *attr, char *buf); 54 struct device_attribute *attr, char *buf); 56 struct device_attribute *attr, char *buf); 58 struct device_attribute *attr, char *buf); 60 struct device_attribute *attr, char *buf); 62 struct device_attribute *attr, char *buf); 65 char *buf); 67 struct device_attribute *attr, char *buf); 68 extern ssize_t cpu_show_srbds(struct device *dev, struct device_attribute *attr, char *buf); 71 char *buf); [all …]
|
| D | pipe_fs_i.h | 203 struct pipe_buffer *buf) in pipe_buf_get() argument 205 return buf->ops->get(pipe, buf); in pipe_buf_get() 214 struct pipe_buffer *buf) in pipe_buf_release() argument 216 const struct pipe_buf_operations *ops = buf->ops; in pipe_buf_release() 218 buf->ops = NULL; in pipe_buf_release() 219 ops->release(pipe, buf); in pipe_buf_release() 228 struct pipe_buffer *buf) in pipe_buf_confirm() argument 230 if (!buf->ops->confirm) in pipe_buf_confirm() 232 return buf->ops->confirm(pipe, buf); in pipe_buf_confirm() 241 struct pipe_buffer *buf) in pipe_buf_try_steal() argument [all …]
|
| D | sprintf.h | 9 int num_to_str(char *buf, int size, unsigned long long num, unsigned int width); 11 __printf(2, 3) int sprintf(char *buf, const char * fmt, ...); 12 __printf(2, 0) int vsprintf(char *buf, const char *, va_list); 13 __printf(3, 4) int snprintf(char *buf, size_t size, const char *fmt, ...); 14 __printf(3, 0) int vsnprintf(char *buf, size_t size, const char *fmt, va_list args); 15 __printf(3, 4) int scnprintf(char *buf, size_t size, const char *fmt, ...); 16 __printf(3, 0) int vscnprintf(char *buf, size_t size, const char *fmt, va_list args);
|
| D | tpm.h | 89 int (*recv) (struct tpm_chip *chip, u8 *buf, size_t len); 90 int (*send) (struct tpm_chip *chip, u8 *buf, size_t len); 413 int tpm_buf_init(struct tpm_buf *buf, u16 tag, u32 ordinal); 414 void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal); 415 int tpm_buf_init_sized(struct tpm_buf *buf); 416 void tpm_buf_reset_sized(struct tpm_buf *buf); 417 void tpm_buf_destroy(struct tpm_buf *buf); 418 u32 tpm_buf_length(struct tpm_buf *buf); 419 void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length); 420 void tpm_buf_append_u8(struct tpm_buf *buf, const u8 value); [all …]
|
| D | ima.h | 19 extern int ima_file_hash(struct file *file, char *buf, size_t buf_size); 20 extern int ima_inode_hash(struct inode *inode, char *buf, size_t buf_size); 21 extern void ima_kexec_cmdline(int kernel_fd, const void *buf, int size); 24 const void *buf, size_t buf_len, 43 static inline int ima_file_hash(struct file *file, char *buf, size_t buf_size) in ima_file_hash() argument 48 static inline int ima_inode_hash(struct inode *inode, char *buf, size_t buf_size) in ima_inode_hash() argument 53 static inline void ima_kexec_cmdline(int kernel_fd, const void *buf, int size) {} in ima_kexec_cmdline() argument 57 const void *buf, size_t buf_len, in ima_measure_critical_data() argument
|
| D | bitmap-str.h | 6 int bitmap_print_to_pagebuf(bool list, char *buf, const unsigned long *maskp, int nmaskbits); 7 extern int bitmap_print_bitmask_to_buf(char *buf, const unsigned long *maskp, 9 extern int bitmap_print_list_to_buf(char *buf, const unsigned long *maskp, 11 int bitmap_parse(const char *buf, unsigned int buflen, unsigned long *dst, int nbits); 12 int bitmap_parselist(const char *buf, unsigned long *maskp, int nmaskbits);
|
| D | mei_cl_bus.h | 95 ssize_t mei_cldev_send(struct mei_cl_device *cldev, const u8 *buf, 97 ssize_t mei_cldev_send_timeout(struct mei_cl_device *cldev, const u8 *buf, 99 ssize_t mei_cldev_recv(struct mei_cl_device *cldev, u8 *buf, size_t length); 100 ssize_t mei_cldev_recv_nonblock(struct mei_cl_device *cldev, u8 *buf, 102 ssize_t mei_cldev_recv_timeout(struct mei_cl_device *cldev, u8 *buf, size_t length, 104 ssize_t mei_cldev_send_vtag(struct mei_cl_device *cldev, const u8 *buf, 106 ssize_t mei_cldev_send_vtag_timeout(struct mei_cl_device *cldev, const u8 *buf, 108 ssize_t mei_cldev_recv_vtag(struct mei_cl_device *cldev, u8 *buf, size_t length, 110 ssize_t mei_cldev_recv_nonblock_vtag(struct mei_cl_device *cldev, u8 *buf, 112 ssize_t mei_cldev_recv_vtag_timeout(struct mei_cl_device *cldev, u8 *buf, size_t length,
|
| D | virtio_pci_admin.h | 11 u8 size, u8 *buf); 13 u8 size, u8 *buf); 15 u8 size, u8 *buf); 17 u8 size, u8 *buf);
|
| /include/soc/fsl/ |
| D | bman.h | 49 static inline dma_addr_t bm_buf_addr(const struct bm_buffer *buf) in bm_buf_addr() argument 51 return be64_to_cpu(buf->data) & 0xffffffffffffLLU; in bm_buf_addr() 54 static inline u64 bm_buffer_get64(const struct bm_buffer *buf) in bm_buffer_get64() argument 56 return be64_to_cpu(buf->data) & 0xffffffffffffLLU; in bm_buffer_get64() 59 static inline void bm_buffer_set64(struct bm_buffer *buf, u64 addr) in bm_buffer_set64() argument 61 buf->hi = cpu_to_be16(upper_32_bits(addr)); in bm_buffer_set64() 62 buf->lo = cpu_to_be32(lower_32_bits(addr)); in bm_buffer_set64() 65 static inline u8 bm_buffer_get_bpid(const struct bm_buffer *buf) in bm_buffer_get_bpid() argument 67 return be16_to_cpu(buf->bpid) & 0xff; in bm_buffer_get_bpid() 70 static inline void bm_buffer_set_bpid(struct bm_buffer *buf, int bpid) in bm_buffer_set_bpid() argument [all …]
|
| /include/trace/events/ |
| D | qla.h | 18 TP_PROTO(const char *buf, 21 TP_ARGS(buf, vaf), 24 __string(buf, buf) 28 __assign_str(buf); 32 TP_printk("%s %s", __get_str(buf), __get_str(msg)) 38 TP_PROTO(const char *buf, struct va_format *vaf), 39 TP_ARGS(buf, vaf)
|
| D | siox.h | 18 __dynamic_array(u8, buf, sdevice->inbytes) 24 memcpy(__get_dynamic_array(buf), 25 smaster->buf + bufoffset, sdevice->inbytes); 30 (int)__entry->inbytes, __get_dynamic_array(buf) 45 __dynamic_array(u8, buf, sdevice->outbytes) 52 memcpy(__get_dynamic_array(buf), 53 smaster->buf + bufoffset, sdevice->outbytes); 59 (int)__entry->outbytes, __get_dynamic_array(buf)
|
| D | v4l2.h | 101 TP_PROTO(int minor, struct v4l2_buffer *buf), 103 TP_ARGS(minor, buf), 128 __entry->index = buf->index; 129 __entry->type = buf->type; 130 __entry->bytesused = buf->bytesused; 131 __entry->flags = buf->flags; 132 __entry->field = buf->field; 133 __entry->timestamp = v4l2_buffer_get_timestamp(buf); 134 __entry->timecode_type = buf->timecode.type; 135 __entry->timecode_flags = buf->timecode.flags; [all …]
|
| D | spmi.h | 16 TP_PROTO(u8 opcode, u8 sid, u16 addr, u8 len, const u8 *buf), 17 TP_ARGS(opcode, sid, addr, len, buf), 24 __dynamic_array ( u8, buf, len ) 32 memcpy(__get_dynamic_array(buf), buf, len); 38 (int)__entry->len, __get_dynamic_array(buf)) 86 TP_PROTO(u8 opcode, u8 sid, u16 addr, int ret, u8 len, const u8 *buf), 87 TP_ARGS(opcode, sid, addr, ret, len, buf), 95 __dynamic_array ( u8, buf, len ) 104 memcpy(__get_dynamic_array(buf), buf, len); 110 (int)__entry->len, __get_dynamic_array(buf))
|
| /include/net/ |
| D | if_inet6.h | 224 static inline void ipv6_eth_mc_map(const struct in6_addr *addr, char *buf) in ipv6_eth_mc_map() argument 232 buf[0]= 0x33; in ipv6_eth_mc_map() 233 buf[1]= 0x33; in ipv6_eth_mc_map() 235 memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32)); in ipv6_eth_mc_map() 238 static inline void ipv6_arcnet_mc_map(const struct in6_addr *addr, char *buf) in ipv6_arcnet_mc_map() argument 240 buf[0] = 0x00; in ipv6_arcnet_mc_map() 244 const unsigned char *broadcast, char *buf) in ipv6_ib_mc_map() argument 248 buf[0] = 0; /* Reserved */ in ipv6_ib_mc_map() 249 buf[1] = 0xff; /* Multicast QPN */ in ipv6_ib_mc_map() 250 buf[2] = 0xff; in ipv6_ib_mc_map() [all …]
|
| /include/linux/mtd/ |
| D | nand-ecc-sw-hamming.h | 36 int ecc_sw_hamming_calculate(const unsigned char *buf, unsigned int step_size, 39 const unsigned char *buf, 41 int ecc_sw_hamming_correct(unsigned char *buf, unsigned char *read_ecc, 44 int nand_ecc_sw_hamming_correct(struct nand_device *nand, unsigned char *buf, 57 static inline int ecc_sw_hamming_calculate(const unsigned char *buf, in ecc_sw_hamming_calculate() argument 65 const unsigned char *buf, in nand_ecc_sw_hamming_calculate() argument 71 static inline int ecc_sw_hamming_correct(unsigned char *buf, in ecc_sw_hamming_correct() argument 80 unsigned char *buf, in nand_ecc_sw_hamming_correct() argument
|
| D | spinand.h | 35 #define SPINAND_READID_OP(naddr, ndummy, buf, len) \ argument 39 SPI_MEM_OP_DATA_IN(len, buf, 1)) 65 #define SPINAND_PAGE_READ_FROM_CACHE_OP(fast, addr, ndummy, buf, len) \ argument 69 SPI_MEM_OP_DATA_IN(len, buf, 1)) 71 #define SPINAND_PAGE_READ_FROM_CACHE_OP_3A(fast, addr, ndummy, buf, len) \ argument 75 SPI_MEM_OP_DATA_IN(len, buf, 1)) 77 #define SPINAND_PAGE_READ_FROM_CACHE_X2_OP(addr, ndummy, buf, len) \ argument 81 SPI_MEM_OP_DATA_IN(len, buf, 2)) 83 #define SPINAND_PAGE_READ_FROM_CACHE_X2_OP_3A(addr, ndummy, buf, len) \ argument 87 SPI_MEM_OP_DATA_IN(len, buf, 2)) [all …]
|
| /include/crypto/internal/ |
| D | kdf_selftest.h | 35 u8 *buf = kzalloc(test->expectedlen, GFP_KERNEL); in kdf_test() local 37 if (!buf) in kdf_test() 44 kfree(buf); in kdf_test() 55 ret = crypto_kdf_generate(kmd, &test->info, 1, buf, test->expectedlen); in kdf_test() 61 ret = memcmp(test->expected, buf, test->expectedlen); in kdf_test() 67 kfree(buf); in kdf_test()
|
| /include/xen/ |
| D | xen-front-pgdir-shbuf.h | 81 xen_front_pgdir_shbuf_get_dir_start(struct xen_front_pgdir_shbuf *buf); 83 int xen_front_pgdir_shbuf_map(struct xen_front_pgdir_shbuf *buf); 85 int xen_front_pgdir_shbuf_unmap(struct xen_front_pgdir_shbuf *buf); 87 void xen_front_pgdir_shbuf_free(struct xen_front_pgdir_shbuf *buf);
|
| /include/crypto/ |
| D | sha256_base.h | 52 memcpy(sctx->buf + partial, data, p); in lib_sha256_base_do_update() 56 block_fn(sctx, sctx->buf, 1); in lib_sha256_base_do_update() 69 memcpy(sctx->buf + partial, data, len); in lib_sha256_base_do_update() 88 __be64 *bits = (__be64 *)(sctx->buf + bit_offset); in lib_sha256_base_do_finalize() 91 sctx->buf[partial++] = 0x80; in lib_sha256_base_do_finalize() 93 memset(sctx->buf + partial, 0x0, SHA256_BLOCK_SIZE - partial); in lib_sha256_base_do_finalize() 96 block_fn(sctx, sctx->buf, 1); in lib_sha256_base_do_finalize() 99 memset(sctx->buf + partial, 0x0, bit_offset - partial); in lib_sha256_base_do_finalize() 101 block_fn(sctx, sctx->buf, 1); in lib_sha256_base_do_finalize()
|