/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | core.c | 60 struct mlx5_fpga_device *fdev = NULL; 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() 98 static int mlx5_fpga_device_load_check(struct mlx5_fpga_device *fdev) in mlx5_fpga_device_load_check() argument 103 err = mlx5_fpga_query(fdev->mdev, &query); in mlx5_fpga_device_load_check() 105 mlx5_fpga_err(fdev, "Failed to query status: %d\n", err); in mlx5_fpga_device_load_check() 109 fdev->last_admin_image = query.admin_image; in mlx5_fpga_device_load_check() [all …]
|
D | conn.c | 57 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, NULL); 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 …]
|
D | sdk.c | 41 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 …]
|
D | ipsec.c | 94 struct mlx5_fpga_device *fdev; member 135 struct mlx5_fpga_device *fdev, in mlx5_fpga_ipsec_send_complete() argument 144 mlx5_fpga_warn(fdev, "IPSec command send failed with status %u\n", in mlx5_fpga_ipsec_send_complete() 172 struct mlx5_fpga_device *fdev = cb_arg; in mlx5_fpga_ipsec_recv() local 176 mlx5_fpga_warn(fdev, "Short receive from FPGA IPSec: %u < %zu bytes\n", in mlx5_fpga_ipsec_recv() 181 mlx5_fpga_dbg(fdev, "mlx5_ipsec recv_cb syndrome %08x\n", in mlx5_fpga_ipsec_recv() 184 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv() 185 context = list_first_entry_or_null(&fdev->ipsec->pending_cmds, in mlx5_fpga_ipsec_recv() 190 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv() 193 mlx5_fpga_warn(fdev, "Received IPSec offload response without pending command request\n"); in mlx5_fpga_ipsec_recv() [all …]
|
D | tls.c | 44 (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 …]
|
D | sdk.h | 92 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);
|
D | conn.h | 45 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-v4.19/drivers/dma/ |
D | st_fdma.c | 37 struct st_fdma_dev *fdev = fchan->fdev; in st_fdma_dreq_get() local 48 if (fdev->dreq_mask == ~0L) { in st_fdma_dreq_get() 49 dev_err(fdev->dev, "No req lines available\n"); in st_fdma_dreq_get() 54 dev_err(fdev->dev, "Invalid or used req line\n"); in st_fdma_dreq_get() 61 } while (test_and_set_bit(dreq_line, &fdev->dreq_mask)); in st_fdma_dreq_get() 63 dev_dbg(fdev->dev, "get dreq_line:%d mask:%#lx\n", in st_fdma_dreq_get() 64 dreq_line, fdev->dreq_mask); in st_fdma_dreq_get() 71 struct st_fdma_dev *fdev = fchan->fdev; in st_fdma_dreq_put() local 73 dev_dbg(fdev->dev, "put dreq_line:%#x\n", fchan->dreq_line); in st_fdma_dreq_put() 74 clear_bit(fchan->dreq_line, &fdev->dreq_mask); in st_fdma_dreq_put() [all …]
|
D | fsldma.c | 1005 struct fsldma_device *fdev = data; in fsldma_ctrl_irq() local 1011 gsr = (fdev->feature & FSL_DMA_BIG_ENDIAN) ? in_be32(fdev->regs) in fsldma_ctrl_irq() 1012 : in_le32(fdev->regs); in fsldma_ctrl_irq() 1014 dev_dbg(fdev->dev, "IRQ: gsr 0x%.8x\n", gsr); in fsldma_ctrl_irq() 1017 chan = fdev->chan[i]; in fsldma_ctrl_irq() 1022 dev_dbg(fdev->dev, "IRQ: chan %d\n", chan->id); in fsldma_ctrl_irq() 1034 static void fsldma_free_irqs(struct fsldma_device *fdev) in fsldma_free_irqs() argument 1039 if (fdev->irq) { in fsldma_free_irqs() 1040 dev_dbg(fdev->dev, "free per-controller IRQ\n"); in fsldma_free_irqs() 1041 free_irq(fdev->irq, fdev); in fsldma_free_irqs() [all …]
|
D | st_fdma.h | 122 struct st_fdma_dev *fdev; member 170 #define fdma_read(fdev, name) \ argument 171 readl((fdev)->slim_rproc->peri + name) 173 #define fdma_write(fdev, val, name) \ argument 174 writel((val), (fdev)->slim_rproc->peri + name) 189 readl((fchan)->fdev->slim_rproc->mem[ST_SLIM_DMEM].cpu_addr \ 194 writel((val), (fchan)->fdev->slim_rproc->mem[ST_SLIM_DMEM].cpu_addr \ 201 writel((val), (fchan)->fdev->slim_rproc->mem[ST_SLIM_DMEM].cpu_addr \ 211 readl((fchan)->fdev->slim_rproc->mem[ST_SLIM_DMEM].cpu_addr \ 216 writel((val), (fchan)->fdev->slim_rproc->mem[ST_SLIM_DMEM].cpu_addr \
|
/Linux-v4.19/drivers/fmc/ |
D | fmc-match.c | 25 struct fmc_device *fdev = to_fmc_device(dev); in fmc_match() local 32 dev_warn(&fdev->dev, "Driver has no ID: matches all\n"); in fmc_match() 35 if (!fdev->id.manufacturer || !fdev->id.product_name) in fmc_match() 39 strcmp(fid->manufacturer, fdev->id.manufacturer)) in fmc_match() 42 strcmp(fid->product_name, fdev->id.product_name)) in fmc_match()
|
D | fmc-core.c | 46 struct fmc_device *fdev = to_fmc_device(dev); in fmc_probe() local 48 return fdrv->probe(fdev); in fmc_probe() 54 struct fmc_device *fdev = to_fmc_device(dev); in fmc_remove() local 56 return fdrv->remove(fdev); in fmc_remove()
|
/Linux-v4.19/drivers/fpga/ |
D | dfl.c | 443 struct platform_device *fdev = binfo->feature_dev; in build_info_commit_dev() local 448 if (!fdev) in build_info_commit_dev() 462 pdata->dev = fdev; in build_info_commit_dev() 475 fdev->dev.platform_data = pdata; in build_info_commit_dev() 478 fdev->num_resources = binfo->feature_num; in build_info_commit_dev() 479 fdev->resource = kcalloc(binfo->feature_num, sizeof(*fdev->resource), in build_info_commit_dev() 481 if (!fdev->resource) in build_info_commit_dev() 492 fdev->resource[index++] = finfo->mmio_res; in build_info_commit_dev() 523 struct platform_device *fdev; in build_info_create_dev() local 538 fdev = platform_device_alloc(dfl_devs[type].name, -ENODEV); in build_info_create_dev() [all …]
|
D | dfl-fme-main.c | 134 struct platform_device *fdev = dfl_fpga_inode_to_feature_dev(inode); in fme_open() local 135 struct dfl_feature_platform_data *pdata = dev_get_platdata(&fdev->dev); in fme_open() 145 dev_dbg(&fdev->dev, "Device File Open\n"); in fme_open()
|
D | dfl-afu-main.c | 269 struct platform_device *fdev = dfl_fpga_inode_to_feature_dev(inode); in afu_open() local 273 pdata = dev_get_platdata(&fdev->dev); in afu_open() 281 dev_dbg(&fdev->dev, "Device File Open\n"); in afu_open() 282 filp->private_data = fdev; in afu_open()
|
/Linux-v4.19/include/linux/ |
D | fsi.h | 89 extern int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type,
|
/Linux-v4.19/drivers/fsi/ |
D | fsi-core.c | 951 int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type, in fsi_get_new_minor() argument 954 return __fsi_get_new_minor(fdev->slave, type, out_dev, out_index); in fsi_get_new_minor()
|
/Linux-v4.19/net/bridge/ |
D | br_private.h | 557 struct net_device *dev, struct net_device *fdev, int *idx);
|
/Linux-v4.19/drivers/md/ |
D | raid5.c | 3524 struct r5dev *fdev[2] = { &sh->dev[s->failed_num[0]], in need_this_block() local 3548 if ((s->failed >= 1 && fdev[0]->toread) || in need_this_block() 3549 (s->failed >= 2 && fdev[1]->toread)) in need_this_block() 3576 if (fdev[i]->towrite && in need_this_block() 3577 !test_bit(R5_UPTODATE, &fdev[i]->flags) && in need_this_block() 3578 !test_bit(R5_OVERWRITE, &fdev[i]->flags)) in need_this_block() 3602 !test_bit(R5_UPTODATE, &fdev[i]->flags) && in need_this_block() 3603 !test_bit(R5_OVERWRITE, &fdev[i]->flags)) in need_this_block()
|