/drivers/usb/typec/ |
D | bus.c | 65 port_altmode = is_port ? to_altmode(adev) : to_altmode(adev)->partner; in typec_altmode_set_state() 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() 128 struct altmode *partner = to_altmode(adev)->partner; in typec_altmode_enter() local 129 struct typec_altmode *pdev = &partner->adev; in typec_altmode_enter() 159 struct altmode *partner = to_altmode(adev)->partner; in typec_altmode_exit() local [all …]
|
D | class.c | 62 struct typec_partner *partner = to_typec_partner(dev); in get_pd_identity() local 64 return partner->identity; in get_pd_identity() 240 struct altmode *partner; in typec_altmode_set_partner() local 248 partner = to_altmode(to_typec_altmode(dev)); in typec_altmode_set_partner() 249 altmode->partner = partner; in typec_altmode_set_partner() 255 partner->plug[plug->index] = altmode; in typec_altmode_set_partner() 257 partner->partner = altmode; in typec_altmode_set_partner() 263 struct altmode *partner = altmode->partner; in typec_altmode_put_partner() local 267 if (!partner) in typec_altmode_put_partner() 271 partner_adev = &partner->adev; in typec_altmode_put_partner() [all …]
|
D | wusb3801.c | 89 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()
|
D | stusb160x.c | 157 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() 805 if (chip->partner) { in stusb160x_remove() [all …]
|
D | anx7411.c | 247 struct typec_partner *partner; member 377 struct typec_partner *partner; in anx7411_register_partner() local 379 if (ctx->typec.partner) in anx7411_register_partner() 385 partner = typec_register_partner(ctx->typec.port, &desc); in anx7411_register_partner() 386 if (IS_ERR(partner)) in anx7411_register_partner() 387 return PTR_ERR(partner); in anx7411_register_partner() 389 ctx->typec.partner = partner; in anx7411_register_partner() 570 ctx->typec.amode[i] = typec_partner_register_altmode(ctx->typec.partner, in anx7411_typec_register_altmode() 584 if (ctx->typec.partner) { in anx7411_unregister_partner() 585 typec_unregister_partner(ctx->typec.partner); in anx7411_unregister_partner() [all …]
|
D | rt1719.c | 91 struct typec_partner *partner; member 244 if (data->partner) in rt1719_register_partner() 245 typec_unregister_partner(data->partner); in rt1719_register_partner() 256 data->partner = typec_register_partner(data->port, &data->partner_desc); in rt1719_register_partner() 294 typec_unregister_partner(data->partner); in rt1719_detach() 295 data->partner = NULL; in rt1719_detach()
|
D | bus.h | 26 struct altmode *partner; member
|
/drivers/net/dsa/xrs700x/ |
D | xrs700x.c | 554 struct dsa_port *partner = NULL, *dp; in xrs700x_hsr_join() local 578 partner = dp; in xrs700x_hsr_join() 586 if (!partner) in xrs700x_hsr_join() 589 regmap_fields_write(priv->ps_forward, partner->index, in xrs700x_hsr_join() 593 regmap_write(priv->regmap, XRS_HSR_CFG(partner->index), in xrs700x_hsr_join() 603 val &= ~BIT(partner->index); in xrs700x_hsr_join() 608 regmap_write(priv->regmap, XRS_PORT_FWD_MASK(partner->index), val); in xrs700x_hsr_join() 611 regmap_fields_write(priv->ps_forward, partner->index, in xrs700x_hsr_join() 620 ret = xrs700x_port_add_hsrsup_ipf(ds, partner->index, fwd ? port : -1); in xrs700x_hsr_join() 624 ret = xrs700x_port_add_hsrsup_ipf(ds, port, fwd ? partner->index : -1); in xrs700x_hsr_join() [all …]
|
/drivers/usb/typec/ucsi/ |
D | ucsi.c | 230 if (!con->partner) { in ucsi_poll_worker() 255 if (!con->partner) in ucsi_partner_task() 403 alt = typec_partner_register_altmode(con->partner, desc); in ucsi_register_altmode() 669 typec_partner_set_num_altmodes(con->partner, num_partner_am); in ucsi_check_altmodes() 718 return typec_partner_set_usb_power_delivery(con->partner, con->partner_pd); in ucsi_register_partner_pdos() 760 struct typec_partner *partner; in ucsi_register_partner() local 762 if (con->partner) in ucsi_register_partner() 780 partner = typec_register_partner(con->port, &desc); in ucsi_register_partner() 781 if (IS_ERR(partner)) { in ucsi_register_partner() 784 PTR_ERR(partner)); in ucsi_register_partner() [all …]
|
D | displayport.c | 225 typec_partner_set_svdm_version(dp->con->partner, PD_VDO_SVDM_VER(header)); in ucsi_displayport_vdm()
|
D | ucsi.h | 351 struct typec_partner *partner; member
|
/drivers/platform/chrome/ |
D | cros_ec_typec.c | 138 port->partner = typec_register_partner(port->port, &p_desc); in cros_typec_add_partner() 139 if (IS_ERR(port->partner)) { in cros_typec_add_partner() 140 ret = PTR_ERR(port->partner); in cros_typec_add_partner() 141 port->partner = NULL; in cros_typec_add_partner() 195 if (!port->partner) in cros_typec_remove_partner() 200 typec_partner_set_usb_power_delivery(port->partner, NULL); in cros_typec_remove_partner() 211 typec_unregister_partner(port->partner); in cros_typec_remove_partner() 212 port->partner = NULL; in cros_typec_remove_partner() 689 if (typec->ports[port_num]->partner) in cros_typec_set_port_params_v1() 727 amode = typec_partner_register_altmode(port->partner, &desc); in cros_typec_register_altmodes() [all …]
|
D | cros_ec_typec.h | 50 struct typec_partner *partner; member
|
/drivers/net/bonding/ |
D | bond_3ad.c | 491 struct port_params *partner = &port->partner_oper; in __record_pdu() local 497 partner->port_number = ntohs(lacpdu->actor_port); in __record_pdu() 498 partner->port_priority = ntohs(lacpdu->actor_port_priority); in __record_pdu() 499 partner->system = lacpdu->actor_system; in __record_pdu() 500 partner->system_priority = ntohs(lacpdu->actor_system_priority); in __record_pdu() 501 partner->key = ntohs(lacpdu->actor_key); in __record_pdu() 502 partner->port_state = lacpdu->actor_state; in __record_pdu() 512 partner->port_state |= LACP_STATE_SYNCHRONIZATION; in __record_pdu() 516 partner->port_state &= ~LACP_STATE_SYNCHRONIZATION; in __record_pdu() 559 const struct port_params *partner = &port->partner_oper; in __update_selected() local [all …]
|
/drivers/net/ethernet/3com/ |
D | 3c574_cs.c | 199 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()
|
/drivers/usb/typec/tipd/ |
D | core.c | 91 struct typec_partner *partner; member 233 if (tps->partner) in tps6598x_connect() 259 tps->partner = typec_register_partner(tps->port, &desc); in tps6598x_connect() 260 if (IS_ERR(tps->partner)) in tps6598x_connect() 261 return PTR_ERR(tps->partner); in tps6598x_connect() 264 typec_partner_set_identity(tps->partner); in tps6598x_connect() 273 if (!IS_ERR(tps->partner)) in tps6598x_disconnect() 274 typec_unregister_partner(tps->partner); in tps6598x_disconnect() 275 tps->partner = NULL; in tps6598x_disconnect()
|
/drivers/usb/typec/tcpm/ |
D | tcpm.c | 327 struct typec_partner *partner; member 1503 if (port->partner) in svdm_consume_identity() 1504 typec_partner_set_identity(port->partner); in svdm_consume_identity() 1592 if (!port->partner) in tcpm_register_partner_altmodes() 1596 altmode = typec_partner_register_altmode(port->partner, in tcpm_register_partner_altmodes() 1644 if (IS_ERR_OR_NULL(port->partner)) in tcpm_pd_svdm() 1648 typec_partner_set_svdm_version(port->partner, in tcpm_pd_svdm() 1706 if (IS_ERR_OR_NULL(port->partner)) in tcpm_pd_svdm() 1714 typec_partner_set_svdm_version(port->partner, in tcpm_pd_svdm() 3600 struct typec_partner *partner; in tcpm_typec_connect() local [all …]
|
/drivers/net/ethernet/ti/ |
D | tlan.c | 2236 u16 partner; in tlan_finish_reset() local 2269 &partner); in tlan_finish_reset() 2285 if (partner & (1 << i)) in tlan_finish_reset()
|
/drivers/net/ethernet/micrel/ |
D | ksz884x.c | 1137 u8 partner; member 2939 if (local == info->advertised && remote == info->partner) in port_get_link_speed() 2943 info->partner = remote; in port_get_link_speed() 5154 hw->port_info[p].partner = 0xFF; in netdev_open()
|