| /Linux-v5.15/drivers/infiniband/hw/mlx5/ |
| D | gsi.c | 46 /* Call with gsi->lock locked */ 49 struct mlx5_ib_gsi_qp *gsi = &mqp->gsi; in generate_completions() local 54 for (index = gsi->outstanding_ci; index != gsi->outstanding_pi; in generate_completions() 56 wr = &gsi->outstanding_wrs[index % gsi->cap.max_send_wr]; in generate_completions() 65 gsi->outstanding_ci = index; in generate_completions() 70 struct mlx5_ib_gsi_qp *gsi = cq->cq_context; in handle_single_completion() local 73 struct mlx5_ib_qp *mqp = container_of(gsi, struct mlx5_ib_qp, gsi); in handle_single_completion() 77 spin_lock_irqsave(&gsi->lock, flags); in handle_single_completion() 85 spin_unlock_irqrestore(&gsi->lock, flags); in handle_single_completion() 92 struct mlx5_ib_gsi_qp *gsi; in mlx5_ib_create_gsi() local [all …]
|
| /Linux-v5.15/drivers/net/ipa/ |
| D | gsi.c | 18 #include "gsi.h" 29 * The generic software interface (GSI) is an integral component of the IPA, 31 * and the IPA core. The modem uses the GSI layer as well. 41 * | GSI | 52 * Each EE uses a set of unidirectional GSI "channels," which allow transfer 64 * Each channel has a GSI "event ring" associated with it. An event ring 68 * The GSI then writes its doorbell for the event ring, causing the target 84 * Note that all GSI registers are little-endian, which is the assumed 175 return channel - &channel->gsi->channel[0]; in gsi_channel_id() 178 /* An initialized channel has a non-null GSI pointer */ [all …]
|
| D | gsi.h | 29 struct gsi; 109 struct gsi *gsi; member 148 struct gsi { struct 161 u32 type_enabled_bitmap; /* GSI IRQ types enabled */ 169 * gsi_setup() - Set up the GSI subsystem 170 * @gsi: Address of GSI structure embedded in an IPA structure argument 174 * Performs initialization that must wait until the GSI hardware is 177 int gsi_setup(struct gsi *gsi); 180 * gsi_teardown() - Tear down GSI subsystem 181 * @gsi: GSI address previously passed to a successful gsi_setup() call [all …]
|
| D | ipa_gsi.h | 11 struct gsi; 16 * ipa_gsi_trans_complete() - GSI transaction completion callback 19 * This called from the GSI layer to notify the IPA layer that a 25 * ipa_gsi_trans_release() - GSI transaction release callback 28 * This called from the GSI layer to notify the IPA layer that a 35 * ipa_gsi_channel_tx_queued() - GSI queued to hardware notification 36 * @gsi: GSI pointer 41 * This called from the GSI layer to notify the IPA layer that some 44 void ipa_gsi_channel_tx_queued(struct gsi *gsi, u32 channel_id, u32 count, 48 * ipa_gsi_channel_tx_completed() - GSI transaction completion callback [all …]
|
| D | ipa_version.h | 11 * @IPA_VERSION_3_0: IPA version 3.0/GSI version 1.0 12 * @IPA_VERSION_3_1: IPA version 3.1/GSI version 1.1 13 * @IPA_VERSION_3_5: IPA version 3.5/GSI version 1.2 14 * @IPA_VERSION_3_5_1: IPA version 3.5.1/GSI version 1.3 15 * @IPA_VERSION_4_0: IPA version 4.0/GSI version 2.0 16 * @IPA_VERSION_4_1: IPA version 4.1/GSI version 2.0 17 * @IPA_VERSION_4_2: IPA version 4.2/GSI version 2.2 18 * @IPA_VERSION_4_5: IPA version 4.5/GSI version 2.5 19 * @IPA_VERSION_4_7: IPA version 4.7/GSI version 2.7 20 * @IPA_VERSION_4_9: IPA version 4.9/GSI version 2.9 [all …]
|
| D | gsi_trans.h | 21 struct gsi; 26 * struct gsi_trans - a GSI transaction 30 * @gsi: GSI pointer 51 struct gsi *gsi; member 74 * @pool: GSI transaction poll pointer 133 * gsi_channel_trans_alloc() - Allocate a GSI transaction on a channel 134 * @gsi: GSI pointer 139 * Return: A GSI transaction structure, or a null pointer if all 142 struct gsi_trans *gsi_channel_trans_alloc(struct gsi *gsi, u32 channel_id, 147 * gsi_trans_free() - Free a previously-allocated GSI transaction [all …]
|
| 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()
|
| D | gsi_trans.c | 14 #include "gsi.h" 22 * DOC: GSI Transactions 24 * A GSI transaction abstracts the behavior of a GSI channel by representing 27 * command.) Most details of interaction with the GSI hardware are managed 28 * by the GSI transaction core, allowing users to simply describe commands 33 * To perform a command (or set of them), a user of the GSI transaction 52 * Committing transfers ownership of the entire transaction to the GSI 53 * transaction core. The GSI transaction code formats the content of 58 * GSI hardware has completed it. Because transfers described by TREs are 64 * GSI code into the IPA layer, allowing it to perform any final cleanup [all …]
|
| D | ipa_data.h | 16 * DOC: IPA/GSI Configuration Data 19 * IPA and GSI resources to use for a given platform. This data is supplied 30 * GSI channels. A channel is a GSI construct, and represents a single 34 * the only GSI channels of concern to this driver belong to the AP 40 * added. IPA endpoint and GSI channel configuration data are defined 44 * are common to IPA and GSI (EE ID, channel ID, endpoint ID, and direction); 45 * properties associated with the GSI channel; and properties associated with 71 * struct gsi_channel_data - GSI channel configuration data 76 * A GSI channel is a unidirectional means of transferring data to or 77 * from (and through) the IPA. A GSI channel has a ring buffer made [all …]
|
| D | ipa.h | 15 #include "gsi.h" 32 * @gsi: Embedded GSI structure 66 * @channel_map: Mapping of GSI channel to IPA endpoint 74 struct gsi gsi; member 138 * The setup stage is performed only after the GSI hardware is ready 145 * In order for the GSI hardware to be functional it needs firmware to be 147 * GSI initialization can be done either by Trust Zone on the AP or by the 150 * If it's done by Trust Zone, the AP loads the GSI firmware and supplies 152 * verification was successful, the GSI layer is ready and ipa_setup() 155 * If the modem performs early GSI initialization, the AP needs to know
|
| D | gsi_private.h | 9 /* === Only "gsi.c" and "gsi_trans.c" should include this file === */ 23 * gsi_trans_move_complete() - Mark a GSI transaction completed 35 * gsi_trans_complete() - Complete a GSI transaction 47 * Return: The GSI transaction pointer associated with the TRE index 75 * gsi_channel_trans_init() - Initialize a channel's GSI transaction info 76 * @gsi: GSI pointer 83 int gsi_channel_trans_init(struct gsi *gsi, u32 channel_id); 95 * Rings a channel's doorbell to inform the GSI hardware that new
|
| D | ipa_cmd.c | 13 #include "gsi.h" 28 * Immediate commands are represented by GSI transactions just like other 29 * transfer requests, represented by a single GSI TRE. Each immediate 352 struct device *dev = channel->gsi->dev; in ipa_cmd_pool_init() 381 struct device *dev = channel->gsi->dev; in ipa_cmd_pool_exit() 394 trans_info = &ipa->gsi.channel[endpoint->channel_id].trans_info; in ipa_cmd_payload_alloc() 405 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_table_init_add() 444 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_hdr_init_local_add() 474 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_register_write_add() 531 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_ip_packet_init_add() [all …]
|
| D | ipa_endpoint.c | 14 #include "gsi.h" 230 struct gsi *gsi = &endpoint->ipa->gsi; in ipa_endpoint_trans_alloc() local 236 return gsi_channel_trans_alloc(gsi, channel_id, tre_count, direction); in ipa_endpoint_trans_alloc() 1063 struct gsi *gsi; in ipa_endpoint_replenish() local 1093 gsi = &endpoint->ipa->gsi; in ipa_endpoint_replenish() 1094 if (backlog == gsi_channel_tre_max(gsi, endpoint->channel_id)) in ipa_endpoint_replenish() 1101 struct gsi *gsi = &endpoint->ipa->gsi; in ipa_endpoint_replenish_enable() local 1110 max_backlog = gsi_channel_tre_max(gsi, endpoint->channel_id); in ipa_endpoint_replenish_enable() 1400 * on its underlying GSI channel, a special sequence of actions must be 1409 struct gsi *gsi = &ipa->gsi; in ipa_endpoint_reset_rx_aggr() local [all …]
|
| /Linux-v5.15/drivers/acpi/ |
| D | irq.c | 3 * ACPI GSI IRQ layer 18 * acpi_gsi_to_irq() - Retrieve the linux irq number for a given GSI 19 * @gsi: GSI IRQ number to map 27 int acpi_gsi_to_irq(u32 gsi, unsigned int *irq) in acpi_gsi_to_irq() argument 32 *irq = irq_find_mapping(d, gsi); in acpi_gsi_to_irq() 42 * acpi_register_gsi() - Map a GSI to a linux IRQ number 44 * @gsi: GSI IRQ number 45 * @trigger: trigger type of the GSI number to be mapped 46 * @polarity: polarity of the GSI to be mapped 51 int acpi_register_gsi(struct device *dev, u32 gsi, int trigger, in acpi_register_gsi() argument [all …]
|
| 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() 171 dev_dbg(geddev->dev, "GED releasing GSI %u @ IRQ %u\n", in ged_shutdown() [all …]
|
| D | pci_irq.c | 30 u32 index; /* GSI, or link _CRS index */ 327 dev_dbg(&dev->dev, "Derived GSI INT %c from %s\n", in acpi_pci_irq_lookup() 350 dev_warn(&dev->dev, "PCI INT %c: no GSI - using ISA IRQ %d\n", in acpi_isa_register_gsi() 386 int gsi; in acpi_pci_irq_enable() local 424 gsi = acpi_pci_link_allocate_irq(entry->link, in acpi_pci_irq_enable() 429 gsi = entry->index; in acpi_pci_irq_enable() 431 gsi = -1; in acpi_pci_irq_enable() 433 if (gsi < 0) { in acpi_pci_irq_enable() 444 dev_warn(&dev->dev, "PCI INT %c: no GSI\n", in acpi_pci_irq_enable() 451 rc = acpi_register_gsi(&dev->dev, gsi, triggering, polarity); in acpi_pci_irq_enable() [all …]
|
| /Linux-v5.15/arch/ia64/kernel/ |
| D | iosapic.c | 58 * Each interrupt line has a unique Global System Interrupt (GSI) number 59 * which can be calculated as the sum of the controller's base GSI number 74 * PCI pin -> global system interrupt (GSI) -> IA-64 vector <-> IRQ 119 unsigned int gsi_base; /* GSI base */ 161 * Find an IOSAPIC associated with a GSI 164 find_iosapic (unsigned int gsi) in find_iosapic() argument 169 if ((unsigned) (gsi - iosapic_lists[i].gsi_base) < in find_iosapic() 177 static inline int __gsi_to_irq(unsigned int gsi) in __gsi_to_irq() argument 186 if (rte->iosapic->gsi_base + rte->rte_index == gsi) in __gsi_to_irq() 193 gsi_to_irq (unsigned int gsi) in gsi_to_irq() argument [all …]
|
| /Linux-v5.15/arch/x86/pci/ |
| D | xen.c | 4 * initial domain support. We also handle the DSDT _PRT callbacks for GSI's 37 u8 gsi; in xen_pcifront_enable_irq() local 39 rc = pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &gsi); in xen_pcifront_enable_irq() 46 pirq = gsi; in xen_pcifront_enable_irq() 48 if (gsi < nr_legacy_irqs()) in xen_pcifront_enable_irq() 51 rc = xen_bind_pirq_gsi_to_irq(gsi, pirq, share, "pcifront"); in xen_pcifront_enable_irq() 53 dev_warn(&dev->dev, "Xen PCI: failed to bind GSI%d (PIRQ%d) to IRQ: %d\n", in xen_pcifront_enable_irq() 54 gsi, pirq, rc); in xen_pcifront_enable_irq() 59 dev_info(&dev->dev, "Xen PCI mapped GSI%d to IRQ%d\n", gsi, dev->irq); in xen_pcifront_enable_irq() 64 static int xen_register_pirq(u32 gsi, int triggering, bool set_pirq) in xen_register_pirq() argument [all …]
|
| /Linux-v5.15/drivers/perf/ |
| D | arm_pmu_acpi.c | 24 int gsi, trigger; in arm_pmu_acpi_register_irq() local 28 gsi = gicc->performance_interrupt; in arm_pmu_acpi_register_irq() 32 * have an interrupt. QEMU advertises this by using a GSI of zero, in arm_pmu_acpi_register_irq() 35 * GSI of zero for now. in arm_pmu_acpi_register_irq() 37 if (!gsi) in arm_pmu_acpi_register_irq() 56 return acpi_register_gsi(NULL, gsi, trigger, ACPI_ACTIVE_HIGH); in arm_pmu_acpi_register_irq() 62 int gsi; in arm_pmu_acpi_unregister_irq() local 66 gsi = gicc->performance_interrupt; in arm_pmu_acpi_unregister_irq() 67 if (gsi) in arm_pmu_acpi_unregister_irq() 68 acpi_unregister_gsi(gsi); in arm_pmu_acpi_unregister_irq() [all …]
|
| /Linux-v5.15/virt/kvm/ |
| D | irqchip.c | 23 struct kvm_kernel_irq_routing_entry *entries, int gsi) in kvm_irq_map_gsi() argument 31 if (irq_rt && gsi < irq_rt->nr_rt_entries) { in kvm_irq_map_gsi() 32 hlist_for_each_entry(e, &irq_rt->map[gsi], link) { in kvm_irq_map_gsi() 135 u32 gsi = array_index_nospec(ue->gsi, KVM_MAX_IRQ_ROUTES); in setup_routing_entry() local 138 * Do not allow GSI to be mapped to the same irqchip more than once. in setup_routing_entry() 139 * Allow only one to one mapping between GSI and non-irqchip routing. in setup_routing_entry() 141 hlist_for_each_entry(ei, &rt->map[gsi], link) in setup_routing_entry() 147 e->gsi = gsi; in setup_routing_entry() 153 rt->chip[e->irqchip.irqchip][e->irqchip.pin] = e->gsi; in setup_routing_entry() 155 hlist_add_head(&e->link, &rt->map[e->gsi]); in setup_routing_entry() [all …]
|
| D | eventfd.c | 49 kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID, irqfd->gsi, 1, in irqfd_inject() 51 kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID, irqfd->gsi, 0, in irqfd_inject() 55 irqfd->gsi, 1, false); in irqfd_inject() 60 * then notify all of the resampler irqfds using this GSI. We can't 76 resampler->notifier.gsi, 0, false); in irqfd_resampler_ack() 101 resampler->notifier.gsi, 0, false); in irqfd_resampler_shutdown() 254 n_entries = kvm_irq_map_gsi(kvm, entries, irqfd->gsi); in irqfd_update() 307 irqfd->gsi = args->gsi; in kvm_irqfd_assign() 343 if (resampler->notifier.gsi == irqfd->gsi) { in kvm_irqfd_assign() 360 resampler->notifier.gsi = irqfd->gsi; in kvm_irqfd_assign() [all …]
|
| /Linux-v5.15/arch/x86/kernel/acpi/ |
| D | boot.c | 95 * any gsi as specified by an interrupt source override. 336 u8 trigger, u32 gsi); 339 u32 gsi) in mp_override_legacy_irq() argument 357 if (mp_register_ioapic_irq(bus_irq, polarity, trigger, gsi) < 0) in mp_override_legacy_irq() 360 * Reset default identity mapping if gsi is also an legacy IRQ, in mp_override_legacy_irq() 361 * otherwise there will be more than one entry with the same GSI in mp_override_legacy_irq() 364 if (gsi < nr_legacy_irqs() && isa_irq_to_gsi[gsi] == gsi) in mp_override_legacy_irq() 365 isa_irq_to_gsi[gsi] = INVALID_ACPI_IRQ; in mp_override_legacy_irq() 366 isa_irq_to_gsi[bus_irq] = gsi; in mp_override_legacy_irq() 369 static int mp_config_acpi_gsi(struct device *dev, u32 gsi, int trigger, in mp_config_acpi_gsi() argument [all …]
|
| /Linux-v5.15/scripts/gcc-plugins/ |
| D | latent_entropy_plugin.c | 336 gimple_stmt_iterator gsi; in perturb_local_entropy() local 343 gsi = gsi_after_labels(bb); in perturb_local_entropy() 344 gsi_insert_before(&gsi, assign, GSI_NEW_STMT); in perturb_local_entropy() 348 static void __perturb_latent_entropy(gimple_stmt_iterator *gsi, in __perturb_latent_entropy() argument 362 gsi_insert_before(gsi, assign, GSI_NEW_STMT); in __perturb_latent_entropy() 368 gsi_insert_after(gsi, assign, GSI_NEW_STMT); in __perturb_latent_entropy() 373 gsi_insert_after(gsi, assign, GSI_NEW_STMT); in __perturb_latent_entropy() 379 gimple_stmt_iterator gsi; in handle_tail_calls() local 381 for (gsi = gsi_start_bb(bb); !gsi_end_p(gsi); gsi_next(&gsi)) { in handle_tail_calls() 383 gimple stmt = gsi_stmt(gsi); in handle_tail_calls() [all …]
|
| D | stackleak_plugin.c | 54 static void add_stack_tracking_gcall(gimple_stmt_iterator *gsi, bool after) in add_stack_tracking_gcall() argument 65 gsi_insert_after(gsi, gimple_call, GSI_CONTINUE_LINKING); in add_stack_tracking_gcall() 67 gsi_insert_before(gsi, gimple_call, GSI_SAME_STMT); in add_stack_tracking_gcall() 113 static void add_stack_tracking_gasm(gimple_stmt_iterator *gsi, bool after) in add_stack_tracking_gasm() argument 134 add_stack_tracking_gcall(gsi, after); in add_stack_tracking_gasm() 144 gsi_insert_after(gsi, asm_call, GSI_CONTINUE_LINKING); in add_stack_tracking_gasm() 146 gsi_insert_before(gsi, asm_call, GSI_SAME_STMT); in add_stack_tracking_gasm() 150 static void add_stack_tracking(gimple_stmt_iterator *gsi, bool after) in add_stack_tracking() argument 161 add_stack_tracking_gasm(gsi, after); in add_stack_tracking() 163 add_stack_tracking_gcall(gsi, after); in add_stack_tracking() [all …]
|
| /Linux-v5.15/Documentation/devicetree/bindings/net/ |
| D | qcom,ipa.yaml | 19 a Generic Software Interface (GSI) to each execution environment. 20 The GSI is an integral part of the IPA, but it is logically isolated 37 | GSI | 58 - description: GSI registers 64 - const: gsi 78 - description: GSI interrupt (hardware IRQ) 85 - const: gsi 127 validating firwmare used by the GSI. 202 "gsi"; 209 "gsi",
|