| /OK3568_Linux_fs/kernel/sound/core/seq/oss/ |
| H A D | seq_oss_init.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (C) 1998-1999 Takashi Iwai <tiwai@suse.de> 30 static int system_client = -1; /* ALSA sequencer client number */ 31 static int system_port = -1; 42 static int create_port(struct seq_oss_devinfo *dp); 43 static int delete_port(struct seq_oss_devinfo *dp); 44 static int alloc_seq_queue(struct seq_oss_devinfo *dp); 66 struct snd_seq_port_info *port; in snd_seq_oss_create_client() local 69 port = kmalloc(sizeof(*port), GFP_KERNEL); in snd_seq_oss_create_client() 70 if (!port) { in snd_seq_oss_create_client() [all …]
|
| H A D | seq_oss_midi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 33 int port; /* sequencer port number */ member 34 unsigned int flags; /* port capability */ 55 static struct seq_oss_midi *get_mididev(struct seq_oss_devinfo *dp, int dev); 56 static int send_synth_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, int dev); 57 static int send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_mid… 74 return -ENOMEM; in snd_seq_oss_midi_lookup_ports() 76 clinfo->client = -1; in snd_seq_oss_midi_lookup_ports() 78 if (clinfo->client == client) in snd_seq_oss_midi_lookup_ports() 80 pinfo->addr.client = clinfo->client; in snd_seq_oss_midi_lookup_ports() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/ |
| H A D | cdn-dp-core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Author: Chris Zhong <zyw@rock-chips.com> 15 #include <sound/hdmi-codec.h> 24 #include "cdn-dp-core.h" 25 #include "cdn-dp-reg.h" 54 { .compatible = "rockchip,rk3399-cdn-dp", 61 static int cdn_dp_grf_write(struct cdn_dp_device *dp, in cdn_dp_grf_write() argument 66 ret = clk_prepare_enable(dp->grf_clk); in cdn_dp_grf_write() 68 DRM_DEV_ERROR(dp->dev, "Failed to prepare_enable grf clock\n"); in cdn_dp_grf_write() 72 ret = regmap_write(dp->grf, reg, val); in cdn_dp_grf_write() [all …]
|
| H A D | cdn-dp-link-training.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Author: Chris Zhong <zyw@rock-chips.com> 11 #include "cdn-dp-core.h" 12 #include "cdn-dp-reg.h" 14 static void cdn_dp_set_signal_levels(struct cdn_dp_device *dp) in cdn_dp_set_signal_levels() argument 16 struct cdn_dp_port *port = dp->port[dp->active_port]; in cdn_dp_set_signal_levels() local 17 int rate = drm_dp_bw_code_to_link_rate(dp->link.rate); in cdn_dp_set_signal_levels() 18 u8 swing = (dp->train_set[0] & DP_TRAIN_VOLTAGE_SWING_MASK) >> in cdn_dp_set_signal_levels() 20 u8 pre_emphasis = (dp->train_set[0] & DP_TRAIN_PRE_EMPHASIS_MASK) in cdn_dp_set_signal_levels() 23 tcphy_dp_set_phy_config(port->phy, rate, dp->link.num_lanes, in cdn_dp_set_signal_levels() [all …]
|
| /OK3568_Linux_fs/kernel/net/dsa/ |
| H A D | port.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Handling of a single switch port 5 * Copyright (c) 2017 Savoir-faire Linux Inc. 22 struct raw_notifier_head *nh = &dst->nh; in dsa_broadcast() 33 static int dsa_port_notify(const struct dsa_port *dp, unsigned long e, void *v) in dsa_port_notify() argument 35 struct raw_notifier_head *nh = &dp->ds->dst->nh; in dsa_port_notify() 43 int dsa_port_set_state(struct dsa_port *dp, u8 state, in dsa_port_set_state() argument 46 struct dsa_switch *ds = dp->ds; in dsa_port_set_state() 47 int port = dp->index; in dsa_port_set_state() local 50 return ds->ops->port_stp_state_set ? 0 : -EOPNOTSUPP; in dsa_port_set_state() [all …]
|
| H A D | dsa_priv.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * net/dsa/dsa_priv.h - Hardware switch handling 4 * Copyright (c) 2008-2009 Marvell Semiconductor 41 int port; member 47 int port; member 57 int port; member 65 int port; member 72 int port; member 77 /* Copy of CPU port xmit for faster access in slave transmit hot path */ 85 /* DSA port data, such as switch, port index, etc. */ [all …]
|
| H A D | dsa2.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * net/dsa/dsa2.c - Hardware switch handling, binding version 2 4 * Copyright (c) 2008-2009 Marvell Semiconductor 27 struct dsa_port *dp; in dsa_switch_find() local 30 if (dst->index != tree_index) in dsa_switch_find() 33 list_for_each_entry(dp, &dst->ports, list) { in dsa_switch_find() 34 if (dp->ds->index != sw_index) in dsa_switch_find() 37 return dp->ds; in dsa_switch_find() 50 if (dst->index == index) in dsa_tree_find() 64 dst->index = index; in dsa_tree_alloc() [all …]
|
| H A D | slave.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * net/dsa/slave.c - Slave device handling 4 * Copyright (c) 2008-2009 Marvell Semiconductor 28 struct dsa_switch *ds = bus->priv; in dsa_slave_phy_read() 30 if (ds->phys_mii_mask & (1 << addr)) in dsa_slave_phy_read() 31 return ds->ops->phy_read(ds, addr, reg); in dsa_slave_phy_read() 38 struct dsa_switch *ds = bus->priv; in dsa_slave_phy_write() 40 if (ds->phys_mii_mask & (1 << addr)) in dsa_slave_phy_write() 41 return ds->ops->phy_write(ds, addr, reg, val); in dsa_slave_phy_write() 48 ds->slave_mii_bus->priv = (void *)ds; in dsa_slave_mii_bus_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/tty/serial/ |
| H A D | digicolor-usart.c | 1 // SPDX-License-Identifier: GPL-2.0+ 77 struct uart_port port; member 83 static bool digicolor_uart_tx_full(struct uart_port *port) in digicolor_uart_tx_full() argument 85 return !!(readb_relaxed(port->membase + UA_STATUS_FIFO) & in digicolor_uart_tx_full() 89 static bool digicolor_uart_rx_empty(struct uart_port *port) in digicolor_uart_rx_empty() argument 91 return !!(readb_relaxed(port->membase + UA_STATUS_FIFO) & in digicolor_uart_rx_empty() 95 static void digicolor_uart_stop_tx(struct uart_port *port) in digicolor_uart_stop_tx() argument 97 u8 int_enable = readb_relaxed(port->membase + UA_INT_ENABLE); in digicolor_uart_stop_tx() 100 writeb_relaxed(int_enable, port->membase + UA_INT_ENABLE); in digicolor_uart_stop_tx() 103 static void digicolor_uart_start_tx(struct uart_port *port) in digicolor_uart_start_tx() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/ata/ |
| H A D | pata_atp867x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * pata_atp867x.c - ARTOP 867X 64bit 4-channel UDMA133 ATA controller driver 5 * (C) 2009 Google Inc. John(Jung-Ik) Lee <jilee@google.com> 9 * 2003-2004 by Eric Uhrhane, Google, Inc. 69 #define ATP867X_IOBASE(ap) ((ap)->host->iomap[0]) 72 #define ATP867X_IO_PORTBASE(ap, port) (0x00 + ATP867X_IOBASE(ap) + \ argument 73 (port) * ATP867X_IO_CHANNEL_OFFSET) 74 #define ATP867X_IO_DMABASE(ap, port) (0x40 + \ argument 75 ATP867X_IO_PORTBASE((ap), (port))) 77 #define ATP867X_IO_STATUS(ap, port) (0x07 + \ argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/thunderbolt/ |
| H A D | lc.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * tb_lc_read_uuid() - Read switch UUID from link controller common register 18 if (!sw->cap_lc) in tb_lc_read_uuid() 19 return -EINVAL; in tb_lc_read_uuid() 20 return tb_sw_read(sw, uuid, TB_CFG_SWITCH, sw->cap_lc + TB_LC_FUSE, 4); in tb_lc_read_uuid() 25 if (!sw->cap_lc) in read_lc_desc() 26 return -EINVAL; in read_lc_desc() 27 return tb_sw_read(sw, desc, TB_CFG_SWITCH, sw->cap_lc + TB_LC_DESC, 1); in read_lc_desc() 30 static int find_port_lc_cap(struct tb_port *port) in find_port_lc_cap() argument 32 struct tb_switch *sw = port->sw; in find_port_lc_cap() [all …]
|
| H A D | tb.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Thunderbolt driver - bus logic (NHI independent) 19 * struct tb_cm - Simple Thunderbolt connection manager 21 * @dp_resources: List of available DP resources for DP tunneling 38 return ((void *)tcm - sizeof(struct tb)); in tcm_to_tb() 45 u8 port; member 51 static void tb_queue_hotplug(struct tb *tb, u64 route, u8 port, bool unplug) in tb_queue_hotplug() argument 59 ev->tb = tb; in tb_queue_hotplug() 60 ev->route = route; in tb_queue_hotplug() 61 ev->port = port; in tb_queue_hotplug() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_link.c | 1 /* Copyright 2008-2013 Broadcom Corporation 8 * at http://www.gnu.org/licenses/gpl-2.0.html (the "GPL"). 43 #define I2C_WA_PWR_ITER (I2C_WA_RETRY_CNT - 1) 205 (_phy)->def_md_devad, \ 211 (_phy)->def_md_devad, \ 239 * bnx2x_check_lfa - This function checks if link reinitialization is required, 251 struct bnx2x *bp = params->bp; in bnx2x_check_lfa() 254 REG_RD(bp, params->lfa_base + in bnx2x_check_lfa() 257 /* NOTE: must be first condition checked - in bnx2x_check_lfa() 261 DP(NETIF_MSG_LINK, "No LFA due to DCC flap after clp exit\n"); in bnx2x_check_lfa() [all …]
|
| H A D | bnx2x_ethtool.c | 3 * Copyright (c) 2007-2013 Broadcom Corporation 32 /* Note: in the format strings below %s is replaced by the queue-name which is 34 * length does not exceed ETH_GSTRING_LEN - MAX_QUEUE_NAME_LEN + 2 196 switch (bp->link_params.phy[phy_idx].media_type) { in bnx2x_get_port_type() 228 cmd->link_modes.supported); in bnx2x_get_vf_link_ksettings() 230 cmd->link_modes.advertising); in bnx2x_get_vf_link_ksettings() 232 if (bp->state == BNX2X_STATE_OPEN) { in bnx2x_get_vf_link_ksettings() 234 &bp->vf_link_vars.link_report_flags)) in bnx2x_get_vf_link_ksettings() 235 cmd->base.duplex = DUPLEX_FULL; in bnx2x_get_vf_link_ksettings() 237 cmd->base.duplex = DUPLEX_HALF; in bnx2x_get_vf_link_ksettings() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/isdn/hardware/mISDN/ |
| H A D | iohelper.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 6 * indirect port IO (one port for address, one for data) 21 u32 port; member 28 return inb(hw->ap.port + off); \ 32 outb(val, hw->ap.port + off); \ 34 static void ReadFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \ 36 insb(hw->ap.port + off, dp, size); \ 38 static void WriteFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \ 40 outsb(hw->ap.port + off, dp, size); \ 46 outb(off, hw->ap.ale); \ [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/bridge/ |
| H A D | cdns,mhdp8546.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: "http://devicetree.org/meta-schemas/core.yaml#" 10 - Swapnil Jakhade <sjakhade@cadence.com> 11 - Yuti Amonkar <yamonkar@cadence.com> 16 - cdns,mhdp8546 17 - ti,j721e-mhdp8546 23 - description: 27 - description: 30 reg-names: [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/phy/ |
| H A D | phy-rockchip-usbdp.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/phy/phy-rockchip-usbdp.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Frank Wang <frank.wang@rock-chips.com> 11 - Zhang Yubing <yubing.zhang@rock-chips.com> 16 - rockchip,rk3588-usbdp-phy 23 - description: phy ref clock. 24 - description: phy pcs immortal clock. 25 - description: phy peripheral clock. [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/rockchip/ |
| H A D | analogix_dp-rockchip.txt | 1 Rockchip RK3288 specific extensions to the Analogix Display Port 5 - compatible: "rockchip,rk3288-dp", 6 "rockchip,rk3399-edp"; 8 - reg: physical base address of the controller and length 10 - clocks: from common clock binding: handle to dp clock. 13 - clock-names: from common clock binding: 14 Required elements: "dp" "pclk" 16 - resets: Must contain an entry for each entry in reset-names. 19 - pinctrl-names: Names corresponding to the chip hotplug pinctrl states. 20 - pinctrl-0: pin-control mode. should be <&edp_hpd> [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_ethtool.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* Copyright (C) 2015-2018 Netronome Systems, Inc. */ 61 * how different BPF modes use app-specific counters 188 nsp = nfp_nsp_open(app->cpp); in nfp_net_get_nspinfo() 205 strlcpy(drvinfo->driver, pdev->driver->name, sizeof(drvinfo->driver)); in nfp_get_drvinfo() 207 snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version), in nfp_get_drvinfo() 219 nn->fw_ver.resv, nn->fw_ver.class, in nfp_net_get_drvinfo() 220 nn->fw_ver.major, nn->fw_ver.minor); in nfp_net_get_drvinfo() 221 strlcpy(drvinfo->bus_info, pci_name(nn->pdev), in nfp_net_get_drvinfo() 222 sizeof(drvinfo->bus_info)); in nfp_net_get_drvinfo() [all …]
|
| /OK3568_Linux_fs/kernel/include/net/ |
| H A D | dsa.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * include/net/dsa.h - Driver for Distributed Switch Architecture switch chips 4 * Copyright (c) 2008-2009 Marvell Semiconductor 106 #define DSA_TAG_DRIVER_ALIAS "dsa_tag-" 116 u8 priv[48 - sizeof(struct dsa_skb_cb)]; 119 #define DSA_SKB_CB(skb) ((struct dsa_skb_cb *)((skb)->cb)) 122 ((void *)(skb)->cb + offsetof(struct __dsa_skb_cb, priv)) 127 /* Notifier chain for switch-wide events */ 164 /* TC port policer entry */ 183 /* A CPU port is physically connected to a master device. [all …]
|
| /OK3568_Linux_fs/kernel/arch/sparc/include/asm/ |
| H A D | floppy_64.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 15 #include <linux/dma-mapping.h> 45 static struct sun_flpy_controller *sun_fdc = (struct sun_flpy_controller *)-1; 50 unsigned char (*fd_inb) (unsigned long port, unsigned int reg); 106 printk("floppy: Asked to read unknown port %x\n", reg); in sun_82077_fd_inb() 107 panic("floppy: Port bolixed."); in sun_82077_fd_inb() 109 return sbus_readb(&sun_fdc->status_82077) & ~STATUS_DMA; in sun_82077_fd_inb() 111 return sbus_readb(&sun_fdc->data_82077); in sun_82077_fd_inb() 114 return sbus_readb(&sun_fdc->dir_82077); in sun_82077_fd_inb() 125 printk("floppy: Asked to write to unknown port %x\n", reg); in sun_82077_fd_outb() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/abm/ |
| H A D | main.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 34 struct nfp_port *port; in nfp_abm_setup_tc() local 36 port = nfp_port_from_netdev(netdev); in nfp_abm_setup_tc() 37 if (!port || port->type != NFP_PORT_PF_PORT) in nfp_abm_setup_tc() 38 return -EOPNOTSUPP; in nfp_abm_setup_tc() 42 return nfp_abm_setup_root(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc() 44 return nfp_abm_setup_tc_mq(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc() 46 return nfp_abm_setup_tc_red(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc() 48 return nfp_abm_setup_tc_gred(netdev, repr->app_priv, type_data); in nfp_abm_setup_tc() 52 return -EOPNOTSUPP; in nfp_abm_setup_tc() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/typec/altmodes/ |
| H A D | displayport.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * USB Typec-C DisplayPort Alternate Mode driver 20 #define DP_HEADER(_dp, ver, cmd) (VDO((_dp)->alt->svid, 1, ver, cmd) \ 30 /* Pin assignments that use USB3.1 Gen2 signaling to carry DP protocol */ 34 /* Pin assignments that use DP v1.3 signaling to carry DP protocol */ 40 /* DP only pin assignments */ 51 * A UFP_U that uses a USB Type-C plug describes the pin assignments supported 53 * assignments to which it connects), whereas a UFP_U that uses a USB Type-C 78 const struct typec_altmode *port; member 82 static int dp_altmode_notify(struct dp_altmode *dp) in dp_altmode_notify() argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/mac/mac_ax/ |
| H A D | mport.c | 272 static u32 b_mbid_en_l[MAC_AX_P0_MBID_MAX - 1] = { 279 static u32 b_mbid_drp_l[MAC_AX_P0_MBID_MAX - 1] = { 290 static u32 b_hiq_nolmt_mbid_l[MAC_AX_P0_MBID_MAX - 1] = { 331 u32 get_bp_idx(u8 band, u8 port) in get_bp_idx() argument 333 return (band * MAC_AX_BAND_NUM + port); in get_bp_idx() 341 u32 mbssid_idx = para->mbssid_idx; in _get_port_cfg() 342 u8 port = para->port; in _get_port_cfg() local 343 u8 band = para->band; in _get_port_cfg() 355 if (port >= MAC_AX_PORT_NUM) { in _get_port_cfg() 356 PLTFM_MSG_ERR("[ERR] invalid port idx %d\n", port); in _get_port_cfg() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/mac/mac_ax/ |
| H A D | mport.c | 272 static u32 b_mbid_en_l[MAC_AX_P0_MBID_MAX - 1] = { 279 static u32 b_mbid_drp_l[MAC_AX_P0_MBID_MAX - 1] = { 290 static u32 b_hiq_nolmt_mbid_l[MAC_AX_P0_MBID_MAX - 1] = { 331 u32 get_bp_idx(u8 band, u8 port) in get_bp_idx() argument 333 return (band * MAC_AX_BAND_NUM + port); in get_bp_idx() 341 u32 mbssid_idx = para->mbssid_idx; in _get_port_cfg() 342 u8 port = para->port; in _get_port_cfg() local 343 u8 band = para->band; in _get_port_cfg() 355 if (port >= MAC_AX_PORT_NUM) { in _get_port_cfg() 356 PLTFM_MSG_ERR("[ERR] invalid port idx %d\n", port); in _get_port_cfg() [all …]
|