/openbmc/linux/drivers/net/ipa/ |
H A D | gsi.c | 515 struct gsi *gsi = channel->gsi; in gsi_channel_state() local 530 struct gsi *gsi = channel->gsi; in gsi_channel_command() local 831 struct gsi *gsi = channel->gsi; in gsi_channel_program() local 928 struct gsi *gsi = channel->gsi; in __gsi_channel_start() local 980 struct gsi *gsi = channel->gsi; in __gsi_channel_stop() local 1086 struct gsi *gsi = trans->gsi; in gsi_trans_tx_queued() local 1119 struct gsi *gsi = trans->gsi; in gsi_trans_tx_completed() local 1592 struct gsi *gsi = channel->gsi; in gsi_channel_doorbell() local 1606 struct gsi *gsi = channel->gsi; in gsi_channel_update() local 2115 struct gsi *gsi = channel->gsi; in gsi_channel_evt_ring_init() local [all …]
|
H A D | gsi.h | 29 struct gsi; 104 struct gsi *gsi; member 140 struct gsi { struct 170 int gsi_setup(struct gsi *gsi); 176 void gsi_teardown(struct gsi *gsi); 194 int gsi_channel_start(struct gsi *gsi, u32 channel_id); 203 int gsi_channel_stop(struct gsi *gsi, u32 channel_id); 232 void gsi_suspend(struct gsi *gsi); 238 void gsi_resume(struct gsi *gsi); 256 int gsi_channel_resume(struct gsi *gsi, u32 channel_id); [all …]
|
H A D | gsi_reg.c | 13 static bool gsi_reg_id_valid(struct gsi *gsi, enum gsi_reg_id reg_id) in gsi_reg_id_valid() argument 82 const struct reg *gsi_reg(struct gsi *gsi, enum gsi_reg_id reg_id) in gsi_reg() argument 90 static const struct regs *gsi_regs(struct gsi *gsi) in gsi_regs() argument 121 int gsi_reg_init(struct gsi *gsi, struct platform_device *pdev) in gsi_reg_init() argument 140 gsi->regs = gsi_regs(gsi); in gsi_reg_init() 141 if (!gsi->regs) { in gsi_reg_init() 147 if (!gsi->virt) { in gsi_reg_init() 156 void gsi_reg_exit(struct gsi *gsi) in gsi_reg_exit() argument 158 iounmap(gsi->virt); in gsi_reg_exit() 159 gsi->virt = NULL; in gsi_reg_exit() [all …]
|
H A D | ipa_gsi.c | 17 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_gsi_trans_complete() 24 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_gsi_trans_release() 29 void ipa_gsi_channel_tx_queued(struct gsi *gsi, u32 channel_id, u32 count, in ipa_gsi_channel_tx_queued() argument 32 struct ipa *ipa = container_of(gsi, struct ipa, gsi); in ipa_gsi_channel_tx_queued() 40 void ipa_gsi_channel_tx_completed(struct gsi *gsi, u32 channel_id, u32 count, in ipa_gsi_channel_tx_completed() argument 43 struct ipa *ipa = container_of(gsi, struct ipa, gsi); in ipa_gsi_channel_tx_completed()
|
H A D | gsi_trans.h | 21 struct gsi; 52 struct gsi *gsi; member 143 bool gsi_channel_trans_idle(struct gsi *gsi, u32 channel_id); 155 struct gsi_trans *gsi_channel_trans_alloc(struct gsi *gsi, u32 channel_id, 218 int gsi_trans_read_byte(struct gsi *gsi, u32 channel_id, dma_addr_t addr); 228 void gsi_trans_read_byte_done(struct gsi *gsi, u32 channel_id);
|
H A D | gsi_trans.c | 324 bool gsi_channel_trans_idle(struct gsi *gsi, u32 channel_id) in gsi_channel_trans_idle() argument 326 u32 tre_max = gsi_channel_tre_max(gsi, channel_id); in gsi_channel_trans_idle() 329 trans_info = &gsi->channel[channel_id].trans_info; in gsi_channel_trans_idle() 335 struct gsi_trans *gsi_channel_trans_alloc(struct gsi *gsi, u32 channel_id, in gsi_channel_trans_alloc() argument 339 struct gsi_channel *channel = &gsi->channel[channel_id]; in gsi_channel_trans_alloc() 358 trans->gsi = gsi; in gsi_channel_trans_alloc() 671 int gsi_trans_read_byte(struct gsi *gsi, u32 channel_id, dma_addr_t addr) in gsi_trans_read_byte() argument 673 struct gsi_channel *channel = &gsi->channel[channel_id]; in gsi_trans_read_byte() 696 void gsi_trans_read_byte_done(struct gsi *gsi, u32 channel_id) in gsi_trans_read_byte_done() argument 698 struct gsi_channel *channel = &gsi->channel[channel_id]; in gsi_trans_read_byte_done() [all …]
|
H A D | ipa_gsi.h | 11 struct gsi; 44 void ipa_gsi_channel_tx_queued(struct gsi *gsi, u32 channel_id, u32 count, 57 void ipa_gsi_channel_tx_completed(struct gsi *gsi, u32 channel_id, u32 count,
|
H A D | ipa_cmd.c | 328 struct device *dev = channel->gsi->dev; in ipa_cmd_pool_init() 342 struct device *dev = channel->gsi->dev; in ipa_cmd_pool_exit() 354 trans_info = &ipa->gsi.channel[endpoint->channel_id].trans_info; in ipa_cmd_payload_alloc() 365 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_table_init_add() 403 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_hdr_init_local_add() 432 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_register_write_add() 489 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_ip_packet_init_add() 514 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_dma_shared_mem_add() 554 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_ip_tag_status_add() 572 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_transfer_add() [all …]
|
H A D | gsi_reg.h | 15 struct gsi; 365 const struct reg *gsi_reg(struct gsi *gsi, enum gsi_reg_id reg_id); 375 int gsi_reg_init(struct gsi *gsi, struct platform_device *pdev); 381 void gsi_reg_exit(struct gsi *gsi);
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | gsi.c | 49 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in generate_completions() local 106 gsi = &mqp->gsi; in mlx5_ib_create_gsi() 156 dev->devr.ports[attr->port_num - 1].gsi = gsi; in mlx5_ib_create_gsi() 171 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_destroy_gsi() local 325 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_gsi_modify_qp() local 350 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_gsi_query_qp() local 362 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_add_outstanding_wr() local 366 if (gsi->outstanding_pi == gsi->outstanding_ci + gsi->cap.max_send_wr) { in mlx5_ib_add_outstanding_wr() 371 gsi_wr = &gsi->outstanding_wrs[gsi->outstanding_pi % in mlx5_ib_add_outstanding_wr() 433 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in mlx5_ib_gsi_post_send() local [all …]
|
/openbmc/linux/drivers/perf/ |
H A D | arm_pmu_acpi.c | 25 int gsi, trigger; in arm_pmu_acpi_register_irq() local 29 gsi = gicc->performance_interrupt; in arm_pmu_acpi_register_irq() 38 if (!gsi) in arm_pmu_acpi_register_irq() 63 int gsi; in arm_pmu_acpi_unregister_irq() local 68 if (gsi) in arm_pmu_acpi_unregister_irq() 69 acpi_unregister_gsi(gsi); in arm_pmu_acpi_unregister_irq() 77 u16 this_gsi = 0, gsi = 0; in arm_acpi_register_pmu_device() local 98 return gsi ? -ENXIO : 0; in arm_acpi_register_pmu_device() 102 if (!gsi) { in arm_acpi_register_pmu_device() 104 gsi = this_gsi; in arm_acpi_register_pmu_device() [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | irq.c | 16 static u32 (*acpi_gsi_to_irq_fallback)(u32 gsi); 28 int acpi_gsi_to_irq(u32 gsi, unsigned int *irq) in acpi_gsi_to_irq() argument 32 d = irq_find_matching_fwnode(acpi_get_gsi_domain_id(gsi), in acpi_gsi_to_irq() 34 *irq = irq_find_mapping(d, gsi); in acpi_gsi_to_irq() 40 *irq = acpi_gsi_to_irq_fallback(gsi); in acpi_gsi_to_irq() 62 fwspec.fwnode = acpi_get_gsi_domain_id(gsi); in acpi_register_gsi() 68 fwspec.param[0] = gsi; in acpi_register_gsi() 84 void acpi_unregister_gsi(u32 gsi) in acpi_unregister_gsi() argument 94 irq = irq_find_mapping(d, gsi); in acpi_unregister_gsi() 113 u32 gsi) in acpi_get_irq_source_fwhandle() argument [all …]
|
H A D | evged.c | 51 unsigned int gsi; member 61 acpi_ret = acpi_execute_simple_method(event->handle, NULL, event->gsi); in acpi_ged_irq_handler() 73 unsigned int gsi; in acpi_ged_request_interrupt() local 93 gsi = p->interrupts[0]; in acpi_ged_request_interrupt() 96 gsi = pext->interrupts[0]; in acpi_ged_request_interrupt() 102 switch (gsi) { in acpi_ged_request_interrupt() 105 trigger == ACPI_EDGE_SENSITIVE ? 'E' : 'L', gsi); in acpi_ged_request_interrupt() 122 event->gsi = gsi; in acpi_ged_request_interrupt() 136 dev_dbg(dev, "GED listening GSI %u @ IRQ %u\n", gsi, irq); in acpi_ged_request_interrupt() 172 event->gsi, event->irq); in ged_shutdown()
|
H A D | pci_irq.c | 386 int gsi; in acpi_pci_irq_enable() local 426 gsi = acpi_pci_link_allocate_irq(entry->link, in acpi_pci_irq_enable() 431 gsi = entry->index; in acpi_pci_irq_enable() 433 gsi = -1; in acpi_pci_irq_enable() 435 if (gsi < 0) { in acpi_pci_irq_enable() 469 pin_name(pin), link_desc, gsi, in acpi_pci_irq_enable() 480 int gsi; in acpi_pci_irq_disable() local 500 gsi = acpi_pci_link_free_irq(entry->link); in acpi_pci_irq_disable() 502 gsi = entry->index; in acpi_pci_irq_disable() 512 if (gsi >= 0) { in acpi_pci_irq_disable() [all …]
|
/openbmc/linux/arch/ia64/kernel/ |
H A D | iosapic.c | 199 irq = __gsi_to_irq(gsi); in gsi_to_irq() 226 rte = find_rte(irq, gsi); in set_rte() 559 index = find_iosapic(gsi); in register_intr() 562 __func__, gsi); in register_intr() 566 rte = find_rte(irq, gsi); in register_intr() 729 irq = __gsi_to_irq(gsi); in iosapic_register_intr() 731 rte = find_rte(irq, gsi); in iosapic_register_intr() 795 irq = gsi_to_irq(gsi); in iosapic_unregister_intr() 798 gsi); in iosapic_unregister_intr() 806 gsi); in iosapic_unregister_intr() [all …]
|
/openbmc/linux/arch/x86/pci/ |
H A D | xen.c | 38 u8 gsi; in xen_pcifront_enable_irq() local 47 pirq = gsi; in xen_pcifront_enable_irq() 49 if (gsi < nr_legacy_irqs()) in xen_pcifront_enable_irq() 55 gsi, pirq, rc); in xen_pcifront_enable_irq() 72 irq = xen_irq_from_gsi(gsi); in xen_register_pirq() 77 pirq = gsi; in xen_register_pirq() 81 map_irq.index = gsi; in xen_register_pirq() 113 return xen_register_pirq(gsi, trigger, in acpi_register_gsi_xen_hvm() 127 gsi, triggering, polarity); in xen_register_gsi() 131 setup_gsi.gsi = gsi; in xen_register_gsi() [all …]
|
/openbmc/linux/scripts/gcc-plugins/ |
H A D | stackleak_plugin.c | 67 gsi_insert_before(gsi, gimple_call, GSI_SAME_STMT); in add_stack_tracking_gcall() 134 add_stack_tracking_gcall(gsi, after); in add_stack_tracking_gasm() 146 gsi_insert_before(gsi, asm_call, GSI_SAME_STMT); in add_stack_tracking_gasm() 161 add_stack_tracking_gasm(gsi, after); in add_stack_tracking() 163 add_stack_tracking_gcall(gsi, after); in add_stack_tracking() 175 gimple_stmt_iterator gsi = { 0 }; in stackleak_instrument_execute() local 191 for (gsi = gsi_start_bb(bb); !gsi_end_p(gsi); gsi_next(&gsi)) { in stackleak_instrument_execute() 194 stmt = gsi_stmt(gsi); in stackleak_instrument_execute() 209 add_stack_tracking(&gsi, true); in stackleak_instrument_execute() 253 gsi = gsi_after_labels(bb); in stackleak_instrument_execute() [all …]
|
H A D | latent_entropy_plugin.c | 342 gimple_stmt_iterator gsi; in perturb_local_entropy() local 349 gsi = gsi_after_labels(bb); in perturb_local_entropy() 368 gsi_insert_before(gsi, assign, GSI_NEW_STMT); in __perturb_latent_entropy() 374 gsi_insert_after(gsi, assign, GSI_NEW_STMT); in __perturb_latent_entropy() 379 gsi_insert_after(gsi, assign, GSI_NEW_STMT); in __perturb_latent_entropy() 385 gimple_stmt_iterator gsi; in handle_tail_calls() local 387 for (gsi = gsi_start_bb(bb); !gsi_end_p(gsi); gsi_next(&gsi)) { in handle_tail_calls() 389 gimple stmt = gsi_stmt(gsi); in handle_tail_calls() 446 gsi_insert_before(&gsi, call, GSI_NEW_STMT); in init_local_entropy() 451 gsi_insert_after(&gsi, assign, GSI_NEW_STMT); in init_local_entropy() [all …]
|
H A D | structleak_plugin.c | 119 gimple_stmt_iterator gsi; in initialize() local 128 for (gsi = gsi_start_bb(bb); !gsi_end_p(gsi); gsi_next(&gsi)) { in initialize() 129 gimple stmt = gsi_stmt(gsi); in initialize() 163 gsi = gsi_after_labels(single_succ(ENTRY_BLOCK_PTR_FOR_FN(cfun))); in initialize() 164 gsi_insert_before(&gsi, init_stmt, GSI_NEW_STMT); in initialize()
|
/openbmc/linux/arch/x86/kernel/acpi/ |
H A D | boot.c | 423 u8 trigger, u32 gsi); 426 u32 gsi) in mp_override_legacy_irq() argument 451 if (gsi < nr_legacy_irqs() && isa_irq_to_gsi[gsi] == gsi) in mp_override_legacy_irq() 492 u8 trigger, u32 gsi) in mp_register_ioapic_irq() argument 574 acpi_sci_override_gsi = gsi; in acpi_sci_ioapic_setup() 697 *irqp = gsi; in acpi_gsi_to_irq() 735 elcr_set_level_irq(gsi); in acpi_register_gsi_pic() 738 return gsi; in acpi_register_gsi_pic() 745 int irq = gsi; in acpi_register_gsi_ioapic() 803 __acpi_unregister_gsi(gsi); in acpi_unregister_gsi() [all …]
|
/openbmc/linux/virt/kvm/ |
H A D | eventfd.c | 323 irqfd->gsi = args->gsi; in kvm_irqfd_assign() 359 if (resampler->notifier.gsi == irqfd->gsi) { in kvm_irqfd_assign() 376 resampler->notifier.gsi = irqfd->gsi; in kvm_irqfd_assign() 470 int gsi, idx; in kvm_irq_has_notifier() local 474 if (gsi != -1) in kvm_irq_has_notifier() 477 if (kian->gsi == gsi) { in kvm_irq_has_notifier() 494 if (kian->gsi == gsi) in kvm_notify_acked_gsi() 500 int gsi, idx; in kvm_notify_acked_irq() local 506 if (gsi != -1) in kvm_notify_acked_irq() 660 int gsi, idx; in kvm_notify_irqfd_resampler() local [all …]
|
H A D | irqchip.c | 22 struct kvm_kernel_irq_routing_entry *entries, int gsi) in kvm_irq_map_gsi() argument 30 if (irq_rt && gsi < irq_rt->nr_rt_entries) { in kvm_irq_map_gsi() 31 hlist_for_each_entry(e, &irq_rt->map[gsi], link) { in kvm_irq_map_gsi() 134 u32 gsi = array_index_nospec(ue->gsi, KVM_MAX_IRQ_ROUTES); in setup_routing_entry() local 140 hlist_for_each_entry(ei, &rt->map[gsi], link) in setup_routing_entry() 146 e->gsi = gsi; in setup_routing_entry() 152 rt->chip[e->irqchip.irqchip][e->irqchip.pin] = e->gsi; in setup_routing_entry() 154 hlist_add_head(&e->link, &rt->map[e->gsi]); in setup_routing_entry() 179 if (ue[i].gsi >= KVM_MAX_IRQ_ROUTES) in kvm_set_irq_routing() 181 nr_rt_entries = max(nr_rt_entries, ue[i].gsi); in kvm_set_irq_routing()
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-loongarch-cpu.c | 19 static u32 lpic_gsi_to_irq(u32 gsi) in lpic_gsi_to_irq() argument 24 if (gsi >= GSI_MIN_PCH_IRQ && gsi <= GSI_MAX_PCH_IRQ) in lpic_gsi_to_irq() 25 irq = acpi_register_gsi(NULL, gsi, ACPI_LEVEL_SENSITIVE, ACPI_ACTIVE_HIGH); in lpic_gsi_to_irq() 30 static struct fwnode_handle *lpic_get_gsi_domain_id(u32 gsi) in lpic_get_gsi_domain_id() argument 35 switch (gsi) { in lpic_get_gsi_domain_id() 47 id = find_pch_pic(gsi); in lpic_get_gsi_domain_id()
|
/openbmc/qemu/hw/i386/kvm/ |
H A D | xen_evtchn.c | 127 int gsi; member 473 gsi = 0; in xen_evtchn_set_callback_param() 1595 s->pirq[pirq].gsi = gsi; in allocate_pirq() 1606 if (!s || gsi < 0 || gsi >= IOAPIC_NUM_PINS) { in xen_evtchn_set_gsi() 1620 if (gsi && gsi == s->callback_gsi) { in xen_evtchn_set_gsi() 1836 if (gsi < 0 || gsi >= IOAPIC_NUM_PINS) { in xen_physdev_map_pirq() 1862 s->pirq[pirq].gsi = gsi; in xen_physdev_map_pirq() 1874 int gsi; in xen_physdev_unmap_pirq() local 1895 gsi = s->pirq[pirq].gsi; in xen_physdev_unmap_pirq() 1921 int gsi; in xen_physdev_eoi_pirq() local [all …]
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | io_apic.h | 145 extern int mp_find_ioapic(u32 gsi); 146 extern int mp_find_ioapic_pin(int ioapic, u32 gsi); 147 extern int mp_map_gsi_to_irq(u32 gsi, unsigned int flags, 187 static inline int mp_find_ioapic(u32 gsi) { return 0; } in mp_find_ioapic() argument 188 static inline int mp_map_gsi_to_irq(u32 gsi, unsigned int flags, in mp_map_gsi_to_irq() argument 191 return gsi; in mp_map_gsi_to_irq()
|