/linux/drivers/usb/typec/mux/ |
H A D | nb7vpq904m.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * OnSemi NB7VPQ904M Type-C driver 14 #include <drm/bridge/aux-bridge.h> 74 struct mutex lock; /* protect non-concurrent retimer & switch */ 97 regmap_update_bits(nb7->regmap, EQ_SETTING_REG(channel), in nb7vpq904m_set_channel() 99 regmap_update_bits(nb7->regmap, OUTPUT_COMPRESSION_AND_POL_REG(channel), in nb7vpq904m_set_channel() 101 regmap_update_bits(nb7->regmap, FLAT_GAIN_REG(channel), in nb7vpq904m_set_channel() 103 regmap_update_bits(nb7->regmap, LOSS_MATCH_REG(channel), in nb7vpq904m_set_channel() 109 bool reverse = (nb7->orientation == TYPEC_ORIENTATION_REVERSE); in nb7vpq904m_set() local 111 switch (nb7->mode) { in nb7vpq904m_set() [all …]
|
H A D | fsa4480.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2021-2022 Linaro Ltd. 4 * Copyright (C) 2018-2020 The Linux Foundation 74 /* Accesses only done under fsa4480->lock */ 80 bool reverse = (fsa->orientation == TYPEC_ORIENTATION_REVERSE); in fsa4480_set() local 84 if (fsa->swap_sbu_lanes) in fsa4480_set() 85 reverse = !reverse; in fsa4480_set() 88 if (fsa->mode < TYPEC_STATE_MODAL || in fsa4480_set() 89 (!fsa->svid && (fsa->mode == TYPEC_MODE_USB2 || in fsa4480_set() 90 fsa->mode == TYPEC_MODE_USB3))) { in fsa4480_set() [all …]
|
/linux/net/x25/ |
H A D | x25_facilities.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 * apr/14/05 Shaun Pereira - Allow fast select with no restriction 28 * x25_parse_facilities - Parse facilities from skb into the facilities structs 36 * -1 - Parsing error, caller should drop call and clean up 37 * 0 - Parse OK, this skb has no facilities 38 * >0 - Parse OK, returns the length of the facilities header 55 dte_facs->calling_len = 0; in x25_parse_facilities() 56 dte_facs->called_len = 0; in x25_parse_facilities() 57 memset(dte_facs->called_ae, '\0', sizeof(dte_facs->called_ae)); in x25_parse_facilities() 58 memset(dte_facs->calling_ae, '\0', sizeof(dte_facs->calling_ae)); in x25_parse_facilities() [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | vidioc-decoder-cmd.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_DECODER_CMD - VIDIOC_TRY_DECODER_CMD - Execute an decoder command 38 These ioctls control an audio/video (usually MPEG-) decoder. 55 command to the decoder, and all buffered data is discarded. Applies to both 68 .. flat-table:: struct v4l2_decoder_cmd 69 :header-rows: 0 70 :stub-columns: 0 73 * - __u32 74 - ``cmd`` 75 - [all …]
|
/linux/Documentation/devicetree/bindings/media/i2c/ |
H A D | maxim,max96717.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: MAX96717 CSI-2 to GMSL2 Serializer 11 - Julien Massot <julien.massot@collabora.com> 14 The MAX96717 serializer converts MIPI CSI-2 D-PHY formatted input 16 simultaneously transmit bidirectional control-channel data while forward 18 remotely located deserializer using industry-standard coax or STP 21 data received by the serializer. 22 The MAX96717 supports Reference Over Reverse (channel), [all …]
|
H A D | maxim,max9286.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Jacopo Mondi <jacopo+renesas@jmondi.org> 12 - Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> 13 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> 14 - Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> 17 The MAX9286 deserializer receives video data on up to 4 Gigabit Multimedia 18 Serial Links (GMSL) and outputs them on a CSI-2 D-PHY port using up to 4 data 21 In addition to video data, the GMSL links carry a bidirectional control [all …]
|
/linux/Documentation/livepatch/ |
H A D | system-state.rst | 22 - store data needed to manipulate and restore the system state 24 - define compatibility between livepatches using a change id 44 - *id* 46 - Non-zero number used to identify the affected system state. 48 - *version* 50 - Number describing the variant of the system state change that 55 - klp_get_state() 57 - Get struct klp_state associated with the given livepatch 60 - klp_get_prev_state() 62 - Get struct klp_state associated with the given feature id and [all …]
|
/linux/Documentation/devicetree/bindings/soc/fsl/cpm_qe/ |
H A D | fsl,cpm1-scc-qmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,cpm1-scc-qmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Herve Codina <herve.codina@bootlin.com> 19 - enum: 20 - fsl,mpc885-scc-qmc 21 - fsl,mpc866-scc-qmc 22 - const: fsl,cpm1-scc-qmc 26 - description: SCC (Serial communication controller) register base [all …]
|
H A D | fsl,qe-ucc-qmc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe-ucc-qmc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Herve Codina <herve.codina@bootlin.com> 19 - enum: 20 - fsl,mpc8321-ucc-qmc 21 - const: fsl,qe-ucc-qmc 25 - description: UCC (Unified communication controller) register base 26 - description: Dual port ram base [all …]
|
/linux/drivers/parport/ |
H A D | ieee1284_ops.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* IEEE-1284 operations for parport. 5 * they are used by the low-level drivers. If they have a special way 7 * the function pointers in port->ops); if not, they can just use these 31 * One-way data transfer functions. * 43 struct pardevice *dev = port->physport->cad; in parport_ieee1284_write_compat() 47 if (port->irq != PARPORT_IRQ_NONE) { in parport_ieee1284_write_compat() 52 port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA; in parport_ieee1284_write_compat() 56 unsigned long expire = jiffies + dev->timeout; in parport_ieee1284_write_compat() 112 pr_debug("%s: Timed out\n", port->name); in parport_ieee1284_write_compat() [all …]
|
/linux/fs/ |
H A D | mnt_idmapping.c | 1 // SPDX-License-Identifier: GPL-2.0 36 * Carries the invalid idmapping of a full 0-4294967295 {g,u}id range. 45 * initial_idmapping - check whether this is the initial mapping 59 * make_vfsuid - map a filesystem kuid according to an idmapping 93 if (uid == (uid_t)-1) in make_vfsuid() 95 return VFSUIDT_INIT_RAW(map_id_down(&idmap->uid_map, uid)); in make_vfsuid() 100 * make_vfsgid - map a filesystem kgid according to an idmapping 132 if (gid == (gid_t)-1) in make_vfsgid() 134 return VFSGIDT_INIT_RAW(map_id_down(&idmap->gid_map, gid)); in make_vfsgid() 139 * from_vfsuid - map a vfsuid into the filesystem idmapping [all …]
|
/linux/Documentation/core-api/irq/ |
H A D | irq-domain.rst | 9 that each one gets assigned non-overlapping allocations of Linux 24 For this reason we need a mechanism to separate controller-local 28 irq numbers, but they don't provide any support for reverse mapping of 29 the controller-local IRQ (hwirq) number into the Linux IRQ number 35 reverse mapping scheme. 39 be easily extended to support other IRQ topology data sources. 61 - irq_resolve_mapping() returns a pointer to the irq_desc structure 64 - irq_find_mapping() returns a Linux IRQ number for a given domain and 66 - irq_linear_revmap() is now identical to irq_find_mapping(), and is 68 - generic_handle_domain_irq() handles an interrupt described by a [all …]
|
/linux/drivers/media/test-drivers/vidtv/ |
H A D | vidtv_s302m.c | 1 // SPDX-License-Identifier: GPL-2.0 22 #include <linux/fixp-arith.h> 50 static const u8 reverse[256] = { variable 156 while (head->next) in vidtv_s302m_access_unit_init() 157 head = head->next; in vidtv_s302m_access_unit_init() 159 head->next = au; in vidtv_s302m_access_unit_init() 167 struct vidtv_access_unit *head = e->access_units; in vidtv_s302m_access_unit_destroy() 172 head = head->next; in vidtv_s302m_access_unit_destroy() 176 e->access_units = NULL; in vidtv_s302m_access_unit_destroy() 184 if (e->sync && e->sync->is_video_encoder) { in vidtv_s302m_alloc_au() [all …]
|
/linux/include/linux/ |
H A D | crc8.h | 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 40 * crc8_populate_lsb - fill crc table for given polynomial in regular bit order. 53 * - lsb first: poly = 10101011(1) = 0xAB 58 * crc8_populate_msb - fill crc table for given polynomial in reverse bit order. 64 * reverse bit order (msb first). Polynomials in CRC algorithms are typically 71 * - msb first: poly = (1)11010101 = 0xD5 76 * crc8() - calculate a crc8 over the given input data. 79 * @pdata: pointer to data buffer. 80 * @nbytes: number of bytes in data buffer. 88 * discontiguous blocks of data. When generating the CRC the [all …]
|
H A D | interconnect-provider.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 18 * struct icc_node_data - icc node data 29 * struct icc_onecell_data - driver data for onecell interconnect providers 40 void *data); 43 * struct icc_provider - interconnect provider (controller) entity that might 53 * @xlate: provider-specific callback for mapping nodes from phandle arguments 54 * @xlate_extended: vendor-specific callback for mapping node data from phandle arguments 57 * @inter_set: whether inter-provider pairs will be configured with @set 58 * @data: pointer to private data 68 struct icc_node* (*xlate)(const struct of_phandle_args *spec, void *data); [all …]
|
/linux/kernel/ |
H A D | user_namespace.c | 1 // SPDX-License-Identifier: GPL-2.0-only 14 #include <linux/key-type.h> 15 #include <keys/user-type.h> 48 cred->securebits = SECUREBITS_DEFAULT; in set_cred_user_ns() 49 cred->cap_inheritable = CAP_EMPTY_SET; in set_cred_user_ns() 50 cred->cap_permitted = CAP_FULL_SET; in set_cred_user_ns() 51 cred->cap_effective = CAP_FULL_SET; in set_cred_user_ns() 52 cred->cap_ambient = CAP_EMPTY_SET; in set_cred_user_ns() 53 cred->cap_bset = CAP_FULL_SET; in set_cred_user_ns() 55 key_put(cred->request_key_auth); in set_cred_user_ns() [all …]
|
/linux/Documentation/driver-api/usb/ |
H A D | anchors.rst | 11 for them. The anchor is a data structure takes care of 20 initialise the data structure. 42 -------------------------------- 45 are called in the reverse temporal order they were submitted. 46 This way no data can be reordered. 49 ---------------------------------- 53 are processed in the reverse temporal order they were submitted. 60 ----------------------------------- 65 --------------------------------------- 72 -------------------------- [all …]
|
/linux/drivers/misc/altera-stapl/ |
H A D | altera.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (C) Altera Corporation 1998-2001 19 #include "altera-exprt.h" 20 #include "altera-jtag.h" 123 *status = -EOVERFLOW; in altera_check_stack() 138 static void altera_export_bool_array(char *key, u8 *data, s32 count) in altera_export_bool_array() argument 147 lines = (count + (HEX_LINE_BITS - 1)) / HEX_LINE_BITS; in altera_export_bool_array() 150 if (line < (lines - 1)) { in altera_export_bool_array() 153 offset = count - ((line + 1) * HEX_LINE_BITS); in altera_export_bool_array() 156 count - ((lines - 1) * HEX_LINE_BITS); in altera_export_bool_array() [all …]
|
/linux/Documentation/arch/arm/nwfpe/ |
H A D | netwinder-fpe.rst | 14 {P|M|Z} = {round to +infinity,round to -infinity,round to zero}, 19 Floating Point Coprocessor Data Transfer Instructions (CPDT) 20 ------------------------------------------------------------ 22 LDF/STF - load and store floating 30 LFM/SFM - load and store multiple floating 47 ---------------------------------------------------------------- 75 Floating Point Coprocessor Data Instructions (CPDT) 76 --------------------------------------------------- 80 ADF{cond}<S|D|E>{P,M,Z} Fd, Fn, <Fm,#value> - add 81 SUF{cond}<S|D|E>{P,M,Z} Fd, Fn, <Fm,#value> - subtract [all …]
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_rmap_btree.c | 1 // SPDX-License-Identifier: GPL-2.0 31 * Reverse map btree. 33 * This is a per-ag tree used to track the owner(s) of a given extent. With 35 * from classic XFS. Owner records for data extents are inserted when the 51 * reverse lookups will be to find the owner(s) of a particular block, or to 52 * try to recover tree and file data from corrupt primary metadata. 59 return xfs_rmapbt_init_cursor(cur->bc_mp, cur->bc_tp, in xfs_rmapbt_dup_cursor() 60 cur->bc_ag.agbp, to_perag(cur->bc_group)); in xfs_rmapbt_dup_cursor() 69 struct xfs_buf *agbp = cur->bc_ag.agbp; in xfs_rmapbt_set_root() 70 struct xfs_agf *agf = agbp->b_addr; in xfs_rmapbt_set_root() [all …]
|
H A D | xfs_rtrmap_btree.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2018-2024 Oracle. All Rights Reserved. 37 * Realtime Reverse Map btree. 50 return xfs_rtrmapbt_init_cursor(cur->bc_tp, to_rtg(cur->bc_group)); in xfs_rtrmapbt_dup_cursor() 58 if (level == cur->bc_nlevels - 1) { in xfs_rtrmapbt_get_minrecs() 61 return xfs_rtrmapbt_maxrecs(cur->bc_mp, ifp->if_broot_bytes, in xfs_rtrmapbt_get_minrecs() 65 return cur->bc_mp->m_rtrmap_mnr[level != 0]; in xfs_rtrmapbt_get_minrecs() 73 if (level == cur->bc_nlevels - 1) { in xfs_rtrmapbt_get_maxrecs() 76 return xfs_rtrmapbt_maxrecs(cur->bc_mp, ifp->if_broot_bytes, in xfs_rtrmapbt_get_maxrecs() 80 return cur->bc_mp->m_rtrmap_mxr[level != 0]; in xfs_rtrmapbt_get_maxrecs() [all …]
|
/linux/fs/xfs/scrub/ |
H A D | rtrmap_repair.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Copyright (c) 2020-2024 Oracle. All Rights Reserved. 50 * Realtime Reverse Mapping Btree Repair 53 * This isn't quite as difficult as repairing the rmap btree on the data 54 * device, since we only store the data fork extents of realtime files on the 59 * Collecting entries for the new realtime rmap btree is easy -- all we have 60 * to do is generate rtrmap entries from the data fork mappings of all realtime 61 * files in the filesystem. We then scan the rmap btrees of the data device 64 * To rebuild the realtime rmap btree, we bulk-load the collected mappings into 93 /* in-memory btree cursor for the ->get_blocks walk */ [all …]
|
/linux/arch/riscv/lib/ |
H A D | memmove.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 12 * a0 - dest 15 * a0 - Inclusive first byte of dest 16 * a1 - Inclusive first byte of src 17 * a2 - Length of copy n 22 * Note: This currently only works on little-endian. 23 * To port to big-endian, reverse the direction of shifts 33 * Forward Copy: a1 - Index counter of src 34 * Reverse Copy: a4 - Index counter of src 35 * Forward Copy: t3 - Index counter of dest [all …]
|
/linux/lib/ |
H A D | oid_registry.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 22 * look_up_OID - Find an OID registration for the specified data 23 * @data: Binary representation of the OID 26 enum OID look_up_OID(const void *data, size_t datasize) in look_up_OID() argument 28 const unsigned char *octets = data; in look_up_OID() 34 /* Hash the OID data */ in look_up_OID() 35 hash = datasize - 1; in look_up_OID() 44 * order of reverse value. in look_up_OID() 62 len = oid_index[oid + 1] - oid_index[oid]; in look_up_OID() 73 * OID, so do the comparison in reverse. in look_up_OID() [all …]
|
H A D | closure.c | 1 // SPDX-License-Identifier: GPL-2.0 37 cl->closure_get_happened = false; in closure_put_after_sub() 39 if (cl->fn && !(flags & CLOSURE_DESTRUCTOR)) { in closure_put_after_sub() 40 atomic_set(&cl->remaining, in closure_put_after_sub() 44 struct closure *parent = cl->parent; in closure_put_after_sub() 45 closure_fn *destructor = cl->fn; in closure_put_after_sub() 50 destructor(&cl->work); in closure_put_after_sub() 61 closure_put_after_sub(cl, atomic_sub_return_release(v, &cl->remaining)); in closure_sub() 66 * closure_put - decrement a closure's refcount 70 closure_put_after_sub(cl, atomic_dec_return_release(&cl->remaining)); in closure_put() [all …]
|