/kernel/linux/linux-5.10/drivers/misc/ocxl/ |
H A D | core.c | 18 struct ocxl_afu *afu; in alloc_afu() local 20 afu = kzalloc(sizeof(struct ocxl_afu), GFP_KERNEL); in alloc_afu() 21 if (!afu) in alloc_afu() 24 kref_init(&afu->kref); in alloc_afu() 25 mutex_init(&afu->contexts_lock); in alloc_afu() 26 mutex_init(&afu->afu_control_lock); in alloc_afu() 27 idr_init(&afu->contexts_idr); in alloc_afu() 28 afu->fn = fn; in alloc_afu() 30 return afu; in alloc_afu() 35 struct ocxl_afu *afu in free_afu() local 42 ocxl_afu_get(struct ocxl_afu *afu) ocxl_afu_get() argument 48 ocxl_afu_put(struct ocxl_afu *afu) ocxl_afu_put() argument 54 assign_afu_actag(struct ocxl_afu *afu) assign_afu_actag() argument 82 reclaim_afu_actag(struct ocxl_afu *afu) reclaim_afu_actag() argument 92 assign_afu_pasid(struct ocxl_afu *afu) assign_afu_pasid() argument 121 reclaim_afu_pasid(struct ocxl_afu *afu) reclaim_afu_pasid() argument 162 map_mmio_areas(struct ocxl_afu *afu) map_mmio_areas() argument 201 unmap_mmio_areas(struct ocxl_afu *afu) unmap_mmio_areas() argument 213 configure_afu(struct ocxl_afu *afu, u8 afu_idx, struct pci_dev *dev) configure_afu() argument 242 deconfigure_afu(struct ocxl_afu *afu) deconfigure_afu() argument 249 activate_afu(struct pci_dev *dev, struct ocxl_afu *afu) activate_afu() argument 256 deactivate_afu(struct ocxl_afu *afu) deactivate_afu() argument 266 struct ocxl_afu *afu; init_afu() local 290 remove_afu(struct ocxl_afu *afu) remove_afu() argument 478 u8 afu; ocxl_function_open() local 518 struct ocxl_afu *afu; ocxl_function_fetch_afu() local 537 struct ocxl_afu *afu, *tmp; ocxl_function_close() local 550 ocxl_afu_config(struct ocxl_afu *afu) ocxl_afu_config() argument 556 ocxl_afu_set_private(struct ocxl_afu *afu, void *private) ocxl_afu_set_private() argument 562 ocxl_afu_get_private(struct ocxl_afu *afu) ocxl_afu_get_private() argument [all...] |
H A D | mmio.c | 7 int ocxl_global_mmio_read32(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_read32() argument 10 if (offset > afu->config.global_mmio_size - 4) in ocxl_global_mmio_read32() 20 *val = readl_be((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read32() 24 *val = readl((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read32() 32 int ocxl_global_mmio_read64(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_read64() argument 35 if (offset > afu->config.global_mmio_size - 8) in ocxl_global_mmio_read64() 45 *val = readq_be((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read64() 49 *val = readq((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read64() 57 int ocxl_global_mmio_write32(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_write32() argument 60 if (offset > afu in ocxl_global_mmio_write32() 83 ocxl_global_mmio_write64(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u64 val) ocxl_global_mmio_write64() argument 109 ocxl_global_mmio_set32(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u32 mask) ocxl_global_mmio_set32() argument 140 ocxl_global_mmio_set64(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u64 mask) ocxl_global_mmio_set64() argument 171 ocxl_global_mmio_clear32(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u32 mask) ocxl_global_mmio_clear32() argument 203 ocxl_global_mmio_clear64(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u64 mask) ocxl_global_mmio_clear64() argument [all...] |
/kernel/linux/linux-6.6/drivers/misc/ocxl/ |
H A D | core.c | 18 struct ocxl_afu *afu; in alloc_afu() local 20 afu = kzalloc(sizeof(struct ocxl_afu), GFP_KERNEL); in alloc_afu() 21 if (!afu) in alloc_afu() 24 kref_init(&afu->kref); in alloc_afu() 25 mutex_init(&afu->contexts_lock); in alloc_afu() 26 mutex_init(&afu->afu_control_lock); in alloc_afu() 27 idr_init(&afu->contexts_idr); in alloc_afu() 28 afu->fn = fn; in alloc_afu() 30 return afu; in alloc_afu() 35 struct ocxl_afu *afu in free_afu() local 42 ocxl_afu_get(struct ocxl_afu *afu) ocxl_afu_get() argument 48 ocxl_afu_put(struct ocxl_afu *afu) ocxl_afu_put() argument 54 assign_afu_actag(struct ocxl_afu *afu) assign_afu_actag() argument 82 reclaim_afu_actag(struct ocxl_afu *afu) reclaim_afu_actag() argument 92 assign_afu_pasid(struct ocxl_afu *afu) assign_afu_pasid() argument 121 reclaim_afu_pasid(struct ocxl_afu *afu) reclaim_afu_pasid() argument 162 map_mmio_areas(struct ocxl_afu *afu) map_mmio_areas() argument 201 unmap_mmio_areas(struct ocxl_afu *afu) unmap_mmio_areas() argument 213 configure_afu(struct ocxl_afu *afu, u8 afu_idx, struct pci_dev *dev) configure_afu() argument 242 deconfigure_afu(struct ocxl_afu *afu) deconfigure_afu() argument 249 activate_afu(struct pci_dev *dev, struct ocxl_afu *afu) activate_afu() argument 256 deactivate_afu(struct ocxl_afu *afu) deactivate_afu() argument 266 struct ocxl_afu *afu; init_afu() local 290 remove_afu(struct ocxl_afu *afu) remove_afu() argument 478 u8 afu; ocxl_function_open() local 518 struct ocxl_afu *afu; ocxl_function_fetch_afu() local 537 struct ocxl_afu *afu, *tmp; ocxl_function_close() local 550 ocxl_afu_config(struct ocxl_afu *afu) ocxl_afu_config() argument 556 ocxl_afu_set_private(struct ocxl_afu *afu, void *private) ocxl_afu_set_private() argument 562 ocxl_afu_get_private(struct ocxl_afu *afu) ocxl_afu_get_private() argument [all...] |
H A D | mmio.c | 7 int ocxl_global_mmio_read32(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_read32() argument 10 if (offset > afu->config.global_mmio_size - 4) in ocxl_global_mmio_read32() 20 *val = readl_be((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read32() 24 *val = readl((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read32() 32 int ocxl_global_mmio_read64(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_read64() argument 35 if (offset > afu->config.global_mmio_size - 8) in ocxl_global_mmio_read64() 45 *val = readq_be((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read64() 49 *val = readq((char *)afu->global_mmio_ptr + offset); in ocxl_global_mmio_read64() 57 int ocxl_global_mmio_write32(struct ocxl_afu *afu, size_t offset, in ocxl_global_mmio_write32() argument 60 if (offset > afu in ocxl_global_mmio_write32() 83 ocxl_global_mmio_write64(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u64 val) ocxl_global_mmio_write64() argument 109 ocxl_global_mmio_set32(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u32 mask) ocxl_global_mmio_set32() argument 140 ocxl_global_mmio_set64(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u64 mask) ocxl_global_mmio_set64() argument 171 ocxl_global_mmio_clear32(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u32 mask) ocxl_global_mmio_clear32() argument 203 ocxl_global_mmio_clear64(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u64 mask) ocxl_global_mmio_clear64() argument [all...] |
/kernel/linux/linux-5.10/drivers/misc/cxl/ |
H A D | native.c | 21 static int afu_control(struct cxl_afu *afu, u64 command, u64 clear, in afu_control() argument 28 spin_lock(&afu->afu_cntl_lock); in afu_control() 31 trace_cxl_afu_ctrl(afu, command); in afu_control() 33 AFU_Cntl = cxl_p2n_read(afu, CXL_AFU_Cntl_An); in afu_control() 34 cxl_p2n_write(afu, CXL_AFU_Cntl_An, (AFU_Cntl & ~clear) | command); in afu_control() 36 AFU_Cntl = cxl_p2n_read(afu, CXL_AFU_Cntl_An); in afu_control() 39 dev_warn(&afu->dev, "WARNING: AFU control timed out!\n"); in afu_control() 44 if (!cxl_ops->link_ok(afu->adapter, afu)) { in afu_control() 45 afu in afu_control() 74 afu_enable(struct cxl_afu *afu) afu_enable() argument 83 cxl_afu_disable(struct cxl_afu *afu) cxl_afu_disable() argument 93 native_afu_reset(struct cxl_afu *afu) native_afu_reset() argument 119 native_afu_check_and_enable(struct cxl_afu *afu) native_afu_check_and_enable() argument 130 cxl_psl_purge(struct cxl_afu *afu) cxl_psl_purge() argument 222 cxl_alloc_spa(struct cxl_afu *afu, int mode) cxl_alloc_spa() argument 255 attach_spa(struct cxl_afu *afu) attach_spa() argument 271 detach_spa(struct cxl_afu *afu) detach_spa() argument 276 cxl_release_spa(struct cxl_afu *afu) cxl_release_spa() argument 387 cxl_write_sstp(struct cxl_afu *afu, u64 sstp0, u64 sstp1) cxl_write_sstp() argument 552 activate_afu_directed(struct cxl_afu *afu) activate_afu_directed() argument 786 deactivate_afu_directed(struct cxl_afu *afu) deactivate_afu_directed() argument 829 cxl_activate_dedicated_process_psl9(struct cxl_afu *afu) cxl_activate_dedicated_process_psl9() argument 855 cxl_activate_dedicated_process_psl8(struct cxl_afu *afu) cxl_activate_dedicated_process_psl8() argument 890 struct cxl_afu *afu = ctx->afu; cxl_update_dedicated_ivtes_psl8() local 906 struct cxl_afu *afu = ctx->afu; cxl_attach_dedicated_process_psl9() local 934 struct cxl_afu *afu = ctx->afu; cxl_attach_dedicated_process_psl8() local 966 deactivate_dedicated_process(struct cxl_afu *afu) deactivate_dedicated_process() argument 978 native_afu_deactivate_mode(struct cxl_afu *afu, int mode) native_afu_deactivate_mode() argument 987 native_afu_activate_mode(struct cxl_afu *afu, int mode) native_afu_activate_mode() argument 1084 native_get_irq_info(struct cxl_afu *afu, struct cxl_irq_info *info) native_get_irq_info() argument 1152 cxl_is_translation_fault(struct cxl_afu *afu, u64 dsisr) cxl_is_translation_fault() argument 1163 cxl_fail_irq_psl(struct cxl_afu *afu, struct cxl_irq_info *irq_info) cxl_fail_irq_psl() argument 1175 struct cxl_afu *afu = data; native_irq_multiplexed() local 1251 struct cxl_afu *afu = data; native_slice_irq_err() local 1360 cxl_native_register_serr_irq(struct cxl_afu *afu) cxl_native_register_serr_irq() argument 1393 cxl_native_release_serr_irq(struct cxl_afu *afu) cxl_native_release_serr_irq() argument 1406 cxl_native_register_psl_irq(struct cxl_afu *afu) cxl_native_register_psl_irq() argument 1424 cxl_native_release_psl_irq(struct cxl_afu *afu) cxl_native_release_psl_irq() argument 1437 recover_psl_err(struct cxl_afu *afu, u64 errstat) recover_psl_err() argument 1462 cxl_check_error(struct cxl_afu *afu) cxl_check_error() argument 1473 native_afu_cr_read64(struct cxl_afu *afu, int cr, u64 off, u64 *out) native_afu_cr_read64() argument 1484 native_afu_cr_read32(struct cxl_afu *afu, int cr, u64 off, u32 *out) native_afu_cr_read32() argument 1495 native_afu_cr_read16(struct cxl_afu *afu, int cr, u64 off, u16 *out) native_afu_cr_read16() argument 1507 native_afu_cr_read8(struct cxl_afu *afu, int cr, u64 off, u8 *out) native_afu_cr_read8() argument 1519 native_afu_cr_write32(struct cxl_afu *afu, int cr, u64 off, u32 in) native_afu_cr_write32() argument 1530 native_afu_cr_write16(struct cxl_afu *afu, int cr, u64 off, u16 in) native_afu_cr_write16() argument 1548 native_afu_cr_write8(struct cxl_afu *afu, int cr, u64 off, u8 in) native_afu_cr_write8() argument [all...] |
H A D | guest.c | 18 static void pci_error_handlers(struct cxl_afu *afu, in pci_error_handlers() argument 24 if (afu->phb == NULL) in pci_error_handlers() 27 list_for_each_entry(afu_dev, &afu->phb->bus->devices, bus_list) { in pci_error_handlers() 59 dev_crit(&ctx->afu->dev, "PSL ERROR STATUS: 0x%.16llx\n", errstat); in guest_handle_psl_slice_error() 64 static ssize_t guest_collect_vpd(struct cxl *adapter, struct cxl_afu *afu, in guest_collect_vpd() argument 114 rc = cxl_h_collect_vpd(afu->guest->handle, 0, in guest_collect_vpd() 152 return cxl_h_collect_int_info(ctx->afu->guest->handle, ctx->process_token, info); in guest_get_irq_info() 172 static int afu_read_error_state(struct cxl_afu *afu, int *state_out) in afu_read_error_state() argument 177 if (!afu) in afu_read_error_state() 180 rc = cxl_h_read_error_state(afu in afu_read_error_state() 193 struct cxl_afu *afu = data; guest_slice_irq_err() local 262 struct cxl_afu *afu = NULL; guest_reset() local 349 guest_register_serr_irq(struct cxl_afu *afu) guest_register_serr_irq() argument 366 guest_release_serr_irq(struct cxl_afu *afu) guest_release_serr_irq() argument 411 _guest_afu_cr_readXX(int sz, struct cxl_afu *afu, int cr_idx, u64 offset, u64 *val) _guest_afu_cr_readXX() argument 455 guest_afu_cr_read32(struct cxl_afu *afu, int cr_idx, u64 offset, u32 *out) guest_afu_cr_read32() argument 467 guest_afu_cr_read16(struct cxl_afu *afu, int cr_idx, u64 offset, u16 *out) guest_afu_cr_read16() argument 479 guest_afu_cr_read8(struct cxl_afu *afu, int cr_idx, u64 offset, u8 *out) guest_afu_cr_read8() argument 491 guest_afu_cr_read64(struct cxl_afu *afu, int cr_idx, u64 offset, u64 *out) guest_afu_cr_read64() argument 497 guest_afu_cr_write32(struct cxl_afu *afu, int cr, u64 off, u32 in) guest_afu_cr_write32() argument 503 guest_afu_cr_write16(struct cxl_afu *afu, int cr, u64 off, u16 in) guest_afu_cr_write16() argument 509 guest_afu_cr_write8(struct cxl_afu *afu, int cr, u64 off, u8 in) guest_afu_cr_write8() argument 658 struct cxl_afu *afu = to_cxl_afu(dev); guest_release_afu() local 668 cxl_guest_read_afu_vpd(struct cxl_afu *afu, void *buf, size_t len) cxl_guest_read_afu_vpd() argument 674 guest_afu_read_err_buffer(struct cxl_afu *afu, char *buf, loff_t off, size_t count) guest_afu_read_err_buffer() argument 700 guest_afu_check_and_enable(struct cxl_afu *afu) guest_afu_check_and_enable() argument 729 activate_afu_directed(struct cxl_afu *afu) activate_afu_directed() argument 756 guest_afu_activate_mode(struct cxl_afu *afu, int mode) guest_afu_activate_mode() argument 772 deactivate_afu_directed(struct cxl_afu *afu) deactivate_afu_directed() argument 787 guest_afu_deactivate_mode(struct cxl_afu *afu, int mode) guest_afu_deactivate_mode() argument 799 guest_afu_reset(struct cxl_afu *afu) guest_afu_reset() argument 805 guest_map_slice_regs(struct cxl_afu *afu) guest_map_slice_regs() argument 815 guest_unmap_slice_regs(struct cxl_afu *afu) guest_unmap_slice_regs() argument 821 afu_update_state(struct cxl_afu *afu) afu_update_state() argument 890 guest_link_ok(struct cxl *cxl, struct cxl_afu *afu) guest_link_ok() argument 902 afu_properties_look_ok(struct cxl_afu *afu) afu_properties_look_ok() argument 919 struct cxl_afu *afu; cxl_guest_init_afu() local 1019 cxl_guest_remove_afu(struct cxl_afu *afu) cxl_guest_remove_afu() argument [all...] |
H A D | pci.c | 89 #define AFUD_READ(afu, off) in_be64(afu->native->afu_desc_mmio + off) 90 #define AFUD_READ_LE(afu, off) in_le64(afu->native->afu_desc_mmio + off) 94 #define AFUD_READ_INFO(afu) AFUD_READ(afu, 0x0) 103 #define AFUD_READ_CR(afu) AFUD_READ(afu, 0x20) 105 #define AFUD_READ_CR_OFF(afu) AFUD_READ(afu, 268 dump_afu_descriptor(struct cxl_afu *afu) dump_afu_descriptor() argument 638 init_implementation_afu_regs_psl9(struct cxl_afu *afu) init_implementation_afu_regs_psl9() argument 643 init_implementation_afu_regs_psl8(struct cxl_afu *afu) init_implementation_afu_regs_psl8() argument 783 pci_map_slice_regs(struct cxl_afu *afu, struct cxl *adapter, struct pci_dev *dev) pci_map_slice_regs() argument 813 pci_unmap_slice_regs(struct cxl_afu *afu) pci_unmap_slice_regs() argument 831 struct cxl_afu *afu = to_cxl_afu(dev); cxl_pci_release_afu() local 843 cxl_read_afu_descriptor(struct cxl_afu *afu) cxl_read_afu_descriptor() argument 888 cxl_afu_descriptor_looks_ok(struct cxl_afu *afu) cxl_afu_descriptor_looks_ok() argument 928 sanitise_afu_regs_psl9(struct cxl_afu *afu) sanitise_afu_regs_psl9() argument 974 sanitise_afu_regs_psl8(struct cxl_afu *afu) sanitise_afu_regs_psl8() argument 1036 cxl_pci_afu_read_err_buffer(struct cxl_afu *afu, char *buf, loff_t off, size_t count) cxl_pci_afu_read_err_buffer() argument 1073 pci_configure_afu(struct cxl_afu *afu, struct cxl *adapter, struct pci_dev *dev) pci_configure_afu() argument 1121 pci_deconfigure_afu(struct cxl_afu *afu) pci_deconfigure_afu() argument 1139 struct cxl_afu *afu; pci_init_afu() local 1196 cxl_pci_remove_afu(struct cxl_afu *afu) cxl_pci_remove_afu() argument 1785 struct cxl_afu *afu; cxl_remove() local 1799 cxl_vphb_error_detected(struct cxl_afu *afu, pci_channel_state_t state) cxl_vphb_error_detected() argument 1835 struct cxl_afu *afu; cxl_pci_error_detected() local 1977 struct cxl_afu *afu; cxl_pci_slot_reset() local 2066 struct cxl_afu *afu; cxl_pci_resume() local [all...] |
H A D | vphb.c | 31 struct cxl_afu *afu; in cxl_pci_enable_device_hook() local 35 afu = (struct cxl_afu *)phb->private_data; in cxl_pci_enable_device_hook() 37 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_pci_enable_device_hook() 53 return (cxl_ops->afu_check_and_enable(afu) == 0); in cxl_pci_enable_device_hook() 93 static void cxl_afu_configured_put(struct cxl_afu *afu) in cxl_afu_configured_put() argument 95 atomic_dec_if_positive(&afu->configured_state); in cxl_afu_configured_put() 98 static bool cxl_afu_configured_get(struct cxl_afu *afu) in cxl_afu_configured_get() argument 100 return atomic_inc_unless_negative(&afu->configured_state); in cxl_afu_configured_get() 104 struct cxl_afu *afu, in in cxl_pcie_config_info() 103 cxl_pcie_config_info(struct pci_bus *bus, unsigned int devfn, struct cxl_afu *afu, int *_record) cxl_pcie_config_info() argument 120 struct cxl_afu *afu; cxl_pcie_read_config() local 160 struct cxl_afu *afu; cxl_pcie_write_config() local 209 cxl_pci_vphb_add(struct cxl_afu *afu) cxl_pci_vphb_add() argument 275 cxl_pci_vphb_remove(struct cxl_afu *afu) cxl_pci_vphb_remove() argument [all...] |
H A D | trace.h | 70 __field(u8, afu) 75 __entry->card = ctx->afu->adapter->adapter_num; 76 __entry->afu = ctx->afu->slice; 80 TP_printk("afu%i.%i pe=%i", 82 __entry->afu, 95 __field(u8, afu) 104 __entry->card = ctx->afu->adapter->adapter_num; 105 __entry->afu = ctx->afu [all...] |
H A D | file.c | 28 #define CXL_AFU_MINOR_D(afu) (CXL_CARD_MINOR(afu->adapter) + 1 + (3 * afu->slice)) 29 #define CXL_AFU_MINOR_M(afu) (CXL_AFU_MINOR_D(afu) + 1) 30 #define CXL_AFU_MINOR_S(afu) (CXL_AFU_MINOR_D(afu) + 2) 31 #define CXL_AFU_MKDEV_D(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_D(afu)) 32 #define CXL_AFU_MKDEV_M(afu) MKDE 46 struct cxl_afu *afu; __afu_open() local 564 cxl_add_chardev(struct cxl_afu *afu, dev_t devt, struct cdev *cdev, struct device **chardev, char *postfix, char *desc, const struct file_operations *fops) cxl_add_chardev() argument 593 cxl_chardev_d_afu_add(struct cxl_afu *afu) cxl_chardev_d_afu_add() argument 600 cxl_chardev_m_afu_add(struct cxl_afu *afu) cxl_chardev_m_afu_add() argument 607 cxl_chardev_s_afu_add(struct cxl_afu *afu) cxl_chardev_s_afu_add() argument 614 cxl_chardev_afu_remove(struct cxl_afu *afu) cxl_chardev_afu_remove() argument 633 cxl_register_afu(struct cxl_afu *afu) cxl_register_afu() argument [all...] |
H A D | debugfs.c | 80 void cxl_debugfs_add_afu_regs_psl9(struct cxl_afu *afu, struct dentry *dir) in cxl_debugfs_add_afu_regs_psl9() argument 82 debugfs_create_io_x64("serr", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_SERR_An)); in cxl_debugfs_add_afu_regs_psl9() 85 void cxl_debugfs_add_afu_regs_psl8(struct cxl_afu *afu, struct dentry *dir) in cxl_debugfs_add_afu_regs_psl8() argument 87 debugfs_create_io_x64("sstp0", S_IRUSR, dir, _cxl_p2n_addr(afu, CXL_SSTP0_An)); in cxl_debugfs_add_afu_regs_psl8() 88 debugfs_create_io_x64("sstp1", S_IRUSR, dir, _cxl_p2n_addr(afu, CXL_SSTP1_An)); in cxl_debugfs_add_afu_regs_psl8() 90 debugfs_create_io_x64("fir", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_FIR_SLICE_An)); in cxl_debugfs_add_afu_regs_psl8() 91 debugfs_create_io_x64("serr", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_SERR_An)); in cxl_debugfs_add_afu_regs_psl8() 92 debugfs_create_io_x64("afu_debug", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_AFU_DEBUG_An)); in cxl_debugfs_add_afu_regs_psl8() 93 debugfs_create_io_x64("trace", S_IRUSR | S_IWUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_SLICE_TRACE)); in cxl_debugfs_add_afu_regs_psl8() 96 void cxl_debugfs_afu_add(struct cxl_afu *afu) in cxl_debugfs_afu_add() argument 118 cxl_debugfs_afu_remove(struct cxl_afu *afu) cxl_debugfs_afu_remove() argument [all...] |
H A D | sysfs.c | 204 struct cxl_afu *afu = to_afu_chardev_m(device); in mmio_size_show_master() local 206 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->adapter->ps_size); in mmio_size_show_master() 213 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_off_show() local 215 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->native->pp_offset); in pp_mmio_off_show() 222 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_len_show() local 224 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->pp_size); in pp_mmio_len_show() 240 struct cxl_afu *afu = to_cxl_afu(device); in mmio_size_show() local 242 if (afu->pp_size) in mmio_size_show() 243 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->pp_size); in mmio_size_show() 244 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu in mmio_size_show() 251 struct cxl_afu *afu = to_cxl_afu(device); reset_store_afu() local 274 struct cxl_afu *afu = to_cxl_afu(device); irqs_min_show() local 283 struct cxl_afu *afu = to_cxl_afu(device); irqs_max_show() local 292 struct cxl_afu *afu = to_cxl_afu(device); irqs_max_store() local 319 struct cxl_afu *afu = to_cxl_afu(device); modes_supported_show() local 333 struct cxl_afu *afu = to_cxl_afu(device); prefault_mode_show() local 349 struct cxl_afu *afu = to_cxl_afu(device); prefault_mode_store() local 378 struct cxl_afu *afu = to_cxl_afu(device); mode_show() local 390 struct cxl_afu *afu = to_cxl_afu(device); mode_store() local 450 struct cxl_afu *afu = to_cxl_afu(kobj_to_dev(kobj)); afu_eb_read() local 545 struct cxl_afu *afu = to_cxl_afu(kobj_to_dev(kobj->parent)); afu_read_config() local 587 cxl_sysfs_afu_new_cr(struct cxl_afu *afu, int cr_idx) cxl_sysfs_afu_new_cr() argument 648 cxl_sysfs_afu_remove(struct cxl_afu *afu) cxl_sysfs_afu_remove() argument 671 cxl_sysfs_afu_add(struct cxl_afu *afu) cxl_sysfs_afu_add() argument 733 cxl_sysfs_afu_m_add(struct cxl_afu *afu) cxl_sysfs_afu_m_add() argument 759 cxl_sysfs_afu_m_remove(struct cxl_afu *afu) cxl_sysfs_afu_m_remove() argument [all...] |
H A D | of.c | 70 struct cxl_afu *afu) in read_phys_addr() 88 afu->guest->handle = addr; in read_phys_addr() 91 afu->guest->p2n_phys += addr; in read_phys_addr() 92 afu->guest->p2n_size = size; in read_phys_addr() 95 afu->psn_phys += addr; in read_phys_addr() 96 afu->adapter->ps_size = size; in read_phys_addr() 111 static int read_vpd(struct cxl *adapter, struct cxl_afu *afu) in read_vpd() argument 122 rc = cxl_guest_read_afu_vpd(afu, vpd, len); in read_vpd() 131 int cxl_of_read_afu_handle(struct cxl_afu *afu, struct device_node *afu_np) in cxl_of_read_afu_handle() argument 133 if (read_handle(afu_np, &afu in cxl_of_read_afu_handle() 69 read_phys_addr(struct device_node *np, char *prop_name, struct cxl_afu *afu) read_phys_addr() argument 140 cxl_of_read_afu_properties(struct cxl_afu *afu, struct device_node *np) cxl_of_read_afu_properties() argument 438 int afu; cxl_of_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/misc/cxl/ |
H A D | native.c | 22 static int afu_control(struct cxl_afu *afu, u64 command, u64 clear, in afu_control() argument 29 spin_lock(&afu->afu_cntl_lock); in afu_control() 32 trace_cxl_afu_ctrl(afu, command); in afu_control() 34 AFU_Cntl = cxl_p2n_read(afu, CXL_AFU_Cntl_An); in afu_control() 35 cxl_p2n_write(afu, CXL_AFU_Cntl_An, (AFU_Cntl & ~clear) | command); in afu_control() 37 AFU_Cntl = cxl_p2n_read(afu, CXL_AFU_Cntl_An); in afu_control() 40 dev_warn(&afu->dev, "WARNING: AFU control timed out!\n"); in afu_control() 45 if (!cxl_ops->link_ok(afu->adapter, afu)) { in afu_control() 46 afu in afu_control() 75 afu_enable(struct cxl_afu *afu) afu_enable() argument 84 cxl_afu_disable(struct cxl_afu *afu) cxl_afu_disable() argument 94 native_afu_reset(struct cxl_afu *afu) native_afu_reset() argument 120 native_afu_check_and_enable(struct cxl_afu *afu) native_afu_check_and_enable() argument 131 cxl_psl_purge(struct cxl_afu *afu) cxl_psl_purge() argument 223 cxl_alloc_spa(struct cxl_afu *afu, int mode) cxl_alloc_spa() argument 256 attach_spa(struct cxl_afu *afu) attach_spa() argument 272 cxl_release_spa(struct cxl_afu *afu) cxl_release_spa() argument 383 cxl_write_sstp(struct cxl_afu *afu, u64 sstp0, u64 sstp1) cxl_write_sstp() argument 548 activate_afu_directed(struct cxl_afu *afu) activate_afu_directed() argument 782 deactivate_afu_directed(struct cxl_afu *afu) deactivate_afu_directed() argument 825 cxl_activate_dedicated_process_psl9(struct cxl_afu *afu) cxl_activate_dedicated_process_psl9() argument 851 cxl_activate_dedicated_process_psl8(struct cxl_afu *afu) cxl_activate_dedicated_process_psl8() argument 886 struct cxl_afu *afu = ctx->afu; cxl_update_dedicated_ivtes_psl8() local 902 struct cxl_afu *afu = ctx->afu; cxl_attach_dedicated_process_psl9() local 930 struct cxl_afu *afu = ctx->afu; cxl_attach_dedicated_process_psl8() local 962 deactivate_dedicated_process(struct cxl_afu *afu) deactivate_dedicated_process() argument 974 native_afu_deactivate_mode(struct cxl_afu *afu, int mode) native_afu_deactivate_mode() argument 983 native_afu_activate_mode(struct cxl_afu *afu, int mode) native_afu_activate_mode() argument 1080 native_get_irq_info(struct cxl_afu *afu, struct cxl_irq_info *info) native_get_irq_info() argument 1148 cxl_is_translation_fault(struct cxl_afu *afu, u64 dsisr) cxl_is_translation_fault() argument 1159 cxl_fail_irq_psl(struct cxl_afu *afu, struct cxl_irq_info *irq_info) cxl_fail_irq_psl() argument 1171 struct cxl_afu *afu = data; native_irq_multiplexed() local 1247 struct cxl_afu *afu = data; native_slice_irq_err() local 1356 cxl_native_register_serr_irq(struct cxl_afu *afu) cxl_native_register_serr_irq() argument 1389 cxl_native_release_serr_irq(struct cxl_afu *afu) cxl_native_release_serr_irq() argument 1402 cxl_native_register_psl_irq(struct cxl_afu *afu) cxl_native_register_psl_irq() argument 1420 cxl_native_release_psl_irq(struct cxl_afu *afu) cxl_native_release_psl_irq() argument 1433 recover_psl_err(struct cxl_afu *afu, u64 errstat) recover_psl_err() argument 1458 cxl_check_error(struct cxl_afu *afu) cxl_check_error() argument 1469 native_afu_cr_read64(struct cxl_afu *afu, int cr, u64 off, u64 *out) native_afu_cr_read64() argument 1480 native_afu_cr_read32(struct cxl_afu *afu, int cr, u64 off, u32 *out) native_afu_cr_read32() argument 1491 native_afu_cr_read16(struct cxl_afu *afu, int cr, u64 off, u16 *out) native_afu_cr_read16() argument 1503 native_afu_cr_read8(struct cxl_afu *afu, int cr, u64 off, u8 *out) native_afu_cr_read8() argument 1515 native_afu_cr_write32(struct cxl_afu *afu, int cr, u64 off, u32 in) native_afu_cr_write32() argument 1526 native_afu_cr_write16(struct cxl_afu *afu, int cr, u64 off, u16 in) native_afu_cr_write16() argument 1544 native_afu_cr_write8(struct cxl_afu *afu, int cr, u64 off, u8 in) native_afu_cr_write8() argument [all...] |
H A D | guest.c | 20 static void pci_error_handlers(struct cxl_afu *afu, in pci_error_handlers() argument 28 if (afu->phb == NULL) in pci_error_handlers() 31 list_for_each_entry(afu_dev, &afu->phb->bus->devices, bus_list) { in pci_error_handlers() 65 dev_crit(&ctx->afu->dev, "PSL ERROR STATUS: 0x%.16llx\n", errstat); in guest_handle_psl_slice_error() 70 static ssize_t guest_collect_vpd(struct cxl *adapter, struct cxl_afu *afu, in guest_collect_vpd() argument 120 rc = cxl_h_collect_vpd(afu->guest->handle, 0, in guest_collect_vpd() 158 return cxl_h_collect_int_info(ctx->afu->guest->handle, ctx->process_token, info); in guest_get_irq_info() 178 static int afu_read_error_state(struct cxl_afu *afu, int *state_out) in afu_read_error_state() argument 183 if (!afu) in afu_read_error_state() 186 rc = cxl_h_read_error_state(afu in afu_read_error_state() 199 struct cxl_afu *afu = data; guest_slice_irq_err() local 268 struct cxl_afu *afu = NULL; guest_reset() local 355 guest_register_serr_irq(struct cxl_afu *afu) guest_register_serr_irq() argument 372 guest_release_serr_irq(struct cxl_afu *afu) guest_release_serr_irq() argument 417 _guest_afu_cr_readXX(int sz, struct cxl_afu *afu, int cr_idx, u64 offset, u64 *val) _guest_afu_cr_readXX() argument 461 guest_afu_cr_read32(struct cxl_afu *afu, int cr_idx, u64 offset, u32 *out) guest_afu_cr_read32() argument 473 guest_afu_cr_read16(struct cxl_afu *afu, int cr_idx, u64 offset, u16 *out) guest_afu_cr_read16() argument 485 guest_afu_cr_read8(struct cxl_afu *afu, int cr_idx, u64 offset, u8 *out) guest_afu_cr_read8() argument 497 guest_afu_cr_read64(struct cxl_afu *afu, int cr_idx, u64 offset, u64 *out) guest_afu_cr_read64() argument 503 guest_afu_cr_write32(struct cxl_afu *afu, int cr, u64 off, u32 in) guest_afu_cr_write32() argument 509 guest_afu_cr_write16(struct cxl_afu *afu, int cr, u64 off, u16 in) guest_afu_cr_write16() argument 515 guest_afu_cr_write8(struct cxl_afu *afu, int cr, u64 off, u8 in) guest_afu_cr_write8() argument 664 struct cxl_afu *afu = to_cxl_afu(dev); guest_release_afu() local 674 cxl_guest_read_afu_vpd(struct cxl_afu *afu, void *buf, size_t len) cxl_guest_read_afu_vpd() argument 680 guest_afu_read_err_buffer(struct cxl_afu *afu, char *buf, loff_t off, size_t count) guest_afu_read_err_buffer() argument 706 guest_afu_check_and_enable(struct cxl_afu *afu) guest_afu_check_and_enable() argument 735 activate_afu_directed(struct cxl_afu *afu) activate_afu_directed() argument 762 guest_afu_activate_mode(struct cxl_afu *afu, int mode) guest_afu_activate_mode() argument 778 deactivate_afu_directed(struct cxl_afu *afu) deactivate_afu_directed() argument 793 guest_afu_deactivate_mode(struct cxl_afu *afu, int mode) guest_afu_deactivate_mode() argument 805 guest_afu_reset(struct cxl_afu *afu) guest_afu_reset() argument 811 guest_map_slice_regs(struct cxl_afu *afu) guest_map_slice_regs() argument 821 guest_unmap_slice_regs(struct cxl_afu *afu) guest_unmap_slice_regs() argument 827 afu_update_state(struct cxl_afu *afu) afu_update_state() argument 896 guest_link_ok(struct cxl *cxl, struct cxl_afu *afu) guest_link_ok() argument 908 afu_properties_look_ok(struct cxl_afu *afu) afu_properties_look_ok() argument 925 struct cxl_afu *afu; cxl_guest_init_afu() local 1025 cxl_guest_remove_afu(struct cxl_afu *afu) cxl_guest_remove_afu() argument [all...] |
H A D | pci.c | 89 #define AFUD_READ(afu, off) in_be64(afu->native->afu_desc_mmio + off) 90 #define AFUD_READ_LE(afu, off) in_le64(afu->native->afu_desc_mmio + off) 94 #define AFUD_READ_INFO(afu) AFUD_READ(afu, 0x0) 103 #define AFUD_READ_CR(afu) AFUD_READ(afu, 0x20) 105 #define AFUD_READ_CR_OFF(afu) AFUD_READ(afu, 259 dump_afu_descriptor(struct cxl_afu *afu) dump_afu_descriptor() argument 629 init_implementation_afu_regs_psl9(struct cxl_afu *afu) init_implementation_afu_regs_psl9() argument 634 init_implementation_afu_regs_psl8(struct cxl_afu *afu) init_implementation_afu_regs_psl8() argument 774 pci_map_slice_regs(struct cxl_afu *afu, struct cxl *adapter, struct pci_dev *dev) pci_map_slice_regs() argument 804 pci_unmap_slice_regs(struct cxl_afu *afu) pci_unmap_slice_regs() argument 822 struct cxl_afu *afu = to_cxl_afu(dev); cxl_pci_release_afu() local 834 cxl_read_afu_descriptor(struct cxl_afu *afu) cxl_read_afu_descriptor() argument 879 cxl_afu_descriptor_looks_ok(struct cxl_afu *afu) cxl_afu_descriptor_looks_ok() argument 919 sanitise_afu_regs_psl9(struct cxl_afu *afu) sanitise_afu_regs_psl9() argument 965 sanitise_afu_regs_psl8(struct cxl_afu *afu) sanitise_afu_regs_psl8() argument 1027 cxl_pci_afu_read_err_buffer(struct cxl_afu *afu, char *buf, loff_t off, size_t count) cxl_pci_afu_read_err_buffer() argument 1064 pci_configure_afu(struct cxl_afu *afu, struct cxl *adapter, struct pci_dev *dev) pci_configure_afu() argument 1112 pci_deconfigure_afu(struct cxl_afu *afu) pci_deconfigure_afu() argument 1130 struct cxl_afu *afu; pci_init_afu() local 1187 cxl_pci_remove_afu(struct cxl_afu *afu) cxl_pci_remove_afu() argument 1776 struct cxl_afu *afu; cxl_remove() local 1790 cxl_vphb_error_detected(struct cxl_afu *afu, pci_channel_state_t state) cxl_vphb_error_detected() argument 1830 struct cxl_afu *afu; cxl_pci_error_detected() local 1972 struct cxl_afu *afu; cxl_pci_slot_reset() local 2064 struct cxl_afu *afu; cxl_pci_resume() local [all...] |
H A D | vphb.c | 31 struct cxl_afu *afu; in cxl_pci_enable_device_hook() local 35 afu = (struct cxl_afu *)phb->private_data; in cxl_pci_enable_device_hook() 37 if (!cxl_ops->link_ok(afu->adapter, afu)) { in cxl_pci_enable_device_hook() 53 return (cxl_ops->afu_check_and_enable(afu) == 0); in cxl_pci_enable_device_hook() 87 static void cxl_afu_configured_put(struct cxl_afu *afu) in cxl_afu_configured_put() argument 89 atomic_dec_if_positive(&afu->configured_state); in cxl_afu_configured_put() 92 static bool cxl_afu_configured_get(struct cxl_afu *afu) in cxl_afu_configured_get() argument 94 return atomic_inc_unless_negative(&afu->configured_state); in cxl_afu_configured_get() 98 struct cxl_afu *afu, in in cxl_pcie_config_info() 97 cxl_pcie_config_info(struct pci_bus *bus, unsigned int devfn, struct cxl_afu *afu, int *_record) cxl_pcie_config_info() argument 114 struct cxl_afu *afu; cxl_pcie_read_config() local 154 struct cxl_afu *afu; cxl_pcie_write_config() local 202 cxl_pci_vphb_add(struct cxl_afu *afu) cxl_pci_vphb_add() argument 268 cxl_pci_vphb_remove(struct cxl_afu *afu) cxl_pci_vphb_remove() argument [all...] |
H A D | trace.h | 70 __field(u8, afu) 75 __entry->card = ctx->afu->adapter->adapter_num; 76 __entry->afu = ctx->afu->slice; 80 TP_printk("afu%i.%i pe=%i", 82 __entry->afu, 95 __field(u8, afu) 104 __entry->card = ctx->afu->adapter->adapter_num; 105 __entry->afu = ctx->afu [all...] |
H A D | file.c | 28 #define CXL_AFU_MINOR_D(afu) (CXL_CARD_MINOR(afu->adapter) + 1 + (3 * afu->slice)) 29 #define CXL_AFU_MINOR_M(afu) (CXL_AFU_MINOR_D(afu) + 1) 30 #define CXL_AFU_MINOR_S(afu) (CXL_AFU_MINOR_D(afu) + 2) 31 #define CXL_AFU_MKDEV_D(afu) MKDEV(MAJOR(cxl_dev), CXL_AFU_MINOR_D(afu)) 32 #define CXL_AFU_MKDEV_M(afu) MKDE 46 struct cxl_afu *afu; __afu_open() local 564 cxl_add_chardev(struct cxl_afu *afu, dev_t devt, struct cdev *cdev, struct device **chardev, char *postfix, char *desc, const struct file_operations *fops) cxl_add_chardev() argument 594 cxl_chardev_d_afu_add(struct cxl_afu *afu) cxl_chardev_d_afu_add() argument 601 cxl_chardev_m_afu_add(struct cxl_afu *afu) cxl_chardev_m_afu_add() argument 608 cxl_chardev_s_afu_add(struct cxl_afu *afu) cxl_chardev_s_afu_add() argument 615 cxl_chardev_afu_remove(struct cxl_afu *afu) cxl_chardev_afu_remove() argument 634 cxl_register_afu(struct cxl_afu *afu) cxl_register_afu() argument [all...] |
H A D | debugfs.c | 80 void cxl_debugfs_add_afu_regs_psl9(struct cxl_afu *afu, struct dentry *dir) in cxl_debugfs_add_afu_regs_psl9() argument 82 debugfs_create_io_x64("serr", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_SERR_An)); in cxl_debugfs_add_afu_regs_psl9() 85 void cxl_debugfs_add_afu_regs_psl8(struct cxl_afu *afu, struct dentry *dir) in cxl_debugfs_add_afu_regs_psl8() argument 87 debugfs_create_io_x64("sstp0", S_IRUSR, dir, _cxl_p2n_addr(afu, CXL_SSTP0_An)); in cxl_debugfs_add_afu_regs_psl8() 88 debugfs_create_io_x64("sstp1", S_IRUSR, dir, _cxl_p2n_addr(afu, CXL_SSTP1_An)); in cxl_debugfs_add_afu_regs_psl8() 90 debugfs_create_io_x64("fir", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_FIR_SLICE_An)); in cxl_debugfs_add_afu_regs_psl8() 91 debugfs_create_io_x64("serr", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_SERR_An)); in cxl_debugfs_add_afu_regs_psl8() 92 debugfs_create_io_x64("afu_debug", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_AFU_DEBUG_An)); in cxl_debugfs_add_afu_regs_psl8() 93 debugfs_create_io_x64("trace", S_IRUSR | S_IWUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_SLICE_TRACE)); in cxl_debugfs_add_afu_regs_psl8() 96 void cxl_debugfs_afu_add(struct cxl_afu *afu) in cxl_debugfs_afu_add() argument 118 cxl_debugfs_afu_remove(struct cxl_afu *afu) cxl_debugfs_afu_remove() argument [all...] |
H A D | sysfs.c | 204 struct cxl_afu *afu = to_afu_chardev_m(device); in mmio_size_show_master() local 206 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->adapter->ps_size); in mmio_size_show_master() 213 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_off_show() local 215 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->native->pp_offset); in pp_mmio_off_show() 222 struct cxl_afu *afu = to_afu_chardev_m(device); in pp_mmio_len_show() local 224 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->pp_size); in pp_mmio_len_show() 240 struct cxl_afu *afu = to_cxl_afu(device); in mmio_size_show() local 242 if (afu->pp_size) in mmio_size_show() 243 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->pp_size); in mmio_size_show() 244 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu in mmio_size_show() 251 struct cxl_afu *afu = to_cxl_afu(device); reset_store_afu() local 274 struct cxl_afu *afu = to_cxl_afu(device); irqs_min_show() local 283 struct cxl_afu *afu = to_cxl_afu(device); irqs_max_show() local 292 struct cxl_afu *afu = to_cxl_afu(device); irqs_max_store() local 319 struct cxl_afu *afu = to_cxl_afu(device); modes_supported_show() local 333 struct cxl_afu *afu = to_cxl_afu(device); prefault_mode_show() local 349 struct cxl_afu *afu = to_cxl_afu(device); prefault_mode_store() local 378 struct cxl_afu *afu = to_cxl_afu(device); mode_show() local 390 struct cxl_afu *afu = to_cxl_afu(device); mode_store() local 450 struct cxl_afu *afu = to_cxl_afu(kobj_to_dev(kobj)); afu_eb_read() local 545 struct cxl_afu *afu = to_cxl_afu(kobj_to_dev(kobj->parent)); afu_read_config() local 588 cxl_sysfs_afu_new_cr(struct cxl_afu *afu, int cr_idx) cxl_sysfs_afu_new_cr() argument 649 cxl_sysfs_afu_remove(struct cxl_afu *afu) cxl_sysfs_afu_remove() argument 672 cxl_sysfs_afu_add(struct cxl_afu *afu) cxl_sysfs_afu_add() argument 734 cxl_sysfs_afu_m_add(struct cxl_afu *afu) cxl_sysfs_afu_m_add() argument 760 cxl_sysfs_afu_m_remove(struct cxl_afu *afu) cxl_sysfs_afu_m_remove() argument [all...] |
/kernel/linux/linux-5.10/drivers/scsi/cxlflash/ |
H A D | common.h | 28 #define MAX_CONTEXT CXLFLASH_MAX_CONTEXT /* num contexts per afu */ 113 struct afu *afu; member 158 struct afu *parent; 204 struct afu *afu; member 230 struct afu { struct 232 int (*send_cmd)(struct afu *afu, struct afu_cmd *cmd); 255 static inline struct hwq *get_hwq(struct afu *af argument 262 afu_is_irqpoll_enabled(struct afu *afu) afu_is_irqpoll_enabled() argument 267 afu_has_cap(struct afu *afu, u64 cap) afu_has_cap() argument 274 afu_is_ocxl_lisn(struct afu *afu) afu_is_ocxl_lisn() argument 279 afu_is_afu_debug(struct afu *afu) afu_is_afu_debug() argument 284 afu_is_lun_provision(struct afu *afu) afu_is_lun_provision() argument 289 afu_is_sq_cmd_mode(struct afu *afu) afu_is_sq_cmd_mode() argument 294 afu_is_ioarrin_cmd_mode(struct afu *afu) afu_is_ioarrin_cmd_mode() argument 310 struct afu *afu = cfg->afu; get_fc_port_bank() local [all...] |
/kernel/linux/linux-6.6/drivers/scsi/cxlflash/ |
H A D | common.h | 28 #define MAX_CONTEXT CXLFLASH_MAX_CONTEXT /* num contexts per afu */ 113 struct afu *afu; member 158 struct afu *parent; 204 struct afu *afu; member 230 struct afu { struct 232 int (*send_cmd)(struct afu *afu, struct afu_cmd *cmd); 255 static inline struct hwq *get_hwq(struct afu *af argument 262 afu_is_irqpoll_enabled(struct afu *afu) afu_is_irqpoll_enabled() argument 267 afu_has_cap(struct afu *afu, u64 cap) afu_has_cap() argument 274 afu_is_ocxl_lisn(struct afu *afu) afu_is_ocxl_lisn() argument 279 afu_is_afu_debug(struct afu *afu) afu_is_afu_debug() argument 284 afu_is_lun_provision(struct afu *afu) afu_is_lun_provision() argument 289 afu_is_sq_cmd_mode(struct afu *afu) afu_is_sq_cmd_mode() argument 294 afu_is_ioarrin_cmd_mode(struct afu *afu) afu_is_ioarrin_cmd_mode() argument 310 struct afu *afu = cfg->afu; get_fc_port_bank() local [all...] |
/kernel/linux/linux-5.10/drivers/fpga/ |
H A D | dfl-afu-region.c | 11 #include "dfl-afu.h" 14 * afu_mmio_region_init - init function for afu mmio region support 15 * @pdata: afu platform device's pdata. 19 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); in afu_mmio_region_init() local 21 INIT_LIST_HEAD(&afu->regions); in afu_mmio_region_init() 24 #define for_each_region(region, afu) \ 25 list_for_each_entry((region), &(afu)->regions, node) 27 static struct dfl_afu_mmio_region *get_region_by_index(struct dfl_afu *afu, in get_region_by_index() argument 32 for_each_region(region, afu) in get_region_by_index() 53 struct dfl_afu *afu; in afu_mmio_region_add() local 97 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); afu_mmio_region_destroy() local 117 struct dfl_afu *afu; afu_mmio_region_get_by_index() local 151 struct dfl_afu *afu; afu_mmio_region_get_by_offset() local [all...] |
/kernel/linux/linux-6.6/drivers/fpga/ |
H A D | dfl-afu-region.c | 11 #include "dfl-afu.h" 14 * afu_mmio_region_init - init function for afu mmio region support 15 * @pdata: afu platform device's pdata. 19 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); in afu_mmio_region_init() local 21 INIT_LIST_HEAD(&afu->regions); in afu_mmio_region_init() 24 #define for_each_region(region, afu) \ 25 list_for_each_entry((region), &(afu)->regions, node) 27 static struct dfl_afu_mmio_region *get_region_by_index(struct dfl_afu *afu, in get_region_by_index() argument 32 for_each_region(region, afu) in get_region_by_index() 42 * @pdata: afu platfor 54 struct dfl_afu *afu; afu_mmio_region_add() local 98 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); afu_mmio_region_destroy() local 118 struct dfl_afu *afu; afu_mmio_region_get_by_index() local 152 struct dfl_afu *afu; afu_mmio_region_get_by_offset() local [all...] |