Lines Matching refs:spriv

374 	struct esp_cmd_priv *spriv = ESP_CMD_PRIV(cmd);  in esp_map_dma()  local
387 spriv->num_sg = scsi_sg_count(cmd); in esp_map_dma()
389 scsi_for_each_sg(cmd, s, spriv->num_sg, i) { in esp_map_dma()
394 spriv->num_sg = scsi_dma_map(cmd); in esp_map_dma()
395 scsi_for_each_sg(cmd, s, spriv->num_sg, i) in esp_map_dma()
398 spriv->cur_residue = sg_dma_len(sg); in esp_map_dma()
399 spriv->prv_sg = NULL; in esp_map_dma()
400 spriv->cur_sg = sg; in esp_map_dma()
401 spriv->tot_residue = total; in esp_map_dma()
468 struct esp_cmd_priv *spriv = ESP_CMD_PRIV(cmd); in esp_save_pointers() local
474 ent->saved_cur_residue = spriv->cur_residue; in esp_save_pointers()
475 ent->saved_prv_sg = spriv->prv_sg; in esp_save_pointers()
476 ent->saved_cur_sg = spriv->cur_sg; in esp_save_pointers()
477 ent->saved_tot_residue = spriv->tot_residue; in esp_save_pointers()
483 struct esp_cmd_priv *spriv = ESP_CMD_PRIV(cmd); in esp_restore_pointers() local
489 spriv->cur_residue = ent->saved_cur_residue; in esp_restore_pointers()
490 spriv->prv_sg = ent->saved_prv_sg; in esp_restore_pointers()
491 spriv->cur_sg = ent->saved_cur_sg; in esp_restore_pointers()
492 spriv->tot_residue = ent->saved_tot_residue; in esp_restore_pointers()
959 struct esp_cmd_priv *spriv; in esp_queuecommand_lck() local
968 spriv = ESP_CMD_PRIV(cmd); in esp_queuecommand_lck()
969 spriv->num_sg = 0; in esp_queuecommand_lck()
1640 struct esp_cmd_priv *spriv; in esp_msgin_process() local
1648 spriv = ESP_CMD_PRIV(ent->cmd); in esp_msgin_process()
1650 if (spriv->cur_residue == sg_dma_len(spriv->cur_sg)) { in esp_msgin_process()
1651 spriv->cur_sg = spriv->prv_sg; in esp_msgin_process()
1652 spriv->cur_residue = 1; in esp_msgin_process()
1654 spriv->cur_residue++; in esp_msgin_process()
1655 spriv->tot_residue++; in esp_msgin_process()