Searched refs:mpt (Results 1 - 22 of 22) sorted by relevance

/freebsd-11-stable/sys/dev/mpt/
H A Dmpt_pci.c102 __FBSDID("$FreeBSD: stable/11/sys/dev/mpt/mpt_pci.c 315808 2017-03-23 06:34:15Z mav $");
104 #include <dev/mpt/mpt.h>
105 #include <dev/mpt/mpt_cam.h>
106 #include <dev/mpt/mpt_raid.h>
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);
254 mpt_set_options(struct mpt_softc *mpt) argument
324 struct mpt_softc *mpt; local
574 mpt_free_bus_resources(struct mpt_softc *mpt) argument
608 struct mpt_softc *mpt; local
636 struct mpt_softc *mpt; local
645 mpt_dma_mem_alloc(struct mpt_softc *mpt) argument
712 mpt_dma_mem_free(struct mpt_softc *mpt) argument
794 struct mpt_softc *mpt; local
[all...]
H A Dmpt.c99 __FBSDID("$FreeBSD: stable/11/sys/dev/mpt/mpt.c 315810 2017-03-23 06:36:55Z mav $");
101 #include <dev/mpt/mpt.h>
102 #include <dev/mpt/mpt_cam.h> /* XXX For static handler registration */
103 #include <dev/mpt/mpt_raid.h> /* XXX For static handler registration */
105 #include <dev/mpt/mpilib/mpi.h>
106 #include <dev/mpt/mpilib/mpi_ioc.h>
107 #include <dev/mpt/mpilib/mpi_fc.h>
108 #include <dev/mpt/mpili
148 mpt_pers_find(struct mpt_softc *mpt, u_int start_at) argument
166 mpt_pers_find_reverse(struct mpt_softc *mpt, u_int start_at) argument
311 mpt_stdprobe(struct mpt_softc *mpt) argument
319 mpt_stdattach(struct mpt_softc *mpt) argument
327 mpt_stdenable(struct mpt_softc *mpt) argument
335 mpt_stdready(struct mpt_softc *mpt) argument
341 mpt_stdevent(struct mpt_softc *mpt, request_t *req, MSG_EVENT_NOTIFY_REPLY *msg) argument
350 mpt_stdreset(struct mpt_softc *mpt, int type) argument
356 mpt_stdshutdown(struct mpt_softc *mpt) argument
362 mpt_stddetach(struct mpt_softc *mpt) argument
383 struct mpt_softc *mpt; local
406 mpt_register_handler(struct mpt_softc *mpt, mpt_handler_type type, mpt_handler_t handler, uint32_t *phandler_id) argument
460 mpt_deregister_handler(struct mpt_softc *mpt, mpt_handler_type type, mpt_handler_t handler, uint32_t handler_id) argument
484 mpt_default_reply_handler(struct mpt_softc *mpt, request_t *req, uint32_t reply_desc, MSG_DEFAULT_REPLY *reply_frame) argument
501 mpt_config_reply_handler(struct mpt_softc *mpt, request_t *req, uint32_t reply_desc, MSG_DEFAULT_REPLY *reply_frame) argument
535 mpt_handshake_reply_handler(struct mpt_softc *mpt, request_t *req, uint32_t reply_desc, MSG_DEFAULT_REPLY *reply_frame) argument
544 mpt_event_reply_handler(struct mpt_softc *mpt, request_t *req, uint32_t reply_desc, MSG_DEFAULT_REPLY *reply_frame) argument
658 mpt_core_event(struct mpt_softc *mpt, request_t *req, MSG_EVENT_NOTIFY_REPLY *msg) argument
696 mpt_send_event_ack(struct mpt_softc *mpt, request_t *ack_req, MSG_EVENT_NOTIFY_REPLY *msg, uint32_t context) argument
715 struct mpt_softc *mpt; local
849 mpt_complete_request_chain(struct mpt_softc *mpt, struct req_queue *chain, u_int iocstatus) argument
880 mpt_dump_reply_frame(struct mpt_softc *mpt, MSG_DEFAULT_REPLY *reply_frame) argument
892 mpt_rd_db(struct mpt_softc *mpt) argument
899 mpt_rd_intr(struct mpt_softc *mpt) argument
907 mpt_wait_db_ack(struct mpt_softc *mpt) argument
923 mpt_wait_db_int(struct mpt_softc *mpt) argument
939 mpt_check_doorbell(struct mpt_softc *mpt) argument
951 mpt_wait_state(struct mpt_softc *mpt, enum DB_STATE_BITS state) argument
972 mpt_soft_reset(struct mpt_softc *mpt) argument
1010 mpt_enable_diag_mode(struct mpt_softc *mpt) argument
1036 mpt_disable_diag_mode(struct mpt_softc *mpt) argument
1046 mpt_hard_reset(struct mpt_softc *mpt) argument
1118 mpt_core_ioc_reset(struct mpt_softc *mpt, int type) argument
1136 mpt_reset(struct mpt_softc *mpt, int reinit) argument
1197 mpt_free_request(struct mpt_softc *mpt, request_t *req) argument
1258 mpt_get_request(struct mpt_softc *mpt, int sleep_ok) argument
1286 mpt_send_cmd(struct mpt_softc *mpt, request_t *req) argument
1319 mpt_wait_req(struct mpt_softc *mpt, request_t *req, mpt_req_state_t state, mpt_req_state_t mask, int sleep_ok, int time_ms) argument
1378 mpt_send_handshake_cmd(struct mpt_softc *mpt, size_t len, void *cmd) argument
1438 mpt_recv_handshake_reply(struct mpt_softc *mpt, size_t reply_len, void *reply) argument
1511 mpt_get_iocfacts(struct mpt_softc *mpt, MSG_IOC_FACTS_REPLY *freplp) argument
1528 mpt_get_portfacts(struct mpt_softc *mpt, U8 port, MSG_PORT_FACTS_REPLY *freplp) argument
1552 mpt_send_ioc_init(struct mpt_softc *mpt, uint32_t who) argument
1582 mpt_issue_cfg_req(struct mpt_softc *mpt, request_t *req, cfgparms_t *params, bus_addr_t addr, bus_size_t len, int sleep_ok, int timeout_ms) argument
1624 mpt_read_extcfg_header(struct mpt_softc *mpt, int PageVersion, int PageNumber, uint32_t PageAddress, int ExtPageType, CONFIG_EXTENDED_PAGE_HEADER *rslt, int sleep_ok, int timeout_ms) argument
1688 mpt_read_extcfg_page(struct mpt_softc *mpt, int Action, uint32_t PageAddress, CONFIG_EXTENDED_PAGE_HEADER *hdr, void *buf, size_t len, int sleep_ok, int timeout_ms) argument
1730 mpt_read_cfg_header(struct mpt_softc *mpt, int PageType, int PageNumber, uint32_t PageAddress, CONFIG_PAGE_HEADER *rslt, int sleep_ok, int timeout_ms) argument
1787 mpt_read_cfg_page(struct mpt_softc *mpt, int Action, uint32_t PageAddress, CONFIG_PAGE_HEADER *hdr, size_t len, int sleep_ok, int timeout_ms) argument
1827 mpt_write_cfg_page(struct mpt_softc *mpt, int Action, uint32_t PageAddress, CONFIG_PAGE_HEADER *hdr, size_t len, int sleep_ok, int timeout_ms) argument
1896 mpt_read_config_info_ioc(struct mpt_softc *mpt) argument
2060 mpt_send_port_enable(struct mpt_softc *mpt, int port) argument
2096 mpt_send_event_request(struct mpt_softc *mpt, int onoff) argument
2126 mpt_enable_ints(struct mpt_softc *mpt) argument
2137 mpt_disable_ints(struct mpt_softc *mpt) argument
2146 mpt_sysctl_attach(struct mpt_softc *mpt) argument
2165 mpt_attach(struct mpt_softc *mpt) argument
2213 mpt_shutdown(struct mpt_softc *mpt) argument
2224 mpt_detach(struct mpt_softc *mpt) argument
2264 mpt_core_attach(struct mpt_softc *mpt) argument
2295 mpt_core_enable(struct mpt_softc *mpt) argument
2346 mpt_core_shutdown(struct mpt_softc *mpt) argument
2353 mpt_core_detach(struct mpt_softc *mpt) argument
2384 mpt_upload_fw(struct mpt_softc *mpt) argument
2420 mpt_diag_outsl(struct mpt_softc *mpt, uint32_t addr, uint32_t *data, bus_size_t len) argument
2440 mpt_download_fw(struct mpt_softc *mpt) argument
2517 mpt_dma_buf_alloc(struct mpt_softc *mpt) argument
2598 mpt_dma_buf_free(struct mpt_softc *mpt) argument
2621 mpt_configure_ioc(struct mpt_softc *mpt, int tn, int needreset) argument
2879 mpt_enable_ioc(struct mpt_softc *mpt, int portenable) argument
[all...]
H A Dmpt_raid.c46 #include <dev/mpt/mpt.h>
47 #include <dev/mpt/mpt_raid.h>
49 #include "dev/mpt/mpilib/mpi_ioc.h" /* XXX Fix Event Handling!!! */
50 #include "dev/mpt/mpilib/mpi_raid.h"
103 static int mpt_raid_reply_frame_handler(struct mpt_softc *mpt, request_t *req,
105 static int mpt_spawn_raid_thread(struct mpt_softc *mpt);
106 static void mpt_terminate_raid_thread(struct mpt_softc *mpt);
110 static void mpt_enable_vol(struct mpt_softc *mpt,
121 static void mpt_vol_prt(struct mpt_softc *mpt, struc
192 mpt_vol_prt(struct mpt_softc *mpt, struct mpt_raid_volume *vol, const char *fmt, ...) argument
206 mpt_disk_prt(struct mpt_softc *mpt, struct mpt_raid_disk *disk, const char *fmt, ...) argument
230 struct mpt_softc *mpt; local
264 mpt_raid_probe(struct mpt_softc *mpt) argument
274 mpt_raid_attach(struct mpt_softc *mpt) argument
318 mpt_raid_enable(struct mpt_softc *mpt) argument
325 mpt_raid_detach(struct mpt_softc *mpt) argument
347 mpt_raid_ioc_reset(struct mpt_softc *mpt, int type) argument
370 mpt_raid_event(struct mpt_softc *mpt, request_t *req, MSG_EVENT_NOTIFY_REPLY *msg) argument
501 mpt_raid_shutdown(struct mpt_softc *mpt) argument
516 mpt_raid_reply_handler(struct mpt_softc *mpt, request_t *req, uint32_t reply_desc, MSG_DEFAULT_REPLY *reply_frame) argument
551 mpt_raid_reply_frame_handler(struct mpt_softc *mpt, request_t *req, MSG_DEFAULT_REPLY *reply_frame) argument
583 mpt_issue_raid_req(struct mpt_softc *mpt, struct mpt_raid_volume *vol, struct mpt_raid_disk *disk, request_t *req, u_int Action, uint32_t ActionDataWord, bus_addr_t addr, bus_size_t len, int write, int wait) argument
625 mpt_spawn_raid_thread(struct mpt_softc *mpt) argument
651 mpt_terminate_raid_thread(struct mpt_softc *mpt) argument
669 struct mpt_softc *mpt; local
787 mpt_map_physdisk(struct mpt_softc *mpt, union ccb *ccb, target_id_t *tgt) argument
804 mpt_is_raid_member(struct mpt_softc *mpt, target_id_t tgt) argument
823 mpt_is_raid_volume(struct mpt_softc *mpt, target_id_t tgt) argument
895 mpt_verify_mwce(struct mpt_softc *mpt, struct mpt_raid_volume *mpt_vol) argument
978 mpt_verify_resync_rate(struct mpt_softc *mpt, struct mpt_raid_volume *mpt_vol) argument
1069 mpt_adjust_queue_depth(struct mpt_softc *mpt, struct mpt_raid_volume *mpt_vol, struct cam_path *path) argument
1086 mpt_announce_vol(struct mpt_softc *mpt, struct mpt_raid_volume *mpt_vol) argument
1194 mpt_announce_disk(struct mpt_softc *mpt, struct mpt_raid_disk *mpt_disk) argument
1224 mpt_refresh_raid_disk(struct mpt_softc *mpt, struct mpt_raid_disk *mpt_disk, IOC_3_PHYS_DISK *ioc_disk) argument
1251 mpt_refresh_raid_vol(struct mpt_softc *mpt, struct mpt_raid_volume *mpt_vol, CONFIG_PAGE_IOC_2_RAID_VOL *ioc_vol) argument
1336 mpt_refresh_raid_data(struct mpt_softc *mpt) argument
1576 struct mpt_softc *mpt; local
1584 mpt_schedule_raid_refresh(struct mpt_softc *mpt) argument
1592 mpt_raid_free_mem(struct mpt_softc *mpt) argument
1625 mpt_raid_set_vol_resync_rate(struct mpt_softc *mpt, u_int rate) argument
1647 mpt_raid_set_vol_queue_depth(struct mpt_softc *mpt, u_int vol_queue_depth) argument
1681 mpt_raid_set_vol_mwce(struct mpt_softc *mpt, mpt_raid_mwce_t mwce) argument
1747 struct mpt_softc *mpt; local
1783 struct mpt_softc *mpt; local
1803 struct mpt_softc *mpt; local
1821 mpt_raid_sysctl_attach(struct mpt_softc *mpt) argument
[all...]
H A Dmpt_cam.c97 __FBSDID("$FreeBSD: stable/11/sys/dev/mpt/mpt_cam.c 315827 2017-03-23 06:53:31Z mav $");
99 #include <dev/mpt/mpt.h>
100 #include <dev/mpt/mpt_cam.h>
101 #include <dev/mpt/mpt_raid.h>
103 #include "dev/mpt/mpilib/mpi_ioc.h" /* XXX Fix Event Handling!!! */
104 #include "dev/mpt/mpilib/mpi_init.h"
105 #include "dev/mpt/mpilib/mpi_targ.h"
106 #include "dev/mpt/mpilib/mpi_fc.h"
107 #include "dev/mpt/mpili
189 mpt_cam_probe(struct mpt_softc *mpt) argument
211 mpt_cam_attach(struct mpt_softc *mpt) argument
409 mpt_read_config_info_fc(struct mpt_softc *mpt) argument
509 mpt_set_initial_config_fc(struct mpt_softc *mpt) argument
606 mptsas_sas_io_unit_pg0(struct mpt_softc *mpt, struct mptsas_portinfo *portinfo) argument
662 mptsas_sas_phy_pg0(struct mpt_softc *mpt, struct mptsas_phyinfo *phy_info, uint32_t form, uint32_t form_specific) argument
704 mptsas_sas_device_pg0(struct mpt_softc *mpt, struct mptsas_devinfo *device_info, uint32_t form, uint32_t form_specific) argument
758 mpt_read_config_info_sas(struct mpt_softc *mpt) argument
802 mptsas_set_sata_wc(struct mpt_softc *mpt, struct mptsas_devinfo *devinfo, int enabled) argument
853 mpt_set_initial_config_sas(struct mpt_softc *mpt) argument
879 mpt_sata_pass_reply_handler(struct mpt_softc *mpt, request_t *req, uint32_t reply_desc, MSG_DEFAULT_REPLY *reply_frame) argument
907 mpt_read_config_info_spi(struct mpt_softc *mpt) argument
1057 mpt_set_initial_config_spi(struct mpt_softc *mpt) argument
1116 mpt_cam_enable(struct mpt_softc *mpt) argument
1153 mpt_cam_ready(struct mpt_softc *mpt) argument
1174 mpt_cam_detach(struct mpt_softc *mpt) argument
1229 struct mpt_softc *mpt; local
1242 struct mpt_softc *mpt; local
1275 struct mpt_softc *mpt; local
1679 struct mpt_softc *mpt; local
2063 struct mpt_softc *mpt; local
2222 mpt_bus_reset(struct mpt_softc *mpt, target_id_t tgt, lun_id_t lun, int sleep_ok) argument
2282 mpt_fc_reset_link(struct mpt_softc *mpt, int dowait) argument
2309 mpt_cam_event(struct mpt_softc *mpt, request_t *req, MSG_EVENT_NOTIFY_REPLY *msg) argument
2585 mpt_scsi_reply_handler(struct mpt_softc *mpt, request_t *req, uint32_t reply_desc, MSG_DEFAULT_REPLY *reply_frame) argument
2670 mpt_scsi_tmf_reply_handler(struct mpt_softc *mpt, request_t *req, uint32_t reply_desc, MSG_DEFAULT_REPLY *reply_frame) argument
2715 mpt_fc_els_send_response(struct mpt_softc *mpt, request_t *req, PTR_MSG_LINK_SERVICE_BUFFER_POST_REPLY rp, U8 length) argument
2778 mpt_fc_els_reply_handler(struct mpt_softc *mpt, request_t *req, uint32_t reply_desc, MSG_DEFAULT_REPLY *reply_frame) argument
3020 mpt_cam_ioc_reset(struct mpt_softc *mpt, int type) argument
3046 mpt_scsi_reply_frame_handler(struct mpt_softc *mpt, request_t *req, MSG_DEFAULT_REPLY *reply_frame) argument
3213 struct mpt_softc *mpt; local
3703 mpt_get_spi_settings(struct mpt_softc *mpt, struct ccb_trans_settings *cts) argument
3799 mpt_setwidth(struct mpt_softc *mpt, int tgt, int onoff) argument
3812 mpt_setsync(struct mpt_softc *mpt, int tgt, int period, int offset) argument
3839 mpt_update_spi_config(struct mpt_softc *mpt, int tgt) argument
3860 mpt_spawn_recovery_thread(struct mpt_softc *mpt) argument
3871 mpt_terminate_recovery_thread(struct mpt_softc *mpt) argument
3889 struct mpt_softc *mpt; local
3911 mpt_scsi_send_tmf(struct mpt_softc *mpt, u_int type, u_int flags, u_int channel, target_id_t target, lun_id_t lun, u_int abort_ctx, int sleep_ok) argument
3972 mpt_recover_commands(struct mpt_softc *mpt) argument
4099 mpt_fc_post_els(struct mpt_softc *mpt, request_t *req, int ioindex) argument
4149 mpt_post_target_command(struct mpt_softc *mpt, request_t *req, int ioindex) argument
4175 mpt_add_els_buffers(struct mpt_softc *mpt) argument
4222 mpt_add_target_commands(struct mpt_softc *mpt) argument
4272 mpt_enable_lun(struct mpt_softc *mpt, target_id_t tgt, lun_id_t lun) argument
4297 mpt_disable_lun(struct mpt_softc *mpt, target_id_t tgt, lun_id_t lun) argument
4331 mpt_target_start_io(struct mpt_softc *mpt, union ccb *ccb) argument
4473 mpt_scsi_tgt_local(struct mpt_softc *mpt, request_t *cmd_req, lun_id_t lun, int send, uint8_t *data, size_t length) argument
4554 mpt_abort_target_ccb(struct mpt_softc *mpt, union ccb *ccb) argument
4602 mpt_abort_target_cmd(struct mpt_softc *mpt, request_t *cmd_req) argument
4641 mpt_scsi_tgt_status(struct mpt_softc *mpt, union ccb *ccb, request_t *cmd_req, uint8_t status, uint8_t const *sense_data, u_int sense_len) argument
4782 mpt_scsi_tgt_tsk_mgmt(struct mpt_softc *mpt, request_t *req, mpt_task_mgmt_t fc, tgt_resource_t *trtp, int init_id) argument
4839 mpt_scsi_tgt_atio(struct mpt_softc *mpt, request_t *req, uint32_t reply_desc) argument
5100 mpt_tgt_dump_tgt_state(struct mpt_softc *mpt, request_t *req) argument
5111 mpt_tgt_dump_req_state(struct mpt_softc *mpt, request_t *req) argument
5120 mpt_scsi_tgt_reply_handler(struct mpt_softc *mpt, request_t *req, uint32_t reply_desc, MSG_DEFAULT_REPLY *reply_frame) argument
[all...]
H A Dmpt_raid.h67 mpt_raid_wakeup(struct mpt_softc *mpt) argument
69 mpt->raid_wakeup++;
70 wakeup(&mpt->raid_volumes);
83 #define RAID_VOL_FOREACH(mpt, mpt_vol) \
84 for (mpt_vol = (mpt)->raid_volumes; \
85 mpt_vol != (mpt)->raid_volumes + (mpt)->raid_max_volumes; \
H A Dmpt_cam.h140 mpt_wakeup_recovery_thread(struct mpt_softc *mpt) argument
142 wakeup(mpt);
147 #define mpt_sim_alloc(a, b, c, mpt, e, f, g) \
148 cam_sim_alloc(a, b, c, mpt, (mpt)->unit, e, f, g)
150 #define mpt_sim_alloc(a, b, c, mpt, e, f, g) \
151 cam_sim_alloc(a, b, c, mpt, (mpt)->unit, &(mpt)->mpt_lock, e, f, g)
H A Dmpt.h1 /* $FreeBSD: stable/11/sys/dev/mpt/mpt.h 315827 2017-03-23 06:53:31Z mav $ */
134 #include <dev/mpt/mpt_reg.h>
137 #include <dev/mpt/mpilib/mpi_type.h>
138 #include <dev/mpt/mpilib/mpi.h>
139 #include <dev/mpt/mpilib/mpi_cnfg.h>
140 #include <dev/mpt/mpilib/mpi_ioc.h>
141 #include <dev/mpt/mpilib/mpi_raid.h>
144 #include <dev/mpt/mpilib/mpi_init.h>
223 #define mpt_dma_tag_create(mpt, parent_ta
233 struct mpt_softc *mpt; member in struct:mpt_map_info
753 mpt_assign_serno(struct mpt_softc *mpt, request_t *req) argument
794 mpt_write(struct mpt_softc *mpt, size_t offset, uint32_t val) argument
800 mpt_write_stream(struct mpt_softc *mpt, size_t offset, uint32_t val) argument
806 mpt_read(struct mpt_softc *mpt, int offset) argument
817 mpt_pio_write(struct mpt_softc *mpt, size_t offset, uint32_t val) argument
824 mpt_pio_read(struct mpt_softc *mpt, int offset) argument
875 mpt_free_reply(struct mpt_softc *mpt, uint32_t ptr) argument
882 mpt_pop_reply_queue(struct mpt_softc *mpt) argument
956 mpt_tag_2_req(struct mpt_softc *mpt, uint32_t tag) argument
975 mpt_req_on_free_list(struct mpt_softc *mpt, request_t *req) argument
991 mpt_req_on_pending_list(struct mpt_softc *mpt, request_t *req) argument
1013 mpt_req_spcl(struct mpt_softc *mpt, request_t *req, const char *s, int line) argument
1035 mpt_req_not_spcl(struct mpt_softc *mpt, request_t *req, const char *s, int line) argument
1116 mpt_read_cur_cfg_page(struct mpt_softc *mpt, uint32_t PageAddress, CONFIG_PAGE_HEADER *hdr, size_t len, int sleep_ok, int timeout_ms) argument
1125 mpt_write_cur_cfg_page(struct mpt_softc *mpt, uint32_t PageAddress, CONFIG_PAGE_HEADER *hdr, size_t len, int sleep_ok, int timeout_ms) argument
[all...]
H A Dmpt_user.c34 __FBSDID("$FreeBSD: stable/11/sys/dev/mpt/mpt_user.c 360451 2020-04-28 20:14:38Z brooks $");
45 #include <dev/mpt/mpt.h>
93 .d_name = "mpt",
96 static MALLOC_DEFINE(M_MPTUSER, "mpt_user", "Buffers for mpt(4) ioctls");
101 mpt_user_probe(struct mpt_softc *mpt) argument
109 mpt_user_attach(struct mpt_softc *mpt) argument
114 MPT_LOCK(mpt);
116 error = mpt_register_handler(mpt, MPT_HANDLER_REPLY, handler,
118 MPT_UNLOCK(mpt);
138 mpt_user_enable(struct mpt_softc *mpt) argument
145 mpt_user_ready(struct mpt_softc *mpt) argument
151 mpt_user_event(struct mpt_softc *mpt, request_t *req, MSG_EVENT_NOTIFY_REPLY *msg) argument
160 mpt_user_reset(struct mpt_softc *mpt, int type) argument
166 mpt_user_detach(struct mpt_softc *mpt) argument
195 mpt_alloc_buffer(struct mpt_softc *mpt, struct mpt_page_memory *page_mem, size_t len) argument
245 mpt_user_read_cfg_header(struct mpt_softc *mpt, struct mpt_cfg_page_req *page_req) argument
289 mpt_user_read_cfg_page(struct mpt_softc *mpt, struct mpt_cfg_page_req *page_req, struct mpt_page_memory *mpt_page) argument
328 mpt_user_read_extcfg_header(struct mpt_softc *mpt, struct mpt_ext_cfg_page_req *ext_page_req) argument
377 mpt_user_read_extcfg_page(struct mpt_softc *mpt, struct mpt_ext_cfg_page_req *ext_page_req, struct mpt_page_memory *mpt_page) argument
418 mpt_user_write_cfg_page(struct mpt_softc *mpt, struct mpt_cfg_page_req *page_req, struct mpt_page_memory *mpt_page) argument
482 mpt_user_reply_handler(struct mpt_softc *mpt, request_t *req, uint32_t reply_desc, MSG_DEFAULT_REPLY *reply_frame) argument
525 mpt_user_raid_action(struct mpt_softc *mpt, struct mpt_raid_action *raid_act, struct mpt_page_memory *mpt_page) argument
595 struct mpt_softc *mpt; local
[all...]
H A Dmpt_debug.c67 __FBSDID("$FreeBSD: stable/11/sys/dev/mpt/mpt_debug.c 315825 2017-03-23 06:51:53Z mav $");
69 #include <dev/mpt/mpt.h>
71 #include <dev/mpt/mpilib/mpi_ioc.h>
72 #include <dev/mpt/mpilib/mpi_init.h>
73 #include <dev/mpt/mpilib/mpi_fc.h>
74 #include <dev/mpt/mpilib/mpi_targ.h>
353 printf("mpt mailbox: (0x%x) State %s WhoInit %s\n",
824 mpt_dump_data(struct mpt_softc *mpt, const char *msg, void *addr, int len) argument
829 mpt_prt(mpt, "
840 mpt_dump_request(struct mpt_softc *mpt, request_t *req) argument
858 mpt_prt(struct mpt_softc *mpt, const char *fmt, ...) argument
869 mpt_prtc(struct mpt_softc *mpt, const char *fmt, ...) argument
[all...]
/freebsd-11-stable/sys/modules/mpt/
H A DMakefile1 # $FreeBSD: stable/11/sys/modules/mpt/Makefile 319182 2017-05-30 04:11:12Z ngie $
3 .PATH: ${SRCTOP}/sys/dev/mpt
5 KMOD= mpt
8 mpt.c mpt_cam.c mpt_debug.c mpt_pci.c mpt_raid.c mpt_user.c
/freebsd-11-stable/sys/sys/
H A Dmpt_ioctl.h38 #include <dev/mpt/mpilib/mpi_type.h>
39 #include <dev/mpt/mpilib/mpi.h>
40 #include <dev/mpt/mpilib/mpi_cnfg.h>
/freebsd-11-stable/usr.sbin/mptutil/
H A Dmptutil.h39 #include <dev/mpt/mpilib/mpi_type.h>
40 #include <dev/mpt/mpilib/mpi.h>
41 #include <dev/mpt/mpilib/mpi_cnfg.h>
42 #include <dev/mpt/mpilib/mpi_raid.h>
/freebsd-11-stable/sys/dev/mthca/
H A Dmthca_mr.c601 mr->mem.arbel.mpt = mthca_table_find(dev->mr_table.mpt_table, key, NULL);
602 BUG_ON(!mr->mem.arbel.mpt);
604 mr->mem.tavor.mpt = dev->mr_table.tavor_fmr.mpt_base +
605 sizeof *(mr->mem.tavor.mpt) * idx;
736 writeb(MTHCA_MPT_STATUS_SW, fmr->mem.tavor.mpt);
748 __raw_writel((__force u32) mpt_entry.lkey, &fmr->mem.tavor.mpt->key);
749 memcpy_toio(&fmr->mem.tavor.mpt->start, &mpt_entry.start,
753 writeb(MTHCA_MPT_STATUS_HW, fmr->mem.tavor.mpt);
779 *(u8 *) fmr->mem.arbel.mpt = MTHCA_MPT_STATUS_SW;
793 fmr->mem.arbel.mpt
[all...]
H A Dmthca_provider.h88 struct mthca_mpt_entry __iomem *mpt; member in struct:mthca_fmr::__anon7283::__anon7284
92 struct mthca_mpt_entry *mpt; member in struct:mthca_fmr::__anon7283::__anon7285
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
H A Dmlx4_resource_tracker.c455 dev->quotas.mpt = dev->caps.num_mpts - dev->caps.reserved_mrws;
468 dev->quotas.mpt =
1517 enum res_mpt_states state, struct res_mpt **mpt)
1559 if (mpt)
1560 *mpt = r;
1839 struct res_mpt *mpt; local
1866 RES_MPT_MAPPED, &mpt);
1870 err = __mlx4_mpt_alloc_icm(dev, mpt->key, GFP_KERNEL);
2372 struct res_mpt *mpt; local
2378 err = get_res(dev, slave, id, RES_MPT, &mpt);
1516 mr_res_start_move_to(struct mlx4_dev *dev, int slave, int index, enum res_mpt_states state, struct res_mpt **mpt) argument
2618 mr_phys_mpt(struct mlx4_mpt_entry *mpt) argument
2623 mr_get_mtt_addr(struct mlx4_mpt_entry *mpt) argument
2628 mr_get_mtt_size(struct mlx4_mpt_entry *mpt) argument
2633 mr_get_pd(struct mlx4_mpt_entry *mpt) argument
2638 mr_is_fmr(struct mlx4_mpt_entry *mpt) argument
2643 mr_is_bind_enabled(struct mlx4_mpt_entry *mpt) argument
2648 mr_is_region(struct mlx4_mpt_entry *mpt) argument
2710 struct res_mpt *mpt; local
2792 struct res_mpt *mpt; local
2824 struct res_mpt *mpt; local
4830 struct res_mpt *mpt; local
[all...]
H A Dmlx4_mr.c1018 *(u8 *) fmr->mpt = MLX4_MPT_STATUS_SW;
1032 fmr->mpt->key = cpu_to_be32(key);
1033 fmr->mpt->lkey = cpu_to_be32(key);
1034 fmr->mpt->length = cpu_to_be64(npages * (1ull << fmr->page_shift));
1035 fmr->mpt->start = cpu_to_be64(iova);
1040 *(u8 *) fmr->mpt = MLX4_MPT_STATUS_HW;
1101 fmr->mpt = mlx4_table_find(&priv->mr_table.dmpt_table,
1103 if (!fmr->mpt)
H A Dmlx4_main.c892 dev->quotas.mpt = func_cap.mpt_quota;
/freebsd-11-stable/sys/modules/
H A DMakefile263 mpt \
/freebsd-11-stable/sys/dev/mlx4/
H A Ddevice.h704 struct mlx4_mpt_entry *mpt; member in struct:mlx4_fmr
830 int mpt; member in struct:mlx4_quotas
/freebsd-11-stable/include/
H A DMakefile64 LSUBSUBDIRS= dev/mpt/mpilib
/freebsd-11-stable/share/man/man4/
H A DMakefile311 mpt.4 \
/freebsd-11-stable/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_main.c542 props->max_mr = dev->dev->quotas.mpt;

Completed in 231 milliseconds