/freebsd/sys/dev/enic/ |
H A D | vnic_dev.h | 52 void *vnic_dev_priv(struct vnic_dev *vdev); 53 unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev, 55 void vnic_register_cbacks(struct vnic_dev *vdev, 61 void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, 63 uint8_t vnic_dev_get_res_bar(struct vnic_dev *vdev, 65 uint32_t vnic_dev_get_res_offset(struct vnic_dev *vdev, 67 unsigned long vnic_dev_get_res_type_len(struct vnic_dev *vdev, 72 int vnic_dev_cmd(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, 74 int vnic_dev_cmd_args(struct vnic_dev *vdev, enum vnic_devcmd_cmd cmd, 76 void vnic_dev_cmd_proxy_by_index_start(struct vnic_dev *vdev, u16 index); [all …]
|
H A D | vnic_dev.c | 20 void *vnic_dev_priv(struct vnic_dev *vdev) in vnic_dev_priv() argument 22 return vdev->priv; in vnic_dev_priv() 25 void vnic_register_cbacks(struct vnic_dev *vdev, in vnic_register_cbacks() argument 32 vdev->alloc_consistent = alloc_consistent; in vnic_register_cbacks() 33 vdev->free_consistent = free_consistent; in vnic_register_cbacks() 36 static int vnic_dev_discover_res(struct vnic_dev *vdev, in vnic_dev_discover_res() argument 39 struct enic_softc *softc = vdev->softc; in vnic_dev_discover_res() 106 vdev->res[type].count = count; in vnic_dev_discover_res() 107 bcopy(&softc->mem, &vdev->res[type].bar, sizeof(softc->mem)); in vnic_dev_discover_res() 108 vdev->res[type].bar.offset = bar_offset; in vnic_dev_discover_res() [all …]
|
H A D | if_enic.c | 243 struct vnic_dev *vdev; in enic_attach_pre() local 278 vdev = &softc->vdev; in enic_attach_pre() 279 vdev->softc = softc; in enic_attach_pre() 280 enic->vdev = vdev; in enic_attach_pre() 281 vdev->priv = enic; in enic_attach_pre() 284 vnic_dev_register(vdev, &softc->mem, 1); in enic_attach_pre() 285 enic->vdev = vdev; in enic_attach_pre() 286 vdev->devcmd = vnic_dev_get_res(vdev, RES_TYPE_DEVCMD, 0); in enic_attach_pre() 288 vnic_dev_cmd(vdev, CMD_INIT_v1, &a0, &a1, wait); in enic_attach_pre() 289 vnic_dev_cmd(vdev, CMD_GET_MAC_ADDR, &a0, &a1, wait); in enic_attach_pre() [all …]
|
H A D | enic_res.c | 28 err = vnic_dev_get_mac_addr(enic->vdev, enic->mac_addr); in enic_get_vnic_config() 37 err = vnic_dev_spec(enic->vdev, \ in enic_get_vnic_config() 69 enic->adv_filters = vnic_dev_capable_adv_filters(enic->vdev); in enic_get_vnic_config() 71 err = vnic_dev_capable_filter_mode(enic->vdev, &enic->flow_filter_mode, in enic_get_vnic_config() 78 vnic_dev_capable_udp_rss_weak(enic->vdev, &enic->nic_cfg_chk, in enic_get_vnic_config() 94 vnic_dev_get_intr_coal_timer_max(enic->vdev)); in enic_get_vnic_config() 132 vnic_dev_capable_vxlan(enic->vdev); in enic_get_vnic_config() 147 err = vnic_dev_cmd(enic->vdev, CMD_VLAN_ADD, &a0, &a1, wait); in enic_add_vlan() 160 err = vnic_dev_cmd(enic->vdev, CMD_VLAN_DEL, &a0, &a1, wait); in enic_del_vlan() 183 return vnic_dev_cmd(enic->vdev, cmd, &a0, &a1, wait); in enic_set_nic_cfg() [all …]
|
H A D | vnic_intr.c | 15 int vnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, in vnic_intr_alloc() argument 19 intr->vdev = vdev; in vnic_intr_alloc() 21 intr->ctrl = vnic_dev_get_res(vdev, RES_TYPE_INTR_CTRL, index); in vnic_intr_alloc() 43 vnic_dev_intr_coal_timer_usec_to_hw(intr->vdev, coalescing_timer)); in vnic_intr_coalescing_timer_set()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_split/ |
H A D | zpool_split_vdevs.ksh | 74 vdev='' ;; 76 vdev='mirror';; 78 vdev='raidz1';; 80 vdev='raidz2';; 82 vdev='raidz3';; 84 vdev='spare';; 86 vdev='log';; 88 vdev='log mirror';; 90 vdev='cache';; 92 vdev='special mirror';; [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/ |
H A D | zpool_add_001_pos.ksh | 73 typeset vdev 83 for vdev in "${poolarray[@]}"; do 86 log_must zpool add -f "$TESTPOOL" ${keywords[i]} $vdev 87 log_must vdevs_in_pool "$TESTPOOL" "$vdev" 93 for vdev in "${mirrorarray[@]}"; do 97 log_must zpool add "$TESTPOOL" ${keywords[i]} $vdev 98 log_must vdevs_in_pool "$TESTPOOL" "$vdev" 104 for vdev in "${raidzarray[@]}"; do 108 log_must zpool add "$TESTPOOL" ${keywords[i]} $vdev 109 log_must vdevs_in_pool "$TESTPOOL" "$vdev" [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_add/ |
H A D | zpool_add_001_pos.ksh | 75 typeset vdev 83 for vdev in "${poolarray[@]}"; do 87 $vdev 88 log_must iscontained "$TESTPOOL" "$vdev" 94 for vdev in "${mirrorarray[@]}"; do 99 $vdev 100 log_must iscontained "$TESTPOOL" "$vdev" 106 for vdev in "${raidzarray[@]}"; do 111 $vdev 112 log_must iscontained "$TESTPOOL" "$vdev"
|
H A D | zpool_add.kshlib | 41 typeset vdev 50 for vdev in $@; do 53 vdev=${vdev#/dev/} 56 vdevname=$vdev >/dev/null 2>&1
|
/freebsd/stand/libsa/zfs/ |
H A D | zfsimpl.c | 233 vdev_read_phys(vdev_t *vdev, const blkptr_t *bp, void *buf, in vdev_read_phys() argument 239 if (vdev->v_phys_read == NULL) in vdev_read_phys() 248 rc = vdev->v_phys_read(vdev, vdev->v_priv, offset, buf, psize); in vdev_read_phys() 251 rc = zio_checksum_verify(vdev->v_spa, bp, buf); in vdev_read_phys() 258 vdev_write_phys(vdev_t *vdev, void *buf, off_t offset, size_t size) in vdev_write_phys() argument 260 if (vdev->v_phys_write == NULL) in vdev_write_phys() 263 return (vdev->v_phys_write(vdev, offset, buf, size)); in vdev_write_phys() 539 vdev_lookup_top(spa_t *spa, uint64_t vdev) in vdev_lookup_top() argument 546 if (rvd->v_id == vdev) in vdev_lookup_top() 698 vdev_indirect_read(vdev_t *vdev, const blkptr_t *bp, void *buf, in vdev_indirect_read() argument [all …]
|
H A D | zfs.c | 458 vdev_read(vdev_t *vdev, void *priv, off_t offset, void *buf, size_t bytes) in vdev_read() argument 580 vdev_write(vdev_t *vdev, off_t offset, void *buf, size_t bytes) in vdev_write() argument 589 fd = (uintptr_t)vdev->v_priv; in vdev_write() 794 zfs_get_bootenv(void *vdev, nvlist_t **benvp) in zfs_get_bootenv() argument 798 if ((spa = spa_find_by_dev((struct zfs_devdesc *)vdev)) == NULL) in zfs_get_bootenv() 808 zfs_set_bootenv(void *vdev, nvlist_t *benv) in zfs_set_bootenv() argument 812 if ((spa = spa_find_by_dev((struct zfs_devdesc *)vdev)) == NULL) in zfs_set_bootenv() 823 zfs_get_bootonce(void *vdev, const char *key, char *buf, size_t size) in zfs_get_bootonce() argument 827 if ((spa = spa_find_by_dev((struct zfs_devdesc *)vdev)) == NULL) in zfs_get_bootonce() 883 zfs_nvstore_getter(void *vdev, const char *name, void **data) in zfs_nvstore_getter() argument [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/trim/ |
H A D | trim.kshlib | 35 typeset vdev="${3}" 41 zpool iostat -pr $pool $vdev | 45 zpool iostat -pr $pool $vdev | 62 typeset vdev="${4}" 65 ios=$(get_trim_io $pool $type $vdev) 109 for vdev in $vdevs; do 110 typeset size=$(get_size_mb $vdev) 112 log_note "Success $vdev is $size MB which is $tgt_op" \ 115 log_fail "Failure $vdev is $size MB which is not" \
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_import/ |
H A D | zpool_import.kshlib | 172 typeset vdev=$1 180 if echo $vdev | 183 vdev=$word 188 case "$vdev" in 192 *) echo $vdev ;; 225 while read -r vdev _; do 226 if ( ! $began ) && [[ $vdev == NAME ]]; then 230 ( $began ) && [[ -z $vdev ]] && break; 233 [[ -z $actual ]] && actual="$vdev" && continue 234 vdev=$(_translate_vdev $vdev) [all …]
|
/freebsd/tests/sys/geom/class/virstor/ |
H A D | virstor_test.sh | 32 vdev="/dev/$class/$name" 34 ssize=$(diskinfo $vdev | awk '{print $2}') 37 size=$(diskinfo $vdev | awk '{print $3}') 44 jot -b a 0 | dd status=none of=$vdev bs=$ssize count=1 conv=notrunc 45 jot -b z 0 | dd status=none of=$vdev bs=$ssize count=1 conv=notrunc \ 49 hashx=$(dd status=none if=$vdev bs=$ssize count=1 | sha1) 51 hashx=$(dd status=none if=$vdev bs=$ssize count=1 skip=$zsector | sha1) 60 hashx=$(dd status=none if=$vdev bs=$ssize count=1 | sha1) 62 hashx=$(dd status=none if=$vdev bs=$ssize count=1 skip=$zsector | sha1)
|
/freebsd/tests/sys/cddl/zfs/tests/redundancy/ |
H A D | redundancy.kshlib | 163 typeset vdev 164 for vdev in $@; do 165 [ ! -f $vdev ] && log_must create_vdevs $vdev 166 log_must $ZPOOL replace -f $pool $vdev $vdev 181 for vdev in $*; do 182 check_state $pool $vdev UNAVAIL && continue 183 log_must create_vdevs $vdev 268 for vdev in $vdevs; do 269 wait_for 20 1 check_state $pool $vdev UNAVAIL
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/ |
H A D | zfs_mount.kshlib | 52 typeset vdev=$6 64 if [[ $vdev != "" && \ 65 $vdev != "mirror" && \ 66 $vdev != "raidz" && \ 67 $vdev != "draid" ]] ; then 69 log_note "Wrong vdev: (\"$vdev\")" 74 create_pool $pool $vdev $disklist
|
/freebsd/cddl/usr.sbin/zfsd/ |
H A D | zfsd_event.cc | 209 Vdev vdev(devLabel); in ReadLabel() local 210 degraded = vdev.State() != VDEV_STATE_HEALTHY; in ReadLabel() 240 Vdev vdev(devConfig); in OnlineByLabel() local 241 CaseFile::Find(vdev.PoolGUID(),vdev.GUID(), case_list); in OnlineByLabel() 244 ret |= (*curr)->ReEvaluate(devPath, physPath, &vdev); in OnlineByLabel() 356 Vdev vdev(zpl.front(), vdevConfig); in Process() local 357 caseFile = &CaseFile::Create(vdev); in Process() 363 msg << vdev.GUID() << ") "; in Process() 446 ZfsEvent::TryDetach(Vdev &vdev, void *cbArg) in TryDetach() argument 455 if (vdev.IsSpare()) { in TryDetach() [all …]
|
H A D | zfsd_exception.cc | 119 Vdev vdev(m_poolConfig, m_vdevConfig); in Log() local 121 output << "Vdev " << vdev.GUID() << ": "; in Log() 123 Vdev vdev(m_vdevConfig); in Log() local 125 output << "Pool " << vdev.PoolGUID() << ": "; in Log() 126 output << "Vdev " << vdev.GUID() << ": "; in Log()
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_mount/ |
H A D | zfs_mount.kshlib | 50 typeset vdev=$6 62 if [[ $vdev != "" && \ 63 $vdev != "mirror" && \ 64 $vdev != "raidz" ]] ; then 66 log_note "Wrong vdev: (\"$vdev\")" 71 create_pool $pool $vdev $disklist
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/ |
H A D | zdb_decompress.ksh | 84 IFS=: read -r vdev offset _ <<< "$dva" 85 output=$(zdb -R $TESTPOOL $vdev:$offset:$size_str:d) 88 output=$(zdb -R $TESTPOOL $vdev:$offset:$size_str:dr) 91 output=$(zdb -R $TESTPOOL $vdev:$offset:$size_str:dr) 98 output=$(zdb -R $TESTPOOL $vdev:$offset:$lsize:dr) 105 output=$(zdb -R $TESTPOOL $vdev:$offset:$psize:dr)
|
/freebsd/tools/tools/zfsboottest/ |
H A D | zfsboottest.sh | 66 for vdev in `zpool status "${pool}" | grep ONLINE | awk '{print $1}'`; do 67 vdev="/dev/${vdev#/dev/}" 68 if [ -c "${vdev}" ]; then 70 vdevs="${vdev}" 72 vdevs="${vdevs} ${vdev}"
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_clear/ |
H A D | zpool_clear_001_pos.ksh | 75 typeset vdev _ c_read c_write c_cksum rest 76 while read -r vdev _ c_read c_write c_cksum rest; do 78 [ "$vdev" = "NAME" ] && skipstart=0 83 [ "$vdev" = "$checkvdev" ] || continue 96 typeset vdev="$@" 99 log_must zpool create -f $TESTPOOL1 $vdev
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/ |
H A D | zed_diagnose_multiple.ksh | 68 for vdev in $VDEVS 70 log_must zpool set io_n=4 $TESTPOOL $vdev 71 log_must zpool set io_t=60 $TESTPOOL $vdev 75 for vdev in $VDEVS 77 log_must zinject -d $vdev -e io $TESTPOOL 154 log_note $fault vdev fault in ZED log
|
H A D | zed_slow_io_many_vdevs.ksh | 72 for vdev in $VDEVS 74 log_must zpool set slow_io_n=4 $TESTPOOL $vdev 75 log_must zpool set slow_io_t=60 $TESTPOOL $vdev 82 for vdev in $VDEVS 84 log_must zinject -d $vdev -D10:1 $TESTPOOL 163 log_note $degrades vdev degrades in ZED log
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_export/ |
H A D | zpool_export_004_pos.ksh | 72 if [[ -e $mntpnt/vdev$i ]]; then 73 log_must $RM -f $mntpnt/vdev$i 89 log_must create_vdevs $mntpnt/vdev$i 90 eval vdev$i=$mntpnt/vdev$i
|