Home
last modified time | relevance | path

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

/freebsd/sys/dev/mlx5/mlx5_fpga/
H A Dmlx5fpga_core.c94 client->create(fdev); in client_context_create()
105 fdev = kzalloc(sizeof(*fdev), GFP_KERNEL); in mlx5_fpga_device_alloc()
106 if (!fdev) in mlx5_fpga_device_alloc()
113 return fdev; in mlx5_fpga_device_alloc()
217 if (!fdev) in mlx5_fpga_device_start()
343 if (!fdev) in mlx5_fpga_init()
346 fdev->mdev = mdev; in mlx5_fpga_init()
347 mdev->fpga = fdev; in mlx5_fpga_init()
368 if (!fdev) in mlx5_fpga_device_stop()
421 if (!fdev) in mlx5_fpga_cleanup()
[all …]
H A Dmlx5fpga_sdk.c91 mlx5_fpga_dbg(complete->conn->fdev, in mem_complete()
105 if (!fdev->shell_conn) { in mem_transaction()
113 xfer.t.conn = fdev->shell_conn; in mem_transaction()
141 if (!fdev->mdev) in mlx5_fpga_mem_read_i2c()
173 if (!fdev->mdev) in mlx5_fpga_mem_write_i2c()
373 switch (fdev->fdev_state) { in mlx5_fpga_device_reload()
473 switch (fdev->fdev_state) { in mlx5_fpga_flash_select()
489 fdev->last_admin_image = image; in mlx5_fpga_flash_select()
501 switch (fdev->fdev_state) { in mlx5_fpga_connectdisconnect()
529 return &fdev->mdev->pdev->dev; in mlx5_fpga_dev()
[all …]
H A Dmlx5fpga_ipsec.c183 if (!fdev || !fdev->ipsec) in mlx5_fpga_ipsec_sa_cmd_exec()
246 if (!fdev->ipsec) in mlx5_fpga_ipsec_device_caps()
265 if (!fdev || !fdev->ipsec) in mlx5_fpga_ipsec_counters_count()
282 if (!fdev || !fdev->ipsec) in mlx5_fpga_ipsec_counters_read()
330 fdev->ipsec = kzalloc(sizeof(*fdev->ipsec), GFP_KERNEL); in mlx5_fpga_ipsec_init()
331 if (!fdev->ipsec) in mlx5_fpga_ipsec_init()
334 err = mlx5_fpga_get_sbu_caps(fdev, sizeof(fdev->ipsec->caps), in mlx5_fpga_ipsec_init()
360 kfree(fdev->ipsec); in mlx5_fpga_ipsec_init()
361 fdev->ipsec = NULL; in mlx5_fpga_ipsec_init()
373 kfree(fdev->ipsec); in mlx5_fpga_ipsec_cleanup()
[all …]
H A Dmlx5fpga_trans.c66 return &fdev->trans->transactions[tid]; in find_tid()
117 free_tid(fdev, trans_priv); in trans_complete()
124 struct mlx5_fpga_device *fdev, in trans_send_complete() argument
199 trans_priv = alloc_tid(conn->fdev); in mlx5_fpga_trans_exec()
238 free_tid(conn->fdev, trans_priv); in mlx5_fpga_trans_exec()
262 trans_priv = find_tid(fdev, tid); in mlx5_fpga_trans_recv()
311 fdev->trans = kzalloc(sizeof(*fdev->trans), GFP_KERNEL); in mlx5_fpga_trans_device_init()
312 if (!fdev->trans) { in mlx5_fpga_trans_device_init()
321 &fdev->trans->free_queue); in mlx5_fpga_trans_device_init()
324 spin_lock_init(&fdev->trans->lock); in mlx5_fpga_trans_device_init()
[all …]
H A Dsdk.h64 void (*create)(struct mlx5_fpga_device *fdev);
81 void (*remove)(struct mlx5_fpga_device *fdev);
87 void (*destroy)(struct mlx5_fpga_device *fdev);
125 struct mlx5_fpga_device *fdev,
184 int mlx5_fpga_device_reload(struct mlx5_fpga_device *fdev,
198 int mlx5_fpga_flash_select(struct mlx5_fpga_device *fdev,
216 mlx5_fpga_sbu_conn_create(struct mlx5_fpga_device *fdev,
300 u64 mlx5_fpga_ddr_size_get(struct mlx5_fpga_device *fdev);
308 u64 mlx5_fpga_ddr_base_get(struct mlx5_fpga_device *fdev);
344 void mlx5_fpga_device_query(struct mlx5_fpga_device *fdev,
[all …]
H A Dmlx5fpga_conn.c427 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_create_cq() local
516 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_create_wq() local
530 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
709 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_rtr_qp() local
754 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_rts_qp() local
791 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_connect() local
857 conn->fdev = fdev; in mlx5_fpga_conn_create()
966 struct mlx5_fpga_device *fdev = conn->fdev; in mlx5_fpga_conn_destroy() local
1027 mlx5_put_uars_page(fdev->mdev, fdev->conn_res.uar); in mlx5_fpga_conn_device_init()
[all …]
H A Dmlx5fpga_xfer.c77 ddr_base = mlx5_fpga_ddr_base_get(xfer_state->xfer->conn->fdev); in exec_more()
117 …mlx5_fpga_dbg(xfer_state->xfer->conn->fdev, "Starting %zu bytes at %p done; %u started %u inflight… in exec_more()
132 …mlx5_fpga_warn(xfer_state->xfer->conn->fdev, "Transfer failed to start transaction: %d. %u started… in exec_more()
161 …mlx5_fpga_dbg(complete->conn->fdev, "Transaction %zu bytes at %p done, status %u; %u started %u in… in trans_complete()
172 …mlx5_fpga_warn(complete->conn->fdev, "Transaction failed during transfer. %u started %u inflight %… in trans_complete()
195 u64 base = mlx5_fpga_ddr_base_get(xfer->conn->fdev); in mlx5_fpga_xfer_exec()
196 u64 size = mlx5_fpga_ddr_size_get(xfer->conn->fdev); in mlx5_fpga_xfer_exec()
203 mlx5_fpga_warn(xfer->conn->fdev, "Transfer ends at %jx outside of DDR range %jx\n", in mlx5_fpga_xfer_exec()
209 mlx5_fpga_warn(xfer->conn->fdev, "Transfer address %jx not aligned\n", in mlx5_fpga_xfer_exec()
215 mlx5_fpga_warn(xfer->conn->fdev, "Transfer size %zu not aligned\n", in mlx5_fpga_xfer_exec()
[all …]
H A Dconn.h44 struct mlx5_fpga_device *fdev; member
85 int mlx5_fpga_conn_device_init(struct mlx5_fpga_device *fdev);
86 void mlx5_fpga_conn_device_cleanup(struct mlx5_fpga_device *fdev);
88 mlx5_fpga_conn_create(struct mlx5_fpga_device *fdev,
H A Dtrans.h59 int mlx5_fpga_trans_device_init(struct mlx5_fpga_device *fdev);
60 void mlx5_fpga_trans_device_cleanup(struct mlx5_fpga_device *fdev);
/freebsd/sys/dev/mlx5/mlx5_fpga_tools/
H A Dmlx5fpga_tools_main.c42 static void mlx5_fpga_tools_create(struct mlx5_fpga_device *fdev);
44 static void mlx5_fpga_tools_remove(struct mlx5_fpga_device *fdev);
45 static void mlx5_fpga_tools_destroy(struct mlx5_fpga_device *fdev);
67 tdev->fdev = fdev; in mlx5_fpga_tools_alloc()
89 static void mlx5_fpga_tools_create(struct mlx5_fpga_device *fdev) in mlx5_fpga_tools_create() argument
93 dev_dbg(mlx5_fpga_dev(fdev), "tools_create\n"); in mlx5_fpga_tools_create()
95 dev = mlx5_fpga_tools_alloc(fdev); in mlx5_fpga_tools_create()
99 mlx5_fpga_client_data_set(fdev, &mlx5_fpga_tools_client, dev); in mlx5_fpga_tools_create()
107 static void mlx5_fpga_tools_remove(struct mlx5_fpga_device *fdev) in mlx5_fpga_tools_remove() argument
115 dev_dbg(mlx5_fpga_dev(fdev), "tools_destroy\n"); in mlx5_fpga_tools_destroy()
[all …]
H A Dmlx5fpga_tools_char.c77 dev_dbg(mlx5_fpga_dev(tdev->fdev), in mem_read()
98 dev_dbg(mlx5_fpga_dev(tdev->fdev), in mem_write()
199 struct mlx5_fpga_device *fdev; in tools_char_ioctl() local
209 fdev = context->tdev->fdev; in tools_char_ioctl()
210 if (fdev == NULL) in tools_char_ioctl()
217 dev_err(mlx5_fpga_dev(fdev), in tools_char_ioctl()
227 dev_err(mlx5_fpga_dev(fdev), in tools_char_ioctl()
243 dev_err(mlx5_fpga_dev(fdev), in tools_char_ioctl()
256 mlx5_fpga_get_cap(fdev, fpga_cap); in tools_char_ioctl()
271 dev_err(mlx5_fpga_dev(fdev), in tools_char_ioctl()
[all …]
H A Dtools.h47 struct mlx5_fpga_device *fdev; member
/freebsd/sys/fs/fuse/
H A Dfuse_vfsops.c141 struct cdev *fdev; in fuse_getdevice() local
159 fdev = devvp->v_rdev; in fuse_getdevice()
160 dev_ref(fdev); in fuse_getdevice()
185 dev_rel(fdev); in fuse_getdevice()
197 dev_rel(fdev); in fuse_getdevice()
200 *fdevp = fdev; in fuse_getdevice()
304 struct cdev *fdev; in fuse_vfsop_mount() local
464 dev_rel(fdev); in fuse_vfsop_mount()
475 struct cdev *fdev; in fuse_vfsop_unmount() local
517 fdev = data->fdev; in fuse_vfsop_unmount()
[all …]
H A Dfuse_ipc.c545 fdata_alloc(struct cdev *fdev, struct ucred *cred) in fdata_alloc() argument
551 data->fdev = fdev; in fdata_alloc()
H A Dfuse_ipc.h176 struct cdev *fdev; member
/freebsd/sys/dev/altera/atse/
H A Dif_atse.c499 device_t fdev; in atse_ethernet_option_bits_read_fdt() local
506 fdev = device_find_child(device_get_parent(dev), "cfi", 0); in atse_ethernet_option_bits_read_fdt()
507 if (fdev == NULL) { in atse_ethernet_option_bits_read_fdt()
512 res = bus_alloc_resource_any(fdev, SYS_RES_MEMORY, &rid, in atse_ethernet_option_bits_read_fdt()
523 bus_release_resource(fdev, SYS_RES_MEMORY, rid, res); in atse_ethernet_option_bits_read_fdt()
/freebsd/usr.sbin/lpr/lpd/
H A Dprintjob.c85 static dev_t fdev; /* device of file pointed to by symlink */ variable
468 fdev = i; in printit()
629 (stb.st_dev != fdev || stb.st_ino != fino)) in print()
920 fdev = i; in sendit()
1019 (stb.st_dev != fdev || stb.st_ino != fino)) { in sendfile()
/freebsd/sys/kern/
H A Duipc_usrreq.c2596 struct filedescent *fde, **fdep, *fdev; in unp_internalize() local
2701 fdev = malloc(sizeof(*fdev) * oldfds, M_FILECAPS, in unp_internalize()
2703 for (i = 0; i < oldfds; i++, fdev++, fdp++) { in unp_internalize()
2705 fdep[i] = fdev; in unp_internalize()
/freebsd/crypto/openssh/
H A Dsk-usbhid.c380 fido_dev_is_winhello(const fido_dev_t *fdev) in fido_dev_is_winhello() argument