Searched refs:device (Results 151 - 175 of 834) sorted by relevance

1234567891011>>

/freebsd-10.0-release/usr.sbin/bsdconfig/share/
H A DMakefile8 FILES= common.subr device.subr dialog.subr keymap.subr \
/freebsd-10.0-release/usr.sbin/config/
H A Dmkheaders.c53 struct device *dp;
59 warnx("Error: device \"%s\" is unknown",
H A Dconfig.h82 struct device { struct
84 char *d_name; /* name of device (e.g. rk11) */
86 STAILQ_ENTRY(device) d_next; /* Next one in list */
184 extern STAILQ_HEAD(device_head, device) dtab;
/freebsd-10.0-release/sys/dev/isci/scil/
H A Dsati_test_unit_ready.c90 * - 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 Dscif_sas_request.c84 * @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 Dsati_unmap.c87 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-10.0-release/usr.sbin/bluetooth/hcseriald/
H A Dhcseriald.c61 char *device = NULL, *name = NULL; local
76 device = optarg;
96 if (device == NULL || name == NULL)
101 /* Open device */
102 n = open_device(device, speed, name);
147 /* Remove PID file and close device */
157 open_device(char const *device, speed_t speed, char const *name) argument
165 /* Open terminal device and setup H4 line discipline */
166 fd = open(device, O_RDWR|O_NOCTTY);
169 device, strerro
[all...]
/freebsd-10.0-release/contrib/libpcap/
H A Dpcap-dos.c98 static struct device *handle_to_device [20];
108 static int ndis_probe (struct device *dev);
109 static int pkt_probe (struct device *dev);
119 * These are the device we always support
121 static struct device ndis_dev = {
126 NDIS_NEXT_DEV, /* NULL or a 32-bit device */
130 static struct device pkt_dev = {
139 static struct device *get_device (int fd)
146 pcap_t *pcap_create (const char *device, char *ebuf) argument
150 p = pcap_create_common(device, ebu
480 pcap_lookupnet(const char *device, bpf_u_int32 *localnet, bpf_u_int32 *netmask, char *errbuf) argument
[all...]
H A Dpcap-linux.c76 * - The loopback device gives every packet twice; on 2.2[.x] kernels,
331 static int iface_get_id(int fd, const char *device, char *ebuf);
333 static int iface_get_mtu(int fd, const char *device, char *ebuf);
334 static int iface_get_arptype(int fd, const char *device, char *ebuf);
338 static int has_wext(int sock_fd, const char *device, char *ebuf);
341 const char *device);
344 static int iface_bind_old(int fd, const char *device, char *ebuf);
360 pcap_create_interface(const char *device, char *ebuf) argument
364 handle = pcap_create_common(device, ebuf);
378 * XXX - we can't ask a device whethe
445 get_mac80211_phydev(pcap_t *handle, const char *device, char *phydev_path, size_t phydev_max_pathlen) argument
521 nl80211_init(pcap_t *handle, struct nl80211_state *state, const char *device) argument
571 add_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, const char *device, const char *mondevice) argument
667 del_mon_if(pcap_t *handle, int sock_fd, struct nl80211_state *state, const char *device, const char *mondevice) argument
721 enter_rfmon_mode_mac80211(pcap_t *handle, int sock_fd, const char *device) argument
1168 const char *device; local
2789 const char *device = handle->opt.source; local
4053 iface_get_id(int fd, const char *device, char *ebuf) argument
4136 has_wext(int sock_fd, const char *device, char *ebuf) argument
4182 enter_rfmon_mode_wext(pcap_t *handle, int sock_fd, const char *device) argument
4811 enter_rfmon_mode(pcap_t *handle, int sock_fd, const char *device) argument
4960 const char *device = handle->opt.source; local
5153 iface_bind_old(int fd, const char *device, char *ebuf) argument
5191 iface_get_mtu(int fd, const char *device, char *ebuf) argument
5214 iface_get_arptype(int fd, const char *device, char *ebuf) argument
[all...]
/freebsd-10.0-release/sbin/savecore/
H A Dsavecore.c101 printheader(FILE *f, const struct kerneldumpheader *h, const char *device, argument
108 fprintf(f, "Dump header from device %s\n", device);
276 "no dump, not enough free space on device (%lld available, need %lld)",
291 DoRegularFile(int fd, off_t dumpsize, char *buf, const char *device, argument
308 "WARNING: EOF on dump device");
310 syslog(LOG_ERR, "read error on %s: %m", device);
386 const char *device, const char *filename, FILE *fp)
396 device);
405 "WARNING: EOF on dump device");
385 DoTextdumpFile(int fd, off_t dumpsize, off_t lasthd, char *buf, const char *device, const char *filename, FILE *fp) argument
431 DoFile(const char *savedir, const char *device) argument
[all...]
/freebsd-10.0-release/lib/libcam/
H A Dcamlib.h76 * 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-10.0-release/sbin/camcontrol/
H A Dcamcontrol.c157 u_int8_t device; member in struct:ata_res_pass16
255 static int getdevlist(struct cam_device *device);
259 static int testunitready(struct cam_device *device, int retry_count,
261 static int scsistart(struct cam_device *device, int startstop, int loadeject,
263 static int scsiinquiry(struct cam_device *device, int retry_count, int timeout);
264 static int scsiserial(struct cam_device *device, int retry_count, int timeout);
265 static int camxferrate(struct cam_device *device);
273 static int readdefects(struct cam_device *device, int argc, char **argv,
275 static void modepage(struct cam_device *device, int argc, char **argv,
277 static int scsicmd(struct cam_device *device, in
354 getdevlist(struct cam_device *device) argument
617 testunitready(struct cam_device *device, int retry_count, int timeout, int quiet) argument
671 scsistart(struct cam_device *device, int startstop, int loadeject, int retry_count, int timeout) argument
749 scsidoinquiry(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout) argument
797 scsiinquiry(struct cam_device *device, int retry_count, int timeout) argument
912 scsiserial(struct cam_device *device, int retry_count, int timeout) argument
1001 camxferrate(struct cam_device *device) argument
1430 scsi_cam_pass_16_send(struct cam_device *device, union ccb *ccb, int quiet) argument
1485 ata_cam_send(struct cam_device *device, union ccb *ccb, int quiet) argument
1531 ata_do_pass_16(struct cam_device *device, union ccb *ccb, int retries, u_int32_t flags, u_int8_t protocol, u_int8_t ata_flags, u_int8_t tag_action, u_int8_t command, u_int8_t features, u_int64_t lba, u_int8_t sector_count, u_int8_t *data_ptr, u_int16_t dxfer_len, int timeout, int quiet) argument
1572 ata_try_pass_16(struct cam_device *device) argument
1591 ata_do_28bit_cmd(struct cam_device *device, union ccb *ccb, int retries, u_int32_t flags, u_int8_t protocol, u_int8_t tag_action, u_int8_t command, u_int8_t features, u_int32_t lba, u_int8_t sector_count, u_int8_t *data_ptr, u_int16_t dxfer_len, int timeout, int quiet) argument
1626 ata_do_cmd(struct cam_device *device, union ccb *ccb, int retries, u_int32_t flags, u_int8_t protocol, u_int8_t ata_flags, u_int8_t tag_action, u_int8_t command, u_int8_t features, u_int64_t lba, u_int8_t sector_count, u_int8_t *data_ptr, u_int16_t dxfer_len, int timeout, int force48bit) argument
1719 atahpa_proc_resp(struct cam_device *device, union ccb *ccb, int is48bit, u_int64_t *hpasize) argument
1771 ata_read_native_max(struct cam_device *device, int retry_count, u_int32_t timeout, union ccb *ccb, struct ata_params *parm, u_int64_t *hpasize) argument
1812 atahpa_set_max(struct cam_device *device, int retry_count, u_int32_t timeout, union ccb *ccb, int is48bit, u_int64_t maxsize, int persist) argument
1856 atahpa_password(struct cam_device *device, int retry_count, u_int32_t timeout, union ccb *ccb, int is48bit, struct ata_set_max_pwd *pwd) argument
1890 atahpa_lock(struct cam_device *device, int retry_count, u_int32_t timeout, union ccb *ccb, int is48bit) argument
1923 atahpa_unlock(struct cam_device *device, int retry_count, u_int32_t timeout, union ccb *ccb, int is48bit, struct ata_set_max_pwd *pwd) argument
1957 atahpa_freeze_lock(struct cam_device *device, int retry_count, u_int32_t timeout, union ccb *ccb, int is48bit) argument
1991 ata_do_identify(struct cam_device *device, int retry_count, int timeout, union ccb *ccb, struct ata_params** ident_bufp) argument
2117 ataidentify(struct cam_device *device, int retry_count, int timeout) argument
2224 atasecurity_freeze(struct cam_device *device, union ccb *ccb, int retry_count, u_int32_t timeout, int quiet) argument
2248 atasecurity_unlock(struct cam_device *device, union ccb *ccb, int retry_count, u_int32_t timeout, struct ata_security_password *pwd, int quiet) argument
2273 atasecurity_disable(struct cam_device *device, union ccb *ccb, int retry_count, u_int32_t timeout, struct ata_security_password *pwd, int quiet) argument
2298 atasecurity_erase_confirm(struct cam_device *device, struct ata_params* ident_buf) argument
2329 atasecurity_erase(struct cam_device *device, union ccb *ccb, int retry_count, u_int32_t timeout, u_int32_t erase_timeout, struct ata_security_password *pwd, int quiet) argument
2382 atasecurity_set_password(struct cam_device *device, union ccb *ccb, int retry_count, u_int32_t timeout, struct ata_security_password *pwd, int quiet) argument
2486 atahpa_set_confirm(struct cam_device *device, struct ata_params* ident_buf, u_int64_t maxsize, int persist) argument
2517 atahpa(struct cam_device *device, int retry_count, int timeout, int argc, char **argv, char *combinedopt) argument
2716 atasecurity(struct cam_device *device, int retry_count, int timeout, int argc, char **argv, char *combinedopt) argument
3242 struct cam_device *device; local
3329 readdefects(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout) argument
3694 mode_sense(struct cam_device *device, int mode_page, int page_control, int dbd, int retry_count, int timeout, u_int8_t *data, int datalen) argument
3744 mode_select(struct cam_device *device, int save_pages, int retry_count, int timeout, u_int8_t *data, int datalen) argument
3795 modepage(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout) argument
3846 scsicmd(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout) argument
4335 tagcontrol(struct cam_device *device, int argc, char **argv, char *combinedopt) argument
4451 cts_print(struct cam_device *device, struct ccb_trans_settings *cts) argument
4592 get_cpi(struct cam_device *device, struct ccb_pathinq *cpi) argument
4631 get_cgd(struct cam_device *device, struct ccb_getdev *cgd) argument
4668 get_disk_type(struct cam_device *device) argument
4840 get_print_cts(struct cam_device *device, int user_settings, int quiet, struct ccb_trans_settings *cts) argument
4896 ratecontrol(struct cam_device *device, int retry_count, int timeout, int argc, char **argv, char *combinedopt) argument
5253 scsiformat(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout) argument
5545 scsisanitize(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout) argument
5941 scsireportluns(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout) argument
6184 scsireadcapacity(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout) argument
6393 smpcmd(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout) argument
6589 smpreportgeneral(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout) argument
6727 smpphycontrol(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout) argument
6993 smpmaninfo(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout) argument
7370 smpphylist(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout) argument
7627 atapm(struct cam_device *device, int argc, char **argv, char *combinedopt, int retry_count, int timeout) argument
7959 char *device = NULL; local
[all...]
/freebsd-10.0-release/contrib/ofed/libibverbs/src/
H A Ddevice.c97 const char *__ibv_get_device_name(struct ibv_device *device) argument
99 return device->name;
103 uint64_t __ibv_get_device_guid(struct ibv_device *device) argument
110 if (ibv_read_sysfs_file(device->ibdev_path, "node_guid",
125 struct ibv_context *__ibv_open_device(struct ibv_device *device) argument
131 if (asprintf(&devpath, "/dev/%s", device->dev_name) < 0)
144 context = device->ops.alloc_context(device, cmd_fd);
148 context->device = device;
[all...]
/freebsd-10.0-release/games/morse/
H A Dmorse.c275 "usage: morse [-els] [-d device] [-w speed] [-c speed] [-f frequency] [string ...]\n"
283 static char *device; /* for tty-controlled generator */ variable
300 "usage: morse [-elps] [-d device] [-w speed] [-c speed] [-f frequency] [string ...]\n"
317 device = optarg;
349 if ((pflag || device) && (sflag || lflag)) {
355 if ((pflag || device) && ((wpm < 1) || (wpm > 60) || (cpm < 1) || (cpm > 60))) {
359 if ((pflag || device) && (freq == 0))
370 if (device) {
371 if ((line = open(device, O_WRONLY | O_NONBLOCK)) == -1) {
394 if (pflag || device) {
[all...]
/freebsd-10.0-release/sys/dev/etherswitch/
H A Dmiiproxy.c68 * The rendevous data structures and functions allow two device endpoints to
70 * endpoint. The proxy has to know the device name of the target that it
88 device_t device; member in struct:rendevous_endpoint
113 ep->device = NULL;
122 * indicates the name of the device that is the target endpoint for this
139 e->proxy.device = dev;
146 e->proxy.device = dev;
167 e->target.device = dev;
174 e->target.device = dev;
190 if (e->proxy.device
[all...]
/freebsd-10.0-release/usr.sbin/fdformat/
H A Dfdformat.c115 "usage: fdformat [-F fill] [-f fmt] [-s fmtstr] [-nqvy] device");
149 char *fmtstring, *device; local
207 device = malloc(strlen(argv[optind]) + sizeof(_PATH_DEV) + 1);
208 if (device == 0)
210 strcpy(device, _PATH_DEV);
211 strcat(device, argv[optind]);
212 if (stat(device, &sb) == -1) {
213 free(device);
214 device = argv[optind]; /* let it fail below */
217 device
[all...]
/freebsd-10.0-release/sys/dev/isci/
H A Disci.c114 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(isci->device,
159 isci_attach(device_t device) argument
162 struct isci_softc *isci = DEVICE2SOFTC(device);
165 isci->device = device;
173 isci_detach(device);
184 isci_detach(device_t device) argument
407 isci_allocate_dma_buffer(device_t device, struct ISCI_MEMORY *memory) argument
[all...]
H A Disci_interrupt.c58 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 pci_alloc_msix(isci->device, &isci->num_interrupts);
/freebsd-10.0-release/cddl/contrib/dtracetoolkit/Bin/
H A Diosnoop11 # USAGE: iosnoop [-a|-A|-DeghiNostv] [-d device] [-f filename]
19 # -e # print device name
21 # -i # print device instance
27 # -d device # instance name to snoop (eg, dad0)
50 # DEVICE device name
51 # INS device instance number
107 opt_dtime=0; filter=0; device=.; filename=.; mount=.; pname=.; pid=0
116 d) opt_device=1; device=$OPTARG ;;
131 USAGE: iosnoop [-a|-A|-DeghiNostv] [-d device] [-f filename]
137 -e # print device nam
[all...]
/freebsd-10.0-release/cddl/contrib/dtracetoolkit/
H A Diosnoop11 # USAGE: iosnoop [-a|-A|-DeghiNostv] [-d device] [-f filename]
19 # -e # print device name
21 # -i # print device instance
27 # -d device # instance name to snoop (eg, dad0)
50 # DEVICE device name
51 # INS device instance number
107 opt_dtime=0; filter=0; device=.; filename=.; mount=.; pname=.; pid=0
116 d) opt_device=1; device=$OPTARG ;;
131 USAGE: iosnoop [-a|-A|-DeghiNostv] [-d device] [-f filename]
137 -e # print device nam
[all...]
/freebsd-10.0-release/sys/ofed/drivers/infiniband/hw/mlx4/
H A Dsysfs.c45 static ssize_t show_admin_alias_guid(struct device *dev,
71 static ssize_t store_admin_alias_guid(struct device *dev,
130 static ssize_t show_port_gid(struct device *dev,
157 static ssize_t show_phys_port_pkey(struct device *dev,
183 ssize_t (*show)(struct device *dev,
186 ssize_t (*store)(struct device *dev,
219 int add_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, argument
222 struct mlx4_ib_iov_port *port = &device->iov_ports[port_num - 1];
232 void del_sysfs_port_mcg_attr(struct mlx4_ib_dev *device, int port_num, argument
235 struct mlx4_ib_iov_port *port = &device
240 add_port_entries(struct mlx4_ib_dev *device, int port_num) argument
683 register_pkey_tree(struct mlx4_ib_dev *device) argument
696 unregister_pkey_tree(struct mlx4_ib_dev *device) argument
768 unregister_alias_guid_tree(struct mlx4_ib_dev *device) argument
792 mlx4_ib_device_unregister_sysfs(struct mlx4_ib_dev *device) argument
[all...]
/freebsd-10.0-release/contrib/ntp/ntpd/
H A Drefclock_pcf.c22 * device driver be installed. A device driver for Linux is available at
60 * pcf_start - open the device and initialize data for processing
70 char device[128]; local
73 * Open device file for reading.
75 (void)sprintf(device, DEVICE, unit);
76 fd = open(device, O_RDONLY);
78 (void)sprintf(device, OLDDEVICE, unit);
79 fd = open(device, O_RDONLY);
83 printf ("starting PCF with device
[all...]
/freebsd-10.0-release/sys/cam/
H A Dcam_xpt_internal.h40 typedef void (*xpt_release_device_func)(struct cam_ed *device);
45 struct cam_ed *device,
58 * Structure for queueing a device in a run queue.
64 struct cam_ed *device; member in struct:cam_ed_qinfo
68 * The CAM EDT (Existing Device Table) contains the device information for
70 * cam_ed structure for each device on the bus.
80 * work on this device.
86 void *quirk; /* Oddities about this device */
107 * queuing for a device.
133 * identify, and removed when a device fail
171 struct cam_ed *device; member in struct:cam_path
[all...]
/freebsd-10.0-release/usr.sbin/mlxcontrol/
H A Dutil.c112 char *type, *device, *vendor, *revision; local
151 if (!mlx_scsi_inquiry(0, chn, targ, &vendor, &device, &revision)) {
152 printf("'%8.8s' '%16.16s' '%4.4s'", vendor, device, revision);
/freebsd-10.0-release/contrib/libpcap/tests/
H A Dselpolltest.c59 register char *cp, *cmdbuf, *device; local
67 device = NULL;
82 device = optarg;
115 if (device == NULL) {
116 device = pcap_lookupdev(ebuf);
117 if (device == NULL)
121 pd = pcap_open_live(device, 65535, 0, 1000, ebuf);
126 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) {
145 printf("Listening on %s\n", device);

Completed in 134 milliseconds

1234567891011>>