亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ips.c

?? linux和2410結合開發 用他可以生成2410所需的zImage文件
?? C
?? 第 1 頁 / 共 5 頁
字號:
   }   /* See if the command is on the wait queue */   if (ips_removeq_wait(&ha->scb_waitlist, SC)) {      /* command not sent yet */      clear_bit(IPS_IN_ABORT, &ha->flags);      return (SUCCESS);   } else {      /* command must have already been sent */      clear_bit(IPS_IN_ABORT, &ha->flags);      return (FAILED);   }}/****************************************************************************//*                                                                          *//* Routine Name: ips_eh_reset                                               *//*                                                                          *//* Routine Description:                                                     *//*                                                                          *//*   Reset the controller (with new eh error code)                          *//*                                                                          *//* NOTE: this routine is called under the io_request_lock spinlock          *//*                                                                          *//****************************************************************************/intips_eh_reset(Scsi_Cmnd *SC) {   int                   ret;   int                   i;   ips_ha_t             *ha;   ips_scb_t            *scb;   ips_copp_wait_item_t *item;   unsigned long         cpu_flags;   METHOD_TRACE("ips_eh_reset", 1);#ifdef NO_IPS_RESET   return (FAILED);#else   if (!SC) {      DEBUG(1, "Reset called with NULL scsi command");      return (FAILED);   }   ha = (ips_ha_t *) SC->host->hostdata;   if (!ha) {      DEBUG(1, "Reset called with NULL ha struct");      return (FAILED);   }   if (!ha->active)      return (FAILED);   if (test_and_set_bit(IPS_IN_RESET, &ha->flags))      return (FAILED);   /* See if the command is on the copp queue */   IPS_QUEUE_LOCK(&ha->copp_waitlist);   item = ha->copp_waitlist.head;   while ((item) && (item->scsi_cmd != SC))      item = item->next;   IPS_QUEUE_UNLOCK(&ha->copp_waitlist);   if (item) {      /* Found it */      ips_removeq_copp(&ha->copp_waitlist, item);      clear_bit(IPS_IN_RESET, &ha->flags);      return (SUCCESS);   }   /* See if the command is on the wait queue */   if (ips_removeq_wait(&ha->scb_waitlist, SC)) {      /* command not sent yet */      clear_bit(IPS_IN_RESET, &ha->flags);      return (SUCCESS);   }   /*    * command must have already been sent    * reset the controller    */   printk(KERN_NOTICE "(%s%d) Resetting controller.\n",          ips_name, ha->host_num);   ret = (*ha->func.reset)(ha);   if (!ret) {      Scsi_Cmnd *scsi_cmd;      printk(KERN_NOTICE             "(%s%d) Controller reset failed - controller now offline.\n",             ips_name, ha->host_num);      /* Now fail all of the active commands */      DEBUG_VAR(1, "(%s%d) Failing active commands",                ips_name, ha->host_num);      while ((scb = ips_removeq_scb_head(&ha->scb_activelist))) {         scb->scsi_cmd->result = DID_ERROR << 16;         scb->scsi_cmd->scsi_done(scb->scsi_cmd);         ips_freescb(ha, scb);      }      /* Now fail all of the pending commands */      DEBUG_VAR(1, "(%s%d) Failing pending commands",                ips_name, ha->host_num);      while ((scsi_cmd = ips_removeq_wait_head(&ha->scb_waitlist))) {         scsi_cmd->result = DID_ERROR;         scsi_cmd->scsi_done(scsi_cmd);      }      ha->active = FALSE;      clear_bit(IPS_IN_RESET, &ha->flags);      return (FAILED);   }   if (!ips_clear_adapter(ha, IPS_INTR_IORL)) {      Scsi_Cmnd *scsi_cmd;      printk(KERN_NOTICE             "(%s%d) Controller reset failed - controller now offline.\n",             ips_name, ha->host_num);      /* Now fail all of the active commands */      DEBUG_VAR(1, "(%s%d) Failing active commands",                ips_name, ha->host_num);      while ((scb = ips_removeq_scb_head(&ha->scb_activelist))) {         scb->scsi_cmd->result = DID_ERROR << 16;         scb->scsi_cmd->scsi_done(scb->scsi_cmd);         ips_freescb(ha, scb);      }      /* Now fail all of the pending commands */      DEBUG_VAR(1, "(%s%d) Failing pending commands",                ips_name, ha->host_num);      while ((scsi_cmd = ips_removeq_wait_head(&ha->scb_waitlist))) {         scsi_cmd->result = DID_ERROR << 16;         scsi_cmd->scsi_done(scsi_cmd);      }      ha->active = FALSE;      clear_bit(IPS_IN_RESET, &ha->flags);      return (FAILED);   }   /* FFDC */   if (le32_to_cpu(ha->subsys->param[3]) & 0x300000) {      struct timeval tv;      do_gettimeofday(&tv);      IPS_HA_LOCK(cpu_flags);      ha->last_ffdc = tv.tv_sec;      ha->reset_count++;      IPS_HA_UNLOCK(cpu_flags);      ips_ffdc_reset(ha, IPS_INTR_IORL);   }   /* Now fail all of the active commands */   DEBUG_VAR(1, "(%s%d) Failing active commands",             ips_name, ha->host_num);   while ((scb = ips_removeq_scb_head(&ha->scb_activelist))) {      scb->scsi_cmd->result = (DID_RESET << 16) | (SUGGEST_RETRY << 24);      scb->scsi_cmd->scsi_done(scb->scsi_cmd);      ips_freescb(ha, scb);   }   /* Reset DCDB active command bits */   for (i = 1; i < ha->nbus; i++)      ha->dcdb_active[i-1] = 0;   /* Reset the number of active IOCTLs */   IPS_HA_LOCK(cpu_flags);   ha->num_ioctl = 0;   IPS_HA_UNLOCK(cpu_flags);   clear_bit(IPS_IN_RESET, &ha->flags);   if (!test_bit(IPS_IN_INTR, &ha->flags)) {      /*       * Only execute the next command when       * we are not being called from the       * interrupt handler.  The interrupt       * handler wants to do this and since       * interrupts are turned off here....       */      ips_next(ha, IPS_INTR_IORL);   }   return (SUCCESS);#endif /* NO_IPS_RESET */}/****************************************************************************//*                                                                          *//* Routine Name: ips_queue                                                  *//*                                                                          *//* Routine Description:                                                     *//*                                                                          *//*   Send a command to the controller                                       *//*                                                                          *//* NOTE:                                                                    *//*    Linux obtains io_request_lock before calling this function            *//*                                                                          *//****************************************************************************/intips_queue(Scsi_Cmnd *SC, void (*done) (Scsi_Cmnd *)) {   ips_ha_t         *ha;   unsigned long     cpu_flags;   METHOD_TRACE("ips_queue", 1);   ha = (ips_ha_t *) SC->host->hostdata;   if (!ha)      return (1);   if (!ha->active)      return (DID_ERROR);#ifndef NO_IPS_CMDLINE   if (ips_is_passthru(SC)) {      IPS_QUEUE_LOCK(&ha->copp_waitlist);      if (ha->copp_waitlist.count == IPS_MAX_IOCTL_QUEUE) {         IPS_QUEUE_UNLOCK(&ha->copp_waitlist);         SC->result = DID_BUS_BUSY << 16;         done(SC);         return (0);      } else {         IPS_QUEUE_UNLOCK(&ha->copp_waitlist);      }   } else {#endif      IPS_QUEUE_LOCK(&ha->scb_waitlist);      if (ha->scb_waitlist.count == IPS_MAX_QUEUE) {         IPS_QUEUE_UNLOCK(&ha->scb_waitlist);         SC->result = DID_BUS_BUSY << 16;         done(SC);         return (0);      } else {         IPS_QUEUE_UNLOCK(&ha->scb_waitlist);      }#ifndef NO_IPS_CMDLINE   }#endif   SC->scsi_done = done;   DEBUG_VAR(2, "(%s%d): ips_queue: cmd 0x%X (%d %d %d)",             ips_name,             ha->host_num,             SC->cmnd[0],             SC->channel,             SC->target,             SC->lun);   /* Check for command to initiator IDs */   if ((SC->channel > 0) && (SC->target == ha->ha_id[SC->channel])) {      SC->result = DID_NO_CONNECT << 16;      done(SC);      return (0);   }#ifndef NO_IPS_CMDLINE   if (ips_is_passthru(SC)) {      ips_copp_wait_item_t *scratch;      /* The IPS_IOCTL_NEW_COMMAND is only used to flash an adapter.  This should */      /* never happen when the adapter is active.  Just in case, check here, and  */      /* reject the command if anything else is going on.                         */      if (SC->cmnd[0] == IPS_IOCTL_NEW_COMMAND) {         if (ha->scb_activelist.count != 0) {            /* printk( KERN_WARNING "New IOCTL Cmd Return BUSY: %d Cmds Active\n", */            /*                       ha->scb_activelist.count );                   */            SC->result = DID_BUS_BUSY << 16;            done(SC);            return (0);         }      }      /* allocate space for the scribble */      scratch = kmalloc(sizeof(ips_copp_wait_item_t), GFP_ATOMIC);      if (!scratch) {         SC->result = DID_ERROR << 16;         done(SC);         return (0);      }      scratch->scsi_cmd = SC;      sema_init(&ha->ioctl_sem, 0);      scratch->sem = &ha->ioctl_sem;      scratch->next = NULL;      ips_putq_copp_tail(&ha->copp_waitlist, scratch);   }   else#endif      ips_putq_wait_tail(&ha->scb_waitlist, SC);   IPS_HA_LOCK(cpu_flags);   if ((!test_bit(IPS_IN_INTR, &ha->flags)) &&       (!test_bit(IPS_IN_ABORT, &ha->flags)) &&       (!test_bit(IPS_IN_RESET, &ha->flags))) {      IPS_HA_UNLOCK(cpu_flags);      ips_next(ha, IPS_INTR_IORL);   } else {      IPS_HA_UNLOCK(cpu_flags);   }   /*    * If this request was a new style IOCTL wait    * for it to finish.    *    * NOTE: we relinquished the lock above so this should    * not cause contention problems    */   if (ips_is_passthru(SC) && SC->cmnd[0] == IPS_IOCTL_NEW_COMMAND) {      char      *user_area;      char      *kern_area;      u_int32_t  datasize;      /* free io_request_lock */      spin_unlock_irq(&io_request_lock);      /* wait for the command to finish */      down(&ha->ioctl_sem);      /* reobtain the lock */      spin_lock_irq(&io_request_lock);      /* command finished -- copy back */      user_area = *((char **) &SC->cmnd[4]);     

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日本一区二区三区| 国产蜜臀av在线一区二区三区| 久久国产精品72免费观看| 国产精品久久久久久久久动漫| 久久久久久久久99精品| 日韩色在线观看| 欧美一区二区在线播放| 欧美精品亚洲二区| 51久久夜色精品国产麻豆| 欧美电影在哪看比较好| 一区二区中文视频| 亚洲另类色综合网站| 亚洲裸体在线观看| 一区二区三区四区视频精品免费| 亚洲精品一卡二卡| 国产91精品一区二区麻豆网站 | 欧美亚一区二区| 91精彩视频在线| 欧美日韩一二区| 日韩精品综合一本久道在线视频| 欧美成人女星排行榜| 精品福利一区二区三区| 国产精品乱码一区二三区小蝌蚪| 亚洲欧美一区二区三区国产精品| 国内成人自拍视频| 99re在线精品| 欧美日韩国产一区| 一区二区三区 在线观看视频| 国产一区二区三区综合| 色综合久久中文综合久久牛| 欧美色手机在线观看| 亚洲欧美一区二区三区国产精品 | 欧美日韩成人激情| 亚洲黄色片在线观看| 99re这里只有精品视频首页| 国产精品丝袜一区| 不卡的看片网站| 欧美一区二区美女| 三级影片在线观看欧美日韩一区二区| 精品一二三四在线| 日本高清不卡aⅴ免费网站| 中文字幕亚洲一区二区va在线| 成人污污视频在线观看| 欧美精品久久一区二区三区| 亚洲综合区在线| 国产福利精品一区| 欧美精品一卡二卡| 美女mm1313爽爽久久久蜜臀| 成人av网站在线观看| 国产精品久久久久9999吃药| 91麻豆精品秘密| 337p粉嫩大胆噜噜噜噜噜91av| 亚洲精品欧美激情| 欧美日韩一区视频| 免费xxxx性欧美18vr| 在线亚洲一区二区| 欧美videofree性高清杂交| 久久国产欧美日韩精品| 久久久影院官网| 成人激情午夜影院| 亚洲成人一区在线| 色综合 综合色| 爽爽淫人综合网网站| 久久婷婷综合激情| 99re66热这里只有精品3直播| 艳妇臀荡乳欲伦亚洲一区| 欧美一区二区美女| 丰满白嫩尤物一区二区| 亚洲一区二区免费视频| 日韩免费高清电影| fc2成人免费人成在线观看播放 | 一区二区三区日韩欧美精品| 欧美日韩电影一区| 国产精品一区二区三区乱码| 精品国产伦一区二区三区观看方式 | 亚洲日穴在线视频| 顶级嫩模精品视频在线看| 亚洲精选一二三| 精品少妇一区二区三区 | 91蝌蚪国产九色| 美日韩黄色大片| 综合分类小说区另类春色亚洲小说欧美| 欧美日韩一区视频| 成人丝袜18视频在线观看| 午夜精品久久久久久久蜜桃app| 91高清视频在线| 国产一区在线看| 亚洲成人7777| 中文字幕第一页久久| 成人毛片视频在线观看| 日本成人在线网站| 欧美电影免费观看高清完整版在线 | 色综合亚洲欧洲| 亚洲桃色在线一区| 久久影院视频免费| 欧美精品久久99久久在免费线| 成人免费黄色在线| 九一九一国产精品| 日日骚欧美日韩| 亚洲男人电影天堂| 国产精品天天看| 26uuu久久综合| 欧美成人性战久久| 9191成人精品久久| 欧美性色欧美a在线播放| 成人精品视频一区二区三区 | 欧美日韩综合在线| jizzjizzjizz欧美| 福利一区二区在线| 国产盗摄视频一区二区三区| 精品一区二区在线免费观看| 日韩精品一二三| 丝袜美腿亚洲一区| 亚洲v中文字幕| 亚洲电影欧美电影有声小说| 一区二区三区视频在线观看| 伊人一区二区三区| 一区二区三区四区中文字幕| 亚洲美女免费在线| 亚洲最大成人网4388xx| 洋洋成人永久网站入口| 亚洲最新在线观看| 午夜伦欧美伦电影理论片| 香蕉久久夜色精品国产使用方法| 亚洲福利电影网| 国产日产欧美一区二区视频| 国产日韩欧美电影| 欧美高清在线一区| 综合自拍亚洲综合图不卡区| 亚洲三级免费电影| 亚洲一线二线三线视频| 亚洲线精品一区二区三区八戒| 亚洲最大成人综合| 日韩激情在线观看| 韩国欧美国产一区| 国产91精品在线观看| 99视频热这里只有精品免费| 色婷婷综合久色| 欧美乱妇15p| 欧美成人在线直播| 久久精品视频在线看| 欧美日韩一区二区三区四区| 欧美一区二区三区免费大片 | 亚洲va韩国va欧美va精品 | 老司机免费视频一区二区三区| 久久精品国产精品亚洲红杏| 国产曰批免费观看久久久| 成人美女在线观看| 欧美日韩你懂的| 26uuu另类欧美| 亚洲欧美日韩国产综合| 日韩成人一区二区三区在线观看| 狠狠色狠狠色合久久伊人| 本田岬高潮一区二区三区| 欧美老女人第四色| 国产区在线观看成人精品| 亚洲一区在线观看免费| 久久99最新地址| 色婷婷久久99综合精品jk白丝| 制服丝袜激情欧洲亚洲| 一区在线观看免费| 免费看欧美美女黄的网站| 99这里都是精品| 日韩女优视频免费观看| 亚洲色图在线看| 狠狠色伊人亚洲综合成人| 在线国产电影不卡| 欧美激情综合五月色丁香| 亚洲va欧美va人人爽午夜 | 奇米影视一区二区三区小说| 成人sese在线| 欧美一级理论片| 亚洲九九爱视频| 粉嫩嫩av羞羞动漫久久久| 69堂成人精品免费视频| 亚洲视频图片小说| 国产精品一区在线观看你懂的| 欧美日韩精品专区| 亚洲日本中文字幕区| 国产盗摄精品一区二区三区在线| 欧美日韩综合在线免费观看| 国产精品免费看片| 国产精品自拍av| 欧美一区二区三区白人| 亚洲小说欧美激情另类| av亚洲精华国产精华精| 久久久精品一品道一区| 奇米精品一区二区三区在线观看| 欧美专区亚洲专区| 亚洲欧美日韩国产一区二区三区| 国产老肥熟一区二区三区| 91精品国产综合久久久久| 亚洲一区二区三区视频在线| 成人av电影观看| 中文字幕成人av| 国产精品亚洲一区二区三区妖精| 日韩欧美精品三级| 日韩av一区二| 这里只有精品免费| 亚州成人在线电影|