Lines Matching refs:USBTMC_HEADER_SIZE
30 #define USBTMC_HEADER_SIZE 12 macro
716 buffer = kzalloc(USBTMC_HEADER_SIZE, GFP_KERNEL); in usbtmc488_ioctl_trigger()
727 buffer, USBTMC_HEADER_SIZE, in usbtmc488_ioctl_trigger()
1317 buffer = kmalloc(USBTMC_HEADER_SIZE, GFP_KERNEL); in send_request_dev_dep_msg_in()
1341 buffer, USBTMC_HEADER_SIZE, in send_request_dev_dep_msg_in()
1426 if (actual < USBTMC_HEADER_SIZE) { in usbtmc_read()
1428 actual, USBTMC_HEADER_SIZE); in usbtmc_read()
1475 actual -= USBTMC_HEADER_SIZE; in usbtmc_read()
1484 if (copy_to_user(buf, &buffer[USBTMC_HEADER_SIZE], actual)) { in usbtmc_read()
1490 if ((actual + USBTMC_HEADER_SIZE) == bufsize) { in usbtmc_read()
1581 if (transfersize + USBTMC_HEADER_SIZE > buflen) { in usbtmc_write()
1582 transfersize = buflen - USBTMC_HEADER_SIZE; in usbtmc_write()
1585 aligned = (transfersize + (USBTMC_HEADER_SIZE + 3)) & ~3; in usbtmc_write()
1588 if (copy_from_user(&buffer[USBTMC_HEADER_SIZE], buf, transfersize)) { in usbtmc_write()