/linux-master/drivers/misc/cxl/ |
H A D | debugfs.c | 80 void cxl_debugfs_add_afu_regs_psl9(struct cxl_afu *afu, struct dentry *dir) argument 82 debugfs_create_io_x64("serr", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_SERR_An)); 85 void cxl_debugfs_add_afu_regs_psl8(struct cxl_afu *afu, struct dentry *dir) argument 87 debugfs_create_io_x64("sstp0", S_IRUSR, dir, _cxl_p2n_addr(afu, CXL_SSTP0_An)); 88 debugfs_create_io_x64("sstp1", S_IRUSR, dir, _cxl_p2n_addr(afu, CXL_SSTP1_An)); 90 debugfs_create_io_x64("fir", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_FIR_SLICE_An)); 91 debugfs_create_io_x64("serr", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_SERR_An)); 92 debugfs_create_io_x64("afu_debug", S_IRUSR, dir, _cxl_p1n_addr(afu, CXL_AFU_DEBUG_An)); 93 debugfs_create_io_x64("trace", S_IRUSR | S_IWUSR, dir, _cxl_p1n_addr(afu, CXL_PSL_SLICE_TRACE)); 96 void cxl_debugfs_afu_add(struct cxl_afu *afu) argument 118 cxl_debugfs_afu_remove(struct cxl_afu *afu) 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 | api.c | 103 struct cxl_afu *afu; local 107 afu = cxl_pci_to_afu(dev); 108 if (IS_ERR(afu)) 109 return ERR_CAST(afu); 118 rc = cxl_context_init(ctx, afu, false); 189 num = ctx->afu->pp_irqs; 200 cxl_map_irq(ctx->afu->adapter, hwirq, cxl_ops->psl_interrupt, ctx, "psl"); 227 cxl_ops->release_irq_ranges(&ctx->irqs, ctx->afu->adapter); 243 return cxl_map_irq(ctx->afu->adapter, hwirq, handler, cookie, name); 282 rc = cxl_adapter_context_get(ctx->afu 506 struct cxl_afu *afu = ctx->afu; local 517 cxl_perst_reloads_same_image(struct cxl_afu *afu, bool perst_reloads_same_image) argument 526 struct cxl_afu *afu = cxl_pci_to_afu(dev); local [all...] |
H A D | base.c | 55 struct cxl_afu *cxl_afu_get(struct cxl_afu *afu) argument 57 return (get_device(&afu->dev) == NULL) ? NULL : afu; 61 void cxl_afu_put(struct cxl_afu *afu) argument 63 put_device(&afu->dev);
|
H A D | context.c | 35 int cxl_context_init(struct cxl_context *ctx, struct cxl_afu *afu, bool master) argument 39 ctx->afu = afu; 92 mutex_lock(&afu->contexts_lock); 94 i = idr_alloc(&ctx->afu->contexts_idr, ctx, 0, 95 ctx->afu->num_procs, GFP_NOWAIT); 97 mutex_unlock(&afu->contexts_lock); 103 ctx->elem = &ctx->afu->native->spa[i]; 111 * take a ref on the afu so that it stays alive at-least till 114 cxl_afu_get(afu); 297 cxl_context_detach_all(struct cxl_afu *afu) argument [all...] |
H A D | cxl.h | 541 struct cxl_afu *afu; member in struct:cxl_context 630 int (*afu_regs_init)(struct cxl_afu *afu); 631 int (*sanitise_afu_regs)(struct cxl_afu *afu); 632 int (*register_serr_irq)(struct cxl_afu *afu); 633 void (*release_serr_irq)(struct cxl_afu *afu); 635 irqreturn_t (*fail_irq)(struct cxl_afu *afu, struct cxl_irq_info *irq_info); 636 int (*activate_dedicated_process)(struct cxl_afu *afu); 641 void (*debugfs_add_afu_regs)(struct cxl_afu *afu, struct dentry *dir); 682 struct cxl_afu *afu[CXL_MAX_SLICES]; member in struct:cxl 765 static inline bool cxl_adapter_link_ok(struct cxl *cxl, struct cxl_afu *afu) argument 796 _cxl_p1n_addr(struct cxl_afu *afu, cxl_p1n_reg_t reg) argument 802 cxl_p1n_write(struct cxl_afu *afu, cxl_p1n_reg_t reg, u64 val) argument 808 cxl_p1n_read(struct cxl_afu *afu, cxl_p1n_reg_t reg) argument 816 _cxl_p2n_addr(struct cxl_afu *afu, cxl_p2n_reg_t reg) argument 821 cxl_p2n_write(struct cxl_afu *afu, cxl_p2n_reg_t reg, u64 val) argument 827 cxl_p2n_read(struct cxl_afu *afu, cxl_p2n_reg_t reg) argument 943 cxl_debugfs_afu_add(struct cxl_afu *afu) argument 947 cxl_debugfs_afu_remove(struct cxl_afu *afu) argument 961 cxl_debugfs_add_afu_regs_psl9(struct cxl_afu *afu, struct dentry *dir) argument 965 cxl_debugfs_add_afu_regs_psl8(struct cxl_afu *afu, struct dentry *dir) argument [all...] |
H A D | fault.c | 237 if (cxl_p2n_read(ctx->afu, CXL_PSL_DSISR_An) != dsisr || 238 cxl_p2n_read(ctx->afu, CXL_PSL_DAR_An) != dar || 239 cxl_p2n_read(ctx->afu, CXL_PSL_PEHandle_An) != ctx->pe) { 244 dev_notice(&ctx->afu->dev, "cxl_handle_fault: Translation fault regs changed\n"); 255 pr_devel("CXL BOTTOM HALF handling fault for afu pe: %i. " 329 switch (ctx->afu->prefault_mode) {
|
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 44 struct cxl_afu *afu; local 565 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) argument 595 cxl_chardev_d_afu_add(struct cxl_afu *afu) argument 602 cxl_chardev_m_afu_add(struct cxl_afu *afu) argument 609 cxl_chardev_s_afu_add(struct cxl_afu *afu) argument 616 cxl_chardev_afu_remove(struct cxl_afu *afu) argument 635 cxl_register_afu(struct cxl_afu *afu) argument [all...] |
H A D | flash.c | 327 int afu; local 348 pr_devel("remove current afu\n"); 349 for (afu = 0; afu < adapter->slices; afu++) 350 cxl_guest_remove_afu(adapter->afu[afu]);
|
H A D | guest.c | 20 static void pci_error_handlers(struct cxl_afu *afu, argument 28 if (afu->phb == NULL) 31 list_for_each_entry(afu_dev, &afu->phb->bus->devices, bus_list) { 65 dev_crit(&ctx->afu->dev, "PSL ERROR STATUS: 0x%.16llx\n", errstat); 70 static ssize_t guest_collect_vpd(struct cxl *adapter, struct cxl_afu *afu, argument 120 rc = cxl_h_collect_vpd(afu->guest->handle, 0, 158 return cxl_h_collect_int_info(ctx->afu->guest->handle, ctx->process_token, info); 178 static int afu_read_error_state(struct cxl_afu *afu, int *state_out) argument 183 if (!afu) 186 rc = cxl_h_read_error_state(afu 199 struct cxl_afu *afu = data; local 268 struct cxl_afu *afu = NULL; local 355 guest_register_serr_irq(struct cxl_afu *afu) argument 372 guest_release_serr_irq(struct cxl_afu *afu) argument 417 _guest_afu_cr_readXX(int sz, struct cxl_afu *afu, int cr_idx, u64 offset, u64 *val) argument 461 guest_afu_cr_read32(struct cxl_afu *afu, int cr_idx, u64 offset, u32 *out) argument 473 guest_afu_cr_read16(struct cxl_afu *afu, int cr_idx, u64 offset, u16 *out) argument 485 guest_afu_cr_read8(struct cxl_afu *afu, int cr_idx, u64 offset, u8 *out) argument 497 guest_afu_cr_read64(struct cxl_afu *afu, int cr_idx, u64 offset, u64 *out) argument 503 guest_afu_cr_write32(struct cxl_afu *afu, int cr, u64 off, u32 in) argument 509 guest_afu_cr_write16(struct cxl_afu *afu, int cr, u64 off, u16 in) argument 515 guest_afu_cr_write8(struct cxl_afu *afu, int cr, u64 off, u8 in) argument 664 struct cxl_afu *afu = to_cxl_afu(dev); local 674 cxl_guest_read_afu_vpd(struct cxl_afu *afu, void *buf, size_t len) argument 680 guest_afu_read_err_buffer(struct cxl_afu *afu, char *buf, loff_t off, size_t count) argument 706 guest_afu_check_and_enable(struct cxl_afu *afu) argument 735 activate_afu_directed(struct cxl_afu *afu) argument 762 guest_afu_activate_mode(struct cxl_afu *afu, int mode) argument 778 deactivate_afu_directed(struct cxl_afu *afu) argument 793 guest_afu_deactivate_mode(struct cxl_afu *afu, int mode) argument 805 guest_afu_reset(struct cxl_afu *afu) argument 811 guest_map_slice_regs(struct cxl_afu *afu) argument 821 guest_unmap_slice_regs(struct cxl_afu *afu) argument 827 afu_update_state(struct cxl_afu *afu) argument 896 guest_link_ok(struct cxl *cxl, struct cxl_afu *afu) argument 908 afu_properties_look_ok(struct cxl_afu *afu) argument 925 struct cxl_afu *afu; local 1025 cxl_guest_remove_afu(struct cxl_afu *afu) argument [all...] |
H A D | irq.c | 43 pr_devel("CXL interrupt %i for afu pe: %i DSISR: %#llx DAR: %#llx\n", irq, ctx->pe, dsisr, dar); 64 dev_err_ratelimited(&ctx->afu->dev, "CXL AFU Error undelivered to pe %i: 0x%016llx\n", 94 pr_devel("CXL interrupt %i for afu pe: %i DSISR: %#llx DAR: %#llx\n", irq, ctx->pe, dsisr, dar); 149 dev_err_ratelimited(&ctx->afu->dev, "CXL AFU Error " 311 if ((rc = cxl_ops->alloc_irq_ranges(&ctx->irqs, ctx->afu->adapter, 317 ctx->irqs.offset[0] = ctx->afu->native->psl_hwirq; 337 dev_name(&ctx->afu->dev), 351 cxl_ops->release_irq_ranges(&ctx->irqs, ctx->afu->adapter); 383 cxl_map_irq(ctx->afu->adapter, hwirq, handler, ctx, 418 cxl_ops->release_irq_ranges(&ctx->irqs, ctx->afu 423 cxl_afu_decode_psl_serr(struct cxl_afu *afu, u64 serr) argument [all...] |
H A D | main.c | 37 int cxl_afu_slbia(struct cxl_afu *afu) argument 42 cxl_p2n_write(afu, CXL_SLBIA_An, CXL_TLB_SLB_IQ_ALL); 43 while (cxl_p2n_read(afu, CXL_SLBIA_An) & CXL_TLB_SLB_P) { 45 dev_warn(&afu->dev, "WARNING: CXL AFU SLBIA timed out!\n"); 51 if (!cxl_ops->link_ok(afu->adapter, afu)) 65 pr_devel("%s matched mm - card: %i afu: %i pe: %i\n", __func__, 66 ctx->afu->adapter->adapter_num, ctx->afu->slice, ctx->pe); 73 cxl_afu_slbia(ctx->afu); 79 struct cxl_afu *afu; local 246 struct cxl_afu *afu; local 265 cxl_afu_select_best_mode(struct cxl_afu *afu) argument [all...] |
H A D | native.c | 22 static int afu_control(struct cxl_afu *afu, u64 command, u64 clear, argument 29 spin_lock(&afu->afu_cntl_lock); 32 trace_cxl_afu_ctrl(afu, command); 34 AFU_Cntl = cxl_p2n_read(afu, CXL_AFU_Cntl_An); 35 cxl_p2n_write(afu, CXL_AFU_Cntl_An, (AFU_Cntl & ~clear) | command); 37 AFU_Cntl = cxl_p2n_read(afu, CXL_AFU_Cntl_An); 40 dev_warn(&afu->dev, "WARNING: AFU control timed out!\n"); 45 if (!cxl_ops->link_ok(afu->adapter, afu)) { 46 afu 75 afu_enable(struct cxl_afu *afu) argument 84 cxl_afu_disable(struct cxl_afu *afu) argument 94 native_afu_reset(struct cxl_afu *afu) argument 120 native_afu_check_and_enable(struct cxl_afu *afu) argument 131 cxl_psl_purge(struct cxl_afu *afu) argument 223 cxl_alloc_spa(struct cxl_afu *afu, int mode) argument 256 attach_spa(struct cxl_afu *afu) argument 272 cxl_release_spa(struct cxl_afu *afu) argument 383 cxl_write_sstp(struct cxl_afu *afu, u64 sstp0, u64 sstp1) argument 548 activate_afu_directed(struct cxl_afu *afu) argument 782 deactivate_afu_directed(struct cxl_afu *afu) argument 825 cxl_activate_dedicated_process_psl9(struct cxl_afu *afu) argument 851 cxl_activate_dedicated_process_psl8(struct cxl_afu *afu) argument 886 struct cxl_afu *afu = ctx->afu; local 902 struct cxl_afu *afu = ctx->afu; local 930 struct cxl_afu *afu = ctx->afu; local 962 deactivate_dedicated_process(struct cxl_afu *afu) argument 974 native_afu_deactivate_mode(struct cxl_afu *afu, int mode) argument 983 native_afu_activate_mode(struct cxl_afu *afu, int mode) argument 1080 native_get_irq_info(struct cxl_afu *afu, struct cxl_irq_info *info) argument 1148 cxl_is_translation_fault(struct cxl_afu *afu, u64 dsisr) argument 1159 cxl_fail_irq_psl(struct cxl_afu *afu, struct cxl_irq_info *irq_info) argument 1171 struct cxl_afu *afu = data; local 1247 struct cxl_afu *afu = data; local 1356 cxl_native_register_serr_irq(struct cxl_afu *afu) argument 1389 cxl_native_release_serr_irq(struct cxl_afu *afu) argument 1402 cxl_native_register_psl_irq(struct cxl_afu *afu) argument 1420 cxl_native_release_psl_irq(struct cxl_afu *afu) argument 1433 recover_psl_err(struct cxl_afu *afu, u64 errstat) argument 1458 cxl_check_error(struct cxl_afu *afu) argument 1469 native_afu_cr_read64(struct cxl_afu *afu, int cr, u64 off, u64 *out) argument 1480 native_afu_cr_read32(struct cxl_afu *afu, int cr, u64 off, u32 *out) argument 1491 native_afu_cr_read16(struct cxl_afu *afu, int cr, u64 off, u16 *out) argument 1503 native_afu_cr_read8(struct cxl_afu *afu, int cr, u64 off, u8 *out) argument 1515 native_afu_cr_write32(struct cxl_afu *afu, int cr, u64 off, u32 in) argument 1526 native_afu_cr_write16(struct cxl_afu *afu, int cr, u64 off, u16 in) argument 1544 native_afu_cr_write8(struct cxl_afu *afu, int cr, u64 off, u8 in) argument [all...] |
H A D | of.c | 70 struct cxl_afu *afu) 88 afu->guest->handle = addr; 91 afu->guest->p2n_phys += addr; 92 afu->guest->p2n_size = size; 95 afu->psn_phys += addr; 96 afu->adapter->ps_size = size; 111 static int read_vpd(struct cxl *adapter, struct cxl_afu *afu) argument 122 rc = cxl_guest_read_afu_vpd(afu, vpd, len); 131 int cxl_of_read_afu_handle(struct cxl_afu *afu, struct device_node *afu_np) argument 133 if (read_handle(afu_np, &afu 69 read_phys_addr(struct device_node *np, char *prop_name, struct cxl_afu *afu) argument 140 cxl_of_read_afu_properties(struct cxl_afu *afu, struct device_node *np) argument 437 int afu; local [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) argument 629 init_implementation_afu_regs_psl9(struct cxl_afu *afu) argument 634 init_implementation_afu_regs_psl8(struct cxl_afu *afu) argument 774 pci_map_slice_regs(struct cxl_afu *afu, struct cxl *adapter, struct pci_dev *dev) argument 804 pci_unmap_slice_regs(struct cxl_afu *afu) argument 822 struct cxl_afu *afu = to_cxl_afu(dev); local 834 cxl_read_afu_descriptor(struct cxl_afu *afu) argument 879 cxl_afu_descriptor_looks_ok(struct cxl_afu *afu) argument 919 sanitise_afu_regs_psl9(struct cxl_afu *afu) argument 965 sanitise_afu_regs_psl8(struct cxl_afu *afu) argument 1027 cxl_pci_afu_read_err_buffer(struct cxl_afu *afu, char *buf, loff_t off, size_t count) argument 1064 pci_configure_afu(struct cxl_afu *afu, struct cxl *adapter, struct pci_dev *dev) argument 1112 pci_deconfigure_afu(struct cxl_afu *afu) argument 1130 struct cxl_afu *afu; local 1187 cxl_pci_remove_afu(struct cxl_afu *afu) argument 1776 struct cxl_afu *afu; local 1790 cxl_vphb_error_detected(struct cxl_afu *afu, pci_channel_state_t state) argument 1830 struct cxl_afu *afu; local 1972 struct cxl_afu *afu; local 2064 struct cxl_afu *afu; local [all...] |
H A D | sysfs.c | 204 struct cxl_afu *afu = to_afu_chardev_m(device); local 206 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->adapter->ps_size); 213 struct cxl_afu *afu = to_afu_chardev_m(device); local 215 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->native->pp_offset); 222 struct cxl_afu *afu = to_afu_chardev_m(device); local 224 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->pp_size); 240 struct cxl_afu *afu = to_cxl_afu(device); local 242 if (afu->pp_size) 243 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->pp_size); 244 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu 251 struct cxl_afu *afu = to_cxl_afu(device); local 274 struct cxl_afu *afu = to_cxl_afu(device); local 283 struct cxl_afu *afu = to_cxl_afu(device); local 292 struct cxl_afu *afu = to_cxl_afu(device); local 319 struct cxl_afu *afu = to_cxl_afu(device); local 333 struct cxl_afu *afu = to_cxl_afu(device); local 349 struct cxl_afu *afu = to_cxl_afu(device); local 378 struct cxl_afu *afu = to_cxl_afu(device); local 390 struct cxl_afu *afu = to_cxl_afu(device); local 450 struct cxl_afu *afu = to_cxl_afu(kobj_to_dev(kobj)); local 545 struct cxl_afu *afu = to_cxl_afu(kobj_to_dev(kobj->parent)); local 588 cxl_sysfs_afu_new_cr(struct cxl_afu *afu, int cr_idx) argument 649 cxl_sysfs_afu_remove(struct cxl_afu *afu) argument 672 cxl_sysfs_afu_add(struct cxl_afu *afu) argument 734 cxl_sysfs_afu_m_add(struct cxl_afu *afu) argument 760 cxl_sysfs_afu_m_remove(struct cxl_afu *afu) argument [all...] |
/linux-master/drivers/misc/ocxl/ |
H A D | mmio.c | 7 int ocxl_global_mmio_read32(struct ocxl_afu *afu, size_t offset, argument 10 if (offset > afu->config.global_mmio_size - 4) 20 *val = readl_be((char *)afu->global_mmio_ptr + offset); 24 *val = readl((char *)afu->global_mmio_ptr + offset); 32 int ocxl_global_mmio_read64(struct ocxl_afu *afu, size_t offset, argument 35 if (offset > afu->config.global_mmio_size - 8) 45 *val = readq_be((char *)afu->global_mmio_ptr + offset); 49 *val = readq((char *)afu->global_mmio_ptr + offset); 57 int ocxl_global_mmio_write32(struct ocxl_afu *afu, size_t offset, argument 60 if (offset > afu 83 ocxl_global_mmio_write64(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u64 val) argument 109 ocxl_global_mmio_set32(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u32 mask) argument 140 ocxl_global_mmio_set64(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u64 mask) argument 171 ocxl_global_mmio_clear32(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u32 mask) argument 203 ocxl_global_mmio_clear64(struct ocxl_afu *afu, size_t offset, enum ocxl_endian endian, u64 mask) argument [all...] |
H A D | pci.c | 20 struct ocxl_afu *afu, *tmp; local 32 list_for_each_entry_safe(afu, tmp, afu_list, list) { 34 rc = ocxl_file_register_afu(afu); 37 afu->config.name, afu->config.idx); 47 struct ocxl_afu *afu; local 53 list_for_each_entry(afu, afu_list, list) { 54 ocxl_file_unregister_afu(afu);
|
/linux-master/drivers/scsi/cxlflash/ |
H A D | common.h | 28 #define MAX_CONTEXT CXLFLASH_MAX_CONTEXT /* num contexts per afu */ 113 struct afu *afu; member in struct:cxlflash_cfg 158 struct afu *parent; 204 struct afu *afu; member in struct:hwq 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) argument 267 afu_has_cap(struct afu *afu, u64 cap) argument 274 afu_is_ocxl_lisn(struct afu *afu) argument 279 afu_is_afu_debug(struct afu *afu) argument 284 afu_is_lun_provision(struct afu *afu) argument 289 afu_is_sq_cmd_mode(struct afu *afu) argument 294 afu_is_ioarrin_cmd_mode(struct afu *afu) argument 310 struct afu *afu = cfg->afu; local [all...] |
H A D | cxl_hw.c | 115 static void cxlflash_destroy_afu(void *afu) argument
|
/linux-master/include/misc/ |
H A D | cxl-base.h | 35 struct cxl_afu *cxl_afu_get(struct cxl_afu *afu); 36 void cxl_afu_put(struct cxl_afu *afu); 42 static inline struct cxl_afu *cxl_afu_get(struct cxl_afu *afu) { return NULL; } argument 43 static inline void cxl_afu_put(struct cxl_afu *afu) {} argument
|
/linux-master/drivers/fpga/ |
H A D | Makefile | 47 obj-$(CONFIG_FPGA_DFL_AFU) += dfl-afu.o 51 dfl-afu-objs := dfl-afu-main.o dfl-afu-region.o dfl-afu-dma-region.o 52 dfl-afu-objs += dfl-afu-error.o
|
H A D | dfl-afu-dma-region.c | 17 #include "dfl-afu.h" 21 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); local 23 afu->dma_regions = RB_ROOT; 146 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); local 152 new = &afu->dma_regions.rb_node; 173 rb_insert_color(®ion->node, &afu->dma_regions); 188 struct dfl_afu *afu; local 193 afu = dfl_fpga_pdata_get_private(pdata); 194 rb_erase(®ion->node, &afu->dma_regions); 205 struct dfl_afu *afu local 247 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); local [all...] |
H A D | dfl-afu-main.c | 22 #include "dfl-afu.h" 654 struct dfl_afu *afu; local 666 afu = dfl_fpga_pdata_get_private(pdata); 668 info.num_regions = afu->num_regions; 669 info.num_umsgs = afu->num_umsgs; 855 struct dfl_afu *afu; local 857 afu = devm_kzalloc(&pdev->dev, sizeof(*afu), GFP_KERNEL); 858 if (!afu) 861 afu [all...] |
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); local 21 INIT_LIST_HEAD(&afu->regions); 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, argument 32 for_each_region(region, afu) 42 * @pdata: afu platfor 54 struct dfl_afu *afu; local 98 struct dfl_afu *afu = dfl_fpga_pdata_get_private(pdata); local 118 struct dfl_afu *afu; local 152 struct dfl_afu *afu; local [all...] |