• Home
  • Raw
  • Download

Lines Matching refs:dr

186 static enum sas_device_type to_dev_type(struct discover_resp *dr)  in to_dev_type()  argument
191 if (dr->attached_dev_type == SAS_PHY_UNUSED && dr->attached_sata_dev && in to_dev_type()
192 dr->linkrate >= SAS_LINK_RATE_1_5_GBPS) in to_dev_type()
195 return dr->attached_dev_type; in to_dev_type()
204 struct discover_resp *dr = &resp->disc; in sas_set_ex_phy() local
249 phy->attached_dev_type = to_dev_type(dr); in sas_set_ex_phy()
253 phy->linkrate = dr->linkrate; in sas_set_ex_phy()
254 phy->attached_sata_host = dr->attached_sata_host; in sas_set_ex_phy()
255 phy->attached_sata_dev = dr->attached_sata_dev; in sas_set_ex_phy()
256 phy->attached_sata_ps = dr->attached_sata_ps; in sas_set_ex_phy()
257 phy->attached_iproto = dr->iproto << 1; in sas_set_ex_phy()
258 phy->attached_tproto = dr->tproto << 1; in sas_set_ex_phy()
266 memcpy(phy->attached_sas_addr, dr->attached_sas_addr, SAS_ADDR_SIZE); in sas_set_ex_phy()
267 phy->attached_phy_id = dr->attached_phy_id; in sas_set_ex_phy()
268 phy->phy_change_count = dr->change_count; in sas_set_ex_phy()
269 phy->routing_attr = dr->routing_attr; in sas_set_ex_phy()
270 phy->virtual = dr->virtual; in sas_set_ex_phy()
274 phy->phy->identify.device_type = dr->attached_dev_type; in sas_set_ex_phy()
277 if (!phy->attached_tproto && dr->attached_sata_dev) in sas_set_ex_phy()
280 phy->phy->minimum_linkrate_hw = dr->hmin_linkrate; in sas_set_ex_phy()
281 phy->phy->maximum_linkrate_hw = dr->hmax_linkrate; in sas_set_ex_phy()
282 phy->phy->minimum_linkrate = dr->pmin_linkrate; in sas_set_ex_phy()
283 phy->phy->maximum_linkrate = dr->pmax_linkrate; in sas_set_ex_phy()
309 if (dr->attached_sata_dev) in sas_set_ex_phy()
375 struct discover_resp *dr; in sas_ex_phy_discover_helper() local
384 dr = &((struct smp_resp *)disc_resp)->disc; in sas_ex_phy_discover_helper()
385 if (memcmp(dev->sas_addr, dr->attached_sas_addr, SAS_ADDR_SIZE) == 0) { in sas_ex_phy_discover_helper()
1729 struct discover_resp *dr; in sas_get_phy_attached_dev() local
1734 dr = &disc_resp->disc; in sas_get_phy_attached_dev()
1739 *type = to_dev_type(dr); in sas_get_phy_attached_dev()