/linux-6.12.1/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.12.1/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.12.1/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() 311 static int create_gpadl_header(enum hv_gpadl_type type, void *kbuffer, in create_gpadl_header() argument 351 type, kbuffer, size, send_offset, i); in create_gpadl_header() 401 kbuffer, size, send_offset, pfnsum + i); in create_gpadl_header() 424 enum hv_gpadl_type type, void *kbuffer, in __vmbus_establish_gpadl() argument 440 ret = create_gpadl_header(type, kbuffer, size, send_offset, &msginfo); in __vmbus_establish_gpadl() 453 ret = set_memory_decrypted((unsigned long)kbuffer, in __vmbus_establish_gpadl() 526 gpadl->buffer = kbuffer; in __vmbus_establish_gpadl() 547 if (!set_memory_encrypted((unsigned long)kbuffer, PFN_UP(size))) in __vmbus_establish_gpadl() [all …]
|
/linux-6.12.1/arch/x86/hyperv/ |
D | ivm.c | 526 static int hv_vtom_clear_present(unsigned long kbuffer, int pagecount, bool enc) in hv_vtom_clear_present() argument 528 return set_memory_np(kbuffer, pagecount); in hv_vtom_clear_present() 539 static int hv_vtom_set_host_visibility(unsigned long kbuffer, int pagecount, bool enc) in hv_vtom_set_host_visibility() argument 562 vaddr = (void *)kbuffer + (i * HV_HYP_PAGE_SIZE); in hv_vtom_set_host_visibility() 586 err = set_memory_p(kbuffer, pagecount); in hv_vtom_set_host_visibility()
|
/linux-6.12.1/include/linux/ |
D | hyperv.h | 1244 void *kbuffer,
|