• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/libsas/

Lines Matching defs:resp_data

21 static void sas_host_smp_discover(struct sas_ha_struct *sas_ha, u8 *resp_data,
28 resp_data[2] = SMP_RESP_NO_PHY;
31 resp_data[2] = SMP_RESP_FUNC_ACC;
34 resp_data[9] = phy_id;
35 resp_data[13] = phy->negotiated_linkrate;
36 memcpy(resp_data + 16, sas_ha->sas_addr, SAS_ADDR_SIZE);
37 memcpy(resp_data + 24, sas_ha->sas_phy[phy_id]->attached_sas_addr,
39 resp_data[40] = (phy->minimum_linkrate << 4) |
41 resp_data[41] = (phy->maximum_linkrate << 4) |
49 resp_data[12] = rphy->identify.device_type << 4;
50 resp_data[14] = rphy->identify.initiator_port_protocols;
51 resp_data[15] = rphy->identify.target_port_protocols;
54 static void sas_report_phy_sata(struct sas_ha_struct *sas_ha, u8 *resp_data,
62 resp_data[2] = SMP_RESP_NO_PHY;
66 resp_data[2] = SMP_RESP_PHY_NO_SATA;
77 resp_data[2] = SMP_RESP_FUNC_ACC;
78 resp_data[9] = phy_id;
79 memcpy(resp_data + 16, sas_ha->sas_phy[phy_id]->attached_sas_addr,
88 u8 *dst = resp_data + 24 + i, *src =
99 enum sas_linkrate max, u8 *resp_data)
106 resp_data[2] = SMP_RESP_NO_PHY;
120 resp_data[2] = SMP_RESP_PHY_UNK_OP;
128 resp_data[2] = SMP_RESP_FUNC_FAILED;
130 resp_data[2] = SMP_RESP_FUNC_ACC;
136 u8 *req_data = NULL, *resp_data = NULL, *buf;
155 resp_data = kzalloc(max(blk_rq_bytes(rsp), 128U), GFP_KERNEL);
157 if (!req_data || !resp_data) {
176 resp_data[0] = SMP_RESPONSE;
177 resp_data[1] = req_data[1];
178 resp_data[2] = SMP_RESP_FUNC_UNK;
184 resp_data[2] = SMP_RESP_FUNC_ACC;
185 resp_data[9] = sas_ha->num_phys;
191 resp_data[2] = SMP_RESP_FUNC_ACC;
192 memcpy(resp_data + 12, shost->hostt->name,
194 memcpy(resp_data + 20, "libsas virt phy",
209 sas_host_smp_discover(sas_ha, resp_data, req_data[9]);
223 sas_report_phy_sata(sas_ha, resp_data, req_data[9]);
247 resp_data);
260 memcpy(buf, resp_data, blk_rq_bytes(rsp));
267 kfree(resp_data);