Lines Matching defs:mode

57  * struct msc_window - multiblock mode window descriptor
111 * @win_list: list of windows in multiblock mode
112 * @single_sgt: single mode buffer
115 * @single_sz: amount of data in single mode
116 * @single_wrap: single mode wrap occurred
125 * @mode: MSC operating mode
165 unsigned int mode;
386 * This should only be used in multiblock mode. Caller should hold the
755 * Program storage mode, wrapping, burst length and trace buffer address
765 if (msc->mode > MSC_MODE_MULTI)
768 if (msc->mode == MSC_MODE_MULTI) {
781 if (msc->mode == MSC_MODE_SINGLE) {
790 reg |= msc->mode << __ffs(MSC_MODE);
800 msc->thdev->output.multiblock = msc->mode == MSC_MODE_MULTI;
824 if (msc->mode == MSC_MODE_MULTI)
832 if (msc->mode == MSC_MODE_SINGLE) {
901 * msc_buffer_contig_alloc() - allocate a contiguous buffer for SINGLE mode
955 * @msc: MSC configured in SINGLE mode
977 * @msc: MSC configured in SINGLE mode
1031 if (msc->mode == MSC_MODE_SINGLE) {
1051 if (msc->mode == MSC_MODE_SINGLE) {
1081 * msc_buffer_win_alloc() - alloc a window for a multiblock mode
1186 * msc_buffer_relink() - set up block descriptors for multiblock mode
1285 if (msc->mode == MSC_MODE_SINGLE)
1287 else if (msc->mode == MSC_MODE_MULTI)
1296 * Allocate a storage buffer for MSC, depending on the msc::mode, it will be
1297 * either done via msc_buffer_contig_alloc() for SINGLE operation mode or
1299 * window per invocation, so in multiblock mode this can be called multiple
1316 if (msc->mode == MSC_MODE_SINGLE) {
1321 } else if (msc->mode == MSC_MODE_MULTI) {
1401 if (msc->mode == MSC_MODE_SINGLE)
1534 if (msc->mode == MSC_MODE_SINGLE && !msc->single_wrap)
1548 if (msc->mode == MSC_MODE_SINGLE) {
1552 } else if (msc->mode == MSC_MODE_MULTI) {
1647 if (msc->mode != MSC_MODE_SINGLE &&
1648 msc->mode != MSC_MODE_MULTI)
1696 msc->mode = msc->multi_is_broken ? MSC_MODE_SINGLE : MSC_MODE_MULTI;
1863 const char *mode = msc_mode[msc->mode];
1868 mode = msc->mbuf->name;
1869 ret = scnprintf(buf, PAGE_SIZE, "%s\n", mode);
1882 char *cp, *mode;
1892 mode = kstrndup(buf, len, GFP_KERNEL);
1893 if (!mode)
1896 i = match_string(msc_mode, ARRAY_SIZE(msc_mode), mode);
1898 kfree(mode);
1904 kfree(mode);
1908 mbuf = msu_buffer_get(mode);
1909 kfree(mode);
1948 msc->mode = i;
1958 static DEVICE_ATTR_RW(mode);
1969 if (msc->mode == MSC_MODE_SINGLE)
1971 else if (msc->mode == MSC_MODE_MULTI) {
2023 if (nr_wins && msc->mode == MSC_MODE_SINGLE) {
2076 * Window switch can only happen in the "multi" mode.
2080 if (msc->mode == MSC_MODE_MULTI && !msc->mbuf)