Lines Matching refs:mi_resp
532 u8 *mi_resp = _mi_resp; in ex_assign_manuf_info() local
536 memcpy(edev->vendor_id, mi_resp + 12, SAS_EXPANDER_VENDOR_ID_LEN); in ex_assign_manuf_info()
537 memcpy(edev->product_id, mi_resp + 20, SAS_EXPANDER_PRODUCT_ID_LEN); in ex_assign_manuf_info()
538 memcpy(edev->product_rev, mi_resp + 36, in ex_assign_manuf_info()
541 if (mi_resp[8] & 1) { in ex_assign_manuf_info()
542 memcpy(edev->component_vendor_id, mi_resp + 40, in ex_assign_manuf_info()
544 edev->component_id = mi_resp[48] << 8 | mi_resp[49]; in ex_assign_manuf_info()
545 edev->component_revision_id = mi_resp[50]; in ex_assign_manuf_info()
555 u8 *mi_resp; in sas_ex_manuf_info() local
562 mi_resp = alloc_smp_resp(MI_RESP_SIZE); in sas_ex_manuf_info()
563 if (!mi_resp) { in sas_ex_manuf_info()
570 res = smp_execute_task(dev, mi_req, MI_REQ_SIZE, mi_resp,MI_RESP_SIZE); in sas_ex_manuf_info()
575 } else if (mi_resp[2] != SMP_RESP_FUNC_ACC) { in sas_ex_manuf_info()
577 SAS_ADDR(dev->sas_addr), mi_resp[2]); in sas_ex_manuf_info()
581 ex_assign_manuf_info(dev, mi_resp); in sas_ex_manuf_info()
584 kfree(mi_resp); in sas_ex_manuf_info()