Lines Matching refs:refcount
4572 int refcount; in hpsa_eh_abort_handler() local
4607 refcount = atomic_inc_return(&abort->refcount); in hpsa_eh_abort_handler()
4608 if (refcount == 1) { /* Command is done already. */ in hpsa_eh_abort_handler()
4644 refcount = atomic_read(&abort->refcount); in hpsa_eh_abort_handler()
4645 if (refcount < 2) { in hpsa_eh_abort_handler()
4671 int refcount; in cmd_alloc() local
4694 refcount = atomic_inc_return(&c->refcount); in cmd_alloc()
4695 if (unlikely(refcount > 1)) { in cmd_alloc()
4707 memset(c, 0, offsetof(struct CommandList, refcount)); in cmd_alloc()
4728 if (atomic_dec_and_test(&c->refcount)) { in cmd_free()
6618 int i, refcount; in fail_all_outstanding_cmds() local
6624 refcount = atomic_inc_return(&c->refcount); in fail_all_outstanding_cmds()
6625 if (refcount > 1) { in fail_all_outstanding_cmds()
7517 int refcount; in hpsa_drain_accel_commands() local
7523 refcount = atomic_inc_return(&c->refcount); in hpsa_drain_accel_commands()
7524 if (refcount > 1) /* Command is allocated */ in hpsa_drain_accel_commands()