/freebsd-11-stable/sys/dev/nvme/ |
H A D | nvme.c | 126 nvme_probe (device_t device) argument 132 devid = pci_get_devid(device); 133 subdevice = pci_get_subdevice(device); 143 device_set_desc(device, ep->desc); 148 if (pci_get_class(device) == PCIC_STORAGE && 149 pci_get_subclass(device) == PCIS_STORAGE_NVM && 150 pci_get_progif(device) == PCIP_STORAGE_NVM_ENTERPRISE_NVMHCI_1_0) { 151 device_set_desc(device, "Generic NVMe Device");
|
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/ |
H A D | ib_roce_gid_mgmt.c | 67 bool (*is_supported)(const struct ib_device *device, u8 port_num); 153 roce_gid_update_addr_callback(struct ib_device *device, u8 port, argument 182 default_gids = roce_gid_enum_netdev_default(device, port, ndev); 244 unsigned long gid_type_mask = roce_gid_type_mask_support(device, port); 253 if (ib_find_cached_gid_by_port(device, &gid, i, 260 update_gid(GID_ADD, device, port, &gid, entry->ndev); 264 for (i = default_gids; ib_get_cached_gid(device, port, i, &gid, &gid_attr) == 0; i++) { 267 /* check for valid network device pointer */ 292 update_gid(GID_DEL, device, port, &gid, ndev);
|
H A D | ib_user_mad.c | 44 #include <linux/device.h> 76 * device special file is opened, we take a reference on the 90 struct device *dev; 93 struct device *sm_dev; 139 static void ib_umad_add_one(struct ib_device *device); 140 static void ib_umad_remove_one(struct ib_device *device, void *client_data); 245 ret = ib_init_ah_from_wc(agent->device, agent->port_num, 643 "ib_umad_reg_agent: invalid device\n"); 745 "ib_umad_reg_agent2: invalid device\n"); 1110 static ssize_t show_ibdev(struct device *de 1139 find_overflow_devnum(struct ib_device *device) argument 1160 ib_umad_init_port(struct ib_device *device, int port_num, struct ib_umad_device *umad_dev, struct ib_umad_port *port) argument 1286 ib_umad_add_one(struct ib_device *device) argument 1334 ib_umad_remove_one(struct ib_device *device, void *client_data) argument [all...] |
H A D | ib_iwcm.c | 200 struct iw_cm_id *iw_create_cm_id(struct ib_device *device, argument 211 cm_id_priv->id.device = device; 357 cm_id->device->iwcm->destroy_listen(cm_id); 380 cm_id->device->iwcm->reject(cm_id, NULL, 0); 390 cm_id_priv->id.device->iwcm->rem_ref(cm_id_priv->qp); 460 ret = cm_id->device->iwcm->create_listen(cm_id, backlog); 500 ret = cm_id->device->iwcm->reject(cm_id, private_data, 536 qp = cm_id->device->iwcm->get_qp(cm_id->device, iw_para [all...] |
/freebsd-11-stable/lib/libgpio/ |
H A D | gpio.c | 43 char device[16]; local 45 snprintf(device, sizeof(device), "/dev/gpioc%u", unit); 47 return (gpio_open_device(device)); 51 gpio_open_device(const char *device) argument 56 fd = open(device, O_RDONLY);
|
/freebsd-11-stable/sys/dev/isci/ |
H A D | isci_remote_device.c | 49 * device is ready and capable of processing IO requests. 55 * @param[in] remote_device This parameter specifies the device object with 71 /* This new device is now ready, so put it in the controller's 72 * remote device list so it is visible to CAM. 80 * CAM to rescan this device. 81 * If the sim object has not been scanned, this device 99 * device is not ready. Thus, it is incapable of processing IO 106 * @param[in] remote_device This parameter specifies the device object with 120 * device failed. This typically occurs shortly after the device 291 isci_remote_device_release_device_queue( struct ISCI_REMOTE_DEVICE *device) argument [all...] |
/freebsd-11-stable/usr.sbin/fdwrite/ |
H A D | fdwrite.c | 60 fprintf(stderr, "usage: fdwrite [-v] [-y] [-f inputfile] [-d device]\n"); 70 const char *device= "/dev/fd0"; local 79 device = optarg; 121 fdn,device); 128 if((fd = open(device, O_RDWR)) < 0) 129 err(1, "%s", device); 132 errx(1, "not a floppy disk: %s", device);
|
/freebsd-11-stable/contrib/libpcap/ |
H A D | pcap-dbus.c | 185 const char *dev = handle->opt.device; 220 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't get bus address from %s", handle->opt.device); 304 dbus_create(const char *device, char *ebuf, int *is_ours) argument 308 if (strcmp(device, "dbus-system") && 309 strcmp(device, "dbus-session") && 310 strncmp(device, "dbus://", 7))
|
H A D | pcap-netmap.c | 140 fprintf(stderr, "Error: cannot get device control socket.\n"); 231 d = nm_open(p->opt.device, NULL, 0, NULL); 235 p->opt.device); 240 fprintf(stderr, "%s device %s priv %p fd %d ports %d..%d\n", 241 __FUNCTION__, p->opt.device, d, d->fd, 283 pcap_netmap_create(const char *device, char *ebuf, int *is_ours) argument 287 *is_ours = (!strncmp(device, "netmap:", 7) || !strncmp(device, "vale", 4)); 298 * The "device name" for netmap devices isn't a name for a device, i [all...] |
H A D | pcap-snf.c | 34 snf_handle_t snf_handle; /* opaque device handle */ 35 snf_ring_t snf_ring; /* opaque device ring handle */ 250 char *device = p->opt.device; local 255 if (device == NULL) { 256 pcap_snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "device is NULL"); 391 * So if we already have an entry for the device, we 394 * which snfN device it is. Otherwise, we add an entry 399 * of ports, which we use to generate a device 408 * entry for the device, i 513 snf_create(const char *device, char *ebuf, int *is_ours) argument 606 pcap_create_interface(const char *device, char *errbuf) argument [all...] |
/freebsd-11-stable/sys/dev/ichsmb/ |
H A D | ichsmb_pci.c | 43 * Support for the SMBus controller logical device which is part of the 200 const struct ichsmb_device *device; local 205 for (device = ichsmb_devices; device->name != NULL; device++) { 206 if (pci_get_device(dev) == device->id) { 207 device_set_desc(dev, device->name); 249 /* Enable device */
|
/freebsd-11-stable/sys/geom/vinum/ |
H A D | geom_vinum_events.c | 153 strlcpy(d->device, pp->name, sizeof(d->device)); 155 strlcpy(d->device, pp->name, sizeof(d->device)); 210 * attached to the underlying device and bring the drive itself to a 251 snprintf(d->device, sizeof(d->device), "???");
|
/freebsd-11-stable/sys/dev/ntb/ntb_hw/ |
H A D | ntb_hw_intel.c | 30 * The Non-Transparent Bridge (NTB) is a device that allows you to connect 206 device_t device; member in struct:ntb_softc 304 static int intel_ntb_probe(device_t device); 305 static int intel_ntb_attach(device_t device); 306 static int intel_ntb_detach(device_t device); 385 device_printf(ntb->device, __VA_ARGS__); \ 624 intel_ntb_probe(device_t device) argument 628 p = intel_ntb_get_device_info(pci_get_devid(device)); 632 device_set_desc(device, p->desc); 637 intel_ntb_attach(device_t device) argument 695 intel_ntb_detach(device_t device) argument [all...] |
/freebsd-11-stable/sys/dev/ofw/ |
H A D | ofw_standard.c | 89 static ssize_t ofw_std_canon(ofw_t ofw, const char *device, char *buf, 91 static phandle_t ofw_std_finddevice(ofw_t ofw, const char *device); 98 static ihandle_t ofw_std_open(ofw_t ofw, const char *device); 413 /* Convert a device specifier to a fully qualified pathname. */ 415 ofw_std_canon(ofw_t ofw, const char *device, char *buf, size_t len) argument 421 cell_t device; member in struct:__anon7740 431 args.device = (cell_t)device; 439 /* Return a package handle for the specified device. */ 441 ofw_std_finddevice(ofw_t ofw, const char *device) argument 447 cell_t device; member in struct:__anon7741 558 ofw_std_open(ofw_t ofw, const char *device) argument 564 cell_t device; member in struct:__anon7745 [all...] |
/freebsd-11-stable/sys/dev/liquidio/ |
H A D | lio_main.c | 233 lio_attach(device_t device) argument 241 oct_dev = lio_allocate_device(device); 243 device_printf(device, "Error: Unable to allocate device\n"); 251 oct_dev->device = device; 252 bus = pci_get_bus(device); 253 dev = pci_get_slot(device); 254 function = pci_get_function(device); 256 lio_dev_info(oct_dev, "Initializing device [all...] |
/freebsd-11-stable/sys/dev/drm2/ |
H A D | drm_os_freebsd.c | 90 drm_find_description(int vendor, int device, const drm_pci_id_list_t *idlist) argument 96 ((idlist[i].device == device) || 97 (idlist[i].device == 0))) { 112 int vendor, device; local 115 device = pci_get_device(kdev); 122 id_entry = drm_find_description(vendor, device, idlist); 144 int vendor, device; local 150 device = pci_get_device(kdev); 151 dev->id_entry = drm_find_description(vendor, device, idlis [all...] |
/freebsd-11-stable/usr.sbin/iovctl/ |
H A D | parse.c | 197 * Parses all values specified in a device section in the configuration file, 334 * the device parameter, or NULL if the device is not specified. 341 const char *key, *device; local 347 if (strcasecmp(key, "device") == 0) { 348 if (!ucl_object_tostring_safe(obj, &device)) 350 "Config PF.device must be a string"); 352 return (device); 360 * Manually parse the config file looking for the name of the PF device. We 363 * device s 371 char *device; local [all...] |
/freebsd-11-stable/sys/powerpc/ofw/ |
H A D | ofw_real.c | 94 static ssize_t ofw_real_canon(ofw_t, const char *device, char *buf, size_t len); 95 static phandle_t ofw_real_finddevice(ofw_t, const char *device); 104 static ihandle_t ofw_real_open(ofw_t, const char *device); 609 /* Convert a device specifier to a fully qualified pathname. */ 611 ofw_real_canon(ofw_t ofw, const char *device, char *buf, size_t len) argument 618 cell_t device; member in struct:__anon8408 630 args.device = ofw_real_map(device, strlen(device) + 1); 634 if (args.device 648 ofw_real_finddevice(ofw_t ofw, const char *device) argument 655 cell_t device; member in struct:__anon8409 837 ofw_real_open(ofw_t ofw, const char *device) argument 844 cell_t device; member in struct:__anon8414 [all...] |
/freebsd-11-stable/sbin/camcontrol/ |
H A D | fwdownload.c | 44 * with it. It only means that the firmware of at least one device type 49 * specified device. 113 * the device. 115 * FW_TIMEOUT_NO_PROBE: Do not ask the device for a WRITE BUFFER 116 * timeout value. Use the device-specific 136 * dev_type: SCSI device type to match, or T_ANY to match any 137 * device from the given vendor. Note that if there 138 * is a specific device type listed for a particular 141 * max_pkt_size: Maximum packet size when talking to a device. Note 143 * the target device, the 423 uint8_t device; member in struct:fw_ibm_tape_fw_designation 926 fwdownload(struct cam_device *device, int argc, char **argv, char *combinedopt, int printerrors, int task_attr, int retry_count, int timeout) argument [all...] |
/freebsd-11-stable/sys/dev/iser/ |
H A D | icl_iser.c | 81 * state mutex to avoid dereferencing the IB device which 88 struct iser_device *device = iser_conn->ib_conn.device; local 92 dma_addr = ib_dma_map_single(device->ib_device, (void *)tx_desc, 94 if (ib_dma_mapping_error(device->ib_device, dma_addr)) { 103 tx_desc->tx_sg[0].lkey = device->mr->lkey; 393 /* the device is known only --after-- address resolution */ 394 ib_conn->device = NULL; 460 struct iser_device *device = iser_pdu->iser_conn->ib_conn.device; local [all...] |
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | refclock_chronolog.c | 47 #define DEVICE "/dev/chronolog%d" /* device name and unit */ 101 char device[20]; local 107 snprintf(device, sizeof(device), DEVICE, unit); 110 printf ("starting Chronolog with device %s\n",device); 112 fd = refclock_open(device, SPEED232, 0);
|
H A D | refclock_dumbclock.c | 49 #define DEVICE "/dev/dumbclock%d" /* device name and unit */ 110 char device[20]; local 118 snprintf(device, sizeof(device), DEVICE, unit); 121 printf ("starting Dumbclock with device %s\n",device); 123 fd = refclock_open(device, SPEED232, 0);
|
H A D | refclock_fg.c | 89 * fg_start - open the device and initialize data for processing 100 char device[20]; local 104 * Open device file for reading. 106 snprintf(device, sizeof(device), DEVICE, unit); 108 DPRINTF(1, ("starting FG with device %s\n",device)); 110 fd = refclock_open(device, SPEED232, LDISC_CLK);
|
/freebsd-11-stable/sys/dev/bwn/ |
H A D | if_bwn_pci.c | 129 /** Search the device configuration table for an entry matching @p dev. */ 132 const struct bwn_pci_device **device) 138 for (dv = dvc->devices; dv->device != 0; dv++) { 140 pci_get_device(dev) == dv->device) 145 if (device != NULL) 146 *device = dv; 197 /* Attach bridge device */ 218 name = "unknown device"; 131 bwn_pci_find_devcfg(device_t dev, const struct bwn_pci_devcfg **cfg, const struct bwn_pci_device **device) argument
|
/freebsd-11-stable/sys/dev/isci/scil/ |
H A D | sati_start_stop_unit.c | 127 //need to know whether the device supports removable medial feature set. 128 if (sequence->device->capabilities & SATI_DEVICE_CAP_REMOVABLE_MEDIA) 346 //device state is now operational(active) 347 sequence->device->state = SATI_DEVICE_STATE_OPERATIONAL; 361 sequence->device->state = SATI_DEVICE_STATE_IDLE; 381 sequence->device->state = SATI_DEVICE_STATE_STOPPED; 385 sequence->device->state = SATI_DEVICE_STATE_STANDBY;
|