Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dcore.c61 struct mlx5_fpga_device *fdev = NULL; in mlx5_fpga_device_alloc() local
63 fdev = kzalloc(sizeof(*fdev), GFP_KERNEL); in mlx5_fpga_device_alloc()
64 if (!fdev) in mlx5_fpga_device_alloc()
67 spin_lock_init(&fdev->state_lock); in mlx5_fpga_device_alloc()
68 fdev->state = MLX5_FPGA_STATUS_NONE; in mlx5_fpga_device_alloc()
69 return fdev; in mlx5_fpga_device_alloc()
99 static int mlx5_fpga_device_load_check(struct mlx5_fpga_device *fdev) in mlx5_fpga_device_load_check() argument
104 err = mlx5_fpga_query(fdev->mdev, &query); in mlx5_fpga_device_load_check()
106 mlx5_fpga_err(fdev, "Failed to query status: %d\n", err); in mlx5_fpga_device_load_check()
110 fdev->last_admin_image = query.admin_image; in mlx5_fpga_device_load_check()
[all …]
Dconn.c57 dma_device = &conn->fdev->mdev->pdev->dev; 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 = &conn->fdev->mdev->pdev->dev; in mlx5_fpga_conn_unmap_buf()
118 data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey.key); 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.key); 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 …]
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 …]
Dipsec.c100 struct mlx5_fpga_device *fdev; member
141 struct mlx5_fpga_device *fdev, in mlx5_fpga_ipsec_send_complete() argument
150 mlx5_fpga_warn(fdev, "IPSec command send failed with status %u\n", in mlx5_fpga_ipsec_send_complete()
178 struct mlx5_fpga_device *fdev = cb_arg; in mlx5_fpga_ipsec_recv() local
182 mlx5_fpga_warn(fdev, "Short receive from FPGA IPSec: %u < %zu bytes\n", in mlx5_fpga_ipsec_recv()
187 mlx5_fpga_dbg(fdev, "mlx5_ipsec recv_cb syndrome %08x\n", in mlx5_fpga_ipsec_recv()
190 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv()
191 context = list_first_entry_or_null(&fdev->ipsec->pending_cmds, in mlx5_fpga_ipsec_recv()
196 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv()
199 mlx5_fpga_warn(fdev, "Received IPSec offload response without pending command request\n"); in mlx5_fpga_ipsec_recv()
[all …]
Dtls.c44 (struct mlx5_fpga_conn *conn, struct mlx5_fpga_device *fdev,
69 static void mlx5_fpga_tls_cmd_complete(struct mlx5_fpga_device *fdev, in mlx5_fpga_tls_cmd_complete() argument
72 struct mlx5_fpga_conn *conn = fdev->tls->conn; in mlx5_fpga_tls_cmd_complete()
74 struct mlx5_fpga_tls *tls = fdev->tls; in mlx5_fpga_tls_cmd_complete()
82 ctx->complete(conn, fdev, ctx, resp); in mlx5_fpga_tls_cmd_complete()
86 struct mlx5_fpga_device *fdev, in mlx5_fpga_cmd_send_complete() argument
96 mlx5_fpga_tls_cmd_complete(fdev, NULL); in mlx5_fpga_cmd_send_complete()
99 static void mlx5_fpga_tls_cmd_send(struct mlx5_fpga_device *fdev, in mlx5_fpga_tls_cmd_send() argument
103 struct mlx5_fpga_tls *tls = fdev->tls; in mlx5_fpga_tls_cmd_send()
120 complete(tls->conn, fdev, cmd, NULL); in mlx5_fpga_tls_cmd_send()
[all …]
Dsdk.h92 struct mlx5_fpga_device *fdev,
134 mlx5_fpga_sbu_conn_create(struct mlx5_fpga_device *fdev,
176 int mlx5_fpga_mem_read(struct mlx5_fpga_device *fdev, size_t size, u64 addr,
194 int mlx5_fpga_mem_write(struct mlx5_fpga_device *fdev, size_t size, u64 addr,
210 int mlx5_fpga_get_sbu_caps(struct mlx5_fpga_device *fdev, int size, void *buf);
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-v5.4/drivers/dma/
Dst_fdma.c33 struct st_fdma_dev *fdev = fchan->fdev; in st_fdma_dreq_get() local
44 if (fdev->dreq_mask == ~0L) { in st_fdma_dreq_get()
45 dev_err(fdev->dev, "No req lines available\n"); in st_fdma_dreq_get()
50 dev_err(fdev->dev, "Invalid or used req line\n"); in st_fdma_dreq_get()
57 } while (test_and_set_bit(dreq_line, &fdev->dreq_mask)); in st_fdma_dreq_get()
59 dev_dbg(fdev->dev, "get dreq_line:%d mask:%#lx\n", in st_fdma_dreq_get()
60 dreq_line, fdev->dreq_mask); in st_fdma_dreq_get()
67 struct st_fdma_dev *fdev = fchan->fdev; in st_fdma_dreq_put() local
69 dev_dbg(fdev->dev, "put dreq_line:%#x\n", fchan->dreq_line); in st_fdma_dreq_put()
70 clear_bit(fchan->dreq_line, &fdev->dreq_mask); in st_fdma_dreq_put()
[all …]
Dfsldma.c1000 struct fsldma_device *fdev = data; in fsldma_ctrl_irq() local
1006 gsr = (fdev->feature & FSL_DMA_BIG_ENDIAN) ? in_be32(fdev->regs) in fsldma_ctrl_irq()
1007 : in_le32(fdev->regs); in fsldma_ctrl_irq()
1009 dev_dbg(fdev->dev, "IRQ: gsr 0x%.8x\n", gsr); in fsldma_ctrl_irq()
1012 chan = fdev->chan[i]; in fsldma_ctrl_irq()
1017 dev_dbg(fdev->dev, "IRQ: chan %d\n", chan->id); in fsldma_ctrl_irq()
1029 static void fsldma_free_irqs(struct fsldma_device *fdev) in fsldma_free_irqs() argument
1034 if (fdev->irq) { in fsldma_free_irqs()
1035 dev_dbg(fdev->dev, "free per-controller IRQ\n"); in fsldma_free_irqs()
1036 free_irq(fdev->irq, fdev); in fsldma_free_irqs()
[all …]
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-v5.4/drivers/fpga/
Ddfl.c471 struct platform_device *fdev = binfo->feature_dev; in build_info_commit_dev() local
477 if (!fdev) in build_info_commit_dev()
480 type = feature_dev_id_type(fdev); in build_info_commit_dev()
495 pdata->dev = fdev; in build_info_commit_dev()
511 fdev->dev.platform_data = pdata; in build_info_commit_dev()
514 fdev->num_resources = binfo->feature_num; in build_info_commit_dev()
515 fdev->resource = kcalloc(binfo->feature_num, sizeof(*fdev->resource), in build_info_commit_dev()
517 if (!fdev->resource) in build_info_commit_dev()
528 fdev->resource[index++] = finfo->mmio_res; in build_info_commit_dev()
559 struct platform_device *fdev; in build_info_create_dev() local
[all …]
Ddfl-fme-main.c211 struct platform_device *fdev = dfl_fpga_inode_to_feature_dev(inode); in fme_open() local
212 struct dfl_feature_platform_data *pdata = dev_get_platdata(&fdev->dev); in fme_open()
222 dev_dbg(&fdev->dev, "Device File Open\n"); in fme_open()
Ddfl-afu-main.c556 struct platform_device *fdev = dfl_fpga_inode_to_feature_dev(inode); in afu_open() local
560 pdata = dev_get_platdata(&fdev->dev); in afu_open()
568 dev_dbg(&fdev->dev, "Device File Open\n"); in afu_open()
569 filp->private_data = fdev; in afu_open()
/Linux-v5.4/include/linux/
Dfsi.h81 extern int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type,
/Linux-v5.4/drivers/fsi/
Dfsi-core.c943 int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type, in fsi_get_new_minor() argument
946 return __fsi_get_new_minor(fdev->slave, type, out_dev, out_index); in fsi_get_new_minor()
/Linux-v5.4/drivers/md/
Draid5.c3531 struct r5dev *fdev[2] = { &sh->dev[s->failed_num[0]], in need_this_block() local
3555 if ((s->failed >= 1 && fdev[0]->toread) || in need_this_block()
3556 (s->failed >= 2 && fdev[1]->toread)) in need_this_block()
3583 if (fdev[i]->towrite && in need_this_block()
3584 !test_bit(R5_UPTODATE, &fdev[i]->flags) && in need_this_block()
3585 !test_bit(R5_OVERWRITE, &fdev[i]->flags)) in need_this_block()
3609 !test_bit(R5_UPTODATE, &fdev[i]->flags) && in need_this_block()
3610 !test_bit(R5_OVERWRITE, &fdev[i]->flags)) in need_this_block()
/Linux-v5.4/net/bridge/
Dbr_private.h577 struct net_device *dev, struct net_device *fdev, int *idx);