/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/net/ethernet/mellanox/mlx5/core/fpga/ |
H A D | core.c | 60 struct mlx5_fpga_device *fdev; 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() 107 static int mlx5_fpga_device_load_check(struct mlx5_fpga_device *fdev) in mlx5_fpga_device_load_check() argument 112 err = mlx5_fpga_query(fdev->mdev, &query); in mlx5_fpga_device_load_check() 114 mlx5_fpga_err(fdev, "Failed to query status: %d\n", err); in mlx5_fpga_device_load_check() 118 fdev->last_admin_image = query.admin_image; in mlx5_fpga_device_load_check() [all …]
|
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/dma/ |
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/fungible/funeth/ |
H A D | funeth_main.c | 66 return fun_submit_admin_sync_cmd(fp->fdev, &cmd.req.common, in fun_port_write_cmds() 101 rc = fun_submit_admin_sync_cmd(fp->fdev, &cmd.req.common, in fun_port_read_cmds() 108 dev_dbg(fp->fdev->dev, in fun_port_read_cmds() 153 static int fun_adi_write(struct fun_dev *fdev, enum fun_admin_adi_attr attr, in fun_adi_write() argument 165 return fun_submit_admin_sync_cmd(fdev, &req.common, NULL, 0, 0); in fun_adi_write() 216 rc = fun_submit_admin_sync_cmd(fp->fdev, &cmd.req.common, in fun_config_rss() 229 fun_res_destroy(fp->fdev, FUN_ADMIN_OP_RSS, 0, fp->rss_hw_id); in fun_destroy_rss() 262 res = fun_reserve_irqs(fp->fdev, 1, &irq->irq_idx); in fun_alloc_qirq() 278 fun_release_irqs(fp->fdev, 1, &irq->irq_idx); in fun_alloc_qirq() 287 fun_release_irqs(fp->fdev, 1, &irq->irq_idx); in fun_free_qirq() [all …]
|
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.h | 45 struct fun_dev fdev; member 62 return container_of(p, struct fun_ethdev, fdev); in to_fun_ethdev() 83 struct fun_dev *fdev; member
|
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()
|
H A D | funeth_ethtool.c | 451 void __iomem *bar = fp->fdev->bar; in fun_get_regs() 558 unsigned int max_depth = fp->fdev->q_depth; in fun_get_ringparam() 1142 rc = fun_submit_admin_sync_cmd(fp->fdev, &cmd.req.common, &cmd.rsp, in fun_get_port_module_page()
|
/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/drivers/cpuidle/ |
H A D | cpuidle-psci.c | 427 static int psci_cpuidle_probe(struct faux_device *fdev) in psci_cpuidle_probe() argument 434 ret = psci_idle_init_cpu(&fdev->dev, cpu); in psci_cpuidle_probe() 475 struct faux_device *fdev; in psci_idle_init() local 480 fdev = faux_device_create("psci-cpuidle", NULL, &psci_cpuidle_ops); in psci_idle_init() 481 if (!fdev) { in psci_idle_init()
|
/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 | 160 static inline void ffa_dev_set_drvdata(struct ffa_device *fdev, void *data) in ffa_dev_set_drvdata() argument 162 dev_set_drvdata(&fdev->dev, data); in ffa_dev_set_drvdata() 165 static inline void *ffa_dev_get_drvdata(struct ffa_device *fdev) in ffa_dev_get_drvdata() argument 167 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 | 249 static int dell_pc_faux_probe(struct faux_device *fdev) in dell_pc_faux_probe() argument 261 ppdev = devm_platform_profile_register(&fdev->dev, "dell-pc", NULL, in dell_pc_faux_probe()
|
/linux/drivers/misc/ |
H A D | fastrpc.c | 2231 struct fastrpc_device *fdev; in fastrpc_device_register() local 2234 fdev = devm_kzalloc(dev, sizeof(*fdev), GFP_KERNEL); in fastrpc_device_register() 2235 if (!fdev) in fastrpc_device_register() 2238 fdev->secure = is_secured; in fastrpc_device_register() 2239 fdev->cctx = cctx; in fastrpc_device_register() 2240 fdev->miscdev.minor = MISC_DYNAMIC_MINOR; in fastrpc_device_register() 2241 fdev->miscdev.fops = &fastrpc_fops; in fastrpc_device_register() 2242 fdev->miscdev.name = devm_kasprintf(dev, GFP_KERNEL, "fastrpc-%s%s", in fastrpc_device_register() 2244 if (!fdev->miscdev.name) in fastrpc_device_register() 2247 err = misc_register(&fdev->miscdev); in fastrpc_device_register() [all …]
|
/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 | 5262 struct f2fs_dev_info *fdev, in check_zone_write_pointer() argument 5274 zone_block = fdev->start_blk + (zone->start >> log_sectors_per_block); in check_zone_write_pointer() 5303 ret = __f2fs_issue_discard_zone(sbi, fdev->bdev, zone_block, in check_zone_write_pointer() 5307 fdev->path, ret); in check_zone_write_pointer() 5323 ret = blkdev_zone_mgmt(fdev->bdev, REQ_OP_ZONE_FINISH, in check_zone_write_pointer() 5327 ret = blkdev_issue_zeroout(fdev->bdev, zone->wp, in check_zone_write_pointer() 5332 fdev->path, ret); in check_zone_write_pointer() 5335 fdev->path, ret); in check_zone_write_pointer() 5484 struct f2fs_dev_info *fdev; member 5494 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 | 994 static int __init einj_probe(struct faux_device *fdev) in einj_probe() argument 1097 static void einj_remove(struct faux_device *fdev) in einj_remove() argument
|