• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/

Lines Matching defs:item

786 	ips_copp_wait_item_t *item;
807 item = ha->copp_waitlist.head;
808 while ((item) && (item->scsi_cmd != SC))
809 item = item->next;
811 if (item) {
813 ips_removeq_copp(&ha->copp_waitlist, item);
846 ips_copp_wait_item_t *item;
872 item = ha->copp_waitlist.head;
873 while ((item) && (item->scsi_cmd != SC))
874 item = item->next;
876 if (item) {
878 ips_removeq_copp(&ha->copp_waitlist, item);
2615 ips_copp_wait_item_t *item;
2652 item = ips_removeq_copp_head(&ha->copp_waitlist);
2656 scb->scsi_cmd = item->scsi_cmd;
2657 kfree(item);
2837 /* Add an item to the head of the queue */
2843 ips_putq_scb_head(ips_scb_queue_t * queue, ips_scb_t * item)
2847 if (!item)
2850 item->q_next = queue->head;
2851 queue->head = item;
2854 queue->tail = item;
2873 ips_scb_t *item;
2877 item = queue->head;
2879 if (!item) {
2883 queue->head = item->q_next;
2884 item->q_next = NULL;
2886 if (queue->tail == item)
2891 return (item);
2900 /* Remove an item from a queue */
2906 ips_removeq_scb(ips_scb_queue_t * queue, ips_scb_t * item)
2912 if (!item)
2915 if (item == queue->head) {
2921 while ((p) && (item != p->q_next))
2926 p->q_next = item->q_next;
2928 if (!item->q_next)
2931 item->q_next = NULL;
2934 return (item);
2946 /* Add an item to the tail of the queue */
2951 static void ips_putq_wait_tail(ips_wait_queue_t *queue, struct scsi_cmnd *item)
2955 if (!item)
2958 item->host_scribble = NULL;
2961 queue->tail->host_scribble = (char *) item;
2963 queue->tail = item;
2966 queue->head = item;
2984 struct scsi_cmnd *item;
2988 item = queue->head;
2990 if (!item) {
2994 queue->head = (struct scsi_cmnd *) item->host_scribble;
2995 item->host_scribble = NULL;
2997 if (queue->tail == item)
3002 return (item);
3011 /* Remove an item from a queue */
3017 struct scsi_cmnd *item)
3023 if (!item)
3026 if (item == queue->head) {
3032 while ((p) && (item != (struct scsi_cmnd *) p->host_scribble))
3037 p->host_scribble = item->host_scribble;
3039 if (!item->host_scribble)
3042 item->host_scribble = NULL;
3045 return (item);
3057 /* Add an item to the tail of the queue */
3063 ips_putq_copp_tail(ips_copp_queue_t * queue, ips_copp_wait_item_t * item)
3067 if (!item)
3070 item->next = NULL;
3073 queue->tail->next = item;
3075 queue->tail = item;
3078 queue->head = item;
3097 ips_copp_wait_item_t *item;
3101 item = queue->head;
3103 if (!item) {
3107 queue->head = item->next;
3108 item->next = NULL;
3110 if (queue->tail == item)
3115 return (item);
3124 /* Remove an item from a queue */
3130 ips_removeq_copp(ips_copp_queue_t * queue, ips_copp_wait_item_t * item)
3136 if (!item)
3139 if (item == queue->head) {
3145 while ((p) && (item != p->next))
3150 p->next = item->next;
3152 if (!item->next)
3155 item->next = NULL;
3158 return (item);
3939 /* Remove the item from the active queue */