Searched refs:vhbainfo (Results 1 – 1 of 1) sorted by relevance
254 add_scsipending_entry(struct virthba_info *vhbainfo, char cmdtype, void *new) in add_scsipending_entry() argument259 spin_lock_irqsave(&vhbainfo->privlock, flags); in add_scsipending_entry()260 insert_location = vhbainfo->nextinsert; in add_scsipending_entry()261 while (vhbainfo->pending[insert_location].sent) { in add_scsipending_entry()263 if (insert_location == (int)vhbainfo->nextinsert) { in add_scsipending_entry()264 spin_unlock_irqrestore(&vhbainfo->privlock, flags); in add_scsipending_entry()269 vhbainfo->pending[insert_location].cmdtype = cmdtype; in add_scsipending_entry()270 vhbainfo->pending[insert_location].sent = new; in add_scsipending_entry()271 vhbainfo->nextinsert = (insert_location + 1) % MAX_PENDING_REQUESTS; in add_scsipending_entry()272 spin_unlock_irqrestore(&vhbainfo->privlock, flags); in add_scsipending_entry()[all …]