Home
last modified time | relevance | path

Searched +full:conf +full:- +full:pd (Results 1 – 25 of 39) sorted by relevance

12

/kernel/linux/linux-5.10/sound/usb/
Dstream.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 #include <linux/usb/audio-v2.h>
11 #include <linux/usb/audio-v3.h>
33 list_del(&fp->list); /* unlink for avoiding double-free */ in audioformat_free()
34 kfree(fp->rate_table); in audioformat_free()
35 kfree(fp->chmap); in audioformat_free()
46 if (!subs->num_formats) in free_substream()
48 list_for_each_entry_safe(fp, n, &subs->fmt_list, list) in free_substream()
50 kfree(subs->rate_list.list); in free_substream()
51 kfree(subs->str_pd); in free_substream()
[all …]
/kernel/linux/linux-6.6/include/linux/usb/
Dtypec_altmode.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 * struct typec_altmode - USB Type-C alternate mode device
19 * @vdo: VDO returned by Discover Modes USB PD command
40 dev_set_drvdata(&altmode->dev, data); in typec_altmode_set_drvdata()
45 return dev_get_drvdata(&altmode->dev); in typec_altmode_get_drvdata()
49 * struct typec_altmode_ops - Alternate mode specific operations vector
63 int (*notify)(struct typec_altmode *altmode, unsigned long conf,
73 int typec_altmode_notify(struct typec_altmode *altmode, unsigned long conf,
79 * These are the connector states (USB, Safe and Alt Mode) defined in USB Type-C
126 * typec_altmode_get_orientation - Get cable plug orientation
[all …]
/kernel/linux/linux-5.10/include/linux/usb/
Dtypec_altmode.h1 /* SPDX-License-Identifier: GPL-2.0 */
15 * struct typec_altmode - USB Type-C alternate mode device
19 * @vdo: VDO returned by Discover Modes USB PD command
40 dev_set_drvdata(&altmode->dev, data); in typec_altmode_set_drvdata()
45 return dev_get_drvdata(&altmode->dev); in typec_altmode_get_drvdata()
49 * struct typec_altmode_ops - Alternate mode specific operations vector
63 int (*notify)(struct typec_altmode *altmode, unsigned long conf,
73 int typec_altmode_notify(struct typec_altmode *altmode, unsigned long conf,
79 * These are the connector states (USB, Safe and Alt Mode) defined in USB Type-C
126 * typec_altmode_get_orientation - Get cable plug orientation
[all …]
/kernel/linux/linux-6.6/sound/usb/
Dstream.c1 // SPDX-License-Identifier: GPL-2.0-or-later
10 #include <linux/usb/audio-v2.h>
11 #include <linux/usb/audio-v3.h>
33 list_del(&fp->list); /* unlink for avoiding double-free */ in audioformat_free()
34 kfree(fp->rate_table); in audioformat_free()
35 kfree(fp->chmap); in audioformat_free()
46 if (!subs->num_formats) in free_substream()
48 list_for_each_entry_safe(fp, n, &subs->fmt_list, list) in free_substream()
50 kfree(subs->str_pd); in free_substream()
60 free_substream(&stream->substream[0]); in snd_usb_audio_stream_free()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/cirrus/
Dpinctrl-madera-core.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016-2018 Cirrus Logic
17 #include <linux/pinctrl/pinconf-generic.h>
22 #include "../pinctrl-utils.h"
24 #include "pinctrl-madera.h"
28 * NOTE: IDs are zero-indexed for coding convenience
74 * All single-pin functions can be mapped to any GPIO, however pinmux applies
78 * Since these do not correspond to anything in the actual hardware - they are
79 * merely an adaptation to pinctrl's view of the world - we use the same name
91 /* set of pin numbers for single-pin groups, zero-indexed */
[all …]
/kernel/linux/linux-6.6/drivers/pinctrl/cirrus/
Dpinctrl-madera-core.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2016-2018 Cirrus Logic
17 #include <linux/pinctrl/pinconf-generic.h>
25 #include "../pinctrl-utils.h"
27 #include "pinctrl-madera.h"
31 * NOTE: IDs are zero-indexed for coding convenience
77 * All single-pin functions can be mapped to any GPIO, however pinmux applies
81 * Since these do not correspond to anything in the actual hardware - they are
82 * merely an adaptation to pinctrl's view of the world - we use the same name
94 /* set of pin numbers for single-pin groups, zero-indexed */
[all …]
/kernel/linux/linux-5.10/drivers/iio/dac/
Dmcp4725.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * mcp4725.c - Support for Microchip MCP4725/6
9 * driver for the Microchip I2C 12-bit digital-to-analog converter (DAC)
10 * (7-bit I2C slave address 0x60, the three LSBs can be configured in
52 outbuf[0] = (data->powerdown_mode + 1) << 4; in mcp4725_suspend()
54 data->powerdown = true; in mcp4725_suspend()
56 ret = i2c_master_send(data->client, outbuf, 2); in mcp4725_suspend()
60 return -EIO; in mcp4725_suspend()
72 outbuf[0] = (data->dac_value >> 8) & 0xf; in mcp4725_resume()
73 outbuf[1] = data->dac_value & 0xff; in mcp4725_resume()
[all …]
/kernel/linux/linux-6.6/drivers/iio/dac/
Dmcp4725.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * mcp4725.c - Support for Microchip MCP4725/6
9 * driver for the Microchip I2C 12-bit digital-to-analog converter (DAC)
10 * (7-bit I2C slave address 0x60, the three LSBs can be configured in
52 outbuf[0] = (data->powerdown_mode + 1) << 4; in mcp4725_suspend()
54 data->powerdown = true; in mcp4725_suspend()
56 ret = i2c_master_send(data->client, outbuf, 2); in mcp4725_suspend()
60 return -EIO; in mcp4725_suspend()
72 outbuf[0] = (data->dac_value >> 8) & 0xf; in mcp4725_resume()
73 outbuf[1] = data->dac_value & 0xff; in mcp4725_resume()
[all …]
/kernel/linux/linux-6.6/arch/mips/pci/
Dpci-alchemy.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2001-2003, 2007-2008 MontaVista Software Inc.
20 #include <linux/dma-map-ops.h> /* for dma_default_coherent */
22 #include <asm/mach-au1x00/au1000.h>
94 ctx->wired_entry = read_c0_wired(); in alchemy_pci_wired_entry()
95 add_wired_entry(0, 0, (unsigned long)ctx->pci_cfg_vm->addr, PM_4K); in alchemy_pci_wired_entry()
96 ctx->last_elo0 = ctx->last_elo1 = ~0; in alchemy_pci_wired_entry()
102 struct alchemy_pci_context *ctx = bus->sysdata; in config_access()
110 return -1; in config_access()
114 r = __raw_readl(ctx->regs + PCI_REG_STATCMD) & 0x0000ffff; in config_access()
[all …]
/kernel/linux/linux-5.10/arch/mips/pci/
Dpci-alchemy.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright 2001-2003, 2007-2008 MontaVista Software Inc.
21 #include <asm/dma-coherence.h>
22 #include <asm/mach-au1x00/au1000.h>
94 ctx->wired_entry = read_c0_wired(); in alchemy_pci_wired_entry()
95 add_wired_entry(0, 0, (unsigned long)ctx->pci_cfg_vm->addr, PM_4K); in alchemy_pci_wired_entry()
96 ctx->last_elo0 = ctx->last_elo1 = ~0; in alchemy_pci_wired_entry()
102 struct alchemy_pci_context *ctx = bus->sysdata; in config_access()
110 return -1; in config_access()
114 r = __raw_readl(ctx->regs + PCI_REG_STATCMD) & 0x0000ffff; in config_access()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/pinctrl/
Dmediatek,mt7981-pinctrl.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/pinctrl/mediatek,mt7981-pinctrl.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Daniel Golle <daniel@makrotopia.org>
18 - mediatek,mt7981-pinctrl
24 reg-names:
26 - const: gpio
27 - const: iocfg_rt
28 - const: iocfg_rm
[all …]
/kernel/linux/linux-6.6/drivers/infiniband/hw/ocrdma/
Docrdma_hw.c3 * Copyright (C) 2012-2015 Emulex. All rights reserved.
16 * - Redistributions of source code must retain the above copyright notice,
19 * - Redistributions in binary form must reproduce the above copyright
36 * linux-drivers@emulex.com
46 #include <linux/dma-mapping.h>
113 return eq->q.va + (eq->q.tail * sizeof(struct ocrdma_eqe)); in ocrdma_get_eqe()
118 eq->q.tail = (eq->q.tail + 1) & (OCRDMA_EQ_LEN - 1); in ocrdma_eq_inc_tail()
124 (dev->mq.cq.va + (dev->mq.cq.tail * sizeof(struct ocrdma_mcqe))); in ocrdma_get_mcqe()
126 if (!(le32_to_cpu(cqe->valid_ae_cmpl_cons) & OCRDMA_MCQE_VALID_MASK)) in ocrdma_get_mcqe()
133 dev->mq.cq.tail = (dev->mq.cq.tail + 1) & (OCRDMA_MQ_CQ_LEN - 1); in ocrdma_mcq_inc_tail()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/hw/ocrdma/
Docrdma_hw.c3 * Copyright (C) 2012-2015 Emulex. All rights reserved.
16 * - Redistributions of source code must retain the above copyright notice,
19 * - Redistributions in binary form must reproduce the above copyright
36 * linux-drivers@emulex.com
46 #include <linux/dma-mapping.h>
113 return eq->q.va + (eq->q.tail * sizeof(struct ocrdma_eqe)); in ocrdma_get_eqe()
118 eq->q.tail = (eq->q.tail + 1) & (OCRDMA_EQ_LEN - 1); in ocrdma_eq_inc_tail()
124 (dev->mq.cq.va + (dev->mq.cq.tail * sizeof(struct ocrdma_mcqe))); in ocrdma_get_mcqe()
126 if (!(le32_to_cpu(cqe->valid_ae_cmpl_cons) & OCRDMA_MCQE_VALID_MASK)) in ocrdma_get_mcqe()
133 dev->mq.cq.tail = (dev->mq.cq.tail + 1) & (OCRDMA_MQ_CQ_LEN - 1); in ocrdma_mcq_inc_tail()
[all …]
/kernel/linux/linux-5.10/drivers/block/paride/
Dpf.c2 pf.c (c) 1997-8 Grant R. Guenther <grant@torque.net>
5 This is the high-level driver for parallel port ATAPI disk
17 drive1 1-7 integers as follows:
37 <mod> this can be -1 to choose the best mode, or one
39 (-1 if not given)
43 choose the slave, -1 (the default) to choose the
47 One example is the ATAPI PD/CD drive from
49 CD drive on LUN 0 and a PD drive on LUN 1.
53 LUN. (default -1)
56 go more slowly. -1 sets a default value that
[all …]
/kernel/linux/linux-5.10/drivers/platform/chrome/
Dcros_ec_typec.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include <linux/usb/pd.h>
24 #define DRV_NAME "cros-ec-typec"
39 /* Port partner PD identity info. */
53 /* Platform-specific data for the Chrome OS EC Type C controller. */
73 ret = fwnode_property_read_string(fwnode, "power-role", &buf); in cros_typec_parse_port_props()
75 dev_err(dev, "power-role not found: %d\n", ret); in cros_typec_parse_port_props()
82 cap->type = ret; in cros_typec_parse_port_props()
84 ret = fwnode_property_read_string(fwnode, "data-role", &buf); in cros_typec_parse_port_props()
86 dev_err(dev, "data-role not found: %d\n", ret); in cros_typec_parse_port_props()
[all …]
/kernel/linux/linux-5.10/drivers/pinctrl/sirf/
Dpinctrl-atlas7.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) 2011 - 2014 Cambridge Silicon Radio Limited, a CSR plc group
26 #include <linux/pinctrl/pinconf-generic.h>
32 /* The Bank contains input-disable regisgers */
56 /* Raw value of Driver-Strength Bits */
63 /* Drive-Strength Intermediate Values */
64 #define DS_NULL -1
72 /* The Drive-Strength of 4WE Pad DS1 0 CO */
78 /* The Drive-Strength of 16st Pad DS3 2 1 0 CO */
96 /* The Drive-Strength of M31 Pad DS0 CO */
[all …]
/kernel/linux/linux-6.6/drivers/platform/chrome/
Dcros_ec_typec.c1 // SPDX-License-Identifier: GPL-2.0-only
22 #define DRV_NAME "cros-ec-typec"
35 ret = fwnode_property_read_string(fwnode, "power-role", &buf); in cros_typec_parse_port_props()
37 dev_err(dev, "power-role not found: %d\n", ret); in cros_typec_parse_port_props()
44 cap->type = ret; in cros_typec_parse_port_props()
46 ret = fwnode_property_read_string(fwnode, "data-role", &buf); in cros_typec_parse_port_props()
48 dev_err(dev, "data-role not found: %d\n", ret); in cros_typec_parse_port_props()
55 cap->data = ret; in cros_typec_parse_port_props()
57 /* Try-power-role is optional. */ in cros_typec_parse_port_props()
58 ret = fwnode_property_read_string(fwnode, "try-power-role", &buf); in cros_typec_parse_port_props()
[all …]
/kernel/linux/linux-6.6/drivers/net/can/
Dgrcan.c1 // SPDX-License-Identifier: GPL-2.0-or-later
16 * See "Documentation/ABI/testing/sysfs-class-net-grcan" for information on the
19 * See "Documentation/admin-guide/kernel-parameters.rst" for information on the module
38 #include <linux/dma-mapping.h>
44 #define GRCAN_RESERVE_SIZE(slot1, slot2) (((slot2) - (slot1)) / 4 - 1)
47 u32 conf; /* 0x00 */ member
51 u32 smask; /* 0x18 - CanMASK */
52 u32 scode; /* 0x1c - CanCODE */
202 #define GRCAN_MSG_DATA_SHIFT(i) ((3 - (i) % 4) * 8)
264 * handling"-comment for grcan_start_xmit for more details.
[all …]
/kernel/linux/linux-5.10/fs/nfsd/
Dnfs4state.c101 * A waitqueue for all in-progress 4.0 CLOSE operations that are waiting for
128 return ses->se_flags & NFS4_SESSION_DEAD; in is_session_dead()
133 if (atomic_read(&ses->se_ref) > ref_held_by_me) in mark_session_dead_locked()
135 ses->se_flags |= NFS4_SESSION_DEAD; in mark_session_dead_locked()
141 return clp->cl_time == 0; in is_client_expired()
146 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in get_client_locked()
148 lockdep_assert_held(&nn->client_lock); in get_client_locked()
152 atomic_inc(&clp->cl_rpc_users); in get_client_locked()
160 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in renew_client_locked()
166 clp->cl_clientid.cl_boot, in renew_client_locked()
[all …]
/kernel/linux/linux-5.10/drivers/net/can/
Dgrcan.c1 // SPDX-License-Identifier: GPL-2.0-or-later
16 * See "Documentation/ABI/testing/sysfs-class-net-grcan" for information on the
19 * See "Documentation/admin-guide/kernel-parameters.rst" for information on the module
36 #include <linux/dma-mapping.h>
42 #define GRCAN_RESERVE_SIZE(slot1, slot2) (((slot2) - (slot1)) / 4 - 1)
45 u32 conf; /* 0x00 */ member
49 u32 smask; /* 0x18 - CanMASK */
50 u32 scode; /* 0x1c - CanCODE */
200 #define GRCAN_MSG_DATA_SHIFT(i) ((3 - (i) % 4) * 8)
263 * handling"-comment for grcan_start_xmit for more details.
[all …]
/kernel/linux/linux-6.6/fs/nfsd/
Dnfs4state.c106 * A waitqueue for all in-progress 4.0 CLOSE operations that are waiting for
139 rc = -ENOMEM; in nfsd4_create_laundry_wq()
150 return ses->se_flags & NFS4_SESSION_DEAD; in is_session_dead()
155 if (atomic_read(&ses->se_ref) > ref_held_by_me) in mark_session_dead_locked()
157 ses->se_flags |= NFS4_SESSION_DEAD; in mark_session_dead_locked()
163 return clp->cl_time == 0; in is_client_expired()
169 if (clp->cl_state != NFSD4_ACTIVE) in nfsd4_dec_courtesy_client_count()
170 atomic_add_unless(&nn->nfsd_courtesy_clients, -1, 0); in nfsd4_dec_courtesy_client_count()
175 struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); in get_client_locked()
177 lockdep_assert_held(&nn->client_lock); in get_client_locked()
[all …]
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dcache.c6 * Copyright (C) 1999-2006 Helge Deller <deller@gmx.de> (07-13-1999)
99 test_bit(PG_dcache_dirty, &page->flags)) { in __update_cache()
101 clear_bit(PG_dcache_dirty, &page->flags); in __update_cache()
111 seq_printf(m, "I-cache\t\t: %ld KB\n", in show_cache_info()
114 snprintf(buf, 32, "%lu-way associative", cache_info.dc_loop); in show_cache_info()
115 seq_printf(m, "D-cache\t\t: %ld KB (%s%s, %s)\n", in show_cache_info()
123 cache_info.dt_conf.tc_sh ? " - shared with ITLB":"" in show_cache_info()
127 /* BTLB - Block TLB */ in show_cache_info()
133 "BTLB fix-entr.\t: %d instruction, %d data (%d combined)\n" in show_cache_info()
134 "BTLB var-entr.\t: %d instruction, %d data (%d combined)\n", in show_cache_info()
[all …]
/kernel/linux/linux-6.6/arch/parisc/kernel/
Dcache.c6 * Copyright (C) 1999-2006 Helge Deller <deller@gmx.de> (07-13-1999)
55 void flush_data_cache_local(void *); /* flushes local data-cache only */
56 void flush_instruction_cache_local(void); /* flushes local code-cache only */
125 test_bit(PG_dcache_dirty, &folio->flags)) { in __update_cache()
126 while (nr--) in __update_cache()
128 clear_bit(PG_dcache_dirty, &folio->flags); in __update_cache()
130 while (nr--) in __update_cache()
139 seq_printf(m, "I-cache\t\t: %ld KB\n", in show_cache_info()
142 snprintf(buf, 32, "%lu-way associative", cache_info.dc_loop); in show_cache_info()
143 seq_printf(m, "D-cache\t\t: %ld KB (%s%s, %s, alias=%d)\n", in show_cache_info()
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath11k/
Dmac.c1 // SPDX-License-Identifier: BSD-3-Clause-Clear
3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
4 * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
163 /* new addition in IEEE Std 802.11ax-2021 */
243 #define ath11k_a_rates_size (ARRAY_SIZE(ath11k_legacy_rates) - 4)
407 return -EINVAL; in ath11k_mac_hw_ratecode_to_legacy_rate()
428 for (i = 0; i < sband->n_bitrates; i++) in ath11k_mac_bitrate_to_idx()
429 if (sband->bitrates[i].bitrate == bitrate) in ath11k_mac_bitrate_to_idx()
440 for (nss = IEEE80211_HT_MCS_MASK_LEN - 1; nss >= 0; nss--) in ath11k_mac_max_ht_nss()
452 for (nss = NL80211_VHT_NSS_MAX - 1; nss >= 0; nss--) in ath11k_mac_max_vht_nss()
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/realtek/rtl8xxxu/
Drtl8xxxu_core.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2014 - 2017 Jes Sorensen <Jes.Sorensen@gmail.com>
8 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
40 static int rtl8xxxu_dma_agg_timeout = -1;
41 static int rtl8xxxu_dma_agg_pages = -1;
68 MODULE_PARM_DESC(dma_agg_timeout, "Set DMA aggregation timeout (range 1-127)");
70 MODULE_PARM_DESC(dma_agg_pages, "Set DMA aggregation pages (range 1-127, 0 to disable)");
656 struct usb_device *udev = priv->udev; in rtl8xxxu_read8()
660 if (priv->rtl_chip == RTL8710B && addr <= 0xff) in rtl8xxxu_read8()
663 mutex_lock(&priv->usb_buf_mutex); in rtl8xxxu_read8()
[all …]

12