/linux-master/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
H A D | core.c | 60 struct mlx5_fpga_device *fdev; local 62 fdev = kzalloc(sizeof(*fdev), GFP_KERNEL); 63 if (!fdev) 66 spin_lock_init(&fdev->state_lock); 67 fdev->state = MLX5_FPGA_STATUS_NONE; 68 return fdev; 107 static int mlx5_fpga_device_load_check(struct mlx5_fpga_device *fdev) argument 112 err = mlx5_fpga_query(fdev->mdev, &query); 114 mlx5_fpga_err(fdev, "Faile 138 mlx5_fpga_device_brb(struct mlx5_fpga_device *fdev) argument 165 struct mlx5_fpga_device *fdev = mlx5_nb_cof(nb, struct mlx5_fpga_device, fpga_err_nb); local 172 struct mlx5_fpga_device *fdev = mlx5_nb_cof(nb, struct mlx5_fpga_device, fpga_qp_err_nb); local 179 struct mlx5_fpga_device *fdev = mdev->fpga; local 255 struct mlx5_fpga_device *fdev; local 276 struct mlx5_fpga_device *fdev = mdev->fpga; local 312 struct mlx5_fpga_device *fdev = mdev->fpga; local 333 mlx5_fpga_event(struct mlx5_fpga_device *fdev, unsigned long event, void *eqe) argument [all...] |
H A D | sdk.c | 41 mlx5_fpga_sbu_conn_create(struct mlx5_fpga_device *fdev, argument 44 return mlx5_fpga_conn_create(fdev, attr, MLX5_FPGA_QPC_QP_TYPE_SANDBOX_QP); 61 static int mlx5_fpga_mem_read_i2c(struct mlx5_fpga_device *fdev, size_t size, argument 72 if (!fdev->mdev) 78 err = mlx5_fpga_access_reg(fdev->mdev, actual_size, 82 mlx5_fpga_err(fdev, "Failed to read over I2C: %d\n", 93 static int mlx5_fpga_mem_write_i2c(struct mlx5_fpga_device *fdev, size_t size, argument 104 if (!fdev->mdev) 110 err = mlx5_fpga_access_reg(fdev->mdev, actual_size, 114 mlx5_fpga_err(fdev, "Faile 124 mlx5_fpga_mem_read(struct mlx5_fpga_device *fdev, size_t size, u64 addr, void *buf, enum mlx5_fpga_access_type access_type) argument 145 mlx5_fpga_mem_write(struct mlx5_fpga_device *fdev, size_t size, u64 addr, void *buf, enum mlx5_fpga_access_type access_type) argument 166 mlx5_fpga_get_sbu_caps(struct mlx5_fpga_device *fdev, int size, void *buf) argument [all...] |
H A D | conn.h | 45 struct mlx5_fpga_device *fdev; member in struct:mlx5_fpga_conn 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,
|
H A D | conn.c | 57 dma_device = mlx5_core_dma_dev(conn->fdev->mdev); 62 mlx5_fpga_warn(conn->fdev, "DMA error on sg 0: %d\n", err); 74 mlx5_fpga_warn(conn->fdev, "DMA error on sg 1: %d\n", err); 89 dma_device = mlx5_core_dma_dev(conn->fdev->mdev); 118 data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey); 138 mlx5_write64(wqe, conn->fdev->conn_res.uar->map + MLX5_BF_OFFSET); 158 data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey); 262 mlx5_fpga_warn(conn->fdev, "RQ buf %p on FPGA QP %u completion status %d\n", 265 mlx5_fpga_dbg(conn->fdev, "RQ buf %p on FPGA QP %u completion status %d\n", 277 mlx5_fpga_dbg(conn->fdev, "Messag 413 struct mlx5_fpga_device *fdev = conn->fdev; local 501 struct mlx5_fpga_device *fdev = conn->fdev; local 515 struct mlx5_fpga_device *fdev = conn->fdev; local 673 struct mlx5_fpga_device *fdev = conn->fdev; local 699 struct mlx5_fpga_device *fdev = conn->fdev; local 733 struct mlx5_fpga_device *fdev = conn->fdev; local 759 struct mlx5_fpga_device *fdev = conn->fdev; local 810 mlx5_fpga_conn_create(struct mlx5_fpga_device *fdev, struct mlx5_fpga_conn_attr *attr, enum mlx5_ifc_fpga_qp_type qp_type) argument 949 mlx5_fpga_conn_device_init(struct mlx5_fpga_device *fdev) argument 995 mlx5_fpga_conn_device_cleanup(struct mlx5_fpga_device *fdev) argument [all...] |
H A D | sdk.h | 88 * @fdev: FPGA device this packet was sent to 93 struct mlx5_fpga_device *fdev, 123 * @fdev: The FPGA device 136 mlx5_fpga_sbu_conn_create(struct mlx5_fpga_device *fdev, 165 * @fdev: The FPGA device 178 int mlx5_fpga_mem_read(struct mlx5_fpga_device *fdev, size_t size, u64 addr, 183 * @fdev: The FPGA device 196 int mlx5_fpga_mem_write(struct mlx5_fpga_device *fdev, size_t size, u64 addr, 201 * @fdev: The FPGA device 212 int mlx5_fpga_get_sbu_caps(struct mlx5_fpga_device *fdev, in [all...] |
/linux-master/drivers/net/ethernet/fungible/funcore/ |
H A D | fun_dev.c | 43 static int fun_wait_ready(struct fun_dev *fdev, bool enabled) argument 45 unsigned int cap_to = NVME_CAP_TIMEOUT(fdev->cap_reg); 52 u32 csts = readl(fdev->bar + NVME_REG_CSTS); 55 dev_err(fdev->dev, "CSTS register read %#x\n", csts); 68 dev_err(fdev->dev, 77 static int fun_check_csts_rdy(struct fun_dev *fdev, unsigned int expected_rdy) argument 79 u32 csts = readl(fdev->bar + NVME_REG_CSTS); 83 dev_err(fdev->dev, "CSTS register read %#x\n", csts); 87 dev_err(fdev->dev, "Unexpected CSTS RDY %u\n", actual_rdy); 96 static int fun_update_cc_enable(struct fun_dev *fdev, unsigne argument 106 fun_disable_ctrl(struct fun_dev *fdev) argument 112 fun_enable_ctrl(struct fun_dev *fdev, u32 admin_cqesz_log2, u32 admin_sqesz_log2) argument 123 fun_map_bars(struct fun_dev *fdev, const char *name) argument 145 fun_unmap_bars(struct fun_dev *fdev) argument 177 struct fun_dev *fdev = funq->fdev; local 209 fun_init_cmd_ctx(struct fun_dev *fdev, unsigned int ntags) argument 224 fun_enable_admin_queue(struct fun_dev *fdev, const struct fun_dev_params *areq) argument 305 fun_disable_admin_queue(struct fun_dev *fdev) argument 330 fun_adminq_stopped(struct fun_dev *fdev) argument 337 fun_wait_for_tag(struct fun_dev *fdev, int *cpup) argument 363 fun_submit_admin_cmd(struct fun_dev *fdev, struct fun_admin_req_common *cmd, fun_admin_callback_t cb, void *cb_data, bool wait_ok) argument 426 fun_admin_stop(struct fun_dev *fdev) argument 460 fun_submit_admin_sync_cmd(struct fun_dev *fdev, struct fun_admin_req_common *cmd, void *rsp, size_t rspsize, unsigned int timeout) argument 512 fun_get_res_count(struct fun_dev *fdev, enum fun_admin_op res) argument 531 fun_res_destroy(struct fun_dev *fdev, enum fun_admin_op res, unsigned int flags, u32 id) argument 545 fun_bind(struct fun_dev *fdev, enum fun_admin_bind_type type0, unsigned int id0, enum fun_admin_bind_type type1, unsigned int id1) argument 563 fun_get_dev_limits(struct fun_dev *fdev) argument 619 fun_alloc_irq_mgr(struct fun_dev *fdev) argument 633 fun_reserve_irqs(struct fun_dev *fdev, unsigned int nirqs, u16 *irq_indices) argument 662 fun_release_irqs(struct fun_dev *fdev, unsigned int nirqs, u16 *irq_indices) argument 710 sanitize_dev(struct fun_dev *fdev) argument 732 fun_dev_disable(struct fun_dev *fdev) argument 761 fun_dev_enable(struct fun_dev *fdev, struct pci_dev *pdev, const struct fun_dev_params *areq, const char *name) argument [all...] |
H 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); 103 static inline u32 __iomem *fun_db_addr(const struct fun_dev *fdev, argument 106 return &fdev->dbs[db_index * fdev->db_stride]; 112 static inline u32 __iomem *fun_sq_db_addr(const struct fun_dev *fdev, argument 115 return fun_db_addr(fdev, sqid * 2); 118 static inline u32 __iomem *fun_cq_db_addr(const struct fun_dev *fdev, argument 121 return fun_db_addr(fdev, cqid * 2 + 1); 124 int fun_get_res_count(struct fun_dev *fdev, enu [all...] |
H A D | fun_queue.c | 75 int fun_sq_create(struct fun_dev *fdev, u16 flags, u32 sqid, u32 cqid, argument 89 if (sq_depth > fdev->q_depth) 108 rc = fun_submit_admin_sync_cmd(fdev, &cmd.req.common, 114 *dbp = fun_sq_db_addr(fdev, hw_qid); 125 int fun_cq_create(struct fun_dev *fdev, u16 flags, u32 cqid, u32 rqid, argument 138 if (cq_depth > fdev->q_depth) 151 rc = fun_submit_admin_sync_cmd(fdev, &cmd.req.common, 157 *dbp = fun_cq_db_addr(fdev, hw_qid); 171 struct fun_dev *fdev = funq->fdev; local 405 fun_alloc_queue(struct fun_dev *fdev, int qid, const struct fun_queue_alloc_req *req) argument 488 struct fun_dev *fdev = funq->fdev; local 508 struct fun_dev *fdev = funq->fdev; local 525 struct fun_dev *fdev = funq->fdev; local [all...] |
H A D | fun_queue.h | 25 struct fun_dev *fdev; member in struct:fun_queue 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) \ 150 fun_res_destroy((fdev), FUN_ADMIN_OP_EPSQ, 0, (sqid)) 151 #define fun_destroy_cq(fdev, cqid) \ 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-master/drivers/dma/ |
H A D | st_fdma.c | 35 struct st_fdma_dev *fdev = fchan->fdev; local 46 if (fdev->dreq_mask == ~0L) { 47 dev_err(fdev->dev, "No req lines available\n"); 52 dev_err(fdev->dev, "Invalid or used req line\n"); 59 } while (test_and_set_bit(dreq_line, &fdev->dreq_mask)); 61 dev_dbg(fdev->dev, "get dreq_line:%d mask:%#lx\n", 62 dreq_line, fdev->dreq_mask); 69 struct st_fdma_dev *fdev = fchan->fdev; local 103 struct st_fdma_dev *fdev = fchan->fdev; local 128 struct st_fdma_dev *fdev = dev_id; local 170 struct st_fdma_dev *fdev = ofdma->of_dma_data; local 353 struct st_fdma_dev *fdev = fchan->fdev; local 713 st_fdma_parse_dt(struct platform_device *pdev, const struct st_fdma_driverdata *drvdata, struct st_fdma_dev *fdev) argument 728 st_fdma_free(struct st_fdma_dev *fdev) argument 742 struct st_fdma_dev *fdev; local 848 struct st_fdma_dev *fdev = platform_get_drvdata(pdev); local [all...] |
H A D | fsldma.c | 1001 struct fsldma_device *fdev = data; local 1007 gsr = (fdev->feature & FSL_DMA_BIG_ENDIAN) ? in_be32(fdev->regs) 1008 : in_le32(fdev->regs); 1010 dev_dbg(fdev->dev, "IRQ: gsr 0x%.8x\n", gsr); 1013 chan = fdev->chan[i]; 1018 dev_dbg(fdev->dev, "IRQ: chan %d\n", chan->id); 1030 static void fsldma_free_irqs(struct fsldma_device *fdev) argument 1035 if (fdev->irq) { 1036 dev_dbg(fdev 1050 fsldma_request_irqs(struct fsldma_device *fdev) argument 1106 fsl_dma_chan_probe(struct fsldma_device *fdev, struct device_node *node, u32 feature, const char *compatible) argument 1216 struct fsldma_device *fdev; local 1311 struct fsldma_device *fdev; local 1332 struct fsldma_device *fdev = dev_get_drvdata(dev); local 1363 struct fsldma_device *fdev = dev_get_drvdata(dev); local [all...] |
H A D | st_fdma.h | 118 struct st_fdma_dev *fdev; member in struct:st_fdma_chan 166 #define fdma_read(fdev, name) \ 167 readl((fdev)->slim_rproc->peri + name) 169 #define fdma_write(fdev, val, name) \ 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 [all...] |
/linux-master/drivers/net/ethernet/fungible/funeth/ |
H A D | funeth_ktls.c | 15 return fun_submit_admin_sync_cmd(fp->fdev, &req.common, NULL, 0, 0); 58 rc = fun_submit_admin_sync_cmd(fp->fdev, &req.common, &rsp, 91 fun_submit_admin_sync_cmd(fp->fdev, &req.common, NULL, 0, 0); 120 rc = fun_submit_admin_sync_cmd(fp->fdev, &req.common, NULL, 0, 0); 153 fun_res_destroy(fp->fdev, FUN_ADMIN_OP_KTLS, 0, fp->ktls_id);
|
H A D | funeth_main.c | 66 return fun_submit_admin_sync_cmd(fp->fdev, &cmd.req.common, 101 rc = fun_submit_admin_sync_cmd(fp->fdev, &cmd.req.common, 108 dev_dbg(fp->fdev->dev, 153 static int fun_adi_write(struct fun_dev *fdev, enum fun_admin_adi_attr attr, argument 165 return fun_submit_admin_sync_cmd(fdev, &req.common, NULL, 0, 0); 216 rc = fun_submit_admin_sync_cmd(fp->fdev, &cmd.req.common, 229 fun_res_destroy(fp->fdev, FUN_ADMIN_OP_RSS, 0, fp->rss_hw_id); 262 res = fun_reserve_irqs(fp->fdev, 1, &irq->irq_idx); 278 fun_release_irqs(fp->fdev, 1, &irq->irq_idx); 287 fun_release_irqs(fp->fdev, 1218 struct fun_dev *fdev = fp->fdev; local 1246 struct fun_dev *fdev = fp->fdev; local 1280 struct fun_dev *fdev = fp->fdev; local 1709 struct fun_dev *fdev = &ed->fdev; local 1913 fun_event_cb(struct fun_dev *fdev, void *entry) argument 1940 fun_service_cb(struct fun_dev *fdev) argument 1963 struct fun_dev *fdev = pci_get_drvdata(pdev); local 2010 struct fun_dev *fdev; local 2047 struct fun_dev *fdev = pci_get_drvdata(pdev); local [all...] |
H A D | funeth.h | 45 struct fun_dev fdev; member in struct:fun_ethdev 62 return container_of(p, struct fun_ethdev, fdev); 83 struct fun_dev *fdev; member in struct:funeth_priv
|
H A D | funeth_rx.c | 601 err = fun_submit_admin_sync_cmd(fp->fdev, &cmd.common, NULL, 0, 727 err = fun_sq_create(fp->fdev, FUN_ADMIN_RES_CREATE_FLAG_ALLOCATOR | 730 0, 0, fp->fdev->kern_end_qid, PAGE_SHIFT, 735 err = fun_cq_create(fp->fdev, FUN_ADMIN_RES_CREATE_FLAG_ALLOCATOR | 739 irq->irq_idx, 0, fp->fdev->kern_end_qid, 755 fun_destroy_sq(fp->fdev, q->hw_sqid); 780 fun_destroy_sq(fp->fdev, q->hw_sqid); 781 fun_destroy_cq(fp->fdev, q->hw_cqid);
|
H A D | funeth_tx.c | 692 err = fun_sq_create(fp->fdev, 697 irq_idx, 0, fp->fdev->kern_end_qid, 0, 723 fun_destroy_sq(fp->fdev, q->hw_qid); 743 fun_destroy_sq(fp->fdev, q->hw_qid); 744 fun_res_destroy(fp->fdev, FUN_ADMIN_OP_ETH, 0, q->ethid);
|
/linux-master/drivers/dma/idxd/ |
H A D | cdev.c | 226 struct device *dev, *fdev; local 295 fdev = user_ctx_dev(ctx); 296 device_initialize(fdev); 297 fdev->parent = cdev_dev(idxd_cdev); 298 fdev->bus = &dsa_bus_type; 299 fdev->type = &idxd_cdev_file_type; 301 rc = dev_set_name(fdev, "file%d", ctx->id); 307 rc = device_add(fdev); 319 put_device(fdev);
|
/linux-master/include/linux/ |
H A D | fsi.h | 81 extern int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type,
|
H A D | arm_ffa.h | 153 static inline void ffa_dev_set_drvdata(struct ffa_device *fdev, void *data) argument 155 dev_set_drvdata(&fdev->dev, data); 158 static inline void *ffa_dev_get_drvdata(struct ffa_device *fdev) argument 160 return dev_get_drvdata(&fdev->dev);
|
/linux-master/drivers/fpga/ |
H A D | dfl.c | 764 struct platform_device *fdev = binfo->feature_dev; local 770 type = feature_dev_id_type(fdev); 784 pdata->dev = fdev; 800 fdev->dev.platform_data = pdata; 803 fdev->num_resources = binfo->feature_num; 804 fdev->resource = kcalloc(binfo->feature_num, sizeof(*fdev->resource), 806 if (!fdev->resource) 816 feature->dev = fdev; 846 fdev 892 struct platform_device *fdev; local [all...] |
H A D | dfl-fme-main.c | 601 struct platform_device *fdev = dfl_fpga_inode_to_feature_dev(inode); local 602 struct dfl_feature_platform_data *pdata = dev_get_platdata(&fdev->dev); 611 dev_dbg(&fdev->dev, "Device File Opened %d Times\n",
|
H A D | dfl-afu-main.c | 598 struct platform_device *fdev = dfl_fpga_inode_to_feature_dev(inode); local 602 pdata = dev_get_platdata(&fdev->dev); 609 dev_dbg(&fdev->dev, "Device File Opened %d Times\n", 611 filp->private_data = fdev;
|
/linux-master/drivers/misc/ |
H A D | fastrpc.c | 2224 struct fastrpc_device *fdev; local 2227 fdev = devm_kzalloc(dev, sizeof(*fdev), GFP_KERNEL); 2228 if (!fdev) 2231 fdev->secure = is_secured; 2232 fdev->cctx = cctx; 2233 fdev->miscdev.minor = MISC_DYNAMIC_MINOR; 2234 fdev->miscdev.fops = &fastrpc_fops; 2235 fdev->miscdev.name = devm_kasprintf(dev, GFP_KERNEL, "fastrpc-%s%s", 2237 if (!fdev [all...] |
/linux-master/drivers/fsi/ |
H A D | fsi-core.c | 949 int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type, argument 952 if (fdev->dev.of_node) { 953 int aid = of_alias_get_id(fdev->dev.of_node, fsi_dev_type_names[type]); 971 return __fsi_get_new_minor(fdev->slave, type, out_dev, out_index);
|