Home
last modified time | relevance | path

Searched refs:vdev (Results 1 – 25 of 148) sorted by relevance

123456

/freebsd-14.2/sys/dev/enic/
H A Dvnic_dev.h52 void *vnic_dev_priv(struct vnic_dev *vdev);
55 void vnic_register_cbacks(struct vnic_dev *vdev,
79 int vnic_dev_fw_info(struct vnic_dev *vdev,
110 u32 vnic_dev_port_speed(struct vnic_dev *vdev);
111 u32 vnic_dev_msg_lvl(struct vnic_dev *vdev);
112 u32 vnic_dev_mtu(struct vnic_dev *vdev);
115 u32 vnic_dev_uif(struct vnic_dev *vdev);
116 int vnic_dev_close(struct vnic_dev *vdev);
117 int vnic_dev_enable(struct vnic_dev *vdev);
119 int vnic_dev_disable(struct vnic_dev *vdev);
[all …]
H A Dvnic_dev.c22 return vdev->priv; in vnic_dev_priv()
258 memset(vdev->args, 0, sizeof(vdev->args)); in vnic_dev_cmd_proxy()
260 vdev->args[0] = vdev->proxy_index; in vnic_dev_cmd_proxy()
291 memset(vdev->args, 0, sizeof(vdev->args)); in vnic_dev_cmd_no_proxy()
309 memset(vdev->args, 0, sizeof(vdev->args)); in vnic_dev_cmd()
740 if (vdev->notify || vdev->notify_pa) { in vnic_dev_notify_set()
741 return vnic_dev_notify_setcmd(vdev, vdev->notify, in vnic_dev_notify_set()
779 if (vdev->notify && !vnic_dev_in_reset(vdev)) { in vnic_dev_notify_unset()
793 if (!vdev->notify || !vdev->notify_sz) in vnic_dev_notify_ready()
801 memcpy(&vdev->notify_copy, vdev->notify, vdev->notify_sz); in vnic_dev_notify_ready()
[all …]
H A Dif_enic.c278 vdev = &softc->vdev; in enic_attach_pre()
280 enic->vdev = vdev; in enic_attach_pre()
285 enic->vdev = vdev; in enic_attach_pre()
473 enic->intr[i].vdev = enic->vdev; in enic_msix_intr_assign()
490 enic->intr[i].vdev = enic->vdev; in enic_msix_intr_assign()
508 enic->intr[i].vdev = enic->vdev; in enic_msix_intr_assign()
524 enic->intr[i].vdev = enic->vdev; in enic_msix_intr_assign()
636 wq->vdev = softc->enic.vdev; in enic_tx_queues_alloc()
654 cq->vdev = softc->enic.vdev; in enic_tx_queues_alloc()
710 cq->vdev = softc->enic.vdev; in enic_rx_queues_alloc()
[all …]
H A Denic_res.c28 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 Dvnic_intr.c15 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-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_split/
H A Dzpool_split_vdevs.ksh74 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-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dzpool_add_001_pos.ksh73 typeset vdev
83 for vdev in "${poolarray[@]}"; do
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"
115 for vdev in "${draidarray[@]}"; do
[all …]
/freebsd-14.2/tests/sys/cddl/zfs/tests/cli_root/zpool_add/
H A Dzpool_add_001_pos.ksh78 typeset vdev
86 for vdev in "${poolarray[@]}"; do
90 $vdev
91 log_must iscontained "$TESTPOOL" "$vdev"
97 for vdev in "${mirrorarray[@]}"; do
102 $vdev
103 log_must iscontained "$TESTPOOL" "$vdev"
109 for vdev in "${raidzarray[@]}"; do
114 $vdev
115 log_must iscontained "$TESTPOOL" "$vdev"
H A Dzpool_add.kshlib44 typeset vdev
53 for vdev in $@; do
56 vdev=${vdev#/dev/}
59 vdevname=$vdev >/dev/null 2>&1
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/trim/
H A Dtrim.kshlib35 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-14.2/stand/libsa/zfs/
H A Dzfsimpl.c248 rc = vdev->v_phys_read(vdev, vdev->v_priv, offset, buf, psize); in vdev_read_phys()
263 return (vdev->v_phys_write(vdev, offset, buf, size)); in vdev_write_phys()
845 vdev_t *vdev; in vdev_find() local
857 vdev_t *vdev; in vdev_create() local
924 vdev_t *vdev; in vdev_init() local
1233 vdev_t *vdev; in vdev_update_from_nvlist() local
1450 ret = print_state(indent, vdev->v_name, vdev->v_state); in vdev_status()
1705 vdev->v_name ? vdev->v_name : "unknown", l, err); in vdev_write_bootenv_impl()
2119 if (vdev && vdev->v_phys_read) { in vdev_probe()
2275 if (!vdev || !vdev->v_read) in zio_read()
[all …]
H A Dzfs.c589 fd = (uintptr_t)vdev->v_priv; in vdev_write()
794 zfs_get_bootenv(void *vdev, nvlist_t **benvp) in zfs_get_bootenv() argument
808 zfs_set_bootenv(void *vdev, nvlist_t *benv) in zfs_set_bootenv() argument
1040 rv = zfs_nvstore_setenv(vdev, in zfs_nvstore_setter()
1277 zfs_nvstore_unset(void *vdev, const char *name) in zfs_nvstore_unset() argument
1418 rv = cb(vdev, nvh); in zfs_nvstore_iterate()
1435 zfs_attach_nvstore(void *vdev) in zfs_attach_nvstore() argument
1437 struct zfs_devdesc *dev = vdev; in zfs_attach_nvstore()
1458 memcpy(dev, vdev, sizeof (*dev)); in zfs_attach_nvstore()
1663 zfs_fmtdev(struct devdesc *vdev) in zfs_fmtdev() argument
[all …]
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import.kshlib172 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-14.2/tests/sys/cddl/zfs/tests/redundancy/
H A Dredundancy.kshlib166 typeset vdev
167 for vdev in $@; do
168 [ ! -f $vdev ] && log_must create_vdevs $vdev
169 log_must $ZPOOL replace -f $pool $vdev $vdev
184 for vdev in $*; do
185 check_state $pool $vdev UNAVAIL && continue
186 log_must create_vdevs $vdev
271 for vdev in $vdevs; do
272 wait_for 20 1 check_state $pool $vdev UNAVAIL
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/
H A Dzfs_mount.kshlib52 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-14.2/cddl/usr.sbin/zfsd/
H A Dzfsd_event.cc209 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()
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()
460 Vdev parent = vdev.Parent(); in TryDetach()
[all …]
H A Dzfsd_exception.cc119 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-14.2/tests/sys/cddl/zfs/tests/cli_root/zfs_mount/
H A Dzfs_mount.kshlib53 typeset vdev=$6
65 if [[ $vdev != "" && \
66 $vdev != "mirror" && \
67 $vdev != "raidz" ]] ; then
69 log_note "Wrong vdev: (\"$vdev\")"
74 create_pool $pool $vdev $disklist
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zdb/
H A Dzdb_decompress.ksh84 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-14.2/tools/tools/zfsboottest/
H A Dzfsboottest.sh66 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-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_clear/
H A Dzpool_clear_001_pos.ksh75 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-14.2/tests/sys/cddl/zfs/tests/cli_root/zpool_export/
H A Dzpool_export_004_pos.ksh75 if [[ -e $mntpnt/vdev$i ]]; then
76 log_must $RM -f $mntpnt/vdev$i
92 log_must create_vdevs $mntpnt/vdev$i
93 eval vdev$i=$mntpnt/vdev$i
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/events/
H A Dzed_slow_io_many_vdevs.ksh72 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-14.2/sys/contrib/openzfs/cmd/zed/zed.d/
H A Dstatechange-led.sh46 vdev=""
90 zed_log_msg "vdev $vdev set '$file' LED to $val"
190 while read -r vdev state _ _ _ therest; do
214 zed_log_msg "vdev $vdev '$led_path' doesn't exist"
235 vdev=$(basename "$ZEVENT_VDEV_PATH")
H A Dvdev_attach-led.sh46 vdev=""
90 zed_log_msg "vdev $vdev set '$file' LED to $val"
190 while read -r vdev state _ _ _ therest; do
214 zed_log_msg "vdev $vdev '$led_path' doesn't exist"
235 vdev=$(basename "$ZEVENT_VDEV_PATH")

123456