/kernel/linux/linux-6.6/arch/s390/pci/ |
H A D | pci.c | 72 struct zpci_dev *tmp, *zdev = NULL; in get_zdev_by_fid() local 77 zdev = tmp; in get_zdev_by_fid() 78 zpci_zdev_get(zdev); in get_zdev_by_fid() 83 return zdev; in get_zdev_by_fid() 88 struct zpci_dev *tmp, *zdev; in zpci_remove_reserved_devices() local 93 list_for_each_entry_safe(zdev, tmp, &zpci_list, entry) { in zpci_remove_reserved_devices() 94 if (zdev->state == ZPCI_FN_STATE_STANDBY && in zpci_remove_reserved_devices() 95 !clp_get_state(zdev->fid, &state) && in zpci_remove_reserved_devices() 97 list_move_tail(&zdev->entry, &remove); in zpci_remove_reserved_devices() 101 list_for_each_entry_safe(zdev, tm in zpci_remove_reserved_devices() 118 zpci_register_ioat(struct zpci_dev *zdev, u8 dmaas, u64 base, u64 limit, u64 iota, u8 *status) zpci_register_ioat() argument 138 zpci_unregister_ioat(struct zpci_dev *zdev, u8 dmaas) zpci_unregister_ioat() argument 153 zpci_fmb_enable_device(struct zpci_dev *zdev) zpci_fmb_enable_device() argument 183 zpci_fmb_disable_device(struct zpci_dev *zdev) zpci_fmb_disable_device() argument 206 zpci_cfg_load(struct zpci_dev *zdev, int offset, u32 *val, u8 len) zpci_cfg_load() argument 222 zpci_cfg_store(struct zpci_dev *zdev, int offset, u32 val, u8 len) zpci_cfg_store() argument 273 struct zpci_dev *zdev = to_zpci(pdev); pci_iomap_range_fh() local 292 struct zpci_dev *zdev = to_zpci(pdev); pci_iomap_range_mio() local 322 struct zpci_dev *zdev = to_zpci(pdev); pci_iomap_wc_range_mio() local 379 struct zpci_dev *zdev = zdev_from_bus(bus, devfn); pci_read() local 387 struct zpci_dev *zdev = zdev_from_bus(bus, devfn); pci_write() local 399 struct zpci_dev *zdev = to_zpci(pdev); zpci_map_resources() local 422 struct zpci_dev *zdev = to_zpci(pdev); zpci_unmap_resources() local 438 zpci_alloc_iomap(struct zpci_dev *zdev) zpci_alloc_iomap() argument 453 zpci_free_iomap(struct zpci_dev *zdev, int entry) zpci_free_iomap() argument 461 zpci_do_update_iomap_fh(struct zpci_dev *zdev, u32 fh) zpci_do_update_iomap_fh() argument 477 zpci_update_fh(struct zpci_dev *zdev, u32 fh) zpci_update_fh() argument 489 __alloc_res(struct zpci_dev *zdev, unsigned long start, unsigned long size, unsigned long flags) __alloc_res() argument 510 zpci_setup_bus_resources(struct zpci_dev *zdev) zpci_setup_bus_resources() argument 552 zpci_cleanup_bus_resources(struct zpci_dev *zdev) zpci_cleanup_bus_resources() argument 575 struct zpci_dev *zdev = to_zpci(pdev); pcibios_device_add() local 600 struct zpci_dev *zdev = to_zpci(pdev); pcibios_release_device() local 608 struct zpci_dev *zdev = to_zpci(pdev); pcibios_enable_device() local 618 struct zpci_dev *zdev = to_zpci(pdev); pcibios_disable_device() local 672 zpci_enable_device(struct zpci_dev *zdev) zpci_enable_device() argument 685 zpci_disable_device(struct zpci_dev *zdev) zpci_disable_device() argument 732 zpci_hot_reset_device(struct zpci_dev *zdev) zpci_hot_reset_device() argument 782 struct zpci_dev *zdev; zpci_create_device() local 826 zpci_is_device_configured(struct zpci_dev *zdev) zpci_is_device_configured() argument 845 zpci_scan_configured_device(struct zpci_dev *zdev, u32 fh) zpci_scan_configured_device() argument 861 zpci_deconfigure_device(struct zpci_dev *zdev) zpci_deconfigure_device() argument 897 zpci_device_reserved(struct zpci_dev *zdev) zpci_device_reserved() argument 915 struct zpci_dev *zdev = container_of(kref, struct zpci_dev, kref); zpci_release_device() local 955 struct zpci_dev *zdev = to_zpci(pdev); zpci_report_error() local 971 zpci_clear_error_state(struct zpci_dev *zdev) zpci_clear_error_state() argument 998 zpci_reset_load_store_blocked(struct zpci_dev *zdev) zpci_reset_load_store_blocked() argument [all...] |
H A D | pci_dma.c | 24 static int zpci_refresh_global(struct zpci_dev *zdev) in zpci_refresh_global() argument 26 return zpci_refresh_trans((u64) zdev->fh << 32, zdev->start_dma, in zpci_refresh_global() 27 zdev->iommu_pages * PAGE_SIZE); in zpci_refresh_global() 159 static int __dma_update_trans(struct zpci_dev *zdev, phys_addr_t pa, in __dma_update_trans() argument 170 if (!zdev->dma_table) in __dma_update_trans() 174 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr, in __dma_update_trans() 191 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr, in __dma_update_trans() 201 static int __dma_purge_tlb(struct zpci_dev *zdev, dma_addr_t dma_addr, in __dma_purge_tlb() argument 208 * With zdev in __dma_purge_tlb() 240 dma_update_trans(struct zpci_dev *zdev, phys_addr_t pa, dma_addr_t dma_addr, size_t size, int flags) dma_update_trans() argument 285 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); __dma_alloc_iommu() local 295 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); dma_alloc_address() local 327 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); dma_free_address() local 360 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); s390_dma_map_pages() local 400 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); s390_dma_unmap_pages() local 421 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); s390_dma_alloc() local 448 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); s390_dma_free() local 462 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); __s390_dma_map_sg() local 579 zpci_dma_init_device(struct zpci_dev *zdev) zpci_dma_init_device() argument 650 zpci_dma_exit_device(struct zpci_dev *zdev) zpci_dma_exit_device() argument [all...] |
H A D | pci_bus.c | 34 * @zdev: the zPCI function to be prepared 42 static int zpci_bus_prepare_device(struct zpci_dev *zdev) in zpci_bus_prepare_device() argument 46 if (!zdev_enabled(zdev)) { in zpci_bus_prepare_device() 47 rc = zpci_enable_device(zdev); in zpci_bus_prepare_device() 50 rc = zpci_dma_init_device(zdev); in zpci_bus_prepare_device() 52 zpci_disable_device(zdev); in zpci_bus_prepare_device() 57 if (!zdev->has_resources) { in zpci_bus_prepare_device() 58 zpci_setup_bus_resources(zdev); in zpci_bus_prepare_device() 60 if (zdev->bars[i].res) in zpci_bus_prepare_device() 61 pci_bus_add_resource(zdev in zpci_bus_prepare_device() 75 zpci_bus_scan_device(struct zpci_dev *zdev) zpci_bus_scan_device() argument 104 zpci_bus_remove_device(struct zpci_dev *zdev, bool set_error) zpci_bus_remove_device() argument 139 struct zpci_dev *zdev; zpci_bus_scan_bus() local 284 struct zpci_dev *zdev = to_zpci(pdev); pcibios_bus_add_device() local 296 zpci_bus_add_device(struct zpci_bus *zbus, struct zpci_dev *zdev) zpci_bus_add_device() argument 327 zpci_bus_device_register(struct zpci_dev *zdev, struct pci_ops *ops) zpci_bus_device_register() argument 372 zpci_bus_device_unregister(struct zpci_dev *zdev) zpci_bus_device_unregister() argument [all...] |
H A D | pci_debug.c | 72 struct zpci_dev *zdev = m->private; in pci_sw_counter_show() local 73 atomic64_t *counter = &zdev->allocated_pages; in pci_sw_counter_show() 83 struct zpci_dev *zdev = m->private; in pci_perf_show() local 85 if (!zdev) in pci_perf_show() 88 mutex_lock(&zdev->lock); in pci_perf_show() 89 if (!zdev->fmb) { in pci_perf_show() 90 mutex_unlock(&zdev->lock); in pci_perf_show() 96 seq_printf(m, "Update interval: %u ms\n", zdev->fmb_update); in pci_perf_show() 97 seq_printf(m, "Samples: %u\n", zdev->fmb->samples); in pci_perf_show() 98 seq_printf(m, "Last update TOD: %Lx\n", zdev in pci_perf_show() 134 struct zpci_dev *zdev = ((struct seq_file *) file->private_data)->private; pci_perf_seq_write() local 172 zpci_debug_init_device(struct zpci_dev *zdev, const char *name) zpci_debug_init_device() argument 180 zpci_debug_exit_device(struct zpci_dev *zdev) zpci_debug_exit_device() argument [all...] |
H A D | pci_event.c | 62 static bool is_passed_through(struct zpci_dev *zdev) in is_passed_through() argument 64 return zdev->s390_domain; in is_passed_through() 98 struct zpci_dev *zdev = to_zpci(pdev); in zpci_event_do_error_state_clear() local 102 rc = zpci_reset_load_store_blocked(zdev); in zpci_event_do_error_state_clear() 122 rc = zpci_clear_error_state(zdev); in zpci_event_do_error_state_clear() 253 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_error() local 262 if (zdev) { in __zpci_event_error() 263 zpci_update_fh(zdev, ccdf->fh); in __zpci_event_error() 264 if (zdev->zbus->bus) in __zpci_event_error() 265 pdev = pci_get_slot(zdev in __zpci_event_error() 299 zpci_event_hard_deconfigured(struct zpci_dev *zdev, u32 fh) zpci_event_hard_deconfigured() argument 318 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); __zpci_event_availability() local [all...] |
H A D | pci_irq.c | 33 static int zpci_set_airq(struct zpci_dev *zdev) in zpci_set_airq() argument 35 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT); in zpci_set_airq() 41 fib.fmt0.noi = airq_iv_end(zdev->aibv); in zpci_set_airq() 42 fib.fmt0.aibv = virt_to_phys(zdev->aibv->vector); in zpci_set_airq() 43 fib.fmt0.aibvo = 0; /* each zdev has its own interrupt vector */ in zpci_set_airq() 44 fib.fmt0.aisb = virt_to_phys(zpci_sbv->vector) + (zdev->aisb / 64) * 8; in zpci_set_airq() 45 fib.fmt0.aisbo = zdev->aisb & 63; in zpci_set_airq() 46 fib.gd = zdev->gisa; in zpci_set_airq() 52 static int zpci_clear_airq(struct zpci_dev *zdev) in zpci_clear_airq() argument 54 u64 req = ZPCI_CREATE_REQ(zdev in zpci_clear_airq() 69 zpci_set_directed_irq(struct zpci_dev *zdev) zpci_set_directed_irq() argument 84 zpci_clear_directed_irq(struct zpci_dev *zdev) zpci_clear_directed_irq() argument 101 zpci_set_irq(struct zpci_dev *zdev) zpci_set_irq() argument 117 zpci_clear_irq(struct zpci_dev *zdev) zpci_clear_irq() argument 273 struct zpci_dev *zdev = to_zpci(pdev); arch_setup_msi_irqs() local 361 struct zpci_dev *zdev = to_zpci(pdev); arch_teardown_msi_irqs() local 396 struct zpci_dev *zdev = to_zpci(pdev); arch_restore_msi_irqs() local [all...] |
H A D | pci_clp.c | 100 static void clp_store_query_pci_fngrp(struct zpci_dev *zdev, in clp_store_query_pci_fngrp() argument 103 zdev->tlb_refresh = response->refresh; in clp_store_query_pci_fngrp() 104 zdev->dma_mask = response->dasm; in clp_store_query_pci_fngrp() 105 zdev->msi_addr = response->msia; in clp_store_query_pci_fngrp() 106 zdev->max_msi = response->noi; in clp_store_query_pci_fngrp() 107 zdev->fmb_update = response->mui; in clp_store_query_pci_fngrp() 108 zdev->version = response->version; in clp_store_query_pci_fngrp() 109 zdev->maxstbl = response->maxstbl; in clp_store_query_pci_fngrp() 110 zdev->dtsm = response->dtsm; in clp_store_query_pci_fngrp() 114 zdev in clp_store_query_pci_fngrp() 122 clp_query_pci_fngrp(struct zpci_dev *zdev, u8 pfgid) clp_query_pci_fngrp() argument 149 clp_store_query_pci_fn(struct zpci_dev *zdev, struct clp_rsp_query_pci *response) clp_store_query_pci_fn() argument 189 clp_query_pci_fn(struct zpci_dev *zdev) clp_query_pci_fn() argument 230 clp_set_pci_fn(struct zpci_dev *zdev, u32 *fh, u8 nr_dma_as, u8 command) clp_set_pci_fn() argument 309 clp_enable_fh(struct zpci_dev *zdev, u32 *fh, u8 nr_dma_as) clp_enable_fh() argument 325 clp_disable_fh(struct zpci_dev *zdev, u32 *fh) clp_disable_fh() argument 410 struct zpci_dev *zdev; __clp_add() local [all...] |
H A D | pci_bus.h | 10 int zpci_bus_device_register(struct zpci_dev *zdev, struct pci_ops *ops); 11 void zpci_bus_device_unregister(struct zpci_dev *zdev); 16 int zpci_bus_scan_device(struct zpci_dev *zdev); 17 void zpci_bus_remove_device(struct zpci_dev *zdev, bool set_error); 20 static inline void zpci_zdev_put(struct zpci_dev *zdev) in zpci_zdev_put() argument 22 if (zdev) in zpci_zdev_put() 23 kref_put(&zdev->kref, zpci_release_device); in zpci_zdev_put() 26 static inline void zpci_zdev_get(struct zpci_dev *zdev) in zpci_zdev_get() argument 28 kref_get(&zdev->kref); in zpci_zdev_get() 33 int zpci_setup_bus_resources(struct zpci_dev *zdev); [all...] |
H A D | pci_sysfs.c | 24 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); \ 26 return sprintf(buf, fmt, zdev->member); \ 46 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); in mio_enabled_show() local 48 return sprintf(buf, zpci_use_mio(zdev) ? "1\n" : "0\n"); in mio_enabled_show() 57 struct zpci_dev *zdev = to_zpci(pdev); in recover_store() local 85 if (zdev->dma_table) { in recover_store() 86 ret = zpci_dma_exit_device(zdev); in recover_store() 91 if (zdev_enabled(zdev)) { in recover_store() 92 ret = zpci_disable_device(zdev); in recover_store() 105 ret = zpci_enable_device(zdev); in recover_store() 129 struct zpci_dev *zdev = to_zpci(pdev); util_string_read() local 143 struct zpci_dev *zdev = to_zpci(pdev); report_error_write() local 167 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); index_show() local [all...] |
/kernel/linux/linux-5.10/arch/s390/pci/ |
H A D | pci.c | 66 struct zpci_dev *tmp, *zdev = NULL; in get_zdev_by_fid() local 71 zdev = tmp; in get_zdev_by_fid() 72 zpci_zdev_get(zdev); in get_zdev_by_fid() 77 return zdev; in get_zdev_by_fid() 82 struct zpci_dev *tmp, *zdev; in zpci_remove_reserved_devices() local 87 list_for_each_entry_safe(zdev, tmp, &zpci_list, entry) { in zpci_remove_reserved_devices() 88 if (zdev->state == ZPCI_FN_STATE_STANDBY && in zpci_remove_reserved_devices() 89 !clp_get_state(zdev->fid, &state) && in zpci_remove_reserved_devices() 91 list_move_tail(&zdev->entry, &remove); in zpci_remove_reserved_devices() 95 list_for_each_entry_safe(zdev, tm in zpci_remove_reserved_devices() 112 zpci_register_ioat(struct zpci_dev *zdev, u8 dmaas, u64 base, u64 limit, u64 iota) zpci_register_ioat() argument 127 zpci_unregister_ioat(struct zpci_dev *zdev, u8 dmaas) zpci_unregister_ioat() argument 140 zpci_fmb_enable_device(struct zpci_dev *zdev) zpci_fmb_enable_device() argument 169 zpci_fmb_disable_device(struct zpci_dev *zdev) zpci_fmb_disable_device() argument 190 zpci_cfg_load(struct zpci_dev *zdev, int offset, u32 *val, u8 len) zpci_cfg_load() argument 206 zpci_cfg_store(struct zpci_dev *zdev, int offset, u32 val, u8 len) zpci_cfg_store() argument 294 struct zpci_dev *zdev = to_zpci(pdev); pci_iomap_range_fh() local 313 struct zpci_dev *zdev = to_zpci(pdev); pci_iomap_range_mio() local 343 struct zpci_dev *zdev = to_zpci(pdev); pci_iomap_wc_range_mio() local 400 struct zpci_dev *zdev = get_zdev_by_bus(bus, devfn); pci_read() local 408 struct zpci_dev *zdev = get_zdev_by_bus(bus, devfn); pci_write() local 420 struct zpci_dev *zdev = to_zpci(pdev); zpci_map_resources() local 443 struct zpci_dev *zdev = to_zpci(pdev); zpci_unmap_resources() local 459 zpci_alloc_iomap(struct zpci_dev *zdev) zpci_alloc_iomap() argument 474 zpci_free_iomap(struct zpci_dev *zdev, int entry) zpci_free_iomap() argument 482 __alloc_res(struct zpci_dev *zdev, unsigned long start, unsigned long size, unsigned long flags) __alloc_res() argument 503 zpci_setup_bus_resources(struct zpci_dev *zdev, struct list_head *resources) zpci_setup_bus_resources() argument 546 zpci_cleanup_bus_resources(struct zpci_dev *zdev) zpci_cleanup_bus_resources() argument 562 struct zpci_dev *zdev = to_zpci(pdev); pcibios_add_device() local 587 struct zpci_dev *zdev = to_zpci(pdev); pcibios_release_device() local 595 struct zpci_dev *zdev = to_zpci(pdev); pcibios_enable_device() local 605 struct zpci_dev *zdev = to_zpci(pdev); pcibios_disable_device() local 659 zpci_enable_device(struct zpci_dev *zdev) zpci_enable_device() argument 682 zpci_disable_device(struct zpci_dev *zdev) zpci_disable_device() argument 702 zpci_remove_device(struct zpci_dev *zdev, bool set_error) zpci_remove_device() argument 739 struct zpci_dev *zdev; zpci_create_device() local 791 zpci_is_device_configured(struct zpci_dev *zdev) zpci_is_device_configured() argument 808 zpci_device_reserved(struct zpci_dev *zdev) zpci_device_reserved() argument 826 struct zpci_dev *zdev = container_of(kref, struct zpci_dev, kref); zpci_release_device() local 859 struct zpci_dev *zdev = to_zpci(pdev); zpci_report_error() local [all...] |
H A D | pci_dma.c | 22 static int zpci_refresh_global(struct zpci_dev *zdev) in zpci_refresh_global() argument 24 return zpci_refresh_trans((u64) zdev->fh << 32, zdev->start_dma, in zpci_refresh_global() 25 zdev->iommu_pages * PAGE_SIZE); in zpci_refresh_global() 133 static int __dma_update_trans(struct zpci_dev *zdev, unsigned long pa, in __dma_update_trans() argument 145 spin_lock_irqsave(&zdev->dma_table_lock, irq_flags); in __dma_update_trans() 146 if (!zdev->dma_table) { in __dma_update_trans() 152 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr); in __dma_update_trans() 168 entry = dma_walk_cpu_trans(zdev->dma_table, dma_addr); in __dma_update_trans() 175 spin_unlock_irqrestore(&zdev in __dma_update_trans() 179 __dma_purge_tlb(struct zpci_dev *zdev, dma_addr_t dma_addr, size_t size, int flags) __dma_purge_tlb() argument 218 dma_update_trans(struct zpci_dev *zdev, unsigned long pa, dma_addr_t dma_addr, size_t size, int flags) dma_update_trans() argument 263 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); __dma_alloc_iommu() local 273 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); dma_alloc_address() local 305 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); dma_free_address() local 338 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); s390_dma_map_pages() local 378 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); s390_dma_unmap_pages() local 399 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); s390_dma_alloc() local 426 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); s390_dma_free() local 440 struct zpci_dev *zdev = to_zpci(to_pci_dev(dev)); __s390_dma_map_sg() local 556 zpci_dma_init_device(struct zpci_dev *zdev) zpci_dma_init_device() argument 622 zpci_dma_exit_device(struct zpci_dev *zdev) zpci_dma_exit_device() argument [all...] |
H A D | pci_event.c | 51 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_error() local 57 if (zdev) in __zpci_event_error() 58 pdev = pci_get_slot(zdev->zbus->bus, zdev->devfn); in __zpci_event_error() 69 zpci_zdev_put(zdev); in __zpci_event_error() 80 struct zpci_dev *zdev = get_zdev_by_fid(ccdf->fid); in __zpci_event_availability() local 81 bool existing_zdev = !!zdev; in __zpci_event_availability() 91 if (!zdev) { in __zpci_event_availability() 96 if (zdev->state != ZPCI_FN_STATE_STANDBY) in __zpci_event_availability() 98 zdev in __zpci_event_availability() [all...] |
H A D | pci_debug.c | 72 struct zpci_dev *zdev = m->private; in pci_sw_counter_show() local 73 atomic64_t *counter = &zdev->allocated_pages; in pci_sw_counter_show() 83 struct zpci_dev *zdev = m->private; in pci_perf_show() local 85 if (!zdev) in pci_perf_show() 88 mutex_lock(&zdev->lock); in pci_perf_show() 89 if (!zdev->fmb) { in pci_perf_show() 90 mutex_unlock(&zdev->lock); in pci_perf_show() 96 seq_printf(m, "Update interval: %u ms\n", zdev->fmb_update); in pci_perf_show() 97 seq_printf(m, "Samples: %u\n", zdev->fmb->samples); in pci_perf_show() 98 seq_printf(m, "Last update TOD: %Lx\n", zdev in pci_perf_show() 134 struct zpci_dev *zdev = ((struct seq_file *) file->private_data)->private; pci_perf_seq_write() local 172 zpci_debug_init_device(struct zpci_dev *zdev, const char *name) zpci_debug_init_device() argument 180 zpci_debug_exit_device(struct zpci_dev *zdev) zpci_debug_exit_device() argument [all...] |
H A D | pci_bus.c | 132 struct zpci_dev *zdev = to_zpci(pdev); in pcibios_bus_add_device() local 138 if (zdev->vfn) { in pcibios_bus_add_device() 139 zpci_iov_setup_virtfn(zdev->zbus, pdev, zdev->vfn); in pcibios_bus_add_device() 144 static int zpci_bus_add_device(struct zpci_bus *zbus, struct zpci_dev *zdev) in zpci_bus_add_device() argument 156 pdev = pci_get_slot(bus, zdev->devfn); in zpci_bus_add_device() 163 rc = zpci_init_slot(zdev); in zpci_bus_add_device() 166 zdev->has_hp_slot = 1; in zpci_bus_add_device() 173 pdev = pci_scan_single_device(bus, zdev->devfn); in zpci_bus_add_device() 193 int zpci_bus_device_register(struct zpci_dev *zdev, struc argument 268 zpci_bus_device_unregister(struct zpci_dev *zdev) zpci_bus_device_unregister() argument [all...] |
H A D | pci_clp.c | 99 static void clp_store_query_pci_fngrp(struct zpci_dev *zdev, in clp_store_query_pci_fngrp() argument 102 zdev->tlb_refresh = response->refresh; in clp_store_query_pci_fngrp() 103 zdev->dma_mask = response->dasm; in clp_store_query_pci_fngrp() 104 zdev->msi_addr = response->msia; in clp_store_query_pci_fngrp() 105 zdev->max_msi = response->noi; in clp_store_query_pci_fngrp() 106 zdev->fmb_update = response->mui; in clp_store_query_pci_fngrp() 107 zdev->version = response->version; in clp_store_query_pci_fngrp() 111 zdev->max_bus_speed = PCIE_SPEED_5_0GT; in clp_store_query_pci_fngrp() 114 zdev->max_bus_speed = PCI_SPEED_UNKNOWN; in clp_store_query_pci_fngrp() 119 static int clp_query_pci_fngrp(struct zpci_dev *zdev, u argument 146 clp_store_query_pci_fn(struct zpci_dev *zdev, struct clp_rsp_query_pci *response) clp_store_query_pci_fn() argument 186 clp_query_pci_fn(struct zpci_dev *zdev) clp_query_pci_fn() argument 227 clp_set_pci_fn(struct zpci_dev *zdev, u8 nr_dma_as, u8 command) clp_set_pci_fn() argument 303 clp_enable_fh(struct zpci_dev *zdev, u8 nr_dma_as) clp_enable_fh() argument 319 clp_disable_fh(struct zpci_dev *zdev) clp_disable_fh() argument 371 struct zpci_dev *zdev; __clp_add() local 401 struct zpci_dev *zdev; __clp_refresh_fh() local [all...] |
H A D | pci_irq.c | 39 static int zpci_set_airq(struct zpci_dev *zdev) in zpci_set_airq() argument 41 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT); in zpci_set_airq() 47 fib.fmt0.noi = airq_iv_end(zdev->aibv); in zpci_set_airq() 48 fib.fmt0.aibv = (unsigned long) zdev->aibv->vector; in zpci_set_airq() 49 fib.fmt0.aibvo = 0; /* each zdev has its own interrupt vector */ in zpci_set_airq() 50 fib.fmt0.aisb = (unsigned long) zpci_sbv->vector + (zdev->aisb/64)*8; in zpci_set_airq() 51 fib.fmt0.aisbo = zdev->aisb & 63; in zpci_set_airq() 57 static int zpci_clear_airq(struct zpci_dev *zdev) in zpci_clear_airq() argument 59 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_DEREG_INT); in zpci_clear_airq() 72 static int zpci_set_directed_irq(struct zpci_dev *zdev) in zpci_set_directed_irq() argument 86 zpci_clear_directed_irq(struct zpci_dev *zdev) zpci_clear_directed_irq() argument 237 struct zpci_dev *zdev = to_zpci(pdev); arch_setup_msi_irqs() local 328 struct zpci_dev *zdev = to_zpci(pdev); arch_teardown_msi_irqs() local [all...] |
/kernel/linux/linux-6.6/arch/s390/kvm/ |
H A D | pci.c | 159 static int kvm_zpci_set_airq(struct zpci_dev *zdev) in kvm_zpci_set_airq() argument 161 u64 req = ZPCI_CREATE_REQ(zdev->fh, 0, ZPCI_MOD_FC_REG_INT); in kvm_zpci_set_airq() 165 fib.fmt0.isc = zdev->kzdev->fib.fmt0.isc; in kvm_zpci_set_airq() 167 fib.fmt0.noi = airq_iv_end(zdev->aibv); in kvm_zpci_set_airq() 168 fib.fmt0.aibv = virt_to_phys(zdev->aibv->vector); in kvm_zpci_set_airq() 170 fib.fmt0.aisb = virt_to_phys(aift->sbv->vector + (zdev->aisb / 64) * 8); in kvm_zpci_set_airq() 171 fib.fmt0.aisbo = zdev->aisb & 63; in kvm_zpci_set_airq() 172 fib.gd = zdev->gisa; in kvm_zpci_set_airq() 178 static int kvm_zpci_clear_airq(struct zpci_dev *zdev) in kvm_zpci_clear_airq() argument 180 u64 req = ZPCI_CREATE_REQ(zdev in kvm_zpci_clear_airq() 224 kvm_s390_pci_aif_enable(struct zpci_dev *zdev, struct zpci_fib *fib, bool assist) kvm_s390_pci_aif_enable() argument 337 kvm_s390_pci_aif_disable(struct zpci_dev *zdev, bool force) kvm_s390_pci_aif_disable() argument 404 kvm_s390_pci_dev_open(struct zpci_dev *zdev) kvm_s390_pci_dev_open() argument 418 kvm_s390_pci_dev_release(struct zpci_dev *zdev) kvm_s390_pci_dev_release() argument 436 struct zpci_dev *zdev = opaque; kvm_s390_pci_register_kvm() local 518 struct zpci_dev *zdev = opaque; kvm_s390_pci_unregister_kvm() local 592 struct zpci_dev *zdev = NULL; get_zdev_from_kvm_by_fh() local 607 kvm_s390_pci_zpci_reg_aen(struct zpci_dev *zdev, struct kvm_s390_zpci_op *args) kvm_s390_pci_zpci_reg_aen() argument 633 struct zpci_dev *zdev; kvm_s390_pci_zpci_op() local [all...] |
/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
H A D | s390_pci_hpc.c | 29 static inline int zdev_configure(struct zpci_dev *zdev) in zdev_configure() argument 31 int ret = sclp_pci_configure(zdev->fid); in zdev_configure() 33 zpci_dbg(3, "conf fid:%x, rc:%d\n", zdev->fid, ret); in zdev_configure() 35 zdev->state = ZPCI_FN_STATE_CONFIGURED; in zdev_configure() 40 static inline int zdev_deconfigure(struct zpci_dev *zdev) in zdev_deconfigure() argument 42 int ret = sclp_pci_deconfigure(zdev->fid); in zdev_deconfigure() 44 zpci_dbg(3, "deconf fid:%x, rc:%d\n", zdev->fid, ret); in zdev_deconfigure() 46 zdev->state = ZPCI_FN_STATE_STANDBY; in zdev_deconfigure() 53 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, in enable_slot() local 55 struct zpci_bus *zbus = zdev in enable_slot() 83 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, disable_slot() local 109 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, get_power_status() local 130 zpci_init_slot(struct zpci_dev *zdev) zpci_init_slot() argument 142 zpci_exit_slot(struct zpci_dev *zdev) zpci_exit_slot() argument [all...] |
/kernel/linux/linux-6.6/drivers/vfio/pci/ |
H A D | vfio_pci_zdev.c | 23 static int zpci_base_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) in zpci_base_cap() argument 28 .start_dma = zdev->start_dma, in zpci_base_cap() 29 .end_dma = zdev->end_dma, in zpci_base_cap() 30 .pchid = zdev->pchid, in zpci_base_cap() 31 .vfn = zdev->vfn, in zpci_base_cap() 32 .fmb_length = zdev->fmb_length, in zpci_base_cap() 33 .pft = zdev->pft, in zpci_base_cap() 34 .gid = zdev->pfgid, in zpci_base_cap() 35 .fh = zdev->fh in zpci_base_cap() 44 static int zpci_group_cap(struct zpci_dev *zdev, struc argument 66 zpci_util_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) zpci_util_cap() argument 91 zpci_pfip_cap(struct zpci_dev *zdev, struct vfio_info_cap *caps) zpci_pfip_cap() argument 119 struct zpci_dev *zdev = to_zpci(vdev->pdev); vfio_pci_info_zdev_add_caps() local 146 struct zpci_dev *zdev = to_zpci(vdev->pdev); vfio_pci_zdev_open_device() local 162 struct zpci_dev *zdev = to_zpci(vdev->pdev); vfio_pci_zdev_close_device() local [all...] |
/kernel/linux/linux-5.10/drivers/vfio/pci/ |
H A D | vfio_pci_zdev.c | 27 static int zpci_base_cap(struct zpci_dev *zdev, struct vfio_pci_device *vdev, in zpci_base_cap() argument 33 .start_dma = zdev->start_dma, in zpci_base_cap() 34 .end_dma = zdev->end_dma, in zpci_base_cap() 35 .pchid = zdev->pchid, in zpci_base_cap() 36 .vfn = zdev->vfn, in zpci_base_cap() 37 .fmb_length = zdev->fmb_length, in zpci_base_cap() 38 .pft = zdev->pft, in zpci_base_cap() 39 .gid = zdev->pfgid in zpci_base_cap() 48 static int zpci_group_cap(struct zpci_dev *zdev, struct vfio_pci_device *vdev, in zpci_group_cap() argument 54 .dasm = zdev in zpci_group_cap() 69 zpci_util_cap(struct zpci_dev *zdev, struct vfio_pci_device *vdev, struct vfio_info_cap *caps) zpci_util_cap() argument 95 zpci_pfip_cap(struct zpci_dev *zdev, struct vfio_pci_device *vdev, struct vfio_info_cap *caps) zpci_pfip_cap() argument 124 struct zpci_dev *zdev = to_zpci(vdev->pdev); vfio_pci_info_zdev_add_caps() local [all...] |
/kernel/linux/linux-6.6/drivers/pci/hotplug/ |
H A D | s390_pci_hpc.c | 25 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, in enable_slot() local 29 if (zdev->state != ZPCI_FN_STATE_STANDBY) in enable_slot() 32 rc = sclp_pci_configure(zdev->fid); in enable_slot() 33 zpci_dbg(3, "conf fid:%x, rc:%d\n", zdev->fid, rc); in enable_slot() 36 zdev->state = ZPCI_FN_STATE_CONFIGURED; in enable_slot() 38 return zpci_scan_configured_device(zdev, zdev->fh); in enable_slot() 43 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, in disable_slot() local 47 if (zdev->state != ZPCI_FN_STATE_CONFIGURED) in disable_slot() 50 pdev = pci_get_slot(zdev in disable_slot() 62 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, reset_slot() local 85 struct zpci_dev *zdev = container_of(hotplug_slot, struct zpci_dev, get_power_status() local 107 zpci_init_slot(struct zpci_dev *zdev) zpci_init_slot() argument 119 zpci_exit_slot(struct zpci_dev *zdev) zpci_exit_slot() argument [all...] |
/kernel/linux/linux-6.6/drivers/iommu/ |
H A D | s390-iommu.c | 87 static void __s390_iommu_detach_device(struct zpci_dev *zdev) in __s390_iommu_detach_device() argument 89 struct s390_domain *s390_domain = zdev->s390_domain; in __s390_iommu_detach_device() 96 list_del_rcu(&zdev->iommu_list); in __s390_iommu_detach_device() 99 zpci_unregister_ioat(zdev, 0); in __s390_iommu_detach_device() 100 zdev->s390_domain = NULL; in __s390_iommu_detach_device() 101 zdev->dma_table = NULL; in __s390_iommu_detach_device() 108 struct zpci_dev *zdev = to_zpci_dev(dev); in s390_iommu_attach_device() local 113 if (!zdev) in s390_iommu_attach_device() 116 if (WARN_ON(domain->geometry.aperture_start > zdev->end_dma || in s390_iommu_attach_device() 117 domain->geometry.aperture_end < zdev in s390_iommu_attach_device() 147 struct zpci_dev *zdev = to_zpci_dev(dev); s390_iommu_set_platform_dma() local 156 struct zpci_dev *zdev = to_zpci_dev(dev); s390_iommu_get_resv_regions() local 179 struct zpci_dev *zdev; s390_iommu_probe_device() local 198 struct zpci_dev *zdev = to_zpci_dev(dev); s390_iommu_release_device() local 211 struct zpci_dev *zdev; s390_iommu_flush_iotlb_all() local 226 struct zpci_dev *zdev; s390_iommu_iotlb_sync() local 244 struct zpci_dev *zdev; s390_iommu_iotlb_sync_map() local 402 zpci_init_iommu(struct zpci_dev *zdev) zpci_init_iommu() argument 424 zpci_destroy_iommu(struct zpci_dev *zdev) zpci_destroy_iommu() argument [all...] |
/kernel/linux/linux-5.10/drivers/iommu/ |
H A D | s390-iommu.c | 34 struct zpci_dev *zdev; member 90 struct zpci_dev *zdev = to_zpci_dev(dev); in s390_iommu_attach_device() local 95 if (!zdev) in s390_iommu_attach_device() 102 if (zdev->dma_table) in s390_iommu_attach_device() 103 zpci_dma_exit_device(zdev); in s390_iommu_attach_device() 105 zdev->dma_table = s390_domain->dma_table; in s390_iommu_attach_device() 106 rc = zpci_register_ioat(zdev, 0, zdev->start_dma, zdev->end_dma, in s390_iommu_attach_device() 107 (u64) zdev in s390_iommu_attach_device() 142 struct zpci_dev *zdev = to_zpci_dev(dev); s390_iommu_detach_device() local 171 struct zpci_dev *zdev = to_zpci_dev(dev); s390_iommu_probe_device() local 178 struct zpci_dev *zdev = to_zpci_dev(dev); s390_iommu_release_device() local 327 zpci_init_iommu(struct zpci_dev *zdev) zpci_init_iommu() argument 351 zpci_destroy_iommu(struct zpci_dev *zdev) zpci_destroy_iommu() argument [all...] |
/kernel/linux/linux-6.6/arch/s390/include/asm/ |
H A D | pci.h | 199 static inline bool zdev_enabled(struct zpci_dev *zdev) in zdev_enabled() argument 201 return (zdev->fh & (1UL << 31)) ? true : false; in zdev_enabled() 218 int zpci_scan_configured_device(struct zpci_dev *zdev, u32 fh); 219 int zpci_deconfigure_device(struct zpci_dev *zdev); 220 void zpci_device_reserved(struct zpci_dev *zdev); 221 bool zpci_is_device_configured(struct zpci_dev *zdev); 223 int zpci_hot_reset_device(struct zpci_dev *zdev); 227 void zpci_update_fh(struct zpci_dev *zdev, u32 fh); 232 int clp_query_pci_fn(struct zpci_dev *zdev); 233 int clp_enable_fh(struct zpci_dev *zdev, u3 246 zpci_use_mio(struct zpci_dev *zdev) zpci_use_mio() argument 264 zpci_init_slot(struct zpci_dev *zdev) zpci_init_slot() argument 268 zpci_exit_slot(struct zpci_dev *zdev) zpci_exit_slot() argument [all...] |
/kernel/linux/linux-6.6/drivers/dma/xilinx/ |
H A D | zynqmp_dma.c | 192 * @zdev: Driver specific device structure 216 struct zynqmp_dma_device *zdev; member 878 devm_free_irq(chan->zdev->dev, chan->irq, chan); in zynqmp_dma_chan_remove() 885 * @zdev: Driver specific device structure 890 static int zynqmp_dma_chan_probe(struct zynqmp_dma_device *zdev, in zynqmp_dma_chan_probe() argument 897 chan = devm_kzalloc(zdev->dev, sizeof(*chan), GFP_KERNEL); in zynqmp_dma_chan_probe() 900 chan->dev = zdev->dev; in zynqmp_dma_chan_probe() 901 chan->zdev = zdev; in zynqmp_dma_chan_probe() 918 dev_err(zdev in zynqmp_dma_chan_probe() 959 struct zynqmp_dma_device *zdev = ofdma->of_dma_data; of_zynqmp_dma_xlate() local 1003 struct zynqmp_dma_device *zdev = dev_get_drvdata(dev); zynqmp_dma_runtime_suspend() local 1020 struct zynqmp_dma_device *zdev = dev_get_drvdata(dev); zynqmp_dma_runtime_resume() local 1053 struct zynqmp_dma_device *zdev; zynqmp_dma_probe() local 1152 struct zynqmp_dma_device *zdev = platform_get_drvdata(pdev); zynqmp_dma_remove() local [all...] |