/linux-6.12.1/drivers/clocksource/ |
D | samsung_pwm_timer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * samsung - Common hr-timer support (s3c and s5p) 44 * Each channel occupies 4 bits in TCON register, but there is a gap of 4 45 * bits (one channel) after channel 0, so channels have different numbering 46 * when accessing TCON register. 48 * In addition, the location of autoreload bit for channel 4 (TCON channel 5) 81 static void samsung_timer_set_prescale(unsigned int channel, u16 prescale) in samsung_timer_set_prescale() argument 87 if (channel >= 2) in samsung_timer_set_prescale() 94 reg |= (prescale - 1) << shift; in samsung_timer_set_prescale() 100 static void samsung_timer_set_divisor(unsigned int channel, u8 divisor) in samsung_timer_set_divisor() argument [all …]
|
/linux-6.12.1/drivers/gpu/drm/sun4i/ |
D | sun4i_tcon.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Maxime Ripard <maxime.ripard@free-electrons.com> 11 #include <linux/media-bus-format.h> 48 drm_connector_list_iter_begin(encoder->dev, &iter); in sun4i_tcon_get_connector() 50 if (connector->encoder == encoder) { in sun4i_tcon_get_connector() 66 return -EINVAL; in sun4i_tcon_get_pixel_depth() 68 info = &connector->display_info; in sun4i_tcon_get_pixel_depth() 69 if (info->num_bus_formats != 1) in sun4i_tcon_get_pixel_depth() 70 return -EINVAL; in sun4i_tcon_get_pixel_depth() 72 switch (info->bus_formats[0]) { in sun4i_tcon_get_pixel_depth() [all …]
|
D | sun8i_tcon_top.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 #include <dt-bindings/clock/sun8i-tcon-top.h> 28 int sun8i_tcon_top_set_hdmi_src(struct device *dev, int tcon) in sun8i_tcon_top_set_hdmi_src() argument 34 if (!sun8i_tcon_top_node_is_tcon_top(dev->of_node)) { in sun8i_tcon_top_set_hdmi_src() 35 dev_err(dev, "Device is not TCON TOP!\n"); in sun8i_tcon_top_set_hdmi_src() 36 return -EINVAL; in sun8i_tcon_top_set_hdmi_src() 39 if (tcon < 2 || tcon > 3) { in sun8i_tcon_top_set_hdmi_src() 40 dev_err(dev, "TCON index must be 2 or 3!\n"); in sun8i_tcon_top_set_hdmi_src() 41 return -EINVAL; in sun8i_tcon_top_set_hdmi_src() 44 spin_lock_irqsave(&tcon_top->reg_lock, flags); in sun8i_tcon_top_set_hdmi_src() [all …]
|
D | sun4i_rgb.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Maxime Ripard <maxime.ripard@free-electrons.com> 27 struct sun4i_tcon *tcon; member 51 return drm_panel_get_modes(rgb->panel, connector); in sun4i_rgb_get_modes() 57 * good default tolerance for the EDID-based modes. Define it to 5 per 66 struct sun4i_tcon *tcon = rgb->tcon; in sun4i_rgb_mode_valid() local 67 u32 hsync = mode->hsync_end - mode->hsync_start; in sun4i_rgb_mode_valid() 68 u32 vsync = mode->vsync_end - mode->vsync_start; in sun4i_rgb_mode_valid() 69 unsigned long long rate = mode->clock * 1000; in sun4i_rgb_mode_valid() 81 if ((mode->hdisplay < 1) || (mode->htotal < 1)) in sun4i_rgb_mode_valid() [all …]
|
D | sun4i_tcon.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 6 * Boris Brezillon <boris.brezillon@free-electrons.com> 7 * Maxime Ripard <maxime.ripard@free-electrons.com> 27 #define SUN4I_TCON_GINT0_VBLANK_ENABLE(pipe) BIT(31 - (pipe)) 30 #define SUN4I_TCON_GINT0_VBLANK_INT(pipe) BIT(15 - (pipe)) 67 #define SUN4I_TCON0_BASIC0_X(width) ((((width) - 1) & 0xfff) << 16) 68 #define SUN4I_TCON0_BASIC0_Y(height) (((height) - 1) & 0xfff) 71 #define SUN4I_TCON0_BASIC1_H_TOTAL(total) ((((total) - 1) & 0x1fff) << 16) 72 #define SUN4I_TCON0_BASIC1_H_BACKPORCH(bp) (((bp) - 1) & 0xfff) 76 #define SUN4I_TCON0_BASIC2_V_BACKPORCH(bp) (((bp) - 1) & 0xfff) [all …]
|
D | sun4i_lvds.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Maxime Ripard <maxime.ripard@free-electrons.com> 47 return drm_panel_get_modes(lvds->panel, connector); in sun4i_lvds_get_modes() 74 if (lvds->panel) { in sun4i_lvds_encoder_enable() 75 drm_panel_prepare(lvds->panel); in sun4i_lvds_encoder_enable() 76 drm_panel_enable(lvds->panel); in sun4i_lvds_encoder_enable() 86 if (lvds->panel) { in sun4i_lvds_encoder_disable() 87 drm_panel_disable(lvds->panel); in sun4i_lvds_encoder_disable() 88 drm_panel_unprepare(lvds->panel); in sun4i_lvds_encoder_disable() 97 int sun4i_lvds_init(struct drm_device *drm, struct sun4i_tcon *tcon) in sun4i_lvds_init() argument [all …]
|
D | sun4i_drv.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Maxime Ripard <maxime.ripard@free-electrons.com> 10 #include <linux/dma-mapping.h> 38 args->pitch = ALIGN(DIV_ROUND_UP(args->width * args->bpp, 8), 2); in drm_sun4i_gem_dumb_create() 50 .name = "sun4i-drm", 72 ret = -ENOMEM; in sun4i_drv_bind() 76 drm->dev_private = drv; in sun4i_drv_bind() 77 INIT_LIST_HEAD(&drv->frontend_list); in sun4i_drv_bind() 78 INIT_LIST_HEAD(&drv->engine_list); in sun4i_drv_bind() 79 INIT_LIST_HEAD(&drv->tcon_list); in sun4i_drv_bind() [all …]
|
/linux-6.12.1/drivers/pwm/ |
D | pwm-samsung.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Ben Dooks <ben@simtec.co.uk>, <ben-linux@fluff.org> 43 * Each channel occupies 4 bits in TCON register, but there is a gap of 4 44 * bits (one channel) after channel 0, so channels have different numbering 45 * when accessing TCON register. See to_tcon_channel() function. 47 * In addition, the location of autoreload bit for channel 4 (TCON channel 5) 59 * struct samsung_pwm_channel - private data of PWM channel 71 * struct samsung_pwm_chip - private data of PWM chip 73 * @inverter_mask: inverter status for all channels - one bit per channel 74 * @disabled_mask: disabled status for all channels - one bit per channel [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/display/ |
D | allwinner,sun4i-a10-tcon.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/display/allwinner,sun4i-a10-tcon.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner A10 Timings Controller (TCON) 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 The TCON acts as a timing controller for RGB, LVDS and TV 18 "#clock-cells": 23 - const: allwinner,sun4i-a10-tcon [all …]
|
D | renesas,du.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Renesas R-Car Display Unit (DU) 10 - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> 13 These DT bindings describe the Display Unit embedded in the Renesas R-Car 14 Gen1, R-Car Gen2, R-Car Gen3, RZ/G1 and RZ/G2 SoCs. 19 - renesas,du-r8a7742 # for RZ/G1H compatible DU 20 - renesas,du-r8a7743 # for RZ/G1M compatible DU 21 - renesas,du-r8a7744 # for RZ/G1N compatible DU [all …]
|
/linux-6.12.1/fs/smb/client/ |
D | smb2misc.c | 1 // SPDX-License-Identifier: LGPL-2.1 24 __u64 wire_mid = le64_to_cpu(shdr->MessageId); in check_smb2_hdr() 30 if ((shdr->ProtocolId == SMB2_PROTO_NUMBER) && in check_smb2_hdr() 32 if (shdr->Flags & SMB2_FLAGS_SERVER_TO_REDIR) in check_smb2_hdr() 36 if (shdr->Command == SMB2_OPLOCK_BREAK) in check_smb2_hdr() 42 if (shdr->ProtocolId != SMB2_PROTO_NUMBER) in check_smb2_hdr() 44 le32_to_cpu(shdr->ProtocolId)); in check_smb2_hdr() 94 neg_count = le16_to_cpu(pneg_rsp->NegotiateContextCount); in get_neg_ctxt_len() 96 (pneg_rsp->DialectRevision != cpu_to_le16(SMB311_PROT_ID))) in get_neg_ctxt_len() 104 nc_offset = le32_to_cpu(pneg_rsp->NegotiateContextOffset); in get_neg_ctxt_len() [all …]
|
D | smb2pdu.c | 1 // SPDX-License-Identifier: LGPL-2.1 13 /* SMB2 PDU handling routines here - except for leftovers (eg session setup) */ 76 int smb3_encryption_required(const struct cifs_tcon *tcon) in smb3_encryption_required() argument 78 if (!tcon || !tcon->ses) in smb3_encryption_required() 80 if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in smb3_encryption_required() 81 (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA)) in smb3_encryption_required() 83 if (tcon->seal && in smb3_encryption_required() 84 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 87 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 94 const struct cifs_tcon *tcon, in smb2_hdr_assemble() argument [all …]
|
D | connect.c | 1 // SPDX-License-Identifier: LGPL-2.1 31 #include <keys/user-type.h> 71 * This should be called with server->srv_mutex held. 80 if (!server->hostname) in reconn_set_ipaddr_from_hostname() 81 return -EINVAL; in reconn_set_ipaddr_from_hostname() 84 if (server->hostname[0] == '\0') in reconn_set_ipaddr_from_hostname() 87 len = strlen(server->hostname) + 3; in reconn_set_ipaddr_from_hostname() 92 return -ENOMEM; in reconn_set_ipaddr_from_hostname() 94 scnprintf(unc, len, "\\\\%s", server->hostname); in reconn_set_ipaddr_from_hostname() 96 spin_lock(&server->srv_lock); in reconn_set_ipaddr_from_hostname() [all …]
|
D | smb2transport.c | 1 // SPDX-License-Identifier: LGPL-2.1 32 struct cifs_secmech *p = &server->secmech; in smb3_crypto_shash_allocate() 35 rc = cifs_alloc_hash("hmac(sha256)", &p->hmacsha256); in smb3_crypto_shash_allocate() 39 rc = cifs_alloc_hash("cmac(aes)", &p->aes_cmac); in smb3_crypto_shash_allocate() 45 cifs_free_hash(&p->hmacsha256); in smb3_crypto_shash_allocate() 52 struct cifs_secmech *p = &server->secmech; in smb311_crypto_shash_allocate() 55 rc = cifs_alloc_hash("hmac(sha256)", &p->hmacsha256); in smb311_crypto_shash_allocate() 59 rc = cifs_alloc_hash("cmac(aes)", &p->aes_cmac); in smb311_crypto_shash_allocate() 63 rc = cifs_alloc_hash("sha512", &p->sha512); in smb311_crypto_shash_allocate() 70 cifs_free_hash(&p->aes_cmac); in smb311_crypto_shash_allocate() [all …]
|
D | cifs_debug.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 44 smb->Command, smb->Status.CifsError, smb->Flags, in cifs_dump_detail() 45 smb->Flags2, smb->Mid, smb->Pid, smb->WordCount); in cifs_dump_detail() 46 if (!server->ops->check_message(buf, server->total_read, server)) { in cifs_dump_detail() 48 server->ops->calc_smb_size(smb)); in cifs_dump_detail() 62 spin_lock(&server->mid_lock); in cifs_dump_mids() 63 list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { in cifs_dump_mids() 65 mid_entry->mid_state, in cifs_dump_mids() 66 le16_to_cpu(mid_entry->command), in cifs_dump_mids() 67 mid_entry->pid, in cifs_dump_mids() [all …]
|
D | smb2ops.c | 1 // SPDX-License-Identifier: GPL-2.0 38 server->credits += server->echo_credits + server->oplock_credits; in change_conf() 39 if (server->credits > server->max_credits) in change_conf() 40 server->credits = server->max_credits; in change_conf() 41 server->oplock_credits = server->echo_credits = 0; in change_conf() 42 switch (server->credits) { in change_conf() 46 server->echoes = false; in change_conf() 47 server->oplocks = false; in change_conf() 50 server->echoes = true; in change_conf() 51 server->oplocks = false; in change_conf() [all …]
|
D | misc.c | 1 // SPDX-License-Identifier: LGPL-2.1 60 GlobalTotalActiveXid--; in _free_xid() 72 spin_lock_init(&ret_buf->ses_lock); in sesInfoAlloc() 73 ret_buf->ses_status = SES_NEW; in sesInfoAlloc() 74 ++ret_buf->ses_count; in sesInfoAlloc() 75 INIT_LIST_HEAD(&ret_buf->smb_ses_list); in sesInfoAlloc() 76 INIT_LIST_HEAD(&ret_buf->tcon_list); in sesInfoAlloc() 77 mutex_init(&ret_buf->session_mutex); in sesInfoAlloc() 78 spin_lock_init(&ret_buf->iface_lock); in sesInfoAlloc() 79 INIT_LIST_HEAD(&ret_buf->iface_list); in sesInfoAlloc() [all …]
|
D | cifsglob.h | 1 /* SPDX-License-Identifier: LGPL-2.1 */ 58 * max attribute cache timeout (jiffies) - 2^30 112 #define CIFS_DFS_ROOT_SES(ses) ((ses)->dfs_root_ses ?: (ses)) 182 struct shash_desc *hmacsha256; /* hmac-sha256 hash function, for SMB2 signatures */ 184 struct shash_desc *aes_cmac; /* block-cipher based MAC function, for SMB3 signatures */ 186 struct crypto_aead *enc; /* smb3 encryption AEAD TFM (AES-CCM and AES-GCM) */ 187 struct crypto_aead *dec; /* smb3 decryption AEAD TFM (AES-CCM and AES-GCM) */ 304 * message field DataRemaining for out-of-band data read (e.g through 334 unsigned int (*negotiate_wsize)(struct cifs_tcon *tcon, struct smb3_fs_context *ctx); 336 unsigned int (*negotiate_rsize)(struct cifs_tcon *tcon, struct smb3_fs_context *ctx); [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/clock/ |
D | allwinner,sun4i-a10-tcon-ch0-clk.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/clock/allwinner,sun4i-a10-tcon-ch0-clk.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner A10 TCON Channel 0 Clock 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 16 "#clock-cells": 19 "#reset-cells": 24 - allwinner,sun4i-a10-tcon-ch0-clk [all …]
|
/linux-6.12.1/fs/smb/server/ |
D | smb2pdu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 44 if (work->next_smb2_rcv_hdr_off) { in __wbuf() 48 *req = smb2_get_msg(work->request_buf); in __wbuf() 49 *rsp = smb2_get_msg(work->response_buf); in __wbuf() 56 * check_session_id() - check for valid session id in smb header 66 if (id == 0 || id == -1) in check_session_id() 76 struct channel *lookup_chann_list(struct ksmbd_session *sess, struct ksmbd_conn *conn) in lookup_chann_list() 78 return xa_load(&sess->ksmbd_chann_list, (long)conn); in lookup_chann_list() 82 * smb2_get_ksmbd_tcon() - get tree connection information using a tree id. 91 unsigned int cmd = le16_to_cpu(req_hdr->Command); in smb2_get_ksmbd_tcon() [all …]
|
/linux-6.12.1/arch/riscv/boot/dts/allwinner/ |
D | sunxi-d1s-t113.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 // Copyright (C) 2021-2022 Samuel Holland <samuel@sholland.org> 4 #include <dt-bindings/clock/sun6i-rtc.h> 5 #include <dt-bindings/clock/sun8i-de2.h> 6 #include <dt-bindings/clock/sun8i-tcon-top.h> 7 #include <dt-bindings/clock/sun20i-d1-ccu.h> 8 #include <dt-bindings/clock/sun20i-d1-r-ccu.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/reset/sun8i-de2.h> 11 #include <dt-bindings/reset/sun20i-d1-ccu.h> [all …]
|
/linux-6.12.1/arch/arm/boot/dts/allwinner/ |
D | sun4i-a10.dtsi | 5 * This file is dual-licensed: you can use it either under the terms 44 #include <dt-bindings/thermal/thermal.h> 45 #include <dt-bindings/dma/sun4i-a10.h> 46 #include <dt-bindings/clock/sun4i-a10-ccu.h> 47 #include <dt-bindings/reset/sun4i-a10-ccu.h> 50 #address-cells = <1>; 51 #size-cells = <1>; 52 interrupt-parent = <&intc>; 59 #address-cells = <1>; 60 #size-cells = <1>; [all …]
|
D | sun6i-a31.dtsi | 4 * Maxime Ripard <maxime.ripard@free-electrons.com> 6 * This file is dual-licensed: you can use it either under the terms 45 #include <dt-bindings/interrupt-controller/arm-gic.h> 46 #include <dt-bindings/thermal/thermal.h> 48 #include <dt-bindings/clock/sun6i-a31-ccu.h> 49 #include <dt-bindings/clock/sun6i-rtc.h> 50 #include <dt-bindings/reset/sun6i-a31-ccu.h> 53 interrupt-parent = <&gic>; 54 #address-cells = <1>; 55 #size-cells = <1>; [all …]
|
D | sun5i.dtsi | 2 * Copyright 2012-2015 Maxime Ripard 4 * Maxime Ripard <maxime.ripard@free-electrons.com> 6 * This file is dual-licensed: you can use it either under the terms 45 #include <dt-bindings/clock/sun5i-ccu.h> 46 #include <dt-bindings/dma/sun4i-a10.h> 47 #include <dt-bindings/reset/sun5i-ccu.h> 50 interrupt-parent = <&intc>; 51 #address-cells = <1>; 52 #size-cells = <1>; 55 #address-cells = <1>; [all …]
|
D | sun5i-a10s.dtsi | 4 * Maxime Ripard <maxime.ripard@free-electrons.com> 6 * This file is dual-licensed: you can use it either under the terms 47 #include <dt-bindings/dma/sun4i-a10.h> 55 #address-cells = <1>; 56 #size-cells = <1>; 59 framebuffer-lcd0-hdmi { 60 compatible = "allwinner,simple-framebuffer", 61 "simple-framebuffer"; 62 allwinner,pipeline = "de_be0-lcd0-hdmi"; 70 display-engine { [all …]
|