Lines Matching refs:smip
368 sfxge_mcdi_ioctl(sfxge_t *sp, sfxge_mcdi_ioc_t *smip) in sfxge_mcdi_ioctl() argument
386 out = kmem_zalloc(sizeof (smip->smi_payload), KM_NOSLEEP); in sfxge_mcdi_ioctl()
392 emr.emr_cmd = smip->smi_cmd; in sfxge_mcdi_ioctl()
393 emr.emr_in_buf = smip->smi_payload; in sfxge_mcdi_ioctl()
394 emr.emr_in_length = smip->smi_len; in sfxge_mcdi_ioctl()
397 emr.emr_out_length = sizeof (smip->smi_payload); in sfxge_mcdi_ioctl()
401 smip->smi_rc = (uint8_t)emr.emr_rc; in sfxge_mcdi_ioctl()
402 smip->smi_cmd = (uint8_t)emr.emr_cmd; in sfxge_mcdi_ioctl()
403 smip->smi_len = (uint8_t)emr.emr_out_length_used; in sfxge_mcdi_ioctl()
404 bcopy(out, smip->smi_payload, smip->smi_len); in sfxge_mcdi_ioctl()
410 if (smip->smi_cmd == MC_CMD_REBOOT) { in sfxge_mcdi_ioctl()
418 kmem_free(out, sizeof (smip->smi_payload)); in sfxge_mcdi_ioctl()
432 sfxge_mcdi2_ioctl(sfxge_t *sp, sfxge_mcdi2_ioc_t *smip) in sfxge_mcdi2_ioctl() argument
450 out = kmem_zalloc(sizeof (smip->smi_payload), KM_NOSLEEP); in sfxge_mcdi2_ioctl()
456 emr.emr_cmd = smip->smi_cmd; in sfxge_mcdi2_ioctl()
457 emr.emr_in_buf = smip->smi_payload; in sfxge_mcdi2_ioctl()
458 emr.emr_in_length = smip->smi_len; in sfxge_mcdi2_ioctl()
461 emr.emr_out_length = sizeof (smip->smi_payload); in sfxge_mcdi2_ioctl()
465 smip->smi_rc = emr.emr_rc; in sfxge_mcdi2_ioctl()
466 smip->smi_cmd = emr.emr_cmd; in sfxge_mcdi2_ioctl()
467 smip->smi_len = (uint32_t)emr.emr_out_length_used; in sfxge_mcdi2_ioctl()
468 bcopy(out, smip->smi_payload, smip->smi_len); in sfxge_mcdi2_ioctl()
474 if (smip->smi_cmd == MC_CMD_REBOOT) { in sfxge_mcdi2_ioctl()
482 kmem_free(out, sizeof (smip->smi_payload)); in sfxge_mcdi2_ioctl()