Home
last modified time | relevance | path

Searched refs:partner (Results 1 – 25 of 73) sorted by relevance

123

/linux-6.15/drivers/usb/typec/
H A Dbus.c103 partner = altmode->partner; 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()
128 struct altmode *partner = to_altmode(adev)->partner; in typec_altmode_enter() local
159 struct altmode *partner = to_altmode(adev)->partner; in typec_altmode_exit() local
188 struct altmode *partner = to_altmode(adev)->partner; in typec_altmode_attention() local
191 if (!partner) in typec_altmode_attention()
261 struct altmode *partner = to_altmode(adev)->partner; in typec_cable_altmode_enter() local
267 if (!partner) in typec_cable_altmode_enter()
291 struct altmode *partner = to_altmode(adev)->partner; in typec_cable_altmode_exit() local
[all …]
H A Dclass.c258 altmode->partner = partner; 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
276 if (!partner) in typec_altmode_put_partner()
287 partner->partner = NULL; in typec_altmode_put_partner()
636 if (!partner || partner->usb_mode == mode) in typec_partner_set_usb_mode()
809 partner->attach(partner, dev); in typec_partner_link_device()
818 partner->deattach(partner, dev); in typec_partner_unlink_device()
901 if (IS_ERR_OR_NULL(partner) || partner->pd == pd) in typec_partner_set_usb_power_delivery()
1018 partner = kzalloc(sizeof(*partner), GFP_KERNEL); in typec_register_partner()
[all …]
H A 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()
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()
H A Dstusb160x.c157 struct typec_partner *partner; member
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()
805 typec_unregister_partner(chip->partner); in stusb160x_remove()
[all …]
H A Danx7411.c248 struct typec_partner *partner; member
380 struct typec_partner *partner; in anx7411_register_partner() local
382 if (ctx->typec.partner) in anx7411_register_partner()
389 if (IS_ERR(partner)) in anx7411_register_partner()
390 return PTR_ERR(partner); in anx7411_register_partner()
392 ctx->typec.partner = partner; in anx7411_register_partner()
587 if (ctx->typec.partner) { in anx7411_unregister_partner()
588 typec_unregister_partner(ctx->typec.partner); in anx7411_unregister_partner()
589 ctx->typec.partner = NULL; in anx7411_unregister_partner()
625 if (!ctx->typec.partner) in anx7411_register_altmode()
[all …]
H A Dclass.h43 void (*attach)(struct typec_partner *partner, struct device *dev);
44 void (*deattach)(struct typec_partner *partner, struct device *dev);
H A Dbus.h25 struct altmode *partner; member
H A Drt1719.c91 struct typec_partner *partner; member
238 if (data->partner) in rt1719_register_partner()
239 typec_unregister_partner(data->partner); in rt1719_register_partner()
250 data->partner = typec_register_partner(data->port, &data->partner_desc); in rt1719_register_partner()
288 typec_unregister_partner(data->partner); in rt1719_detach()
289 data->partner = NULL; in rt1719_detach()
/linux-6.15/include/linux/usb/
H A Dtypec.h134 int typec_partner_set_identity(struct typec_partner *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,
245 void (*attach)(struct typec_partner *partner, struct device *dev);
246 void (*deattach)(struct typec_partner *partner, struct device *dev);
325 void typec_unregister_partner(struct typec_partner *partner);
360 void typec_partner_set_svdm_version(struct typec_partner *partner,
367 struct usb_power_delivery *typec_partner_usb_power_delivery_register(struct typec_partner *partner,
371 int typec_partner_set_usb_power_delivery(struct typec_partner *partner,
[all …]
/linux-6.15/Documentation/ABI/testing/
H A Dsysfs-class-typec57 when both the port and the partner support USB Power Delivery.
120 specification of the port partner or cable, or 0.0 when USB
165 USB Type-C partner devices (eg. /sys/class/typec/port0-partner/)
167 What: /sys/class/typec/<port>-partner/accessory_mode
189 What: /sys/class/typec/<port>-partner/type
224 What: /sys/class/typec/<port>-partner/identity/
236 What: /sys/class/typec/<port>-partner/usb_mode
243 contract between the partner and the port.
298 USB Type-C partner/cable Power Delivery Identity objects
301 partner (e.g /sys/class/typec/port0-partner/) and
[all …]
/linux-6.15/drivers/net/dsa/xrs700x/
H A 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()
619 val &= ~BIT(partner->index); in xrs700x_hsr_join()
645 XRS_ETH_ADDR_CFG(partner->index, 1), 1, 1); in xrs700x_hsr_join()
649 hsr_pair[1] = partner->index; in xrs700x_hsr_join()
661 struct dsa_port *partner = NULL, *dp; in xrs700x_hsr_leave() local
669 partner = dp; in xrs700x_hsr_leave()
674 if (!partner) in xrs700x_hsr_leave()
699 XRS_ETH_ADDR_CFG(partner->index, 1), 1, 0); in xrs700x_hsr_leave()
[all …]
/linux-6.15/Documentation/driver-api/usb/
H A 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 …]
H A 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/.
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
90 If the partner is USB Power Delivery capable, and the port driver is able to
[all …]
/linux-6.15/net/dsa/
H A 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.15/Documentation/ABI/obsolete/
H A 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.15/drivers/usb/typec/ucsi/
H A Ducsi.c267 if (!con->partner) { in ucsi_poll_worker()
292 if (!con->partner) in ucsi_partner_task()
1044 if (con->partner) in ucsi_register_partner()
1073 if (IS_ERR(partner)) { in ucsi_register_partner()
1076 PTR_ERR(partner)); in ucsi_register_partner()
1077 return PTR_ERR(partner); in ucsi_register_partner()
1080 con->partner = partner; in ucsi_register_partner()
1094 if (!con->partner) in ucsi_unregister_partner()
1105 con->partner = NULL; in ucsi_unregister_partner()
1446 if (!con->partner) { in ucsi_dr_swap()
[all …]
/linux-6.15/drivers/platform/chrome/
H A Dcros_ec_typec.c184 if (IS_ERR(port->partner)) { in cros_typec_add_partner()
185 ret = PTR_ERR(port->partner); in cros_typec_add_partner()
186 port->partner = NULL; in cros_typec_add_partner()
240 if (!port->partner) in cros_typec_remove_partner()
245 typec_partner_set_usb_power_delivery(port->partner, NULL); in cros_typec_remove_partner()
256 typec_unregister_partner(port->partner); in cros_typec_remove_partner()
257 port->partner = NULL; in cros_typec_remove_partner()
781 if (typec->ports[port_num]->partner) in cros_typec_set_port_params_v1()
972 if (!port->partner) { in cros_typec_handle_sop_disc()
992 ret = typec_partner_set_identity(port->partner); in cros_typec_handle_sop_disc()
[all …]
H A Dcros_ec_typec.h52 struct typec_partner *partner; member
/linux-6.15/drivers/net/ethernet/3com/
H A D3c574_cs.c199 u16 advertising, partner; /* NWay media advertisement */ member
865 unsigned short /* cable, */ media, partner; in media_check() local
892 partner = mdio_read(ioaddr, lp->phys, 5); in media_check()
900 lp->partner = 0; in media_check()
903 } else if (partner) { in media_check()
904 partner &= lp->advertising; in media_check()
905 lp->partner = partner; in media_check()
908 (partner & 0x0180) ? 100 : 10, in media_check()
909 (partner & 0x0140) ? 'F' : 'H'); in media_check()
915 outb((partner & 0x0140 ? 0x20 : 0) | in media_check()
/linux-6.15/drivers/net/bonding/
H A Dbond_3ad.c538 struct port_params *partner = &port->partner_oper; in __record_pdu() local
544 partner->port_number = ntohs(lacpdu->actor_port); in __record_pdu()
546 partner->system = lacpdu->actor_system; in __record_pdu()
548 partner->key = ntohs(lacpdu->actor_key); in __record_pdu()
549 partner->port_state = lacpdu->actor_state; in __record_pdu()
559 partner->port_state |= LACP_STATE_SYNCHRONIZATION; in __record_pdu()
615 ntohs(lacpdu->actor_key) != partner->key || in __update_selected()
870 lacpdu->partner_system = partner->system; in __update_lacpdu_from_port()
871 lacpdu->partner_key = htons(partner->key); in __update_lacpdu_from_port()
873 lacpdu->partner_port = htons(partner->port_number); in __update_lacpdu_from_port()
[all …]
/linux-6.15/Documentation/networking/diagnostic/
H A 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.
349 results can be influenced by the link partner's state. Refer to the
387 partner.
538 - **No or empty "Link partner advertised link modes"**.
[all …]
/linux-6.15/arch/sh/include/mach-ecovec24/mach/
H A Dpartner-jet-setup.txt2 LIST "partner-jet-setup.txt"
8 LIST "> < partner-jet-setup.txt"
/linux-6.15/drivers/usb/typec/tipd/
H A Dcore.c131 struct typec_partner *partner; member
275 if (tps->partner) in tps6598x_connect()
301 tps->partner = typec_register_partner(tps->port, &desc); in tps6598x_connect()
302 if (IS_ERR(tps->partner)) in tps6598x_connect()
303 return PTR_ERR(tps->partner); in tps6598x_connect()
306 typec_partner_set_identity(tps->partner); in tps6598x_connect()
315 if (!IS_ERR(tps->partner)) in tps6598x_disconnect()
316 typec_unregister_partner(tps->partner); in tps6598x_disconnect()
317 tps->partner = NULL; in tps6598x_disconnect()
/linux-6.15/arch/sh/include/mach-kfr2r09/mach/
H A Dpartner-jet-setup.txt2 LIST "partner-jet-setup.txt - 20090729 Magnus Damm"
7 LIST "> < partner-jet-setup.txt"
/linux-6.15/Documentation/arch/powerpc/
H A Dhvcs.rst335 partner vty removals but not the addition of partner vtys. Since an HMC
336 Super Admin can add partner info dynamically we have provided the hvcs
338 firmware and update the partner info for all the vty-servers that this
371 provide lists of easily parsed partner vty data: "partner_vtys" and
388 Reading partner_vtys returns a list of partner vtys. Vty unit address
394 adapter. The first vty partner corresponds to the first clc item, the
395 second vty partner to the second clc item, etc.
398 "current_vty" prints the clc of the currently selected partner vty when
401 The current_vty can be changed by writing a valid partner clc to the entry

123