| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/drivers/clocksource/ |
| D | samsung_pwm_timer.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * samsung - Common hr-timer support (s3c and s5p) 45 * Each channel occupies 4 bits in TCON register, but there is a gap of 4 46 * bits (one channel) after channel 0, so channels have different numbering 47 * when accessing TCON register. 49 * In addition, the location of autoreload bit for channel 4 (TCON channel 5) 82 static void samsung_timer_set_prescale(unsigned int channel, u16 prescale) in samsung_timer_set_prescale() argument 88 if (channel >= 2) in samsung_timer_set_prescale() 95 reg |= (prescale - 1) << shift; in samsung_timer_set_prescale() 101 static void samsung_timer_set_divisor(unsigned int channel, u8 divisor) in samsung_timer_set_divisor() argument [all …]
|
| /kernel/linux/linux-5.10/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> 47 drm_connector_list_iter_begin(encoder->dev, &iter); in sun4i_tcon_get_connector() 49 if (connector->encoder == encoder) { in sun4i_tcon_get_connector() 65 return -EINVAL; in sun4i_tcon_get_pixel_depth() 67 info = &connector->display_info; in sun4i_tcon_get_pixel_depth() 68 if (info->num_bus_formats != 1) in sun4i_tcon_get_pixel_depth() 69 return -EINVAL; in sun4i_tcon_get_pixel_depth() 71 switch (info->bus_formats[0]) { in sun4i_tcon_get_pixel_depth() 80 return -EINVAL; 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> 26 #define SUN4I_TCON_GINT0_VBLANK_ENABLE(pipe) BIT(31 - (pipe)) 29 #define SUN4I_TCON_GINT0_VBLANK_INT(pipe) BIT(15 - (pipe)) 66 #define SUN4I_TCON0_BASIC0_X(width) ((((width) - 1) & 0xfff) << 16) 67 #define SUN4I_TCON0_BASIC0_Y(height) (((height) - 1) & 0xfff) 70 #define SUN4I_TCON0_BASIC1_H_TOTAL(total) ((((total) - 1) & 0x1fff) << 16) 71 #define SUN4I_TCON0_BASIC1_H_BACKPORCH(bp) (((bp) - 1) & 0xfff) 75 #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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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 74 * @inverter_mask: inverter status for all channels - one bit per channel 75 * @disabled_mask: disabled status for all channels - one bit per channel [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/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) Device Tree Bindings 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 | allwinner,sun8i-r40-tcon-top.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/display/allwinner,sun8i-r40-tcon-top.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Allwinner R40 TCON TOP Device Tree Bindings 10 - Chen-Yu Tsai <wens@csie.org> 11 - Maxime Ripard <mripard@kernel.org> 14 TCON TOPs main purpose is to configure whole display pipeline. It 16 TCON for HDMI, muxes LCD and TV encoder GPIO output, selects TV 17 encoder clock source and contains additional TV TCON and DSI gates. [all …]
|
| /kernel/linux/linux-6.6/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 74 * @inverter_mask: inverter status for all channels - one bit per channel 75 * @disabled_mask: disabled status for all channels - one bit per channel [all …]
|
| /kernel/linux/linux-6.6/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) */ 73 int smb3_encryption_required(const struct cifs_tcon *tcon) in smb3_encryption_required() argument 75 if (!tcon || !tcon->ses) in smb3_encryption_required() 77 if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in smb3_encryption_required() 78 (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA)) in smb3_encryption_required() 80 if (tcon->seal && in smb3_encryption_required() 81 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 84 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 91 const struct cifs_tcon *tcon, in smb2_hdr_assemble() argument [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 | 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 | 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 …]
|
| /kernel/linux/linux-5.10/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 Device Tree Bindings 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 …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/fs/cifs/ |
| D | smb2pdu.c | 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 26 /* SMB2 PDU handling routines here - except for leftovers (eg session setup) */ 86 int smb3_encryption_required(const struct cifs_tcon *tcon) in smb3_encryption_required() argument 88 if (!tcon || !tcon->ses) in smb3_encryption_required() 90 if ((tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) || in smb3_encryption_required() 91 (tcon->share_flags & SHI1005_FLAGS_ENCRYPT_DATA)) in smb3_encryption_required() 93 if (tcon->seal && in smb3_encryption_required() 94 (tcon->ses->server->capabilities & SMB2_GLOBAL_CAP_ENCRYPTION)) in smb3_encryption_required() 101 const struct cifs_tcon *tcon, in smb2_hdr_assemble() argument 104 shdr->ProtocolId = SMB2_PROTO_NUMBER; in smb2_hdr_assemble() [all …]
|