Lines Matching refs:p
2529 struct scsi_cmnd *p; in ips_next() local
2630 p = ha->scb_waitlist.head; in ips_next()
2631 while ((p) && (scb = ips_getscb(ha))) { in ips_next()
2632 if ((scmd_channel(p) > 0) in ips_next()
2634 dcdb_active[scmd_channel(p) - in ips_next()
2635 1] & (1 << scmd_id(p)))) { in ips_next()
2637 p = (struct scsi_cmnd *) p->host_scribble; in ips_next()
2641 q = p; in ips_next()
2736 p = (struct scsi_cmnd *) p->host_scribble; in ips_next()
2821 ips_scb_t *p; in ips_removeq_scb() local
2832 p = queue->head; in ips_removeq_scb()
2834 while ((p) && (item != p->q_next)) in ips_removeq_scb()
2835 p = p->q_next; in ips_removeq_scb()
2837 if (p) { in ips_removeq_scb()
2839 p->q_next = item->q_next; in ips_removeq_scb()
2842 queue->tail = p; in ips_removeq_scb()
2932 struct scsi_cmnd *p; in ips_removeq_wait() local
2943 p = queue->head; in ips_removeq_wait()
2945 while ((p) && (item != (struct scsi_cmnd *) p->host_scribble)) in ips_removeq_wait()
2946 p = (struct scsi_cmnd *) p->host_scribble; in ips_removeq_wait()
2948 if (p) { in ips_removeq_wait()
2950 p->host_scribble = item->host_scribble; in ips_removeq_wait()
2953 queue->tail = p; in ips_removeq_wait()
3045 ips_copp_wait_item_t *p; in ips_removeq_copp() local
3056 p = queue->head; in ips_removeq_copp()
3058 while ((p) && (item != p->next)) in ips_removeq_copp()
3059 p = p->next; in ips_removeq_copp()
3061 if (p) { in ips_removeq_copp()
3063 p->next = item->next; in ips_removeq_copp()
3066 queue->tail = p; in ips_removeq_copp()