| /drivers/net/ethernet/fungible/funcore/ |
| A D | fun_dev.c | 102 writel(fdev->cc_reg, fdev->bar + NVME_REG_CC); in fun_update_cc_enable() 177 struct fun_dev *fdev = funq->fdev; in fun_complete_admin_cmd() local 185 fdev->adminq_cb(fdev, entry); in fun_complete_admin_cmd() 247 fdev->admin_q = fun_alloc_queue(fdev, 0, &qreq); in fun_enable_admin_queue() 588 fdev->kern_end_qid = fdev->max_qid + 1; in fun_get_dev_limits() 625 fdev->irqs_avail = fdev->num_irqs - 1; in fun_alloc_irq_mgr() 711 fdev->cap_reg = readq(fdev->bar + NVME_REG_CAP); in sanitize_dev() 712 fdev->cc_reg = readl(fdev->bar + NVME_REG_CC); in sanitize_dev() 783 fdev->q_depth = NVME_CAP_MQES(fdev->cap_reg) + 1; in fun_dev_enable() 785 fdev->dbs = fdev->bar + NVME_REG_DBS; in fun_dev_enable() [all …]
|
| 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); 106 return &fdev->dbs[db_index * fdev->db_stride]; in fun_db_addr() 115 return fun_db_addr(fdev, sqid * 2); in fun_sq_db_addr() 121 return fun_db_addr(fdev, cqid * 2 + 1); in fun_cq_db_addr() 125 int fun_res_destroy(struct fun_dev *fdev, enum fun_admin_op res, 133 int fun_submit_admin_sync_cmd(struct fun_dev *fdev, 137 int fun_dev_enable(struct fun_dev *fdev, struct pci_dev *pdev, 139 void fun_dev_disable(struct fun_dev *fdev); 141 int fun_reserve_irqs(struct fun_dev *fdev, unsigned int nirqs, [all …]
|
| A D | fun_queue.c | 89 if (sq_depth > fdev->q_depth) in fun_sq_create() 114 *dbp = fun_sq_db_addr(fdev, hw_qid); in fun_sq_create() 138 if (cq_depth > fdev->q_depth) in fun_cq_create() 157 *dbp = fun_cq_db_addr(fdev, hw_qid); in fun_cq_create() 171 struct fun_dev *fdev = funq->fdev; in fun_clean_rq() local 188 struct device *dev = funq->fdev->dev; in fun_fill_rq() 217 struct device *dev = funq->fdev->dev; in fun_rq_update_pos() 386 struct device *dev = funq->fdev->dev; in fun_free_queue() 413 funq->fdev = fdev; in fun_alloc_queue() 474 funq->sq_db = fun_sq_db_addr(fdev, 0); in fun_alloc_queue() [all …]
|
| A D | fun_queue.h | 25 struct fun_dev *fdev; member 132 int fun_sq_create(struct fun_dev *fdev, u16 flags, u32 sqid, u32 cqid, 137 int fun_cq_create(struct fun_dev *fdev, u16 flags, u32 cqid, u32 rqid, 149 #define fun_destroy_sq(fdev, sqid) \ argument 150 fun_res_destroy((fdev), FUN_ADMIN_OP_EPSQ, 0, (sqid)) 151 #define fun_destroy_cq(fdev, cqid) \ argument 152 fun_res_destroy((fdev), FUN_ADMIN_OP_EPCQ, 0, (cqid)) 154 struct fun_queue *fun_alloc_queue(struct fun_dev *fdev, int qid,
|
| /drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
| A D | core.c | 62 fdev = kzalloc(sizeof(*fdev), GFP_KERNEL); in mlx5_fpga_device_alloc() 63 if (!fdev) in mlx5_fpga_device_alloc() 68 return fdev; in mlx5_fpga_device_alloc() 185 if (!fdev) in mlx5_fpga_device_start() 224 mlx5_eq_notifier_register(fdev->mdev, &fdev->fpga_err_nb); in mlx5_fpga_device_start() 225 mlx5_eq_notifier_register(fdev->mdev, &fdev->fpga_qp_err_nb); in mlx5_fpga_device_start() 243 mlx5_eq_notifier_unregister(fdev->mdev, &fdev->fpga_err_nb); in mlx5_fpga_device_start() 265 if (!fdev) in mlx5_fpga_init() 281 if (!fdev) in mlx5_fpga_device_stop() 303 mlx5_eq_notifier_unregister(fdev->mdev, &fdev->fpga_err_nb); in mlx5_fpga_device_stop() [all …]
|
| A D | conn.c | 413 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 D | sdk.c | 41 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 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);
|
| 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,
|
| /drivers/dma/ |
| A D | st_fdma.c | 35 struct st_fdma_dev *fdev = fchan->fdev; in st_fdma_dreq_get() local 69 struct st_fdma_dev *fdev = fchan->fdev; in st_fdma_dreq_put() local 103 struct st_fdma_dev *fdev = fchan->fdev; in st_fdma_ch_sta_update() local 353 struct st_fdma_dev *fdev = fchan->fdev; in config_reqctrl() local 749 fdev = devm_kzalloc(&pdev->dev, sizeof(*fdev), GFP_KERNEL); in st_fdma_probe() 750 if (!fdev) in st_fdma_probe() 759 fdev->chans = devm_kcalloc(&pdev->dev, fdev->nr_channels, in st_fdma_probe() 761 if (!fdev->chans) in st_fdma_probe() 779 fdev->slim_rproc = st_slim_rproc_alloc(pdev, fdev->fw_name); in st_fdma_probe() 791 fchan->fdev = fdev; in st_fdma_probe() [all …]
|
| A D | fsldma.c | 1007 gsr = (fdev->feature & FSL_DMA_BIG_ENDIAN) ? in_be32(fdev->regs) in fsldma_ctrl_irq() 1035 if (fdev->irq) { in fsldma_free_irqs() 1037 free_irq(fdev->irq, fdev); in fsldma_free_irqs() 1057 if (fdev->irq) { in fsldma_request_irqs() 1135 if (!fdev->feature) in fsl_dma_chan_probe() 1221 fdev = kzalloc(sizeof(*fdev), GFP_KERNEL); in fsldma_of_probe() 1222 if (!fdev) { in fsldma_of_probe() 1230 fdev->addr_bits = (long)device_get_match_data(fdev->dev); in fsldma_of_probe() 1234 if (!fdev->regs) { in fsldma_of_probe() 1306 kfree(fdev); in fsldma_of_probe() [all …]
|
| 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 \
|
| /drivers/gpu/drm/vgem/ |
| A D | vgem_drv.c | 130 struct faux_device *fdev; in vgem_init() local 132 fdev = faux_device_create("vgem", NULL, NULL); in vgem_init() 133 if (!fdev) in vgem_init() 136 if (!devres_open_group(&fdev->dev, NULL, GFP_KERNEL)) { in vgem_init() 141 dma_coerce_mask_and_coherent(&fdev->dev, in vgem_init() 150 vgem_device->faux_dev = fdev; in vgem_init() 160 devres_release_group(&fdev->dev, NULL); in vgem_init() 162 faux_device_destroy(fdev); in vgem_init() 168 struct faux_device *fdev = vgem_device->faux_dev; in vgem_exit() local 171 devres_release_group(&fdev->dev, NULL); in vgem_exit() [all …]
|
| /drivers/gpu/drm/vkms/ |
| A D | vkms_drv.c | 152 struct faux_device *fdev; in vkms_create() local 157 fdev = faux_device_create(dev_name, NULL, NULL); in vkms_create() 158 if (!fdev) in vkms_create() 161 if (!devres_open_group(&fdev->dev, NULL, GFP_KERNEL)) { in vkms_create() 172 vkms_device->faux_dev = fdev; in vkms_create() 206 devres_release_group(&fdev->dev, NULL); in vkms_create() 208 faux_device_destroy(fdev); in vkms_create() 234 struct faux_device *fdev; in vkms_destroy() local 241 fdev = config->dev->faux_dev; in vkms_destroy() 245 devres_release_group(&fdev->dev, NULL); in vkms_destroy() [all …]
|
| /drivers/net/ethernet/fungible/funeth/ |
| A D | funeth_main.c | 108 dev_dbg(fp->fdev->dev, in fun_port_read_cmds() 1218 struct fun_dev *fdev = fp->fdev; in fun_set_vf_mac() local 1246 struct fun_dev *fdev = fp->fdev; in fun_set_vf_vlan() local 1280 struct fun_dev *fdev = fp->fdev; in fun_set_vf_rate() local 1709 struct fun_dev *fdev = &ed->fdev; in fun_create_netdev() local 1729 fp->fdev = fdev; in fun_create_netdev() 2010 struct fun_dev *fdev; in funeth_probe() local 2022 fdev = &ed->fdev; in funeth_probe() 2038 fun_dev_disable(fdev); in funeth_probe() 2059 fun_serv_stop(fdev); in funeth_remove() [all …]
|
| 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()
|
| 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
|
| 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()
|
| 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()
|
| /drivers/regulator/ |
| A D | dummy.c | 40 static int dummy_regulator_probe(struct faux_device *fdev) in dummy_regulator_probe() argument 45 config.dev = &fdev->dev; in dummy_regulator_probe() 48 dummy_regulator_rdev = devm_regulator_register(&fdev->dev, &dummy_desc, in dummy_regulator_probe()
|
| /drivers/net/phy/ |
| A D | fixed_phy.c | 43 static struct faux_device *fdev; variable 320 fdev = faux_device_create("Fixed MDIO bus", NULL, NULL); in fixed_mdio_bus_init() 321 if (!fdev) in fixed_mdio_bus_init() 333 fmb->mii_bus->parent = &fdev->dev; in fixed_mdio_bus_init() 347 faux_device_destroy(fdev); in fixed_mdio_bus_init() 359 faux_device_destroy(fdev); in fixed_mdio_bus_exit()
|
| /drivers/dma/idxd/ |
| 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()
|
| /drivers/cpuidle/ |
| 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()
|
| /drivers/fpga/ |
| A D | dfl.c | 868 struct platform_device *fdev; in feature_dev_register() local 872 fdev = platform_device_alloc(fdata->pdev_name, fdata->pdev_id); in feature_dev_register() 873 if (!fdev) in feature_dev_register() 876 fdata->dev = fdev; in feature_dev_register() 878 fdev->dev.parent = &fdata->dfl_cdev->region->dev; in feature_dev_register() 879 fdev->dev.devt = dfl_get_devt(dfl_devs[fdata->type].devt_type, fdev->id); in feature_dev_register() 882 feature->dev = fdev; in feature_dev_register() 884 ret = platform_device_add_resources(fdev, fdata->resources, in feature_dev_register() 890 ret = platform_device_add_data(fdev, &pdata, sizeof(pdata)); in feature_dev_register() 894 ret = platform_device_add(fdev); in feature_dev_register() [all …]
|
| /drivers/platform/x86/dell/ |
| 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()
|