Searched refs:dp (Results 1 - 25 of 775) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/uts/common/io/usbgem/
H A Dusbgem.c105 #define DEFAULT_PIPE(dp) ((dp)->reg_data->dev_default_ph)
115 #define MAXPKTLEN(dp) ((dp)->mtu + ETHERHEADERL)
116 #define MAXPKTBUF(dp) ((dp)->mtu + ETHERHEADERL + ETHERFCSL)
125 static int usbgem_open_pipes(struct usbgem_dev *dp);
126 static int usbgem_close_pipes(struct usbgem_dev *dp);
252 usbgem_prop_get_int(struct usbgem_dev *dp, char *prop_template, int def_val) argument
256 (void) sprintf(propname, prop_template, dp
291 usbgem_dump_packet(struct usbgem_dev *dp, char *title, mblk_t *mp, boolean_t check_cksum) argument
480 usbgem_hal_reset_chip(struct usbgem_dev *dp) argument
491 usbgem_hal_init_chip(struct usbgem_dev *dp) argument
502 usbgem_hal_attach_chip(struct usbgem_dev *dp) argument
513 usbgem_hal_set_rx_filter(struct usbgem_dev *dp) argument
524 usbgem_hal_set_media(struct usbgem_dev *dp) argument
535 usbgem_hal_start_chip(struct usbgem_dev *dp) argument
546 usbgem_hal_stop_chip(struct usbgem_dev *dp) argument
557 usbgem_hal_get_stats(struct usbgem_dev *dp) argument
574 usbgem_rx_start_unit(struct usbgem_dev *dp, usb_bulk_req_t *req) argument
621 usbgem_init_rx_buf(struct usbgem_dev *dp) argument
652 usbgem_free_memory(struct usbgem_dev *dp) argument
667 usbgem_alloc_memory(struct usbgem_dev *dp) argument
709 usbgem_send_common(struct usbgem_dev *dp, mblk_t *mp, uint32_t flags) argument
847 usbgem_restart_nic(struct usbgem_dev *dp) argument
925 usbgem_tx_timeout(struct usbgem_dev *dp) argument
978 usbgem_tx_watcher_start(struct usbgem_dev *dp) argument
1003 usbgem_tx_watcher_stop(struct usbgem_dev *dp) argument
1031 struct usbgem_dev *dp; local
1142 struct usbgem_dev *dp; local
1203 struct usbgem_dev *dp; local
1222 usbgem_choose_forcedmode(struct usbgem_dev *dp) argument
1241 usbgem_mii_read(struct usbgem_dev *dp, uint_t reg, int *errp) argument
1253 usbgem_mii_write(struct usbgem_dev *dp, uint_t reg, uint16_t val, int *errp) argument
1261 usbgem_mii_probe(struct usbgem_dev *dp) argument
1270 usbgem_mii_init(struct usbgem_dev *dp) argument
1283 usbgem_mii_config_default(struct usbgem_dev *dp, int *errp) argument
1447 usbgem_mii_link_check(struct usbgem_dev *dp, int *oldstatep, int *newstatep) argument
2113 usbgem_mii_link_watcher(struct usbgem_dev *dp) argument
2174 usbgem_mii_update_link(struct usbgem_dev *dp) argument
2180 usbgem_mii_probe_default(struct usbgem_dev *dp) argument
2345 usbgem_mii_init_default(struct usbgem_dev *dp) argument
2352 usbgem_mii_start(struct usbgem_dev *dp) argument
2380 usbgem_mii_stop(struct usbgem_dev *dp) argument
2399 usbgem_mac_init(struct usbgem_dev *dp) argument
2438 usbgem_mac_start(struct usbgem_dev *dp) argument
2530 usbgem_mac_stop(struct usbgem_dev *dp, int new_state, boolean_t graceful) argument
2594 usbgem_add_multicast(struct usbgem_dev *dp, const uint8_t *ep) argument
2631 usbgem_remove_multicast(struct usbgem_dev *dp, const uint8_t *ep) argument
2689 usbgem_get_def_val(struct usbgem_dev *dp, mac_prop_id_t pr_num, uint_t pr_valsize, void *pr_val) argument
2779 struct usbgem_dev *dp = arg; local
2909 struct usbgem_dev *dp = arg; local
3081 struct usbgem_dev *dp = arg; local
3338 struct usbgem_dev *dp; member in struct:usbgem_nd_arg
3345 struct usbgem_dev *dp = ((struct usbgem_nd_arg *)(void *)arg)->dp; local
3529 struct usbgem_dev *dp = ((struct usbgem_nd_arg *)(void *)arg)->dp; local
3685 usbgem_nd_load(struct usbgem_dev *dp, char *name, ndgetf_t gf, ndsetf_t sf, int item) argument
3703 usbgem_nd_setup(struct usbgem_dev *dp) argument
3824 usbgem_nd_ioctl(struct usbgem_dev *dp, queue_t *wq, mblk_t *mp, struct iocblk *iocp) argument
3861 usbgem_nd_cleanup(struct usbgem_dev *dp) argument
3874 usbgem_mac_ioctl(struct usbgem_dev *dp, queue_t *wq, mblk_t *mp) argument
3957 usbgem_mac_xcvr_inuse(struct usbgem_dev *dp) argument
4061 struct usbgem_dev *dp = arg; local
4113 struct usbgem_dev *dp = arg; local
4144 struct usbgem_dev *dp = arg; local
4171 struct usbgem_dev *dp = arg; local
4206 struct usbgem_dev *dp = arg; local
4531 struct usbgem_dev *dp = arg; local
4567 struct usbgem_dev *dp = arg; local
4615 struct usbgem_dev *dp = arg; local
4626 usbgem_gld3_init(struct usbgem_dev *dp, mac_register_t *macp) argument
4660 struct usbgem_dev *dp; local
4690 struct usbgem_dev *dp; local
4723 struct usbgem_dev *dp; local
4760 struct usbgem_dev *dp; local
4788 struct usbgem_dev *dp; local
4819 struct usbgem_dev *dp; local
4839 struct usbgem_dev *dp; local
4890 struct usbgem_dev *dp; local
4906 struct usbgem_dev *dp; local
4943 struct usbgem_dev *dp; local
4967 usbgem_gld_init(struct usbgem_dev *dp, gld_mac_info_t *macinfo, char *ident) argument
5009 usbgem_generate_macaddr(struct usbgem_dev *dp, uint8_t *mac) argument
5046 usbgem_get_mac_addr_conf(struct usbgem_dev *dp) argument
5125 usbgem_read_conf(struct usbgem_dev *dp) argument
5286 struct usbgem_dev *dp = (struct usbgem_dev *)ksp->ks_private; local
5355 usbgem_kstat_init(struct usbgem_dev *dp) argument
5453 usbgem_ctrl_out(struct usbgem_dev *dp, uint8_t reqt, uint8_t req, uint16_t val, uint16_t ix, uint16_t len, void *bp, int size) argument
5522 usbgem_ctrl_in(struct usbgem_dev *dp, uint8_t reqt, uint8_t req, uint16_t val, uint16_t ix, uint16_t len, void *bp, int size) argument
5586 usbgem_ctrl_out_val(struct usbgem_dev *dp, uint8_t reqt, uint8_t req, uint16_t val, uint16_t ix, uint16_t len, uint32_t v) argument
5609 usbgem_ctrl_in_val(struct usbgem_dev *dp, uint8_t reqt, uint8_t req, uint16_t val, uint16_t ix, uint16_t len, void *valp) argument
5654 usbgem_open_pipes(struct usbgem_dev *dp) argument
5770 usbgem_close_pipes(struct usbgem_dev *dp) argument
5797 usbgem_freeze_device(struct usbgem_dev *dp, boolean_t graceful) argument
5818 struct usbgem_dev *dp; local
5837 usbgem_recover_device(struct usbgem_dev *dp) argument
5875 struct usbgem_dev *dp; local
5907 struct usbgem_dev *dp; local
5930 struct usbgem_dev *dp; local
5964 struct usbgem_dev *dp; local
6281 struct usbgem_dev *dp; local
6371 struct usbgem_dev *dp; local
[all...]
/illumos-gate/usr/src/uts/common/io/sfe/
H A Dsfe_util.c108 #define GET_TXBUF(dp, sn) \
109 &(dp)->tx_buf[SLOT((dp)->tx_slots_base + (sn), (dp)->gc.gc_tx_buf_size)]
114 #define MAXPKTBUF(dp) \
115 ((dp)->mtu + sizeof (struct ether_header) + VTAG_SIZE + ETHERFCSL)
131 static void gem_nd_setup(struct gem_dev *dp);
132 static void gem_nd_cleanup(struct gem_dev *dp);
140 static void gem_mii_link_watcher(struct gem_dev *dp);
141 static int gem_mac_init(struct gem_dev *dp);
190 gem_prop_get_int(struct gem_dev *dp, char *prop_template, int def_val) argument
218 gem_dump_packet(struct gem_dev *dp, char *title, mblk_t *mp, boolean_t check_cksum) argument
363 gem_rx_desc_dma_sync(struct gem_dev *dp, int head, int nslot, int how) argument
391 gem_tx_desc_dma_sync(struct gem_dev *dp, int head, int nslot, int how) argument
420 gem_rx_start_default(struct gem_dev *dp, int head, int nslot) argument
433 gem_dump_txbuf(struct gem_dev *dp, int level, const char *title) argument
470 struct gem_dev *dp; local
484 gem_get_rxbuf(struct gem_dev *dp, int cansleep) argument
606 gem_alloc_memory(struct gem_dev *dp) argument
769 gem_free_memory(struct gem_dev *dp) argument
829 gem_init_rx_ring(struct gem_dev *dp) argument
855 gem_prepare_rx_buf(struct gem_dev *dp) argument
881 gem_clean_rx_buf(struct gem_dev *dp) argument
928 gem_init_tx_ring(struct gem_dev *dp) argument
979 gem_clean_tx_buf(struct gem_dev *dp) argument
1052 gem_reclaim_txbuf(struct gem_dev *dp) argument
1214 gem_tx_load_descs_oo(struct gem_dev *dp, seqnum_t start_slot, seqnum_t end_slot, uint64_t flags) argument
1252 gem_setup_txbuf_copy(struct gem_dev *dp, mblk_t *mp, struct txbuf *tbp) argument
1333 gem_tx_start_unit(struct gem_dev *dp) argument
1380 gem_txbuf_options(struct gem_dev *dp, mblk_t *mp, uint8_t *bp) argument
1426 gem_send_common(struct gem_dev *dp, mblk_t *mp_head, uint32_t flags) argument
1575 gem_restart_nic(struct gem_dev *dp, uint_t flags) argument
1647 gem_tx_timeout(struct gem_dev *dp) argument
1728 gem_append_rxbuf(struct gem_dev *dp, struct rxbuf *rbp_head) argument
1766 gem_get_packet_default(struct gem_dev *dp, struct rxbuf *rbp, size_t len) argument
1799 gem_receive(struct gem_dev *dp) argument
1975 gem_tx_done(struct gem_dev *dp) argument
2017 gem_intr(struct gem_dev *dp) argument
2055 gem_intr_watcher(struct gem_dev *dp) argument
2070 gem_choose_forcedmode(struct gem_dev *dp) argument
2089 gem_mii_read(struct gem_dev *dp, uint_t reg) argument
2098 gem_mii_write(struct gem_dev *dp, uint_t reg, uint16_t val) argument
2111 gem_mii_config_default(struct gem_dev *dp) argument
2235 gem_mii_link_check(struct gem_dev *dp) argument
2832 gem_mii_link_watcher(struct gem_dev *dp) argument
2854 gem_mii_probe_default(struct gem_dev *dp) argument
2965 gem_mii_start(struct gem_dev *dp) argument
2977 gem_mii_stop(struct gem_dev *dp) argument
2992 gem_get_mac_addr_conf(struct gem_dev *dp) argument
3079 gem_mac_set_rx_filter(struct gem_dev *dp) argument
3088 gem_mac_init(struct gem_dev *dp) argument
3119 gem_mac_start(struct gem_dev *dp) argument
3165 gem_mac_stop(struct gem_dev *dp, uint_t flags) argument
3268 gem_add_multicast(struct gem_dev *dp, const uint8_t *ep) argument
3309 gem_remove_multicast(struct gem_dev *dp, const uint8_t *ep) argument
3419 struct gem_dev *dp; member in struct:gem_nd_arg
3426 struct gem_dev *dp = ((struct gem_nd_arg *)(void *)arg)->dp; local
3605 struct gem_dev *dp = ((struct gem_nd_arg *)(void *)arg)->dp; local
3740 gem_nd_load(struct gem_dev *dp, char *name, ndgetf_t gf, ndsetf_t sf, int item) argument
3757 gem_nd_setup(struct gem_dev *dp) argument
3873 gem_nd_ioctl(struct gem_dev *dp, queue_t *wq, mblk_t *mp, struct iocblk *iocp) argument
3911 gem_nd_cleanup(struct gem_dev *dp) argument
3923 gem_mac_ioctl(struct gem_dev *dp, queue_t *wq, mblk_t *mp) argument
4014 gem_mac_xcvr_inuse(struct gem_dev *dp) argument
4079 struct gem_dev *dp = arg; local
4135 struct gem_dev *dp = arg; local
4182 struct gem_dev *dp = arg; local
4204 struct gem_dev *dp = arg; local
4230 struct gem_dev *dp = arg; local
4547 struct gem_dev *dp = arg; local
4574 struct gem_dev *dp = arg; local
4611 gem_gld3_init(struct gem_dev *dp, mac_register_t *macp) argument
4632 gem_read_conf(struct gem_dev *dp) argument
4738 struct gem_dev *dp; local
5032 struct gem_dev *dp; local
5111 struct gem_dev *dp; local
5160 struct gem_dev *dp; local
[all...]
H A Dsfe.c181 static void sfe_set_eq_sis630(struct gem_dev *dp);
195 static int sfe_tx_desc_write(struct gem_dev *dp, int slot,
197 static void sfe_tx_start(struct gem_dev *dp, int startslot, int nslot);
198 static void sfe_rx_desc_write(struct gem_dev *dp, int slot,
200 static uint_t sfe_tx_desc_stat(struct gem_dev *dp, int slot, int ndesc);
201 static uint64_t sfe_rx_desc_stat(struct gem_dev *dp, int slot, int ndesc);
203 static void sfe_tx_desc_init(struct gem_dev *dp, int slot);
204 static void sfe_rx_desc_init(struct gem_dev *dp, int slot);
205 static void sfe_tx_desc_clean(struct gem_dev *dp, int slot);
206 static void sfe_rx_desc_clean(struct gem_dev *dp, in
272 sfe_read_eeprom(struct gem_dev *dp, uint_t offset) argument
319 sfe_get_mac_addr_dp83815(struct gem_dev *dp) argument
361 sfe_get_mac_addr_sis900(struct gem_dev *dp) argument
422 sfe_get_mac_addr_sis630e(struct gem_dev *dp) argument
463 sfe_get_mac_addr_sis635(struct gem_dev *dp) argument
495 sfe_get_mac_addr_sis962(struct gem_dev *dp) argument
522 sfe_reset_chip_sis900(struct gem_dev *dp) argument
577 sfe_reset_chip_dp83815(struct gem_dev *dp) argument
623 sfe_init_chip(struct gem_dev *dp) argument
646 sfe_mcast_hash(struct gem_dev *dp, uint8_t *addr) argument
653 sfe_rxfilter_dump(struct gem_dev *dp, int start, int end) argument
683 sfe_set_rx_filter_dp83815(struct gem_dev *dp) argument
812 sfe_set_rx_filter_sis900(struct gem_dev *dp) argument
888 sfe_start_chip(struct gem_dev *dp) argument
916 sfe_stop_chip(struct gem_dev *dp) argument
960 sfe_stop_chip_quiesce(struct gem_dev *dp) argument
1020 sfe_set_media(struct gem_dev *dp) argument
1170 sfe_get_stats(struct gem_dev *dp) argument
1180 sfe_tx_desc_write(struct gem_dev *dp, int slot, ddi_dma_cookie_t *dmacookie, int frags, uint64_t flags) argument
1225 sfe_tx_start(struct gem_dev *dp, int start_slot, int nslot) argument
1251 sfe_rx_desc_write(struct gem_dev *dp, int slot, ddi_dma_cookie_t *dmacookie, int frags) argument
1280 sfe_tx_desc_stat(struct gem_dev *dp, int slot, int ndesc) argument
1391 sfe_rx_desc_stat(struct gem_dev *dp, int slot, int ndesc) argument
1482 sfe_tx_desc_init(struct gem_dev *dp, int slot) argument
1502 sfe_rx_desc_init(struct gem_dev *dp, int slot) argument
1522 sfe_tx_desc_clean(struct gem_dev *dp, int slot) argument
1531 sfe_rx_desc_clean(struct gem_dev *dp, int slot) argument
1543 sfe_interrupt(struct gem_dev *dp) argument
1647 sfe_mii_sync_dp83815(struct gem_dev *dp) argument
1653 sfe_mii_read_dp83815(struct gem_dev *dp, uint_t offset) argument
1661 sfe_mii_write_dp83815(struct gem_dev *dp, uint_t offset, uint16_t val) argument
1669 sfe_mii_config_dp83815(struct gem_dev *dp) argument
1725 sfe_mii_probe_dp83815(struct gem_dev *dp) argument
1764 sfe_mii_init_dp83815(struct gem_dev *dp) argument
1786 sfe_mii_sync_sis900(struct gem_dev *dp) argument
1800 sfe_mii_config_sis900(struct gem_dev *dp) argument
1826 sfe_mii_read_sis900(struct gem_dev *dp, uint_t reg) argument
1886 sfe_mii_write_sis900(struct gem_dev *dp, uint_t reg, uint16_t val) argument
1913 sfe_set_eq_sis630(struct gem_dev *dp) argument
1992 sfe_chipinfo_init_sis900(struct gem_dev *dp) argument
2043 sfe_attach_chip(struct gem_dev *dp) argument
2090 struct gem_dev *dp; local
2348 struct gem_dev *dp; local
[all...]
/illumos-gate/usr/src/uts/intel/io/vmxnet3s/
H A Dvmxnet3_main.c33 #define VMXNET3_ALLOC_OK(dp) ((dp)->cur_mtu <= PAGESIZE)
103 vmxnet3_softc_t *dp = data; local
107 VMXNET3_DEBUG(dp, 3, "getstat(%u)\n", stat);
109 if (!dp->devEnabled) {
113 txStats = &VMXNET3_TQDESC(dp)->stats;
114 rxStats = &VMXNET3_RQDESC(dp)->stats;
132 VMXNET3_BAR1_PUT32(dp, VMXNET3_REG_CMD, VMXNET3_CMD_GET_STATS);
148 *val = dp->linkSpeed;
163 *val = rxStats->pktsRxOutOfBuf + dp
210 vmxnet3_prepare_drivershared(vmxnet3_softc_t *dp) argument
272 vmxnet3_destroy_drivershared(vmxnet3_softc_t *dp) argument
288 vmxnet3_alloc_cmdring(vmxnet3_softc_t *dp, vmxnet3_cmdring_t *cmdRing) argument
312 vmxnet3_alloc_compring(vmxnet3_softc_t *dp, vmxnet3_compring_t *compRing) argument
334 vmxnet3_prepare_txqueue(vmxnet3_softc_t *dp) argument
384 vmxnet3_prepare_rxqueue(vmxnet3_softc_t *dp) argument
431 vmxnet3_destroy_txqueue(vmxnet3_softc_t *dp) argument
450 vmxnet3_destroy_rxqueue(vmxnet3_softc_t *dp) argument
469 vmxnet3_refresh_rxfilter(vmxnet3_softc_t *dp) argument
481 vmxnet3_refresh_linkstate(vmxnet3_softc_t *dp) argument
506 vmxnet3_softc_t *dp = data; local
629 vmxnet3_softc_t *dp = data; local
659 vmxnet3_softc_t *dp = data; local
683 vmxnet3_softc_t *dp = data; local
787 vmxnet3_softc_t *dp = data; local
813 vmxnet3_change_mtu(vmxnet3_softc_t *dp, uint32_t new_mtu) argument
850 vmxnet3_softc_t *dp = data; local
870 vmxnet3_softc_t *dp = data; local
917 vmxnet3_softc_t *dp = arg; local
1025 vmxnet3_softc_t *dp = data; local
1063 vmxnet3_softc_t *dp = data; local
1081 vmxnet3_intr_events(vmxnet3_softc_t *dp) argument
1135 vmxnet3_softc_t *dp = (void *) data1; local
1183 vmxnet3_softc_t *dp = ksp->ks_private; local
1200 vmxnet3_kstat_init(vmxnet3_softc_t *dp) argument
1241 vmxnet3_softc_t *dp; local
1500 vmxnet3_softc_t *dp = ddi_get_driver_private(dip); local
[all...]
H A Dvmxnet3_rx.c32 vmxnet3_alloc_rxbuf(vmxnet3_softc_t *dp, boolean_t canSleep) argument
40 atomic_inc_32(&dp->rx_alloc_failed);
44 if ((err = vmxnet3_alloc_dma_mem_1(dp, &rxBuf->dma, (dp->cur_mtu + 18),
46 VMXNET3_DEBUG(dp, 0, "Failed to allocate %d bytes for rx buf, "
47 "err:%d\n", (dp->cur_mtu + 18), err);
49 atomic_inc_32(&dp->rx_alloc_failed);
55 rxBuf->dp = dp;
57 atomic_inc_32(&dp
63 vmxnet3_free_rxbuf(vmxnet3_softc_t *dp, vmxnet3_rxbuf_t *rxBuf) argument
89 vmxnet3_put_rxpool_buf(vmxnet3_softc_t *dp, vmxnet3_rxbuf_t *rxBuf, boolean_t init) argument
115 vmxnet3_softc_t *dp = rxBuf->dp; local
128 vmxnet3_get_rxpool_buf(vmxnet3_softc_t *dp) argument
152 vmxnet3_rxpool_init(vmxnet3_softc_t *dp) argument
186 vmxnet3_rx_populate(vmxnet3_softc_t *dp, vmxnet3_rxqueue_t *rxq, uint16_t idx, boolean_t canSleep, boolean_t pool) argument
240 vmxnet3_rxqueue_init(vmxnet3_softc_t *dp, vmxnet3_rxqueue_t *rxq) argument
280 vmxnet3_rxqueue_fini(vmxnet3_softc_t *dp, vmxnet3_rxqueue_t *rxq) argument
310 vmxnet3_rx_hwcksum(vmxnet3_softc_t *dp, mblk_t *mp, Vmxnet3_GenericDesc *compDesc) argument
338 vmxnet3_rx_intr(vmxnet3_softc_t *dp, vmxnet3_rxqueue_t *rxq) argument
[all...]
/illumos-gate/usr/src/lib/libast/common/disc/
H A Dsfdcdos.c60 static void addmapping(register Dosdisc_t *dp) argument
62 static void addmapping(dp)
63 register Dosdisc_t *dp;
67 if((n=dp->maptop++)>=dp->mapsize)
69 dp->mapsize *= 2;
70 if(!(dp->maptable=(struct map*)realloc((void*)dp->maptable,(dp->mapsize+1)*sizeof(struct map))))
72 dp
83 getmapping(Dosdisc_t *dp, Sfoff_t offset, register int whence) argument
118 register Dosdisc_t *dp = (Dosdisc_t*)disc; local
230 cur_offset(Dosdisc_t *dp, Sfoff_t offset,Sfio_t *iop,register int whence) argument
285 register Dosdisc_t *dp = (Dosdisc_t*)disc; local
376 register Dosdisc_t *dp = (Dosdisc_t*)disc; local
[all...]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd.c368 fmd_create(fmd_t *dp, const char *arg0, const char *root, const char *conf) argument
414 bzero(dp, sizeof (fmd_t));
416 dp->d_version = _fmd_version;
417 dp->d_pname = fmd_strbasename(arg0);
418 dp->d_pid = getpid();
420 if (pthread_key_create(&dp->d_key, NULL) != 0)
423 (void) pthread_mutex_init(&dp->d_xprt_lock, NULL);
424 (void) pthread_mutex_init(&dp->d_err_lock, NULL);
425 (void) pthread_mutex_init(&dp->d_thr_lock, NULL);
426 (void) pthread_mutex_init(&dp
556 fmd_destroy(fmd_t *dp) argument
690 fmd_gc(fmd_t *dp, id_t id, hrtime_t hrt) argument
719 fmd_clear_aged_rsrcs(fmd_t *dp, id_t id, hrtime_t hrt) argument
744 fmd_err_replay(fmd_log_t *lp, fmd_event_t *ep, fmd_t *dp) argument
809 fmd_run(fmd_t *dp, int pfd) argument
1042 fmd_help(fmd_t *dp) argument
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Ddsl_pool.c171 dsl_pool_open_special_dir(dsl_pool_t *dp, const char *name, dsl_dir_t **ddp) argument
176 err = zap_lookup(dp->dp_meta_objset,
177 dsl_dir_phys(dp->dp_root_dir)->dd_child_dir_zapobj,
182 return (dsl_dir_hold_obj(dp, obj, name, dp, ddp));
188 dsl_pool_t *dp; local
191 dp = kmem_zalloc(sizeof (dsl_pool_t), KM_SLEEP);
192 dp->dp_spa = spa;
193 dp->dp_meta_rootbp = *bp;
194 rrw_init(&dp
235 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg); local
248 dsl_pool_open(dsl_pool_t *dp) argument
357 dsl_pool_close(dsl_pool_t *dp) argument
416 dsl_pool_create_obsolete_bpobj(dsl_pool_t *dp, dmu_tx_t *tx) argument
433 dsl_pool_destroy_obsolete_bpobj(dsl_pool_t *dp, dmu_tx_t *tx) argument
449 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg); local
537 dsl_pool_mos_diduse_space(dsl_pool_t *dp, int64_t used, int64_t comp, int64_t uncomp) argument
549 dsl_pool_sync_mos(dsl_pool_t *dp, dmu_tx_t *tx) argument
559 dsl_pool_dirty_delta(dsl_pool_t *dp, int64_t delta) argument
577 dsl_early_sync_task_verify(dsl_pool_t *dp, uint64_t txg) argument
598 dsl_pool_sync(dsl_pool_t *dp, uint64_t txg) argument
773 dsl_pool_sync_done(dsl_pool_t *dp, uint64_t txg) argument
798 dsl_pool_sync_context(dsl_pool_t *dp) argument
825 dsl_pool_adjustedsize(dsl_pool_t *dp, zfs_space_check_t slop_policy) argument
858 dsl_pool_unreserved_space(dsl_pool_t *dp, zfs_space_check_t slop_policy) argument
868 dsl_pool_need_dirty_delay(dsl_pool_t *dp) argument
885 dsl_pool_dirty_space(dsl_pool_t *dp, int64_t space, dmu_tx_t *tx) argument
896 dsl_pool_undirty_space(dsl_pool_t *dp, int64_t space, uint64_t txg) argument
915 upgrade_clones_cb(dsl_pool_t *dp, dsl_dataset_t *hds, void *arg) argument
995 dsl_pool_upgrade_clones(dsl_pool_t *dp, dmu_tx_t *tx) argument
1006 upgrade_dir_clones_cb(dsl_pool_t *dp, dsl_dataset_t *ds, void *arg) argument
1034 dsl_pool_upgrade_dir_clones(dsl_pool_t *dp, dmu_tx_t *tx) argument
1059 dsl_pool_create_origin(dsl_pool_t *dp, dmu_tx_t *tx) argument
1079 dsl_pool_vnrele_taskq(dsl_pool_t *dp) argument
1085 dsl_pool_unlinked_drain_taskq(dsl_pool_t *dp) argument
1095 dsl_pool_clean_tmp_userrefs(dsl_pool_t *dp) argument
1136 dsl_pool_user_hold_create_obj(dsl_pool_t *dp, dmu_tx_t *tx) argument
1148 dsl_pool_user_hold_rele_impl(dsl_pool_t *dp, uint64_t dsobj, const char *tag, uint64_t now, dmu_tx_t *tx, boolean_t holding) argument
1186 dsl_pool_user_hold(dsl_pool_t *dp, uint64_t dsobj, const char *tag, uint64_t now, dmu_tx_t *tx) argument
1196 dsl_pool_user_release(dsl_pool_t *dp, uint64_t dsobj, const char *tag, dmu_tx_t *tx) argument
1254 dsl_pool_hold(const char *name, void *tag, dsl_pool_t **dp) argument
1268 dsl_pool_rele(dsl_pool_t *dp, void *tag) argument
1275 dsl_pool_config_enter(dsl_pool_t *dp, void *tag) argument
1294 dsl_pool_config_enter_prio(dsl_pool_t *dp, void *tag) argument
1301 dsl_pool_config_exit(dsl_pool_t *dp, void *tag) argument
1307 dsl_pool_config_held(dsl_pool_t *dp) argument
1313 dsl_pool_config_held_writer(dsl_pool_t *dp) argument
[all...]
/illumos-gate/usr/src/cmd/csh/
H A Dsh.dir.c44 struct directory *dp; local
66 dp = (struct directory *)xcalloc(sizeof (struct directory), 1);
67 dp->di_name = savestr(cp);
68 dp->di_count = 0;
69 dhead.di_next = dhead.di_prev = dp;
70 dp->di_next = dp->di_prev = &dhead;
72 dnewcwd(dp);
81 struct directory *dp; local
97 dp
130 struct directory *dp; local
169 tchar *dp; local
371 struct directory *dp; local
414 struct directory *dp; local
446 struct directory *dp, *p; local
477 dfree(struct directory *dp) argument
723 dnewcwd(struct directory *dp) argument
[all...]
/illumos-gate/usr/src/ucbcmd/printenv/
H A Dprintenv.c51 static int prefix(char *cp, char *dp);
79 prefix(char *cp, char *dp) argument
82 while (*cp && *dp && *cp == *dp)
83 cp++, dp++;
85 return (*dp == '=');
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_sugar.c88 dt_sugar_append_clause(dt_sugar_parse_t *dp, dt_node_t *clause) argument
90 dp->dtsp_clause_list = dt_node_link(dp->dtsp_clause_list, clause);
97 dt_sugar_prepend_clause(dt_sugar_parse_t *dp, dt_node_t *clause) argument
99 dp->dtsp_clause_list = dt_node_link(clause, dp->dtsp_clause_list);
142 dt_sugar_new_condition_impl(dt_sugar_parse_t *dp, argument
171 return (dt_node_clause(dp->dtsp_pdescs, newpred, body));
180 dt_sugar_new_condition(dt_sugar_parse_t *dp, dt_node_t *pred, int condid) argument
182 dp
193 dt_sugar_visit_all(dt_sugar_parse_t *dp, dt_node_t *dnp) argument
313 dt_sugar_new_clearerror_clause(dt_sugar_parse_t *dp) argument
325 dt_sugar_do_if(dt_sugar_parse_t *dp, dt_node_t *if_stmt, int precondition) argument
362 dt_sugar_new_basic_block(dt_sugar_parse_t *dp, int condid, dt_node_t *stmts) argument
390 dt_sugar_visit_stmts(dt_sugar_parse_t *dp, dt_node_t *stmts, int precondition) argument
463 dt_sugar_parse_t dp = { 0 }; local
[all...]
/illumos-gate/usr/src/ucbcmd/whereis/
H A Dwhereis.c223 char *dp; local
225 for (dp = cp; *dp; dp++)
227 for (; dp > cp; dp--) {
228 if (*dp == '.') {
229 *dp = 0;
233 for (dp = cp; *dp; d
318 struct dirent *dp; local
334 itsit(char *cp, char *dp) argument
[all...]
/illumos-gate/usr/src/lib/libast/common/dir/
H A Dreaddir.c42 register struct dirent* dp;
53 dp = (struct dirent*)((char*)dirp->dd_buf + dirp->dd_loc);
54 if (dp->d_reclen <= 0) return(0);
55 dirp->dd_loc += dp->d_reclen;
56 if (dp->d_fileno) return(dp);
/illumos-gate/usr/src/cmd/bnu/
H A Dgnamef.c45 register struct dirent *dp = &dentry; local
48 if ((dp = readdir(p)) == NULL)
50 if (dp->d_ino != 0 && dp->d_name[0] != '.')
54 (void) strncpy(filename, dp->d_name, MAXBASENAME);
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Dppp-comp.h102 #define CCP_CODE(dp) ((dp)[0])
103 #define CCP_ID(dp) ((dp)[1])
104 #define CCP_LENGTH(dp) (((dp)[2] << 8) + (dp)[3])
107 #define CCP_OPT_CODE(dp) ((dp)[0])
108 #define CCP_OPT_LENGTH(dp) ((d
[all...]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass1.c134 struct dinode *dp; local
137 dp = getnextinode(inumber);
138 if ((dp->di_mode & IFMT) == 0) {
140 if ((memcmp((void *)dp->di_db, (void *)zino.di_db,
142 (memcmp((void *)dp->di_ib, (void *)zino.di_ib,
144 (dp->di_mode != 0) || (dp->di_size != 0)) {
147 dp = ginode(inumber);
148 clearinode(dp);
158 isdir = ((dp
504 struct dinode *dp; local
630 struct dinode *dp; local
[all...]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_retire.c60 static void rio_assert(di_retire_t *dp, const char *EXstr, int line,
92 rio_assert(di_retire_t *dp, const char *EXstr, int line, const char *file) argument
96 if (dp->rt_abort == NULL)
102 dp->rt_abort(dp->rt_hdl, buf);
110 di_retire_t *dp = rp->rcm_dp; local
113 dp->rt_debug(dp->rt_hdl, "[INFO]: enclosure_minor: "
122 di_retire_t *dp = rp->rcm_dp; local
124 rarg.rcm_dp = dp;
152 di_retire_t *dp = rp->rcm_dp; local
164 di_retire_t *dp = rp->rcm_dp; local
187 di_retire_t *dp = rp->rcm_dp; local
205 di_retire_t *dp = rp->rcm_dp; local
229 di_retire_t *dp = rp->rcm_dp; local
260 di_retire_t *dp; local
332 di_retire_t *dp; local
374 di_retire_t *dp; local
424 di_retire_t *dp = rp->rcm_dp; local
484 di_retire_t *dp = rp->rcm_dp; local
580 di_retire_t *dp; local
672 di_retire_device(char *devpath, di_retire_t *dp, int flags) argument
834 di_unretire_device(char *devpath, di_retire_t *dp) argument
[all...]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvsw_rxdring.c71 static int vsw_setup_rx_dring(vsw_ldc_t *ldcp, dring_info_t *dp);
111 dring_info_t *dp; local
121 if ((dp = vsw_create_rx_dring(ldcp)) == NULL)
124 mp = kmem_zalloc(VNET_DRING_REG_EXT_MSG_SIZE(dp->data_ncookies),
133 mp->num_descriptors = dp->num_descriptors;
134 mp->descriptor_size = dp->descriptor_size;
135 mp->options = dp->options;
136 mp->ncookies = dp->dring_ncookies;
137 bcopy(&dp->dring_cookie[0], &mp->cookie[0],
151 emsg->data_ncookies = dp
174 dring_info_t *dp; local
248 vsw_setup_rx_dring(vsw_ldc_t *ldcp, dring_info_t *dp) argument
369 dring_info_t *dp; local
445 dring_info_t *dp; local
508 dring_info_t *dp; local
615 dring_info_t *dp = lp->dringp; local
727 dring_info_t *dp = ldcp->lane_out.dringp; local
876 dring_info_t *dp = lane_in->dringp; local
1089 dring_info_t *dp = ldcp->lane_in.dringp; local
1119 dring_info_t *dp; local
[all...]
/illumos-gate/usr/src/uts/common/io/upf/
H A Dupf_usbgem.c149 #define OUTB(dp, p, v, errp, label) \
150 if ((*(errp) = usbgem_ctrl_out((dp), \
160 #define OUTW(dp, p, v, errp, label) \
161 if ((*(errp) = usbgem_ctrl_out_val((dp), \
170 #define OUTS(dp, p, buf, len, errp, label) \
171 if ((*(errp) = usbgem_ctrl_out((dp), \
181 #define INB(dp, p, vp, errp, label) \
182 if ((*(errp) = usbgem_ctrl_in_val((dp), \
191 #define INW(dp, p, vp, errp, label) \
192 if ((*(errp) = usbgem_ctrl_in_val((dp), \
218 upf_reset_chip(struct usbgem_dev *dp) argument
253 upf_init_chip(struct usbgem_dev *dp) argument
311 upf_start_chip(struct usbgem_dev *dp) argument
330 upf_stop_chip(struct usbgem_dev *dp) argument
350 upf_get_stats(struct usbgem_dev *dp) argument
357 upf_mcast_hash(struct usbgem_dev *dp, const uint8_t *addr) argument
364 upf_set_rx_filter(struct usbgem_dev *dp) argument
422 upf_set_media(struct usbgem_dev *dp) argument
500 upf_tx_make_packet(struct usbgem_dev *dp, mblk_t *mp) argument
557 upf_dump_packet(struct usbgem_dev *dp, uint8_t *bp, int n) argument
568 upf_rx_make_packet(struct usbgem_dev *dp, mblk_t *mp) argument
641 upf_interrupt(struct usbgem_dev *dp, mblk_t *mp) argument
666 upf_mii_read(struct usbgem_dev *dp, uint_t index, int *errp) argument
707 upf_mii_write(struct usbgem_dev *dp, uint_t index, uint16_t val, int *errp) argument
743 upf_enable_phy(struct usbgem_dev *dp) argument
803 upf_mii_probe(struct usbgem_dev *dp) argument
818 upf_mii_init(struct usbgem_dev *dp) argument
847 upf_read_eeprom(struct usbgem_dev *dp, int index, int *errp) argument
880 upf_eeprom_dump(struct usbgem_dev *dp, int size) argument
898 upf_attach_chip(struct usbgem_dev *dp) argument
948 struct usbgem_dev *dp; local
[all...]
/illumos-gate/usr/src/lib/libadm/common/
H A Dfulldevnm.c197 char *dp; local
204 if ((dp = strstr(cp, "/rfd")) != NULL) {
208 c = *++dp; /* save the 'r' */
209 *dp = '\0'; /* replace it with a null */
211 *dp++ = c; /* give the 'r' back */
212 (void) strcat(new_path, dp); /* copy, skipping the 'r' */
222 if ((dp = strstr(cp, "/rdiskette")) != NULL) {
226 c = *++dp; /* save the 'r' */
227 *dp = '\0'; /* replace it with a null */
229 *dp
250 char *dp; local
339 char *dp; local
421 char *dp; local
[all...]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_disasm.c62 mdb_disasm_t *dp = mdb_zalloc(sizeof (mdb_disasm_t), UM_SLEEP); local
64 if ((dp->dis_module = mdb.m_lmod) == NULL)
65 dp->dis_module = &mdb.m_rmod;
67 if (ctor(dp) == 0) {
68 mdb_var_t *v = mdb_nv_lookup(&mdb.m_disasms, dp->dis_name);
71 dp->dis_ops->dis_destroy(dp);
72 mdb_free(dp, sizeof (mdb_disasm_t));
77 (void) mdb_nv_insert(&mdb.m_disasms, dp->dis_name, NULL,
78 (uintptr_t)dp, MDB_NV_RDONL
97 mdb_dis_destroy(mdb_disasm_t *dp) argument
111 mdb_dis_ins2str(mdb_disasm_t *dp, mdb_tgt_t *t, mdb_tgt_as_t as, char *buf, size_t len, mdb_tgt_addr_t addr) argument
118 mdb_dis_previns(mdb_disasm_t *dp, mdb_tgt_t *t, mdb_tgt_as_t as, mdb_tgt_addr_t addr, uint_t n) argument
125 mdb_dis_nextins(mdb_disasm_t *dp, mdb_tgt_t *t, mdb_tgt_as_t as, mdb_tgt_addr_t addr) argument
162 mdb_disasm_t *dp = mdb_nv_get_cookie(v); local
297 libdisasm_ins2str(mdb_disasm_t *dp, mdb_tgt_t *t, mdb_tgt_as_t as, char *buf, size_t len, mdb_tgt_addr_t pc) argument
345 libdisasm_previns(mdb_disasm_t *dp, mdb_tgt_t *t, mdb_tgt_as_t as, mdb_tgt_addr_t pc, uint_t n) argument
369 libdisasm_nextins(mdb_disasm_t *dp, mdb_tgt_t *t, mdb_tgt_as_t as, mdb_tgt_addr_t pc) argument
389 libdisasm_destroy(mdb_disasm_t *dp) argument
408 libdisasm_create(mdb_disasm_t *dp, const char *name, const char *desc, int flags) argument
424 ia16_create(mdb_disasm_t *dp) argument
433 ia32_create(mdb_disasm_t *dp) argument
444 amd64_create(mdb_disasm_t *dp) argument
455 sparc1_create(mdb_disasm_t *dp) argument
464 sparc2_create(mdb_disasm_t *dp) argument
473 sparc4_create(mdb_disasm_t *dp) argument
482 sparcv8_create(mdb_disasm_t *dp) argument
491 sparcv9_create(mdb_disasm_t *dp) argument
500 sparcv9plus_create(mdb_disasm_t *dp) argument
511 defdis_destroy(mdb_disasm_t *dp) argument
518 defdis_ins2str(mdb_disasm_t *dp, mdb_tgt_t *t, mdb_tgt_as_t as, char *buf, size_t len, mdb_tgt_addr_t addr) argument
526 defdis_previns(mdb_disasm_t *dp, mdb_tgt_t *t, mdb_tgt_as_t as, mdb_tgt_addr_t addr, uint_t n) argument
534 defdis_nextins(mdb_disasm_t *dp, mdb_tgt_t *t, mdb_tgt_as_t as, mdb_tgt_addr_t addr) argument
548 defdis_create(mdb_disasm_t *dp) argument
[all...]
/illumos-gate/usr/src/lib/libast/common/path/
H A Dpathfind.c56 register Dir_t* dp; local
61 for (dp = state.head; dp; dp = dp->next)
62 if (streq(dir, dp->dir))
64 if (!(dp = oldof(0, Dir_t, 1, strlen(dir))))
66 strcpy(dp->dir, dir);
67 dp->next = 0;
69 state.tail = state.tail->next = dp;
87 register Dir_t* dp; local
[all...]
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dnvtree.c52 static int read_tree(Namval_t* np, Sfio_t *iop, int n, Namfun_t *dp) argument
69 static Namval_t *create_tree(Namval_t *np,const char *name,int flag,Namfun_t *dp) argument
71 register Namfun_t *fp=dp;
78 dp->last = fp->last;
86 Namfun_t *dp; local
89 dp = nv_clone_disc(fp,flags);
96 return(dp);
148 struct nvdir *save, *dp = new_of(struct nvdir,len); local
151 if(!dp)
153 memset((void*)dp,
263 nextnode(struct nvdir *dp) argument
274 register struct nvdir *save, *dp = (struct nvdir*)dir; local
366 struct nvdir *dp = (struct nvdir*)dir; local
948 Dt_t *dp = shp->var_tree; local
[all...]
/illumos-gate/usr/src/lib/scsi/plugins/smp/usmp/common/
H A Dusmp.c84 struct usmp_dev *dp; local
91 if ((dp = smp_zalloc(sizeof (struct usmp_dev))) == NULL)
94 if ((dp->ud_dev = smp_strdup(target_name)) == NULL) {
95 smp_free(dp);
99 if ((dp->ud_fd = open(target_name, O_RDONLY)) < 0) {
103 smp_free(dp->ud_dev);
104 smp_free(dp);
108 if (fstat64(dp->ud_fd, &st) != 0) {
111 (void) close(dp->ud_fd);
112 smp_free(dp
137 struct usmp_dev *dp = (struct usmp_dev *)private; local
152 struct usmp_dev *dp = (struct usmp_dev *)private; local
201 struct usmp_dev *dp = (struct usmp_dev *)private; local
209 struct usmp_dev *dp = (struct usmp_dev *)private; local
[all...]
/illumos-gate/usr/src/uts/common/io/axf/
H A Daxf_usbgem.c83 #define AX88172(dp) \
84 (((struct axf_dev *)(dp)->private)->chip->type == CHIP_TYPE_AX88172)
86 #define AX88772(dp) \
87 (((struct axf_dev *)(dp)->private)->chip->type == CHIP_TYPE_AX88772)
294 #define OUT(dp, req, val, ix, len, buf, errp, label) \
295 if ((*(errp) = usbgem_ctrl_out((dp), \
305 #define IN(dp, req, val, ix, len, buf, errp, label) \
306 if ((*(errp) = usbgem_ctrl_in((dp), \
323 axf_reset_phy(struct usbgem_dev *dp) argument
328 struct axf_dev *lp = dp
384 axf_reset_chip(struct usbgem_dev *dp) argument
406 axf_init_chip(struct usbgem_dev *dp) argument
467 axf_start_chip(struct usbgem_dev *dp) argument
485 axf_stop_chip(struct usbgem_dev *dp) argument
510 axf_get_stats(struct usbgem_dev *dp) argument
517 axf_mcast_hash(struct usbgem_dev *dp, const uint8_t *addr) argument
523 axf_set_rx_filter(struct usbgem_dev *dp) argument
604 axf_set_media(struct usbgem_dev *dp) argument
708 axf_tx_make_packet(struct usbgem_dev *dp, mblk_t *mp) argument
795 axf_dump_packet(struct usbgem_dev *dp, uint8_t *bp, int n) argument
806 axf_rx_make_packet(struct usbgem_dev *dp, mblk_t *mp) argument
883 axf_mii_read(struct usbgem_dev *dp, uint_t index, int *errp) argument
910 axf_mii_write(struct usbgem_dev *dp, uint_t index, uint16_t val, int *errp) argument
934 axf_interrupt(struct usbgem_dev *dp, mblk_t *mp) argument
960 axf_eeprom_dump(struct usbgem_dev *dp, int size) argument
988 axf_attach_chip(struct usbgem_dev *dp) argument
1095 axf_scan_phy(struct usbgem_dev *dp) argument
1163 axf_mii_probe(struct usbgem_dev *dp) argument
1217 axf_mii_init(struct usbgem_dev *dp) argument
1246 struct usbgem_dev *dp; local
[all...]

Completed in 122 milliseconds

1234567891011>>