/linux-master/drivers/misc/cxl/ |
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 | 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 | 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...] |
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...] |
/linux-master/include/misc/ |
H A D | ocxl.h | 93 * @afu: The AFU to increment the reference count on 95 void ocxl_afu_get(struct ocxl_afu *afu); 99 * @afu: The AFU to decrement the reference count on 101 void ocxl_afu_put(struct ocxl_afu *afu); 127 * @afu: The AFU the context belongs to 130 int ocxl_context_alloc(struct ocxl_context **context, struct ocxl_afu *afu, 208 * @afu: a pointer to the AFU to get the config for 212 struct ocxl_afu_config *ocxl_afu_config(struct ocxl_afu *afu); 216 * @afu: The OpenCAPI AFU 219 void ocxl_afu_set_private(struct ocxl_afu *afu, voi [all...] |
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/misc/ocxl/ |
H A D | ocxl_internal.h | 31 struct ocxl_afu *afu; member in struct:ocxl_file_info 71 struct ocxl_afu *afu; member in struct:ocxl_context 100 int ocxl_create_cdev(struct ocxl_afu *afu); 101 void ocxl_destroy_cdev(struct ocxl_afu *afu); 102 int ocxl_file_register_afu(struct ocxl_afu *afu); 103 void ocxl_file_unregister_afu(struct ocxl_afu *afu); 145 void ocxl_context_detach_all(struct ocxl_afu *afu);
|
H A D | core.c | 18 struct ocxl_afu *afu; local 20 afu = kzalloc(sizeof(struct ocxl_afu), GFP_KERNEL); 21 if (!afu) 24 kref_init(&afu->kref); 25 mutex_init(&afu->contexts_lock); 26 mutex_init(&afu->afu_control_lock); 27 idr_init(&afu->contexts_idr); 28 afu->fn = fn; 30 return afu; 35 struct ocxl_afu *afu local 42 ocxl_afu_get(struct ocxl_afu *afu) argument 48 ocxl_afu_put(struct ocxl_afu *afu) argument 54 assign_afu_actag(struct ocxl_afu *afu) argument 82 reclaim_afu_actag(struct ocxl_afu *afu) argument 92 assign_afu_pasid(struct ocxl_afu *afu) argument 121 reclaim_afu_pasid(struct ocxl_afu *afu) argument 162 map_mmio_areas(struct ocxl_afu *afu) argument 201 unmap_mmio_areas(struct ocxl_afu *afu) argument 213 configure_afu(struct ocxl_afu *afu, u8 afu_idx, struct pci_dev *dev) argument 242 deconfigure_afu(struct ocxl_afu *afu) argument 249 activate_afu(struct pci_dev *dev, struct ocxl_afu *afu) argument 256 deactivate_afu(struct ocxl_afu *afu) argument 266 struct ocxl_afu *afu; local 290 remove_afu(struct ocxl_afu *afu) argument 478 u8 afu; local 518 struct ocxl_afu *afu; local 537 struct ocxl_afu *afu, *tmp; local 550 ocxl_afu_config(struct ocxl_afu *afu) argument 556 ocxl_afu_set_private(struct ocxl_afu *afu, void *private) argument 562 ocxl_afu_get_private(struct ocxl_afu *afu) 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);
|
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...] |
/linux-master/drivers/fpga/ |
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...] |
/linux-master/drivers/scsi/cxlflash/ |
H A D | cxl_hw.c | 115 static void cxlflash_destroy_afu(void *afu) argument
|
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...] |