Lines Matching refs:tw_ioctl
886 TW_New_Ioctl *tw_ioctl; in tw_chrdev_ioctl() local
921 tw_ioctl = (TW_New_Ioctl *)cpu_addr; in tw_chrdev_ioctl()
924 if (copy_from_user(tw_ioctl, argp, data_buffer_length + sizeof(TW_New_Ioctl))) in tw_chrdev_ioctl()
927 passthru = (TW_Passthru *)&tw_ioctl->firmware_command; in tw_chrdev_ioctl()
936 memset(tw_ioctl->data_buffer, 0, data_buffer_length); in tw_chrdev_ioctl()
950 memcpy(tw_ioctl->data_buffer, &tw_aen_code, sizeof(tw_aen_code)); in tw_chrdev_ioctl()
964 tw_ioctl->firmware_command.request_id = request_id; in tw_chrdev_ioctl()
967 switch (TW_SGL_OUT(tw_ioctl->firmware_command.opcode__sgloffset)) { in tw_chrdev_ioctl()
969 tw_ioctl->firmware_command.byte8.param.sgl[0].address = dma_handle + sizeof(TW_New_Ioctl); in tw_chrdev_ioctl()
970 tw_ioctl->firmware_command.byte8.param.sgl[0].length = data_buffer_length_adjusted; in tw_chrdev_ioctl()
973 tw_ioctl->firmware_command.byte8.io.sgl[0].address = dma_handle + sizeof(TW_New_Ioctl); in tw_chrdev_ioctl()
974 tw_ioctl->firmware_command.byte8.io.sgl[0].length = data_buffer_length_adjusted; in tw_chrdev_ioctl()
982 …memcpy(tw_dev->command_packet_virtual_address[request_id], &(tw_ioctl->firmware_command), sizeof(T… in tw_chrdev_ioctl()
1005 …memcpy(&(tw_ioctl->firmware_command), tw_dev->command_packet_virtual_address[request_id], sizeof(T… in tw_chrdev_ioctl()
1020 if (copy_to_user(argp, tw_ioctl, sizeof(TW_New_Ioctl) + data_buffer_length)) in tw_chrdev_ioctl()