Home
last modified time | relevance | path

Searched refs:event_w_idx (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/scsi/aic7xxx/
Daic7xxx.h668 uint8_t event_w_idx; member
Daic7xxx_core.c6716 if (lstate->event_w_idx >= lstate->event_r_idx) in ahc_queue_lstate_event()
6717 pending = lstate->event_w_idx - lstate->event_r_idx; in ahc_queue_lstate_event()
6720 - (lstate->event_r_idx - lstate->event_w_idx); in ahc_queue_lstate_event()
6731 lstate->event_w_idx = 0; in ahc_queue_lstate_event()
6746 event = &lstate->event_buffer[lstate->event_w_idx]; in ahc_queue_lstate_event()
6750 lstate->event_w_idx++; in ahc_queue_lstate_event()
6751 if (lstate->event_w_idx == AHC_TMODE_EVENT_BUFFER_SIZE) in ahc_queue_lstate_event()
6752 lstate->event_w_idx = 0; in ahc_queue_lstate_event()
6765 while (lstate->event_r_idx != lstate->event_w_idx in ahc_send_lstate_events()
Daic79xx.h722 uint8_t event_w_idx; member
Daic79xx_core.c9198 if (lstate->event_w_idx >= lstate->event_r_idx) in ahd_queue_lstate_event()
9199 pending = lstate->event_w_idx - lstate->event_r_idx; in ahd_queue_lstate_event()
9202 - (lstate->event_r_idx - lstate->event_w_idx); in ahd_queue_lstate_event()
9213 lstate->event_w_idx = 0; in ahd_queue_lstate_event()
9228 event = &lstate->event_buffer[lstate->event_w_idx]; in ahd_queue_lstate_event()
9232 lstate->event_w_idx++; in ahd_queue_lstate_event()
9233 if (lstate->event_w_idx == AHD_TMODE_EVENT_BUFFER_SIZE) in ahd_queue_lstate_event()
9234 lstate->event_w_idx = 0; in ahd_queue_lstate_event()
9247 while (lstate->event_r_idx != lstate->event_w_idx in ahd_send_lstate_events()