Lines Matching refs:sysfs_mbox
3587 phba->sysfs_mbox.state = SMBOX_IDLE;
3588 phba->sysfs_mbox.offset = 0;
3590 if (phba->sysfs_mbox.mbox) {
3591 mempool_free(phba->sysfs_mbox.mbox,
3593 phba->sysfs_mbox.mbox = NULL;
3649 if (phba->sysfs_mbox.mbox)
3652 phba->sysfs_mbox.mbox = mbox;
3653 phba->sysfs_mbox.state = SMBOX_WRITING;
3655 if (phba->sysfs_mbox.state != SMBOX_WRITING ||
3656 phba->sysfs_mbox.offset != off ||
3657 phba->sysfs_mbox.mbox == NULL) {
3664 memcpy((uint8_t *) &phba->sysfs_mbox.mbox->u.mb + off,
3667 phba->sysfs_mbox.offset = off + count;
3731 phba->sysfs_mbox.state == SMBOX_WRITING &&
3732 phba->sysfs_mbox.offset >= 2 * sizeof(uint32_t)) {
3733 pmb = &phba->sysfs_mbox.mbox->u.mb;
3812 phba->sysfs_mbox.mbox->vport = vport;
3828 phba->sysfs_mbox.mbox,
3835 phba->sysfs_mbox.mbox,
3842 phba->sysfs_mbox.mbox = NULL;
3848 phba->sysfs_mbox.state = SMBOX_READING;
3850 else if (phba->sysfs_mbox.offset != off ||
3851 phba->sysfs_mbox.state != SMBOX_READING) {
3860 phba->sysfs_mbox.offset = off + count;
3862 if (phba->sysfs_mbox.offset == MAILBOX_CMD_SIZE)