Home
last modified time | relevance | path

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

/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()
108 static int mlx5_fpga_device_load_check(struct mlx5_fpga_device *fdev) in mlx5_fpga_device_load_check() argument
113 err = mlx5_fpga_query(fdev->mdev, &query); in mlx5_fpga_device_load_check()
115 mlx5_fpga_err(fdev, "Failed to query status: %d\n", err); in mlx5_fpga_device_load_check()
119 fdev->last_admin_image = query.admin_image; in mlx5_fpga_device_load_check()
[all …]
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.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.c101 struct mlx5_fpga_device *fdev; member
144 struct mlx5_fpga_device *fdev, in mlx5_fpga_ipsec_send_complete() argument
153 mlx5_fpga_warn(fdev, "IPSec command send failed with status %u\n", in mlx5_fpga_ipsec_send_complete()
181 struct mlx5_fpga_device *fdev = cb_arg; in mlx5_fpga_ipsec_recv() local
185 mlx5_fpga_warn(fdev, "Short receive from FPGA IPSec: %u < %zu bytes\n", in mlx5_fpga_ipsec_recv()
190 mlx5_fpga_dbg(fdev, "mlx5_ipsec recv_cb syndrome %08x\n", in mlx5_fpga_ipsec_recv()
193 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv()
194 context = list_first_entry_or_null(&fdev->ipsec->pending_cmds, in mlx5_fpga_ipsec_recv()
199 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv()
202 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.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);
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,
/drivers/dma/
Dst_fdma.c34 struct st_fdma_dev *fdev = fchan->fdev; in st_fdma_dreq_get() local
45 if (fdev->dreq_mask == ~0L) { in st_fdma_dreq_get()
46 dev_err(fdev->dev, "No req lines available\n"); in st_fdma_dreq_get()
51 dev_err(fdev->dev, "Invalid or used req line\n"); in st_fdma_dreq_get()
58 } while (test_and_set_bit(dreq_line, &fdev->dreq_mask)); in st_fdma_dreq_get()
60 dev_dbg(fdev->dev, "get dreq_line:%d mask:%#lx\n", in st_fdma_dreq_get()
61 dreq_line, fdev->dreq_mask); in st_fdma_dreq_get()
68 struct st_fdma_dev *fdev = fchan->fdev; in st_fdma_dreq_put() local
70 dev_dbg(fdev->dev, "put dreq_line:%#x\n", fchan->dreq_line); in st_fdma_dreq_put()
71 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 \
/drivers/fpga/
Ddfl.c745 struct platform_device *fdev = binfo->feature_dev; in build_info_commit_dev() local
751 type = feature_dev_id_type(fdev); in build_info_commit_dev()
765 pdata->dev = fdev; in build_info_commit_dev()
781 fdev->dev.platform_data = pdata; in build_info_commit_dev()
784 fdev->num_resources = binfo->feature_num; in build_info_commit_dev()
785 fdev->resource = kcalloc(binfo->feature_num, sizeof(*fdev->resource), in build_info_commit_dev()
787 if (!fdev->resource) in build_info_commit_dev()
797 feature->dev = fdev; in build_info_commit_dev()
817 fdev->resource[res_idx++] = finfo->mmio_res; in build_info_commit_dev()
863 struct platform_device *fdev; in build_info_create_dev() local
[all …]
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()
Ddfl-fme-main.c600 struct platform_device *fdev = dfl_fpga_inode_to_feature_dev(inode); in fme_open() local
601 struct dfl_feature_platform_data *pdata = dev_get_platdata(&fdev->dev); in fme_open()
610 dev_dbg(&fdev->dev, "Device File Opened %d Times\n", in fme_open()
/drivers/fsi/
Dfsi-core.c972 int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type, in fsi_get_new_minor() argument
975 return __fsi_get_new_minor(fdev->slave, type, out_dev, out_index); in fsi_get_new_minor()
/drivers/md/
Draid5.c3731 struct r5dev *fdev[2] = { &sh->dev[s->failed_num[0]], in need_this_block() local
3756 if ((s->failed >= 1 && fdev[0]->toread) || in need_this_block()
3757 (s->failed >= 2 && fdev[1]->toread)) in need_this_block()
3784 if (fdev[i]->towrite && in need_this_block()
3785 !test_bit(R5_UPTODATE, &fdev[i]->flags) && in need_this_block()
3786 !test_bit(R5_OVERWRITE, &fdev[i]->flags)) in need_this_block()
3795 (fdev[i]->towrite || in need_this_block()
3798 !test_bit(R5_UPTODATE, &fdev[i]->flags)) in need_this_block()
3820 !test_bit(R5_UPTODATE, &fdev[i]->flags) && in need_this_block()
3821 !test_bit(R5_OVERWRITE, &fdev[i]->flags)) in need_this_block()