Lines Matching refs:resp
215 static void setup_response(struct sandbox_flash_priv *priv, void *resp, in setup_response() argument
225 assert(!resp || resp == priv->buff); in setup_response()
251 struct scsi_inquiry_resp *resp = (void *)priv->buff; in handle_ufi_command() local
254 memset(resp, '\0', sizeof(*resp)); in handle_ufi_command()
255 resp->data_format = 1; in handle_ufi_command()
256 resp->additional_len = 0x1f; in handle_ufi_command()
257 strncpy(resp->vendor, in handle_ufi_command()
259 sizeof(resp->vendor)); in handle_ufi_command()
260 strncpy(resp->product, in handle_ufi_command()
262 sizeof(resp->product)); in handle_ufi_command()
263 strncpy(resp->revision, "1.0", sizeof(resp->revision)); in handle_ufi_command()
264 setup_response(priv, resp, sizeof(*resp)); in handle_ufi_command()
271 struct scsi_read_capacity_resp *resp = (void *)priv->buff; in handle_ufi_command() local
278 resp->last_block_addr = cpu_to_be32(blocks); in handle_ufi_command()
279 resp->block_len = cpu_to_be32(SANDBOX_FLASH_BLOCK_LEN); in handle_ufi_command()
280 setup_response(priv, resp, sizeof(*resp)); in handle_ufi_command()