/linux/drivers/cxl/core/ |
H A D | memdev.c | 45 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); in firmware_version_show() local 47 if (!mds) in firmware_version_show() 49 return sysfs_emit(buf, "%.16s\n", mds->firmware_version); in firmware_version_show() 58 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); in payload_max_show() local 60 if (!mds) in payload_max_show() 71 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); in label_storage_size_show() local 73 if (!mds) in label_storage_size_show() 75 return sysfs_emit(buf, "%zu\n", mds->lsa_size); in label_storage_size_show() 137 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); in security_state_show() local 138 unsigned long state = mds in security_state_show() 511 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); cxl_memdev_security_visible() local 567 set_exclusive_cxl_commands(struct cxl_memdev_state * mds,unsigned long * cmds) set_exclusive_cxl_commands() argument 583 clear_exclusive_cxl_commands(struct cxl_memdev_state * mds,unsigned long * cmds) clear_exclusive_cxl_commands() argument 663 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); __cxl_memdev_ioctl() local 721 cxl_mem_get_fw_info(struct cxl_memdev_state * mds) cxl_mem_get_fw_info() argument 756 cxl_mem_activate_fw(struct cxl_memdev_state * mds,int slot) cxl_mem_activate_fw() argument 788 cxl_mem_abort_fw_xfer(struct cxl_memdev_state * mds) cxl_mem_abort_fw_xfer() argument 817 struct cxl_memdev_state *mds = fwl->dd_handle; cxl_fw_cleanup() local 824 struct cxl_memdev_state *mds = fwl->dd_handle; cxl_fw_do_cancel() local 839 struct cxl_memdev_state *mds = fwl->dd_handle; cxl_fw_prepare() local 865 struct cxl_memdev_state *mds = fwl->dd_handle; cxl_fw_write() local 965 struct cxl_memdev_state *mds = fwl->dd_handle; cxl_fw_poll_complete() local 981 struct cxl_memdev_state *mds = fwl->dd_handle; cxl_fw_cancel() local 999 devm_cxl_setup_fw_upload(struct device * host,struct cxl_memdev_state * mds) devm_cxl_setup_fw_upload() argument 1073 struct cxl_memdev_state *mds = data; sanitize_teardown_notifier() local 1094 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); devm_cxl_sanitize_setup_notifier() local [all...] |
H A D | mce.c | 13 struct cxl_memdev_state *mds = container_of(nb, struct cxl_memdev_state, in cxl_handle_mce() local 15 struct cxl_memdev *cxlmd = mds->cxlds.cxlmd; in cxl_handle_mce() 43 dev_emerg(mds->cxlds.dev, "Offlining aliased SPA address0: %#llx\n", in cxl_handle_mce()
|
H A D | hdm.c | 843 struct cxl_memdev_state *mds = in cxl_decoder_commit() local 846 if (mds && mds->security.sanitize_active) { in cxl_decoder_commit()
|
/linux/drivers/cxl/ |
H A D | pci.c | 129 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); in cxl_pci_mbox_irq() local 138 if (mds->security.sanitize_node) in cxl_pci_mbox_irq() 139 mod_delayed_work(system_wq, &mds->security.poll_dwork, 0); in cxl_pci_mbox_irq() 154 struct cxl_memdev_state *mds = in cxl_mbox_sanitize_work() local 155 container_of(work, typeof(*mds), security.poll_dwork.work); in cxl_mbox_sanitize_work() 156 struct cxl_dev_state *cxlds = &mds->cxlds; in cxl_mbox_sanitize_work() 161 mds->security.poll_tmo_secs = 0; in cxl_mbox_sanitize_work() 162 if (mds->security.sanitize_node) in cxl_mbox_sanitize_work() 163 sysfs_notify_dirent(mds->security.sanitize_node); in cxl_mbox_sanitize_work() 164 mds in cxl_mbox_sanitize_work() 202 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); __cxl_pci_mbox_send_cmd() local 389 cxl_pci_setup_mailbox(struct cxl_memdev_state * mds,bool irq_avail) cxl_pci_setup_mailbox() argument 593 cxl_mem_alloc_event_buf(struct cxl_memdev_state * mds) cxl_mem_alloc_event_buf() argument 632 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); cxl_event_thread() local 668 cxl_event_get_int_policy(struct cxl_memdev_state * mds,struct cxl_event_interrupt_policy * policy) cxl_event_get_int_policy() argument 687 cxl_event_config_msgnums(struct cxl_memdev_state * mds,struct cxl_event_interrupt_policy * policy) cxl_event_config_msgnums() argument 718 cxl_event_irqsetup(struct cxl_memdev_state * mds) cxl_event_irqsetup() argument 763 cxl_event_config(struct pci_host_bridge * host_bridge,struct cxl_memdev_state * mds,bool irq_avail) cxl_event_config() argument 907 struct cxl_memdev_state *mds; cxl_pci_probe() local [all...] |
H A D | pmem.c | 16 static void clear_exclusive(void *mds) in clear_exclusive() argument 18 clear_exclusive_cxl_commands(mds, exclusive_cmds); in clear_exclusive() 94 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); in cxl_nvdimm_arm_dirty_shutdown_tracking() local 106 if (cxl_arm_dirty_shutdown(mds)) { in cxl_nvdimm_arm_dirty_shutdown_tracking() 114 if (cxl_get_dirty_count(mds, &count)) { in cxl_nvdimm_arm_dirty_shutdown_tracking() 127 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in cxl_nvdimm_probe() local 132 set_exclusive_cxl_commands(mds, exclusive_cmds); in cxl_nvdimm_probe() 133 rc = devm_add_action_or_reset(dev, clear_exclusive, mds); in cxl_nvdimm_probe() 170 static int cxl_pmem_get_config_size(struct cxl_memdev_state *mds, in cxl_pmem_get_config_size() argument 174 struct cxl_mailbox *cxl_mbox = &mds in cxl_pmem_get_config_size() 188 cxl_pmem_get_config_data(struct cxl_memdev_state * mds,struct nd_cmd_get_config_data_hdr * cmd,unsigned int buf_len) cxl_pmem_get_config_data() argument 220 cxl_pmem_set_config_data(struct cxl_memdev_state * mds,struct nd_cmd_set_config_hdr * cmd,unsigned int buf_len) cxl_pmem_set_config_data() argument 269 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); cxl_pmem_nvdimm_ctl() local [all...] |
H A D | mem.c | 109 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in cxl_mem_probe() local 133 if (test_bit(CXL_POISON_ENABLED_INJECT, mds->poison.enabled_cmds)) in cxl_mem_probe() 136 if (test_bit(CXL_POISON_ENABLED_CLEAR, mds->poison.enabled_cmds)) in cxl_mem_probe() 224 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in cxl_mem_visible() local 228 mds->poison.enabled_cmds)) in cxl_mem_visible()
|
H A D | cxlmem.h | 103 int devm_cxl_setup_fw_upload(struct device *host, struct cxl_memdev_state *mds); 849 int cxl_dev_state_identify(struct cxl_memdev_state *mds); 851 int cxl_enumerate_cmds(struct cxl_memdev_state *mds); 852 int cxl_mem_dpa_fetch(struct cxl_memdev_state *mds, struct cxl_dpa_info *info); 854 void set_exclusive_cxl_commands(struct cxl_memdev_state *mds, 856 void clear_exclusive_cxl_commands(struct cxl_memdev_state *mds, 858 void cxl_mem_get_event_records(struct cxl_memdev_state *mds, u32 status); 863 int cxl_get_dirty_count(struct cxl_memdev_state *mds, u32 *count); 864 int cxl_arm_dirty_shutdown(struct cxl_memdev_state *mds); 865 int cxl_set_timestamp(struct cxl_memdev_state *mds); [all...] |
H A D | security.c | 18 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in cxl_pmem_get_security_flags() local 39 mds->security.state = sec_out; in cxl_pmem_get_security_flags()
|
/linux/crypto/ |
H A D | twofish_common.c | 102 * mds[0][i] = MDS (q1[i] 0 0 0)^T mds[1][i] = MDS (0 q0[i] 0 0)^T 103 * mds[2][i] = MDS (0 0 q1[i] 0)^T mds[3][i] = MDS (0 0 0 q0[i])^T 109 static const u32 mds[4][256] = { variable 484 ctx->s[0][i] = mds[0][q0[(a) ^ sa] ^ se]; \ 485 ctx->s[1][i] = mds[1][q0[(b) ^ sb] ^ sf]; \ 486 ctx->s[2][i] = mds[2][q1[(a) ^ sc] ^ sg]; \ 487 ctx->s[3][i] = mds[3][q1[(b) ^ sd] ^ sh] 492 ctx->s[0][i] = mds[ [all...] |
/linux/fs/ceph/ |
H A D | mdsmap.c | 45 * choose a random mds that is "up" (i.e. has a state > 0), or -1. 49 int mds; in ceph_mdsmap_get_random_mds() local 51 mds = __mdsmap_get_random_mds(m, false); in ceph_mdsmap_get_random_mds() 52 if (mds == m->possible_max_rank || mds == -1) in ceph_mdsmap_get_random_mds() 53 mds = __mdsmap_get_random_mds(m, true); in ceph_mdsmap_get_random_mds() 55 return mds == m->possible_max_rank ? -1 : mds; in ceph_mdsmap_get_random_mds() 167 * receive a new mds map with n_num_mds == 1 and the active MDS(1), in ceph_mdsmap_decode() 168 * and the mds ran in ceph_mdsmap_decode() 180 s32 mds, inc, state; ceph_mdsmap_decode() local 313 s32 mds = ceph_decode_32(p); ceph_mdsmap_decode() local [all...] |
H A D | mds_client.c | 72 * mds reply parsing 403 pr_err("problem parsing mds trace %d\n", err); in parse_reply_info_trace() 745 * parse entire mds reply 791 pr_err_client(cl, "mds parse_reply err %d\n", err); in parse_reply_info() 935 int mds) in __ceph_lookup_mds_session() argument 937 if (mds >= mdsc->max_sessions || !mdsc->sessions[mds]) in __ceph_lookup_mds_session() 939 return ceph_get_mds_session(mdsc->sessions[mds]); in __ceph_lookup_mds_session() 942 static bool __have_session(struct ceph_mds_client *mdsc, int mds) in __have_session() argument 944 if (mds > in __have_session() 964 register_session(struct ceph_mds_client * mdsc,int mds) register_session() argument 1064 int mds; ceph_mdsc_iterate_sessions() local 1290 int mds = -1; __choose_mds() local 1666 int mds = session->s_mds; __open_session() local 1734 int i, mds = session->s_mds; __open_export_target_sessions() local 1817 ceph_iterate_session_caps(struct ceph_mds_session * session,int (* cb)(struct inode *,int mds,void *),void * arg) ceph_iterate_session_caps() argument 1831 int mds; ceph_iterate_session_caps() local 1884 remove_session_caps_cb(struct inode * inode,int mds,void * arg) remove_session_caps_cb() argument 1974 wake_up_session_cb(struct inode * inode,int mds,void * arg) wake_up_session_cb() argument 2161 trim_caps_cb(struct inode * inode,int mds,void * arg) trim_caps_cb() argument 2966 int mds = session->s_mds; create_request_message() local 3255 int mds = session->s_mds; __prepare_send_request() local 3391 int mds = -1; __do_request() local 3615 kick_requests(struct ceph_mds_client * mdsc,int mds) kick_requests() argument 3797 int mds = session->s_mds; handle_reply() local 4104 int mds = session->s_mds; handle_session() local 4569 reconnect_caps_cb(struct inode * inode,int mds,void * arg) reconnect_caps_cb() argument 4836 int mds = session->s_mds; send_mds_reconnect() local 5189 int mds = session->s_mds; handle_lease() local 5970 int mds; ceph_mdsc_force_umount() local [all...] |
H A D | debugfs.c | 251 static int caps_show_cb(struct inode *inode, int mds, void *p) in caps_show_cb() argument 258 cap = __get_cap_for_mds(ci, mds); in caps_show_cb() 282 seq_printf(s, "ino mds issued implemented\n"); in caps_show() 322 int mds; in mds_sessions_show() local 333 for (mds = 0; mds < mdsc->max_sessions; mds++) { in mds_sessions_show() 335 __ceph_lookup_mds_session(mdsc, mds); in mds_sessions_show() 340 seq_printf(s, "mds.%d %s\n", in mds_sessions_show()
|
H A D | caps.c | 437 * Find ceph_cap for given mds, if any. 441 struct ceph_cap *__get_cap_for_mds(struct ceph_inode_info *ci, int mds) in __get_cap_for_mds() argument 448 if (mds < cap->mds) in __get_cap_for_mds() 450 else if (mds > cap->mds) in __get_cap_for_mds() 458 struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, int mds) in ceph_get_cap_for_mds() argument 463 cap = __get_cap_for_mds(ci, mds); in ceph_get_cap_for_mds() 481 if (new->mds < cap->mds) in __insert_cap_node() 660 int mds = session->s_mds; ceph_add_cap() local 1724 int mds; ceph_flush_snaps() local 2018 int mds = -1; /* keep track of how far we've gone through i_caps list ceph_check_caps() local 4027 int mds = session->s_mds; handle_cap_trunc() local 4076 int mds = session->s_mds; handle_cap_export() local 4207 int mds = session->s_mds; handle_cap_import() local 4841 ceph_encode_inode_release(void ** p,struct inode * inode,int mds,int drop,int unless,int force) ceph_encode_inode_release() argument 4933 ceph_encode_dentry_release(void ** p,struct dentry * dentry,struct inode * dir,int mds,int drop,int unless) ceph_encode_dentry_release() argument [all...] |
H A D | super.h | 42 #define CEPH_MOUNT_OPT_MOUNTWAIT (1<<12) /* mount waits if no mds is up */ 75 * update the mds to avoid sending another message later. 173 * Each cap is referenced by the inode's i_caps rbtree and by per-mds 181 u64 cap_id; /* unique cap id (mds provided) */ 185 int issued; /* latest, from the mds */ 188 int mds; /* mds index for this cap */ member 189 int mds_wanted; /* caps wanted from this mds */ 218 * Snapped cap state that is pending flush to mds. When a snapshot occurs, 266 * delegation info. That is, if mds > 278 int mds; /* -1 if same authority as parent */ global() member [all...] |
H A D | mds_client.h | 96 * on-wire structures within the mds reply message payload. 139 * parsed info about an mds reply, including information about 218 unsigned long s_ttl; /* time until mds kills us */ 227 atomic_t s_cap_gen; /* inc each time we get mds stale msg */ 262 USE_AUTH_MDS, /* prefer authoritative mds for this metadata item */ 280 * an in-flight mds request 288 int r_op; /* mds op code */ 331 /* for choosing which mds to send this request to */ 359 unsigned long r_request_started; /* start time for mds request only, 373 int r_resend_mds; /* mds t [all...] |
H A D | inode.c | 284 frag->mds = -1; in __get_or_create_frag() 374 * Process dirfrag (delegation) info from the mds. Include leaf 385 int mds = le32_to_cpu(dirinfo->auth); in ceph_fill_dirfrag() local 393 diri_auth = ci->i_auth_cap->mds; in ceph_fill_dirfrag() 396 if (mds == -1) /* CDIR_AUTH_PARENT */ in ceph_fill_dirfrag() 397 mds = diri_auth; in ceph_fill_dirfrag() 400 if (ndist == 0 && mds == diri_auth) { in ceph_fill_dirfrag() 415 frag->mds = -1; in ceph_fill_dirfrag() 422 /* find/add this frag to store mds delegation info */ in ceph_fill_dirfrag() 427 pr_err_client(cl, "ENOMEM on mds re in ceph_fill_dirfrag() [all...] |
/linux/tools/testing/cxl/test/ |
H A D | mem.c | 180 struct cxl_memdev_state *mds; member 372 cxl_mem_get_event_records(mdata->mds, mes->ev_status); in cxl_mock_event_trigger() 575 static int mock_get_log(struct cxl_memdev_state *mds, struct cxl_mbox_cmd *cmd) in mock_get_log() argument 577 struct cxl_mailbox *cxl_mbox = &mds->cxlds.cxl_mbox; in mock_get_log() 659 struct cxl_memdev_state *mds = in cxl_mockmem_sanitize_work() local 660 container_of(work, typeof(*mds), security.poll_dwork.work); in cxl_mockmem_sanitize_work() 661 struct cxl_mailbox *cxl_mbox = &mds->cxlds.cxl_mbox; in cxl_mockmem_sanitize_work() 664 if (mds->security.sanitize_node) in cxl_mockmem_sanitize_work() 665 sysfs_notify_dirent(mds->security.sanitize_node); in cxl_mockmem_sanitize_work() 666 mds in cxl_mockmem_sanitize_work() 675 struct cxl_memdev_state *mds = mdata->mds; mock_sanitize() local 1544 struct cxl_memdev_state *mds = mdata->mds; cxl_mock_mbox_send() local 1692 struct cxl_memdev_state *mds; cxl_mock_mem_probe() local [all...] |
/linux/Documentation/admin-guide/hw-vuln/ |
H A D | mds.rst | 61 architecture section: :ref:`Documentation/arch/x86/mds.rst <mds>`. 94 /sys/devices/system/cpu/vulnerabilities/mds 243 time with the option "mds=". The valid arguments for this option are: 253 full,nosmt The same as mds=full, with SMT disabled on vulnerable 260 Not specifying this option is equivalent to "mds=full". For processors 262 specifying just "mds=off" without an accompanying "tsx_async_abort=off"
|
H A D | index.rst | 15 mds
|
/linux/fs/nfs/ |
H A D | write.c | 834 atomic_long_inc(&cinfo->mds->ncommit); in nfs_request_add_commit_list_locked() 854 nfs_request_add_commit_list_locked(req, &cinfo->mds->list, cinfo); in nfs_request_add_commit_list() 878 atomic_long_dec(&cinfo->mds->ncommit); in nfs_request_remove_commit_list() 886 cinfo->mds = &NFS_I(inode)->commit_info; in nfs_init_cinfo_from_inode() 997 return atomic_long_read(&cinfo->mds->ncommit); in nfs_reqs_to_commit() 1029 * @dst: mds destination list 1030 * @cinfo: mds and ds lists of reqs ready to commit 1041 if (!atomic_long_read(&cinfo->mds->ncommit)) in nfs_scan_commit() 1044 if (atomic_long_read(&cinfo->mds->ncommit) > 0) { in nfs_scan_commit() 1047 ret = nfs_scan_commit_list(&cinfo->mds in nfs_scan_commit() [all...] |
/linux/Documentation/arch/x86/ |
H A D | index.rst | 34 mds
|
H A D | tsx_async_abort.rst | 31 :ref:`Documentation/admin-guide/hw-vuln/mds.rst <mds>`.
|
/linux/drivers/media/platform/aspeed/ |
H A D | aspeed-video.c | 985 u32 mds, sync, htotal, vtotal, vsync, hsync; in aspeed_video_get_timings() local 987 mds = aspeed_video_read(v, VE_MODE_DETECT_STATUS); in aspeed_video_get_timings() 990 vtotal = FIELD_GET(VE_MODE_DETECT_V_LINES, mds); in aspeed_video_get_timings() 1036 u32 mds; in aspeed_video_get_resolution() local 1067 mds = aspeed_video_read(video, VE_MODE_DETECT_STATUS); in aspeed_video_get_resolution() 1069 if (!(mds & VE_MODE_DETECT_H_STABLE) || in aspeed_video_get_resolution() 1070 !(mds & VE_MODE_DETECT_V_STABLE) || in aspeed_video_get_resolution() 1071 (mds & VE_MODE_DETECT_EXTSRC_ADC)) in aspeed_video_get_resolution()
|
/linux/net/dsa/ |
H A D | dsa.c | 1137 struct dsa_switch *mds, *ds = dp->ds; in dsa_get_tag_protocol() local 1147 mds = mdp->ds; in dsa_get_tag_protocol() 1148 mdp_upstream = dsa_upstream_port(mds, mdp->index); in dsa_get_tag_protocol() 1149 tag_protocol = mds->ops->get_tag_protocol(mds, mdp_upstream, in dsa_get_tag_protocol()
|
/linux/drivers/base/ |
H A D | cpu.c | 593 CPU_SHOW_VULN_FALLBACK(mds); 612 static DEVICE_ATTR(mds, 0444, cpu_show_mds, NULL);
|