Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/cxl/core/
Dmbox.c240 int cxl_internal_send_cmd(struct cxl_memdev_state *mds, in cxl_internal_send_cmd() argument
246 if (mbox_cmd->size_in > mds->payload_size || in cxl_internal_send_cmd()
247 mbox_cmd->size_out > mds->payload_size) in cxl_internal_send_cmd()
252 rc = mds->mbox_send(mds, mbox_cmd); in cxl_internal_send_cmd()
340 struct cxl_memdev_state *mds, u16 opcode, in cxl_mbox_cmd_ctor() argument
355 dev_dbg(mds->cxlds.dev, "%s: input payload not allowed\n", in cxl_mbox_cmd_ctor()
364 mbox->size_out = mds->payload_size; in cxl_mbox_cmd_ctor()
386 struct cxl_memdev_state *mds) in cxl_to_mem_cmd_raw() argument
396 if (send_cmd->out.size > mds->payload_size) in cxl_to_mem_cmd_raw()
402 dev_WARN_ONCE(mds->cxlds.dev, true, "raw command path used\n"); in cxl_to_mem_cmd_raw()
[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()
61 return sysfs_emit(buf, "%zu\n", mds->payload_size); 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()
127 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); in security_state_show() local
[all …]
/linux-6.6.21/drivers/cxl/
Dpci.c123 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlds); in cxl_pci_mbox_irq() local
131 mutex_lock(&mds->mbox_mutex); in cxl_pci_mbox_irq()
132 if (mds->security.sanitize_node) in cxl_pci_mbox_irq()
133 mod_delayed_work(system_wq, &mds->security.poll_dwork, 0); in cxl_pci_mbox_irq()
134 mutex_unlock(&mds->mbox_mutex); in cxl_pci_mbox_irq()
137 rcuwait_wake_up(&mds->mbox_wait); in cxl_pci_mbox_irq()
148 struct cxl_memdev_state *mds = in cxl_mbox_sanitize_work() local
149 container_of(work, typeof(*mds), security.poll_dwork.work); in cxl_mbox_sanitize_work()
150 struct cxl_dev_state *cxlds = &mds->cxlds; in cxl_mbox_sanitize_work()
152 mutex_lock(&mds->mbox_mutex); in cxl_mbox_sanitize_work()
[all …]
Dsecurity.c17 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in cxl_pmem_get_security_flags() local
32 rc = cxl_internal_send_cmd(mds, &mbox_cmd); in cxl_pmem_get_security_flags()
38 mds->security.state = sec_out; in cxl_pmem_get_security_flags()
73 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in cxl_pmem_security_change_key() local
90 return cxl_internal_send_cmd(mds, &mbox_cmd); in cxl_pmem_security_change_key()
99 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in __cxl_pmem_security_disable() local
115 return cxl_internal_send_cmd(mds, &mbox_cmd); in __cxl_pmem_security_disable()
134 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in cxl_pmem_security_freeze() local
139 return cxl_internal_send_cmd(mds, &mbox_cmd); in cxl_pmem_security_freeze()
147 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in cxl_pmem_security_unlock() local
[all …]
Dpmem.c18 static void clear_exclusive(void *mds) in clear_exclusive() argument
20 clear_exclusive_cxl_commands(mds, exclusive_cmds); in clear_exclusive()
68 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in cxl_nvdimm_probe() local
73 set_exclusive_cxl_commands(mds, exclusive_cmds); in cxl_nvdimm_probe()
74 rc = devm_add_action_or_reset(dev, clear_exclusive, mds); in cxl_nvdimm_probe()
103 static int cxl_pmem_get_config_size(struct cxl_memdev_state *mds, in cxl_pmem_get_config_size() argument
111 .config_size = mds->lsa_size, in cxl_pmem_get_config_size()
113 mds->payload_size - sizeof(struct cxl_mbox_set_lsa), 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
144 rc = cxl_internal_send_cmd(mds, &mbox_cmd); in cxl_pmem_get_config_data()
[all …]
Dcxlmem.h92 int devm_cxl_setup_fw_upload(struct device *host, struct cxl_memdev_state *mds);
484 int (*mbox_send)(struct cxl_memdev_state *mds,
857 int cxl_internal_send_cmd(struct cxl_memdev_state *mds,
859 int cxl_dev_state_identify(struct cxl_memdev_state *mds);
861 int cxl_enumerate_cmds(struct cxl_memdev_state *mds);
862 int cxl_mem_create_range_info(struct cxl_memdev_state *mds);
864 void set_exclusive_cxl_commands(struct cxl_memdev_state *mds,
866 void clear_exclusive_cxl_commands(struct cxl_memdev_state *mds,
868 void cxl_mem_get_event_records(struct cxl_memdev_state *mds, u32 status);
869 int cxl_set_timestamp(struct cxl_memdev_state *mds);
[all …]
Dmem.c110 struct cxl_memdev_state *mds = to_cxl_memdev_state(cxlmd->cxlds); in cxl_mem_probe() local
135 if (test_bit(CXL_POISON_ENABLED_INJECT, mds->poison.enabled_cmds)) in cxl_mem_probe()
138 if (test_bit(CXL_POISON_ENABLED_CLEAR, mds->poison.enabled_cmds)) in cxl_mem_probe()
222 struct cxl_memdev_state *mds = in cxl_mem_visible() local
226 mds->poison.enabled_cmds)) in cxl_mem_visible()
/linux-6.6.21/tools/thermal/lib/
Dmainloop.c21 static struct mainloop_data **mds; variable
65 mds = realloc(mds, sizeof(*mds) * (fd + 1)); in mainloop_add()
66 if (!mds) in mainloop_add()
79 mds[fd] = md; in mainloop_add()
98 free(mds[fd]); in mainloop_del()
/linux-6.6.21/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.6.21/fs/ceph/
Dmdsmap.c48 int mds; in ceph_mdsmap_get_random_mds() local
50 mds = __mdsmap_get_random_mds(m, false); in ceph_mdsmap_get_random_mds()
51 if (mds == m->possible_max_rank || mds == -1) in ceph_mdsmap_get_random_mds()
52 mds = __mdsmap_get_random_mds(m, true); in ceph_mdsmap_get_random_mds()
54 return mds == m->possible_max_rank ? -1 : mds; in ceph_mdsmap_get_random_mds()
177 s32 mds, inc, state; in ceph_mdsmap_decode() local
205 ceph_decode_32_safe(p, end, mds, bad); in ceph_mdsmap_decode()
237 i+1, n, global_id, mds, inc, in ceph_mdsmap_decode()
242 if (mds < 0 || mds >= m->possible_max_rank) { in ceph_mdsmap_decode()
243 pr_warn("mdsmap_decode got incorrect mds(%d)\n", mds); in ceph_mdsmap_decode()
[all …]
Dmds_client.c929 int mds) in __ceph_lookup_mds_session() argument
931 if (mds >= mdsc->max_sessions || !mdsc->sessions[mds]) in __ceph_lookup_mds_session()
933 return ceph_get_mds_session(mdsc->sessions[mds]); in __ceph_lookup_mds_session()
936 static bool __have_session(struct ceph_mds_client *mdsc, int mds) in __have_session() argument
938 if (mds >= mdsc->max_sessions || !mdsc->sessions[mds]) in __have_session()
958 int mds) in register_session() argument
965 if (mds >= mdsc->mdsmap->possible_max_rank) in register_session()
972 if (mds >= mdsc->max_sessions) { in register_session()
973 int newmax = 1 << get_count_order(mds + 1); in register_session()
989 dout("%s: mds%d\n", __func__, 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.c435 struct ceph_cap *__get_cap_for_mds(struct ceph_inode_info *ci, int mds) in __get_cap_for_mds() argument
442 if (mds < cap->mds) in __get_cap_for_mds()
444 else if (mds > cap->mds) in __get_cap_for_mds()
452 struct ceph_cap *ceph_get_cap_for_mds(struct ceph_inode_info *ci, int mds) in ceph_get_cap_for_mds() argument
457 cap = __get_cap_for_mds(ci, mds); in ceph_get_cap_for_mds()
475 if (new->mds < cap->mds) in __insert_cap_node()
477 else if (new->mds > cap->mds) in __insert_cap_node()
641 int mds = session->s_mds; in ceph_add_cap() local
652 cap = __get_cap_for_mds(ci, mds); in ceph_add_cap()
659 cap->mds = mds; in ceph_add_cap()
[all …]
Dmds_client.h518 __ceph_lookup_mds_session(struct ceph_mds_client *, int mds);
527 struct ceph_msg *msg, int mds);
574 int (*cb)(struct inode *, int mds, void *),
Dsuper.h187 int mds; /* mds index for this cap */ member
276 int mds; /* -1 if same authority as parent */ member
1242 int mds);
1244 int mds);
1268 int mds, int drop, int unless, int force);
1271 int mds, int drop, int unless);
/linux-6.6.21/tools/testing/cxl/test/
Dmem.c136 struct cxl_memdev_state *mds; member
329 cxl_mem_get_event_records(mes->mds, mes->ev_status); in cxl_mock_event_trigger()
489 static int mock_get_log(struct cxl_memdev_state *mds, struct cxl_mbox_cmd *cmd) in mock_get_log() argument
499 if (length > mds->payload_size) in mock_get_log()
1264 static int cxl_mock_mbox_send(struct cxl_memdev_state *mds, in cxl_mock_mbox_send() argument
1267 struct cxl_dev_state *cxlds = &mds->cxlds; in cxl_mock_mbox_send()
1280 rc = mock_get_log(mds, cmd); in cxl_mock_mbox_send()
1388 struct cxl_memdev_state *mds; in cxl_mock_mem_probe() local
1414 mds = cxl_memdev_state_create(dev); in cxl_mock_mem_probe()
1415 if (IS_ERR(mds)) in cxl_mock_mem_probe()
[all …]
/linux-6.6.21/Documentation/admin-guide/hw-vuln/
Dmds.rst61 architecture section: :ref:`Documentation/arch/x86/mds.rst <mds>`.
94 /sys/devices/system/cpu/vulnerabilities/mds
137 The state in the mds sysfs file reflects this situation accordingly.
251 time with the option "mds=". The valid arguments for this option are:
261 full,nosmt The same as mds=full, with SMT disabled on vulnerable
268 Not specifying this option is equivalent to "mds=full". For processors
270 specifying just "mds=off" without an accompanying "tsx_async_abort=off"
Dindex.rst14 mds
/linux-6.6.21/fs/nfs/
Dwrite.c845 list_for_each_entry_safe(freq, t, &cinfo.mds->list, wb_list) { in nfs_page_search_commits_for_head_request_locked()
872 atomic_long_inc(&cinfo->mds->ncommit); in nfs_request_add_commit_list_locked()
892 nfs_request_add_commit_list_locked(req, &cinfo->mds->list, cinfo); in nfs_request_add_commit_list()
916 atomic_long_dec(&cinfo->mds->ncommit); in nfs_request_remove_commit_list()
924 cinfo->mds = &NFS_I(inode)->commit_info; in nfs_init_cinfo_from_inode()
1035 return atomic_long_read(&cinfo->mds->ncommit); in nfs_reqs_to_commit()
1079 if (!atomic_long_read(&cinfo->mds->ncommit)) in nfs_scan_commit()
1082 if (atomic_long_read(&cinfo->mds->ncommit) > 0) { in nfs_scan_commit()
1085 ret = nfs_scan_commit_list(&cinfo->mds->list, dst, in nfs_scan_commit()
1779 nfs_commit_begin(cinfo->mds); in nfs_init_commit()
[all …]
Ddirect.c166 cinfo->mds = &dreq->mds_cinfo; in nfs_init_cinfo_from_dreq()
537 nfs_scan_commit_list(&cinfo->mds->list, list, cinfo, 0); in nfs_direct_write_scan_commit_list()
641 if (nfs_commit_end(cinfo.mds)) in nfs_direct_commit_complete()
/linux-6.6.21/Documentation/arch/x86/
Dindex.rst32 mds
Dtsx_async_abort.rst31 :ref:`Documentation/admin-guide/hw-vuln/mds.rst <mds>`.
/linux-6.6.21/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.6.21/net/dsa/
Ddsa.c1135 struct dsa_switch *mds, *ds = dp->ds; in dsa_get_tag_protocol() local
1145 mds = mdp->ds; in dsa_get_tag_protocol()
1146 mdp_upstream = dsa_upstream_port(mds, mdp->index); in dsa_get_tag_protocol()
1147 tag_protocol = mds->ops->get_tag_protocol(mds, mdp_upstream, in dsa_get_tag_protocol()
/linux-6.6.21/drivers/base/
Dcpu.c560 CPU_SHOW_VULN_FALLBACK(mds);
574 static DEVICE_ATTR(mds, 0444, cpu_show_mds, NULL);

12