Lines Matching refs:user_srbcmd
471 struct user_aac_srb *user_srbcmd = NULL; in aac_send_raw_srb() local
520 user_srbcmd = kmalloc(fibsize, GFP_KERNEL); in aac_send_raw_srb()
521 if (!user_srbcmd) { in aac_send_raw_srb()
526 if(copy_from_user(user_srbcmd, user_srb,fibsize)){ in aac_send_raw_srb()
534 flags = user_srbcmd->flags; /* from user in cpu order */ in aac_send_raw_srb()
538 srbcmd->channel = cpu_to_le32(user_srbcmd->channel); in aac_send_raw_srb()
539 srbcmd->id = cpu_to_le32(user_srbcmd->id); in aac_send_raw_srb()
540 srbcmd->lun = cpu_to_le32(user_srbcmd->lun); in aac_send_raw_srb()
541 srbcmd->timeout = cpu_to_le32(user_srbcmd->timeout); in aac_send_raw_srb()
544 srbcmd->cdb_size = cpu_to_le32(user_srbcmd->cdb_size); in aac_send_raw_srb()
545 memcpy(srbcmd->cdb, user_srbcmd->cdb, sizeof(srbcmd->cdb)); in aac_send_raw_srb()
560 if (user_srbcmd->sg.count > ARRAY_SIZE(sg_list)) { in aac_send_raw_srb()
567 ((user_srbcmd->sg.count & 0xff) * sizeof(struct sgentry)); in aac_send_raw_srb()
568 actual_fibsize64 = actual_fibsize + (user_srbcmd->sg.count & 0xff) * in aac_send_raw_srb()
576 actual_fibsize, actual_fibsize64, user_srbcmd->sg.count, in aac_send_raw_srb()
582 if ((data_dir == DMA_NONE) && user_srbcmd->sg.count) { in aac_send_raw_srb()
589 struct user_sgmap64* upsg = (struct user_sgmap64*)&user_srbcmd->sg; in aac_send_raw_srb()
692 if (user_srbcmd->sg.count) in aac_send_raw_srb()
698 struct user_sgmap* upsg = &user_srbcmd->sg; in aac_send_raw_srb()
781 if (user_srbcmd->sg.count) in aac_send_raw_srb()
821 kfree(user_srbcmd); in aac_send_raw_srb()