Home
last modified time | relevance | path

Searched refs:fdev (Results 1 – 20 of 20) sorted by relevance

/linux/drivers/net/ethernet/fungible/funcore/
H A Dfun_dev.c43 static int fun_wait_ready(struct fun_dev *fdev, bool enabled) in fun_wait_ready() argument
45 unsigned int cap_to = NVME_CAP_TIMEOUT(fdev->cap_reg); in fun_wait_ready()
52 u32 csts = readl(fdev->bar + NVME_REG_CSTS); in fun_wait_ready()
55 dev_err(fdev->dev, "CSTS register read %#x\n", csts); in fun_wait_ready()
68 dev_err(fdev->dev, in fun_wait_ready()
77 static int fun_check_csts_rdy(struct fun_dev *fdev, unsigned int expected_rdy) in fun_check_csts_rdy() argument
79 u32 csts = readl(fdev->bar + NVME_REG_CSTS); in fun_check_csts_rdy()
83 dev_err(fdev->dev, "CSTS register read %#x\n", csts); in fun_check_csts_rdy()
87 dev_err(fdev->dev, "Unexpected CSTS RDY %u\n", actual_rdy); in fun_check_csts_rdy()
96 static int fun_update_cc_enable(struct fun_dev *fdev, unsigned int initial_rdy) in fun_update_cc_enable() argument
[all …]
H A Dfun_dev.h33 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, in fun_db_addr() argument
106 return &fdev->dbs[db_index * fdev->db_stride]; in fun_db_addr()
112 static inline u32 __iomem *fun_sq_db_addr(const struct fun_dev *fdev, in fun_sq_db_addr() argument
115 return fun_db_addr(fdev, sqid * 2); in fun_sq_db_addr()
118 static inline u32 __iomem *fun_cq_db_addr(const struct fun_dev *fdev, in fun_cq_db_addr() argument
121 return fun_db_addr(fdev, cqid * 2 + 1); in fun_cq_db_addr()
124 int fun_get_res_count(struct fun_dev *fdev, enum fun_admin_op res);
125 int fun_res_destroy(struct fun_dev *fdev, enum fun_admin_op res,
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
H A Dcore.c60 struct mlx5_fpga_device *fdev; in mlx5_fpga_device_alloc() local
62 fdev = kzalloc(sizeof(*fdev), GFP_KERNEL); in mlx5_fpga_device_alloc()
63 if (!fdev) in mlx5_fpga_device_alloc()
66 spin_lock_init(&fdev->state_lock); in mlx5_fpga_device_alloc()
67 fdev->state = MLX5_FPGA_STATUS_NONE; in mlx5_fpga_device_alloc()
68 return fdev; in mlx5_fpga_device_alloc()
107 static int mlx5_fpga_device_load_check(struct mlx5_fpga_device *fdev) in mlx5_fpga_device_load_check() argument
112 err = mlx5_fpga_query(fdev->mdev, &query); in mlx5_fpga_device_load_check()
114 mlx5_fpga_err(fdev, "Failed to query status: %d\n", err); in mlx5_fpga_device_load_check()
118 fdev->last_admin_image = query.admin_image; in mlx5_fpga_device_load_check()
[all …]
H A Dconn.c57 dma_device = mlx5_core_dma_dev(conn->fdev->mdev); in mlx5_fpga_conn_map_buf()
62 mlx5_fpga_warn(conn->fdev, "DMA error on sg 0: %d\n", err); in mlx5_fpga_conn_map_buf()
74 mlx5_fpga_warn(conn->fdev, "DMA error on sg 1: %d\n", err); in mlx5_fpga_conn_map_buf()
89 dma_device = mlx5_core_dma_dev(conn->fdev->mdev); in mlx5_fpga_conn_unmap_buf()
118 data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey); in mlx5_fpga_conn_post_recv()
138 mlx5_write64(wqe, conn->fdev->conn_res.uar->map + MLX5_BF_OFFSET); in mlx5_fpga_conn_notify_hw()
158 data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey); in mlx5_fpga_conn_post_send()
262 mlx5_fpga_warn(conn->fdev, "RQ buf %p on FPGA QP %u completion status %d\n", in mlx5_fpga_conn_rq_cqe()
265 mlx5_fpga_dbg(conn->fdev, "RQ buf %p on FPGA QP %u completion status %d\n", in mlx5_fpga_conn_rq_cqe()
277 mlx5_fpga_dbg(conn->fdev, "Message with %u bytes received successfully\n", in mlx5_fpga_conn_rq_cqe()
[all …]
H A Dsdk.c41 mlx5_fpga_sbu_conn_create(struct mlx5_fpga_device *fdev, in mlx5_fpga_sbu_conn_create() argument
44 return mlx5_fpga_conn_create(fdev, attr, MLX5_FPGA_QPC_QP_TYPE_SANDBOX_QP); in mlx5_fpga_sbu_conn_create()
61 static int mlx5_fpga_mem_read_i2c(struct mlx5_fpga_device *fdev, size_t size, in mlx5_fpga_mem_read_i2c() 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()
93 static int mlx5_fpga_mem_write_i2c(struct mlx5_fpga_device *fdev, size_t size, in mlx5_fpga_mem_write_i2c() argument
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()
[all …]
H A Dsdk.h93 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);
H A Dconn.h45 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/drivers/dma/
H A Dst_fdma.h118 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/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_main.c66 return fun_submit_admin_sync_cmd(fp->fdev, &cmd.req.common, in fun_port_write_cmds()
101 rc = fun_submit_admin_sync_cmd(fp->fdev, &cmd.req.common, in fun_port_read_cmds()
108 dev_dbg(fp->fdev->dev, in fun_port_read_cmds()
153 static int fun_adi_write(struct fun_dev *fdev, enum fun_admin_adi_attr attr, in fun_adi_write() argument
165 return fun_submit_admin_sync_cmd(fdev, &req.common, NULL, 0, 0); in fun_adi_write()
216 rc = fun_submit_admin_sync_cmd(fp->fdev, &cmd.req.common, in fun_config_rss()
229 fun_res_destroy(fp->fdev, FUN_ADMIN_OP_RSS, 0, fp->rss_hw_id); in fun_destroy_rss()
262 res = fun_reserve_irqs(fp->fdev, 1, &irq->irq_idx); in fun_alloc_qirq()
278 fun_release_irqs(fp->fdev, 1, &irq->irq_idx); in fun_alloc_qirq()
287 fun_release_irqs(fp->fdev, 1, &irq->irq_idx); in fun_free_qirq()
[all …]
H A Dfuneth_ktls.c15 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()
H A Dfuneth.h45 struct fun_dev fdev; member
62 return container_of(p, struct fun_ethdev, fdev); in to_fun_ethdev()
83 struct fun_dev *fdev; member
H A Dfuneth_rx.c601 err = fun_submit_admin_sync_cmd(fp->fdev, &cmd.common, NULL, 0, in fun_rxq_set_bpf()
727 err = fun_sq_create(fp->fdev, FUN_ADMIN_RES_CREATE_FLAG_ALLOCATOR | in fun_rxq_create_dev()
730 0, 0, fp->fdev->kern_end_qid, PAGE_SHIFT, in fun_rxq_create_dev()
735 err = fun_cq_create(fp->fdev, FUN_ADMIN_RES_CREATE_FLAG_ALLOCATOR | in fun_rxq_create_dev()
739 irq->irq_idx, 0, fp->fdev->kern_end_qid, in fun_rxq_create_dev()
755 fun_destroy_sq(fp->fdev, q->hw_sqid); in fun_rxq_create_dev()
780 fun_destroy_sq(fp->fdev, q->hw_sqid); in fun_rxq_free_dev()
781 fun_destroy_cq(fp->fdev, q->hw_cqid); in fun_rxq_free_dev()
H A Dfuneth_tx.c692 err = fun_sq_create(fp->fdev, in fun_txq_create_dev()
697 irq_idx, 0, fp->fdev->kern_end_qid, 0, in fun_txq_create_dev()
723 fun_destroy_sq(fp->fdev, q->hw_qid); in fun_txq_create_dev()
743 fun_destroy_sq(fp->fdev, q->hw_qid); in fun_txq_free_dev()
744 fun_res_destroy(fp->fdev, FUN_ADMIN_OP_ETH, 0, q->ethid); in fun_txq_free_dev()
H A Dfuneth_ethtool.c451 void __iomem *bar = fp->fdev->bar; in fun_get_regs()
558 unsigned int max_depth = fp->fdev->q_depth; in fun_get_ringparam()
1142 rc = fun_submit_admin_sync_cmd(fp->fdev, &cmd.req.common, &cmd.rsp, in fun_get_port_module_page()
/linux/drivers/fpga/
H A Ddfl.c868 struct platform_device *fdev; in build_info_commit_dev()
872 fdev = platform_device_alloc(fdata->pdev_name, fdata->pdev_id); in build_info_commit_dev()
873 if (!fdev) in build_info_commit_dev()
876 fdata->dev = fdev; in build_info_commit_dev()
878 fdev->dev.parent = &fdata->dfl_cdev->region->dev; in build_info_commit_dev()
879 fdev->dev.devt = dfl_get_devt(dfl_devs[fdata->type].devt_type, fdev->id); in build_info_commit_dev()
882 feature->dev = fdev; in build_info_commit_dev()
884 ret = platform_device_add_resources(fdev, fdata->resources, in build_info_commit_dev()
890 ret = platform_device_add_data(fdev, in build_info_create_dev()
764 struct platform_device *fdev = binfo->feature_dev; build_info_commit_dev() local
892 struct platform_device *fdev; build_info_create_dev() local
[all...]
/linux/include/linux/
H A Darm_ffa.h159 static inline void ffa_dev_set_drvdata(struct ffa_device *fdev, void *data) in ffa_dev_set_drvdata() argument
161 dev_set_drvdata(&fdev->dev, data); in ffa_dev_set_drvdata()
164 static inline void *ffa_dev_get_drvdata(struct ffa_device *fdev) in ffa_dev_get_drvdata() argument
166 return dev_get_drvdata(&fdev->dev); in ffa_dev_get_drvdata()
H A Dfsi.h81 extern int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type,
/linux/drivers/misc/
H A Dfastrpc.c2231 struct fastrpc_device *fdev; in fastrpc_device_register() local
2234 fdev = devm_kzalloc(dev, sizeof(*fdev), GFP_KERNEL); in fastrpc_device_register()
2235 if (!fdev) in fastrpc_device_register()
2238 fdev->secure = is_secured; in fastrpc_device_register()
2239 fdev->cctx = cctx; in fastrpc_device_register()
2240 fdev->miscdev.minor = MISC_DYNAMIC_MINOR; in fastrpc_device_register()
2241 fdev->miscdev.fops = &fastrpc_fops; in fastrpc_device_register()
2242 fdev->miscdev.name = devm_kasprintf(dev, GFP_KERNEL, "fastrpc-%s%s", in fastrpc_device_register()
2244 if (!fdev->miscdev.name) in fastrpc_device_register()
2247 err = misc_register(&fdev->miscdev); in fastrpc_device_register()
[all …]
/linux/drivers/fsi/
H A Dfsi-core.c949 int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type, in fsi_get_new_minor() argument
952 if (fdev->dev.of_node) { in fsi_get_new_minor()
953 int aid = of_alias_get_id(fdev->dev.of_node, fsi_dev_type_names[type]); in fsi_get_new_minor()
971 return __fsi_get_new_minor(fdev->slave, type, out_dev, out_index); in fsi_get_new_minor()
/linux/drivers/firmware/arm_ffa/
H A Ddriver.c1362 struct ffa_device *fdev = to_ffa_dev(dev); in ffa_bus_notifier() local
1374 if (uuid_is_null(&fdev->uuid)) in ffa_bus_notifier()
1375 ffa_device_match_uuid(fdev, &id_table->uuid); in ffa_bus_notifier()