Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/fpga/
A Dcore.c63 fdev = kzalloc(sizeof(*fdev), GFP_KERNEL); in mlx5_fpga_device_alloc()
64 if (!fdev) in mlx5_fpga_device_alloc()
69 return fdev; in mlx5_fpga_device_alloc()
186 if (!fdev) in mlx5_fpga_device_start()
225 mlx5_eq_notifier_register(fdev->mdev, &fdev->fpga_err_nb); in mlx5_fpga_device_start()
226 mlx5_eq_notifier_register(fdev->mdev, &fdev->fpga_qp_err_nb); in mlx5_fpga_device_start()
244 mlx5_eq_notifier_unregister(fdev->mdev, &fdev->fpga_err_nb); in mlx5_fpga_device_start()
266 if (!fdev) in mlx5_fpga_init()
282 if (!fdev) in mlx5_fpga_device_stop()
304 mlx5_eq_notifier_unregister(fdev->mdev, &fdev->fpga_err_nb); in mlx5_fpga_device_stop()
[all …]
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 …]
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 …]
A Dipsec.c227 if (!fdev || !fdev->ipsec) in mlx5_fpga_ipsec_cmd_exec()
238 context->dev = fdev; in mlx5_fpga_ipsec_cmd_exec()
339 if (!fdev->ipsec) in mlx5_fpga_ipsec_device_caps()
366 if (!fdev || !fdev->ipsec) in mlx5_fpga_ipsec_counters_count()
383 if (!fdev || !fdev->ipsec) in mlx5_fpga_ipsec_counters_read()
1276 fdev->ipsec = kzalloc(sizeof(*fdev->ipsec), GFP_KERNEL); in mlx5_fpga_ipsec_init()
1277 if (!fdev->ipsec) in mlx5_fpga_ipsec_init()
1280 fdev->ipsec->fdev = fdev; in mlx5_fpga_ipsec_init()
1282 err = mlx5_fpga_get_sbu_caps(fdev, sizeof(fdev->ipsec->caps), in mlx5_fpga_ipsec_init()
1332 kfree(fdev->ipsec); in mlx5_fpga_ipsec_init()
[all …]
A Dtls.c82 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
164 struct mlx5_fpga_device *fdev, in mlx_tls_kfree_complete() argument
172 struct mlx5_fpga_device *fdev, in mlx5_fpga_tls_teardown_completion() argument
180 mlx5_fpga_err(fdev, in mlx5_fpga_tls_teardown_completion()
337 mlx5_fpga_tls_del_flow(fdev->mdev, in mlx5_fpga_tls_setup_completion()
473 init_attr.cb_arg = fdev; in mlx5_fpga_tls_init()
490 fdev->tls = tls; in mlx5_fpga_tls_init()
502 if (!fdev || !fdev->tls) in mlx5_fpga_tls_cleanup()
506 kfree(fdev->tls); in mlx5_fpga_tls_cleanup()
[all …]
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);
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/
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 …]
A Dfsldma.c1006 gsr = (fdev->feature & FSL_DMA_BIG_ENDIAN) ? in_be32(fdev->regs) in fsldma_ctrl_irq()
1034 if (fdev->irq) { in fsldma_free_irqs()
1036 free_irq(fdev->irq, fdev); in fsldma_free_irqs()
1056 if (fdev->irq) { in fsldma_request_irqs()
1134 if (!fdev->feature) in fsl_dma_chan_probe()
1220 fdev = kzalloc(sizeof(*fdev), GFP_KERNEL); in fsldma_of_probe()
1221 if (!fdev) { in fsldma_of_probe()
1231 if (!fdev->regs) { in fsldma_of_probe()
1297 if (fdev->chan[i]) in fsldma_of_probe()
1303 kfree(fdev); in fsldma_of_probe()
[all …]
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 \
/linux/drivers/fpga/
A Ddfl.c765 pdata->dev = fdev; 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()
863 struct platform_device *fdev; in build_info_create_dev() local
873 if (!fdev) in build_info_create_dev()
876 binfo->feature_dev = fdev; in build_info_create_dev()
881 fdev->id = dfl_id_alloc(type, &fdev->dev); in build_info_create_dev()
882 if (fdev->id < 0) in build_info_create_dev()
883 return fdev->id; in build_info_create_dev()
[all …]
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()
A 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()
/linux/include/linux/
A Darm_ffa.h39 static inline void ffa_dev_set_drvdata(struct ffa_device *fdev, void *data) in ffa_dev_set_drvdata() argument
41 fdev->dev.driver_data = data; in ffa_dev_set_drvdata()
A Dfsi.h81 extern int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type,
/linux/drivers/fsi/
A 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()
/linux/fs/f2fs/
A Dsegment.c4818 struct f2fs_dev_info *fdev, in check_zone_write_pointer() argument
4830 wp_block = fdev->start_blk + (zone->wp >> log_sectors_per_block); in check_zone_write_pointer()
4833 zone_block = fdev->start_blk + (zone->start >> log_sectors_per_block); in check_zone_write_pointer()
4889 ret = __f2fs_issue_discard_zone(sbi, fdev->bdev, zone_block, in check_zone_write_pointer()
4893 fdev->path, ret); in check_zone_write_pointer()
5032 struct f2fs_dev_info *fdev; member
5042 return check_zone_write_pointer(args->sbi, args->fdev, zone); in check_zone_write_pointer_cb()
5055 args.fdev = &FDEV(i); in f2fs_check_write_pointer()
/linux/drivers/md/
A Draid5.c3733 struct r5dev *fdev[2] = { &sh->dev[s->failed_num[0]], in need_this_block() local
3758 if ((s->failed >= 1 && fdev[0]->toread) || in need_this_block()
3759 (s->failed >= 2 && fdev[1]->toread)) in need_this_block()
3786 if (fdev[i]->towrite && in need_this_block()
3787 !test_bit(R5_UPTODATE, &fdev[i]->flags) && in need_this_block()
3788 !test_bit(R5_OVERWRITE, &fdev[i]->flags)) in need_this_block()
3797 (fdev[i]->towrite || in need_this_block()
3800 !test_bit(R5_UPTODATE, &fdev[i]->flags)) in need_this_block()
3822 !test_bit(R5_UPTODATE, &fdev[i]->flags) && in need_this_block()
3823 !test_bit(R5_OVERWRITE, &fdev[i]->flags)) in need_this_block()
/linux/net/bridge/
A Dbr_private.h783 struct net_device *dev, struct net_device *fdev, int *idx);

Completed in 77 milliseconds