Home
last modified time | relevance | path

Searched +full:use +full:- +full:case (Results 1 – 25 of 1089) sorted by relevance

12345678910>>...44

/linux/sound/soc/mediatek/mt8186/
H A Dmt8186-afe-control.c1 // SPDX-License-Identifier: GPL-2.0
8 #include "mt8186-afe-common.h"
78 case 8000: in mt8186_general_rate_transform()
80 case 11025: in mt8186_general_rate_transform()
82 case 12000: in mt8186_general_rate_transform()
84 case 16000: in mt8186_general_rate_transform()
86 case 22050: in mt8186_general_rate_transform()
88 case 24000: in mt8186_general_rate_transform()
90 case 32000: in mt8186_general_rate_transform()
92 case 44100: in mt8186_general_rate_transform()
[all …]
/linux/security/keys/
H A Dpermission.c1 // SPDX-License-Identifier: GPL-2.0-or-later
13 * key_task_permission - Check a key can be used
15 * @cred: The credentials to use.
18 * Check to see whether permission is granted to use a key in the desired way,
23 * Returns 0 if successful, -EACCES if access is denied based on the
36 return -EACCES; in key_task_permission()
37 case KEY_NEED_UNLINK: in key_task_permission()
38 case KEY_SYSADMIN_OVERRIDE: in key_task_permission()
39 case KEY_AUTHTOKEN_OVERRIDE: in key_task_permission()
40 case KEY_DEFER_PERM_CHECK: in key_task_permission()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_vpg.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
32 vpg3->base.ctx->logger
35 (vpg3->regs->reg)
39 vpg3->vpg_shift->field_name, vpg3->vpg_mask->field_name
43 vpg3->base.ctx
56 * use 50 for now. in vpg3_update_generic_info_packet()
63 /* poll dig_update_lock is not locked -> asic internal signal in vpg3_update_generic_info_packet()
75 /* HW does is not reading GSP memory not reading too long -> in vpg3_update_generic_info_packet()
81 /* choose which generic packet to use */ in vpg3_update_generic_info_packet()
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
H A Drf.c1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright(c) 2009-2012 Realtek Corporation.*/
16 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal); in rtl92d_phy_enable_anotherphy()
23 rtlhal->during_mac0init_radiob = false; in rtl92d_phy_enable_anotherphy()
24 rtlhal->during_mac1init_radioa = false; in rtl92d_phy_enable_anotherphy()
26 /* MAC0 Need PHY1 load radio_b.txt . Driver use DBI to write. */ in rtl92d_phy_enable_anotherphy()
47 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal); in rtl92d_phy_powerdown_anotherphy()
53 rtlhal->during_mac0init_radiob = false; in rtl92d_phy_powerdown_anotherphy()
54 rtlhal->during_mac1init_radioa = false; in rtl92d_phy_powerdown_anotherphy()
71 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92d_phy_rf6052_config()
[all …]
/linux/mm/kmsan/
H A Dkmsan_test.c1 // SPDX-License-Identifier: GPL-2.0
4 * For each test case checks the presence (or absence) of generated reports.
8 * Copyright (C) 2021-2022, Google LLC.
53 * The provided @buf is not NUL-terminated; copy no more than in probe_console()
54 * @len bytes and let strscpy() add the missing NUL-terminator. in probe_console()
100 /* Doubled-checked locking. */ in report_matches()
101 if (!report_available() || !r->symbol) in report_matches()
102 return (!report_available() && !r->symbol); in report_matches()
110 cur += scnprintf(cur, end - cur, "BUG: KMSAN: %s", r->error_type); in report_matches()
112 scnprintf(cur, end - cur, " in %s", r->symbol); in report_matches()
[all …]
/linux/scripts/kconfig/
H A Dmconf.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2002 Roman Zippel <zippel@linux-m68k.org>
5 * Introduced single menu mode (show all sub-menus in one large tree).
6 * 2002-11-06 Petr Baudis <pasky@ucw.cz>
27 #include "mnconf-common.h"
31 "--------\n"
33 "Features can either be built-in, modularized, or ignored. Parameters\n"
40 " - - are selected by other feature,\n"
47 "through the available options (i.e. Y->N->M->Y).\n"
52 "----------\n"
[all …]
/linux/drivers/net/wireless/ath/
H A Ddebug.c4 * Permission to use, copy, modify, and/or distribute this software for any
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
23 case NL80211_IFTYPE_UNSPECIFIED: in ath_opmode_to_string()
25 case NL80211_IFTYPE_ADHOC: in ath_opmode_to_string()
27 case NL80211_IFTYPE_STATION: in ath_opmode_to_string()
29 case NL80211_IFTYPE_AP: in ath_opmode_to_string()
31 case NL80211_IFTYPE_AP_VLAN: in ath_opmode_to_string()
32 return "AP-VLAN"; in ath_opmode_to_string()
33 case NL80211_IFTYPE_WDS: in ath_opmode_to_string()
[all …]
/linux/sound/soc/mediatek/mt8192/
H A Dmt8192-afe-control.c1 // SPDX-License-Identifier: GPL-2.0
9 #include "mt8192-afe-common.h"
48 case 8000: in mt8192_general_rate_transform()
50 case 11025: in mt8192_general_rate_transform()
52 case 12000: in mt8192_general_rate_transform()
54 case 16000: in mt8192_general_rate_transform()
56 case 22050: in mt8192_general_rate_transform()
58 case 24000: in mt8192_general_rate_transform()
60 case 32000: in mt8192_general_rate_transform()
62 case 44100: in mt8192_general_rate_transform()
[all …]
/linux/net/mac80211/
H A Dwme.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright 2013-2014 Intel Mobile Communications GmbH
36 switch (skb->priority) { in wme_downgrade_ac()
37 case 6: in wme_downgrade_ac()
38 case 7: in wme_downgrade_ac()
39 skb->priority = 5; /* VO -> VI */ in wme_downgrade_ac()
41 case 4: in wme_downgrade_ac()
42 case 5: in wme_downgrade_ac()
43 skb->priority = 3; /* VI -> BE */ in wme_downgrade_ac()
45 case 0: in wme_downgrade_ac()
[all …]
/linux/drivers/net/wireless/realtek/rtlwifi/rtl8192du/
H A Drf.c1 // SPDX-License-Identifier: GPL-2.0
13 struct rtl_hal *rtlhal = &rtlpriv->rtlhal; in rtl92du_phy_enable_anotherphy()
21 rtlhal->during_mac0init_radiob = false; in rtl92du_phy_enable_anotherphy()
22 rtlhal->during_mac1init_radioa = false; in rtl92du_phy_enable_anotherphy()
25 /* MAC0 Need PHY1 load radio_b.txt . Driver use DBI to write. */ in rtl92du_phy_enable_anotherphy()
53 struct rtl_hal *rtlhal = &rtlpriv->rtlhal; in rtl92du_phy_powerdown_anotherphy()
59 rtlhal->during_mac0init_radiob = false; in rtl92du_phy_powerdown_anotherphy()
60 rtlhal->during_mac1init_radioa = false; in rtl92du_phy_powerdown_anotherphy()
82 struct rtl_hal *rtlhal = &rtlpriv->rtlhal; in rtl92du_phy_rf6052_config()
83 struct rtl_phy *rtlphy = &rtlpriv->phy; in rtl92du_phy_rf6052_config()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/link/protocols/
H A Dlink_hpd.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
38 if (link->link_enc) in link_get_hpd_state()
39 return link->link_enc->funcs->get_hpd_state(link->link_enc); in link_get_hpd_state()
46 if (link->link_enc) in link_enable_hpd()
47 link->link_enc->funcs->enable_hpd(link->link_enc); in link_enable_hpd()
52 if (link->link_enc) in link_disable_hpd()
53 link->link_enc->funcs->disable_hpd(link->link_enc); in link_disable_hpd()
59 link->is_hpd_filter_disabled = false; in link_enable_hpd_filter()
62 link->is_hpd_filter_disabled = true; in link_enable_hpd_filter()
[all …]
/linux/drivers/crypto/nx/
H A Dnx-common-powernv.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 #include "nx-842.h"
19 #include <asm/opal-api.h>
26 MODULE_ALIAS_CRYPTO("842-nx");
57 * where the process is executing. Use with VAS function.
77 * setup_indirect_dde - Setup an indirect DDE
86 dde->flags = 0; in setup_indirect_dde()
87 dde->count = dde_count; in setup_indirect_dde()
88 dde->index = 0; in setup_indirect_dde()
89 dde->length = cpu_to_be32(byte_count); in setup_indirect_dde()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dpp/dcn401/
H A Ddcn401_dpp.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
36 dpp->tf_regs->reg
39 dpp->base.ctx
43 dpp->tf_shift->field_name, dpp->tf_mask->field_name
50 DPP_CLOCK_ENABLE, &s->is_enabled); in dpp401_read_state()
89 case SURFACE_PIXEL_FORMAT_GRPH_ARGB1555: in dpp401_dpp_setup()
92 case SURFACE_PIXEL_FORMAT_GRPH_RGB565: in dpp401_dpp_setup()
96 case SURFACE_PIXEL_FORMAT_GRPH_ARGB8888: in dpp401_dpp_setup()
97 case SURFACE_PIXEL_FORMAT_GRPH_ABGR8888: in dpp401_dpp_setup()
[all …]
/linux/scripts/
H A Dparse-maintainers.pl1 #!/usr/bin/perl -w
2 # SPDX-License-Identifier: GPL-2.0
4 use strict;
5 use Getopt::Long qw(:config no_auto_abbrev);
21 die "$P: invalid argument - use --help if necessary\n";
33 --input => MAINTAINERS file to read (default: MAINTAINERS)
34 --output => sorted MAINTAINERS file to write (default: MAINTAINERS.new)
35 --section => new sorted MAINTAINERS file to write to (default: SECTION.new)
36 --order => Use the preferred section content output ordering (default: 0)
51 K: Keyword - patch content regex
[all …]
/linux/sound/soc/mediatek/common/
H A Dmtk-dai-adda-common.c1 // SPDX-License-Identifier: GPL-2.0
13 #include "mtk-base-afe.h"
14 #include "mtk-dai-adda-common.h"
19 case 8000: in mtk_adda_dl_rate_transform()
21 case 11025: in mtk_adda_dl_rate_transform()
23 case 12000: in mtk_adda_dl_rate_transform()
25 case 16000: in mtk_adda_dl_rate_transform()
27 case 22050: in mtk_adda_dl_rate_transform()
29 case 24000: in mtk_adda_dl_rate_transform()
31 case 32000: in mtk_adda_dl_rate_transform()
[all …]
/linux/drivers/pcmcia/
H A Do2micro.h5 * Version 1.1 (the "License"); you may not use this file except in
20 * case the provisions of the GPL are applicable instead of the
21 * above. If you wish to allow the use of your version of this file
22 * only under the terms of the GPL and not to allow others to use
26 * provisions above, a recipient may use your version of this file
121 if (PCI_FUNC(socket->dev->devfn) == 0) { in o2micro_override()
124 dev_dbg(&socket->dev->dev, "O2: 0x94/0xD4: %02x/%02x\n", a, b); in o2micro_override()
126 switch (socket->dev->device) { in o2micro_override()
132 case PCI_DEVICE_ID_O2_6729: in o2micro_override()
133 case PCI_DEVICE_ID_O2_6730: in o2micro_override()
[all …]
H A Dti113x.h5 * Version 1.1 (the "License"); you may not use this file except in
20 * case the provisions of the GPL are applicable instead of the
21 * above. If you wish to allow the use of your version of this file
22 * only under the terms of the GPL and not to allow others to use
26 * provisions above, a recipient may use your version of this file
34 /* Register definitions for TI 113X PCI-to-CardBus bridges */
166 #define ti_sysctl(socket) ((socket)->private[0])
167 #define ti_cardctl(socket) ((socket)->private[1])
168 #define ti_devctl(socket) ((socket)->private[2])
169 #define ti_diag(socket) ((socket)->private[3])
[all …]
/linux/drivers/net/wireless/ath/ath12k/
H A Dmhi.c1 // SPDX-License-Identifier: BSD-3-Clause-Clear
3 * Copyright (c) 2020-2021 The Linux Foundation. All rights reserved.
68 struct ath12k_base *ab = ab_pci->ab; in ath12k_mhi_get_msi()
85 return -ENOMEM; in ath12k_mhi_get_msi()
89 if (test_bit(ATH12K_PCI_FLAG_MULTI_MSI_VECTORS, &ab_pci->flags)) in ath12k_mhi_get_msi()
90 irq[i] = ath12k_pci_get_msi_irq(ab->dev, in ath12k_mhi_get_msi()
93 irq[i] = ath12k_pci_get_msi_irq(ab->dev, in ath12k_mhi_get_msi()
97 ab_pci->mhi_ctrl->irq = irq; in ath12k_mhi_get_msi()
98 ab_pci->mhi_ctrl->nr_irqs = num_vectors; in ath12k_mhi_get_msi()
115 case MHI_CB_IDLE: in ath12k_mhi_op_callback_to_str()
[all …]
/linux/drivers/gpu/drm/
H A Ddrm_mipi_dsi.c4 * Copyright (C) 2012-2013, Samsung Electronics, Co., Ltd.
10 * without limitation the rights to use, copy, modify, merge, publish,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
25 * USE OR OTHER DEALINGS IN THE SOFTWARE.
40 #include <linux/media-bus-format.h>
63 if (!strcmp(dsi->name, drv->name)) in mipi_dsi_device_match()
75 if (err != -ENODEV) in mipi_dsi_uevent()
79 dsi->name); in mipi_dsi_uevent()
96 .name = "mipi-dsi",
104 * of_find_mipi_dsi_device_by_node() - find the MIPI DSI device matching a
[all …]
/linux/arch/mips/kernel/
H A Dtime.c1 // SPDX-License-Identifier: GPL-2.0-or-later
24 #include <asm/cpu-features.h>
25 #include <asm/cpu-type.h>
40 struct cpumask *cpus = freq->policy->cpus; in cpufreq_callback()
45 * Skip lpj numbers adjustment if the CPU-freq transition is safe for in cpufreq_callback()
48 if (freq->flags & CPUFREQ_CONST_LOOPS) in cpufreq_callback()
54 glb_lpj_ref_freq = freq->old; in cpufreq_callback()
59 per_cpu(pcp_lpj_ref_freq, cpu) = freq->old; in cpufreq_callback()
64 * Adjust global lpj variable and per-CPU udelay_val number in in cpufreq_callback()
67 if ((val == CPUFREQ_PRECHANGE && freq->old < freq->new) || in cpufreq_callback()
[all …]
/linux/tools/testing/selftests/proc/
H A Dproc-subset-pid.c4 * Permission to use, copy, modify, and distribute this software for any
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 * Test that "mount -t proc -o subset=pid" hides everything but pids,
18 * /proc/self and /proc/thread-self.
42 if (unshare(CLONE_NEWNS) == -1) { in make_private_proc()
48 if (mount(NULL, "/", NULL, MS_PRIVATE|MS_REC, NULL) == -1) { in make_private_proc()
51 if (mount(NULL, "/proc", "proc", 0, "subset=pid") == -1) { in make_private_proc()
60 case '0':case '1':case '2':case '3':case '4': in string_is_pid()
61 case '5':case '6':case '7':case '8':case '9': in string_is_pid()
[all …]
/linux/drivers/net/wireless/ath/ath9k/
H A Dmci.h2 * Copyright (c) 2010-2011 Atheros Communications Inc.
4 * Permission to use, copy, modify, and/or distribute this software for any
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
57 switch (_info->type) { \
58 case MCI_GPM_COEX_PROFILE_RFCOMM:\
59 _mci->num_other_acl++; \
61 case MCI_GPM_COEX_PROFILE_A2DP: \
62 _mci->num_a2dp++; \
63 if (!_info->edr) \
[all …]
/linux/drivers/gpu/drm/amd/display/dc/gpio/dce110/
H A Dhw_translate_dce110.c2 * Copyright 2013-15 Advanced Micro Devices, Inc.
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27 * Pre-requisites: headers required by header of this unit
47 case mmDC_GPIO_GENERIC_A: in offset_to_id()
50 case DC_GPIO_GENERIC_A__DC_GPIO_GENERICA_A_MASK: in offset_to_id()
53 case DC_GPIO_GENERIC_A__DC_GPIO_GENERICB_A_MASK: in offset_to_id()
56 case DC_GPIO_GENERIC_A__DC_GPIO_GENERICC_A_MASK: in offset_to_id()
59 case DC_GPIO_GENERIC_A__DC_GPIO_GENERICD_A_MASK: in offset_to_id()
62 case DC_GPIO_GENERIC_A__DC_GPIO_GENERICE_A_MASK: in offset_to_id()
[all …]
/linux/sound/core/seq/
H A Dseq_compat.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * 32bit -> 64bit ioctl wrapper for sequencer API
25 u32 kernel; /* reserved for kernel use (must be NULL) */
28 char reserved[59]; /* for future use */
39 return -ENOMEM; in snd_seq_call_port_info_ioctl()
42 get_user(data->flags, &data32->flags) || in snd_seq_call_port_info_ioctl()
43 get_user(data->time_queue, &data32->time_queue)) in snd_seq_call_port_info_ioctl()
44 return -EFAULT; in snd_seq_call_port_info_ioctl()
45 data->kernel = NULL; in snd_seq_call_port_info_ioctl()
47 err = snd_seq_kernel_client_ctl(client->number, cmd, data); in snd_seq_call_port_info_ioctl()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/gpio/dcn32/
H A Dhw_translate_dcn32.c7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27 * Pre-requisites: headers required by header of this unit
71 case REG(DC_GPIO_GENERIC_A): in offset_to_id()
74 case DC_GPIO_GENERIC_A__DC_GPIO_GENERICA_A_MASK: in offset_to_id()
77 case DC_GPIO_GENERIC_A__DC_GPIO_GENERICB_A_MASK: in offset_to_id()
80 case DC_GPIO_GENERIC_A__DC_GPIO_GENERICC_A_MASK: in offset_to_id()
83 case DC_GPIO_GENERIC_A__DC_GPIO_GENERICD_A_MASK: in offset_to_id()
86 case DC_GPIO_GENERIC_A__DC_GPIO_GENERICE_A_MASK: in offset_to_id()
89 case DC_GPIO_GENERIC_A__DC_GPIO_GENERICF_A_MASK: in offset_to_id()
[all …]

12345678910>>...44