Home
last modified time | relevance | path

Searched refs:mds (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.12.1/drivers/cxl/core/
Dmbox.c353 struct cxl_memdev_state *mds, u16 opcode, in cxl_mbox_cmd_ctor() argument
356 struct cxl_mailbox *cxl_mbox = &mds->cxlds.cxl_mbox; in cxl_mbox_cmd_ctor()
369 dev_dbg(mds->cxlds.dev, "%s: input payload not allowed\n", in cxl_mbox_cmd_ctor()
400 struct cxl_memdev_state *mds) in cxl_to_mem_cmd_raw() argument
402 struct cxl_mailbox *cxl_mbox = &mds->cxlds.cxl_mbox; in cxl_to_mem_cmd_raw()
418 dev_WARN_ONCE(mds->cxlds.dev, true, "raw command path used\n"); in cxl_to_mem_cmd_raw()
434 struct cxl_memdev_state *mds) in cxl_to_mem_cmd() argument
449 if (!test_bit(info->id, mds->enabled_cmds)) in cxl_to_mem_cmd()
453 if (test_bit(info->id, mds->exclusive_cmds)) in cxl_to_mem_cmd()
497 struct cxl_memdev_state *mds, in cxl_validate_cmd_from_user() argument
[all …]
Dmemdev.c44 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); in firmware_version_show() local
46 if (!mds) in firmware_version_show()
48 return sysfs_emit(buf, "%.16s\n", mds->firmware_version); in firmware_version_show()
57 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); in payload_max_show() local
59 if (!mds) in payload_max_show()
70 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); in label_storage_size_show() local
72 if (!mds) in label_storage_size_show()
74 return sysfs_emit(buf, "%zu\n", mds->lsa_size); in label_storage_size_show()
128 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); in security_state_show() local
129 unsigned long state = mds->security.state; in security_state_show()
[all …]
Dcdat.c261 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); in cxl_memdev_set_qos_class() local
277 update_perf_entry(dev, dent, &mds->ram_perf); in cxl_memdev_set_qos_class()
280 update_perf_entry(dev, dent, &mds->pmem_perf); in cxl_memdev_set_qos_class()
349 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); in cxl_qos_class_verify() local
362 if (!cxl_qos_match(root_port, &mds->ram_perf)) in cxl_qos_class_verify()
363 reset_dpa_perf(&mds->ram_perf); in cxl_qos_class_verify()
364 if (!cxl_qos_match(root_port, &mds->pmem_perf)) in cxl_qos_class_verify()
365 reset_dpa_perf(&mds->pmem_perf); in cxl_qos_class_verify()
371 reset_dpa_perf(&mds->ram_perf); in cxl_qos_class_verify()
372 reset_dpa_perf(&mds->pmem_perf); in cxl_qos_class_verify()
[all …]
/linux-6.12.1/drivers/cxl/
Dpci.c129 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->security.sanitize_active = false; in cxl_mbox_sanitize_work()
[all …]
Dpmem.c16 static void clear_exclusive(void *mds) in clear_exclusive() argument
18 clear_exclusive_cxl_commands(mds, exclusive_cmds); in clear_exclusive()
66 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in cxl_nvdimm_probe() local
71 set_exclusive_cxl_commands(mds, exclusive_cmds); in cxl_nvdimm_probe()
72 rc = devm_add_action_or_reset(dev, clear_exclusive, mds); in cxl_nvdimm_probe()
101 static int cxl_pmem_get_config_size(struct cxl_memdev_state *mds, in cxl_pmem_get_config_size() argument
105 struct cxl_mailbox *cxl_mbox = &mds->cxlds.cxl_mbox; in cxl_pmem_get_config_size()
111 .config_size = mds->lsa_size, in cxl_pmem_get_config_size()
119 static int cxl_pmem_get_config_data(struct cxl_memdev_state *mds, in cxl_pmem_get_config_data() argument
123 struct cxl_mailbox *cxl_mbox = &mds->cxlds.cxl_mbox; in cxl_pmem_get_config_data()
[all …]
Dmem.c109 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()
220 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in cxl_mem_visible() local
224 mds->poison.enabled_cmds)) in cxl_mem_visible()
Dcxlmem.h95 int devm_cxl_setup_fw_upload(struct device *host, struct cxl_memdev_state *mds);
818 int cxl_dev_state_identify(struct cxl_memdev_state *mds);
820 int cxl_enumerate_cmds(struct cxl_memdev_state *mds);
821 int cxl_mem_create_range_info(struct cxl_memdev_state *mds);
823 void set_exclusive_cxl_commands(struct cxl_memdev_state *mds,
825 void clear_exclusive_cxl_commands(struct cxl_memdev_state *mds,
827 void cxl_mem_get_event_records(struct cxl_memdev_state *mds, u32 status);
832 int cxl_set_timestamp(struct cxl_memdev_state *mds);
833 int cxl_poison_state_init(struct cxl_memdev_state *mds);
Dsecurity.c18 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-6.12.1/crypto/
Dtwofish_common.c109 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[0][q0[q0[(b) ^ sa] ^ se] ^ si]; \
493 ctx->s[1][i] = mds[1][q0[q1[(b) ^ sb] ^ sf] ^ sj]; \
494 ctx->s[2][i] = mds[2][q1[q0[(a) ^ sc] ^ sg] ^ sk]; \
495 ctx->s[3][i] = mds[3][q1[q1[(a) ^ sd] ^ sh] ^ sl];
500 ctx->s[0][i] = mds[0][q0[q0[q1[(b) ^ sa] ^ se] ^ si] ^ sm]; \
[all …]
/linux-6.12.1/fs/ceph/
Dmdsmap.c49 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()
180 s32 mds, inc, state; in ceph_mdsmap_decode() local
208 ceph_decode_32_safe(p, end, mds, bad); in ceph_mdsmap_decode()
240 mds, inc, ceph_pr_addr(&addr), in ceph_mdsmap_decode()
243 if (mds < 0 || mds >= m->possible_max_rank) { in ceph_mdsmap_decode()
244 pr_warn_client(cl, "got incorrect mds(%d)\n", mds); in ceph_mdsmap_decode()
[all …]
Dmds_client.c935 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 >= mdsc->max_sessions || !mdsc->sessions[mds]) in __have_session()
964 int mds) in register_session() argument
972 if (mds >= mdsc->mdsmap->possible_max_rank) in register_session()
979 if (mds >= mdsc->max_sessions) { in register_session()
980 int newmax = 1 << get_count_order(mds + 1); in register_session()
996 doutc(cl, "mds%d\n", mds); in register_session()
[all …]
Ddebugfs.c251 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()
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()
Dcaps.c441 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()
483 else if (new->mds > cap->mds) in __insert_cap_node()
660 int mds = session->s_mds; in ceph_add_cap() local
672 cap = __get_cap_for_mds(ci, mds); in ceph_add_cap()
679 cap->mds = mds; in ceph_add_cap()
[all …]
Dsuper.h188 int mds; /* mds index for this cap */ member
278 int mds; /* -1 if same authority as parent */ member
1245 int mds);
1247 int mds);
1270 int mds, int drop, int unless, int force);
1273 int mds, int drop, int unless);
Dmds_client.h554 __ceph_lookup_mds_session(struct ceph_mds_client *, int mds);
608 int (*cb)(struct inode *, int mds, void *),
/linux-6.12.1/tools/testing/cxl/test/
Dmem.c160 struct cxl_memdev_state *mds; member
350 cxl_mem_get_event_records(mdata->mds, mes->ev_status); in cxl_mock_event_trigger()
536 static int mock_get_log(struct cxl_memdev_state *mds, struct cxl_mbox_cmd *cmd) in mock_get_log() argument
538 struct cxl_mailbox *cxl_mbox = &mds->cxlds.cxl_mbox; in mock_get_log()
620 struct cxl_memdev_state *mds = in cxl_mockmem_sanitize_work() local
621 container_of(work, typeof(*mds), security.poll_dwork.work); in cxl_mockmem_sanitize_work()
622 struct cxl_mailbox *cxl_mbox = &mds->cxlds.cxl_mbox; in cxl_mockmem_sanitize_work()
625 if (mds->security.sanitize_node) in cxl_mockmem_sanitize_work()
626 sysfs_notify_dirent(mds->security.sanitize_node); in cxl_mockmem_sanitize_work()
627 mds->security.sanitize_active = false; in cxl_mockmem_sanitize_work()
[all …]
/linux-6.12.1/Documentation/admin-guide/hw-vuln/
Dmds.rst61 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"
Dindex.rst14 mds
/linux-6.12.1/fs/nfs/
Dwrite.c837 atomic_long_inc(&cinfo->mds->ncommit); in nfs_request_add_commit_list_locked()
857 nfs_request_add_commit_list_locked(req, &cinfo->mds->list, cinfo); in nfs_request_add_commit_list()
881 atomic_long_dec(&cinfo->mds->ncommit); in nfs_request_remove_commit_list()
889 cinfo->mds = &NFS_I(inode)->commit_info; in nfs_init_cinfo_from_inode()
1000 return atomic_long_read(&cinfo->mds->ncommit); in nfs_reqs_to_commit()
1044 if (!atomic_long_read(&cinfo->mds->ncommit)) in nfs_scan_commit()
1047 if (atomic_long_read(&cinfo->mds->ncommit) > 0) { in nfs_scan_commit()
1050 ret = nfs_scan_commit_list(&cinfo->mds->list, dst, in nfs_scan_commit()
1762 nfs_commit_begin(cinfo->mds); in nfs_init_commit()
1886 nfs_commit_end(cinfo.mds); in nfs_commit_release_pages()
[all …]
Ddirect.c164 cinfo->mds = &dreq->mds_cinfo; in nfs_init_cinfo_from_dreq()
534 nfs_scan_commit_list(&cinfo->mds->list, list, cinfo, 0); in nfs_direct_write_scan_commit_list()
643 if (nfs_commit_end(cinfo.mds)) in nfs_direct_commit_complete()
673 nfs_commit_begin(cinfo.mds); in nfs_direct_commit_schedule()
682 if (nfs_commit_end(cinfo.mds)) in nfs_direct_commit_schedule()
/linux-6.12.1/Documentation/arch/x86/
Dindex.rst32 mds
Dtsx_async_abort.rst31 :ref:`Documentation/admin-guide/hw-vuln/mds.rst <mds>`.
/linux-6.12.1/drivers/media/platform/aspeed/
Daspeed-video.c985 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-6.12.1/net/dsa/
Ddsa.c1130 struct dsa_switch *mds, *ds = dp->ds; in dsa_get_tag_protocol() local
1140 mds = mdp->ds; in dsa_get_tag_protocol()
1141 mdp_upstream = dsa_upstream_port(mds, mdp->index); in dsa_get_tag_protocol()
1142 tag_protocol = mds->ops->get_tag_protocol(mds, mdp_upstream, in dsa_get_tag_protocol()
/linux-6.12.1/drivers/base/
Dcpu.c593 CPU_SHOW_VULN_FALLBACK(mds);
608 static DEVICE_ATTR(mds, 0444, cpu_show_mds, NULL);

12