Lines Matching refs:dmabuf
644 void *dmabuf; in cp210x_read_reg_block() local
647 dmabuf = kmalloc(bufsize, GFP_KERNEL); in cp210x_read_reg_block()
648 if (!dmabuf) in cp210x_read_reg_block()
653 port_priv->bInterfaceNumber, dmabuf, bufsize, in cp210x_read_reg_block()
656 memcpy(buf, dmabuf, bufsize); in cp210x_read_reg_block()
665 kfree(dmabuf); in cp210x_read_reg_block()
685 void *dmabuf; in cp210x_read_vendor_block() local
688 dmabuf = kmalloc(bufsize, GFP_KERNEL); in cp210x_read_vendor_block()
689 if (!dmabuf) in cp210x_read_vendor_block()
694 cp210x_interface_num(serial), dmabuf, bufsize, in cp210x_read_vendor_block()
697 memcpy(buf, dmabuf, bufsize); in cp210x_read_vendor_block()
707 kfree(dmabuf); in cp210x_read_vendor_block()
743 void *dmabuf; in cp210x_write_reg_block() local
746 dmabuf = kmemdup(buf, bufsize, GFP_KERNEL); in cp210x_write_reg_block()
747 if (!dmabuf) in cp210x_write_reg_block()
752 port_priv->bInterfaceNumber, dmabuf, bufsize, in cp210x_write_reg_block()
755 kfree(dmabuf); in cp210x_write_reg_block()
786 void *dmabuf; in cp210x_write_vendor_block() local
789 dmabuf = kmemdup(buf, bufsize, GFP_KERNEL); in cp210x_write_vendor_block()
790 if (!dmabuf) in cp210x_write_vendor_block()
795 cp210x_interface_num(serial), dmabuf, bufsize, in cp210x_write_vendor_block()
798 kfree(dmabuf); in cp210x_write_vendor_block()