Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 1745) sorted by relevance

12345678910>>...70

/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_hw.c53 ret = ddi_dev_nregs(dev->dip, &dev->num_bars); in oce_map_regs()
155 dev->fn = OCE_PCI_FUNC(dev); in oce_pci_init()
210 length, dev->pci_bus, dev->pci_device, dev->pci_function); in oce_get_bdf()
222 dev->vendor_id = pci_config_get16(dev->pci_cfg_handle, in oce_identify_hw()
224 dev->device_id = pci_config_get16(dev->pci_cfg_handle, in oce_identify_hw()
406 0, &dev->mac_addr[0], (uint32_t *)&dev->if_id); in oce_create_nw_interface()
428 ret = oce_set_flow_control(dev, dev->flow_control); in oce_create_nw_interface()
433 ret = oce_set_promiscuous(dev, dev->promisc); in oce_create_nw_interface()
448 (void) oce_if_del(dev, dev->if_id); in oce_delete_nw_interface()
543 dev->bmbx = oce_alloc_dma_buffer(dev, in oce_hw_init()
[all …]
H A Doce_main.c211 dev->dip = dip; in oce_attach()
244 ret = pci_config_setup(dev->dip, &dev->pci_cfg_handle); in oce_attach()
365 mac_link_update(dev->mac_handle, dev->link_status); in oce_attach()
411 DEV_LOCK(dev); in oce_detach()
414 oce_stop(dev); in oce_detach()
423 pcnt = oce_rx_pending(dev, dev->rq[qid], DEFAULT_DRAIN_TIME); in oce_detach()
465 oce_stop(dev); in oce_suspend()
620 dev->fm_caps = oce_get_prop(dev, (char *)fm_cap_name, in oce_get_params()
624 dev->tx_reclaim_threshold = oce_get_prop(dev, in oce_get_params()
631 dev->rx_rings = oce_get_prop(dev, (char *)rx_rings_name, in oce_get_params()
[all …]
H A Doce_gld.c100 mac_link_update(dev->mac_handle, dev->link_status); in oce_start()
110 oce_ei(dev); in oce_start()
113 oce_arm_eq(dev, dev->eq[qidx]->eq_id, 0, B_TRUE, B_FALSE); in oce_start()
133 oce_stop(dev); in oce_m_stop()
143 oce_di(dev); in oce_stop()
157 mac_link_update(dev->mac_handle, dev->link_status); in oce_stop()
180 DEV_LOCK(dev); in oce_m_multicast()
214 ret = oce_set_multicast_table(dev, dev->if_id, in oce_m_multicast()
257 ret = oce_del_mac(dev, dev->if_id, &dev->pmac_id); in oce_m_unicast()
266 ret = oce_add_mac(dev, dev->if_id, uca, &dev->pmac_id); in oce_m_unicast()
[all …]
H A Doce_intr.c72 ret = ddi_intr_get_nintrs(dev->dip, dev->intr_type, &nsupported); in oce_setup_intr()
80 ret = ddi_intr_get_navail(dev->dip, dev->intr_type, &navail); in oce_setup_intr()
99 dev->htable = kmem_zalloc(dev->hsize, KM_NOSLEEP); in oce_setup_intr()
106 ret = ddi_intr_alloc(dev->dip, dev->htable, dev->intr_type, in oce_setup_intr()
123 ret = ddi_intr_get_pri(dev->htable[0], &dev->intr_pri); in oce_setup_intr()
129 (void) ddi_intr_get_cap(dev->htable[0], &dev->intr_cap); in oce_setup_intr()
169 kmem_free(dev->htable, dev->hsize); in oce_teardown_intr()
242 (void) ddi_intr_block_enable(dev->htable, dev->num_vectors); in oce_ei()
254 oce_chip_ei(dev); in oce_ei()
280 oce_chip_di(dev); in oce_di()
[all …]
H A Doce_queue.c1141 dev->wq[qid] = oce_wq_init(dev, dev->tx_ring_size, in oce_init_txrx()
1150 dev->rq[0] = oce_rq_init(dev, dev->rx_ring_size, dev->rq_frag_size, in oce_init_txrx()
1157 dev->rq[qid] = oce_rq_init(dev, dev->rx_ring_size, in oce_init_txrx()
1181 oce_wq_fini(dev, dev->wq[qid]); in oce_fini_txrx()
1189 oce_rq_fini(dev, dev->rq[qid]); in oce_fini_txrx()
1217 dev->neqs > 1 ? dev->eq[1 + i] : dev->eq[0]) != 0) in oce_create_queues()
1220 mq = oce_mq_create(dev, dev->eq[0], 64); in oce_create_queues()
1237 oce_mq_del(dev, dev->mq); in oce_delete_queues()
1242 oce_rq_del(dev, dev->rq[i]); in oce_delete_queues()
1245 oce_wq_del(dev, dev->wq[i]); in oce_delete_queues()
[all …]
H A Doce_fm.c43 oce_fm_init(struct oce_dev *dev) in oce_fm_init() argument
51 oce_set_dma_fma_flags(dev->fm_caps); in oce_fm_init()
52 oce_set_reg_fma_flags(dev->fm_caps); in oce_fm_init()
54 (void) ddi_fm_init(dev->dip, &dev->fm_caps, &ibc); in oce_fm_init()
56 DDI_FM_ERRCB_CAP(dev->fm_caps)) { in oce_fm_init()
57 pci_ereport_setup(dev->dip); in oce_fm_init()
59 if (DDI_FM_ERRCB_CAP(dev->fm_caps)) { in oce_fm_init()
61 (void *)dev); in oce_fm_init()
73 oce_fm_fini(struct oce_dev *dev) in oce_fm_fini() argument
83 pci_ereport_teardown(dev->dip); in oce_fm_fini()
[all …]
H A Doce_stat.c52 struct oce_dev *dev; in oce_update_stats() local
61 dev = ksp->ks_private; in oce_update_stats()
63 port_stats = &dev->hw_stats->params.rsp.rx.port[dev->port_id]; in oce_update_stats()
66 if (dev->suspended) { in oce_update_stats()
202 dev->oce_kstats = kstat_create(OCE_MOD_NAME, dev->dev_id, "stats", in oce_stat_init()
213 dev->stats_dbuf = oce_alloc_dma_buffer(dev, in oce_stat_init()
223 dev->hw_stats = (struct mbx_get_nic_stats *)DBUF_VA(dev->stats_dbuf); in oce_stat_init()
318 dev->oce_kstats->ks_private = (void *)dev; in oce_stat_init()
334 oce_free_dma_buffer(dev, dev->stats_dbuf); in oce_stat_fini()
335 dev->hw_stats = NULL; in oce_stat_fini()
[all …]
H A Doce_mbx.c100 ASSERT(dev != NULL); in oce_mbox_init()
154 if (oce_fm_check_acc_handle(dev, dev->db_handle) != DDI_FM_OK) { in oce_mbox_wait()
201 if (oce_fm_check_acc_handle(dev, dev->db_handle) != DDI_FM_OK) { in oce_mbox_dispatch()
224 if (oce_fm_check_acc_handle(dev, dev->db_handle) != DDI_FM_OK) { in oce_mbox_dispatch()
233 if (oce_fm_check_dma_handle(dev, DBUF_DHDL(dev->bmbx)) != DDI_FM_OK) { in oce_mbox_dispatch()
282 ret = oce_fm_check_dma_handle(dev, DBUF_DHDL(dev->bmbx)); in oce_mbox_post()
807 bzero(&dev->hw_stats->params, sizeof (dev->hw_stats->params)); in oce_get_hw_stats()
923 DEV_LOCK(dev); in oce_get_flow_control()
925 DEV_UNLOCK(dev); in oce_get_flow_control()
928 DEV_UNLOCK(dev); in oce_get_flow_control()
[all …]
/illumos-gate/usr/src/uts/common/io/audio/drv/audiosolo/
H A Daudiosolo.c470 solo_dev_t *dev = pc->dev; in solo_set_mixsrc() local
486 solo_dev_t *dev = pc->dev; in solo_set_mono() local
505 solo_dev_t *dev = pc->dev; in solo_set_stereo() local
526 solo_dev_t *dev = pc->dev; in solo_set_bool() local
539 solo_dev_t *dev = pc->dev; in solo_get_value() local
565 pc->dev = dev; in solo_alloc_ctrl()
731 solo_dev_t *dev = e->dev; in solo_aud1_update() local
789 solo_dev_t *dev = e->dev; in solo_aud1_start() local
844 solo_dev_t *dev = e->dev; in solo_aud1_stop() local
854 solo_dev_t *dev = e->dev; in solo_aud2_update() local
[all …]
/illumos-gate/usr/src/uts/common/io/audio/drv/audioens/
H A Daudioens.c183 #define CLR8(dev, offset, v) PUT8(dev, offset, GET8(dev, offset) & ~(v)) argument
184 #define SET8(dev, offset, v) PUT8(dev, offset, GET8(dev, offset) | (v)) argument
185 #define CLR32(dev, offset, v) PUT32(dev, offset, GET32(dev, offset) & ~(v)) argument
186 #define SET32(dev, offset, v) PUT32(dev, offset, GET32(dev, offset) | (v)) argument
545 audioens_dev_t *dev = port->dev; in audioens_open() local
564 audioens_dev_t *dev = port->dev; in audioens_start() local
654 audioens_dev_t *dev = port->dev; in audioens_stop() local
673 audioens_dev_t *dev = port->dev; in audioens_count() local
841 dev->ac97 = ac97_alloc(dev->dip, audioens_rd97, audioens_wr97, dev); in audioens_init()
859 port->dev = dev; in audioens_init()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dconfig.c14 static int pci_probe(struct dev *dev, const char *type_name) in pci_probe() argument
37 find_pci(dev->type, &state->dev); in pci_probe()
55 dev->devid.vendor_id = htons(state->dev.vendor); in pci_probe()
56 dev->devid.device_id = htons(state->dev.dev_id); in pci_probe()
60 if (state->dev.driver->probe(dev, &state->dev)) { in pci_probe()
122 int probe(struct dev *dev) in probe() argument
135 memset(&dev->state, 0, sizeof(dev->state)); in probe()
138 dev->how_probe = pci_probe(dev, type_name); in probe()
144 dev->how_probe = isa_probe(dev, type_name); in probe()
159 void disable(struct dev *dev) in disable() argument
[all …]
/illumos-gate/usr/src/uts/common/io/audio/drv/audiols/
H A Daudiols.c312 audigyls_dev_t *dev = port->dev; in audigyls_open() local
336 audigyls_dev_t *dev = port->dev; in audigyls_start() local
380 audigyls_dev_t *dev = port->dev; in audigyls_stop() local
441 audigyls_dev_t *dev = port->dev; in audigyls_count() local
499 port->dev = dev; in audigyls_alloc_port()
608 kmem_free(dev, sizeof (*dev)); in audigyls_destroy()
847 OUTL(dev, GPIO, INL(dev, GPIO) | 0x400); in audigyls_configure_mixer()
890 audigyls_dev_t *dev = pc->dev; in audigyls_set_control() local
942 audigyls_dev_t *dev = pc->dev; in audigyls_get_control() local
960 pc->dev = dev; in audigyls_alloc_ctrl()
[all …]
/illumos-gate/usr/src/uts/common/io/audio/drv/audiopci/
H A Daudiopci.c289 audiopci_dev_t *dev = port->dev; in audiopci_init_port() local
395 audiopci_dev_t *dev = port->dev; in audiopci_start() local
421 audiopci_dev_t *dev = port->dev; in audiopci_stop() local
617 port->dev = dev; in audiopci_init()
734 kmem_free(dev, sizeof (*dev)); in audiopci_destroy()
889 audiopci_dev_t *dev = pc->dev; in audiopci_set_reclevel() local
911 audiopci_dev_t *dev = pc->dev; in audiopci_set_micboost() local
924 audiopci_dev_t *dev = pc->dev; in audiopci_set_monsrc() local
940 audiopci_dev_t *dev = pc->dev; in audiopci_set_recsrc() local
956 audiopci_dev_t *dev = pc->dev; in audiopci_set_volume() local
[all …]
/illumos-gate/usr/src/uts/common/io/yge/
H A Dyge.c553 dev->d_txqsize = (dev->d_ramsize * 1024) - dev->d_rxqsize; in yge_setup_rambuffer()
1029 kmem_free(dev->d_intrh, dev->d_intrsize); in yge_add_intr()
1039 kmem_free(dev->d_intrh, dev->d_intrsize); in yge_add_intr()
1049 kmem_free(dev->d_intrh, dev->d_intrsize); in yge_add_intr()
1239 dev->d_hw_id, dev->d_hw_rev); in yge_attach()
1248 dev->d_pmd = CSR_READ_1(dev, B2_PMD_TYP); in yge_attach()
1249 if (dev->d_pmd == 'L' || dev->d_pmd == 'S' || dev->d_pmd == 'P') in yge_attach()
3443 dev->d_port[0]->p_dev = dev; in yge_ddi_attach()
3445 dev->d_port[1]->p_dev = dev; in yge_ddi_attach()
3452 kmem_free(dev, sizeof (*dev)); in yge_ddi_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/audio/drv/audiocmi/
H A Daudiocmi.c96 cmpci_dev_t *dev = port->dev; in cmpci_open() local
121 cmpci_dev_t *dev = port->dev; in cmpci_start() local
217 cmpci_dev_t *dev = port->dev; in cmpci_stop() local
228 cmpci_dev_t *dev = port->dev; in cmpci_count() local
262 #define MONO(dev, ctl) min(dev->controls[ctl].value, 100) argument
444 cmpci_dev_t *dev = cc->dev; in cmpci_set_ctrl() local
462 cmpci_dev_t *dev = cc->dev; in cmpci_get_ctrl() local
485 cc->dev = dev; in cmpci_alloc_ctrl()
732 port->dev = dev; in cmpci_init()
865 kmem_free(dev, sizeof (*dev)); in cmpci_destroy()
[all …]
/illumos-gate/usr/src/uts/common/io/audio/drv/audiop16x/
H A Daudiop16x.c234 p16x_dev_t *dev = port->dev; in p16x_start() local
265 p16x_dev_t *dev = port->dev; in p16x_stop() local
314 p16x_dev_t *dev = port->dev; in p16x_count() local
381 adev = dev->adev; in p16x_alloc_port()
384 port->dev = dev; in p16x_alloc_port()
487 kmem_free(dev, sizeof (*dev)); in p16x_destroy()
545 p16x_dev_t *dev; in p16x_attach() local
548 dev = kmem_zalloc(sizeof (*dev), KM_SLEEP); in p16x_attach()
549 dev->dip = dip; in p16x_attach()
596 dev->ac97 = ac97_allocate(dev->adev, dip, in p16x_attach()
[all …]
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxenbus_probe.c108 kmem_free((void *)dev->otherend, strlen(dev->otherend) + 1); in free_otherend_details()
109 dev->otherend = NULL; in free_otherend_details()
130 struct xenbus_device *dev = watch->dev; in otherend_changed() local
137 if (!dev->otherend || in otherend_changed()
138 strncmp(dev->otherend, vec[XS_WATCH_PATH], strlen(dev->otherend))) { in otherend_changed()
151 if (dev->otherend_changed) in otherend_changed()
152 dev->otherend_changed(dev, state); in otherend_changed()
161 free_otherend_watch(dev); in talk_to_otherend()
164 if (dev->frontend) in talk_to_otherend()
171 dev->otherend_watch.dev = dev; in talk_to_otherend()
[all …]
H A Dxenbus_client.c155 error_path(struct xenbus_device *dev) in error_path() argument
184 dev->has_error = 1; in common_dev_error()
186 path_buffer = error_path(dev); in common_dev_error()
190 dev->nodename, printf_buffer); in common_dev_error()
196 dev->nodename, printf_buffer); in common_dev_error()
214 common_dev_error(dev, err, fmt, ap); in xenbus_dev_error()
225 common_dev_error(dev, err, fmt, ap); in xenbus_dev_fatal()
233 xenbus_dev_ok(struct xenbus_device *dev) in xenbus_dev_ok() argument
235 if (dev->has_error) { in xenbus_dev_ok()
238 dev->nodename); in xenbus_dev_ok()
[all …]
/illumos-gate/usr/src/boot/common/
H A Ddisk.c100 return (dev->dd.d_dev->dv_strategy(dev, F_READ | F_NORA, offset, in ptblread()
140 dev.dd.d_dev = pa->dev->dd.d_dev; in ptable_print()
141 dev.dd.d_unit = pa->dev->dd.d_unit; in ptable_print()
149 bsd.dev = &dev; in ptable_print()
155 disk_close(&dev); in ptable_print()
170 pa.dev = dev; in disk_print()
183 ret = dev->dd.d_dev->dv_strategy(dev, F_READ, dev->d_offset + offset, in disk_read()
196 ret = dev->dd.d_dev->dv_strategy(dev, F_WRITE, dev->d_offset + offset, in disk_write()
259 dev->d_offset = 0; in disk_open()
265 dev->dd.d_unit, dev->d_slice, dev->d_partition, od); in disk_open()
[all …]
/illumos-gate/usr/src/cmd/login/
H A Dlogindevperm.sh61 /dev/vt/console_user 0600 /dev/mouse:/dev/kbd
62 /dev/vt/console_user 0600 /dev/sound/* # audio devices
63 /dev/vt/console_user 0600 /dev/fbs/* # frame buffers
64 /dev/vt/console_user 0600 /dev/dri/* # dri devices
65 /dev/vt/console_user 0400 /dev/removable-media/dsk/* # removable media
66 /dev/vt/console_user 0400 /dev/removable-media/rdsk/* # removable media
67 /dev/vt/console_user 0400 /dev/hotpluggable/dsk/* # hotpluggable storage
68 /dev/vt/console_user 0400 /dev/hotpluggable/rdsk/* # hotpluggable storage
69 /dev/vt/console_user 0600 /dev/video[0-9]+ # video devices
70 /dev/vt/console_user 0600 /dev/usb/hid[0-9]+ # hid devices should have the same permission with con…
[all …]
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/oce/
H A Doce_impl.h162 OCE_READ_REG32((dev)->csr_handle, \
169 #define OCE_DB_READ32(dev, offset) \ argument
170 OCE_READ_REG32((dev)->db_handle, \
174 OCE_WRITE_REG32((dev)->db_handle, \
185 #define OCE_PCI_FUNC(dev) \ argument
189 #define DEV_LOCK(dev) mutex_enter(&dev->dev_lock) argument
191 #define DEV_UNLOCK(dev) mutex_exit(&dev->dev_lock) argument
339 int oce_start(struct oce_dev *dev);
340 void oce_stop(struct oce_dev *dev);
361 void oce_ei(struct oce_dev *dev);
[all …]
H A Doce_io.h313 int oce_mbox_init(struct oce_dev *dev);
314 int oce_mbox_fini(struct oce_dev *dev);
323 int oce_POST(struct oce_dev *dev);
324 int oce_pci_init(struct oce_dev *dev);
325 void oce_pci_fini(struct oce_dev *dev);
326 int oce_init_txrx(struct oce_dev *dev);
327 void oce_fini_txrx(struct oce_dev *dev);
328 int oce_create_queues(struct oce_dev *dev);
332 int oce_reset_fun(struct oce_dev *dev);
373 int oce_set_rx_filter(struct oce_dev *dev,
[all …]
/illumos-gate/usr/src/uts/i86pc/sys/
H A Dpci_cfgspace_impl.h44 extern uint8_t pci_mech1_getb(int bus, int dev, int func, int reg);
45 extern uint16_t pci_mech1_getw(int bus, int dev, int func, int reg);
46 extern uint32_t pci_mech1_getl(int bus, int dev, int func, int reg);
58 extern void pci_mech1_amd_putb(int bus, int dev, int func, int reg,
60 extern void pci_mech1_amd_putw(int bus, int dev, int func, int reg,
62 extern void pci_mech1_amd_putl(int bus, int dev, int func, int reg,
68 extern uint8_t pci_mech2_getb(int bus, int dev, int func, int reg);
69 extern uint16_t pci_mech2_getw(int bus, int dev, int func, int reg);
70 extern uint32_t pci_mech2_getl(int bus, int dev, int func, int reg);
94 extern uint8_t pci_orion_getb(int bus, int dev, int func, int reg);
[all …]
/illumos-gate/usr/src/test/util-tests/tests/dladm/
H A Dset-linkprop.ksh36 dladm delete-vnic $vm_pvnic 2>/dev/null
37 dladm delete-vnic $vm_tvnic 2>/dev/null
56 typeset dev=$1
59 dladm create-vnic $flags -l $vm_stub $dev 2>/dev/null || fatal \
60 "failed to create vnic: $dev"
65 typeset dev=$1
67 dladm delete-vnic $dev || fatal "failed to delete vnic: $dev"
75 typeset dev=$1
94 typeset dev=$1
116 typeset dev=$1
[all …]
/illumos-gate/usr/src/cmd/troff/troff.d/
H A Dmakedev.c96 struct dev dev; variable
158 dev.nsizes = 0; in main()
160 size[dev.nsizes++] = v; in main()
168 dev.nchtab = 0; in main()
174 dev.lchname = p - chname; in main()
185 write(fdout, &dev, sizeof(struct dev)); in main()
204 write(fdout, &dev, sizeof(struct dev)); in main()
281 if (i >= dev.nchtab)
287 n = dev.biggestfont;
289 if (dev.biggestfont > 0)
[all …]

12345678910>>...70