/kernel/linux/linux-5.10/drivers/net/ipa/ |
D | gsi.c | 229 return channel - &channel->gsi->channel[0]; in gsi_channel_id() 232 static void gsi_irq_ieob_enable(struct gsi *gsi, u32 evt_ring_id) in gsi_irq_ieob_enable() argument 236 gsi->event_enable_bitmap |= BIT(evt_ring_id); in gsi_irq_ieob_enable() 237 val = gsi->event_enable_bitmap; in gsi_irq_ieob_enable() 238 iowrite32(val, gsi->virt + GSI_CNTXT_SRC_IEOB_IRQ_MSK_OFFSET); in gsi_irq_ieob_enable() 241 static void gsi_irq_ieob_disable(struct gsi *gsi, u32 evt_ring_id) in gsi_irq_ieob_disable() argument 245 gsi->event_enable_bitmap &= ~BIT(evt_ring_id); in gsi_irq_ieob_disable() 246 val = gsi->event_enable_bitmap; in gsi_irq_ieob_disable() 247 iowrite32(val, gsi->virt + GSI_CNTXT_SRC_IEOB_IRQ_MSK_OFFSET); in gsi_irq_ieob_disable() 251 static void gsi_irq_enable(struct gsi *gsi) in gsi_irq_enable() argument [all …]
|
D | gsi.h | 27 struct gsi; 107 struct gsi *gsi; member 148 struct gsi { struct 174 int gsi_setup(struct gsi *gsi, bool legacy); 180 void gsi_teardown(struct gsi *gsi); 189 u32 gsi_channel_tre_max(struct gsi *gsi, u32 channel_id); 198 u32 gsi_channel_trans_tre_max(struct gsi *gsi, u32 channel_id); 207 int gsi_channel_start(struct gsi *gsi, u32 channel_id); 216 int gsi_channel_stop(struct gsi *gsi, u32 channel_id); 230 void gsi_channel_reset(struct gsi *gsi, u32 channel_id, bool legacy); [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.h | 20 struct gsi; 50 struct gsi *gsi; member 140 struct gsi_trans *gsi_channel_trans_alloc(struct gsi *gsi, u32 channel_id, 214 int gsi_trans_read_byte(struct gsi *gsi, u32 channel_id, dma_addr_t addr); 224 void gsi_trans_read_byte_done(struct gsi *gsi, u32 channel_id);
|
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,
|
D | ipa_endpoint.c | 237 struct gsi *gsi = &endpoint->ipa->gsi; in ipa_endpoint_trans_alloc() local 243 return gsi_channel_trans_alloc(gsi, channel_id, tre_count, direction); in ipa_endpoint_trans_alloc() 903 struct gsi *gsi; in ipa_endpoint_replenish() local 942 gsi = &endpoint->ipa->gsi; in ipa_endpoint_replenish() 943 if (backlog == gsi_channel_tre_max(gsi, endpoint->channel_id)) in ipa_endpoint_replenish() 950 struct gsi *gsi = &endpoint->ipa->gsi; in ipa_endpoint_replenish_enable() local 959 max_backlog = gsi_channel_tre_max(gsi, endpoint->channel_id); in ipa_endpoint_replenish_enable() 1219 struct gsi *gsi = &ipa->gsi; in ipa_endpoint_reset_rx_aggr() local 1246 gsi_channel_reset(gsi, endpoint->channel_id, false); in ipa_endpoint_reset_rx_aggr() 1252 ret = gsi_channel_start(gsi, endpoint->channel_id); in ipa_endpoint_reset_rx_aggr() [all …]
|
D | gsi_trans.c | 262 struct gsi_channel *channel = &trans->gsi->channel[trans->channel_id]; in gsi_trans_move_pending() 277 struct gsi_channel *channel = &trans->gsi->channel[trans->channel_id]; in gsi_trans_move_complete() 293 struct gsi_channel *channel = &trans->gsi->channel[trans->channel_id]; in gsi_trans_move_polled() 327 struct gsi_trans *gsi_channel_trans_alloc(struct gsi *gsi, u32 channel_id, in gsi_channel_trans_alloc() argument 331 struct gsi_channel *channel = &gsi->channel[channel_id]; in gsi_channel_trans_alloc() 347 trans->gsi = gsi; in gsi_channel_trans_alloc() 380 trans_info = &trans->gsi->channel[trans->channel_id].trans_info; in gsi_trans_free() 448 ret = dma_map_sg(trans->gsi->dev, sg, 1, trans->direction); in gsi_trans_page_add() 473 ret = dma_map_sg(trans->gsi->dev, sg, used, trans->direction); in gsi_trans_skb_add() 542 struct gsi_channel *channel = &trans->gsi->channel[trans->channel_id]; in __gsi_trans_commit() [all …]
|
D | ipa_cmd.c | 325 struct device *dev = channel->gsi->dev; in ipa_cmd_pool_init() 354 struct device *dev = channel->gsi->dev; in ipa_cmd_pool_exit() 367 trans_info = &ipa->gsi.channel[endpoint->channel_id].trans_info; in ipa_cmd_payload_alloc() 378 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_table_init_add() 417 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_hdr_init_local_add() 447 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_register_write_add() 500 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_ip_packet_init_add() 524 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_dma_shared_mem_add() 566 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_ip_tag_status_add() 587 struct ipa *ipa = container_of(trans->gsi, struct ipa, gsi); in ipa_cmd_transfer_add() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | gsi.c | 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 106 gsi = &mqp->gsi; in mlx5_ib_create_gsi() [all …]
|
/kernel/linux/linux-5.10/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() 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() 95 u16 gsi = 0; in arm_spe_acpi_register_device() local 109 gsi = gicc->spe_interrupt; in arm_spe_acpi_register_device() [all …]
|
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
D | iosapic.c | 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 199 irq = __gsi_to_irq(gsi); in gsi_to_irq() 204 static struct iosapic_rte_info *find_rte(unsigned int irq, unsigned int gsi) in find_rte() argument 209 if (rte->iosapic->gsi_base + rte->rte_index == gsi) in find_rte() 215 set_rte (unsigned int gsi, unsigned int irq, unsigned int dest, int mask) in set_rte() argument 226 rte = find_rte(irq, gsi); in set_rte() [all …]
|
D | acpi.c | 527 int acpi_register_gsi(struct device *dev, u32 gsi, int triggering, int polarity) in acpi_register_gsi() argument 530 return gsi; in acpi_register_gsi() 532 if (has_8259 && gsi < 16) in acpi_register_gsi() 533 return isa_irq_to_vector(gsi); in acpi_register_gsi() 535 return iosapic_register_intr(gsi, in acpi_register_gsi() 545 void acpi_unregister_gsi(u32 gsi) in acpi_unregister_gsi() argument 550 if (has_8259 && gsi < 16) in acpi_unregister_gsi() 553 iosapic_unregister_intr(gsi); in acpi_unregister_gsi() 688 int acpi_gsi_to_irq(u32 gsi, unsigned int *irq) in acpi_gsi_to_irq() argument 692 if (has_8259 && gsi < 16) in acpi_gsi_to_irq() [all …]
|
/kernel/linux/linux-5.10/drivers/acpi/ |
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()
|
D | pci_irq.c | 398 int gsi; in acpi_pci_irq_enable() local 438 gsi = acpi_pci_link_allocate_irq(entry->link, in acpi_pci_irq_enable() 443 gsi = entry->index; in acpi_pci_irq_enable() 445 gsi = -1; in acpi_pci_irq_enable() 447 if (gsi < 0) { in acpi_pci_irq_enable() 465 rc = acpi_register_gsi(&dev->dev, gsi, triggering, polarity); in acpi_pci_irq_enable() 481 pin_name(pin), link_desc, gsi, in acpi_pci_irq_enable() 492 int gsi; in acpi_pci_irq_disable() local 512 gsi = acpi_pci_link_free_irq(entry->link); in acpi_pci_irq_disable() 514 gsi = entry->index; in acpi_pci_irq_disable() [all …]
|
D | irq.c | 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() 51 int acpi_register_gsi(struct device *dev, u32 gsi, int trigger, in acpi_register_gsi() argument 62 fwspec.param[0] = gsi; in acpi_register_gsi() 74 void acpi_unregister_gsi(u32 gsi) in acpi_unregister_gsi() argument 78 int irq = irq_find_mapping(d, gsi); in acpi_unregister_gsi()
|
/kernel/linux/linux-5.10/arch/x86/pci/ |
D | xen.c | 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() 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 71 irq = xen_irq_from_gsi(gsi); in xen_register_pirq() 76 pirq = gsi; in xen_register_pirq() [all …]
|
/kernel/linux/linux-5.10/arch/x86/kernel/acpi/ |
D | boot.c | 338 u8 trigger, u32 gsi); 341 u32 gsi) in mp_override_legacy_irq() argument 359 if (mp_register_ioapic_irq(bus_irq, polarity, trigger, gsi) < 0) in mp_override_legacy_irq() 366 if (gsi < nr_legacy_irqs() && isa_irq_to_gsi[gsi] == gsi) in mp_override_legacy_irq() 367 isa_irq_to_gsi[gsi] = INVALID_ACPI_IRQ; in mp_override_legacy_irq() 368 isa_irq_to_gsi[bus_irq] = gsi; in mp_override_legacy_irq() 371 static int mp_config_acpi_gsi(struct device *dev, u32 gsi, int trigger, in mp_config_acpi_gsi() argument 398 ioapic = mp_find_ioapic(gsi); in mp_config_acpi_gsi() 400 mp_irq.dstirq = mp_find_ioapic_pin(ioapic, gsi); in mp_config_acpi_gsi() 408 u8 trigger, u32 gsi) in mp_register_ioapic_irq() argument [all …]
|
/kernel/linux/linux-5.10/scripts/gcc-plugins/ |
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() 115 static void add_stack_tracking_gasm(gimple_stmt_iterator *gsi, bool after) in add_stack_tracking_gasm() argument 136 add_stack_tracking_gcall(gsi, after); in add_stack_tracking_gasm() 146 gsi_insert_after(gsi, asm_call, GSI_CONTINUE_LINKING); in add_stack_tracking_gasm() 148 gsi_insert_before(gsi, asm_call, GSI_SAME_STMT); in add_stack_tracking_gasm() 152 static void add_stack_tracking(gimple_stmt_iterator *gsi, bool after) in add_stack_tracking() argument 163 add_stack_tracking_gasm(gsi, after); in add_stack_tracking() 165 add_stack_tracking_gcall(gsi, after); in add_stack_tracking() [all …]
|
D | latent_entropy_plugin.c | 354 gimple_stmt_iterator gsi; in perturb_local_entropy() local 361 gsi = gsi_after_labels(bb); in perturb_local_entropy() 362 gsi_insert_before(&gsi, assign, GSI_NEW_STMT); in perturb_local_entropy() 366 static void __perturb_latent_entropy(gimple_stmt_iterator *gsi, in __perturb_latent_entropy() argument 380 gsi_insert_before(gsi, assign, GSI_NEW_STMT); in __perturb_latent_entropy() 386 gsi_insert_after(gsi, assign, GSI_NEW_STMT); in __perturb_latent_entropy() 391 gsi_insert_after(gsi, assign, GSI_NEW_STMT); in __perturb_latent_entropy() 397 gimple_stmt_iterator gsi; in handle_tail_calls() local 399 for (gsi = gsi_start_bb(bb); !gsi_end_p(gsi); gsi_next(&gsi)) { in handle_tail_calls() 401 gimple stmt = gsi_stmt(gsi); in handle_tail_calls() [all …]
|
D | structleak_plugin.c | 123 gimple_stmt_iterator gsi; in initialize() local 132 for (gsi = gsi_start_bb(bb); !gsi_end_p(gsi); gsi_next(&gsi)) { in initialize() 133 gimple stmt = gsi_stmt(gsi); in initialize() 169 gsi = gsi_after_labels(single_succ(ENTRY_BLOCK_PTR_FOR_FN(cfun))); in initialize() 170 gsi_insert_before(&gsi, init_stmt, GSI_NEW_STMT); in initialize()
|
/kernel/linux/linux-5.10/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 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() 180 if (ue[i].gsi >= KVM_MAX_IRQ_ROUTES) in kvm_set_irq_routing() 182 nr_rt_entries = max(nr_rt_entries, ue[i].gsi); in kvm_set_irq_routing()
|
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() 76 resampler->notifier.gsi, 0, false); in irqfd_resampler_ack() 101 resampler->notifier.gsi, 0, false); in irqfd_resampler_shutdown() 249 n_entries = kvm_irq_map_gsi(kvm, entries, irqfd->gsi); in irqfd_update() 302 irqfd->gsi = args->gsi; in kvm_irqfd_assign() 338 if (resampler->notifier.gsi == irqfd->gsi) { in kvm_irqfd_assign() 355 resampler->notifier.gsi = irqfd->gsi; in kvm_irqfd_assign() 449 int gsi, idx; in kvm_irq_has_notifier() local [all …]
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | io_apic.h | 166 extern int mp_find_ioapic(u32 gsi); 167 extern int mp_find_ioapic_pin(int ioapic, u32 gsi); 168 extern int mp_map_gsi_to_irq(u32 gsi, unsigned int flags, 207 static inline int mp_find_ioapic(u32 gsi) { return 0; } in mp_find_ioapic() argument 208 static inline int mp_map_gsi_to_irq(u32 gsi, unsigned int flags, in mp_map_gsi_to_irq() argument 211 return gsi; in mp_map_gsi_to_irq()
|
/kernel/linux/linux-5.10/arch/ia64/include/asm/ |
D | iosapic.h | 87 extern int gsi_to_irq (unsigned int gsi); 88 extern int iosapic_register_intr (unsigned int gsi, unsigned long polarity, 91 extern void iosapic_override_isa_irq (unsigned int isa_irq, unsigned int gsi, 95 unsigned int gsi,
|
/kernel/linux/linux-5.10/arch/x86/platform/intel-mid/device_libs/ |
D | platform_mrfld_wdt.c | 30 int gsi = TANGIER_EXT_TIMER0_MSI; in tangier_probe() local 38 irq = mp_map_gsi_to_irq(gsi, IOAPIC_MAP_ALLOC, &info); in tangier_probe() 40 dev_warn(&pdev->dev, "cannot find interrupt %d in ioapic\n", gsi); in tangier_probe()
|