Lines Matching refs:disc_resp
179 struct smp_disc_resp *disc_resp) in sas_set_ex_phy() argument
184 struct discover_resp *dr = &disc_resp->disc; in sas_set_ex_phy()
201 switch (disc_resp->result) { in sas_set_ex_phy()
352 struct smp_disc_resp *disc_resp, in sas_ex_phy_discover_helper() argument
355 struct discover_resp *dr = &disc_resp->disc; in sas_ex_phy_discover_helper()
361 disc_resp, DISCOVER_RESP_SIZE); in sas_ex_phy_discover_helper()
368 sas_set_ex_phy(dev, single, disc_resp); in sas_ex_phy_discover_helper()
377 struct smp_disc_resp *disc_resp; in sas_ex_phy_discover() local
383 disc_resp = alloc_smp_resp(DISCOVER_RESP_SIZE); in sas_ex_phy_discover()
384 if (!disc_resp) { in sas_ex_phy_discover()
392 res = sas_ex_phy_discover_helper(dev, disc_req, disc_resp, single); in sas_ex_phy_discover()
398 disc_resp, i); in sas_ex_phy_discover()
404 kfree(disc_resp); in sas_ex_phy_discover()
1623 static void sas_get_sas_addr_and_dev_type(struct smp_disc_resp *disc_resp, in sas_get_sas_addr_and_dev_type() argument
1627 memcpy(sas_addr, disc_resp->disc.attached_sas_addr, SAS_ADDR_SIZE); in sas_get_sas_addr_and_dev_type()
1628 *type = to_dev_type(&disc_resp->disc); in sas_get_sas_addr_and_dev_type()
1634 int phy_id, struct smp_disc_resp *disc_resp) in sas_get_phy_discover() argument
1647 disc_resp, DISCOVER_RESP_SIZE); in sas_get_phy_discover()
1650 if (disc_resp->result != SMP_RESP_FUNC_ACC) in sas_get_phy_discover()
1651 res = disc_resp->result; in sas_get_phy_discover()
1661 struct smp_disc_resp *disc_resp; in sas_get_phy_change_count() local
1663 disc_resp = alloc_smp_resp(DISCOVER_RESP_SIZE); in sas_get_phy_change_count()
1664 if (!disc_resp) in sas_get_phy_change_count()
1667 res = sas_get_phy_discover(dev, phy_id, disc_resp); in sas_get_phy_change_count()
1669 *pcc = disc_resp->disc.change_count; in sas_get_phy_change_count()
1671 kfree(disc_resp); in sas_get_phy_change_count()
1679 struct smp_disc_resp *disc_resp; in sas_get_phy_attached_dev() local
1681 disc_resp = alloc_smp_resp(DISCOVER_RESP_SIZE); in sas_get_phy_attached_dev()
1682 if (!disc_resp) in sas_get_phy_attached_dev()
1685 res = sas_get_phy_discover(dev, phy_id, disc_resp); in sas_get_phy_attached_dev()
1687 sas_get_sas_addr_and_dev_type(disc_resp, sas_addr, type); in sas_get_phy_attached_dev()
1688 kfree(disc_resp); in sas_get_phy_attached_dev()
1947 struct smp_disc_resp *disc_resp; in sas_rediscover_dev() local
1959 disc_resp = alloc_smp_resp(DISCOVER_RESP_SIZE); in sas_rediscover_dev()
1960 if (!disc_resp) in sas_rediscover_dev()
1963 res = sas_get_phy_discover(dev, phy_id, disc_resp); in sas_rediscover_dev()
1982 sas_get_sas_addr_and_dev_type(disc_resp, sas_addr, &type); in sas_rediscover_dev()
1992 sas_set_ex_phy(dev, phy_id, disc_resp); in sas_rediscover_dev()
2016 kfree(disc_resp); in sas_rediscover_dev()