Searched refs:tw_ioctl (Results 1 – 3 of 3) sorted by relevance
/linux-5.19.10/drivers/scsi/ |
D | 3w-9xxx.c | 648 TW_Ioctl_Buf_Apache *tw_ioctl; in twa_chrdev_ioctl() local 688 tw_ioctl = (TW_Ioctl_Buf_Apache *)cpu_addr; in twa_chrdev_ioctl() 691 if (copy_from_user(tw_ioctl, argp, sizeof(TW_Ioctl_Buf_Apache) + driver_command.buffer_length)) in twa_chrdev_ioctl() 706 full_command_packet = &tw_ioctl->firmware_command; in twa_chrdev_ioctl() 711 …memcpy(tw_dev->command_packet_virt[request_id], &(tw_ioctl->firmware_command), sizeof(TW_Command_F… in twa_chrdev_ioctl() 734 …memcpy(&(tw_ioctl->firmware_command), tw_dev->command_packet_virt[request_id], sizeof(TW_Command_F… in twa_chrdev_ioctl() 744 tw_ioctl->driver_command.status = 0; in twa_chrdev_ioctl() 746 tw_compat_info = (TW_Compatibility_Info *)tw_ioctl->data_buffer; in twa_chrdev_ioctl() 752 tw_ioctl->driver_command.status = TW_IOCTL_ERROR_STATUS_AEN_CLOBBER; in twa_chrdev_ioctl() 755 tw_ioctl->driver_command.status = 0; in twa_chrdev_ioctl() [all …]
|
D | 3w-xxxx.c | 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) - 1)) 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) - 1; in tw_chrdev_ioctl() 970 tw_ioctl->firmware_command.byte8.param.sgl[0].length = data_buffer_length_adjusted; in tw_chrdev_ioctl() [all …]
|
D | 3w-sas.c | 723 TW_Ioctl_Buf_Apache *tw_ioctl; in twl_chrdev_ioctl() local 757 tw_ioctl = (TW_Ioctl_Buf_Apache *)cpu_addr; in twl_chrdev_ioctl() 760 if (copy_from_user(tw_ioctl, argp, driver_command.buffer_length + sizeof(TW_Ioctl_Buf_Apache) - 1)) in twl_chrdev_ioctl() 775 full_command_packet = (TW_Command_Full *)&tw_ioctl->firmware_command; in twl_chrdev_ioctl() 780 …memcpy(tw_dev->command_packet_virt[request_id], &(tw_ioctl->firmware_command), sizeof(TW_Command_F… in twl_chrdev_ioctl() 803 …memcpy(&(tw_ioctl->firmware_command), tw_dev->command_packet_virt[request_id], sizeof(TW_Command_F… in twl_chrdev_ioctl() 818 …if (copy_to_user(argp, tw_ioctl, sizeof(TW_Ioctl_Buf_Apache) + driver_command.buffer_length - 1) =… in twl_chrdev_ioctl()
|