/freebsd-11-stable/sys/dev/altera/atse/ |
H A D | if_atse.c | 603 device_t fdev; local 609 fdev = device_find_child(device_get_parent(dev), "cfi", 0); 610 if (fdev == NULL) 614 res = bus_alloc_resource_any(fdev, SYS_RES_MEMORY, &rid, 623 bus_release_resource(fdev, SYS_RES_MEMORY, rid, res);
|
/freebsd-11-stable/sys/fs/fuse/ |
H A D | fuse_ipc.c | 412 fdata_alloc(struct cdev *fdev, struct ucred *cred) argument 416 debug_printf("fdev=%p\n", fdev); 420 data->fdev = fdev; 436 FS_DEBUG("data=%p data.mp=%p data.fdev=%p data.flags=%04x\n", 437 data, data->mp, data->fdev, data->dataflags);
|
H A D | fuse_ipc.h | 170 struct cdev *fdev; member in struct:fuse_data
|
H A D | fuse_vfsops.c | 135 struct cdev *fdev; local 153 fdev = devvp->v_rdev; 154 dev_ref(fdev); 179 dev_rel(fdev); 189 if (!fdev->si_devsw || 190 strcmp("fuse", fdev->si_devsw->d_name)) { 191 dev_rel(fdev); 194 *fdevp = fdev; 217 struct cdev *fdev; local 261 err = fuse_getdevice(fspec, td, &fdev); 381 struct cdev *fdev; local [all...] |
/freebsd-11-stable/tools/tools/atsectl/ |
H A D | atsectl.c | 67 static int fdev = UNKNOWN; variable 96 fdev = CFI; 99 errx(1, "Short read from %s", fdevs[fdev]); 109 assert(fdev == CFI); 116 errx(1, "Short write on %s", fdevs[fdev]);
|
/freebsd-11-stable/usr.sbin/lpr/lpd/ |
H A D | printjob.c | 97 static dev_t fdev; /* device of file pointed to by symlink */ variable 480 fdev = i; 641 (stb.st_dev != fdev || stb.st_ino != fino)) 932 fdev = i; 1031 (stb.st_dev != fdev || stb.st_ino != fino)) {
|
/freebsd-11-stable/sys/dev/mlx5/mlx5_fpga/ |
H A D | conn.h | 46 struct mlx5_fpga_device *fdev; member in struct:mlx5_fpga_conn 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 | mlx5fpga_conn.c | 57 dma_device = &conn->fdev->mdev->pdev->dev; 62 mlx5_fpga_warn(conn->fdev, "DMA error on sg 0: %d\n", err); 74 mlx5_fpga_warn(conn->fdev, "DMA error on sg 1: %d\n", err); 89 dma_device = &conn->fdev->mdev->pdev->dev; 118 data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey.key); 138 mlx5_write64(wqe, conn->fdev->conn_res.uar->map + MLX5_BF_OFFSET, NULL); 158 data->lkey = cpu_to_be32(conn->fdev->conn_res.mkey.key); 263 mlx5_fpga_warn(conn->fdev, "RQ buf %p on FPGA QP %u completion status %d\n", 266 mlx5_fpga_dbg(conn->fdev, "RQ buf %p on FPGA QP %u completion status %d\n", 277 mlx5_fpga_dbg(conn->fdev, "Messag 429 struct mlx5_fpga_device *fdev = conn->fdev; local 518 struct mlx5_fpga_device *fdev = conn->fdev; local 532 struct mlx5_fpga_device *fdev = conn->fdev; local 675 struct mlx5_fpga_device *fdev = conn->fdev; local 711 struct mlx5_fpga_device *fdev = conn->fdev; local 756 struct mlx5_fpga_device *fdev = conn->fdev; local 793 struct mlx5_fpga_device *fdev = conn->fdev; local 844 mlx5_fpga_conn_create(struct mlx5_fpga_device *fdev, struct mlx5_fpga_conn_attr *attr, enum mlx5_ifc_fpga_qp_type qp_type) argument 968 struct mlx5_fpga_device *fdev = conn->fdev; local 990 mlx5_fpga_conn_device_init(struct mlx5_fpga_device *fdev) argument 1036 mlx5_fpga_conn_device_cleanup(struct mlx5_fpga_device *fdev) argument [all...] |
H A D | mlx5fpga_core.c | 66 static void client_context_destroy(struct mlx5_fpga_device *fdev, argument 69 mlx5_fpga_dbg(fdev, "Deleting client context %p of client %p\n", 72 context->client->destroy(fdev); 77 static int client_context_create(struct mlx5_fpga_device *fdev, argument 90 list_add(&context->list, &fdev->client_data_list); 92 mlx5_fpga_dbg(fdev, "Adding client context %p client %p\n", 96 client->create(fdev); 105 struct mlx5_fpga_device *fdev = NULL; local 107 fdev = kzalloc(sizeof(*fdev), GFP_KERNE 149 mlx5_fpga_device_load_check(struct mlx5_fpga_device *fdev) argument 183 mlx5_fpga_device_brb(struct mlx5_fpga_device *fdev) argument 209 struct mlx5_fpga_device *fdev = mdev->fpga; local 334 struct mlx5_fpga_device *fdev = NULL; local 364 struct mlx5_fpga_device *fdev = mdev->fpga; local 421 struct mlx5_fpga_device *fdev = mdev->fpga; local 456 struct mlx5_fpga_device *fdev = mdev->fpga; local 510 struct mlx5_fpga_device *fdev; local 547 struct mlx5_fpga_device *fdev; local [all...] |
H A D | mlx5fpga_ipsec.c | 97 struct mlx5_fpga_device *fdev, 106 mlx5_fpga_warn(fdev, "IPSec command send failed with status %u\n", 133 struct mlx5_fpga_device *fdev = cb_arg; local 137 mlx5_fpga_warn(fdev, "Short receive from FPGA IPSec: %u < %zu bytes\n", 142 mlx5_fpga_dbg(fdev, "mlx5_ipsec recv_cb syndrome %08x sa_id %x\n", 145 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); 146 context = list_first_entry_or_null(&fdev->ipsec->pending_cmds, 151 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); 154 mlx5_fpga_warn(fdev, "Received IPSec offload response without pending command request\n"); 157 mlx5_fpga_dbg(fdev, "Handlin 96 mlx5_fpga_ipsec_send_complete(struct mlx5_fpga_conn *conn, struct mlx5_fpga_device *fdev, struct mlx5_fpga_dma_buf *buf, u8 status) argument 180 struct mlx5_fpga_device *fdev = mdev->fpga; local 240 struct mlx5_fpga_device *fdev = mdev->fpga; local 265 struct mlx5_fpga_device *fdev = mdev->fpga; local 277 struct mlx5_fpga_device *fdev = mdev->fpga; local 325 struct mlx5_fpga_device *fdev = mdev->fpga; local 369 struct mlx5_fpga_device *fdev = mdev->fpga; local [all...] |
H A D | mlx5fpga_sdk.c | 55 mlx5_fpga_sbu_conn_create(struct mlx5_fpga_device *fdev, argument 60 return mlx5_fpga_conn_create(fdev, attr, MLX5_FPGA_QPC_QP_TYPE_SANDBOX_QP); 93 mlx5_fpga_dbg(complete->conn->fdev, 101 static int mem_transaction(struct mlx5_fpga_device *fdev, size_t size, u64 addr, argument 107 if (!fdev->shell_conn) { 115 xfer.t.conn = fdev->shell_conn; 121 mlx5_fpga_dbg(fdev, "Transfer execution failed: %d\n", ret); 132 static int mlx5_fpga_mem_read_i2c(struct mlx5_fpga_device *fdev, size_t size, argument 143 if (!fdev->mdev) 149 err = mlx5_fpga_access_reg(fdev 164 mlx5_fpga_mem_write_i2c(struct mlx5_fpga_device *fdev, size_t size, u64 addr, u8 *buf) argument 195 mlx5_fpga_mem_read(struct mlx5_fpga_device *fdev, size_t size, u64 addr, void *buf, enum mlx5_fpga_access_type access_type) argument 228 mlx5_fpga_mem_write(struct mlx5_fpga_device *fdev, size_t size, u64 addr, void *buf, enum mlx5_fpga_access_type access_type) argument 261 mlx5_fpga_get_sbu_caps(struct mlx5_fpga_device *fdev, int size, void *buf) argument 267 mlx5_fpga_ddr_size_get(struct mlx5_fpga_device *fdev) argument 273 mlx5_fpga_ddr_base_get(struct mlx5_fpga_device *fdev) argument 279 mlx5_fpga_client_data_set(struct mlx5_fpga_device *fdev, struct mlx5_fpga_client *client, void *data) argument 295 mlx5_fpga_client_data_get(struct mlx5_fpga_device *fdev, struct mlx5_fpga_client *client) argument 314 mlx5_fpga_device_query(struct mlx5_fpga_device *fdev, struct mlx5_fpga_query *query) argument 327 mlx5_fpga_device_reload_cmd(struct mlx5_fpga_device *fdev) argument 366 mlx5_fpga_device_reload(struct mlx5_fpga_device *fdev, enum mlx5_fpga_image image) argument 468 mlx5_fpga_flash_select(struct mlx5_fpga_device *fdev, enum mlx5_fpga_image image) argument 496 mlx5_fpga_connectdisconnect(struct mlx5_fpga_device *fdev, enum mlx5_fpga_connect *connect) argument 522 mlx5_fpga_temperature(struct mlx5_fpga_device *fdev, struct mlx5_fpga_temperature *temp) argument 529 mlx5_fpga_dev(struct mlx5_fpga_device *fdev) argument 535 mlx5_fpga_get_cap(struct mlx5_fpga_device *fdev, u32 *fpga_caps) argument [all...] |
H A D | mlx5fpga_trans.c | 61 static struct mlx5_fpga_trans_priv *find_tid(struct mlx5_fpga_device *fdev, argument 65 mlx5_fpga_warn(fdev, "Unexpected transaction ID %u\n", tid); 68 return &fdev->trans->transactions[tid]; 71 static struct mlx5_fpga_trans_priv *alloc_tid(struct mlx5_fpga_device *fdev) argument 76 spin_lock_irqsave(&fdev->trans->lock, flags); 78 if (list_empty(&fdev->trans->free_queue)) { 79 mlx5_fpga_dbg(fdev, "No free transaction ID available\n"); 84 ret = list_first_entry(&fdev->trans->free_queue, 90 spin_unlock_irqrestore(&fdev->trans->lock, flags); 94 static void free_tid(struct mlx5_fpga_device *fdev, argument 104 trans_complete(struct mlx5_fpga_device *fdev, struct mlx5_fpga_trans_priv *trans_priv, u8 status) argument 125 trans_send_complete(struct mlx5_fpga_conn *conn, struct mlx5_fpga_device *fdev, struct mlx5_fpga_dma_buf *buf, u8 status) argument 146 trans_validate(struct mlx5_fpga_device *fdev, u64 addr, size_t size) argument 247 struct mlx5_fpga_device *fdev = cb_arg; local 308 mlx5_fpga_trans_device_init(struct mlx5_fpga_device *fdev) argument 332 mlx5_fpga_trans_device_cleanup(struct mlx5_fpga_device *fdev) argument [all...] |
H A D | mlx5fpga_xfer.c | 79 ddr_base = mlx5_fpga_ddr_base_get(xfer_state->xfer->conn->fdev); 119 mlx5_fpga_dbg(xfer_state->xfer->conn->fdev, "Starting %zu bytes at %p done; %u started %u inflight %u done %u error\n", 134 mlx5_fpga_warn(xfer_state->xfer->conn->fdev, "Transfer failed to start transaction: %d. %u started %u done %u error\n", 163 mlx5_fpga_dbg(complete->conn->fdev, "Transaction %zu bytes at %p done, status %u; %u started %u inflight %u done %u error\n", 174 mlx5_fpga_warn(complete->conn->fdev, "Transaction failed during transfer. %u started %u inflight %u done %u error\n", 197 u64 base = mlx5_fpga_ddr_base_get(xfer->conn->fdev); 198 u64 size = mlx5_fpga_ddr_size_get(xfer->conn->fdev); 205 mlx5_fpga_warn(xfer->conn->fdev, "Transfer ends at %jx outside of DDR range %jx\n", 211 mlx5_fpga_warn(xfer->conn->fdev, "Transfer address %jx not aligned\n", 217 mlx5_fpga_warn(xfer->conn->fdev, "Transfe [all...] |
H A D | sdk.h | 64 * @fdev: The FPGA device 66 void (*create)(struct mlx5_fpga_device *fdev); 69 * @fdev: The FPGA device 75 int (*add)(struct mlx5_fpga_device *fdev, u32 vid, u16 pid); 79 * @fdev: The FPGA device 83 void (*remove)(struct mlx5_fpga_device *fdev); 86 * @fdev: The FPGA device 89 void (*destroy)(struct mlx5_fpga_device *fdev); 122 * @fdev: FPGA device this packet was sent to 127 struct mlx5_fpga_device *fdev, [all...] |
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-11-stable/sys/dev/mlx5/mlx5_fpga_tools/ |
H A D | mlx5fpga_tools_char.c | 76 ret = mlx5_fpga_mem_read(tdev->fdev, count, address, buf, access_type); 79 dev_dbg(mlx5_fpga_dev(tdev->fdev), 97 ret = mlx5_fpga_mem_write(tdev->fdev, count, address, buf, access_type); 100 dev_dbg(mlx5_fpga_dev(tdev->fdev), 122 fbase = mlx5_fpga_ddr_base_get(context->tdev->fdev); 123 fsize = mlx5_fpga_ddr_size_get(context->tdev->fdev); 143 dev_dbg(mlx5_fpga_dev(context->tdev->fdev), 172 dev_dbg(mlx5_fpga_dev(context->tdev->fdev), 201 struct mlx5_fpga_device *fdev; local 211 fdev [all...] |
H A D | mlx5fpga_tools_main.c | 46 static void mlx5_fpga_tools_create(struct mlx5_fpga_device *fdev); 47 static int mlx5_fpga_tools_add(struct mlx5_fpga_device *fdev, u32 vid, u16 pid); 48 static void mlx5_fpga_tools_remove(struct mlx5_fpga_device *fdev); 49 static void mlx5_fpga_tools_destroy(struct mlx5_fpga_device *fdev); 51 struct mlx5_fpga_tools_dev *mlx5_fpga_tools_alloc(struct mlx5_fpga_device *fdev); 62 struct mlx5_fpga_tools_dev *mlx5_fpga_tools_alloc(struct mlx5_fpga_device *fdev) argument 71 tdev->fdev = fdev; 93 static void mlx5_fpga_tools_create(struct mlx5_fpga_device *fdev) argument 97 dev_dbg(mlx5_fpga_dev(fdev), "tools_creat 106 mlx5_fpga_tools_add(struct mlx5_fpga_device *fdev, u32 vid, u16 pid) argument 111 mlx5_fpga_tools_remove(struct mlx5_fpga_device *fdev) argument 115 mlx5_fpga_tools_destroy(struct mlx5_fpga_device *fdev) argument [all...] |
H A D | tools.h | 49 struct mlx5_fpga_device *fdev; member in struct:mlx5_fpga_tools_dev
|
/freebsd-11-stable/sys/kern/ |
H A D | uipc_usrreq.c | 1939 struct filedescent *fde, **fdep, *fdev; local 2030 fdev = malloc(sizeof(*fdev) * oldfds, M_FILECAPS, 2032 for (i = 0; i < oldfds; i++, fdev++, fdp++) { 2034 fdep[i] = fdev;
|