Home
last modified time | relevance | path

Searched refs:portdev (Results 1 – 3 of 3) sorted by relevance

/drivers/char/
Dvirtio_console.c184 struct ports_device *portdev; member
268 static struct port *find_port_by_devt_in_portdev(struct ports_device *portdev, in find_port_by_devt_in_portdev() argument
274 spin_lock_irqsave(&portdev->ports_lock, flags); in find_port_by_devt_in_portdev()
275 list_for_each_entry(port, &portdev->ports, list) in find_port_by_devt_in_portdev()
280 spin_unlock_irqrestore(&portdev->ports_lock, flags); in find_port_by_devt_in_portdev()
287 struct ports_device *portdev; in find_port_by_devt() local
292 list_for_each_entry(portdev, &pdrvdata.portdevs, list) { in find_port_by_devt()
293 port = find_port_by_devt_in_portdev(portdev, dev); in find_port_by_devt()
303 static struct port *find_port_by_id(struct ports_device *portdev, u32 id) in find_port_by_id() argument
308 spin_lock_irqsave(&portdev->ports_lock, flags); in find_port_by_id()
[all …]
/drivers/ide/
Dide-sysfs.c75 static ssize_t store_delete_devices(struct device *portdev, in store_delete_devices() argument
79 ide_hwif_t *hwif = dev_get_drvdata(portdev); in store_delete_devices()
91 static ssize_t store_scan(struct device *portdev, in store_scan() argument
95 ide_hwif_t *hwif = dev_get_drvdata(portdev); in store_scan()
119 rc = device_create_file(hwif->portdev, ide_port_attrs[i]); in ide_sysfs_register_port()
Dide-probe.c561 hwif->portdev = device_create(ide_port_class, &hwif->gendev, in ide_register_port()
563 if (IS_ERR(hwif->portdev)) { in ide_register_port()
564 ret = PTR_ERR(hwif->portdev); in ide_register_port()
1538 device_unregister(hwif->portdev); in ide_unregister()