aboutsummaryrefslogtreecommitdiff
path: root/hw/scsi/esp.c
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2021-03-04 22:10:47 +0000
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2021-03-07 10:39:05 +0000
commitc7bce09c0595b235ad367a12bae54cb04b33025b (patch)
tree217ac8c69a1a37b4b0bf1150733e9862de2e2032 /hw/scsi/esp.c
parent02abe246889398a108a3f92428b9f1f87e32de81 (diff)
esp: rename get_cmd_cb() to esp_select()
This better describes the purpose of the function. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20210304221103.6369-27-mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'hw/scsi/esp.c')
-rw-r--r--hw/scsi/esp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/scsi/esp.c b/hw/scsi/esp.c
index d5c03f9697..d8d7ede00a 100644
--- a/hw/scsi/esp.c
+++ b/hw/scsi/esp.c
@@ -199,7 +199,7 @@ static void esp_pdma_write(ESPState *s, uint8_t val)
esp_set_tc(s, dmalen);
}
-static int get_cmd_cb(ESPState *s)
+static int esp_select(ESPState *s)
{
int target;
@@ -256,7 +256,7 @@ static uint32_t get_cmd(ESPState *s)
}
trace_esp_get_cmd(dmalen, target);
- if (get_cmd_cb(s) < 0) {
+ if (esp_select(s) < 0) {
return 0;
}
return dmalen;
@@ -299,7 +299,7 @@ static void do_cmd(ESPState *s)
static void satn_pdma_cb(ESPState *s)
{
- if (get_cmd_cb(s) < 0) {
+ if (esp_select(s) < 0) {
return;
}
s->do_cmd = 0;
@@ -325,7 +325,7 @@ static void handle_satn(ESPState *s)
static void s_without_satn_pdma_cb(ESPState *s)
{
- if (get_cmd_cb(s) < 0) {
+ if (esp_select(s) < 0) {
return;
}
s->do_cmd = 0;
@@ -351,7 +351,7 @@ static void handle_s_without_atn(ESPState *s)
static void satn_stop_pdma_cb(ESPState *s)
{
- if (get_cmd_cb(s) < 0) {
+ if (esp_select(s) < 0) {
return;
}
s->do_cmd = 0;