Lines Matching refs:gsi
65 unsigned int gsi, unsigned int *pin) in gsi_vioapic() argument
73 if ( gsi >= vioapic->base_gsi && in gsi_vioapic()
74 gsi < vioapic->base_gsi + vioapic->nr_pins ) in gsi_vioapic()
76 *pin = gsi - vioapic->base_gsi; in gsi_vioapic()
161 static int vioapic_hwdom_map_gsi(unsigned int gsi, unsigned int trig, in vioapic_hwdom_map_gsi() argument
167 .machine_irq = gsi, in vioapic_hwdom_map_gsi()
169 int ret, pirq = gsi; in vioapic_hwdom_map_gsi()
174 ret = mp_register_gsi(gsi, trig, pol); in vioapic_hwdom_map_gsi()
180 gsi, ret); in vioapic_hwdom_map_gsi()
188 gsi, ret); in vioapic_hwdom_map_gsi()
197 gsi, ret); in vioapic_hwdom_map_gsi()
215 unsigned int gsi = vioapic->base_gsi + idx; in vioapic_write_redirent() local
243 ret = vioapic_hwdom_map_gsi(gsi, ent.fields.trig_mode, in vioapic_write_redirent()
253 if ( gsi == 0 ) in vioapic_write_redirent()
269 if ( gsi == 0 || unmasked ) in vioapic_write_redirent()
539 int vioapic_get_mask(const struct domain *d, unsigned int gsi) in vioapic_get_mask() argument
542 const struct hvm_vioapic *vioapic = gsi_vioapic(d, gsi, &pin); in vioapic_get_mask()
550 int vioapic_get_vector(const struct domain *d, unsigned int gsi) in vioapic_get_vector() argument
553 const struct hvm_vioapic *vioapic = gsi_vioapic(d, gsi, &pin); in vioapic_get_vector()
561 int vioapic_get_trigger_mode(const struct domain *d, unsigned int gsi) in vioapic_get_trigger_mode() argument
564 const struct hvm_vioapic *vioapic = gsi_vioapic(d, gsi, &pin); in vioapic_get_trigger_mode()