Home
last modified time | relevance | path

Searched full:partner (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/linux-6.14.4/drivers/usb/typec/
Dclass.c64 struct typec_partner *partner = to_typec_partner(dev); in get_pd_identity() local
66 return partner->identity; in get_pd_identity()
249 struct altmode *partner; in typec_altmode_set_partner() local
256 /* Bind the port alt mode to the partner/plug alt mode. */ in typec_altmode_set_partner()
257 partner = to_altmode(to_typec_altmode(dev)); in typec_altmode_set_partner()
258 altmode->partner = partner; in typec_altmode_set_partner()
260 /* Bind the partner/plug alt mode to the port alt mode. */ in typec_altmode_set_partner()
264 partner->plug[plug->index] = altmode; in typec_altmode_set_partner()
266 partner->partner = altmode; in typec_altmode_set_partner()
272 struct altmode *partner = altmode->partner; in typec_altmode_put_partner() local
[all …]
Dbus.c65 port_altmode = is_port ? to_altmode(adev) : to_altmode(adev)->partner; in typec_altmode_set_state()
80 * to tell which pin configuration has been negotiated with the partner. That
91 struct altmode *partner; in typec_altmode_notify() local
99 if (!altmode->partner) in typec_altmode_notify()
103 partner = altmode->partner; in typec_altmode_notify()
105 ret = typec_altmode_set_switches(is_port ? altmode : partner, conf, data); in typec_altmode_notify()
109 if (partner->adev.ops && partner->adev.ops->notify) in typec_altmode_notify()
110 return partner->adev.ops->notify(&partner->adev, conf, data); in typec_altmode_notify()
122 * use this to inform the alternate mode drivers that the partner has initiated
128 struct altmode *partner = to_altmode(adev)->partner; in typec_altmode_enter() local
[all …]
Dwusb3801.c89 struct typec_partner *partner; member
272 if (wusb3801->partner) { in wusb3801_hw_update()
273 typec_unregister_partner(wusb3801->partner); in wusb3801_hw_update()
274 wusb3801->partner = NULL; in wusb3801_hw_update()
278 wusb3801->partner = typec_register_partner(port, &desc); in wusb3801_hw_update()
279 if (IS_ERR(wusb3801->partner)) in wusb3801_hw_update()
280 dev_err(dev, "Failed to register partner: %ld\n", in wusb3801_hw_update()
281 PTR_ERR(wusb3801->partner)); in wusb3801_hw_update()
408 if (wusb3801->partner) in wusb3801_remove()
409 typec_unregister_partner(wusb3801->partner); in wusb3801_remove()
Dstusb160x.c157 struct typec_partner *partner; member
364 chip->partner = typec_register_partner(chip->port, &desc); in stusb160x_attach()
365 if (IS_ERR(chip->partner)) { in stusb160x_attach()
366 ret = PTR_ERR(chip->partner); in stusb160x_attach()
388 typec_unregister_partner(chip->partner); in stusb160x_detach()
389 chip->partner = NULL; in stusb160x_detach()
467 if (chip->partner) { in stusb160x_irq_init()
468 typec_unregister_partner(chip->partner); in stusb160x_irq_init()
469 chip->partner = NULL; in stusb160x_irq_init()
804 if (chip->partner) { in stusb160x_remove()
[all …]
/linux-6.14.4/Documentation/ABI/testing/
Dsysfs-class-typec57 when both the port and the partner support USB Power Delivery.
115 What: /sys/class/typec/<port>-{partner|cable}/usb_power_delivery_revision
120 specification of the port partner or cable, or 0.0 when USB
149 advertise to the partner. The currently used capabilities are in
165 USB Type-C partner devices (eg. /sys/class/typec/port0-partner/)
167 What: /sys/class/typec/<port>-partner/accessory_mode
171 Shows the Accessory Mode name when the partner is an Accessory.
174 What: /sys/class/typec/<port>-partner/supports_usb_power_delivery
178 Shows if the partner supports USB Power Delivery communication:
181 What: /sys/class/typec/<port>-partner/number_of_alternate_modes
[all …]
/linux-6.14.4/Documentation/driver-api/usb/
Dtypec_bus.rst8 Alternate modes require communication with the partner using Vendor Defined
13 USB Type-C bus allows binding a driver to the discovered partner alternate
17 mode a port supports, and separate device for every alternate mode the partner
18 supports. The drivers for the alternate modes are bound to the partner alternate
22 When a new partner alternate mode device is registered, it is linked to the
23 alternate mode device of the port that the partner is attached to, that has
27 The port alternate mode devices are used as a proxy between the partner and the
29 specific commands from the alternate mode drivers to the partner, and from the
33 drivers need to provide them for the partner alternate mode devices.
47 will be used to deliver all the SVID specific commands from the partner to the
[all …]
Dtypec.rst33 When connected, the partner will be presented also as its own device under
34 /sys/class/typec/. The parent of the partner device will always be the port it
35 is attached to. The partner attached to port "port0" will be named
36 "port0-partner". Full path to the device would be
37 /sys/class/typec/port0/port0-partner/.
46 If the port, partner or cable plug supports Alternate Modes, every supported
50 mode of port0-partner will be presented under /sys/class/typec/port0-partner/.
78 After successful connection of a partner, the port driver needs to register the
79 partner with the class. Details about the partner need to be described in struct
80 typec_partner_desc. The class copies the details of the partner during
[all …]
/linux-6.14.4/include/linux/usb/
Dtypec.h134 int typec_partner_set_identity(struct typec_partner *partner);
145 * Description of an Alternate Mode which a connector, cable plug or partner
157 void typec_partner_set_pd_revision(struct typec_partner *partner, u16 pd_revision);
158 int typec_partner_set_num_altmodes(struct typec_partner *partner, int num_altmodes);
160 *typec_partner_register_altmode(struct typec_partner *partner,
220 * struct typec_partner_desc - USB Type-C Partner Descriptor
229 * Details about a partner that is attached to USB Type-C port. If @identity
230 * member exists when partner is registered, a directory named "identity" is
231 * created to sysfs for the partner device.
235 * from the partner, or a "Request" message received from the partner, depending
[all …]
/linux-6.14.4/arch/powerpc/platforms/pseries/
Dhvcserver.c56 * @head: list_head pointer for an allocated list of partner info structs to
59 * This function is used to free the partner info list that was returned by
95 * hvcs_get_partner_info - Get all of the partner info for a vty-server adapter
97 * function is fetching partner info.
99 * list of partner info fetched from the hypervisor to the caller.
102 * of the partner info retrieval.
104 * This function returns non-zero on success, or if there is no partner info.
110 * The first long of this buffer is used to store a partner unit address. The
111 * second long is used to store a partner partition ID and starting at
168 " allocate partner info struct.\n"); in hvcs_get_partner_info()
[all …]
/linux-6.14.4/arch/powerpc/include/asm/
Dhvcserver.h19 * hvcs_partner_info - an element in a list of partner info
21 * partner info.
22 * @unit_address: The partner unit address of this entry.
23 * @partition_ID: The partner partition ID of this entry.
27 * This structure outlines the format that partner info is presented to a caller
28 * of the hvcs partner info fetching functions. These are strung together into
/linux-6.14.4/drivers/net/dsa/xrs700x/
Dxrs700x.c565 struct dsa_port *partner = NULL, *dp; in xrs700x_hsr_join() local
594 partner = dp; in xrs700x_hsr_join()
602 if (!partner) in xrs700x_hsr_join()
605 regmap_fields_write(priv->ps_forward, partner->index, in xrs700x_hsr_join()
609 regmap_write(priv->regmap, XRS_HSR_CFG(partner->index), in xrs700x_hsr_join()
619 val &= ~BIT(partner->index); in xrs700x_hsr_join()
624 regmap_write(priv->regmap, XRS_PORT_FWD_MASK(partner->index), val); in xrs700x_hsr_join()
627 regmap_fields_write(priv->ps_forward, partner->index, in xrs700x_hsr_join()
636 ret = xrs700x_port_add_hsrsup_ipf(ds, partner->index, fwd ? port : -1); in xrs700x_hsr_join()
640 ret = xrs700x_port_add_hsrsup_ipf(ds, port, fwd ? partner->index : -1); in xrs700x_hsr_join()
[all …]
/linux-6.14.4/Documentation/ABI/obsolete/
Dsysfs-class-typec4 What: /sys/class/typec/<port|partner|cable>/<dev>/svid
11 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/
20 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/description
27 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/vdo
34 What: /sys/class/typec/<port|partner|cable>/<dev>/mode<index>/active
/linux-6.14.4/include/uapi/linux/
Dmii.h21 #define MII_LPA 0x05 /* Link partner ability reg */
95 /* Link partner ability register. */
109 #define LPA_RFAULT 0x2000 /* Link partner faulted */
110 #define LPA_LPACK 0x4000 /* Link partner acked us */
120 #define EXPANSION_NPCAPABLE 0x0008 /* Link partner supports npage */
149 #define LPA_SGMII_LINK 0x8000 /* PHY link with copper-side partner */
161 #define LPA_1000LOCALRXOK 0x2000 /* Link partner local receiver status */
162 #define LPA_1000REMRXOK 0x1000 /* Link partner remote receiver status */
163 #define LPA_1000FULL 0x0800 /* Link partner 1000BASE-T full duplex */
164 #define LPA_1000HALF 0x0400 /* Link partner 1000BASE-T half duplex */
/linux-6.14.4/tools/testing/selftests/drivers/net/hw/
Dethtool_extended_state.sh55 "Autoneg" "No partner detected")
58 log_test "Autoneg, No partner detected"
80 "Autoneg" "No partner detected during force mode")
84 "Autoneg" "No partner detected during force mode")
87 log_test "Autoneg, No partner detected during force mode"
Dnic_link_layer.py9 #Connect the DUT PC with NIC card to partner pc back via ethernet medium of your choice(RJ45, T1)
11 # DUT PC Partner PC
37 KsftSkipEx("Partner interface is not available")
46 """Verifying the autonegotiation state in partner"""
/linux-6.14.4/tools/testing/selftests/drivers/net/hw/lib/py/
Dlinkconfig.py27 """Get partner interface name"""
33 ksft_pr(f"Partner Interface name: {partner_netif}")
35 ksft_pr("Unable to get the partner interface name")
37 print(f"Unexpected error occurred while getting partner interface name: {e}")
66 ksft_pr("Partner interface not available")
124 """Set the autonegotiation state for the partner"""
171 partner_link_modes = self.get_ethtool_field("link-partner-advertised-link-modes")
175 raise KsftSkipEx(f"Partner link modes not available for {self.cfg.ifname}")
210 ksft_pr(f"Partner interface name is unavailable.")
/linux-6.14.4/net/dsa/
Dtag_xrs700x.c16 struct dsa_port *partner, *dp = dsa_user_to_port(dev); in xrs700x_xmit() local
23 dsa_hsr_foreach_port(partner, dp->ds, dp->hsr_dev) in xrs700x_xmit()
24 if (partner != dp) in xrs700x_xmit()
25 trailer[0] |= BIT(partner->index); in xrs700x_xmit()
/linux-6.14.4/drivers/platform/chrome/
Dcros_ec_typec.c158 port->partner = typec_register_partner(port->port, &p_desc); in cros_typec_add_partner()
159 if (IS_ERR(port->partner)) { in cros_typec_add_partner()
160 ret = PTR_ERR(port->partner); in cros_typec_add_partner()
161 port->partner = NULL; in cros_typec_add_partner()
215 if (!port->partner) in cros_typec_remove_partner()
220 typec_partner_set_usb_power_delivery(port->partner, NULL); in cros_typec_remove_partner()
231 typec_unregister_partner(port->partner); in cros_typec_remove_partner()
232 port->partner = NULL; in cros_typec_remove_partner()
454 * Spoof the VDOs that were likely communicated by the partner for TBT alt
511 /* Spoof the VDOs that were likely communicated by the partner. */
[all …]
Dcros_ec_typec.h51 struct typec_partner *partner; member
55 /* Port partner PD identity info. */
71 /* Flag indicating that PD partner discovery data parsing is completed. */
/linux-6.14.4/drivers/tty/hvc/
Dhvcs.c36 * partner possibilities.
38 * Firmware does not provide notification of vty partner changes to this
39 * driver. This means that an HMC Super Admin may add or remove partner vtys
40 * from a vty-server's partner list but the changes will not be signaled to
44 * rescanning partner information upon a user's request.
133 * tty_device pointers when the number of vty-server & vty partner connections
143 * vty-server & vty partner connections.
202 /* Status of partner info rescan triggered via sysfs. */
242 * partner info.
284 uint32_t p_unit_address; /* partner unit address */
[all …]
/linux-6.14.4/Documentation/networking/diagnostic/
Dtwisted_pair_layer1_diagnostics.rst38 partner** and will focus on diagnosing issues locally.
89 misconfiguration, or no connection at the link partner. In this case,
192 Link partner advertised link modes: 10baseT/Half 10baseT/Full
194 Link partner advertised pause frame use: Symmetric Receive-only
195 Link partner advertised auto-negotiation: Yes
196 Link partner advertised FEC modes: Not reported
268 partner. You can increase the power limit as needed.
330 the state of the link partner. The results from the cable test will help in
349 results can be influenced by the link partner's state. Refer to the
378 local hardware and the link partner**. The accuracy and reliability of the
[all …]
/linux-6.14.4/drivers/net/bonding/
Dbond_3ad.c162 * __agg_has_partner - see if we have a partner
165 * Return nonzero if aggregator has a partner (denoted by a non-zero ether
166 * address for the partner). Return 0 if not.
489 * newly received lacpdu. Parameter values for the partner carried in the
532 * the current partner operational parameter values and sets
538 struct port_params *partner = &port->partner_oper; in __record_pdu() local
541 /* record the new parameter values for the partner in __record_pdu()
544 partner->port_number = ntohs(lacpdu->actor_port); in __record_pdu()
545 partner->port_priority = ntohs(lacpdu->actor_port_priority); in __record_pdu()
546 partner->system = lacpdu->actor_system; in __record_pdu()
[all …]
/linux-6.14.4/drivers/usb/typec/ucsi/
Ducsi.c174 dev_warn(ucsi->dev, "Partner rejected swap\n"); in ucsi_read_error()
264 if (!con->partner) { in ucsi_poll_worker()
289 if (!con->partner) in ucsi_partner_task()
437 alt = typec_partner_register_altmode(con->partner, desc); in ucsi_register_altmode()
792 ret = typec_partner_set_identity(con->partner); in ucsi_get_partner_identity()
794 dev_err(con->ucsi->dev, "Failed to set partner identity (%d)\n", ret); in ucsi_get_partner_identity()
825 "con%d: failed to register partner alt modes (%d)\n", in ucsi_check_altmodes()
831 typec_partner_set_num_altmodes(con->partner, num_partner_am); in ucsi_check_altmodes()
835 typec_partner_set_num_altmodes(con->partner, 0); in ucsi_check_altmodes()
871 con->partner_pd = typec_partner_usb_power_delivery_register(con->partner, &desc); in ucsi_register_partner_pdos()
[all …]
/linux-6.14.4/drivers/net/phy/
Dlinkmode.c7 * @partner_adv: partner advertisement in ethtool format
15 * Local device Link partner
67 * Local device Link partner
75 * Local device Link partner
/linux-6.14.4/drivers/net/ethernet/intel/igc/
Digc_mac.c115 * function. Assuming the adapter has a valid link partner, a valid link
398 * different link partner. in igc_check_for_copper_link()
442 * partner.
464 * and if so, how the PHY and link partner has flow control in igc_config_fc_after_link_up()
503 * for both the PHY and the link partner. The following in igc_config_fc_after_link_up()
509 * LOCAL DEVICE | LINK PARTNER in igc_config_fc_after_link_up()
527 * LOCAL DEVICE | LINK PARTNER in igc_config_fc_after_link_up()
552 * LOCAL DEVICE | LINK PARTNER in igc_config_fc_after_link_up()
566 * LOCAL DEVICE | LINK PARTNER in igc_config_fc_after_link_up()
582 * partner. So if we advertised no flow control, that is in igc_config_fc_after_link_up()
[all …]

12345678910>>...12