Searched refs:insert_location (Results 1 – 1 of 1) sorted by relevance
257 int insert_location; in add_scsipending_entry() local260 insert_location = vhbainfo->nextinsert; in add_scsipending_entry()261 while (vhbainfo->pending[insert_location].sent) { in add_scsipending_entry()262 insert_location = (insert_location + 1) % MAX_PENDING_REQUESTS; in add_scsipending_entry()263 if (insert_location == (int)vhbainfo->nextinsert) { 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()274 return insert_location; in add_scsipending_entry()281 int insert_location = add_scsipending_entry(vhbainfo, cmdtype, new); in add_scsipending_entry_with_wait() local[all …]