@@ -53,37 +53,37 @@ static void evtchn_2l_bind_to_cpu(struct irq_info *info, unsigned cpu)
53
53
set_bit (info -> evtchn , BM (per_cpu (cpu_evtchn_mask , cpu )));
54
54
}
55
55
56
- static void evtchn_2l_clear_pending (unsigned port )
56
+ static void evtchn_2l_clear_pending (evtchn_port_t port )
57
57
{
58
58
struct shared_info * s = HYPERVISOR_shared_info ;
59
59
sync_clear_bit (port , BM (& s -> evtchn_pending [0 ]));
60
60
}
61
61
62
- static void evtchn_2l_set_pending (unsigned port )
62
+ static void evtchn_2l_set_pending (evtchn_port_t port )
63
63
{
64
64
struct shared_info * s = HYPERVISOR_shared_info ;
65
65
sync_set_bit (port , BM (& s -> evtchn_pending [0 ]));
66
66
}
67
67
68
- static bool evtchn_2l_is_pending (unsigned port )
68
+ static bool evtchn_2l_is_pending (evtchn_port_t port )
69
69
{
70
70
struct shared_info * s = HYPERVISOR_shared_info ;
71
71
return sync_test_bit (port , BM (& s -> evtchn_pending [0 ]));
72
72
}
73
73
74
- static bool evtchn_2l_test_and_set_mask (unsigned port )
74
+ static bool evtchn_2l_test_and_set_mask (evtchn_port_t port )
75
75
{
76
76
struct shared_info * s = HYPERVISOR_shared_info ;
77
77
return sync_test_and_set_bit (port , BM (& s -> evtchn_mask [0 ]));
78
78
}
79
79
80
- static void evtchn_2l_mask (unsigned port )
80
+ static void evtchn_2l_mask (evtchn_port_t port )
81
81
{
82
82
struct shared_info * s = HYPERVISOR_shared_info ;
83
83
sync_set_bit (port , BM (& s -> evtchn_mask [0 ]));
84
84
}
85
85
86
- static void evtchn_2l_unmask (unsigned port )
86
+ static void evtchn_2l_unmask (evtchn_port_t port )
87
87
{
88
88
struct shared_info * s = HYPERVISOR_shared_info ;
89
89
unsigned int cpu = get_cpu ();
@@ -173,7 +173,7 @@ static void evtchn_2l_handle_events(unsigned cpu)
173
173
/* Timer interrupt has highest priority. */
174
174
irq = irq_from_virq (cpu , VIRQ_TIMER );
175
175
if (irq != -1 ) {
176
- unsigned int evtchn = evtchn_from_irq (irq );
176
+ evtchn_port_t evtchn = evtchn_from_irq (irq );
177
177
word_idx = evtchn / BITS_PER_LONG ;
178
178
bit_idx = evtchn % BITS_PER_LONG ;
179
179
if (active_evtchns (cpu , s , word_idx ) & (1ULL << bit_idx ))
@@ -228,7 +228,7 @@ static void evtchn_2l_handle_events(unsigned cpu)
228
228
229
229
do {
230
230
xen_ulong_t bits ;
231
- int port ;
231
+ evtchn_port_t port ;
232
232
233
233
bits = MASK_LSBS (pending_bits , bit_idx );
234
234
0 commit comments