/linux-6.1.9/tools/lib/traceevent/ |
D | kbuffer.h | 29 struct kbuffer; 31 struct kbuffer *kbuffer_alloc(enum kbuffer_long_size size, enum kbuffer_endian endian); 32 void kbuffer_free(struct kbuffer *kbuf); 33 int kbuffer_load_subbuffer(struct kbuffer *kbuf, void *subbuffer); 34 void *kbuffer_read_event(struct kbuffer *kbuf, unsigned long long *ts); 35 void *kbuffer_next_event(struct kbuffer *kbuf, unsigned long long *ts); 36 unsigned long long kbuffer_timestamp(struct kbuffer *kbuf); 37 unsigned long long kbuffer_subbuf_timestamp(struct kbuffer *kbuf, void *subbuf); 38 unsigned int kbuffer_ptr_delta(struct kbuffer *kbuf, void *ptr); 42 void *kbuffer_read_at_offset(struct kbuffer *kbuf, int offset, unsigned long long *ts); [all …]
|
D | kbuffer-parse.c | 43 struct kbuffer { struct 57 unsigned long long (*read_long)(struct kbuffer *kbuf, void *ptr); argument 58 int (*next_event)(struct kbuffer *kbuf); argument 75 static int do_swap(struct kbuffer *kbuf) in do_swap() 125 static unsigned long long read_8(struct kbuffer *kbuf, void *ptr) in read_8() 130 static unsigned int read_4(struct kbuffer *kbuf, void *ptr) in read_4() 135 static unsigned long long __read_long_8(struct kbuffer *kbuf, void *ptr) in __read_long_8() 140 static unsigned long long __read_long_4(struct kbuffer *kbuf, void *ptr) in __read_long_4() 145 static unsigned long long read_long(struct kbuffer *kbuf, void *ptr) in read_long() 150 static int calc_index(struct kbuffer *kbuf, void *ptr) in calc_index() [all …]
|
D | Build | 6 libtraceevent-y += kbuffer-parse.o
|
D | Makefile | 241 $(call do_install,kbuffer.h,$(includedir_SQ),644)
|
/linux-6.1.9/drivers/char/ipmi/ |
D | bt-bmc.c | 181 u8 kbuffer[BT_BMC_BUFFER_SIZE]; in bt_bmc_read() local 206 kbuffer[0] = bt_read(bt_bmc); in bt_bmc_read() 207 len = kbuffer[0]; in bt_bmc_read() 214 nread = min_t(ssize_t, len, sizeof(kbuffer) - len_byte); in bt_bmc_read() 216 bt_readn(bt_bmc, kbuffer + len_byte, nread); in bt_bmc_read() 218 if (copy_to_user(buf, kbuffer, nread + len_byte)) { in bt_bmc_read() 245 u8 kbuffer[BT_BMC_BUFFER_SIZE]; in bt_bmc_write() local 277 nwritten = min_t(ssize_t, count, sizeof(kbuffer)); in bt_bmc_write() 278 if (copy_from_user(&kbuffer, buf, nwritten)) { in bt_bmc_write() 283 bt_writen(bt_bmc, kbuffer, nwritten); in bt_bmc_write()
|
D | kcs_bmc_cdev_ipmi.c | 89 u8 *kbuffer; member 338 memcpy(priv->kbuffer, priv->data_in, data_len); in kcs_bmc_ipmi_read() 359 if (copy_to_user(buf, priv->kbuffer, data_len)) { in kcs_bmc_ipmi_read() 394 if (copy_from_user(priv->kbuffer, buf, count)) { in kcs_bmc_ipmi_write() 404 memcpy(priv->data_out, priv->kbuffer, count); in kcs_bmc_ipmi_write() 490 priv->kbuffer = devm_kmalloc(kcs_bmc->dev, KCS_MSG_BUFSIZ, GFP_KERNEL); in kcs_bmc_ipmi_add_device() 495 if (!priv->data_in || !priv->data_out || !priv->kbuffer || !priv->miscdev.name) in kcs_bmc_ipmi_add_device() 534 devm_kfree(kcs_bmc->dev, priv->kbuffer); in kcs_bmc_ipmi_remove_device()
|
/linux-6.1.9/drivers/char/ |
D | ppdev.c | 120 char *kbuffer; in pp_read() local 135 kbuffer = kmalloc(min_t(size_t, count, PP_BUFFER_SIZE), GFP_KERNEL); in pp_read() 136 if (!kbuffer) in pp_read() 162 bytes_read = (*fn)(pport, kbuffer, need, flags); in pp_read() 164 bytes_read = parport_read(pport, kbuffer, need); in pp_read() 185 if (bytes_read > 0 && copy_to_user(buf, kbuffer, bytes_read)) in pp_read() 188 kfree(kbuffer); in pp_read() 198 char *kbuffer; in pp_write() local 210 kbuffer = kmalloc(min_t(size_t, count, PP_BUFFER_SIZE), GFP_KERNEL); in pp_write() 211 if (!kbuffer) in pp_write() [all …]
|
/linux-6.1.9/drivers/hv/ |
D | channel.c | 94 static inline u64 hv_gpadl_hvpfn(enum hv_gpadl_type type, void *kbuffer, in hv_gpadl_hvpfn() argument 116 return virt_to_hvpfn(kbuffer + delta + (HV_HYP_PAGE_SIZE * i)); in hv_gpadl_hvpfn() 309 static int create_gpadl_header(enum hv_gpadl_type type, void *kbuffer, in create_gpadl_header() argument 353 type, kbuffer, size, send_offset, i); in create_gpadl_header() 405 kbuffer, size, send_offset, pfnsum + i); in create_gpadl_header() 434 type, kbuffer, size, send_offset, i); in create_gpadl_header() 458 enum hv_gpadl_type type, void *kbuffer, in __vmbus_establish_gpadl() argument 474 ret = create_gpadl_header(type, kbuffer, size, send_offset, &msginfo); in __vmbus_establish_gpadl() 478 ret = set_memory_decrypted((unsigned long)kbuffer, in __vmbus_establish_gpadl() 551 gpadl->buffer = kbuffer; in __vmbus_establish_gpadl() [all …]
|
/linux-6.1.9/arch/x86/hyperv/ |
D | ivm.c | 330 int hv_set_mem_host_visibility(unsigned long kbuffer, int pagecount, bool visible) in hv_set_mem_host_visibility() argument 346 pfn_array[pfn] = virt_to_hvpfn((void *)kbuffer + i * HV_HYP_PAGE_SIZE); in hv_set_mem_host_visibility()
|
/linux-6.1.9/include/linux/ |
D | hyperv.h | 1221 void *kbuffer,
|