/freebsd-11-stable/sys/dev/isci/scil/ |
H A D | sati_test_unit_ready.c | 90 * - the device should be in a state to receive commands 91 * - a stopped device should cause sense data. 94 * - a device fault occurred on previous request should cause sense data. 98 if (sequence->device->state == SATI_DEVICE_STATE_STOPPED) 110 else if (sequence->device->state 123 else if (sequence->device->state 137 // The CDB is properly formed and the device is ready.
|
H A D | scif_sas_request.c | 84 * @param[in] fw_device This parameter specifies the remote device object 109 fw_request->device = fw_device; 148 fw_request->device->domain->controller->core_object, 149 fw_request->device->core_object,
|
H A D | sati_unmap.c | 87 U32 blocks = (dsm_descriptor_count * sizeof(TRIM_PAIR))/sequence->device->logical_block_size; 88 if ((dsm_descriptor_count * sizeof(TRIM_PAIR)) % sequence->device->logical_block_size) 100 * - setting the device head register 193 * that can be satisfied by the device and the SW 208 // amount of memory the device can handle up to the maximum of 4K. 209 return MIN(SATI_DSM_MAX_BUFFER_SIZE/sequence->device->logical_block_size, 210 sequence->device->max_lba_range_entry_blocks); 241 // Make sure the device is TRIM capable 242 if ((sequence->device->capabilities & SATI_DEVICE_CAP_DSM_TRIM_SUPPORT) 245 // Can't send TRIM request to device tha [all...] |
/freebsd-11-stable/usr.sbin/bluetooth/hcseriald/ |
H A D | hcseriald.c | 63 char *device = NULL, *name = NULL; local 78 device = optarg; 98 if (device == NULL || name == NULL) 103 /* Open device */ 104 n = open_device(device, speed, name); 149 /* Remove PID file and close device */ 159 open_device(char const *device, speed_t speed, char const *name) argument 167 /* Open terminal device and setup H4 line discipline */ 168 fd = open(device, O_RDWR|O_NOCTTY); 171 device, strerro [all...] |
/freebsd-11-stable/sys/ofed/include/rdma/ |
H A D | ib_verbs.h | 45 #include <linux/device.h> 181 * This device supports a per-device lkey or stag that can be 202 * This device supports the IB "base memory management extension", 205 * also be set by any iWarp device which must support FRs to comply 594 struct ib_device *device; member in struct:ib_event 606 struct ib_device *device; member in struct:ib_event_handler 613 (_ptr)->device = _device; \ 1354 struct ib_device *device; member in struct:ib_ucontext 1409 struct ib_device *device; member in struct:ib_pd 1422 struct ib_device *device; member in struct:ib_xrcd 1431 struct ib_device *device; member in struct:ib_ah 1445 struct ib_device *device; member in struct:ib_cq 1457 struct ib_device *device; member in struct:ib_srq 1485 struct ib_device *device; member in struct:ib_wq 1517 struct ib_device *device; member in struct:ib_rwq_ind_table 1536 struct ib_device *device; member in struct:ib_qp 1560 struct ib_device *device; member in struct:ib_mr 1575 struct ib_device *device; member in struct:ib_mw 1583 struct ib_device *device; member in struct:ib_fmr 2246 rdma_cap_ib_switch(const struct ib_device *device) argument 2259 rdma_start_port(const struct ib_device *device) argument 2272 rdma_end_port(const struct ib_device *device) argument 2277 rdma_is_port_valid(const struct ib_device *device, unsigned int port) argument 2284 rdma_protocol_ib(const struct ib_device *device, u8 port_num) argument 2289 rdma_protocol_roce(const struct ib_device *device, u8 port_num) argument 2295 rdma_protocol_roce_udp_encap(const struct ib_device *device, u8 port_num) argument 2300 rdma_protocol_roce_eth_encap(const struct ib_device *device, u8 port_num) argument 2305 rdma_protocol_iwarp(const struct ib_device *device, u8 port_num) argument 2310 rdma_ib_or_roce(const struct ib_device *device, u8 port_num) argument 2328 rdma_cap_ib_mad(const struct ib_device *device, u8 port_num) argument 2352 rdma_cap_opa_mad(struct ib_device *device, u8 port_num) argument 2378 rdma_cap_ib_smi(const struct ib_device *device, u8 port_num) argument 2398 rdma_cap_ib_cm(const struct ib_device *device, u8 port_num) argument 2415 rdma_cap_iw_cm(const struct ib_device *device, u8 port_num) argument 2435 rdma_cap_ib_sa(const struct ib_device *device, u8 port_num) argument 2457 rdma_cap_ib_mcast(const struct ib_device *device, u8 port_num) argument 2475 rdma_cap_af_ib(const struct ib_device *device, u8 port_num) argument 2496 rdma_cap_eth_ah(const struct ib_device *device, u8 port_num) argument 2513 rdma_max_mad_size(const struct ib_device *device, u8 port_num) argument 2531 rdma_cap_roce_gid_table(const struct ib_device *device, u8 port_num) argument [all...] |
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/ |
H A D | ib_uverbs_main.c | 43 #include <linux/device.h> 146 static void ib_uverbs_add_one(struct ib_device *device); 147 static void ib_uverbs_remove_one(struct ib_device *device, void *client_data); 154 ret = mw->device->dealloc_mw(mw); 328 mutex_lock(&file->device->xrcd_tree_mutex); 335 ib_uverbs_dealloc_xrcd(file->device, xrcd); 338 mutex_unlock(&file->device->xrcd_tree_mutex); 350 return context->device->dealloc_ucontext(context); 365 srcu_key = srcu_read_lock(&file->device->disassociate_srcu); 366 ib_dev = srcu_dereference(file->device 1051 show_ibdev(struct device *device, struct device_attribute *attr, char *buf) argument 1072 show_dev_abi_version(struct device *device, struct device_attribute *attr, char *buf) argument 1124 show_dev_device(struct device *device, struct device_attribute *attr, char *buf) argument 1137 show_dev_vendor(struct device *device, struct device_attribute *attr, char *buf) argument 1161 ib_uverbs_add_one(struct ib_device *device) argument 1325 ib_uverbs_remove_one(struct ib_device *device, void *client_data) argument [all...] |
/freebsd-11-stable/sbin/savecore/ |
H A D | savecore.c | 105 const char *device, int bounds, const int status) 112 xo_emit_h(xo, "{Lwc:Dump header from device}{:dump_device/%s}\n", 113 device); 318 "no dump: not enough free space on device (need at least " 342 DoRegularFile(int fd, off_t dumpsize, char *buf, const char *device, argument 359 "WARNING: EOF on dump device"); 361 syslog(LOG_ERR, "read error on %s: %m", device); 437 const char *device, const char *filename, FILE *fp) 447 device); 456 "WARNING: EOF on dump device"); 104 printheader(xo_handle_t *xo, const struct kerneldumpheader *h, const char *device, int bounds, const int status) argument 436 DoTextdumpFile(int fd, off_t dumpsize, off_t lasthd, char *buf, const char *device, const char *filename, FILE *fp) argument 482 DoFile(const char *savedir, const char *device) argument [all...] |
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | refclock_atom.c | 74 * miscellaneous device driver and OS delays. 79 #define DEVICE "/dev/pps%d" /* device name and unit */ 125 char device[80]; local 140 * Open PPS device. This can be any serial or parallel port and 143 snprintf(device, sizeof(device), DEVICE, unit); 144 up->fddev = tty_open(device, O_RDWR, 0777); 147 "refclock_atom: %s: %m", device);
|
H A D | refclock_tt560.c | 28 #define DEVICE "/dev/tt560%d" /* device name and unit */ 69 * tt560_start - open the TT560 device and initialize data for processing 79 char device[20]; local 84 * Open TT560 device 86 snprintf(device, sizeof(device), DEVICE, unit); 87 fd = open(device, O_RDWR); 89 msyslog(LOG_ERR, "tt560_start: open of %s: %m", device); 94 * Map the device registers into user space. 101 msyslog(LOG_ERR, "tt560_start: mapping of %s: %m", device); [all...] |
/freebsd-11-stable/sys/dev/isci/ |
H A D | isci.c | 114 isci_probe (device_t device) argument 116 u_int32_t type = pci_get_devid(device); 124 device_set_desc(device, ep->desc); 141 pci_bar->resource = bus_alloc_resource_any(isci->device, 159 isci_attach(device_t device) argument 162 struct isci_softc *isci = DEVICE2SOFTC(device); 165 isci->device = device; 166 pci_enable_busmaster(device); 174 isci_detach(device); 185 isci_detach(device_t device) argument 409 isci_allocate_dma_buffer(device_t device, struct ISCI_MEMORY *memory) argument [all...] |
H A D | isci_interrupt.c | 58 interrupt_info->res = bus_alloc_resource_any(isci->device, SYS_RES_IRQ, 67 if (bus_setup_intr(isci->device, interrupt_info->res, 102 info->res = bus_alloc_resource_any(isci->device, 111 if (bus_setup_intr(isci->device, info->res, 136 pci_msix_count(isci->device) >= max_msix_messages) { 139 if (pci_alloc_msix(isci->device, &isci->num_interrupts) == 0 &&
|
/freebsd-11-stable/lib/libcam/ |
H A D | camlib.h | 76 * Right now we hard code the transport layer device, but this will change 86 * Pathname of the device 89 * user states the device 102 * Name of the device, 106 * device associated with this 107 * particular device. 116 u_int16_t pd_type; /* type of peripheral device */ 118 u_int8_t serial_num[252]; /* device serial number */ 123 int fd; /* file descriptor for device */ 133 struct cam_device *device); [all...] |
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/ |
H A D | rdma-ndd.c | 88 const char *device, const char *hostname) 106 field = device; 117 static int update_node_desc(const char *device, const char *hostname, int force) argument 126 sys_dir, SYS_INFINIBAND, device); 142 build_node_desc(new_nd, sizeof(new_nd), device, hostname); 145 syslog(LOG_INFO, "%s: no change (%s)\n", device, new_nd); 148 device, nd, new_nd); 288 const char *device = udev_device_get_sysname(dev); local 293 device, action); 295 if (device 87 build_node_desc(char *dest, size_t len, const char *device, const char *hostname) argument [all...] |
/freebsd-11-stable/contrib/libpcap/testprogs/ |
H A D | selpolltest.c | 71 register char *cp, *cmdbuf, *device; local 82 device = NULL; 98 device = optarg; 133 if (device == NULL) { 138 device = strdup(devlist->name); 142 pd = pcap_open_live(device, 65535, 0, 1000, ebuf); 147 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) { 168 device, mechanism); 172 device); 177 * try reading from the device ever [all...] |
/freebsd-11-stable/stand/usb/storage/ |
H A D | umass_loader.c | 74 /* wait 8 seconds for a USB mass storage device to appear */ 80 if (umass_uaa.device != NULL) 90 if (umass_uaa.device == NULL) 97 if (usb_msc_write_10(umass_uaa.device, 0, dblk, size >> 9, buf) != 0) 100 if (usb_msc_read_10(umass_uaa.device, 0, dblk, size >> 9, buf) != 0) 117 if (usb_msc_read_capacity(umass_uaa.device, 0, &nblock, &blocksize) != 0) 133 if (umass_uaa.device == NULL) 159 if (usb_msc_read_capacity(umass_uaa.device, 0, 194 ret = pager_output(" umass0 UMASS device\n");
|
/freebsd-11-stable/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_sysfs.c | 46 static ssize_t show_admin_alias_guid(struct device *dev, 68 static ssize_t store_admin_alias_guid(struct device *dev, 111 static ssize_t show_port_gid(struct device *dev, 138 static ssize_t show_phys_port_pkey(struct device *dev, 164 ssize_t (*show)(struct device *dev, 167 ssize_t (*store)(struct device *dev, 200 int add_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, argument 203 struct mlx4_ib_iov_port *port = &device->iov_ports[port_num - 1]; 213 void del_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, argument 216 struct mlx4_ib_iov_port *port = &device 221 add_port_entries(struct mlx4_ib_dev *device, int port_num) argument 771 register_pkey_tree(struct mlx4_ib_dev *device) argument 784 unregister_pkey_tree(struct mlx4_ib_dev *device) argument 857 unregister_alias_guid_tree(struct mlx4_ib_dev *device) argument 881 mlx4_ib_device_unregister_sysfs(struct mlx4_ib_dev *device) argument [all...] |
H A D | mlx4_ib_mr.c | 70 err = mlx4_mr_alloc(to_mdev(pd->device)->dev, to_mpd(pd)->pdn, 0, 75 err = mlx4_mr_enable(to_mdev(pd->device)->dev, &mr->mmr); 85 (void) mlx4_mr_free(to_mdev(pd->device)->dev, &mr->mmr); 141 struct mlx4_ib_dev *dev = to_mdev(pd->device); 181 (void) mlx4_mr_free(to_mdev(pd->device)->dev, &mr->mmr); 197 struct mlx4_ib_dev *dev = to_mdev(mr->device); 279 mlx4_alloc_priv_pages(struct ib_device *device, argument 298 mr->page_map = dma_map_single(device->dma_device, mr->pages, 301 if (dma_mapping_error(device->dma_device, mr->page_map)) { 317 struct ib_device *device local [all...] |
/freebsd-11-stable/sys/dev/etherswitch/ |
H A D | miiproxy.c | 65 * The rendezvous data structures and functions allow two device endpoints to 67 * endpoint. The proxy has to know the device name of the target that it 85 device_t device; member in struct:rendezvous_endpoint 110 ep->device = NULL; 119 * indicates the name of the device that is the target endpoint for this 136 e->proxy.device = dev; 143 e->proxy.device = dev; 164 e->target.device = dev; 171 e->target.device = dev; 187 if (e->proxy.device [all...] |
/freebsd-11-stable/contrib/ofed/libibverbs/ |
H A D | device.c | 54 const char *__ibv_get_device_name(struct ibv_device *device); 55 __be64 __ibv_get_device_guid(struct ibv_device *device); 56 struct ibv_context *__ibv_open_device(struct ibv_device *device); 107 const char *__ibv_get_device_name(struct ibv_device *device) argument 109 return device->name; 113 __be64 __ibv_get_device_guid(struct ibv_device *device) argument 120 if (ibv_read_sysfs_file(device->ibdev_path, "node_guid", 176 struct ibv_context *__ibv_open_device(struct ibv_device *device) argument 178 struct verbs_device *verbs_device = verbs_get_device(device); 184 if (asprintf(&devpath, "/dev/%s", device [all...] |
/freebsd-11-stable/usr.sbin/fdformat/ |
H A D | fdformat.c | 117 "usage: fdformat [-F fill] [-f fmt] [-s fmtstr] [-nqvy] device"); 151 char *fmtstring, *device; local 209 device = malloc(strlen(argv[optind]) + sizeof(_PATH_DEV) + 1); 210 if (device == NULL) 212 strcpy(device, _PATH_DEV); 213 strcat(device, argv[optind]); 214 if (stat(device, &sb) == -1) { 215 free(device); 216 device = argv[optind]; /* let it fail below */ 219 device [all...] |
/freebsd-11-stable/contrib/groff/src/devices/xditview/ |
H A D | Makefile.sub | 8 device.$(OBJEXT) \ 17 $(srcdir)/device.c \ 26 $(srcdir)/device.h \
|
/freebsd-11-stable/sys/dev/xen/xenpci/ |
H A D | xenpci.c | 54 * This is used to find our platform device instance. 66 xenpci_irq_init(device_t device, struct xenpci_softc *scp) argument 70 error = BUS_SETUP_INTR(device_get_parent(device), device, 85 error = BUS_BIND_INTR(device_get_parent(device), device, 91 xen_hvm_set_callback(device); 138 * Probe - just check device ID.
|
/freebsd-11-stable/sys/i386/pci/ |
H A D | pci_pir.c | 53 * A link device. Loosely based on the ACPI PCI link device. This doesn't 68 int device; member in struct:pci_link_lookup 75 int device; member in struct:pci_dev_lookup 83 static int pci_pir_biosroute(int bus, int device, int func, int pin, 95 static uint8_t pci_pir_search_irq(int bus, int device, int pin); 185 * Find the link device associated with a PCI device in the table. 195 entry->pe_device == lookup->device && 263 * Look to see if any of the functions on the PCI device a 267 pci_pir_search_irq(int bus, int device, int pin) argument 477 pci_pir_biosroute(int bus, int device, int func, int pin, int irq) argument 492 pci_pir_route_interrupt(int bus, int device, int func, int pin) argument [all...] |
/freebsd-11-stable/usr.sbin/mlxcontrol/ |
H A D | util.c | 114 char *type, *device, *vendor, *revision; local 153 if (!mlx_scsi_inquiry(0, chn, targ, &vendor, &device, &revision)) { 154 printf("'%8.8s' '%16.16s' '%4.4s'", vendor, device, revision);
|
/freebsd-11-stable/contrib/libpcap/ |
H A D | pcap-linux.c | 73 * - The loopback device gives every packet twice; on 2.2[.x] kernels, 226 * The ioctl code to use to check whether a device is a bonding device. 305 char *device; /* device name */ member in struct:pcap_linux 312 int ifindex; /* interface index of device we're bound to */ 313 int lo_ifindex; /* interface index of the loopback device */ 315 char *mondevice; /* mac80211 monitor device we created */ 462 static int iface_get_id(int fd, const char *device, char *ebuf); 464 static int iface_get_mtu(int fd, const char *device, cha 497 pcap_create_interface(const char *device, char *ebuf) argument 592 get_mac80211_phydev(pcap_t *handle, const char *device, char *phydev_path, size_t phydev_max_pathlen) argument 667 nl80211_init(pcap_t *handle, struct nl80211_state *state, const char *device) argument 721 add_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, const char *device, const char *mondevice) argument 832 del_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, const char *device, const char *mondevice) argument 886 enter_rfmon_mode_mac80211(pcap_t *handle, int sock_fd, const char *device) argument 1031 is_bonding_device(int fd, const char *device) argument 1520 const char *device; local 3093 is_wifi(int sock_fd _U_ , const char *device) argument 3155 map_arphrd_to_dlt(pcap_t *handle, int sock_fd, int arptype, const char *device, int cooked_ok) argument 3641 const char *device = handle->opt.device; local 5770 iface_get_id(int fd, const char *device, char *ebuf) argument 5853 has_wext(int sock_fd, const char *device, char *ebuf) argument 5904 enter_rfmon_mode_wext(pcap_t *handle, int sock_fd, const char *device) argument 6520 enter_rfmon_mode(pcap_t *handle, int sock_fd, const char *device) argument 6583 iface_ethtool_get_ts_info(const char *device, pcap_t *handle, char *ebuf) argument 6695 iface_ethtool_get_ts_info(const char *device, pcap_t *handle, char *ebuf _U_) argument 6880 const char *device = handle->opt.device; local 7087 iface_bind_old(int fd, const char *device, char *ebuf) argument 7125 iface_get_mtu(int fd, const char *device, char *ebuf) argument 7148 iface_get_arptype(int fd, const char *device, char *ebuf) argument [all...] |