Searched refs:tw_ioctl (Results 1 – 3 of 3) sorted by relevance
/linux-2.6.39/drivers/scsi/ |
D | 3w-9xxx.c | 651 TW_Ioctl_Buf_Apache *tw_ioctl; in twa_chrdev_ioctl() local 690 tw_ioctl = (TW_Ioctl_Buf_Apache *)cpu_addr; in twa_chrdev_ioctl() 693 if (copy_from_user(tw_ioctl, argp, driver_command.buffer_length + sizeof(TW_Ioctl_Buf_Apache) - 1)) in twa_chrdev_ioctl() 708 full_command_packet = &tw_ioctl->firmware_command; in twa_chrdev_ioctl() 713 …memcpy(tw_dev->command_packet_virt[request_id], &(tw_ioctl->firmware_command), sizeof(TW_Command_F… in twa_chrdev_ioctl() 736 …memcpy(&(tw_ioctl->firmware_command), tw_dev->command_packet_virt[request_id], sizeof(TW_Command_F… in twa_chrdev_ioctl() 746 tw_ioctl->driver_command.status = 0; in twa_chrdev_ioctl() 748 tw_compat_info = (TW_Compatibility_Info *)tw_ioctl->data_buffer; in twa_chrdev_ioctl() 754 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_AEN_CLOBBER; in twa_chrdev_ioctl() 757 tw_ioctl->driver_command.status = 0; in twa_chrdev_ioctl() [all …]
|
D | 3w-xxxx.c | 895 TW_New_Ioctl *tw_ioctl; in tw_chrdev_ioctl() local 930 tw_ioctl = (TW_New_Ioctl *)cpu_addr; in tw_chrdev_ioctl() 933 if (copy_from_user(tw_ioctl, argp, data_buffer_length + sizeof(TW_New_Ioctl) - 1)) in tw_chrdev_ioctl() 936 passthru = (TW_Passthru *)&tw_ioctl->firmware_command; in tw_chrdev_ioctl() 945 memset(tw_ioctl->data_buffer, 0, data_buffer_length); in tw_chrdev_ioctl() 959 memcpy(tw_ioctl->data_buffer, &tw_aen_code, sizeof(tw_aen_code)); in tw_chrdev_ioctl() 973 tw_ioctl->firmware_command.request_id = request_id; in tw_chrdev_ioctl() 976 switch (TW_SGL_OUT(tw_ioctl->firmware_command.opcode__sgloffset)) { in tw_chrdev_ioctl() 978 tw_ioctl->firmware_command.byte8.param.sgl[0].address = dma_handle + sizeof(TW_New_Ioctl) - 1; in tw_chrdev_ioctl() 979 tw_ioctl->firmware_command.byte8.param.sgl[0].length = data_buffer_length_adjusted; in tw_chrdev_ioctl() [all …]
|
D | 3w-sas.c | 761 TW_Ioctl_Buf_Apache *tw_ioctl; in twl_chrdev_ioctl() local 795 tw_ioctl = (TW_Ioctl_Buf_Apache *)cpu_addr; in twl_chrdev_ioctl() 798 if (copy_from_user(tw_ioctl, argp, driver_command.buffer_length + sizeof(TW_Ioctl_Buf_Apache) - 1)) in twl_chrdev_ioctl() 813 full_command_packet = (TW_Command_Full *)&tw_ioctl->firmware_command; in twl_chrdev_ioctl() 818 …memcpy(tw_dev->command_packet_virt[request_id], &(tw_ioctl->firmware_command), sizeof(TW_Command_F… in twl_chrdev_ioctl() 841 …memcpy(&(tw_ioctl->firmware_command), tw_dev->command_packet_virt[request_id], sizeof(TW_Command_F… in twl_chrdev_ioctl() 856 …if (copy_to_user(argp, tw_ioctl, sizeof(TW_Ioctl_Buf_Apache) + driver_command.buffer_length - 1) =… in twl_chrdev_ioctl()
|