/freebsd/sys/dev/mlx5/mlx5_fpga/ |
H A D | mlx5fpga_core.c | 64 static void client_context_destroy(struct mlx5_fpga_device *fdev, in client_context_destroy() argument 67 mlx5_fpga_dbg(fdev, "Deleting client context %p of client %p\n", in client_context_destroy() 70 context->client->destroy(fdev); in client_context_destroy() 75 static int client_context_create(struct mlx5_fpga_device *fdev, in client_context_create() argument 88 list_add(&context->list, &fdev->client_data_list); in client_context_create() 90 mlx5_fpga_dbg(fdev, "Adding client context %p client %p\n", in client_context_create() 94 client->create(fdev); in client_context_create() 103 struct mlx5_fpga_device *fdev = NULL; in mlx5_fpga_device_alloc() local 105 fdev = kzalloc(sizeof(*fdev), GFP_KERNEL); in mlx5_fpga_device_alloc() 106 if (!fdev) in mlx5_fpga_device_alloc() [all …]
|
H A D | mlx5fpga_sdk.c | 53 mlx5_fpga_sbu_conn_create(struct mlx5_fpga_device *fdev, in mlx5_fpga_sbu_conn_create() argument 58 return mlx5_fpga_conn_create(fdev, attr, MLX5_FPGA_QPC_QP_TYPE_SANDBOX_QP); in mlx5_fpga_sbu_conn_create() 91 mlx5_fpga_dbg(complete->conn->fdev, in mem_complete() 99 static int mem_transaction(struct mlx5_fpga_device *fdev, size_t size, u64 addr, in mem_transaction() argument 105 if (!fdev->shell_conn) { in mem_transaction() 113 xfer.t.conn = fdev->shell_conn; in mem_transaction() 119 mlx5_fpga_dbg(fdev, "Transfer execution failed: %d\n", ret); in mem_transaction() 130 static int mlx5_fpga_mem_read_i2c(struct mlx5_fpga_device *fdev, size_t size, in mlx5_fpga_mem_read_i2c() argument 141 if (!fdev->mdev) in mlx5_fpga_mem_read_i2c() 147 err = mlx5_fpga_access_reg(fdev->mdev, actual_size, in mlx5_fpga_mem_read_i2c() [all …]
|
H A D | mlx5fpga_ipsec.c | 95 struct mlx5_fpga_device *fdev, in mlx5_fpga_ipsec_send_complete() argument 104 mlx5_fpga_warn(fdev, "IPSec command send failed with status %u\n", in mlx5_fpga_ipsec_send_complete() 131 struct mlx5_fpga_device *fdev = cb_arg; in mlx5_fpga_ipsec_recv() local 135 mlx5_fpga_warn(fdev, "Short receive from FPGA IPSec: %u < %zu bytes\n", in mlx5_fpga_ipsec_recv() 140 mlx5_fpga_dbg(fdev, "mlx5_ipsec recv_cb syndrome %08x sa_id %x\n", in mlx5_fpga_ipsec_recv() 143 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv() 144 context = list_first_entry_or_null(&fdev->ipsec->pending_cmds, in mlx5_fpga_ipsec_recv() 149 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv() 152 mlx5_fpga_warn(fdev, "Received IPSec offload response without pending command request\n"); in mlx5_fpga_ipsec_recv() 155 mlx5_fpga_dbg(fdev, "Handling response for %p\n", context); in mlx5_fpga_ipsec_recv() [all …]
|
H A D | mlx5fpga_trans.c | 59 static struct mlx5_fpga_trans_priv *find_tid(struct mlx5_fpga_device *fdev, in find_tid() argument 63 mlx5_fpga_warn(fdev, "Unexpected transaction ID %u\n", tid); in find_tid() 66 return &fdev->trans->transactions[tid]; in find_tid() 69 static struct mlx5_fpga_trans_priv *alloc_tid(struct mlx5_fpga_device *fdev) in alloc_tid() argument 74 spin_lock_irqsave(&fdev->trans->lock, flags); in alloc_tid() 76 if (list_empty(&fdev->trans->free_queue)) { in alloc_tid() 77 mlx5_fpga_dbg(fdev, "No free transaction ID available\n"); in alloc_tid() 82 ret = list_first_entry(&fdev->trans->free_queue, in alloc_tid() 88 spin_unlock_irqrestore(&fdev->trans->lock, flags); in alloc_tid() 92 static void free_tid(struct mlx5_fpga_device *fdev, in free_tid() argument [all …]
|
H A D | mlx5fpga_conn.c | 55 dma_device = &conn->fdev->mdev->pdev->dev; in mlx5_fpga_conn_map_buf() 60 mlx5_fpga_warn(conn->fdev, "DMA error on sg 0: %d\n", err); in mlx5_fpga_conn_map_buf() 72 mlx5_fpga_warn(conn->fdev, "DMA error on sg 1: %d\n", err); in mlx5_fpga_conn_map_buf() 87 dma_device = &conn->fdev->mdev->pdev->dev; in mlx5_fpga_conn_unmap_buf() 116 data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey.key); in mlx5_fpga_conn_post_recv() 136 mlx5_write64(wqe, conn->fdev->conn_res.uar->map + MLX5_BF_OFFSET, NULL); in mlx5_fpga_conn_notify_hw() 156 data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey.key); in mlx5_fpga_conn_post_send() 261 mlx5_fpga_warn(conn->fdev, "RQ buf %p on FPGA QP %u completion status %d\n", in mlx5_fpga_conn_rq_cqe() 264 mlx5_fpga_dbg(conn->fdev, "RQ buf %p on FPGA QP %u completion status %d\n", in mlx5_fpga_conn_rq_cqe() 275 mlx5_fpga_dbg(conn->fdev, "Message with %u bytes received successfully\n", in mlx5_fpga_conn_rq_cqe() [all …]
|
H A D | sdk.h | 64 void (*create)(struct mlx5_fpga_device *fdev); 73 int (*add)(struct mlx5_fpga_device *fdev, u32 vid, u16 pid); 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, 258 int mlx5_fpga_mem_read(struct mlx5_fpga_device *fdev, size_t size, u64 addr, 276 int mlx5_fpga_mem_write(struct mlx5_fpga_device *fdev, size_t size, u64 addr, [all …]
|
H A D | mlx5fpga_xfer.c | 77 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 D | conn.h | 44 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 D | trans.h | 59 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 D | mlx5fpga_tools_main.c | 42 static void mlx5_fpga_tools_create(struct mlx5_fpga_device *fdev); 43 static int mlx5_fpga_tools_add(struct mlx5_fpga_device *fdev, u32 vid, u16 pid); 44 static void mlx5_fpga_tools_remove(struct mlx5_fpga_device *fdev); 45 static void mlx5_fpga_tools_destroy(struct mlx5_fpga_device *fdev); 47 struct mlx5_fpga_tools_dev *mlx5_fpga_tools_alloc(struct mlx5_fpga_device *fdev); 58 struct mlx5_fpga_tools_dev *mlx5_fpga_tools_alloc(struct mlx5_fpga_device *fdev) in mlx5_fpga_tools_alloc() argument 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() [all …]
|
H A D | mlx5fpga_tools_char.c | 74 ret = mlx5_fpga_mem_read(tdev->fdev, count, address, buf, access_type); in mem_read() 77 dev_dbg(mlx5_fpga_dev(tdev->fdev), in mem_read() 95 ret = mlx5_fpga_mem_write(tdev->fdev, count, address, buf, access_type); in mem_write() 98 dev_dbg(mlx5_fpga_dev(tdev->fdev), in mem_write() 120 fbase = mlx5_fpga_ddr_base_get(context->tdev->fdev); in tools_char_llseek() 121 fsize = mlx5_fpga_ddr_size_get(context->tdev->fdev); in tools_char_llseek() 141 dev_dbg(mlx5_fpga_dev(context->tdev->fdev), in tools_char_read() 170 dev_dbg(mlx5_fpga_dev(context->tdev->fdev), in tools_char_write() 199 struct mlx5_fpga_device *fdev; in tools_char_ioctl() local 209 fdev = context->tdev->fdev; in tools_char_ioctl() [all …]
|
H A D | tools.h | 47 struct mlx5_fpga_device *fdev; member
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_vfsops.c | 141 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() 195 if (!fdev->si_devsw || in fuse_getdevice() 196 strcmp("fuse", fdev->si_devsw->d_name)) { 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 367 err = fuse_getdevice(fspec, td, &fdev); in fuse_vfsop_mount() [all …]
|
H A D | fuse_ipc.c | 545 fdata_alloc(struct cdev *fdev, struct ucred *cred) in fdata_alloc() argument 551 data->fdev = fdev; in fdata_alloc()
|
H A D | fuse_ipc.h | 176 struct cdev *fdev; member
|
/freebsd/usr.sbin/lpr/lpd/ |
H A D | printjob.c | 85 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 D | uipc_usrreq.c | 2620 struct filedescent *fde, **fdep, *fdev; in unp_internalize() local 2725 fdev = malloc(sizeof(*fdev) * oldfds, M_FILECAPS, in unp_internalize() 2727 for (i = 0; i < oldfds; i++, fdev++, fdp++) { in unp_internalize() 2729 fdep[i] = fdev; in unp_internalize()
|
/freebsd/crypto/openssh/ |
H A D | sk-usbhid.c | 380 fido_dev_is_winhello(const fido_dev_t *fdev) in fido_dev_is_winhello() argument
|