/linux-3.3/drivers/infiniband/core/ |
D | device.c | 70 static int ib_device_check_mandatory(struct ib_device *device) in ib_device_check_mandatory() argument 100 if (!*(void **) ((void *) device + mandatory_table[i].offset)) { in ib_device_check_mandatory() 101 printk(KERN_WARNING "Device %s is missing mandatory function %s\n", in ib_device_check_mandatory() 102 device->name, mandatory_table[i].name); in ib_device_check_mandatory() 112 struct ib_device *device; in __ib_device_get_by_name() local 114 list_for_each_entry(device, &device_list, core_list) in __ib_device_get_by_name() 115 if (!strncmp(name, device->name, IB_DEVICE_NAME_MAX)) in __ib_device_get_by_name() 116 return device; in __ib_device_get_by_name() 126 struct ib_device *device; in alloc_name() local 133 list_for_each_entry(device, &device_list, core_list) { in alloc_name() [all …]
|
D | cache.c | 57 struct ib_device *device; member 61 static inline int start_port(struct ib_device *device) in start_port() argument 63 return (device->node_type == RDMA_NODE_IB_SWITCH) ? 0 : 1; in start_port() 66 static inline int end_port(struct ib_device *device) in end_port() argument 68 return (device->node_type == RDMA_NODE_IB_SWITCH) ? in end_port() 69 0 : device->phys_port_cnt; in end_port() 72 int ib_get_cached_gid(struct ib_device *device, in ib_get_cached_gid() argument 81 if (port_num < start_port(device) || port_num > end_port(device)) in ib_get_cached_gid() 84 read_lock_irqsave(&device->cache.lock, flags); in ib_get_cached_gid() 86 cache = device->cache.gid_cache[port_num - start_port(device)]; in ib_get_cached_gid() [all …]
|
/linux-3.3/drivers/s390/char/ |
D | tape_core.c | 3 * basic function of the tape device driver 94 tape_medium_state_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_medium_state_show() 106 tape_first_minor_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_first_minor_show() 118 tape_state_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_state_show() 131 tape_operation_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_operation_show() 158 tape_blocksize_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_blocksize_show() 187 tape_state_set(struct tape_device *device, enum tape_state newstate) in tape_state_set() argument 191 if (device->tape_state == TS_NOT_OPER) { in tape_state_set() 195 DBF_EVENT(4, "ts. dev: %x\n", device->first_minor); in tape_state_set() 197 if (device->tape_state < TS_SIZE && device->tape_state >=0 ) in tape_state_set() [all …]
|
D | tape_char.c | 3 * character device frontend for tape device driver 64 tapechar_setup_device(struct tape_device * device) in tapechar_setup_device() argument 68 sprintf(device_name, "ntibm%i", device->first_minor / 2); in tapechar_setup_device() 69 device->nt = register_tape_dev( in tapechar_setup_device() 70 &device->cdev->dev, in tapechar_setup_device() 71 MKDEV(tapechar_major, device->first_minor), in tapechar_setup_device() 77 device->rt = register_tape_dev( in tapechar_setup_device() 78 &device->cdev->dev, in tapechar_setup_device() 79 MKDEV(tapechar_major, device->first_minor + 1), in tapechar_setup_device() 89 tapechar_cleanup_device(struct tape_device *device) in tapechar_cleanup_device() argument [all …]
|
D | tape_std.c | 3 * standard tape device functions for ibm tapes. 39 struct tape_device * device; in tape_std_assign_timeout() local 43 device = request->device; in tape_std_assign_timeout() 44 BUG_ON(!device); in tape_std_assign_timeout() 46 DBF_EVENT(3, "%08x: Assignment timeout. Device busy.\n", in tape_std_assign_timeout() 47 device->cdev_id); in tape_std_assign_timeout() 48 rc = tape_cancel_io(device, request); in tape_std_assign_timeout() 51 "%i\n", device->cdev_id, rc); in tape_std_assign_timeout() 55 tape_std_assign(struct tape_device *device) in tape_std_assign() argument 70 * The assign command sometimes blocks if the device is assigned in tape_std_assign() [all …]
|
D | tape_3590.c | 3 * tape device discipline for 3590 tapes. 38 * - Read Device (buffered) log: BRA 62 [0x40] = "Device Intervention", 84 [0x90] = "Device fenced", 85 [0x91] = "Device Path fenced", 103 static int crypt_supported(struct tape_device *device) in crypt_supported() argument 105 return TAPE390_CRYPT_SUPPORTED(TAPE_3590_CRYPT_INFO(device)); in crypt_supported() 108 static int crypt_enabled(struct tape_device *device) in crypt_enabled() argument 110 return TAPE390_CRYPT_ON(TAPE_3590_CRYPT_INFO(device)); in crypt_enabled() 201 static int tape_3592_kekl_query(struct tape_device *device, in tape_3592_kekl_query() argument [all …]
|
/linux-3.3/include/linux/ |
D | pm_runtime.h | 2 * pm_runtime.h - Device run-time power management helper functions. 12 #include <linux/device.h> 30 extern int __pm_runtime_idle(struct device *dev, int rpmflags); 31 extern int __pm_runtime_suspend(struct device *dev, int rpmflags); 32 extern int __pm_runtime_resume(struct device *dev, int rpmflags); 33 extern int pm_schedule_suspend(struct device *dev, unsigned int delay); 34 extern int __pm_runtime_set_status(struct device *dev, unsigned int status); 35 extern int pm_runtime_barrier(struct device *dev); 36 extern void pm_runtime_enable(struct device *dev); 37 extern void __pm_runtime_disable(struct device *dev, bool check_resume); [all …]
|
D | device.h | 2 * device.h - generic, centralized driver model 26 #include <asm/device.h> 28 struct device; 53 * struct bus_type - The bus type of the device 57 * @dev_root: Default device to use as the parent. 60 * @drv_attrs: Default attributes of the device drivers on the bus. 61 * @match: Called, perhaps multiple times, whenever a new device or driver 63 * given device can be handled by the given driver. 64 * @uevent: Called when a device is added, removed, or a few other things 66 * @probe: Called when a new device or driver add to this bus, and callback [all …]
|
D | attribute_container.h | 12 #include <linux/device.h> 22 int (*match)(struct attribute_container *, struct device *); 41 void attribute_container_create_device(struct device *dev, 43 struct device *, 44 struct device *)); 45 void attribute_container_add_device(struct device *dev, 47 struct device *, 48 struct device *)); 49 void attribute_container_remove_device(struct device *dev, 51 struct device *, [all …]
|
/linux-3.3/drivers/firewire/ |
D | core-device.c | 2 * Device probing and sysfs code. 24 #include <linux/device.h> 168 static bool is_fw_unit(struct device *dev); 170 static int fw_unit_match(struct device *dev, struct device_driver *drv) in fw_unit_match() 200 static int fw_unit_uevent(struct device *dev, struct kobj_uevent_env *env) in fw_unit_uevent() 219 int fw_device_enable_phys_dma(struct fw_device *device) in fw_device_enable_phys_dma() argument 221 int generation = device->generation; in fw_device_enable_phys_dma() 223 /* device->node_id, accessed below, must not be older than generation */ in fw_device_enable_phys_dma() 226 return device->card->driver->enable_phys_dma(device->card, in fw_device_enable_phys_dma() 227 device->node_id, in fw_device_enable_phys_dma() [all …]
|
/linux-3.3/drivers/s390/block/ |
D | dasd.c | 54 MODULE_DESCRIPTION("Linux on S/390 DASD device driver," 80 * SECTION: Operations on the device structure. 87 * Allocate memory for a new device structure. 91 struct dasd_device *device; in dasd_alloc_device() local 93 device = kzalloc(sizeof(struct dasd_device), GFP_ATOMIC); in dasd_alloc_device() 94 if (!device) in dasd_alloc_device() 97 /* Get two pages for normal block device operations. */ in dasd_alloc_device() 98 device->ccw_mem = (void *) __get_free_pages(GFP_ATOMIC | GFP_DMA, 1); in dasd_alloc_device() 99 if (!device->ccw_mem) { in dasd_alloc_device() 100 kfree(device); in dasd_alloc_device() [all …]
|
D | dasd_alias.c | 25 * - A device is connected to an lcu as long as the device exists. 27 * device is checked by the eckd discipline and 29 * before the device is deleted. 31 * functions mark the point when a device is 'ready for service'. 35 * - dasd_alias_get_start_dev will find an alias device that can be used 36 * instead of the base device and does some (very simple) load balancing. 181 * so this function must be called first for a new device. 186 int dasd_alias_make_device_known_to_lcu(struct dasd_device *device) in dasd_alias_make_device_known_to_lcu() argument 194 private = (struct dasd_eckd_private *) device->private; in dasd_alias_make_device_known_to_lcu() 196 device->discipline->get_uid(device, &uid); in dasd_alias_make_device_known_to_lcu() [all …]
|
D | dasd_devmap.c | 10 * Device mapping and dasd= parameter parsing functions. All devmap 38 * between device number and device index. To find a dasd_devmap_t 39 * that corresponds to a device number of a device index each 41 * the device number and one to search by the device index. As 42 * soon as big minor numbers are available the device index list 43 * can be removed since the device number will then be identical 44 * to the device index. 51 struct dasd_device *device; member 129 * Read a device busid/devno from a string. 140 pr_err("The IPL device is not a CCW device\n"); in dasd_busid() [all …]
|
/linux-3.3/drivers/hid/ |
D | hid-roccat.c | 15 * Module roccat is a char device used to report special events of roccat 18 * not stored in device. The information in these events depends on hid device 48 struct device *dev; 65 struct roccat_device *device; member 80 struct roccat_device *device = reader->device; in roccat_read() local 85 mutex_lock(&device->cbuf_lock); in roccat_read() 88 if (reader->cbuf_start == device->cbuf_end) { in roccat_read() 89 add_wait_queue(&device->wait, &wait); in roccat_read() 93 while (reader->cbuf_start == device->cbuf_end) { in roccat_read() 102 if (!device->exist) { in roccat_read() [all …]
|
/linux-3.3/Documentation/power/ |
D | runtime_pm.txt | 11 * The power management workqueue pm_wq in which bus types and device drivers can 18 * A number of runtime PM fields in the 'power' member of 'struct device' (which 22 * Three device runtime PM callbacks in 'struct dev_pm_ops' (defined in 28 device drivers are encouraged to use these functions. 30 The runtime PM callbacks present in 'struct dev_pm_ops', the device runtime PM 34 2. Device Runtime PM Callbacks 36 There are three device runtime PM callbacks defined in 'struct dev_pm_ops': 40 int (*runtime_suspend)(struct device *dev); 41 int (*runtime_resume)(struct device *dev); 42 int (*runtime_idle)(struct device *dev); [all …]
|
D | pci.txt | 10 devices. For general description of the kernel's interfaces related to device 17 2. PCI Subsystem and Device Power Management 18 3. PCI Device Drivers and Power Management 31 Usually, a device is put into a low-power state when it is underutilized or 32 completely inactive. However, when it is necessary to use the device once 34 state). This may happen when there are some data for the device to handle or 35 as a result of an external event requiring the device to be active, which may 36 be signaled by the device itself. 38 PCI devices may be put into low-power states in two ways, by using the device 42 in what follows, the device power state is changed as a result of writing a [all …]
|
/linux-3.3/drivers/acpi/ |
D | scan.c | 27 #define ACPI_IS_ROOT_DEVICE(device) (!(device)->parent) argument 29 static const char *dummy_hid = "device"; 44 * e.g. on a device with hid:IBM0001 and cid:ACPI0001 you get: 73 acpi_device_modalias_show(struct device *dev, struct device_attribute *attr, char *buf) { in acpi_device_modalias_show() 77 /* Device has no HID and no CID or string is >1024 */ in acpi_device_modalias_show() 88 struct acpi_device *device; in acpi_bus_hot_remove_device() local 94 if (acpi_bus_get_device(handle, &device)) in acpi_bus_hot_remove_device() 97 if (!device) in acpi_bus_hot_remove_device() 101 "Hot-removing device %s...\n", dev_name(&device->dev))); in acpi_bus_hot_remove_device() 103 if (acpi_bus_trim(device, 1)) { in acpi_bus_hot_remove_device() [all …]
|
D | video.c | 50 #define ACPI_VIDEO_DEVICE_NAME "Video Device" 90 static int acpi_video_bus_add(struct acpi_device *device); 91 static int acpi_video_bus_remove(struct acpi_device *device, int type); 92 static void acpi_video_bus_notify(struct acpi_device *device, u32 event); 122 u8 _GPD:1; /*Get POST Device */ 123 u8 _SPD:1; /*Set POST Device */ 133 u32 bios_can_detect:1; /*BIOS can detect the device */ 134 u32 depend_on_vga:1; /*Non-VGA output device whose power is related to 135 the VGA device. */ 138 u32 device_id_scheme:1; /*Device ID Scheme */ [all …]
|
/linux-3.3/drivers/base/power/ |
D | power.h | 5 extern void pm_runtime_init(struct device *dev); 6 extern void pm_runtime_remove(struct device *dev); 10 static inline void pm_runtime_init(struct device *dev) {} in pm_runtime_init() 11 static inline void pm_runtime_remove(struct device *dev) {} in pm_runtime_remove() 21 extern struct list_head dpm_list; /* The active device list */ 23 static inline struct device *to_device(struct list_head *entry) in to_device() 25 return container_of(entry, struct device, power.entry); in to_device() 28 extern void device_pm_init(struct device *dev); 29 extern void device_pm_add(struct device *); 30 extern void device_pm_remove(struct device *); [all …]
|
/linux-3.3/drivers/pci/ |
D | search.c | 19 * find the upstream PCIe-to-PCI bridge of a PCI device 20 * if the device is PCIE, return NULL 21 * if the device isn't connected to a PCIe bridge (that is its parent is a 41 /* PCI device should connect to a PCIe bridge */ in pci_find_upstream_pcie_bridge() 99 * @from is not %NULL, searches continue from next device on the 118 * pci_get_slot - locate PCI device for a given PCI slot 119 * @bus: PCI bus on which desired PCI device resides 121 * device resides and the logical device number within that slot 124 * Given a PCI bus and slot/function number, the desired PCI device 126 * If the device is found, its reference count is increased and this [all …]
|
/linux-3.3/Documentation/driver-model/ |
D | class.txt | 2 Device Classes 7 A device class describes a type of device, like an audio or network 8 device. The following device classes have been identified: 10 <Insert List of Device Classes Here> 13 Each device class defines a set of semantics and a programming interface 14 that devices of that class adhere to. Device drivers are the 15 implementation of that programming interface for a particular device on 18 Device classes are agnostic with respect to what bus a device resides 24 The device class structure looks like: 27 typedef int (*devclass_add)(struct device *); [all …]
|
/linux-3.3/drivers/base/ |
D | core.c | 2 * drivers/base/core.c - core driver model code (device registration, etc) 13 #include <linux/device.h> 43 int (*platform_notify)(struct device *dev) = NULL; 44 int (*platform_notify_remove)(struct device *dev) = NULL; 50 static inline int device_is_not_partition(struct device *dev) in device_is_not_partition() 55 static inline int device_is_not_partition(struct device *dev) in device_is_not_partition() 62 * dev_driver_string - Return a device's driver name, if at all possible 63 * @dev: struct device to get the name of 65 * Will return the device's driver's name if it is bound to a device. If 66 * the device is not bound to a device, it will return the name of the bus [all …]
|
/linux-3.3/Documentation/s390/ |
D | driver-model.txt | 23 In this example, device 0815 is accessed via subchannel 0 in subchannel set 0, 24 device 4711 via subchannel 1 in subchannel set 0, and subchannel 2 is a non-I/O 25 subchannel. Device 1234 is accessed via subchannel 0 in subchannel set 1. 29 if they are displaced by another ccw device becoming operational on their 33 You should address a ccw device via its bus id (e.g. 0.0.4711); the device can 40 devtype: The device type / model, if applicable. 42 availability: Can be 'good' or 'boxed'; 'no path' or 'no device' for 45 online: An interface to set the device online and offline. 46 In the special case of the device being disconnected (see the 48 the device. [all …]
|
D | cds.txt | 3 Common Device Support (CDS) 4 Device Driver I/O Support Routines 13 This document describes the common device support routines for Linux/390. 15 I/O access method. This gives relief to the device drivers as they don't 19 either every single device driver needs to implement the hardware I/O 22 every single device driver would have to provide itself. 28 In order to build common device support for ESA/390 I/O interfaces, a 32 The common device support layer comprises the I/O support routines defined 33 below. Some of them implement common Linux device driver interfaces, while 50 * The channel device layer is gone. [all …]
|
/linux-3.3/Documentation/ABI/testing/ |
D | sysfs-bus-pci | 5 Writing a device location to this file will cause 6 the driver to attempt to bind to the device found at 9 That is Domain:Bus:Device.Function and is the same as 18 Writing a device location to this file will cause the 19 driver to attempt to unbind from the device found at 22 That is Domain:Bus:Device.Function and is the same as 31 Writing a device ID to this file will attempt to 32 dynamically add a new device ID to a PCI device driver. 34 was included in the driver's static device ID support 35 table at compile time. The format for the device ID is: [all …]
|