/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 | 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 | pipe_fs_i.h | 183 struct pipe_buffer *buf) in pipe_buf_get() argument 185 return buf->ops->get(pipe, buf); in pipe_buf_get() 194 struct pipe_buffer *buf) in pipe_buf_release() argument 196 const struct pipe_buf_operations *ops = buf->ops; in pipe_buf_release() 198 buf->ops = NULL; in pipe_buf_release() 199 ops->release(pipe, buf); in pipe_buf_release() 208 struct pipe_buffer *buf) in pipe_buf_confirm() argument 210 if (!buf->ops->confirm) in pipe_buf_confirm() 212 return buf->ops->confirm(pipe, buf); in pipe_buf_confirm() 221 struct pipe_buffer *buf) in pipe_buf_try_steal() argument [all …]
|
D | tpm.h | 72 int (*recv) (struct tpm_chip *chip, u8 *buf, size_t len); 73 int (*send) (struct tpm_chip *chip, u8 *buf, size_t len); 328 static inline void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal) in tpm_buf_reset() argument 330 struct tpm_header *head = (struct tpm_header *)buf->data; in tpm_buf_reset() 337 static inline int tpm_buf_init(struct tpm_buf *buf, u16 tag, u32 ordinal) in tpm_buf_init() argument 339 buf->data = (u8 *)__get_free_page(GFP_KERNEL); in tpm_buf_init() 340 if (!buf->data) in tpm_buf_init() 343 buf->flags = 0; in tpm_buf_init() 344 tpm_buf_reset(buf, tag, ordinal); in tpm_buf_init() 348 static inline void tpm_buf_destroy(struct tpm_buf *buf) in tpm_buf_destroy() argument [all …]
|
D | cpu.h | 51 struct device_attribute *attr, char *buf); 53 struct device_attribute *attr, char *buf); 55 struct device_attribute *attr, char *buf); 57 struct device_attribute *attr, char *buf); 59 struct device_attribute *attr, char *buf); 61 struct device_attribute *attr, char *buf); 64 char *buf); 66 struct device_attribute *attr, char *buf); 67 extern ssize_t cpu_show_srbds(struct device *dev, struct device_attribute *attr, char *buf); 70 char *buf); [all …]
|
D | ima.h | 28 extern int ima_post_load_data(char *buf, loff_t size, 32 extern int ima_post_read_file(struct file *file, void *buf, loff_t size, 36 extern int ima_file_hash(struct file *file, char *buf, size_t buf_size); 37 extern int ima_inode_hash(struct inode *inode, char *buf, size_t buf_size); 38 extern void ima_kexec_cmdline(int kernel_fd, const void *buf, int size); 41 const void *buf, size_t buf_len, 97 static inline int ima_post_load_data(char *buf, loff_t size, in ima_post_load_data() argument 110 static inline int ima_post_read_file(struct file *file, void *buf, loff_t size, in ima_post_read_file() argument 122 static inline int ima_file_hash(struct file *file, char *buf, size_t buf_size) in ima_file_hash() argument 127 static inline int ima_inode_hash(struct inode *inode, char *buf, size_t buf_size) in ima_inode_hash() argument [all …]
|
/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, 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 …]
|
D | nand-ecc-sw-bch.h | 38 const unsigned char *buf, unsigned char *code); 39 int nand_ecc_sw_bch_correct(struct nand_device *nand, unsigned char *buf, 48 const unsigned char *buf, in nand_ecc_sw_bch_calculate() argument 55 unsigned char *buf, in nand_ecc_sw_bch_correct() argument
|
/include/crypto/ |
D | sha256_base.h | 54 memcpy(sctx->buf + partial, data, p); in sha256_base_do_update() 58 block_fn(sctx, sctx->buf, 1); in sha256_base_do_update() 71 memcpy(sctx->buf + partial, data, len); in sha256_base_do_update() 81 __be64 *bits = (__be64 *)(sctx->buf + bit_offset); in sha256_base_do_finalize() 84 sctx->buf[partial++] = 0x80; in sha256_base_do_finalize() 86 memset(sctx->buf + partial, 0x0, SHA256_BLOCK_SIZE - partial); in sha256_base_do_finalize() 89 block_fn(sctx, sctx->buf, 1); in sha256_base_do_finalize() 92 memset(sctx->buf + partial, 0x0, bit_offset - partial); in sha256_base_do_finalize() 94 block_fn(sctx, sctx->buf, 1); in sha256_base_do_finalize()
|
D | drbg.h | 68 const unsigned char *buf; member 74 const unsigned char *buf, size_t len) in drbg_string_fill() argument 76 string->buf = buf; in drbg_string_fill() 97 unsigned char *buf, unsigned int buflen, 212 return crypto_rng_generate(drng, addtl->buf, addtl->len, in crypto_drbg_get_bytes_addtl() 238 crypto_rng_set_entropy(drng, test_data->testentropy->buf, in crypto_drbg_get_bytes_addtl_test() 240 return crypto_rng_generate(drng, addtl->buf, addtl->len, in crypto_drbg_get_bytes_addtl_test() 262 crypto_rng_set_entropy(drng, test_data->testentropy->buf, in crypto_drbg_reset_test() 264 return crypto_rng_reset(drng, pers->buf, pers->len); in crypto_drbg_reset_test()
|
D | dh.h | 66 int crypto_dh_encode_key(char *buf, unsigned int len, const struct dh *params); 80 int crypto_dh_decode_key(const char *buf, unsigned int len, struct dh *params); 95 int __crypto_dh_decode_key(const char *buf, unsigned int len,
|
/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/linux/sunrpc/ |
D | cache.h | 83 char *buf, int len); 246 extern void qword_addhex(char **bpp, int *lp, char *buf, int blen); 251 char buf[50]; in get_int() local 254 int len = qword_get(bpp, buf, sizeof(buf)); in get_int() 261 rv = simple_strtol(buf, &ep, 0); in get_int() 271 char buf[50]; in get_uint() local 272 int len = qword_get(bpp, buf, sizeof(buf)); in get_uint() 279 if (kstrtouint(buf, 0, anint)) in get_uint() 287 char buf[50]; in get_time() local 289 int len = qword_get(bpp, buf, sizeof(buf)); in get_time() [all …]
|
/include/media/ |
D | dvb_ringbuffer.h | 151 u8 __user *buf, size_t len); 165 u8 *buf, size_t len); 192 extern ssize_t dvb_ringbuffer_write(struct dvb_ringbuffer *rbuf, const u8 *buf, 208 const u8 __user *buf, size_t len); 219 extern ssize_t dvb_ringbuffer_pkt_write(struct dvb_ringbuffer *rbuf, u8 *buf, 241 int offset, u8 __user *buf, 258 int offset, u8 *buf, size_t len);
|