Lines Matching refs:disc_resp
201 struct smp_disc_resp *disc_resp) in sas_set_ex_phy() argument
206 struct discover_resp *dr = &disc_resp->disc; in sas_set_ex_phy()
223 switch (disc_resp->result) { in sas_set_ex_phy()
374 struct smp_disc_resp *disc_resp, in sas_ex_phy_discover_helper() argument
377 struct discover_resp *dr = &disc_resp->disc; in sas_ex_phy_discover_helper()
383 disc_resp, DISCOVER_RESP_SIZE); in sas_ex_phy_discover_helper()
390 sas_set_ex_phy(dev, single, disc_resp); in sas_ex_phy_discover_helper()
399 struct smp_disc_resp *disc_resp; in sas_ex_phy_discover() local
405 disc_resp = alloc_smp_resp(DISCOVER_RESP_SIZE); in sas_ex_phy_discover()
406 if (!disc_resp) { in sas_ex_phy_discover()
414 res = sas_ex_phy_discover_helper(dev, disc_req, disc_resp, single); in sas_ex_phy_discover()
420 disc_resp, i); in sas_ex_phy_discover()
426 kfree(disc_resp); in sas_ex_phy_discover()
1643 static void sas_get_sas_addr_and_dev_type(struct smp_disc_resp *disc_resp, in sas_get_sas_addr_and_dev_type() argument
1647 memcpy(sas_addr, disc_resp->disc.attached_sas_addr, SAS_ADDR_SIZE); in sas_get_sas_addr_and_dev_type()
1648 *type = to_dev_type(&disc_resp->disc); in sas_get_sas_addr_and_dev_type()
1654 int phy_id, struct smp_disc_resp *disc_resp) in sas_get_phy_discover() argument
1667 disc_resp, DISCOVER_RESP_SIZE); in sas_get_phy_discover()
1670 if (disc_resp->result != SMP_RESP_FUNC_ACC) in sas_get_phy_discover()
1671 res = disc_resp->result; in sas_get_phy_discover()
1681 struct smp_disc_resp *disc_resp; in sas_get_phy_change_count() local
1683 disc_resp = alloc_smp_resp(DISCOVER_RESP_SIZE); in sas_get_phy_change_count()
1684 if (!disc_resp) in sas_get_phy_change_count()
1687 res = sas_get_phy_discover(dev, phy_id, disc_resp); in sas_get_phy_change_count()
1689 *pcc = disc_resp->disc.change_count; in sas_get_phy_change_count()
1691 kfree(disc_resp); in sas_get_phy_change_count()
1699 struct smp_disc_resp *disc_resp; in sas_get_phy_attached_dev() local
1701 disc_resp = alloc_smp_resp(DISCOVER_RESP_SIZE); in sas_get_phy_attached_dev()
1702 if (!disc_resp) in sas_get_phy_attached_dev()
1705 res = sas_get_phy_discover(dev, phy_id, disc_resp); in sas_get_phy_attached_dev()
1707 sas_get_sas_addr_and_dev_type(disc_resp, sas_addr, type); in sas_get_phy_attached_dev()
1708 kfree(disc_resp); in sas_get_phy_attached_dev()
1970 struct smp_disc_resp *disc_resp; in sas_rediscover_dev() local
1982 disc_resp = alloc_smp_resp(DISCOVER_RESP_SIZE); in sas_rediscover_dev()
1983 if (!disc_resp) in sas_rediscover_dev()
1986 res = sas_get_phy_discover(dev, phy_id, disc_resp); in sas_rediscover_dev()
2005 sas_get_sas_addr_and_dev_type(disc_resp, sas_addr, &type); in sas_rediscover_dev()
2015 sas_set_ex_phy(dev, phy_id, disc_resp); in sas_rediscover_dev()
2039 kfree(disc_resp); in sas_rediscover_dev()