Lines Matching refs:mi_resp
517 u8 *mi_resp = _mi_resp; in ex_assign_manuf_info() local
521 memcpy(edev->vendor_id, mi_resp + 12, SAS_EXPANDER_VENDOR_ID_LEN); in ex_assign_manuf_info()
522 memcpy(edev->product_id, mi_resp + 20, SAS_EXPANDER_PRODUCT_ID_LEN); in ex_assign_manuf_info()
523 memcpy(edev->product_rev, mi_resp + 36, in ex_assign_manuf_info()
526 if (mi_resp[8] & 1) { in ex_assign_manuf_info()
527 memcpy(edev->component_vendor_id, mi_resp + 40, in ex_assign_manuf_info()
529 edev->component_id = mi_resp[48] << 8 | mi_resp[49]; in ex_assign_manuf_info()
530 edev->component_revision_id = mi_resp[50]; in ex_assign_manuf_info()
540 u8 *mi_resp; in sas_ex_manuf_info() local
547 mi_resp = alloc_smp_resp(MI_RESP_SIZE); in sas_ex_manuf_info()
548 if (!mi_resp) { in sas_ex_manuf_info()
555 res = smp_execute_task(dev, mi_req, MI_REQ_SIZE, mi_resp, MI_RESP_SIZE); in sas_ex_manuf_info()
560 } else if (mi_resp[2] != SMP_RESP_FUNC_ACC) { in sas_ex_manuf_info()
562 SAS_ADDR(dev->sas_addr), mi_resp[2]); in sas_ex_manuf_info()
566 ex_assign_manuf_info(dev, mi_resp); in sas_ex_manuf_info()
569 kfree(mi_resp); in sas_ex_manuf_info()