• Home
  • Raw
  • Download

Lines Matching refs:left

272 static int link_peers(struct usb_port *left, struct usb_port *right)  in link_peers()  argument
277 if (left->peer == right && right->peer == left) in link_peers()
280 if (left->peer || right->peer) { in link_peers()
281 struct usb_port *lpeer = left->peer; in link_peers()
285 if (left->location && left->location == right->location) in link_peers()
291 dev_name(&left->dev), dev_name(&right->dev), method, in link_peers()
292 dev_name(&left->dev), in link_peers()
299 rc = sysfs_create_link(&left->dev.kobj, &right->dev.kobj, "peer"); in link_peers()
302 rc = sysfs_create_link(&right->dev.kobj, &left->dev.kobj, "peer"); in link_peers()
304 sysfs_remove_link(&left->dev.kobj, "peer"); in link_peers()
313 if (left->is_superspeed) { in link_peers()
314 ss_port = left; in link_peers()
320 hs_port = left; in link_peers()
324 left->peer = right; in link_peers()
325 right->peer = left; in link_peers()
341 static void link_peers_report(struct usb_port *left, struct usb_port *right) in link_peers_report() argument
345 rc = link_peers(left, right); in link_peers_report()
347 dev_dbg(&left->dev, "peered to %s\n", dev_name(&right->dev)); in link_peers_report()
349 dev_dbg(&left->dev, "failed to peer to %s (%d)\n", in link_peers_report()
356 static void unlink_peers(struct usb_port *left, struct usb_port *right) in unlink_peers() argument
360 WARN(right->peer != left || left->peer != right, in unlink_peers()
362 dev_name(&left->dev), dev_name(&right->dev)); in unlink_peers()
369 if (left->is_superspeed) { in unlink_peers()
370 ss_port = left; in unlink_peers()
374 hs_port = left; in unlink_peers()
379 sysfs_remove_link(&left->dev.kobj, "peer"); in unlink_peers()
382 left->peer = NULL; in unlink_peers()