Lines Matching refs:port_enable_cmds

7616 	if (ioc->port_enable_cmds.status == MPT3_CMD_NOT_USED)  in mpt3sas_port_enable_done()
7626 ioc->port_enable_cmds.status &= ~MPT3_CMD_PENDING; in mpt3sas_port_enable_done()
7627 ioc->port_enable_cmds.status |= MPT3_CMD_COMPLETE; in mpt3sas_port_enable_done()
7628 ioc->port_enable_cmds.status |= MPT3_CMD_REPLY_VALID; in mpt3sas_port_enable_done()
7629 memcpy(ioc->port_enable_cmds.reply, mpi_reply, mpi_reply->MsgLength*4); in mpt3sas_port_enable_done()
7634 if (ioc->port_enable_cmds.status & MPT3_CMD_COMPLETE_ASYNC) { in mpt3sas_port_enable_done()
7635 ioc->port_enable_cmds.status &= ~MPT3_CMD_COMPLETE_ASYNC; in mpt3sas_port_enable_done()
7645 complete(&ioc->port_enable_cmds.done); in mpt3sas_port_enable_done()
7666 if (ioc->port_enable_cmds.status & MPT3_CMD_PENDING) { in _base_send_port_enable()
7677 ioc->port_enable_cmds.status = MPT3_CMD_PENDING; in _base_send_port_enable()
7679 ioc->port_enable_cmds.smid = smid; in _base_send_port_enable()
7683 init_completion(&ioc->port_enable_cmds.done); in _base_send_port_enable()
7685 wait_for_completion_timeout(&ioc->port_enable_cmds.done, 300*HZ); in _base_send_port_enable()
7686 if (!(ioc->port_enable_cmds.status & MPT3_CMD_COMPLETE)) { in _base_send_port_enable()
7690 if (ioc->port_enable_cmds.status & MPT3_CMD_RESET) in _base_send_port_enable()
7697 mpi_reply = ioc->port_enable_cmds.reply; in _base_send_port_enable()
7707 ioc->port_enable_cmds.status = MPT3_CMD_NOT_USED; in _base_send_port_enable()
7726 if (ioc->port_enable_cmds.status & MPT3_CMD_PENDING) { in mpt3sas_port_enable()
7737 ioc->port_enable_cmds.status = MPT3_CMD_PENDING; in mpt3sas_port_enable()
7738 ioc->port_enable_cmds.status |= MPT3_CMD_COMPLETE_ASYNC; in mpt3sas_port_enable()
7740 ioc->port_enable_cmds.smid = smid; in mpt3sas_port_enable()
8521 ioc->port_enable_cmds.reply = kzalloc(ioc->reply_sz, GFP_KERNEL); in mpt3sas_base_attach()
8522 ioc->port_enable_cmds.status = MPT3_CMD_NOT_USED; in mpt3sas_base_attach()
8550 if (!ioc->base_cmds.reply || !ioc->port_enable_cmds.reply || in mpt3sas_base_attach()
8622 kfree(ioc->port_enable_cmds.reply); in mpt3sas_base_attach()
8662 kfree(ioc->port_enable_cmds.reply); in mpt3sas_base_detach()
8699 if (ioc->port_enable_cmds.status & MPT3_CMD_PENDING) { in _base_clear_outstanding_mpt_commands()
8701 ioc->port_enable_cmds.status |= MPT3_CMD_RESET; in _base_clear_outstanding_mpt_commands()
8702 mpt3sas_base_free_smid(ioc, ioc->port_enable_cmds.smid); in _base_clear_outstanding_mpt_commands()
8708 complete(&ioc->port_enable_cmds.done); in _base_clear_outstanding_mpt_commands()