| /freebsd/sys/dev/mpt/ |
| H A D | mpt_pci.c | 146 static void mpt_free_bus_resources(struct mpt_softc *mpt); 149 static int mpt_dma_mem_alloc(struct mpt_softc *mpt); 150 static void mpt_dma_mem_free(struct mpt_softc *mpt); 152 static void mpt_read_config_regs(struct mpt_softc *mpt); 153 static void mpt_set_config_regs(struct mpt_softc *mpt); 170 DRIVER_MODULE(mpt, pci, mpt_driver, NULL, NULL); 171 MODULE_DEPEND(mpt, pci, 1, 1, 1); 172 MODULE_VERSION(mpt, 1); 253 mpt_set_options(struct mpt_softc *mpt) in mpt_set_options() argument 258 if (resource_int_value(device_get_name(mpt->dev), in mpt_set_options() [all …]
|
| H A D | mpt.c | 126 static void mpt_send_event_ack(struct mpt_softc *mpt, request_t *ack_req, 128 static int mpt_send_event_request(struct mpt_softc *mpt, int onoff); 129 static int mpt_soft_reset(struct mpt_softc *mpt); 130 static void mpt_hard_reset(struct mpt_softc *mpt); 131 static int mpt_dma_buf_alloc(struct mpt_softc *mpt); 132 static void mpt_dma_buf_free(struct mpt_softc *mpt); 133 static int mpt_configure_ioc(struct mpt_softc *mpt, int, int); 134 static int mpt_enable_ioc(struct mpt_softc *mpt, int); 148 mpt_pers_find(struct mpt_softc *mpt, u_int start_at) in mpt_pers_find() argument 154 && (mpt->mpt_pers_mask & (0x1 << start_at)) == 0) { in mpt_pers_find() [all …]
|
| H A D | mpt_raid.c | 102 static int mpt_raid_reply_frame_handler(struct mpt_softc *mpt, request_t *req, 104 static int mpt_spawn_raid_thread(struct mpt_softc *mpt); 105 static void mpt_terminate_raid_thread(struct mpt_softc *mpt); 109 static void mpt_enable_vol(struct mpt_softc *mpt, 120 static void mpt_vol_prt(struct mpt_softc *mpt, struct mpt_raid_volume *vol, 122 static void mpt_disk_prt(struct mpt_softc *mpt, struct mpt_raid_disk *disk, 125 static int mpt_issue_raid_req(struct mpt_softc *mpt, 130 static int mpt_refresh_raid_data(struct mpt_softc *mpt); 131 static void mpt_schedule_raid_refresh(struct mpt_softc *mpt); 191 mpt_vol_prt(struct mpt_softc *mpt, struct mpt_raid_volume *vol, in mpt_vol_prt() argument [all …]
|
| H A D | mpt_cam.c | 130 static int mpt_spawn_recovery_thread(struct mpt_softc *mpt); 131 static void mpt_terminate_recovery_thread(struct mpt_softc *mpt); 133 static void mpt_recover_commands(struct mpt_softc *mpt); 138 static void mpt_fc_post_els(struct mpt_softc *mpt, request_t *, int); 140 static int mpt_add_els_buffers(struct mpt_softc *mpt); 141 static int mpt_add_target_commands(struct mpt_softc *mpt); 189 mpt_cam_probe(struct mpt_softc *mpt) in mpt_cam_probe() argument 198 if (mpt->do_cfg_role) { in mpt_cam_probe() 199 role = mpt->cfg_role; in mpt_cam_probe() 201 role = mpt->role; in mpt_cam_probe() [all …]
|
| H A D | mpt.h | 219 #define mpt_dma_tag_create(mpt, parent_tag, alignment, boundary, \ argument 226 busdma_lock_mutex, &(mpt)->mpt_lock, \ 229 struct mpt_softc *mpt; member 361 #define MPT_MAKE_TAGID(mpt, req, ioindex) \ argument 362 ((ioindex << 18) | (((mpt->sequence++) & 0x3f) << 12) | (req->index & 0xfff)) 367 #define MPT_TAG_2_REQ(mpt, tag) mpt->tgt_cmd_ptrs[tag >> 18] argument 370 #define MPT_TGT_STATE(mpt, req) ((mpt_tgt_state_t *) \ argument 371 (&((uint8_t *)req->req_vbuf)[MPT_RQSL(mpt) - sizeof (mpt_tgt_state_t)])) 407 typedef int mpt_reply_handler_t(struct mpt_softc *mpt, request_t *request, 748 mpt_assign_serno(struct mpt_softc *mpt, request_t *req) in mpt_assign_serno() argument [all …]
|
| H A D | mpt_user.c | 100 mpt_user_probe(struct mpt_softc *mpt) in mpt_user_probe() argument 108 mpt_user_attach(struct mpt_softc *mpt) in mpt_user_attach() argument 113 MPT_LOCK(mpt); in mpt_user_attach() 115 error = mpt_register_handler(mpt, MPT_HANDLER_REPLY, handler, in mpt_user_attach() 117 MPT_UNLOCK(mpt); in mpt_user_attach() 119 mpt_prt(mpt, "Unable to register user handler!\n"); in mpt_user_attach() 122 unit = device_get_unit(mpt->dev); in mpt_user_attach() 123 mpt->cdev = make_dev(&mpt_cdevsw, unit, UID_ROOT, GID_OPERATOR, 0640, in mpt_user_attach() 125 if (mpt->cdev == NULL) { in mpt_user_attach() 126 MPT_LOCK(mpt); in mpt_user_attach() [all …]
|
| H A D | mpt_raid.h | 68 mpt_raid_wakeup(struct mpt_softc *mpt) in mpt_raid_wakeup() argument 70 mpt->raid_wakeup++; in mpt_raid_wakeup() 71 wakeup(&mpt->raid_volumes); in mpt_raid_wakeup() 84 #define RAID_VOL_FOREACH(mpt, mpt_vol) \ argument 85 for (mpt_vol = (mpt)->raid_volumes; \ 86 mpt_vol != (mpt)->raid_volumes + (mpt)->raid_max_volumes; \
|
| H A D | mpt_cam.h | 141 mpt_wakeup_recovery_thread(struct mpt_softc *mpt) in mpt_wakeup_recovery_thread() argument 143 wakeup(mpt); in mpt_wakeup_recovery_thread() 147 #define mpt_sim_alloc(a, b, c, mpt, e, f, g) \ argument 148 cam_sim_alloc(a, b, c, mpt, (mpt)->unit, &(mpt)->mpt_lock, e, f, g)
|
| H A D | mpt_debug.c | 823 mpt_dump_data(struct mpt_softc *mpt, const char *msg, void *addr, int len) in mpt_dump_data() argument 828 mpt_prt(mpt, "%s:", msg); in mpt_dump_data() 831 mpt_prtc(mpt, "\n"); in mpt_dump_data() 833 mpt_prtc(mpt, " %02x", cp[offset]); in mpt_dump_data() 835 mpt_prtc(mpt, "\n"); in mpt_dump_data() 839 mpt_dump_request(struct mpt_softc *mpt, request_t *req) in mpt_dump_request() argument 844 mpt_prt(mpt, "Send Request %d (%jx):", in mpt_dump_request() 846 for (o = 0; o < mpt->ioc_facts.RequestFrameSize; o++) { in mpt_dump_request() 848 mpt_prtc(mpt, "\n"); in mpt_dump_request() 849 mpt_prt(mpt, " "); in mpt_dump_request() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
| H A D | zpool_create_005_pos.ksh | 94 mpt=`zfs mount | awk -v pat="^$TESTPOOL[^/]" '$0 ~ pat {print $2}'` 95 [ -z "$mpt" ] && \ 98 [[ "$mpt" != "$mpt_val" ]] && \ 104 [[ "$mpt" != "$TESTDIR1" ]] && \ 109 [[ "$mpt" != "$TESTDIR1/$TESTPOOL" ]] && \ 114 [[ "$mpt" != "${TESTDIR1}$TESTDIR1" ]] && \
|
| /freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_create/ |
| H A D | zpool_create_005_pos.ksh | 90 mpt=`$ZFS mount | $EGREP "^$TESTPOOL[^/]" | $AWK '{print $2}'` 94 [[ "$mpt" != "$mpt_val" ]] && \ 106 [[ "$mpt" != "$expected_mpt" ]] && \ 107 log_fail "$expected_mpt is mounted on ${mpt} instead of $expected_mpt."
|
| /freebsd/sys/modules/mpt/ |
| H A D | Makefile | 1 .PATH: ${SRCTOP}/sys/dev/mpt 3 KMOD= mpt 6 mpt.c mpt_cam.c mpt_debug.c mpt_pci.c mpt_raid.c mpt_user.c
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unshare/ |
| H A D | zfs_unshare_004_neg.ksh | 71 mpt=$(get_prop mountpoint $TESTPOOL/$TESTFS) 75 log_mustnot eval "zfs unshare $opt $mpt >/dev/null 2>&1" 82 log_mustnot eval "zfs unshare $opt $mpt >/dev/null 2>&1"
|
| /freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_unshare/ |
| H A D | zfs_unshare_004_neg.ksh | 76 mpt=$(get_prop mountpoint $TESTPOOL/$TESTFS) 80 log_mustnot eval "$ZFS unshare $opt $mpt >/dev/null 2>&1" 87 log_mustnot eval "$ZFS unshare $opt $mpt >/dev/null 2>&1"
|
| /freebsd/sys/dev/mthca/ |
| H A D | mthca_mr.c | 601 mr->mem.arbel.mpt = mthca_table_find(dev->mr_table.mpt_table, key, NULL); in mthca_fmr_alloc() 602 BUG_ON(!mr->mem.arbel.mpt); in mthca_fmr_alloc() 604 mr->mem.tavor.mpt = dev->mr_table.tavor_fmr.mpt_base + in mthca_fmr_alloc() 605 sizeof *(mr->mem.tavor.mpt) * idx; in mthca_fmr_alloc() 735 writeb(MTHCA_MPT_STATUS_SW, fmr->mem.tavor.mpt); in mthca_tavor_map_phys_fmr() 747 __raw_writel((__force u32) mpt_entry.lkey, &fmr->mem.tavor.mpt->key); in mthca_tavor_map_phys_fmr() 748 memcpy_toio(&fmr->mem.tavor.mpt->start, &mpt_entry.start, in mthca_tavor_map_phys_fmr() 752 writeb(MTHCA_MPT_STATUS_HW, fmr->mem.tavor.mpt); in mthca_tavor_map_phys_fmr() 778 *(u8 *) fmr->mem.arbel.mpt = MTHCA_MPT_STATUS_SW; in mthca_arbel_map_phys_fmr() 792 fmr->mem.arbel.mpt->key = cpu_to_be32(key); in mthca_arbel_map_phys_fmr() [all …]
|
| H A D | mthca_provider.h | 88 struct mthca_mpt_entry __iomem *mpt; member 92 struct mthca_mpt_entry *mpt; member
|
| /freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_mount/ |
| H A D | zfs_mount_010_neg.ksh | 73 mpt=$(get_prop mountpoint $fs) 76 cd $mpt
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_mount/ |
| H A D | zfs_mount_010_neg.ksh | 65 mpt=$(get_prop mountpoint $fs) 68 cd $mpt
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_share/ |
| H A D | zfs_share_009_neg.ksh | 62 mpt=$(get_prop mountpoint $fs) 67 if ! showshares_nfs | grep -q $mpt; then
|
| /freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_share/ |
| H A D | zfs_share_009_neg.ksh | 70 mpt=$(get_prop mountpoint $fs) 75 $SHARE | $GREP $mpt >/dev/null 2>&1
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_unmount/ |
| H A D | zfs_unmount_008_neg.ksh | 111 for mpt in "./$dir" "./$file" "/tmp"; do 113 log_mustnot eval "zfs unmount $opt $mpt >/dev/null 2>&1"
|
| /freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_unmount/ |
| H A D | zfs_unmount_008_neg.ksh | 124 for mpt in "./$dir" "./$file"; do 126 log_mustnot eval "$ZFS unmount $opt $mpt >/dev/null 2>&1"
|
| /freebsd/sys/dev/mlx4/mlx4_core/ |
| H A D | mlx4_resource_tracker.c | 455 dev->quotas.mpt = dev->caps.num_mpts - dev->caps.reserved_mrws; in mlx4_init_quotas() 468 dev->quotas.mpt = in mlx4_init_quotas() 1517 enum res_mpt_states state, struct res_mpt **mpt) in mr_res_start_move_to() argument 1559 if (mpt) in mr_res_start_move_to() 1560 *mpt = r; in mr_res_start_move_to() 1839 struct res_mpt *mpt; in mpt_alloc_res() local 1866 RES_MPT_MAPPED, &mpt); in mpt_alloc_res() 1870 err = __mlx4_mpt_alloc_icm(dev, mpt->key, GFP_KERNEL); in mpt_alloc_res() 2372 struct res_mpt *mpt; in mpt_free_res() local 2378 err = get_res(dev, slave, id, RES_MPT, &mpt); in mpt_free_res() [all …]
|
| H A D | mlx4_mr.c | 1018 *(u8 *) fmr->mpt = MLX4_MPT_STATUS_SW; in mlx4_map_phys_fmr() 1032 fmr->mpt->key = cpu_to_be32(key); in mlx4_map_phys_fmr() 1033 fmr->mpt->lkey = cpu_to_be32(key); in mlx4_map_phys_fmr() 1034 fmr->mpt->length = cpu_to_be64(npages * (1ull << fmr->page_shift)); in mlx4_map_phys_fmr() 1035 fmr->mpt->start = cpu_to_be64(iova); in mlx4_map_phys_fmr() 1040 *(u8 *) fmr->mpt = MLX4_MPT_STATUS_HW; in mlx4_map_phys_fmr() 1101 fmr->mpt = mlx4_table_find(&priv->mr_table.dmpt_table, in mlx4_fmr_enable() 1103 if (!fmr->mpt) in mlx4_fmr_enable()
|
| /freebsd/tools/kerneldoc/subsys/ |
| H A D | Doxyfile-dev_mpt | 12 INPUT = $(DOXYGEN_SRC_PATH)/dev/mpt/ \
|