Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
H A Dcore.c62 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 …]
H A Dsdk.c41 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 …]
H A Dconn.c413 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 …]
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,
/openbmc/linux/drivers/net/ethernet/fungible/funcore/
H A Dfun_dev.c102 writel(fdev->cc_reg, fdev->bar + NVME_REG_CC); in fun_update_cc_enable()
177 struct fun_dev *fdev = funq->fdev; in fun_complete_admin_cmd() local
185 fdev->adminq_cb(fdev, entry); in fun_complete_admin_cmd()
247 fdev->admin_q = fun_alloc_queue(fdev, 0, &qreq); in fun_enable_admin_queue()
591 fdev->kern_end_qid = fdev->max_qid + 1; in fun_get_dev_limits()
628 fdev->irqs_avail = fdev->num_irqs - 1; in fun_alloc_irq_mgr()
714 fdev->cap_reg = readq(fdev->bar + NVME_REG_CAP); in sanitize_dev()
715 fdev->cc_reg = readl(fdev->bar + NVME_REG_CC); in sanitize_dev()
786 fdev->q_depth = NVME_CAP_MQES(fdev->cap_reg) + 1; in fun_dev_enable()
788 fdev->dbs = fdev->bar + NVME_REG_DBS; in fun_dev_enable()
[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);
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 …]
H A Dfun_queue.c89 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 …]
H A Dfun_queue.h25 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,
/openbmc/linux/drivers/dma/
H A Dst_fdma.c34 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 …]
H A Dfsldma.c1007 gsr = (fdev->feature & FSL_DMA_BIG_ENDIAN) ? in_be32(fdev->regs) in fsldma_ctrl_irq()
1035 if (fdev->irq) { in fsldma_free_irqs()
1037 free_irq(fdev->irq, fdev); in fsldma_free_irqs()
1057 if (fdev->irq) { in fsldma_request_irqs()
1135 if (!fdev->feature) in fsl_dma_chan_probe()
1221 fdev = kzalloc(sizeof(*fdev), GFP_KERNEL); in fsldma_of_probe()
1222 if (!fdev) { in fsldma_of_probe()
1232 if (!fdev->regs) { in fsldma_of_probe()
1298 if (fdev->chan[i]) in fsldma_of_probe()
1304 kfree(fdev); in fsldma_of_probe()
[all …]
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 \
/openbmc/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_main.c108 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 …]
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()
/openbmc/linux/drivers/fpga/
H A Ddfl.c784 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 …]
H A Ddfl-afu-main.c598 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()
H A Ddfl-fme-main.c601 struct platform_device *fdev = dfl_fpga_inode_to_feature_dev(inode); in fme_open() local
602 struct dfl_feature_platform_data *pdata = dev_get_platdata(&fdev->dev); in fme_open()
611 dev_dbg(&fdev->dev, "Device File Opened %d Times\n", in fme_open()
/openbmc/linux/drivers/dma/idxd/
H A Dcdev.c226 struct device *dev, *fdev; in idxd_cdev_open() local
295 fdev = user_ctx_dev(ctx); in idxd_cdev_open()
296 device_initialize(fdev); in idxd_cdev_open()
297 fdev->parent = cdev_dev(idxd_cdev); in idxd_cdev_open()
298 fdev->bus = &dsa_bus_type; in idxd_cdev_open()
299 fdev->type = &idxd_cdev_file_type; in idxd_cdev_open()
301 rc = dev_set_name(fdev, "file%d", ctx->id); in idxd_cdev_open()
307 rc = device_add(fdev); in idxd_cdev_open()
319 put_device(fdev); in idxd_cdev_open()
/openbmc/linux/include/linux/
H A Darm_ffa.h132 static inline void ffa_dev_set_drvdata(struct ffa_device *fdev, void *data) in ffa_dev_set_drvdata() argument
134 dev_set_drvdata(&fdev->dev, data); in ffa_dev_set_drvdata()
137 static inline void *ffa_dev_get_drvdata(struct ffa_device *fdev) in ffa_dev_get_drvdata() argument
139 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,
/openbmc/linux/drivers/misc/
H A Dfastrpc.c2226 struct fastrpc_device *fdev; in fastrpc_device_register() local
2229 fdev = devm_kzalloc(dev, sizeof(*fdev), GFP_KERNEL); in fastrpc_device_register()
2230 if (!fdev) in fastrpc_device_register()
2233 fdev->secure = is_secured; in fastrpc_device_register()
2234 fdev->cctx = cctx; in fastrpc_device_register()
2235 fdev->miscdev.minor = MISC_DYNAMIC_MINOR; in fastrpc_device_register()
2236 fdev->miscdev.fops = &fastrpc_fops; in fastrpc_device_register()
2239 if (!fdev->miscdev.name) in fastrpc_device_register()
2242 err = misc_register(&fdev->miscdev); in fastrpc_device_register()
2245 cctx->secure_fdevice = fdev; in fastrpc_device_register()
[all …]
/openbmc/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()

12