/Linux-v5.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 …]
|
/Linux-v5.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_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_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_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> 36 args->pitch = ALIGN(DIV_ROUND_UP(args->width * args->bpp, 8), 2); in drm_sun4i_gem_dumb_create() 48 .name = "sun4i-drm", 70 ret = -ENOMEM; in sun4i_drv_bind() 75 drm->dev_private = drv; in sun4i_drv_bind() 76 INIT_LIST_HEAD(&drv->frontend_list); in sun4i_drv_bind() 77 INIT_LIST_HEAD(&drv->engine_list); in sun4i_drv_bind() 78 INIT_LIST_HEAD(&drv->tcon_list); in sun4i_drv_bind() 81 if (ret && ret != -ENODEV) { in sun4i_drv_bind() [all …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
/Linux-v5.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 …]
|
D | smb2transport.c | 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 46 struct cifs_secmech *p = &server->secmech; in smb3_crypto_shash_allocate() 50 &p->hmacsha256, in smb3_crypto_shash_allocate() 51 &p->sdeschmacsha256); in smb3_crypto_shash_allocate() 55 rc = cifs_alloc_hash("cmac(aes)", &p->cmacaes, &p->sdesccmacaes); in smb3_crypto_shash_allocate() 61 cifs_free_hash(&p->hmacsha256, &p->sdeschmacsha256); in smb3_crypto_shash_allocate() 68 struct cifs_secmech *p = &server->secmech; in smb311_crypto_shash_allocate() 72 &p->hmacsha256, in smb311_crypto_shash_allocate() 73 &p->sdeschmacsha256); in smb311_crypto_shash_allocate() 77 rc = cifs_alloc_hash("cmac(aes)", &p->cmacaes, &p->sdesccmacaes); in smb311_crypto_shash_allocate() [all …]
|
D | cifsglob.h | 58 * max attribute cache timeout (jiffies) - 2^30 142 struct crypto_shash *hmacmd5; /* hmac-md5 hash function */ 144 struct crypto_shash *hmacsha256; /* hmac-sha256 hash function */ 145 struct crypto_shash *cmacaes; /* block-cipher based MAC function */ 243 * message field DataRemaining for out-of-band data read (e.g through 302 int (*query_reparse_tag)(const unsigned int xid, struct cifs_tcon *tcon, 326 umode_t mode, struct cifs_tcon *tcon, 330 struct cifs_tcon *tcon, const char *name, 356 /* open a file for non-posix mounts */ 359 /* set fid protocol-specific info */ [all …]
|
D | connect.c | 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 44 #include <keys/user-type.h> 293 * This should be called with server->srv_mutex held. 302 if (!server->hostname) in reconn_set_ipaddr() 303 return -EINVAL; in reconn_set_ipaddr() 305 len = strlen(server->hostname) + 3; in reconn_set_ipaddr() 310 return -ENOMEM; in reconn_set_ipaddr() 312 scnprintf(unc, len, "\\\\%s", server->hostname); in reconn_set_ipaddr() 319 __func__, server->hostname, rc); in reconn_set_ipaddr() 324 rc = cifs_convert_address((struct sockaddr *)&server->dstaddr, ipaddr, in reconn_set_ipaddr() [all …]
|
D | file.c | 22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 #include <linux/backing-dev.h> 83 current->comm, current->tgid); in cifs_posix_convert_flags() 124 struct cifs_tcon *tcon; in cifs_posix_open() local 130 return -ENOMEM; in cifs_posix_open() 138 tcon = tlink_tcon(tlink); in cifs_posix_open() 142 rc = CIFSPOSIXCreate(xid, tcon, posix_flags, mode, pnetfid, presp_data, in cifs_posix_open() 143 poplock, full_path, cifs_sb->local_nls, in cifs_posix_open() 150 if (presp_data->Type == cpu_to_le32(-1)) in cifs_posix_open() 163 rc = -ENOMEM; in cifs_posix_open() [all …]
|
D | transport.c | 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 50 wake_up_process(mid->callback_data); in cifs_wake_up_task() 65 kref_init(&temp->refcount); in AllocMidQEntry() 66 temp->mid = get_mid(smb_buffer); in AllocMidQEntry() 67 temp->pid = current->pid; in AllocMidQEntry() 68 temp->command = cpu_to_le16(smb_buffer->Command); in AllocMidQEntry() 69 cifs_dbg(FYI, "For smb_command %d\n", smb_buffer->Command); in AllocMidQEntry() 70 /* do_gettimeofday(&temp->when_sent);*/ /* easier to use jiffies */ in AllocMidQEntry() 72 temp->when_alloc = jiffies; in AllocMidQEntry() 73 temp->server = server; in AllocMidQEntry() [all …]
|
/Linux-v5.10/arch/arm/boot/dts/ |
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/reset/sun6i-a31-ccu.h> 52 interrupt-parent = <&gic>; 53 #address-cells = <1>; 54 #size-cells = <1>; 61 #address-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 …]
|
D | sun7i-a20.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> 47 #include <dt-bindings/dma/sun4i-a10.h> 48 #include <dt-bindings/clock/sun7i-a20-ccu.h> 49 #include <dt-bindings/reset/sun4i-a10-ccu.h> 50 #include <dt-bindings/pinctrl/sun4i-a10.h> 53 interrupt-parent = <&gic>; 54 #address-cells = <1>; [all …]
|
D | vfxxx.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 #include "vf610-pinfunc.h" 6 #include <dt-bindings/clock/vf610-clock.h> 7 #include <dt-bindings/interrupt-controller/irq.h> 8 #include <dt-bindings/gpio/gpio.h> 32 compatible = "fixed-clock"; 33 #clock-cells = <0>; 34 clock-frequency = <24000000>; 38 compatible = "fixed-clock"; 39 #clock-cells = <0>; [all …]
|
D | sun8i-a33.dtsi | 2 * Copyright 2014 Chen-Yu Tsai 4 * Chen-Yu Tsai <wens@csie.org> 6 * This file is dual-licensed: you can use it either under the terms 45 #include "sun8i-a23-a33.dtsi" 46 #include <dt-bindings/thermal/thermal.h> 50 compatible = "operating-points-v2"; 51 opp-shared; 53 opp-120000000 { 54 opp-hz = /bits/ 64 <120000000>; 55 opp-microvolt = <1040000>; [all …]
|
/Linux-v5.10/arch/arm64/boot/dts/allwinner/ |
D | sun50i-a64.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/clock/sun50i-a64-ccu.h> 7 #include <dt-bindings/clock/sun8i-de2.h> 8 #include <dt-bindings/clock/sun8i-r-ccu.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 10 #include <dt-bindings/reset/sun50i-a64-ccu.h> 11 #include <dt-bindings/reset/sun8i-de2.h> 12 #include <dt-bindings/reset/sun8i-r-ccu.h> 13 #include <dt-bindings/thermal/thermal.h> 16 interrupt-parent = <&gic>; [all …]
|