Home
last modified time | relevance | path

Searched refs:cxl (Results 1 – 25 of 25) sorted by relevance

/Linux-v4.19/drivers/misc/cxl/
Dcxl.h445 #define to_cxl_adapter(d) container_of(d, struct cxl, dev)
490 struct cxl *adapter;
630 int (*adapter_regs_init)(struct cxl *adapter, struct pci_dev *dev);
631 int (*invalidate_all)(struct cxl *adapter);
642 void (*debugfs_add_adapter_regs)(struct cxl *adapter, struct dentry *dir);
645 void (*err_irq_dump_registers)(struct cxl *adapter);
646 void (*debugfs_stop_trace)(struct cxl *adapter);
647 void (*write_timebase_ctrl)(struct cxl *adapter);
648 u64 (*timebase_read)(struct cxl *adapter);
680 struct cxl { struct
[all …]
DMakefile5 cxl-y += main.o file.o irq.o fault.o native.o
6 cxl-y += context.o sysfs.o pci.o trace.o
7 cxl-y += vphb.o api.o cxllib.o
8 cxl-$(CONFIG_PPC_PSERIES) += flash.o guest.o of.o hcalls.o
9 cxl-$(CONFIG_DEBUG_FS) += debugfs.o
10 obj-$(CONFIG_CXL) += cxl.o
Dmain.c80 struct cxl *adapter; in cxl_slbia_core()
186 struct cxl *get_cxl_adapter(int num) in get_cxl_adapter()
188 struct cxl *adapter; in get_cxl_adapter()
198 static int cxl_alloc_adapter_nr(struct cxl *adapter) in cxl_alloc_adapter_nr()
215 void cxl_remove_adapter_nr(struct cxl *adapter) in cxl_remove_adapter_nr()
220 struct cxl *cxl_alloc_adapter(void) in cxl_alloc_adapter()
222 struct cxl *adapter; in cxl_alloc_adapter()
224 if (!(adapter = kzalloc(sizeof(struct cxl), GFP_KERNEL))) in cxl_alloc_adapter()
246 struct cxl_afu *cxl_alloc_afu(struct cxl *adapter, int slice) in cxl_alloc_afu()
280 int cxl_adapter_context_get(struct cxl *adapter) in cxl_adapter_context_get()
[all …]
Dpci.c486 static int init_implementation_adapter_regs_psl9(struct cxl *adapter, in init_implementation_adapter_regs_psl9()
554 static int init_implementation_adapter_regs_psl8(struct cxl *adapter, struct pci_dev *dev) in init_implementation_adapter_regs_psl8()
593 static void write_timebase_ctrl_psl8(struct cxl *adapter) in write_timebase_ctrl_psl8()
599 static u64 timebase_read_psl9(struct cxl *adapter) in timebase_read_psl9()
604 static u64 timebase_read_psl8(struct cxl *adapter) in timebase_read_psl8()
609 static void cxl_setup_psl_timebase(struct cxl *adapter, struct pci_dev *dev) in cxl_setup_psl_timebase()
659 int cxl_pci_setup_irq(struct cxl *adapter, unsigned int hwirq, in cxl_pci_setup_irq()
667 int cxl_update_image_control(struct cxl *adapter) in cxl_update_image_control()
702 int cxl_pci_alloc_one_irq(struct cxl *adapter) in cxl_pci_alloc_one_irq()
709 void cxl_pci_release_one_irq(struct cxl *adapter, int hwirq) in cxl_pci_release_one_irq()
[all …]
Dflash.c173 static int update_devicetree(struct cxl *adapter, s32 scope) in update_devicetree()
227 static int handle_image(struct cxl *adapter, int operation, in handle_image()
322 static int transfer_image(struct cxl *adapter, int operation, in transfer_image()
371 static long ioctl_transfer_image(struct cxl *adapter, int operation, in ioctl_transfer_image()
394 struct cxl *adapter; in device_open()
460 struct cxl *adapter = file->private_data; in device_ioctl()
484 struct cxl *adapter = file->private_data; in device_close()
521 void cxl_guest_remove_chardev(struct cxl *adapter) in cxl_guest_remove_chardev()
526 int cxl_guest_add_chardev(struct cxl *adapter) in cxl_guest_add_chardev()
Dguest.c68 static ssize_t guest_collect_vpd(struct cxl *adapter, struct cxl_afu *afu, in guest_collect_vpd()
221 static int irq_alloc_range(struct cxl *adapter, int len, int *irq) in irq_alloc_range()
242 static int irq_free_range(struct cxl *adapter, int irq, int len) in irq_free_range()
264 static int guest_reset(struct cxl *adapter) in guest_reset()
289 static int guest_alloc_one_irq(struct cxl *adapter) in guest_alloc_one_irq()
300 static void guest_release_one_irq(struct cxl *adapter, int irq) in guest_release_one_irq()
308 struct cxl *adapter, unsigned int num) in guest_alloc_irq_ranges()
341 struct cxl *adapter) in guest_release_irq_ranges()
520 struct cxl *adapter = ctx->afu->adapter; in attach_afu_directed()
892 static bool guest_link_ok(struct cxl *cxl, struct cxl_afu *afu) in guest_link_ok() argument
[all …]
Dsysfs.c25 struct cxl *adapter = to_cxl_adapter(device); in caia_version_show()
35 struct cxl *adapter = to_cxl_adapter(device); in psl_revision_show()
44 struct cxl *adapter = to_cxl_adapter(device); in base_image_show()
53 struct cxl *adapter = to_cxl_adapter(device); in image_loaded_show()
64 struct cxl *adapter = to_cxl_adapter(device); in psl_timebase_synced_show()
85 struct cxl *adapter = to_cxl_adapter(device); in tunneled_ops_supported_show()
94 struct cxl *adapter = to_cxl_adapter(device); in reset_adapter_store()
130 struct cxl *adapter = to_cxl_adapter(device); in load_image_on_perst_show()
144 struct cxl *adapter = to_cxl_adapter(device); in load_image_on_perst_store()
168 struct cxl *adapter = to_cxl_adapter(device); in perst_reloads_same_image_show()
[all …]
Ddebugfs.c40 void cxl_debugfs_add_adapter_regs_psl9(struct cxl *adapter, struct dentry *dir) in cxl_debugfs_add_adapter_regs_psl9()
53 void cxl_debugfs_add_adapter_regs_psl8(struct cxl *adapter, struct dentry *dir) in cxl_debugfs_add_adapter_regs_psl8()
61 int cxl_debugfs_adapter_add(struct cxl *adapter) in cxl_debugfs_adapter_add()
82 void cxl_debugfs_adapter_remove(struct cxl *adapter) in cxl_debugfs_adapter_remove()
Dof.c115 static int read_vpd(struct cxl *adapter, struct cxl_afu *afu) in read_vpd()
287 static int read_adapter_irq_config(struct cxl *adapter, struct device_node *np) in read_adapter_irq_config()
340 int cxl_of_read_adapter_handle(struct cxl *adapter, struct device_node *np) in cxl_of_read_adapter_handle()
349 int cxl_of_read_adapter_properties(struct cxl *adapter, struct device_node *np) in cxl_of_read_adapter_properties()
441 struct cxl *adapter; in cxl_of_remove()
461 struct cxl *adapter = NULL; in cxl_of_probe()
DKconfig30 userspace programs to access these accelerators via /dev/cxl/afuM.N
Dnative.c293 int cxl_invalidate_all_psl9(struct cxl *adapter) in cxl_invalidate_all_psl9()
319 int cxl_invalidate_all_psl8(struct cxl *adapter) in cxl_invalidate_all_psl8()
351 int cxl_data_cache_flush(struct cxl *adapter) in cxl_data_cache_flush()
414 struct cxl *adapter = ctx->afu->adapter; in slb_invalid()
1287 void cxl_native_err_irq_dump_regs_psl9(struct cxl *adapter) in cxl_native_err_irq_dump_regs_psl9()
1295 void cxl_native_err_irq_dump_regs_psl8(struct cxl *adapter) in cxl_native_err_irq_dump_regs_psl8()
1308 struct cxl *adapter = data; in native_irq_err()
1327 int cxl_native_register_psl_err_irq(struct cxl *adapter) in cxl_native_register_psl_err_irq()
1350 void cxl_native_release_psl_err_irq(struct cxl *adapter) in cxl_native_release_psl_err_irq()
Dirq.c227 unsigned int cxl_map_irq(struct cxl *adapter, irq_hw_number_t hwirq, in cxl_map_irq()
259 int cxl_register_one_irq(struct cxl *adapter, in cxl_register_one_irq()
Dfile.c49 struct cxl *adapter; in __afu_open()
644 int cxl_register_adapter(struct cxl *adapter) in cxl_register_adapter()
Dtrace.h11 #define TRACE_SYSTEM cxl
/Linux-v4.19/Documentation/ABI/testing/
Dsysfs-class-cxl3 Example: The real path of the attribute /sys/class/cxl/afu0.0s/irqs_max is
4 /sys/class/cxl/afu0.0s/device/irqs_max, i.e. /sys/class/cxl/afu0.0/irqs_max.
7 Slave contexts (eg. /sys/class/cxl/afu0.0s):
9 What: /sys/class/cxl/<afu>/afu_err_buf
20 What: /sys/class/cxl/<afu>/irqs_max
31 What: /sys/class/cxl/<afu>/irqs_min
41 What: /sys/class/cxl/<afu>/mmio_size
49 What: /sys/class/cxl/<afu>/modes_supported
57 What: /sys/class/cxl/<afu>/mode
67 What: /sys/class/cxl/<afu>/prefault_mode
[all …]
/Linux-v4.19/include/misc/
Dcxl.h101 int cxl_allocate_afu_irqs(struct cxl_context *cxl, int num);
103 void cxl_free_afu_irqs(struct cxl_context *cxl);
110 int cxl_map_afu_irq(struct cxl_context *cxl, int num,
113 void cxl_unmap_afu_irq(struct cxl_context *cxl, int num, void *cookie);
/Linux-v4.19/Documentation/powerpc/
Dcxl.txt133 files will be created. /dev/cxl/afu0.0m will correspond to a
134 master context and /dev/cxl/afu0.0s will correspond to a slave
141 /dev/cxl/afu0.0d. This will have access to the entire MMIO space
144 The types described below are defined in include/uapi/misc/cxl.h
434 A cxl sysfs class is added under /sys/class/cxl to facilitate
436 described in Documentation/ABI/testing/sysfs-class-cxl
447 SUBSYSTEM=="cxl", ATTRS{mode}=="dedicated_process", SYMLINK="cxl/%b"
448 SUBSYSTEM=="cxl", ATTRS{mode}=="afu_directed", \
449 KERNEL=="afu[0-9]*.[0-9]*s", SYMLINK="cxl/%b"
D00-INDEX14 cxl.txt
Dcxlflash.txt31 as described in Documentation/powerpc/cxl.txt.
/Linux-v4.19/arch/powerpc/platforms/powernv/
DMakefile10 obj-$(CONFIG_CXL_BASE) += pci-cxl.o
/Linux-v4.19/drivers/misc/
DMakefile55 obj-$(CONFIG_CXL_BASE) += cxl/
DKconfig527 source "drivers/misc/cxl/Kconfig"
/Linux-v4.19/Documentation/accelerators/
Docxl.rst15 evolution of 'cxl' (the driver for the IBM CAPI interface for
/Linux-v4.19/Documentation/ioctl/
Dioctl-number.txt329 0xCA 00-0F uapi/misc/cxl.h
/Linux-v4.19/
DMAINTAINERS4034 F: arch/powerpc/platforms/powernv/pci-cxl.c
4035 F: drivers/misc/cxl/
4036 F: include/misc/cxl*
4037 F: include/uapi/misc/cxl.h
4038 F: Documentation/powerpc/cxl.txt
4039 F: Documentation/ABI/testing/sysfs-class-cxl