| /freebsd-12.1/sys/dev/mlx5/mlx5_fpga/ |
| H A D | mlx5fpga_core.c | 96 client->create(fdev); in client_context_create() 107 fdev = kzalloc(sizeof(*fdev), GFP_KERNEL); in mlx5_fpga_device_alloc() 108 if (!fdev) in mlx5_fpga_device_alloc() 115 return fdev; in mlx5_fpga_device_alloc() 219 if (!fdev) in mlx5_fpga_device_start() 345 if (!fdev) in mlx5_fpga_init() 348 fdev->mdev = mdev; in mlx5_fpga_init() 349 mdev->fpga = fdev; in mlx5_fpga_init() 370 if (!fdev) in mlx5_fpga_device_stop() 423 if (!fdev) in mlx5_fpga_cleanup() [all …]
|
| H A D | mlx5fpga_sdk.c | 93 mlx5_fpga_dbg(complete->conn->fdev, in mem_complete() 107 if (!fdev->shell_conn) { in mem_transaction() 115 xfer.t.conn = fdev->shell_conn; in mem_transaction() 143 if (!fdev->mdev) in mlx5_fpga_mem_read_i2c() 175 if (!fdev->mdev) in mlx5_fpga_mem_write_i2c() 375 switch (fdev->fdev_state) { in mlx5_fpga_device_reload() 475 switch (fdev->fdev_state) { in mlx5_fpga_flash_select() 491 fdev->last_admin_image = image; in mlx5_fpga_flash_select() 503 switch (fdev->fdev_state) { in mlx5_fpga_connectdisconnect() 531 return &fdev->mdev->pdev->dev; in mlx5_fpga_dev() [all …]
|
| H A D | mlx5fpga_ipsec.c | 185 if (!fdev || !fdev->ipsec) in mlx5_fpga_ipsec_sa_cmd_exec() 248 if (!fdev->ipsec) in mlx5_fpga_ipsec_device_caps() 267 if (!fdev || !fdev->ipsec) in mlx5_fpga_ipsec_counters_count() 284 if (!fdev || !fdev->ipsec) in mlx5_fpga_ipsec_counters_read() 332 fdev->ipsec = kzalloc(sizeof(*fdev->ipsec), GFP_KERNEL); in mlx5_fpga_ipsec_init() 333 if (!fdev->ipsec) in mlx5_fpga_ipsec_init() 336 err = mlx5_fpga_get_sbu_caps(fdev, sizeof(fdev->ipsec->caps), in mlx5_fpga_ipsec_init() 362 kfree(fdev->ipsec); in mlx5_fpga_ipsec_init() 363 fdev->ipsec = NULL; in mlx5_fpga_ipsec_init() 375 kfree(fdev->ipsec); in mlx5_fpga_ipsec_cleanup() [all …]
|
| H A D | mlx5fpga_trans.c | 68 return &fdev->trans->transactions[tid]; in find_tid() 119 free_tid(fdev, trans_priv); in trans_complete() 126 struct mlx5_fpga_device *fdev, in trans_send_complete() argument 201 trans_priv = alloc_tid(conn->fdev); in mlx5_fpga_trans_exec() 240 free_tid(conn->fdev, trans_priv); in mlx5_fpga_trans_exec() 264 trans_priv = find_tid(fdev, tid); in mlx5_fpga_trans_recv() 313 fdev->trans = kzalloc(sizeof(*fdev->trans), GFP_KERNEL); in mlx5_fpga_trans_device_init() 314 if (!fdev->trans) { in mlx5_fpga_trans_device_init() 323 &fdev->trans->free_queue); in mlx5_fpga_trans_device_init() 326 spin_lock_init(&fdev->trans->lock); in mlx5_fpga_trans_device_init() [all …]
|
| H A D | mlx5fpga_conn.c | 429 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_create_cq() local 518 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_create_wq() local 532 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_create_qp() local 675 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_init_qp() local 711 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_rtr_qp() local 756 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_rts_qp() local 793 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_connect() local 859 conn->fdev = fdev; in mlx5_fpga_conn_create() 968 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_destroy() local 1029 mlx5_put_uars_page(fdev->mdev, fdev->conn_res.uar); in mlx5_fpga_conn_device_init() [all …]
|
| H A D | sdk.h | 66 void (*create)(struct mlx5_fpga_device *fdev); 83 void (*remove)(struct mlx5_fpga_device *fdev); 89 void (*destroy)(struct mlx5_fpga_device *fdev); 127 struct mlx5_fpga_device *fdev, 186 int mlx5_fpga_device_reload(struct mlx5_fpga_device *fdev, 200 int mlx5_fpga_flash_select(struct mlx5_fpga_device *fdev, 218 mlx5_fpga_sbu_conn_create(struct mlx5_fpga_device *fdev, 302 u64 mlx5_fpga_ddr_size_get(struct mlx5_fpga_device *fdev); 310 u64 mlx5_fpga_ddr_base_get(struct mlx5_fpga_device *fdev); 346 void mlx5_fpga_device_query(struct mlx5_fpga_device *fdev, [all …]
|
| H A D | mlx5fpga_xfer.c | 79 ddr_base = mlx5_fpga_ddr_base_get(xfer_state->xfer->conn->fdev); in exec_more() 119 …mlx5_fpga_dbg(xfer_state->xfer->conn->fdev, "Starting %zu bytes at %p done; %u started %u inflight… in exec_more() 134 …mlx5_fpga_warn(xfer_state->xfer->conn->fdev, "Transfer failed to start transaction: %d. %u started… in exec_more() 163 …mlx5_fpga_dbg(complete->conn->fdev, "Transaction %zu bytes at %p done, status %u; %u started %u in… in trans_complete() 174 …mlx5_fpga_warn(complete->conn->fdev, "Transaction failed during transfer. %u started %u inflight %… in trans_complete() 197 u64 base = mlx5_fpga_ddr_base_get(xfer->conn->fdev); in mlx5_fpga_xfer_exec() 198 u64 size = mlx5_fpga_ddr_size_get(xfer->conn->fdev); in mlx5_fpga_xfer_exec() 205 mlx5_fpga_warn(xfer->conn->fdev, "Transfer ends at %jx outside of DDR range %jx\n", in mlx5_fpga_xfer_exec() 211 mlx5_fpga_warn(xfer->conn->fdev, "Transfer address %jx not aligned\n", in mlx5_fpga_xfer_exec() 217 mlx5_fpga_warn(xfer->conn->fdev, "Transfer size %zu not aligned\n", in mlx5_fpga_xfer_exec() [all …]
|
| H A D | conn.h | 46 struct mlx5_fpga_device *fdev; member 87 int mlx5_fpga_conn_device_init(struct mlx5_fpga_device *fdev); 88 void mlx5_fpga_conn_device_cleanup(struct mlx5_fpga_device *fdev); 90 mlx5_fpga_conn_create(struct mlx5_fpga_device *fdev,
|
| H A D | trans.h | 61 int mlx5_fpga_trans_device_init(struct mlx5_fpga_device *fdev); 62 void mlx5_fpga_trans_device_cleanup(struct mlx5_fpga_device *fdev);
|
| /freebsd-12.1/sys/dev/mlx5/mlx5_fpga_tools/ |
| H A D | mlx5fpga_tools_main.c | 46 static void mlx5_fpga_tools_create(struct mlx5_fpga_device *fdev); 48 static void mlx5_fpga_tools_remove(struct mlx5_fpga_device *fdev); 49 static void mlx5_fpga_tools_destroy(struct mlx5_fpga_device *fdev); 71 tdev->fdev = fdev; in mlx5_fpga_tools_alloc() 93 static void mlx5_fpga_tools_create(struct mlx5_fpga_device *fdev) in mlx5_fpga_tools_create() argument 97 dev_dbg(mlx5_fpga_dev(fdev), "tools_create\n"); in mlx5_fpga_tools_create() 99 dev = mlx5_fpga_tools_alloc(fdev); in mlx5_fpga_tools_create() 103 mlx5_fpga_client_data_set(fdev, &mlx5_fpga_tools_client, dev); in mlx5_fpga_tools_create() 111 static void mlx5_fpga_tools_remove(struct mlx5_fpga_device *fdev) in mlx5_fpga_tools_remove() argument 119 dev_dbg(mlx5_fpga_dev(fdev), "tools_destroy\n"); in mlx5_fpga_tools_destroy() [all …]
|
| H A D | mlx5fpga_tools_char.c | 79 dev_dbg(mlx5_fpga_dev(tdev->fdev), in mem_read() 100 dev_dbg(mlx5_fpga_dev(tdev->fdev), in mem_write() 201 struct mlx5_fpga_device *fdev; in tools_char_ioctl() local 211 fdev = context->tdev->fdev; in tools_char_ioctl() 212 if (fdev == NULL) in tools_char_ioctl() 219 dev_err(mlx5_fpga_dev(fdev), in tools_char_ioctl() 229 dev_err(mlx5_fpga_dev(fdev), in tools_char_ioctl() 245 dev_err(mlx5_fpga_dev(fdev), in tools_char_ioctl() 258 mlx5_fpga_get_cap(fdev, fpga_cap); in tools_char_ioctl() 273 dev_err(mlx5_fpga_dev(fdev), in tools_char_ioctl() [all …]
|
| H A D | tools.h | 49 struct mlx5_fpga_device *fdev; member
|
| /freebsd-12.1/sys/fs/fuse/ |
| H A D | fuse_vfsops.c | 144 struct cdev *fdev; in fuse_getdevice() local 162 fdev = devvp->v_rdev; in fuse_getdevice() 163 dev_ref(fdev); in fuse_getdevice() 188 dev_rel(fdev); in fuse_getdevice() 200 dev_rel(fdev); in fuse_getdevice() 203 *fdevp = fdev; in fuse_getdevice() 308 struct cdev *fdev; in fuse_vfsop_mount() local 457 dev_rel(fdev); in fuse_vfsop_mount() 468 struct cdev *fdev; in fuse_vfsop_unmount() local 510 fdev = data->fdev; in fuse_vfsop_unmount() [all …]
|
| H A D | fuse_ipc.c | 584 fdata_alloc(struct cdev *fdev, struct ucred *cred) in fdata_alloc() argument 590 data->fdev = fdev; in fdata_alloc()
|
| H A D | fuse_ipc.h | 185 struct cdev *fdev; member
|
| /freebsd-12.1/tools/tools/atsectl/ |
| H A D | atsectl.c | 67 static int fdev = UNKNOWN; variable 96 fdev = CFI; in read_block() 99 errx(1, "Short read from %s", fdevs[fdev]); in read_block() 109 assert(fdev == CFI); in write_block() 116 errx(1, "Short write on %s", fdevs[fdev]); in write_block()
|
| /freebsd-12.1/sys/dev/altera/atse/ |
| H A D | if_atse.c | 510 device_t fdev; in atse_ethernet_option_bits_read_fdt() local 517 fdev = device_find_child(device_get_parent(dev), "cfi", 0); in atse_ethernet_option_bits_read_fdt() 518 if (fdev == NULL) { in atse_ethernet_option_bits_read_fdt() 523 res = bus_alloc_resource_any(fdev, SYS_RES_MEMORY, &rid, in atse_ethernet_option_bits_read_fdt() 534 bus_release_resource(fdev, SYS_RES_MEMORY, rid, res); in atse_ethernet_option_bits_read_fdt()
|
| /freebsd-12.1/usr.sbin/lpr/lpd/ |
| H A D | printjob.c | 99 static dev_t fdev; /* device of file pointed to by symlink */ variable 482 fdev = i; in printit() 643 (stb.st_dev != fdev || stb.st_ino != fino)) in print() 934 fdev = i; in sendit() 1033 (stb.st_dev != fdev || stb.st_ino != fino)) { in sendfile()
|
| /freebsd-12.1/sys/kern/ |
| H A D | uipc_usrreq.c | 2151 struct filedescent *fde, **fdep, *fdev; in unp_internalize() local 2255 fdev = malloc(sizeof(*fdev) * oldfds, M_FILECAPS, in unp_internalize() 2257 for (i = 0; i < oldfds; i++, fdev++, fdp++) { in unp_internalize() 2259 fdep[i] = fdev; in unp_internalize()
|