Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 560) sorted by relevance

12345678910>>...23

/illumos-gate/usr/src/cmd/hal/hald/
H A Ddevice.h53 void (*property_changed) (HalDevice *device,
58 void (*capability_added) (HalDevice *device,
61 void (*callouts_finished) (HalDevice *device);
63 void (*cancelled) (HalDevice *device);
76 typedef void (*HalDeviceAsyncCallback) (HalDevice *device,
81 typedef gboolean (*HalDevicePropertyForeachFn) (HalDevice *device,
102 void hal_device_set_udi (HalDevice *device,
105 void hal_device_add_capability (HalDevice *device,
107 gboolean hal_device_has_capability (HalDevice *device,
110 gboolean hal_device_has_property (HalDevice *device,
[all …]
H A Ddevice.c73 g_free (device->udi); in hal_device_finalize()
175 HalDevice *device; in hal_device_new() local
182 return device; in hal_device_new()
713 device->properties = g_slist_prepend (device->properties, prop); in hal_device_property_set_string()
747 device->properties = g_slist_prepend (device->properties, prop); in hal_device_property_set_int()
781 device->properties = g_slist_prepend (device->properties, prop); in hal_device_property_set_uint64()
815 device->properties = g_slist_prepend (device->properties, prop); in hal_device_property_set_bool()
849 device->properties = g_slist_prepend (device->properties, prop); in hal_device_property_set_double()
903 device->properties = g_slist_remove (device->properties, prop); in hal_device_property_remove()
1055 ai->device = g_object_ref (device); in hal_device_async_wait_property()
[all …]
H A Ddevice_store.c109 hal_device_store_init (HalDeviceStore *device) in hal_device_store_init() argument
158 device, key, added, removed); in emit_device_property_changed()
169 device, capability); in emit_device_capability_added()
184 g_object_ref (device)); in hal_device_store_add()
200 if (!g_slist_find (store->devices, device)) in hal_device_store_remove()
214 g_object_unref (device); in hal_device_store_remove()
257 HalDevice *device, in hal_device_store_print_foreach_fn() argument
261 hal_device_print (device); in hal_device_store_print_foreach_fn()
461 HalDevice *device; in hal_device_store_match_key_value_string_async() local
467 if (device != NULL || timeout == 0) { in hal_device_store_match_key_value_string_async()
[all …]
H A Dhald.c89 if (hal_device_inc_num_ready_addons (device)) { in addon_terminated()
90 if (hal_device_are_all_addons_ready (device)) { in addon_terminated()
91 manager_send_signal_device_added (device); in addon_terminated()
119 hal_device_inc_num_addons (device); in gdl_store_changed()
128 hald_runner_kill_device(device); in gdl_store_changed()
134 if (hal_device_are_all_addons_ready (device)) { in gdl_store_changed()
135 manager_send_signal_device_added (device); in gdl_store_changed()
138 if (hal_device_are_all_addons_ready (device)) { in gdl_store_changed()
139 manager_send_signal_device_removed (device); in gdl_store_changed()
149 if (hal_device_are_all_addons_ready (device)) { in gdl_property_changed()
[all …]
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dinstallgrub.c371 ig_device_t *device = &data.device; in handle_getinfo() local
640 bzero(device, sizeof (*device)); in init_device()
744 device->partition = device->slice; in get_start_sector()
916 device->disk_fd = open(device->path, O_RDWR); in get_disk_fd()
918 device->path_p0 = strdup(device->path); in get_disk_fd()
982 ig_device_t *device = &install->device; in write_stage2() local
1040 ig_device_t *device = &install->device; in write_stage1() local
1106 ig_device_t *device = &dest->device; in read_stage2_from_file() local
1177 ig_device_t *device = &install->device; in prepare_stage1() local
1297 ig_device_t *device = &data->device; in is_update_necessary() local
[all …]
/illumos-gate/usr/src/cmd/fm/dicts/
H A DPCIEX.dict29 fault.io.pciex.device-interr=0
30 fault.io.pciex.device-interr fault.io.pciex.device-invreq=1
34 fault.io.pci.device-invreq=5
35 fault.io.pci.device-invreq fault.io.pciex.device-interr=6
36 fault.io.pci.device-interr fault.io.pciex.device-invreq=7
38 fault.io.pci.device-noresp fault.io.pciex.device-invreq=9
39 fault.io.pci.device-invreq fault.io.pciex.device-noresp=10
40 fault.io.pci.bus-linkerr fault.io.pci.device-interr fault.io.pciex.device-interr=11
41 fault.io.pciex.bus-noresp fault.io.pciex.device-interr fault.io.pciex.device-noresp=12
43 …rr fault.io.pciex.bus-noresp fault.io.pciex.device-interr fault.io.pciex.device-invreq fault.io.pc…
[all …]
H A DPCIEX.po28 # keys: fault.io.pciex.device-interr
44 # keys: fault.io.pciex.device-interr fault.io.pciex.device-invreq
108 # keys: fault.io.pci.device-invreq
124 # keys: fault.io.pci.device-invreq fault.io.pciex.device-interr
140 # keys: fault.io.pci.device-interr fault.io.pciex.device-invreq
172 # keys: fault.io.pci.device-noresp fault.io.pciex.device-invreq
188 # keys: fault.io.pci.device-invreq fault.io.pciex.device-noresp
204 # keys: fault.io.pci.bus-linkerr fault.io.pci.device-interr fault.io.pciex.device-interr
220 # keys: fault.io.pciex.bus-noresp fault.io.pciex.device-interr fault.io.pciex.device-noresp
252 …rr fault.io.pciex.bus-noresp fault.io.pciex.device-interr fault.io.pciex.device-invreq fault.io.pc…
[all …]
H A DPCI.po53 msgstr "One or more device instances may be disabled."
76 # keys: fault.io.pci.device
89 … <EVENT_ID> to identify the \nsuspected device(s).\n\nSchedule a repair procedure to replace the a…
92 # keys: defect.io.pci.driver fault.io.pci.device
108 # keys: fault.io.pci.bus fault.io.pci.device
140 # keys: fault.io.pci.device-interr
172 # keys: fault.io.pci.device-invreq fault.io.pci.device-noresp
188 # keys: fault.io.pci.device-interr fault.io.pci.device-invreq
204 # keys: fault.io.pci.device-noresp
236 # keys: fault.io.pci.device-interr-corr
[all …]
H A DSUN4U.dict69 fault.io.datapath fault.io.pci.device=40
77 fault.io.hbus fault.io.pci.device=48
79 fault.io.hbus fault.io.pci.bus fault.io.pci.device=50
85 fault.io.datapath fault.io.hbus fault.io.pci.device=56
93 fault.io.pci.device fault.io.schizo=64
109 fault.io.hbus fault.io.pci.device fault.io.schizo=80
125 fault.io.pci.device fault.io.xmits=96
141 fault.io.hbus fault.io.pci.device fault.io.xmits=112
201 fault.io.pci.device fault.io.psycho=172
233 fault.io.pci.device fault.io.tomatillo=204
[all …]
H A DPCI.dict32 fault.io.pci.device=3
33 defect.io.pci.driver fault.io.pci.device=4
34 fault.io.pci.bus fault.io.pci.device=5
35 defect.io.pci.driver fault.io.pci.bus fault.io.pci.device=6
36 fault.io.pci.device-interr=7
37 fault.io.pci.bus-linkerr fault.io.pci.device-interr=8
38 fault.io.pci.device-invreq fault.io.pci.device-noresp=9
39 fault.io.pci.device-interr fault.io.pci.device-invreq=10
40 fault.io.pci.device-noresp=11
42 fault.io.pci.device-interr-corr=13
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dpci_mech1.c50 pci_mech1_getb(int bus, int device, int function, int reg) in pci_mech1_getb() argument
53 if (device == PCI_MECH1_SPEC_CYCLE_DEV && in pci_mech1_getb()
63 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg)); in pci_mech1_getb()
70 pci_mech1_getw(int bus, int device, int function, int reg) in pci_mech1_getw() argument
74 if (device == PCI_MECH1_SPEC_CYCLE_DEV && in pci_mech1_getw()
84 outl(PCI_CONFADD, PCI_CADDR1(bus, device, function, reg)); in pci_mech1_getw()
91 pci_mech1_getl(int bus, int device, int function, int reg) in pci_mech1_getl() argument
95 if (device == PCI_MECH1_SPEC_CYCLE_DEV && in pci_mech1_getl()
114 if (device == PCI_MECH1_SPEC_CYCLE_DEV && in pci_mech1_putb()
132 if (device == PCI_MECH1_SPEC_CYCLE_DEV && in pci_mech1_putw()
[all …]
H A Dpci_mech2.c76 pci_mech2_getb(int bus, int device, int function, int reg) in pci_mech2_getb() argument
81 if (device >= PCI_MAX_DEVS_2 || reg > pci_iocfg_max_offset) in pci_mech2_getb()
85 val = inb(PCI_CADDR2(device, reg)); in pci_mech2_getb()
92 pci_mech2_getw(int bus, int device, int function, int reg) in pci_mech2_getw() argument
97 if (device >= PCI_MAX_DEVS_2 || reg > pci_iocfg_max_offset) in pci_mech2_getw()
101 val = inw(PCI_CADDR2(device, reg)); in pci_mech2_getw()
108 pci_mech2_getl(int bus, int device, int function, int reg) in pci_mech2_getl() argument
117 val = inl(PCI_CADDR2(device, reg)); in pci_mech2_getl()
132 outb(PCI_CADDR2(device, reg), val); in pci_mech2_putb()
145 outw(PCI_CADDR2(device, reg), val); in pci_mech2_putw()
[all …]
H A Dpci_mech1_amd.c96 pci_mech1_amd_getb(int bus, int device, int function, int reg) in pci_mech1_amd_getb() argument
100 if (device == PCI_MECH1_SPEC_CYCLE_DEV && in pci_mech1_amd_getb()
110 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg)); in pci_mech1_amd_getb()
117 pci_mech1_amd_getw(int bus, int device, int function, int reg) in pci_mech1_amd_getw() argument
121 if (device == PCI_MECH1_SPEC_CYCLE_DEV && in pci_mech1_amd_getw()
131 outl(PCI_CONFADD, PCI_CADDR1_ECS(bus, device, function, reg)); in pci_mech1_amd_getw()
138 pci_mech1_amd_getl(int bus, int device, int function, int reg) in pci_mech1_amd_getl() argument
142 if (device == PCI_MECH1_SPEC_CYCLE_DEV && in pci_mech1_amd_getl()
161 if (device == PCI_MECH1_SPEC_CYCLE_DEV && in pci_mech1_amd_putb()
175 if (device == PCI_MECH1_SPEC_CYCLE_DEV && in pci_mech1_amd_putw()
[all …]
H A Dpci_neptune.c140 pci_neptune_getb(int bus, int device, int function, int reg) in pci_neptune_getb() argument
146 val = pci_mech1_getb(bus, device, function, reg); in pci_neptune_getb()
153 pci_neptune_getw(int bus, int device, int function, int reg) in pci_neptune_getw() argument
159 val = pci_mech1_getw(bus, device, function, reg); in pci_neptune_getw()
166 pci_neptune_getl(int bus, int device, int function, int reg) in pci_neptune_getl() argument
172 val = pci_mech1_getl(bus, device, function, reg); in pci_neptune_getl()
179 pci_neptune_putb(int bus, int device, int function, int reg, uint8_t val) in pci_neptune_putb() argument
183 pci_mech1_putb(bus, device, function, reg, val); in pci_neptune_putb()
189 pci_neptune_putw(int bus, int device, int function, int reg, uint16_t val) in pci_neptune_putw() argument
193 pci_mech1_putw(bus, device, function, reg, val); in pci_neptune_putw()
[all …]
/illumos-gate/usr/src/cmd/boot/installboot/sparc/
H A Dinstallboot.c90 ib_device_t *device = &data->device; in read_bootblock_from_file() local
268 ib_device_t *device = &data->device; in is_update_necessary() local
338 ib_device_t *device = &data->device; in prepare_bootblock() local
386 ib_device_t *device = &data->device; in write_zfs_bootblock() local
426 ib_device_t *device = &data->device; in write_bootblock() local
456 device->fd = open(device->path, O_RDWR); in open_device()
482 bzero(device, sizeof (*device)); in init_device()
483 device->fd = -1; in init_device()
502 bzero(device, sizeof (*device)); in cleanup_device()
558 src->device.path, dest->device.path); in propagate_bootblock()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ofs/
H A Dsol_kverbs.c218 llist_head_init(&device->list, device); in ofs_async_handler()
233 ibt_set_hca_private(device->hca_hdl, device); in ofs_async_handler()
249 ibt_set_hca_private(device->hca_hdl, device); in ofs_async_handler()
404 llist_head_init(&device->list, device); in ib_register_client()
431 ibt_set_hca_private(device->hca_hdl, device); in ib_register_client()
725 "invalid device state (%d)", device, device->reg_state); in ib_query_device()
816 device); in ib_alloc_pd()
825 device, device->reg_state); in ib_alloc_pd()
836 pd->device = device; in ib_alloc_pd()
982 cq->device = device; in ib_create_cq()
[all …]
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dports.c168 char *device; in open_direct() local
193 device = pp->device; in open_direct()
194 if (is_printer_uri(device) == 0) { in open_direct()
201 device = strstr(device, "://"); in open_direct()
202 if (device != NULL) in open_direct()
203 device = strchr(device + 3, '/'); in open_direct()
205 if ((device == NULL) || (access(device, F_OK) < 0)) in open_direct()
206 device = "/dev/null"; in open_direct()
218 if (access(device, R_OK) == 0) in open_direct()
245 execlog("lock error: %s\n", pp->device); in open_direct()
[all …]
/illumos-gate/usr/src/cmd/devinfo/
H A Ddevinfo.c73 char *device; in main() local
82 device = optarg; in main()
86 device = optarg; in main()
103 device, strerror(errno)); in main()
110 (void) warn(device, in main()
113 (void) warn(device, in main()
119 devinfo(&geom, fd, device); in main()
122 partinfo(fd, device); in main()
128 partinfo(int fd, char *device) in partinfo() argument
147 device, maj, min, in partinfo()
[all …]
/illumos-gate/usr/src/uts/common/io/
H A Ddcopy.c328 dcopy_device_handle_t device; in dcopy_free() local
351 device->dc_removing_cnt--; in dcopy_free()
611 device = kmem_zalloc(sizeof (*device), KM_SLEEP); in dcopy_device_register()
613 device->dc_info = *info; in dcopy_device_register()
614 device->dc_removing_cnt = 0; in dcopy_device_register()
615 device->dc_cb = info->di_cb; in dcopy_device_register()
688 *handle = device; in dcopy_device_register()
710 kmem_free(device, sizeof (*device)); in dcopy_device_register()
730 device = *handle; in dcopy_device_unregister()
749 device->dc_removing_cnt++; in dcopy_device_unregister()
[all …]
/illumos-gate/usr/src/lib/libpkg/common/
H A Ddstream.c99 int ds_ginit(char *device);
185 ds_readbuf(char *device) in ds_readbuf() argument
203 if (ds_ginit(device) < 0) { in ds_readbuf()
321 if (ds_ginit(device) < 0) { in ds_init()
369 if (ds_ginit(device) < 0) { in ds_init()
419 ds_device = device; in ds_init()
601 ds_getnextvol(char *device) in ds_getnextvol() argument
615 if (ds_ginit(device) < 0) { in ds_getnextvol()
628 ds_skip(char *device, int nskip) in ds_skip() argument
656 ds_skiptoend(char *device) in ds_skiptoend() argument
[all …]
/illumos-gate/usr/src/test/zfs-tests/include/
H A Dblkdev.shlib68 # Check if the given device is physical device
73 device=${device#$DEV_RDSKDIR}
86 # Check if the given device is a real device (ie SCSI device)
101 # Check if the given device is a loop device
138 # on whether the device is a real, multipath, or loop device.
201 typeset device=$1
205 device=${device%/*}
210 echo $device
221 typeset device=$1
237 echo $device
[all …]
/illumos-gate/usr/src/cmd/bhyve/
H A Dpci_hostbridge.c69 u_int vendor, device; in pci_hostbridge_init() local
73 device = 0x1275; /* NetApp */ in pci_hostbridge_init()
75 vendor = device = 0; in pci_hostbridge_init()
83 device = strtol(value, NULL, 0); in pci_hostbridge_init()
88 if (model != NULL && (vendor != 0 || device != 0)) { in pci_hostbridge_init()
92 } else if ((vendor != 0 && device == 0) || in pci_hostbridge_init()
93 (vendor == 0 && device != 0)) { in pci_hostbridge_init()
98 if (model == NULL && vendor == 0 && device == 0) in pci_hostbridge_init()
108 device = pci_hb_models[i].phm_device; in pci_hostbridge_init()
128 if (vendor == 0x8086 && (device == 0x1237 || device == 0x29b0)) { in pci_hostbridge_init()
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/files/sparc/sun4v/
H A Dn2piu.esc151 event ereport.io.device.nf-device@niu/niufn;
225 event error.io.device.f-device@niu/niufn;
226 event error.io.device.nf-device@niu/niufn;
235 error.io.device.f-device@niu/niufn,
236 error.io.device.nf-device@niu/niufn;
246 prop error.io.device.f-device@niu/niufn (1)->
254 prop error.io.device.f-device@niu/niufn (1)->
260 trip=ereport.io.device.nf-device@niu/niufn;
265 prop error.io.device.nf-device@niu/niufn (1)->
266 ereport.io.device.nf-device@niu/niufn;
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/files/common/
H A Dstorage.esc36 event fault.device.ethernet.fail@controller;
38 event fault.device.fan.fail@fan;
39 event fault.device.fan.fail@fanmodule;
40 event fault.device.psu.fail@psu;
41 event fault.device.psu.fail@psu;
85 event ereport.chassis.device.psu.ot@psu;
144 prop fault.device.fan.fail@fanmodule ->
196 prop fault.device.fan.fail@fan ->
198 ereport.chassis.post.device.fail@fan;
259 prop fault.device.psu.fail@psu ->
[all …]
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_lock.c197 if ((strcmp(device, list->req[i].device) != 0) || in find_req_entry()
290 char *device; in info_req_add() local
318 (void) strcpy(req->device, device); in info_req_add()
322 free(device); in info_req_add()
392 if (EQUAL(device, dr_dev) || DESCENDENT(device, dr_dev)) { in check_lock()
441 char *device; in rsrc_check_lock_conflicts() local
445 free(device); in rsrc_check_lock_conflicts()
675 char *device; in dr_req_add() local
728 (void) strcpy(req->device, device); in dr_req_add()
745 free(device); in dr_req_add()
[all …]

12345678910>>...23