Lines Matching defs:in_ptr
888 struct qlogicpti *qpti, u_int in_ptr, u_int out_ptr)
919 cont = (struct Continuation_Entry *) &qpti->req_cpu[in_ptr];
920 in_ptr = NEXT_REQ_PTR(in_ptr);
921 if (in_ptr == out_ptr)
947 cmd->handle = in_ptr;
948 qpti->cmd_slots[in_ptr] = Cmnd;
951 sbus_writew(in_ptr, qpti->qregs + MBOX4);
952 qpti->req_in_ptr = in_ptr;
954 return in_ptr;
957 static inline void update_can_queue(struct Scsi_Host *host, u_int in_ptr, u_int out_ptr)
959 int num_free = QLOGICPTI_REQ_QUEUE_LEN - REQ_QUEUE_DEPTH(in_ptr, out_ptr) - 64;
1009 int in_ptr;
1013 in_ptr = qpti->req_in_ptr;
1014 cmd = (struct Command_Entry *) &qpti->req_cpu[in_ptr];
1016 in_ptr = NEXT_REQ_PTR(in_ptr);
1017 if (in_ptr == out_ptr)
1023 if (NEXT_REQ_PTR(in_ptr) == out_ptr) {
1024 sbus_writew(in_ptr, qpti->qregs + MBOX4);
1025 qpti->req_in_ptr = in_ptr;
1028 cmd = (struct Command_Entry *) &qpti->req_cpu[in_ptr];
1029 in_ptr = NEXT_REQ_PTR(in_ptr);
1032 if ((in_ptr = load_cmd(Cmnd, cmd, qpti, in_ptr, out_ptr)) == -1)
1035 update_can_queue(host, in_ptr, out_ptr);
1120 u_int in_ptr, out_ptr;
1125 in_ptr = sbus_readw(qpti->qregs + MBOX5);
1144 while (out_ptr != in_ptr) {