/linux-master/drivers/scsi/cxlflash/ |
H A D | main.c | 49 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...] |
H A D | superpipe.c | 264 struct afu *afu = cfg->afu; local 267 struct hwq *hwq = get_hwq(afu, PRIMARY_HWQ); 283 if (afu_is_ocxl_lisn(afu)) { 638 struct afu *afu = cfg->afu; local 711 rcr = cxlflash_afu_sync(afu, ctxid, rhndl, AFU_HW_SYNC); 754 struct afu *af local 830 struct afu *afu = cfg->afu; local 1322 struct afu *afu = cfg->afu; local 1544 struct afu *afu = cfg->afu; local 1657 struct afu *afu = cfg->afu; local 1965 struct afu *afu = cfg->afu; local 2100 struct afu *afu = cfg->afu; local [all...] |
H A D | vlun.c | 485 * @afu: AFU associated with the host. 500 static int grow_lxt(struct afu *afu, argument 594 rc = cxlflash_afu_sync(afu, ctxid, rhndl, AFU_LW_SYNC); 609 * @afu: AFU associated with the host. 618 static int shrink_lxt(struct afu *afu, argument 676 rc = cxlflash_afu_sync(afu, ctxid, rhndl, AFU_HW_SYNC); 737 struct afu *afu local 1091 clone_lxt(struct afu *afu, struct blka *blka, ctx_hndl_t ctxid, res_hndl_t rhndl, struct sisl_rht_entry *rhte, struct sisl_rht_entry *rhte_src) argument 1198 struct afu *afu = cfg->afu; local [all...] |
H A D | ocxl_hw.c | 182 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...] |
/linux-master/drivers/misc/cxl/ |
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 | 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 | 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 | 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 | 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 | 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 | vphb.c | 31 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 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 | 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 | 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...] |
/linux-master/drivers/fpga/ |
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 | 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-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...] |
/linux-master/drivers/misc/ocxl/ |
H A D | file.c | 61 rc = ocxl_context_alloc(&ctx, info->afu, inode->i_mapping); 99 arg.afu_version_major = ctx->afu->config.version_major; 100 arg.afu_version_minor = ctx->afu->config.version_minor; 102 arg.pp_mmio_size = ctx->afu->config.pp_mmio_stride; 103 arg.global_mmio_size = ctx->afu->config.global_mmio_size; 137 int rc = ocxl_link_update_pe(ctx->afu->fn->link, 488 ocxl_afu_put(info->afu); 499 dev_err(&info->dev, "Unable to add afu char device: %d\n", rc); 521 int ocxl_file_register_afu(struct ocxl_afu *afu) argument 526 struct ocxl_fn *fn = afu 583 ocxl_file_unregister_afu(struct ocxl_afu *afu) argument [all...] |
H A D | context.c | 7 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 D | afu_irq.c | 22 return (offset - ctx->afu->irq_base_offset) >> PAGE_SHIFT; 27 return ctx->afu->irq_base_offset + (irq_id << PAGE_SHIFT); 81 irq->name = kasprintf(GFP_KERNEL, "ocxl-afu-%u", irq->virq); 115 * We limit the number of afu irqs per context and per link to 128 rc = ocxl_link_irq_alloc(ctx->afu->fn->link, &irq->hw_irq); 144 ocxl_link_free_irq(ctx->afu->fn->link, irq->hw_irq); 164 ocxl_link_free_irq(ctx->afu->fn->link, irq->hw_irq);
|
H A D | sysfs.c | 10 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 D | config.c | 423 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...] |
/linux-master/include/misc/ |
H A D | cxl.h | 209 void cxl_perst_reloads_same_image(struct cxl_afu *afu,
|