Home
last modified time | relevance | path

Searched +full:tcon +full:- +full:channel (Results 1 – 25 of 33) sorted by relevance

12

/Linux-v6.1/drivers/clocksource/
Dsamsung_pwm_timer.c1 // 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-v6.1/drivers/gpu/drm/sun4i/
Dsun4i_tcon.c1 // 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 …]
Dsun8i_tcon_top.c1 // 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 …]
Dsun4i_rgb.c1 // 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 …]
Dsun4i_tcon.h1 /* 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 …]
Dsun4i_lvds.c1 // 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 …]
Dsun4i_drv.c1 // 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-v6.1/Documentation/devicetree/bindings/display/
Dallwinner,sun4i-a10-tcon.yaml1 # 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 …]
Drenesas,du.yaml1 # 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-v6.1/drivers/pwm/
Dpwm-samsung.c1 // 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 …]
/Linux-v6.1/fs/cifs/
Dsmb2misc.c1 // 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 …]
Dsmb2pdu.c1 // 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()
88 const struct cifs_tcon *tcon, in smb2_hdr_assemble() argument
91 shdr->ProtocolId = SMB2_PROTO_NUMBER; in smb2_hdr_assemble()
[all …]
Dsmb2transport.c1 // 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 …]
Dconnect.c1 // SPDX-License-Identifier: LGPL-2.1
31 #include <keys/user-type.h>
70 struct cifs_tcon *tcon; member
87 * This should be called with server->srv_mutex held.
97 if (!server->hostname) in reconn_set_ipaddr_from_hostname()
98 return -EINVAL; in reconn_set_ipaddr_from_hostname()
101 if (server->hostname[0] == '\0') in reconn_set_ipaddr_from_hostname()
104 len = strlen(server->hostname) + 3; in reconn_set_ipaddr_from_hostname()
109 return -ENOMEM; in reconn_set_ipaddr_from_hostname()
111 scnprintf(unc, len, "\\\\%s", server->hostname); in reconn_set_ipaddr_from_hostname()
[all …]
Dcifs_debug.c1 // SPDX-License-Identifier: GPL-2.0-or-later
42 smb->Command, smb->Status.CifsError, in cifs_dump_detail()
43 smb->Flags, smb->Flags2, smb->Mid, smb->Pid); in cifs_dump_detail()
45 server->ops->calc_smb_size(smb)); in cifs_dump_detail()
58 spin_lock(&server->mid_lock); in cifs_dump_mids()
59 list_for_each_entry(mid_entry, &server->pending_mid_q, qhead) { in cifs_dump_mids()
61 mid_entry->mid_state, in cifs_dump_mids()
62 le16_to_cpu(mid_entry->command), in cifs_dump_mids()
63 mid_entry->pid, in cifs_dump_mids()
64 mid_entry->callback_data, in cifs_dump_mids()
[all …]
Dmisc.c1 // SPDX-License-Identifier: LGPL-2.1
61 GlobalTotalActiveXid--; in _free_xid()
73 spin_lock_init(&ret_buf->ses_lock); in sesInfoAlloc()
74 ret_buf->ses_status = SES_NEW; in sesInfoAlloc()
75 ++ret_buf->ses_count; in sesInfoAlloc()
76 INIT_LIST_HEAD(&ret_buf->smb_ses_list); in sesInfoAlloc()
77 INIT_LIST_HEAD(&ret_buf->tcon_list); in sesInfoAlloc()
78 mutex_init(&ret_buf->session_mutex); in sesInfoAlloc()
79 spin_lock_init(&ret_buf->iface_lock); in sesInfoAlloc()
80 INIT_LIST_HEAD(&ret_buf->iface_list); in sesInfoAlloc()
[all …]
Dsmb2ops.c1 // SPDX-License-Identifier: GPL-2.0
36 server->credits += server->echo_credits + server->oplock_credits; in change_conf()
37 server->oplock_credits = server->echo_credits = 0; in change_conf()
38 switch (server->credits) { in change_conf()
42 server->echoes = false; in change_conf()
43 server->oplocks = false; in change_conf()
46 server->echoes = true; in change_conf()
47 server->oplocks = false; in change_conf()
48 server->echo_credits = 1; in change_conf()
51 server->echoes = true; in change_conf()
[all …]
Dcifsglob.h1 /* SPDX-License-Identifier: LGPL-2.1 */
51 * max attribute cache timeout (jiffies) - 2^30
160 struct shash_desc *hmacsha256; /* hmac-sha256 hash function, for SMB2 signatures */
162 struct shash_desc *aes_cmac; /* block-cipher based MAC function, for SMB3 signatures */
164 struct crypto_aead *enc; /* smb3 encryption AEAD TFM (AES-CCM and AES-GCM) */
165 struct crypto_aead *dec; /* smb3 decryption AEAD TFM (AES-CCM and AES-GCM) */
198 kfree(data->symlink_target); in cifs_free_open_info()
268 * message field DataRemaining for out-of-band data read (e.g through
298 unsigned int (*negotiate_wsize)(struct cifs_tcon *tcon, struct smb3_fs_context *ctx);
300 unsigned int (*negotiate_rsize)(struct cifs_tcon *tcon, struct smb3_fs_context *ctx);
[all …]
Dfile.c1 // SPDX-License-Identifier: LGPL-2.1
12 #include <linux/backing-dev.h>
44 cifs_mark_open_files_invalid(struct cifs_tcon *tcon) in cifs_mark_open_files_invalid() argument
51 spin_lock(&tcon->ses->ses_lock); in cifs_mark_open_files_invalid()
52 if ((tcon->ses->ses_status != SES_GOOD) || (tcon->status != TID_NEED_RECON)) { in cifs_mark_open_files_invalid()
53 spin_unlock(&tcon->ses->ses_lock); in cifs_mark_open_files_invalid()
56 tcon->status = TID_IN_FILES_INVALIDATE; in cifs_mark_open_files_invalid()
57 spin_unlock(&tcon->ses->ses_lock); in cifs_mark_open_files_invalid()
60 spin_lock(&tcon->open_file_lock); in cifs_mark_open_files_invalid()
61 list_for_each_safe(tmp, tmp1, &tcon->openFileList) { in cifs_mark_open_files_invalid()
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/clock/
Dallwinner,sun4i-a10-tcon-ch0-clk.yaml1 # 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-v6.1/fs/ksmbd/
Dsmb2pdu.c1 // SPDX-License-Identifier: GPL-2.0-or-later
43 if (work->next_smb2_rcv_hdr_off) { in __wbuf()
47 *req = smb2_get_msg(work->request_buf); in __wbuf()
48 *rsp = smb2_get_msg(work->response_buf); in __wbuf()
55 * check_session_id() - check for valid session id in smb header
65 if (id == 0 || id == -1) in check_session_id()
75 struct channel *lookup_chann_list(struct ksmbd_session *sess, struct ksmbd_conn *conn) in lookup_chann_list()
77 struct channel *chann; in lookup_chann_list()
79 list_for_each_entry(chann, &sess->ksmbd_chann_list, chann_list) { in lookup_chann_list()
80 if (chann->conn == conn) in lookup_chann_list()
[all …]
/Linux-v6.1/arch/arm/boot/dts/
Dsun4i-a10.dtsi5 * 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 …]
Dsun6i-a31.dtsi4 * 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 …]
Dsun5i.dtsi2 * 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 …]
Dsun5i-a10s.dtsi4 * 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 …]

12