Lines Matching refs:mi_resp
520 u8 *mi_resp = _mi_resp; in ex_assign_manuf_info() local
524 memcpy(edev->vendor_id, mi_resp + 12, SAS_EXPANDER_VENDOR_ID_LEN); in ex_assign_manuf_info()
525 memcpy(edev->product_id, mi_resp + 20, SAS_EXPANDER_PRODUCT_ID_LEN); in ex_assign_manuf_info()
526 memcpy(edev->product_rev, mi_resp + 36, in ex_assign_manuf_info()
529 if (mi_resp[8] & 1) { in ex_assign_manuf_info()
530 memcpy(edev->component_vendor_id, mi_resp + 40, in ex_assign_manuf_info()
532 edev->component_id = mi_resp[48] << 8 | mi_resp[49]; in ex_assign_manuf_info()
533 edev->component_revision_id = mi_resp[50]; in ex_assign_manuf_info()
543 u8 *mi_resp; in sas_ex_manuf_info() local
550 mi_resp = alloc_smp_resp(MI_RESP_SIZE); in sas_ex_manuf_info()
551 if (!mi_resp) { in sas_ex_manuf_info()
558 res = smp_execute_task(dev, mi_req, MI_REQ_SIZE, mi_resp,MI_RESP_SIZE); in sas_ex_manuf_info()
563 } else if (mi_resp[2] != SMP_RESP_FUNC_ACC) { in sas_ex_manuf_info()
565 SAS_ADDR(dev->sas_addr), mi_resp[2]); in sas_ex_manuf_info()
569 ex_assign_manuf_info(dev, mi_resp); in sas_ex_manuf_info()
572 kfree(mi_resp); in sas_ex_manuf_info()