/illumos-gate/usr/src/uts/common/io/usbgem/ |
H A D | usbgem.c | 103 #define DEFAULT_PIPE(dp) ((dp)->reg_data->dev_default_ph) 113 #define MAXPKTLEN(dp) ((dp)->mtu + ETHERHEADERL) 114 #define MAXPKTBUF(dp) ((dp)->mtu + ETHERHEADERL + ETHERFCSL) 123 static int usbgem_open_pipes(struct usbgem_dev *dp); 124 static int usbgem_close_pipes(struct usbgem_dev *dp); 250 usbgem_prop_get_int(struct usbgem_dev *dp, char *prop_template, int def_val) argument 254 (void) sprintf(propname, prop_template, dp 289 usbgem_dump_packet(struct usbgem_dev *dp, char *title, mblk_t *mp, boolean_t check_cksum) argument 478 usbgem_hal_reset_chip(struct usbgem_dev *dp) argument 489 usbgem_hal_init_chip(struct usbgem_dev *dp) argument 500 usbgem_hal_attach_chip(struct usbgem_dev *dp) argument 511 usbgem_hal_set_rx_filter(struct usbgem_dev *dp) argument 522 usbgem_hal_set_media(struct usbgem_dev *dp) argument 533 usbgem_hal_start_chip(struct usbgem_dev *dp) argument 544 usbgem_hal_stop_chip(struct usbgem_dev *dp) argument 555 usbgem_hal_get_stats(struct usbgem_dev *dp) argument 572 usbgem_rx_start_unit(struct usbgem_dev *dp, usb_bulk_req_t *req) argument 619 usbgem_init_rx_buf(struct usbgem_dev *dp) argument 650 usbgem_free_memory(struct usbgem_dev *dp) argument 665 usbgem_alloc_memory(struct usbgem_dev *dp) argument 707 usbgem_send_common(struct usbgem_dev *dp, mblk_t *mp, uint32_t flags) argument 845 usbgem_restart_nic(struct usbgem_dev *dp) argument 923 usbgem_tx_timeout(struct usbgem_dev *dp) argument 977 usbgem_tx_watcher_start(struct usbgem_dev *dp) argument 1002 usbgem_tx_watcher_stop(struct usbgem_dev *dp) argument 1030 struct usbgem_dev *dp; local 1141 struct usbgem_dev *dp; local 1202 struct usbgem_dev *dp; local 1221 usbgem_choose_forcedmode(struct usbgem_dev *dp) argument 1240 usbgem_mii_read(struct usbgem_dev *dp, uint_t reg, int *errp) argument 1252 usbgem_mii_write(struct usbgem_dev *dp, uint_t reg, uint16_t val, int *errp) argument 1260 usbgem_mii_probe(struct usbgem_dev *dp) argument 1269 usbgem_mii_init(struct usbgem_dev *dp) argument 1282 usbgem_mii_config_default(struct usbgem_dev *dp, int *errp) argument 1446 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 3958 usbgem_mac_xcvr_inuse(struct usbgem_dev *dp) argument 4062 struct usbgem_dev *dp = arg; local 4114 struct usbgem_dev *dp = arg; local 4145 struct usbgem_dev *dp = arg; local 4172 struct usbgem_dev *dp = arg; local 4208 struct usbgem_dev *dp = arg; local 4532 struct usbgem_dev *dp = arg; local 4569 struct usbgem_dev *dp = arg; local 4618 struct usbgem_dev *dp = arg; local 4629 usbgem_gld3_init(struct usbgem_dev *dp, mac_register_t *macp) argument 4663 struct usbgem_dev *dp; local 4693 struct usbgem_dev *dp; local 4726 struct usbgem_dev *dp; local 4763 struct usbgem_dev *dp; local 4791 struct usbgem_dev *dp; local 4822 struct usbgem_dev *dp; local 4842 struct usbgem_dev *dp; local 4893 struct usbgem_dev *dp; local 4909 struct usbgem_dev *dp; local 4946 struct usbgem_dev *dp; local 4970 usbgem_gld_init(struct usbgem_dev *dp, gld_mac_info_t *macinfo, char *ident) argument 5012 usbgem_generate_macaddr(struct usbgem_dev *dp, uint8_t *mac) argument 5049 usbgem_get_mac_addr_conf(struct usbgem_dev *dp) argument 5128 usbgem_read_conf(struct usbgem_dev *dp) argument 5289 struct usbgem_dev *dp = (struct usbgem_dev *)ksp->ks_private; local 5358 usbgem_kstat_init(struct usbgem_dev *dp) argument 5456 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 5525 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 5589 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 5612 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 5657 usbgem_open_pipes(struct usbgem_dev *dp) argument 5773 usbgem_close_pipes(struct usbgem_dev *dp) argument 5800 usbgem_freeze_device(struct usbgem_dev *dp, boolean_t graceful) argument 5821 struct usbgem_dev *dp; local 5840 usbgem_recover_device(struct usbgem_dev *dp) argument 5878 struct usbgem_dev *dp; local 5910 struct usbgem_dev *dp; local 5933 struct usbgem_dev *dp; local 5967 struct usbgem_dev *dp; local 6284 struct usbgem_dev *dp; local 6374 struct usbgem_dev *dp; local [all...] |
/illumos-gate/usr/src/uts/common/io/sfe/ |
H A D | sfe_util.c | 108 #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 D | sfe.c | 181 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 D | vmxnet3_main.c | 33 #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 871 vmxnet3_softc_t *dp = data; local 896 vmxnet3_softc_t *dp = data; local 922 vmxnet3_softc_t *dp = arg; local 1030 vmxnet3_softc_t *dp = data; local 1068 vmxnet3_softc_t *dp = data; local 1086 vmxnet3_intr_events(vmxnet3_softc_t *dp) argument 1140 vmxnet3_softc_t *dp = (void *) data1; local 1188 vmxnet3_softc_t *dp = ksp->ks_private; local 1205 vmxnet3_kstat_init(vmxnet3_softc_t *dp) argument 1246 vmxnet3_softc_t *dp; local 1505 vmxnet3_softc_t *dp = ddi_get_driver_private(dip); local 1629 vmxnet3_log(int level, vmxnet3_softc_t *dp, char *fmt, ...) argument [all...] |
H A D | vmxnet3_rx.c | 31 vmxnet3_alloc_rxbuf(vmxnet3_softc_t *dp, boolean_t canSleep) argument 39 atomic_inc_32(&dp->rx_alloc_failed); 43 if ((err = vmxnet3_alloc_dma_mem_1(dp, &rxBuf->dma, (dp->cur_mtu + 18), 45 VMXNET3_DEBUG(dp, 0, "Failed to allocate %d bytes for rx buf, " 46 "err:%d\n", (dp->cur_mtu + 18), err); 48 atomic_inc_32(&dp->rx_alloc_failed); 54 rxBuf->dp = dp; 56 atomic_inc_32(&dp 62 vmxnet3_free_rxbuf(vmxnet3_softc_t *dp, vmxnet3_rxbuf_t *rxBuf) argument 88 vmxnet3_put_rxpool_buf(vmxnet3_softc_t *dp, vmxnet3_rxbuf_t *rxBuf, boolean_t init) argument 114 vmxnet3_softc_t *dp = rxBuf->dp; local 127 vmxnet3_get_rxpool_buf(vmxnet3_softc_t *dp) argument 151 vmxnet3_rxpool_init(vmxnet3_softc_t *dp) argument 185 vmxnet3_rx_populate(vmxnet3_softc_t *dp, vmxnet3_rxqueue_t *rxq, uint16_t idx, boolean_t canSleep, boolean_t pool) argument 239 vmxnet3_rxqueue_init(vmxnet3_softc_t *dp, vmxnet3_rxqueue_t *rxq) argument 279 vmxnet3_rxqueue_fini(vmxnet3_softc_t *dp, vmxnet3_rxqueue_t *rxq) argument 309 vmxnet3_rx_hwcksum(vmxnet3_softc_t *dp, mblk_t *mp, Vmxnet3_GenericDesc *compDesc) argument 337 vmxnet3_rx_intr(vmxnet3_softc_t *dp, vmxnet3_rxqueue_t *rxq) argument [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dsl_pool.c | 134 dsl_pool_open_special_dir(dsl_pool_t *dp, const char *name, dsl_dir_t **ddp) argument 139 err = zap_lookup(dp->dp_meta_objset, 140 dsl_dir_phys(dp->dp_root_dir)->dd_child_dir_zapobj, 145 return (dsl_dir_hold_obj(dp, obj, name, dp, ddp)); 151 dsl_pool_t *dp; local 154 dp = kmem_zalloc(sizeof (dsl_pool_t), KM_SLEEP); 155 dp->dp_spa = spa; 156 dp->dp_meta_rootbp = *bp; 157 rrw_init(&dp 182 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg); local 195 dsl_pool_open(dsl_pool_t *dp) argument 288 dsl_pool_close(dsl_pool_t *dp) argument 343 dsl_pool_t *dp = dsl_pool_open_impl(spa, txg); local 416 dsl_pool_mos_diduse_space(dsl_pool_t *dp, int64_t used, int64_t comp, int64_t uncomp) argument 428 dsl_pool_sync_mos(dsl_pool_t *dp, dmu_tx_t *tx) argument 438 dsl_pool_dirty_delta(dsl_pool_t *dp, int64_t delta) argument 456 dsl_pool_sync(dsl_pool_t *dp, uint64_t txg) argument 580 dsl_pool_sync_done(dsl_pool_t *dp, uint64_t txg) argument 605 dsl_pool_sync_context(dsl_pool_t *dp) argument 612 dsl_pool_adjustedsize(dsl_pool_t *dp, boolean_t netfree) argument 630 dsl_pool_need_dirty_delay(dsl_pool_t *dp) argument 645 dsl_pool_dirty_space(dsl_pool_t *dp, int64_t space, dmu_tx_t *tx) argument 656 dsl_pool_undirty_space(dsl_pool_t *dp, int64_t space, uint64_t txg) argument 675 upgrade_clones_cb(dsl_pool_t *dp, dsl_dataset_t *hds, void *arg) argument 755 dsl_pool_upgrade_clones(dsl_pool_t *dp, dmu_tx_t *tx) argument 766 upgrade_dir_clones_cb(dsl_pool_t *dp, dsl_dataset_t *ds, void *arg) argument 794 dsl_pool_upgrade_dir_clones(dsl_pool_t *dp, dmu_tx_t *tx) argument 819 dsl_pool_create_origin(dsl_pool_t *dp, dmu_tx_t *tx) argument 839 dsl_pool_vnrele_taskq(dsl_pool_t *dp) argument 849 dsl_pool_clean_tmp_userrefs(dsl_pool_t *dp) argument 890 dsl_pool_user_hold_create_obj(dsl_pool_t *dp, dmu_tx_t *tx) argument 902 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 940 dsl_pool_user_hold(dsl_pool_t *dp, uint64_t dsobj, const char *tag, uint64_t now, dmu_tx_t *tx) argument 950 dsl_pool_user_release(dsl_pool_t *dp, uint64_t dsobj, const char *tag, dmu_tx_t *tx) argument 1009 dsl_pool_hold(const char *name, void *tag, dsl_pool_t **dp) argument 1023 dsl_pool_rele(dsl_pool_t *dp, void *tag) argument 1030 dsl_pool_config_enter(dsl_pool_t *dp, void *tag) argument 1049 dsl_pool_config_enter_prio(dsl_pool_t *dp, void *tag) argument 1056 dsl_pool_config_exit(dsl_pool_t *dp, void *tag) argument 1062 dsl_pool_config_held(dsl_pool_t *dp) argument 1068 dsl_pool_config_held_writer(dsl_pool_t *dp) argument [all...] |
/illumos-gate/usr/src/lib/libast/common/disc/ |
H A D | sfdcdos.c | 60 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 D | fmd.c | 368 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/cmd/csh/ |
H A D | sh.dir.c | 43 struct directory *dp; local 65 dp = (struct directory *)xcalloc(sizeof (struct directory), 1); 66 dp->di_name = savestr(cp); 67 dp->di_count = 0; 68 dhead.di_next = dhead.di_prev = dp; 69 dp->di_next = dp->di_prev = &dhead; 71 dnewcwd(dp); 80 struct directory *dp; local 96 dp 129 struct directory *dp; local 168 tchar *dp; local 370 struct directory *dp; local 413 struct directory *dp; local 445 struct directory *dp, *p; local 476 dfree(struct directory *dp) argument 722 dnewcwd(struct directory *dp) argument [all...] |
/illumos-gate/usr/src/ucbcmd/printenv/ |
H A D | printenv.c | 51 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 D | dt_sugar.c | 88 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 D | whereis.c | 223 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/libbc/inc/include/sys/ |
H A D | dirent.h | 62 * The macro DIRSIZ(dp) gives the minimum amount of space required to represent 63 * a directory entry. For any directory entry dp->d_reclen >= DIRSIZ(dp). 68 #define DIRSIZ(dp) \ 69 (((sizeof(struct dirent) - (MAXNAMLEN+1) + ((dp)->d_namlen+1)) +3) & ~3)
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | readdir.c | 39 register struct dirent *dp; local 44 dp = (struct dirent *)&dirp->dd_buf[dirp->dd_loc]; 46 dirp->dd_loc += dp->d_reclen; 60 dp = (struct dirent *)&dirp->dd_buf[dirp->dd_loc]; 61 if (dp->d_reclen <= 0) 63 if (dp->d_fileno == 0) 65 dirp->dd_off = dp->d_off; 66 return(dp);
|
/illumos-gate/usr/src/cmd/lvm/rpc.metamhd/ |
H A D | mhd_drive.c | 50 mhd_drive_t *dp 59 dlp->dl_drives[dlp->dl_ndrive++] = dp; 68 mhd_drive_t *dp 75 if (dlp->dl_drives[i] == dp) 78 assert(dlp->dl_drives[i] == dp); 102 mhd_drive_t *dp, 107 mhd_drive_set_t *sp = dp->dr_sp; 108 mhd_state_t old_state = dp->dr_state; 115 dp->dr_rname, dp 101 mhd_state( mhd_drive_t *dp, mhd_state_t new_state, mhd_error_t *mhep ) argument 148 mhd_state_set( mhd_drive_t *dp, mhd_state_t new_state, mhd_error_t *mhep ) argument 158 mhd_state_clr( mhd_drive_t *dp, mhd_state_t new_state, mhd_error_t *mhep ) argument 171 mhd_idle( mhd_drive_t *dp, mhd_error_t *mhep ) argument 634 match_SSA200( mhd_drive_t *dp, char *path ) argument 718 match_SSA100( mhd_drive_t *dp, char *path ) argument 1022 mhd_thread_create( mhd_drive_t *dp, mhd_error_t *mhep ) argument 1096 mhd_drive_t *dp = NULL; local 1172 mhd_drive_t *dp; local [all...] |
/illumos-gate/usr/src/lib/libast/common/dir/ |
H A D | readdir.c | 42 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 D | gnamef.c | 45 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 D | ppp-comp.h | 102 #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 D | pass1.c | 134 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/uts/common/fs/zfs/sys/ |
H A D | dsl_pool.h | 136 int dsl_pool_open(dsl_pool_t *dp); 137 void dsl_pool_close(dsl_pool_t *dp); 139 void dsl_pool_sync(dsl_pool_t *dp, uint64_t txg); 140 void dsl_pool_sync_done(dsl_pool_t *dp, uint64_t txg); 141 int dsl_pool_sync_context(dsl_pool_t *dp); 142 uint64_t dsl_pool_adjustedsize(dsl_pool_t *dp, boolean_t netfree); 143 uint64_t dsl_pool_adjustedfree(dsl_pool_t *dp, boolean_t netfree); 144 void dsl_pool_dirty_space(dsl_pool_t *dp, int64_t space, dmu_tx_t *tx); 145 void dsl_pool_undirty_space(dsl_pool_t *dp, int64_t space, uint64_t txg); 146 void dsl_free(dsl_pool_t *dp, uint64_ [all...] |
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_retire.c | 60 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 D | vsw_rxdring.c | 71 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/lib/fm/topo/modules/common/pcibus/ |
H A D | did.c | 354 did_link_get(did_t *dp) argument 356 assert(dp != NULL); 357 return (dp->dp_link); 361 did_chain_get(did_t *dp) argument 363 assert(dp != NULL); 364 return (dp->dp_chain); 396 did_destroy(did_t *dp) argument 398 assert(dp != NULL); 408 if (dp->dp_devtype != NULL) 409 topo_mod_strfree(dp 419 did_hold(did_t *dp) argument 426 did_rele(did_t *dp) argument 434 did_dinode(did_t *dp) argument 442 did_mod(did_t *dp) argument 449 did_markrc(did_t *dp) argument 456 did_BDF(did_t *dp, int *bus, int *dev, int *fn) argument 489 did_excap(did_t *dp) argument 496 did_excap_set(did_t *dp, int type) argument 502 did_bdf(did_t *dp) argument 509 did_physlot_name(did_t *dp, int dev) argument 555 did_t *dp; local 569 did_t *dp; local 586 did_t *dp; local 597 did_t *dp; local [all...] |
/illumos-gate/usr/src/uts/common/io/upf/ |
H A D | upf_usbgem.c | 149 #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 D | fulldevnm.c | 197 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...] |