Searched refs:afu (Results 1 - 25 of 39) sorted by relevance

12

/linux-master/drivers/misc/cxl/
H A Dnative.c22 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 Dguest.c20 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 Dvphb.c31 struct cxl_afu *afu; local
35 afu = (struct cxl_afu *)phb->private_data;
37 if (!cxl_ops->link_ok(afu->adapter, afu)) {
53 return (cxl_ops->afu_check_and_enable(afu) == 0);
87 static void cxl_afu_configured_put(struct cxl_afu *afu) argument
89 atomic_dec_if_positive(&afu->configured_state);
92 static bool cxl_afu_configured_get(struct cxl_afu *afu) argument
94 return atomic_inc_unless_negative(&afu->configured_state);
98 struct cxl_afu *afu, in
97 cxl_pcie_config_info(struct pci_bus *bus, unsigned int devfn, struct cxl_afu *afu, int *_record) argument
114 struct cxl_afu *afu; local
154 struct cxl_afu *afu; local
202 cxl_pci_vphb_add(struct cxl_afu *afu) argument
268 cxl_pci_vphb_remove(struct cxl_afu *afu) argument
[all...]
H A Ddebugfs.c80 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 Dpci.c89 #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 Dfile.c28 #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 Dof.c70 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 Dmain.c37 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 Dcontext.c35 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 Dsysfs.c204 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 Dcxl.h541 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 Dtrace.h70 __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/drivers/misc/ocxl/
H A Dcore.c18 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 Dmmio.c7 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 Dpci.c20 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 Dcontext.c7 int ocxl_context_alloc(struct ocxl_context **context, struct ocxl_afu *afu, argument
17 ctx->afu = afu;
18 mutex_lock(&afu->contexts_lock);
19 pasid = idr_alloc(&afu->contexts_idr, ctx, afu->pasid_base,
20 afu->pasid_base + afu->pasid_max, GFP_KERNEL);
22 mutex_unlock(&afu->contexts_lock);
26 afu
260 ocxl_context_detach_all(struct ocxl_afu *afu) argument
[all...]
H A Dsysfs.c10 return info->afu;
17 struct ocxl_afu *afu = to_afu(device); local
20 afu->config.global_mmio_size);
27 struct ocxl_afu *afu = to_afu(device); local
30 afu->config.pp_mmio_stride);
37 struct ocxl_afu *afu = to_afu(device); local
40 afu->config.version_major,
41 afu->config.version_minor);
48 struct ocxl_afu *afu = to_afu(device); local
51 afu
58 struct ocxl_afu *afu = to_afu(device); local
73 struct ocxl_afu *afu = to_afu(device); local
100 struct ocxl_afu *afu = to_afu(kobj_to_dev(kobj)); local
112 struct ocxl_afu *afu = vma->vm_private_data; local
131 struct ocxl_afu *afu = to_afu(kobj_to_dev(kobj)); local
[all...]
H A Dconfig.c423 struct ocxl_afu_config *afu)
433 ptr = (u32 *) &afu->name[i];
436 afu->name[OCXL_AFU_NAME_SZ - 1] = '\0'; /* play safe */
441 struct ocxl_afu_config *afu)
452 afu->global_mmio_bar = EXTRACT_BITS(val, 0, 2);
453 afu->global_mmio_offset = EXTRACT_BITS(val, 16, 31) << 16;
458 afu->global_mmio_offset += (u64) val << 32;
463 afu->global_mmio_size = val;
471 afu->pp_mmio_bar = EXTRACT_BITS(val, 0, 2);
472 afu
422 read_afu_name(struct pci_dev *dev, struct ocxl_fn_config *fn, struct ocxl_afu_config *afu) argument
440 read_afu_mmio(struct pci_dev *dev, struct ocxl_fn_config *fn, struct ocxl_afu_config *afu) argument
487 read_afu_control(struct pci_dev *dev, struct ocxl_afu_config *afu) argument
525 validate_afu(struct pci_dev *dev, struct ocxl_afu_config *afu) argument
564 read_afu_lpc_memory_info(struct pci_dev *dev, struct ocxl_fn_config *fn, struct ocxl_afu_config *afu) argument
652 ocxl_config_read_afu(struct pci_dev *dev, struct ocxl_fn_config *fn, struct ocxl_afu_config *afu, u8 afu_idx) argument
[all...]
H A Docxl_internal.h31 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);
/linux-master/drivers/fpga/
H A Ddfl-afu-region.c11 #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...]
/linux-master/drivers/scsi/cxlflash/
H A Dcommon.h28 #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 Docxl_hw.c182 struct ocxl_hw_afu *afu = ctx->hw_afu; local
183 struct device *dev = afu->dev;
254 struct ocxl_hw_afu *afu = ctx->hw_afu; local
255 struct device *dev = afu->dev;
330 struct ocxl_hw_afu *afu = ctx->hw_afu; local
331 struct ocxl_afu_config *acfg = &afu->acfg;
332 void *link_token = afu->link_token;
333 struct pci_dev *pdev = afu->pdev;
334 struct device *dev = afu->dev;
350 ctx->psn_phys = afu
402 struct ocxl_hw_afu *afu = ctx->hw_afu; local
472 struct ocxl_hw_afu *afu = afu_cookie; local
486 struct ocxl_hw_afu *afu = afu_cookie; local
567 struct ocxl_hw_afu *afu = afu_cookie; local
592 struct ocxl_hw_afu *afu = ctx->hw_afu; local
617 struct ocxl_hw_afu *afu = ctx->hw_afu; local
690 ocxlflash_unconfig_afu(struct ocxl_hw_afu *afu) argument
704 struct ocxl_hw_afu *afu = afu_cookie; local
728 ocxlflash_config_fn(struct pci_dev *pdev, struct ocxl_hw_afu *afu) argument
790 ocxlflash_unconfig_fn(struct pci_dev *pdev, struct ocxl_hw_afu *afu) argument
801 ocxlflash_map_mmio(struct ocxl_hw_afu *afu) argument
854 ocxlflash_config_afu(struct pci_dev *pdev, struct ocxl_hw_afu *afu) argument
912 struct ocxl_hw_afu *afu; local
1310 struct ocxl_hw_afu *afu = ctx->hw_afu; local
[all...]
H A Dmain.c49 struct afu *afu = cmd->parent; local
50 struct cxlflash_cfg *cfg = afu->parent;
161 struct afu *afu = cmd->parent; local
162 struct cxlflash_cfg *cfg = afu->parent;
164 struct hwq *hwq = get_hwq(afu, cmd->hwq_index);
198 struct cxlflash_cfg *cfg = hwq->afu->parent;
242 struct cxlflash_cfg *cfg = hwq->afu->parent;
299 * @afu
305 send_cmd_ioarrin(struct afu *afu, struct afu_cmd *cmd) argument
349 send_cmd_sq(struct afu *afu, struct afu_cmd *cmd) argument
394 wait_resp(struct afu *afu, struct afu_cmd *cmd) argument
427 cmd_to_target_hwq(struct Scsi_Host *host, struct scsi_cmnd *scp, struct afu *afu) argument
466 struct afu *afu = cfg->afu; local
568 struct afu *afu = cfg->afu; local
664 struct afu *afu = cfg->afu; local
697 struct afu *afu = cfg->afu; local
735 struct afu *afu = cfg->afu; local
781 struct afu *afu = cfg->afu; local
855 struct afu *afu = cfg->afu; local
1193 afu_set_wwpn(struct afu *afu, int port, __be64 __iomem *fc_regs, u64 wwpn) argument
1229 afu_link_reset(struct afu *afu, int port, __be64 __iomem *fc_regs) argument
1265 afu_err_intr_init(struct afu *afu) argument
1375 struct afu *afu = hwq->afu; local
1478 struct afu *afu = hwq->afu; local
1546 struct afu *afu = hwq->afu; local
1714 struct afu *afu = cfg->afu; local
1749 struct afu *afu = cfg->afu; local
1875 struct afu *afu = cfg->afu; local
2071 struct afu *afu = cfg->afu; local
2100 struct afu *afu = cfg->afu; local
2281 send_afu_cmd(struct afu *afu, struct sisl_ioarcb *rcb) argument
2375 cxlflash_afu_sync(struct afu *afu, ctx_hndl_t ctx, res_hndl_t res, u8 mode) argument
2413 struct afu *afu = cfg->afu; local
2671 struct afu *afu = cfg->afu; local
2704 struct afu *afu = cfg->afu; local
2867 struct afu *afu = cfg->afu; local
2890 struct afu *afu = cfg->afu; local
2945 struct afu *afu = cfg->afu; local
2969 struct afu *afu = cfg->afu; local
3030 struct afu *afu = cfg->afu; local
3056 struct afu *afu = cfg->afu; local
3205 struct afu *afu = cfg->afu; local
3290 struct afu *afu = cfg->afu; local
3384 struct afu *afu = cfg->afu; local
[all...]
/linux-master/include/misc/
H A Dcxl-base.h35 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
H A Docxl.h93 * @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...]

Completed in 196 milliseconds

12