Lines Matching refs:tw_ioctl
698 TW_New_Ioctl *tw_ioctl;
733 tw_ioctl = (TW_New_Ioctl *)cpu_addr;
736 if (copy_from_user(tw_ioctl, argp, data_buffer_length + sizeof(TW_New_Ioctl) - 1))
739 passthru = (TW_Passthru *)&tw_ioctl->firmware_command;
748 memset(tw_ioctl->data_buffer, 0, data_buffer_length);
762 memcpy(tw_ioctl->data_buffer, &tw_aen_code, sizeof(tw_aen_code));
776 tw_ioctl->firmware_command.request_id = request_id;
779 switch (TW_SGL_OUT(tw_ioctl->firmware_command.opcode__sgloffset)) {
781 tw_ioctl->firmware_command.byte8.param.sgl[0].address = dma_handle + sizeof(TW_New_Ioctl) - 1;
782 tw_ioctl->firmware_command.byte8.param.sgl[0].length = data_buffer_length_adjusted;
785 tw_ioctl->firmware_command.byte8.io.sgl[0].address = dma_handle + sizeof(TW_New_Ioctl) - 1;
786 tw_ioctl->firmware_command.byte8.io.sgl[0].length = data_buffer_length_adjusted;
794 memcpy(tw_dev->command_packet_virtual_address[request_id], &(tw_ioctl->firmware_command), sizeof(TW_Command));
817 memcpy(&(tw_ioctl->firmware_command), tw_dev->command_packet_virtual_address[request_id], sizeof(TW_Command));
832 if (copy_to_user(argp, tw_ioctl, sizeof(TW_New_Ioctl) + data_buffer_length - 1))