/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
A D | core.c | 62 fdev = kzalloc(sizeof(*fdev), GFP_KERNEL); in mlx5_fpga_device_alloc() 63 if (!fdev) in mlx5_fpga_device_alloc() 68 return fdev; in mlx5_fpga_device_alloc() 185 if (!fdev) in mlx5_fpga_device_start() 224 mlx5_eq_notifier_register(fdev->mdev, &fdev->fpga_err_nb); in mlx5_fpga_device_start() 225 mlx5_eq_notifier_register(fdev->mdev, &fdev->fpga_qp_err_nb); in mlx5_fpga_device_start() 243 mlx5_eq_notifier_unregister(fdev->mdev, &fdev->fpga_err_nb); in mlx5_fpga_device_start() 265 if (!fdev) in mlx5_fpga_init() 281 if (!fdev) in mlx5_fpga_device_stop() 303 mlx5_eq_notifier_unregister(fdev->mdev, &fdev->fpga_err_nb); in mlx5_fpga_device_stop() [all …]
|
A D | conn.c | 413 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_create_cq() local 501 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_create_wq() local 515 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_create_qp() local 673 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_init_qp() local 699 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_rtr_qp() local 733 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_rts_qp() local 759 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_connect() local 825 conn->fdev = fdev; in mlx5_fpga_conn_create() 959 fdev->conn_res.uar = mlx5_get_uars_page(fdev->mdev); in mlx5_fpga_conn_device_init() 988 mlx5_put_uars_page(fdev->mdev, fdev->conn_res.uar); in mlx5_fpga_conn_device_init() [all …]
|
A D | sdk.c | 41 mlx5_fpga_sbu_conn_create(struct mlx5_fpga_device *fdev, in mlx5_fpga_sbu_conn_create() argument 72 if (!fdev->mdev) in mlx5_fpga_mem_read_i2c() 78 err = mlx5_fpga_access_reg(fdev->mdev, actual_size, in mlx5_fpga_mem_read_i2c() 82 mlx5_fpga_err(fdev, "Failed to read over I2C: %d\n", in mlx5_fpga_mem_read_i2c() 104 if (!fdev->mdev) in mlx5_fpga_mem_write_i2c() 110 err = mlx5_fpga_access_reg(fdev->mdev, actual_size, in mlx5_fpga_mem_write_i2c() 114 mlx5_fpga_err(fdev, "Failed to write FPGA crspace\n"); in mlx5_fpga_mem_write_i2c() 131 ret = mlx5_fpga_mem_read_i2c(fdev, size, addr, buf); in mlx5_fpga_mem_read() 136 mlx5_fpga_warn(fdev, "Unexpected read access_type %u\n", in mlx5_fpga_mem_read() 152 ret = mlx5_fpga_mem_write_i2c(fdev, size, addr, buf); in mlx5_fpga_mem_write() [all …]
|
A D | sdk.h | 93 struct mlx5_fpga_device *fdev, 136 mlx5_fpga_sbu_conn_create(struct mlx5_fpga_device *fdev, 178 int mlx5_fpga_mem_read(struct mlx5_fpga_device *fdev, size_t size, u64 addr, 196 int mlx5_fpga_mem_write(struct mlx5_fpga_device *fdev, size_t size, u64 addr, 212 int mlx5_fpga_get_sbu_caps(struct mlx5_fpga_device *fdev, int size, void *buf);
|
A D | conn.h | 45 struct mlx5_fpga_device *fdev; member 86 int mlx5_fpga_conn_device_init(struct mlx5_fpga_device *fdev); 87 void mlx5_fpga_conn_device_cleanup(struct mlx5_fpga_device *fdev); 89 mlx5_fpga_conn_create(struct mlx5_fpga_device *fdev,
|
/linux-6.3-rc2/drivers/net/ethernet/fungible/funcore/ |
A D | fun_dev.c | 103 writel(fdev->cc_reg, fdev->bar + NVME_REG_CC); in fun_update_cc_enable() 178 struct fun_dev *fdev = funq->fdev; in fun_complete_admin_cmd() local 186 fdev->adminq_cb(fdev, entry); in fun_complete_admin_cmd() 248 fdev->admin_q = fun_alloc_queue(fdev, 0, &qreq); in fun_enable_admin_queue() 592 fdev->kern_end_qid = fdev->max_qid + 1; in fun_get_dev_limits() 629 fdev->irqs_avail = fdev->num_irqs - 1; in fun_alloc_irq_mgr() 715 fdev->cap_reg = readq(fdev->bar + NVME_REG_CAP); in sanitize_dev() 716 fdev->cc_reg = readl(fdev->bar + NVME_REG_CC); in sanitize_dev() 791 fdev->q_depth = NVME_CAP_MQES(fdev->cap_reg) + 1; in fun_dev_enable() 793 fdev->dbs = fdev->bar + NVME_REG_DBS; in fun_dev_enable() [all …]
|
A D | fun_dev.h | 33 typedef void (*fun_admin_callback_t)(struct fun_dev *fdev, void *rsp, 37 typedef void (*fun_admin_event_cb)(struct fun_dev *fdev, void *cqe); 106 return &fdev->dbs[db_index * fdev->db_stride]; in fun_db_addr() 115 return fun_db_addr(fdev, sqid * 2); in fun_sq_db_addr() 121 return fun_db_addr(fdev, cqid * 2 + 1); in fun_cq_db_addr() 125 int fun_res_destroy(struct fun_dev *fdev, enum fun_admin_op res, 133 int fun_submit_admin_sync_cmd(struct fun_dev *fdev, 137 int fun_dev_enable(struct fun_dev *fdev, struct pci_dev *pdev, 139 void fun_dev_disable(struct fun_dev *fdev); 141 int fun_reserve_irqs(struct fun_dev *fdev, unsigned int nirqs, [all …]
|
A D | fun_queue.c | 89 if (sq_depth > fdev->q_depth) in fun_sq_create() 114 *dbp = fun_sq_db_addr(fdev, hw_qid); in fun_sq_create() 138 if (cq_depth > fdev->q_depth) in fun_cq_create() 157 *dbp = fun_cq_db_addr(fdev, hw_qid); in fun_cq_create() 171 struct fun_dev *fdev = funq->fdev; in fun_clean_rq() local 188 struct device *dev = funq->fdev->dev; in fun_fill_rq() 217 struct device *dev = funq->fdev->dev; in fun_rq_update_pos() 413 funq->fdev = fdev; in fun_alloc_queue() 488 struct fun_dev *fdev = funq->fdev; in fun_create_cq() local 508 struct fun_dev *fdev = funq->fdev; in fun_create_sq() local [all …]
|
A D | fun_queue.h | 25 struct fun_dev *fdev; member 132 int fun_sq_create(struct fun_dev *fdev, u16 flags, u32 sqid, u32 cqid, 137 int fun_cq_create(struct fun_dev *fdev, u16 flags, u32 cqid, u32 rqid, 149 #define fun_destroy_sq(fdev, sqid) \ argument 150 fun_res_destroy((fdev), FUN_ADMIN_OP_EPSQ, 0, (sqid)) 151 #define fun_destroy_cq(fdev, cqid) \ argument 152 fun_res_destroy((fdev), FUN_ADMIN_OP_EPCQ, 0, (cqid)) 154 struct fun_queue *fun_alloc_queue(struct fun_dev *fdev, int qid,
|
/linux-6.3-rc2/drivers/dma/ |
A D | st_fdma.c | 34 struct st_fdma_dev *fdev = fchan->fdev; in st_fdma_dreq_get() local 68 struct st_fdma_dev *fdev = fchan->fdev; in st_fdma_dreq_put() local 102 struct st_fdma_dev *fdev = fchan->fdev; in st_fdma_ch_sta_update() local 352 struct st_fdma_dev *fdev = fchan->fdev; in config_reqctrl() local 755 fdev = devm_kzalloc(&pdev->dev, sizeof(*fdev), GFP_KERNEL); in st_fdma_probe() 756 if (!fdev) in st_fdma_probe() 765 fdev->chans = devm_kcalloc(&pdev->dev, fdev->nr_channels, in st_fdma_probe() 767 if (!fdev->chans) in st_fdma_probe() 785 fdev->slim_rproc = st_slim_rproc_alloc(pdev, fdev->fw_name); in st_fdma_probe() 797 fchan->fdev = fdev; in st_fdma_probe() [all …]
|
A D | fsldma.c | 1006 gsr = (fdev->feature & FSL_DMA_BIG_ENDIAN) ? in_be32(fdev->regs) in fsldma_ctrl_irq() 1034 if (fdev->irq) { in fsldma_free_irqs() 1036 free_irq(fdev->irq, fdev); in fsldma_free_irqs() 1056 if (fdev->irq) { in fsldma_request_irqs() 1134 if (!fdev->feature) in fsl_dma_chan_probe() 1220 fdev = kzalloc(sizeof(*fdev), GFP_KERNEL); in fsldma_of_probe() 1221 if (!fdev) { in fsldma_of_probe() 1231 if (!fdev->regs) { in fsldma_of_probe() 1297 if (fdev->chan[i]) in fsldma_of_probe() 1303 kfree(fdev); in fsldma_of_probe() [all …]
|
A D | st_fdma.h | 118 struct st_fdma_dev *fdev; member 166 #define fdma_read(fdev, name) \ argument 167 readl((fdev)->slim_rproc->peri + name) 169 #define fdma_write(fdev, val, name) \ argument 170 writel((val), (fdev)->slim_rproc->peri + name) 185 readl((fchan)->fdev->slim_rproc->mem[ST_SLIM_DMEM].cpu_addr \ 190 writel((val), (fchan)->fdev->slim_rproc->mem[ST_SLIM_DMEM].cpu_addr \ 197 writel((val), (fchan)->fdev->slim_rproc->mem[ST_SLIM_DMEM].cpu_addr \ 207 readl((fchan)->fdev->slim_rproc->mem[ST_SLIM_DMEM].cpu_addr \ 212 writel((val), (fchan)->fdev->slim_rproc->mem[ST_SLIM_DMEM].cpu_addr \
|
/linux-6.3-rc2/drivers/net/ethernet/fungible/funeth/ |
A D | funeth_main.c | 108 dev_dbg(fp->fdev->dev, in fun_port_read_cmds() 1218 struct fun_dev *fdev = fp->fdev; in fun_set_vf_mac() local 1246 struct fun_dev *fdev = fp->fdev; in fun_set_vf_vlan() local 1280 struct fun_dev *fdev = fp->fdev; in fun_set_vf_rate() local 1709 struct fun_dev *fdev = &ed->fdev; in fun_create_netdev() local 1729 fp->fdev = fdev; in fun_create_netdev() 2010 struct fun_dev *fdev; in funeth_probe() local 2022 fdev = &ed->fdev; in funeth_probe() 2038 fun_dev_disable(fdev); in funeth_probe() 2059 fun_serv_stop(fdev); in funeth_remove() [all …]
|
A D | funeth_ktls.c | 15 return fun_submit_admin_sync_cmd(fp->fdev, &req.common, NULL, 0, 0); in fun_admin_ktls_create() 58 rc = fun_submit_admin_sync_cmd(fp->fdev, &req.common, &rsp, in fun_ktls_add() 91 fun_submit_admin_sync_cmd(fp->fdev, &req.common, NULL, 0, 0); in fun_ktls_del() 120 rc = fun_submit_admin_sync_cmd(fp->fdev, &req.common, NULL, 0, 0); in fun_ktls_resync() 153 fun_res_destroy(fp->fdev, FUN_ADMIN_OP_KTLS, 0, fp->ktls_id); in fun_ktls_cleanup()
|
A D | funeth.h | 45 struct fun_dev fdev; member 62 return container_of(p, struct fun_ethdev, fdev); in to_fun_ethdev() 83 struct fun_dev *fdev; member
|
A D | funeth_rx.c | 602 err = fun_submit_admin_sync_cmd(fp->fdev, &cmd.common, NULL, 0, in fun_rxq_set_bpf() 728 err = fun_sq_create(fp->fdev, FUN_ADMIN_RES_CREATE_FLAG_ALLOCATOR | in fun_rxq_create_dev() 731 0, 0, fp->fdev->kern_end_qid, PAGE_SHIFT, in fun_rxq_create_dev() 736 err = fun_cq_create(fp->fdev, FUN_ADMIN_RES_CREATE_FLAG_ALLOCATOR | in fun_rxq_create_dev() 740 irq->irq_idx, 0, fp->fdev->kern_end_qid, in fun_rxq_create_dev() 756 fun_destroy_sq(fp->fdev, q->hw_sqid); in fun_rxq_create_dev() 781 fun_destroy_sq(fp->fdev, q->hw_sqid); in fun_rxq_free_dev() 782 fun_destroy_cq(fp->fdev, q->hw_cqid); in fun_rxq_free_dev()
|
A D | funeth_tx.c | 693 err = fun_sq_create(fp->fdev, in fun_txq_create_dev() 698 irq_idx, 0, fp->fdev->kern_end_qid, 0, in fun_txq_create_dev() 724 fun_destroy_sq(fp->fdev, q->hw_qid); in fun_txq_create_dev() 744 fun_destroy_sq(fp->fdev, q->hw_qid); in fun_txq_free_dev() 745 fun_res_destroy(fp->fdev, FUN_ADMIN_OP_ETH, 0, q->ethid); in fun_txq_free_dev()
|
A D | funeth_ethtool.c | 451 void __iomem *bar = fp->fdev->bar; in fun_get_regs() 558 unsigned int max_depth = fp->fdev->q_depth; in fun_get_ringparam() 1145 rc = fun_submit_admin_sync_cmd(fp->fdev, &cmd.req.common, &cmd.rsp, in fun_get_port_module_page()
|
/linux-6.3-rc2/drivers/fpga/ |
A D | dfl.c | 784 pdata->dev = fdev; in build_info_commit_dev() 804 fdev->resource = kcalloc(binfo->feature_num, sizeof(*fdev->resource), in build_info_commit_dev() 806 if (!fdev->resource) in build_info_commit_dev() 816 feature->dev = fdev; in build_info_commit_dev() 892 struct platform_device *fdev; in build_info_create_dev() local 902 if (!fdev) in build_info_create_dev() 905 binfo->feature_dev = fdev; in build_info_create_dev() 910 fdev->id = dfl_id_alloc(type, &fdev->dev); in build_info_create_dev() 911 if (fdev->id < 0) in build_info_create_dev() 912 return fdev->id; in build_info_create_dev() [all …]
|
A D | dfl-afu-main.c | 598 struct platform_device *fdev = dfl_fpga_inode_to_feature_dev(inode); in afu_open() local 602 pdata = dev_get_platdata(&fdev->dev); in afu_open() 609 dev_dbg(&fdev->dev, "Device File Opened %d Times\n", in afu_open() 611 filp->private_data = fdev; in afu_open()
|
A D | dfl-fme-main.c | 600 struct platform_device *fdev = dfl_fpga_inode_to_feature_dev(inode); in fme_open() local 601 struct dfl_feature_platform_data *pdata = dev_get_platdata(&fdev->dev); in fme_open() 610 dev_dbg(&fdev->dev, "Device File Opened %d Times\n", in fme_open()
|
/linux-6.3-rc2/include/linux/ |
A D | arm_ffa.h | 123 static inline void ffa_dev_set_drvdata(struct ffa_device *fdev, void *data) in ffa_dev_set_drvdata() argument 125 dev_set_drvdata(&fdev->dev, data); in ffa_dev_set_drvdata() 128 static inline void *ffa_dev_get_drvdata(struct ffa_device *fdev) in ffa_dev_get_drvdata() argument 130 return dev_get_drvdata(&fdev->dev); in ffa_dev_get_drvdata()
|
A D | fsi.h | 81 extern int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type,
|
/linux-6.3-rc2/drivers/misc/ |
A D | fastrpc.c | 2203 struct fastrpc_device *fdev; in fastrpc_device_register() local 2206 fdev = devm_kzalloc(dev, sizeof(*fdev), GFP_KERNEL); in fastrpc_device_register() 2207 if (!fdev) in fastrpc_device_register() 2210 fdev->secure = is_secured; in fastrpc_device_register() 2211 fdev->cctx = cctx; in fastrpc_device_register() 2212 fdev->miscdev.minor = MISC_DYNAMIC_MINOR; in fastrpc_device_register() 2213 fdev->miscdev.fops = &fastrpc_fops; in fastrpc_device_register() 2214 fdev->miscdev.name = devm_kasprintf(dev, GFP_KERNEL, "fastrpc-%s%s", in fastrpc_device_register() 2216 err = misc_register(&fdev->miscdev); in fastrpc_device_register() 2219 cctx->secure_fdevice = fdev; in fastrpc_device_register() [all …]
|
/linux-6.3-rc2/drivers/fsi/ |
A D | fsi-core.c | 974 int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type, in fsi_get_new_minor() argument 977 return __fsi_get_new_minor(fdev->slave, type, out_dev, out_index); in fsi_get_new_minor()
|