Lines Matching refs:srbcmd
3054 struct aac_srb *srbcmd, *user_srb; in aac_ioctl_send_raw_srb() local
3087 srbcmd = (struct aac_srb *)fib->data; in aac_ioctl_send_raw_srb()
3095 error = copyin(user_srb, srbcmd, fibsize); in aac_ioctl_send_raw_srb()
3098 srbcmd->function = 0; in aac_ioctl_send_raw_srb()
3099 srbcmd->retry_limit = 0; in aac_ioctl_send_raw_srb()
3100 if (srbcmd->sg_map.SgCount > 1) { in aac_ioctl_send_raw_srb()
3107 srbcmd->sg_map.SgCount * sizeof(struct aac_sg_entry))) { in aac_ioctl_send_raw_srb()
3110 sge = srbcmd->sg_map.SgEntry; in aac_ioctl_send_raw_srb()
3121 srbcmd->sg_map.SgCount * sizeof(struct aac_sg_entry64))) { in aac_ioctl_send_raw_srb()
3125 sge64 = (struct aac_sg_entry64 *)srbcmd->sg_map.SgEntry; in aac_ioctl_send_raw_srb()
3144 srbcmd->data_len = srb_sg_bytecount; in aac_ioctl_send_raw_srb()
3145 if (srbcmd->sg_map.SgCount == 1) in aac_ioctl_send_raw_srb()
3148 cm->cm_sgtable = (struct aac_sg_table *)&srbcmd->sg_map; in aac_ioctl_send_raw_srb()
3156 if (srbcmd->flags & AAC_SRB_FLAGS_DATA_IN) in aac_ioctl_send_raw_srb()
3158 if (srbcmd->flags & AAC_SRB_FLAGS_DATA_OUT) { in aac_ioctl_send_raw_srb()
3185 if (transfer_data && (srbcmd->flags & AAC_SRB_FLAGS_DATA_IN) != 0) { in aac_ioctl_send_raw_srb()