| /linux/drivers/net/ethernet/fungible/funcore/ |
| H A D | fun_dev.c | 43 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 D | fun_dev.h | 33 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 …]
|
| /linux/drivers/dma/ |
| H A D | st_fdma.c | 35 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 71 dev_dbg(fdev->dev, "put dreq_line:%#x\n", fchan->dreq_line); in st_fdma_dreq_put() 72 clear_bit(fchan->dreq_line, &fdev->dreq_mask); in st_fdma_dreq_put() [all …]
|
| H A D | fsldma.c | 1001 struct fsldma_device *fdev = data; in fsldma_ctrl_irq() local 1007 gsr = (fdev->feature & FSL_DMA_BIG_ENDIAN) ? in_be32(fdev->regs) in fsldma_ctrl_irq() 1008 : in_le32(fdev->regs); in fsldma_ctrl_irq() 1010 dev_dbg(fdev->dev, "IRQ: gsr 0x%.8x\n", gsr); in fsldma_ctrl_irq() 1013 chan = fdev->chan[i]; in fsldma_ctrl_irq() 1018 dev_dbg(fdev->dev, "IRQ: chan %d\n", chan->id); in fsldma_ctrl_irq() 1030 static void fsldma_free_irqs(struct fsldma_device *fdev) in fsldma_free_irqs() argument 1035 if (fdev->irq) { in fsldma_free_irqs() 1036 dev_dbg(fdev->dev, "free per-controller IRQ\n"); in fsldma_free_irqs() 1037 free_irq(fdev->irq, fdev); in fsldma_free_irqs() [all …]
|
| H A D | st_fdma.h | 118 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/net/ethernet/mellanox/mlx5/core/fpga/ |
| H A D | conn.c | 57 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, "Message with %u bytes received successfully\n", in mlx5_fpga_conn_rq_cqe() [all …]
|
| H A 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 …]
|
| H A D | sdk.h | 93 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 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/drivers/gpu/drm/vkms/ |
| H A D | vkms_drv.c | 162 struct faux_device *fdev; in vkms_create() local 167 fdev = faux_device_create(dev_name, NULL, NULL); in vkms_create() 168 if (!fdev) in vkms_create() 171 if (!devres_open_group(&fdev->dev, NULL, GFP_KERNEL)) { in vkms_create() 176 vkms_device = devm_drm_dev_alloc(&fdev->dev, &vkms_driver, in vkms_create() 182 vkms_device->faux_dev = fdev; in vkms_create() 216 devres_release_group(&fdev->dev, NULL); in vkms_create() 218 faux_device_destroy(fdev); in vkms_create() 252 struct faux_device *fdev; in vkms_destroy() local 259 fdev = config->dev->faux_dev; in vkms_destroy() [all …]
|
| /linux/drivers/net/ethernet/fungible/funeth/ |
| H A D | funeth_ktls.c | 15 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 D | funeth_rx.c | 601 err = fun_submit_admin_sync_cmd(fp->fdev, &cmd.common, NULL, 0, in fun_rxq_set_bpf() 727 err = fun_sq_create(fp->fdev, FUN_ADMIN_RES_CREATE_FLAG_ALLOCATOR | in fun_rxq_create_dev() 730 0, 0, fp->fdev->kern_end_qid, PAGE_SHIFT, in fun_rxq_create_dev() 735 err = fun_cq_create(fp->fdev, FUN_ADMIN_RES_CREATE_FLAG_ALLOCATOR | in fun_rxq_create_dev() 739 irq->irq_idx, 0, fp->fdev->kern_end_qid, in fun_rxq_create_dev() 755 fun_destroy_sq(fp->fdev, q->hw_sqid); in fun_rxq_create_dev() 780 fun_destroy_sq(fp->fdev, q->hw_sqid); in fun_rxq_free_dev() 781 fun_destroy_cq(fp->fdev, q->hw_cqid); in fun_rxq_free_dev()
|
| H A D | funeth_tx.c | 692 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/cpuidle/ |
| H A D | cpuidle-psci.c | 431 static int psci_cpuidle_probe(struct faux_device *fdev) in psci_cpuidle_probe() argument 438 ret = psci_idle_init_cpu(&fdev->dev, cpu); in psci_cpuidle_probe() 479 struct faux_device *fdev; in psci_idle_init() local 484 fdev = faux_device_create("psci-cpuidle", NULL, &psci_cpuidle_ops); in psci_idle_init() 485 if (!fdev) { in psci_idle_init()
|
| /linux/drivers/dma/idxd/ |
| H A D | cdev.c | 223 struct device *dev, *fdev; in idxd_cdev_open() local 290 fdev = user_ctx_dev(ctx); in idxd_cdev_open() 291 device_initialize(fdev); in idxd_cdev_open() 292 fdev->parent = cdev_dev(idxd_cdev); in idxd_cdev_open() 293 fdev->bus = &dsa_bus_type; in idxd_cdev_open() 294 fdev->type = &idxd_cdev_file_type; in idxd_cdev_open() 296 rc = dev_set_name(fdev, "file%d", ctx->id); in idxd_cdev_open() 302 rc = device_add(fdev); in idxd_cdev_open() 314 put_device(fdev); in idxd_cdev_open()
|
| /linux/sound/soc/ |
| H A D | soc-utils.c | 278 static int snd_soc_dummy_probe(struct faux_device *fdev) in snd_soc_dummy_probe() argument 282 ret = devm_snd_soc_register_component(&fdev->dev, in snd_soc_dummy_probe() 287 ret = devm_snd_soc_register_component(&fdev->dev, &dummy_platform, in snd_soc_dummy_probe()
|
| /linux/include/linux/ |
| H A D | arm_ffa.h | 161 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()
|
| H A D | fsi.h | 81 extern int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type,
|
| /linux/drivers/platform/x86/dell/ |
| H A D | dell-pc.c | 258 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/drivers/misc/ |
| H A D | fastrpc.c | 2245 struct fastrpc_device *fdev; in fastrpc_device_register() local 2248 fdev = devm_kzalloc(dev, sizeof(*fdev), GFP_KERNEL); in fastrpc_device_register() 2249 if (!fdev) in fastrpc_device_register() 2252 fdev->secure = is_secured; in fastrpc_device_register() 2253 fdev->cctx = cctx; in fastrpc_device_register() 2254 fdev->miscdev.minor = MISC_DYNAMIC_MINOR; in fastrpc_device_register() 2255 fdev->miscdev.fops = &fastrpc_fops; in fastrpc_device_register() 2256 fdev->miscdev.name = devm_kasprintf(dev, GFP_KERNEL, "fastrpc-%s%s", in fastrpc_device_register() 2258 if (!fdev->miscdev.name) in fastrpc_device_register() 2261 err = misc_register(&fdev->miscdev); in fastrpc_device_register() [all …]
|
| /linux/drivers/misc/lis3lv02d/ |
| H A D | lis3lv02d.c | 233 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 D | fsi-core.c | 949 int fsi_get_new_minor(struct fsi_device *fdev, enum fsi_dev_type type, in fsi_get_new_minor() argument 952 if (fdev->dev.of_node) { in fsi_get_new_minor() 953 int aid = of_alias_get_id(fdev->dev.of_node, fsi_dev_type_names[type]); in fsi_get_new_minor() 971 return __fsi_get_new_minor(fdev->slave, type, out_dev, out_index); in fsi_get_new_minor()
|
| /linux/fs/f2fs/ |
| H A D | segment.c | 5305 struct f2fs_dev_info *fdev, in check_zone_write_pointer() argument 5317 zone_block = fdev->start_blk + (zone->start >> log_sectors_per_block); in check_zone_write_pointer() 5346 ret = __f2fs_issue_discard_zone(sbi, fdev->bdev, zone_block, in check_zone_write_pointer() 5350 fdev->path, ret); in check_zone_write_pointer() 5366 ret = blkdev_zone_mgmt(fdev->bdev, REQ_OP_ZONE_FINISH, in check_zone_write_pointer() 5370 ret = blkdev_issue_zeroout(fdev->bdev, zone->wp, in check_zone_write_pointer() 5375 fdev->path, ret); in check_zone_write_pointer() 5378 fdev->path, ret); in check_zone_write_pointer() 5527 struct f2fs_dev_info *fdev; member 5537 return check_zone_write_pointer(args->sbi, args->fdev, zone); in check_zone_write_pointer_cb() [all …]
|
| /linux/drivers/acpi/apei/ |
| H A D | einj-core.c | 1040 static int __init einj_probe(struct faux_device *fdev) in einj_probe() argument 1143 static void einj_remove(struct faux_device *fdev) in einj_remove() argument
|
| /linux/drivers/firmware/arm_ffa/ |
| H A D | driver.c | 1578 struct ffa_device *fdev = to_ffa_dev(dev); in ffa_bus_notifier() local 1590 if (uuid_is_null(&fdev->uuid)) in ffa_bus_notifier() 1591 ffa_device_match_uuid(fdev, &id_table->uuid); in ffa_bus_notifier()
|