Lines Matching refs:plug
253 * @sop: Cable plug target for Enter Mode command
256 * Alternate mode drivers use this function to enter mode on the cable plug.
285 * @sop: Cable plug target for Exit Mode command
287 * The alternate mode drivers use this function to exit mode on the cable plug.
310 * typec_cable_altmode_vdm - Send Vendor Defined Messages (VDM) between the cable plug and port.
312 * @sop: Cable plug target for VDM
337 if (!altmode->plug[sop])
339 pdev = &altmode->plug[sop]->adev;
353 * typec_altmode_get_plug - Find cable plug alternate mode
355 * @index: Cable plug index
357 * Increment reference count for cable plug alternate mode device. Returns
358 * handle to the cable plug alternate mode, or NULL if none is found.
365 if (port->plug[index]) {
366 get_device(&port->plug[index]->adev.dev);
367 return &port->plug[index]->adev;
375 * typec_altmode_put_plug - Decrement cable plug alternate mode reference count
376 * @plug: Handle to the cable plug alternate mode
378 void typec_altmode_put_plug(struct typec_altmode *plug)
380 if (plug)
381 put_device(&plug->dev);