Home
last modified time | relevance | path

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

12

/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 …]
H A Dfun_queue.c75 int fun_sq_create(struct fun_dev *fdev, u16 flags, u32 sqid, u32 cqid, in fun_sq_create() argument
89 if (sq_depth > fdev->q_depth) in fun_sq_create()
108 rc = fun_submit_admin_sync_cmd(fdev, &cmd.req.common, in fun_sq_create()
114 *dbp = fun_sq_db_addr(fdev, hw_qid); in fun_sq_create()
125 int fun_cq_create(struct fun_dev *fdev, u16 flags, u32 cqid, u32 rqid, in fun_cq_create() argument
138 if (cq_depth > fdev->q_depth) in fun_cq_create()
151 rc = fun_submit_admin_sync_cmd(fdev, &cmd.req.common, 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
178 dma_unmap_page(fdev->dev, rqinfo->dma, PAGE_SIZE, in fun_clean_rq()
[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_obj(*fdev); 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, "Messag in mlx5_fpga_conn_rq_cqe()
413 struct mlx5_fpga_device *fdev = conn->fdev; mlx5_fpga_conn_create_cq() local
499 struct mlx5_fpga_device *fdev = conn->fdev; mlx5_fpga_conn_create_wq() local
513 struct mlx5_fpga_device *fdev = conn->fdev; mlx5_fpga_conn_create_qp() local
667 struct mlx5_fpga_device *fdev = conn->fdev; mlx5_fpga_conn_init_qp() local
693 struct mlx5_fpga_device *fdev = conn->fdev; mlx5_fpga_conn_rtr_qp() local
727 struct mlx5_fpga_device *fdev = conn->fdev; mlx5_fpga_conn_rts_qp() local
753 struct mlx5_fpga_device *fdev = conn->fdev; mlx5_fpga_conn_connect() local
804 mlx5_fpga_conn_create(struct mlx5_fpga_device * fdev,struct mlx5_fpga_conn_attr * attr,enum mlx5_ifc_fpga_qp_type qp_type) mlx5_fpga_conn_create() argument
943 mlx5_fpga_conn_device_init(struct mlx5_fpga_device * fdev) mlx5_fpga_conn_device_init() argument
989 mlx5_fpga_conn_device_cleanup(struct mlx5_fpga_device * fdev) mlx5_fpga_conn_device_cleanup() argument
[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.c35 struct st_fdma_dev *fdev = fchan->fdev; in st_fdma_dreq_get() local
46 if (fdev->dreq_mask == ~0L) { in st_fdma_dreq_get()
47 dev_err(fdev->dev, "No req lines available\n"); in st_fdma_dreq_get()
52 dev_err(fdev->dev, "Invalid or used req line\n"); in st_fdma_dreq_get()
59 } while (test_and_set_bit(dreq_line, &fdev->dreq_mask)); in st_fdma_dreq_get()
61 dev_dbg(fdev->dev, "get dreq_line:%d mask:%#lx\n", in st_fdma_dreq_get()
62 dreq_line, fdev->dreq_mask); in st_fdma_dreq_get()
69 struct st_fdma_dev *fdev = fchan->fdev; in st_fdma_dreq_put() local
103 struct st_fdma_dev *fdev = fchan->fdev; st_fdma_ch_sta_update() local
128 struct st_fdma_dev *fdev = dev_id; st_fdma_irq_handler() local
170 struct st_fdma_dev *fdev = ofdma->of_dma_data; st_fdma_of_xlate() local
353 struct st_fdma_dev *fdev = fchan->fdev; config_reqctrl() local
715 st_fdma_parse_dt(struct platform_device * pdev,const struct st_fdma_driverdata * drvdata,struct st_fdma_dev * fdev) st_fdma_parse_dt() argument
728 st_fdma_free(struct st_fdma_dev * fdev) st_fdma_free() argument
742 struct st_fdma_dev *fdev; st_fdma_probe() local
848 struct st_fdma_dev *fdev = platform_get_drvdata(pdev); st_fdma_remove() local
[all...]
H A Dfsldma.c1003 struct fsldma_device *fdev = data; in fsldma_ctrl_irq()
1009 gsr = (fdev->feature & FSL_DMA_BIG_ENDIAN) ? in_be32(fdev->regs) in fsldma_ctrl_irq()
1010 : in_le32(fdev->regs); in fsldma_ctrl_irq()
1012 dev_dbg(fdev->dev, "IRQ: gsr 0x%.8x\n", gsr); in fsldma_ctrl_irq()
1015 chan = fdev->chan[i]; in fsldma_ctrl_irq()
1020 dev_dbg(fdev->dev, "IRQ: chan %d\n", chan->id); in fsldma_ctrl_irq()
1032 static void fsldma_free_irqs(struct fsldma_device *fdev) in fsldma_free_irqs()
1037 if (fdev->irq) { in fsldma_free_irqs()
1038 dev_dbg(fdev in fsldma_free_irqs()
1001 struct fsldma_device *fdev = data; fsldma_ctrl_irq() local
1030 fsldma_free_irqs(struct fsldma_device * fdev) fsldma_free_irqs() argument
1050 fsldma_request_irqs(struct fsldma_device * fdev) fsldma_request_irqs() argument
1106 fsl_dma_chan_probe(struct fsldma_device * fdev,struct device_node * node,u32 feature,const char * compatible) fsl_dma_chan_probe() argument
1216 struct fsldma_device *fdev; fsldma_of_probe() local
1313 struct fsldma_device *fdev; fsldma_of_remove() local
1334 struct fsldma_device *fdev = dev_get_drvdata(dev); fsldma_suspend_late() local
1365 struct fsldma_device *fdev = dev_get_drvdata(dev); fsldma_resume_early() local
[all...]
/linux/drivers/gpu/drm/vgem/
H A Dvgem_drv.c130 struct faux_device *fdev; in vgem_init() local
132 fdev = faux_device_create("vgem", NULL, NULL); in vgem_init()
133 if (!fdev) in vgem_init()
136 if (!devres_open_group(&fdev->dev, NULL, GFP_KERNEL)) { in vgem_init()
141 dma_coerce_mask_and_coherent(&fdev->dev, in vgem_init()
144 vgem_device = devm_drm_dev_alloc(&fdev->dev, &vgem_driver, in vgem_init()
150 vgem_device->faux_dev = fdev; in vgem_init()
160 devres_release_group(&fdev->dev, NULL); in vgem_init()
162 faux_device_destroy(fdev); in vgem_init()
168 struct faux_device *fdev = vgem_device->faux_dev; in vgem_exit() local
[all …]
/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_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()
/linux/drivers/virt/coco/tdx-host/
H A Dtdx-host.c205 static int tdx_host_probe(struct faux_device *fdev) in tdx_host_probe() argument
207 return seamldr_init(&fdev->dev); in tdx_host_probe()
214 static struct faux_device *fdev; variable
221 fdev = faux_device_create_with_groups(KBUILD_MODNAME, NULL, in tdx_host_init()
224 if (!fdev) in tdx_host_init()
233 faux_device_destroy(fdev); in tdx_host_exit()
/linux/sound/hda/codecs/side-codecs/
H A Dcirrus_scodec_test.c99 static int cirrus_scodec_test_gpio_probe(struct faux_device *fdev) in cirrus_scodec_test_gpio_probe() argument
104 gpio_priv = devm_kzalloc_obj(&fdev->dev, *gpio_priv); in cirrus_scodec_test_gpio_probe()
108 ret = device_add_software_node(&fdev->dev, &cirrus_scodec_test_gpio_swnode); in cirrus_scodec_test_gpio_probe()
112 ret = devm_add_action_or_reset(&fdev->dev, device_remove_software_node_wrapper, in cirrus_scodec_test_gpio_probe()
113 &fdev->dev); in cirrus_scodec_test_gpio_probe()
119 gpio_priv->chip.parent = &fdev->dev; in cirrus_scodec_test_gpio_probe()
120 ret = devm_gpiochip_add_data(&fdev->dev, &gpio_priv->chip, gpio_priv); in cirrus_scodec_test_gpio_probe()
122 return dev_err_probe(&fdev->dev, ret, "Failed to add gpiochip\n"); in cirrus_scodec_test_gpio_probe()
124 dev_set_drvdata(&fdev->dev, gpio_priv); in cirrus_scodec_test_gpio_probe()
/linux/drivers/dma/idxd/
H A Dcdev.c219 struct device *dev, *fdev; in idxd_cdev_open() local
286 fdev = user_ctx_dev(ctx); in idxd_cdev_open()
287 device_initialize(fdev); in idxd_cdev_open()
288 fdev->parent = cdev_dev(idxd_cdev); in idxd_cdev_open()
289 fdev->bus = &dsa_bus_type; in idxd_cdev_open()
290 fdev->type = &idxd_cdev_file_type; in idxd_cdev_open()
293 rc = dev_set_name(fdev, "file%d", ctx->id); in idxd_cdev_open()
299 rc = device_add(fdev); in idxd_cdev_open()
311 put_device(fdev); in idxd_cdev_open()
/linux/sound/soc/
H A Dsoc-utils.c272 static int snd_soc_dummy_probe(struct faux_device *fdev) in snd_soc_dlc_is_dummy()
276 ret = devm_snd_soc_register_component(&fdev->dev,
281 ret = devm_snd_soc_register_component(&fdev->dev, &dummy_platform, in snd_soc_dummy_probe()
278 snd_soc_dummy_probe(struct faux_device * fdev) snd_soc_dummy_probe() argument
/linux/include/linux/
H A Darm_ffa.h161 static inline void ffa_dev_set_drvdata(struct ffa_device *fdev, void *data) in ffa_dev_set_drvdata() argument
163 dev_set_drvdata(&fdev->dev, data); in ffa_dev_set_drvdata()
166 static inline void *ffa_dev_get_drvdata(struct ffa_device *fdev) in ffa_dev_get_drvdata() argument
168 return dev_get_drvdata(&fdev->dev); in ffa_dev_get_drvdata()
/linux/drivers/platform/x86/dell/
H A Ddell-pc.c258 static int dell_pc_faux_probe(struct faux_device *fdev) in dell_pc_faux_probe() argument
270 ppdev = devm_platform_profile_register(&fdev->dev, "dell-pc", NULL, in dell_pc_faux_probe()
/linux/fs/xfs/
H A Dxfs_healthmon.c579 enum xfs_device fdev) in media_error_domain() argument
581 switch (fdev) { in media_error_domain()
598 enum xfs_device fdev, in xfs_healthmon_report_media() argument
604 .domain = media_error_domain(fdev), in xfs_healthmon_report_media()
613 trace_xfs_healthmon_report_media(hm, fdev, &event); in xfs_healthmon_report_media()
H A Dxfs_healthmon.h174 void xfs_healthmon_report_media(struct xfs_mount *mp, enum xfs_device fdev,
/linux/drivers/misc/
H A Dfastrpc.c2427 struct fastrpc_device *fdev; in fastrpc_cb_remove()
2430 fdev = devm_kzalloc_obj(dev, *fdev); in fastrpc_cb_remove()
2431 if (!fdev) in fastrpc_cb_remove()
2434 fdev->secure = is_secured; in fastrpc_cb_remove()
2435 fdev->cctx = cctx; in fastrpc_cb_remove()
2436 fdev->miscdev.minor = MISC_DYNAMIC_MINOR; in fastrpc_cb_remove()
2437 fdev->miscdev.fops = &fastrpc_fops; in fastrpc_cb_remove()
2438 fdev->miscdev.name = devm_kasprintf(dev, GFP_KERNEL, "fastrpc-%s%s",
2440 if (!fdev
2457 struct fastrpc_device *fdev; fastrpc_device_register() local
[all...]
/linux/drivers/misc/lis3lv02d/
H A Dlis3lv02d.c233 dev_err(&lis3->fdev->dev, "Error unknown odrs-index: %d\n", odr_idx); in lis3lv02d_get_pwron_wait()
694 input_dev->dev.parent = &lis3->fdev->dev; in lis3lv02d_joystick_enable()
865 lis3->fdev = faux_device_create_with_groups(DRIVER_NAME, NULL, NULL, lis3lv02d_groups); in lis3lv02d_add_fs()
866 if (!lis3->fdev) in lis3lv02d_add_fs()
869 faux_device_set_drvdata(lis3->fdev, lis3); in lis3lv02d_add_fs()
875 faux_device_destroy(lis3->fdev); in lis3lv02d_remove_fs()
/linux/drivers/fsi/
H A Dfsi-core.c1004 int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type, in fsi_get_new_minor() argument
1007 if (fdev->dev.of_node) { in fsi_get_new_minor()
1008 int aid = of_alias_get_id(fdev->dev.of_node, fsi_dev_type_names[type]); in fsi_get_new_minor()
1026 return __fsi_get_new_minor(fdev->slave, type, out_dev, out_index); in fsi_get_new_minor()

12