Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 3346) sorted by relevance

12345678910>>...134

/drivers/gpu/drm/nouveau/core/engine/device/
Dnv50.c54 nv50_identify(struct nouveau_device *device) in nv50_identify() argument
56 switch (device->chipset) { in nv50_identify()
58 device->cname = "G80"; in nv50_identify()
59 device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; in nv50_identify()
60 device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; in nv50_identify()
61 device->oclass[NVDEV_SUBDEV_I2C ] = &nv50_i2c_oclass; in nv50_identify()
62 device->oclass[NVDEV_SUBDEV_CLOCK ] = &nv50_clock_oclass; in nv50_identify()
63 device->oclass[NVDEV_SUBDEV_THERM ] = &nv50_therm_oclass; in nv50_identify()
64 device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; in nv50_identify()
65 device->oclass[NVDEV_SUBDEV_DEVINIT] = &nv50_devinit_oclass; in nv50_identify()
[all …]
Dnv40.c48 nv40_identify(struct nouveau_device *device) in nv40_identify() argument
50 switch (device->chipset) { in nv40_identify()
52 device->cname = "NV40"; in nv40_identify()
53 device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; in nv40_identify()
54 device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; in nv40_identify()
55 device->oclass[NVDEV_SUBDEV_I2C ] = &nv04_i2c_oclass; in nv40_identify()
56 device->oclass[NVDEV_SUBDEV_CLOCK ] = &nv40_clock_oclass; in nv40_identify()
57 device->oclass[NVDEV_SUBDEV_THERM ] = &nv40_therm_oclass; in nv40_identify()
58 device->oclass[NVDEV_SUBDEV_DEVINIT] = &nv1a_devinit_oclass; in nv40_identify()
59 device->oclass[NVDEV_SUBDEV_MC ] = &nv04_mc_oclass; in nv40_identify()
[all …]
Dnvc0.c54 nvc0_identify(struct nouveau_device *device) in nvc0_identify() argument
56 switch (device->chipset) { in nvc0_identify()
58 device->cname = "GF100"; in nvc0_identify()
59 device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; in nvc0_identify()
60 device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; in nvc0_identify()
61 device->oclass[NVDEV_SUBDEV_I2C ] = &nv94_i2c_oclass; in nvc0_identify()
62 device->oclass[NVDEV_SUBDEV_CLOCK ] = &nvc0_clock_oclass; in nvc0_identify()
63 device->oclass[NVDEV_SUBDEV_THERM ] = &nva3_therm_oclass; in nvc0_identify()
64 device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; in nvc0_identify()
65 device->oclass[NVDEV_SUBDEV_DEVINIT] = &nv50_devinit_oclass; in nvc0_identify()
[all …]
Dnv10.c45 nv10_identify(struct nouveau_device *device) in nv10_identify() argument
47 switch (device->chipset) { in nv10_identify()
49 device->cname = "NV10"; in nv10_identify()
50 device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; in nv10_identify()
51 device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; in nv10_identify()
52 device->oclass[NVDEV_SUBDEV_I2C ] = &nv04_i2c_oclass; in nv10_identify()
53 device->oclass[NVDEV_SUBDEV_CLOCK ] = &nv04_clock_oclass; in nv10_identify()
54 device->oclass[NVDEV_SUBDEV_DEVINIT] = &nv10_devinit_oclass; in nv10_identify()
55 device->oclass[NVDEV_SUBDEV_MC ] = &nv04_mc_oclass; in nv10_identify()
56 device->oclass[NVDEV_SUBDEV_BUS ] = &nv04_bus_oclass; in nv10_identify()
[all …]
Dnve0.c54 nve0_identify(struct nouveau_device *device) in nve0_identify() argument
56 switch (device->chipset) { in nve0_identify()
58 device->cname = "GK104"; in nve0_identify()
59 device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; in nve0_identify()
60 device->oclass[NVDEV_SUBDEV_GPIO ] = &nve0_gpio_oclass; in nve0_identify()
61 device->oclass[NVDEV_SUBDEV_I2C ] = &nvd0_i2c_oclass; in nve0_identify()
62 device->oclass[NVDEV_SUBDEV_CLOCK ] = &nvc0_clock_oclass; in nve0_identify()
63 device->oclass[NVDEV_SUBDEV_THERM ] = &nvd0_therm_oclass; in nve0_identify()
64 device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; in nve0_identify()
65 device->oclass[NVDEV_SUBDEV_DEVINIT] = &nv50_devinit_oclass; in nve0_identify()
[all …]
Dnv30.c46 nv30_identify(struct nouveau_device *device) in nv30_identify() argument
48 switch (device->chipset) { in nv30_identify()
50 device->cname = "NV30"; in nv30_identify()
51 device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; in nv30_identify()
52 device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; in nv30_identify()
53 device->oclass[NVDEV_SUBDEV_I2C ] = &nv04_i2c_oclass; in nv30_identify()
54 device->oclass[NVDEV_SUBDEV_CLOCK ] = &nv04_clock_oclass; in nv30_identify()
55 device->oclass[NVDEV_SUBDEV_DEVINIT] = &nv20_devinit_oclass; in nv30_identify()
56 device->oclass[NVDEV_SUBDEV_MC ] = &nv04_mc_oclass; in nv30_identify()
57 device->oclass[NVDEV_SUBDEV_BUS ] = &nv04_bus_oclass; in nv30_identify()
[all …]
Dnv20.c46 nv20_identify(struct nouveau_device *device) in nv20_identify() argument
48 switch (device->chipset) { in nv20_identify()
50 device->cname = "NV20"; in nv20_identify()
51 device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; in nv20_identify()
52 device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; in nv20_identify()
53 device->oclass[NVDEV_SUBDEV_I2C ] = &nv04_i2c_oclass; in nv20_identify()
54 device->oclass[NVDEV_SUBDEV_CLOCK ] = &nv04_clock_oclass; in nv20_identify()
55 device->oclass[NVDEV_SUBDEV_DEVINIT] = &nv20_devinit_oclass; in nv20_identify()
56 device->oclass[NVDEV_SUBDEV_MC ] = &nv04_mc_oclass; in nv20_identify()
57 device->oclass[NVDEV_SUBDEV_BUS ] = &nv04_bus_oclass; in nv20_identify()
[all …]
Dbase.c40 struct nouveau_device *device, *match = NULL; in nouveau_device_find() local
42 list_for_each_entry(device, &nv_devices, head) { in nouveau_device_find()
43 if (device->handle == name) { in nouveau_device_find()
44 match = device; in nouveau_device_find()
103 struct nouveau_device *device; in nouveau_devobj_ctor() local
115 device = nv_device(client->device); in nouveau_devobj_ctor()
116 if (args->device != ~0) { in nouveau_devobj_ctor()
117 device = nouveau_device_find(args->device); in nouveau_devobj_ctor()
118 if (!device) in nouveau_devobj_ctor()
122 ret = nouveau_parent_create(parent, nv_object(device), oclass, 0, NULL, in nouveau_devobj_ctor()
[all …]
Dnv04.c44 nv04_identify(struct nouveau_device *device) in nv04_identify() argument
46 switch (device->chipset) { in nv04_identify()
48 device->cname = "NV04"; in nv04_identify()
49 device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; in nv04_identify()
50 device->oclass[NVDEV_SUBDEV_I2C ] = &nv04_i2c_oclass; in nv04_identify()
51 device->oclass[NVDEV_SUBDEV_CLOCK ] = &nv04_clock_oclass; in nv04_identify()
52 device->oclass[NVDEV_SUBDEV_DEVINIT] = &nv04_devinit_oclass; in nv04_identify()
53 device->oclass[NVDEV_SUBDEV_MC ] = &nv04_mc_oclass; in nv04_identify()
54 device->oclass[NVDEV_SUBDEV_BUS ] = &nv04_bus_oclass; in nv04_identify()
55 device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; in nv04_identify()
[all …]
/drivers/s390/char/
Dtape_core.c93 tape_medium_state_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_medium_state_show()
105 tape_first_minor_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_first_minor_show()
117 tape_state_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_state_show()
130 tape_operation_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_operation_show()
157 tape_blocksize_show(struct device *dev, struct device_attribute *attr, char *buf) in tape_blocksize_show()
186 tape_state_set(struct tape_device *device, enum tape_state newstate) in tape_state_set() argument
190 if (device->tape_state == TS_NOT_OPER) { in tape_state_set()
194 DBF_EVENT(4, "ts. dev: %x\n", device->first_minor); in tape_state_set()
196 if (device->tape_state < TS_SIZE && device->tape_state >=0 ) in tape_state_set()
197 str = tape_state_verbose[device->tape_state]; in tape_state_set()
[all …]
Dtape_char.c63 tapechar_setup_device(struct tape_device * device) in tapechar_setup_device() argument
67 sprintf(device_name, "ntibm%i", device->first_minor / 2); in tapechar_setup_device()
68 device->nt = register_tape_dev( in tapechar_setup_device()
69 &device->cdev->dev, in tapechar_setup_device()
70 MKDEV(tapechar_major, device->first_minor), in tapechar_setup_device()
76 device->rt = register_tape_dev( in tapechar_setup_device()
77 &device->cdev->dev, in tapechar_setup_device()
78 MKDEV(tapechar_major, device->first_minor + 1), in tapechar_setup_device()
88 tapechar_cleanup_device(struct tape_device *device) in tapechar_cleanup_device() argument
90 unregister_tape_dev(&device->cdev->dev, device->rt); in tapechar_cleanup_device()
[all …]
Dtape_std.c38 struct tape_device * device; in tape_std_assign_timeout() local
42 device = request->device; in tape_std_assign_timeout()
43 BUG_ON(!device); in tape_std_assign_timeout()
46 device->cdev_id); in tape_std_assign_timeout()
47 rc = tape_cancel_io(device, request); in tape_std_assign_timeout()
50 "%i\n", device->cdev_id, rc); in tape_std_assign_timeout()
54 tape_std_assign(struct tape_device *device) in tape_std_assign() argument
79 rc = tape_do_io_interruptible(device, request); in tape_std_assign()
85 device->cdev_id); in tape_std_assign()
87 DBF_EVENT(3, "%08x: Tape assigned\n", device->cdev_id); in tape_std_assign()
[all …]
Dtape_3590.c102 static int crypt_supported(struct tape_device *device) in crypt_supported() argument
104 return TAPE390_CRYPT_SUPPORTED(TAPE_3590_CRYPT_INFO(device)); in crypt_supported()
107 static int crypt_enabled(struct tape_device *device) in crypt_enabled() argument
109 return TAPE390_CRYPT_ON(TAPE_3590_CRYPT_INFO(device)); in crypt_enabled()
200 static int tape_3592_kekl_query(struct tape_device *device, in tape_3592_kekl_query() argument
225 rc = tape_do_io(device, request); in tape_3592_kekl_query()
241 static int tape_3592_ioctl_kekl_query(struct tape_device *device, in tape_3592_ioctl_kekl_query() argument
248 if (!crypt_supported(device)) in tape_3592_ioctl_kekl_query()
250 if (!crypt_enabled(device)) in tape_3592_ioctl_kekl_query()
255 rc = tape_3592_kekl_query(device, ext_kekls); in tape_3592_ioctl_kekl_query()
[all …]
Dtape_34xx.c57 struct tape_device *device = request->device; in __tape_34xx_medium_sense() local
70 tape_med_state_set(device, MS_UNLOADED); in __tape_34xx_medium_sense()
72 tape_med_state_set(device, MS_LOADED); in __tape_34xx_medium_sense()
75 device->tape_generic_status |= GMT_WR_PROT(~0); in __tape_34xx_medium_sense()
77 device->tape_generic_status &= ~GMT_WR_PROT(~0); in __tape_34xx_medium_sense()
84 static int tape_34xx_medium_sense(struct tape_device *device) in tape_34xx_medium_sense() argument
97 rc = tape_do_io_interruptible(device, request); in tape_34xx_medium_sense()
102 static void tape_34xx_medium_sense_async(struct tape_device *device) in tape_34xx_medium_sense_async() argument
116 tape_do_io_async(device, request); in tape_34xx_medium_sense_async()
120 struct tape_device *device; member
[all …]
/drivers/firewire/
Dcore-device.c168 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()
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()
237 static ssize_t show_immediate(struct device *dev, in show_immediate()
269 static ssize_t show_text_leaf(struct device *dev, in show_text_leaf()
322 static void init_fw_attribute_group(struct device *dev, in init_fw_attribute_group()
[all …]
/drivers/infiniband/core/
Dcache.c57 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 …]
Ddevice.c70 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()
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()
134 if (!sscanf(device->name, name, &i)) in alloc_name()
[all …]
/drivers/s390/block/
Ddasd.c91 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()
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()
104 device->erp_mem = (void *) get_zeroed_page(GFP_ATOMIC | GFP_DMA); in dasd_alloc_device()
105 if (!device->erp_mem) { in dasd_alloc_device()
106 free_pages((unsigned long) device->ccw_mem, 1); in dasd_alloc_device()
107 kfree(device); in dasd_alloc_device()
[all …]
Ddasd_3990_erp.c73 struct dasd_device *device = erp->startdev; in dasd_3990_erp_block_queue() local
76 DBF_DEV_EVENT(DBF_INFO, device, in dasd_3990_erp_block_queue()
79 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue()
80 dasd_device_set_stop_bits(device, DASD_STOPPED_PENDING); in dasd_3990_erp_block_queue()
81 spin_unlock_irqrestore(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_block_queue()
86 dasd_device_set_timer(device, expires); in dasd_3990_erp_block_queue()
105 struct dasd_device *device = erp->startdev; in dasd_3990_erp_int_req() local
118 dev_err(&device->cdev->dev, in dasd_3990_erp_int_req()
146 struct dasd_device *device = erp->startdev; in dasd_3990_erp_alternate_path() local
151 spin_lock_irqsave(get_ccwdev_lock(device->cdev), flags); in dasd_3990_erp_alternate_path()
[all …]
Ddasd_devmap.c50 struct dasd_device *device; member
429 new->device = NULL; in dasd_add_busid()
483 BUG_ON(devmap->device != NULL); in dasd_forget_ranges()
498 struct dasd_device *device; in dasd_device_from_devindex() local
510 if (devmap && devmap->device) { in dasd_device_from_devindex()
511 device = devmap->device; in dasd_device_from_devindex()
512 dasd_get_device(device); in dasd_device_from_devindex()
514 device = ERR_PTR(-ENODEV); in dasd_device_from_devindex()
516 return device; in dasd_device_from_devindex()
542 struct dasd_device *device; in dasd_create_device() local
[all …]
/drivers/hid/
Dhid-roccat.c48 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()
107 mutex_unlock(&device->cbuf_lock); in roccat_read()
109 mutex_lock(&device->cbuf_lock); in roccat_read()
[all …]
/drivers/base/power/
Dpower.h3 static inline void device_pm_init_common(struct device *dev) in device_pm_init_common()
14 static inline void pm_runtime_early_init(struct device *dev) in pm_runtime_early_init()
20 extern void pm_runtime_init(struct device *dev);
21 extern void pm_runtime_remove(struct device *dev);
25 static inline void pm_runtime_early_init(struct device *dev) in pm_runtime_early_init()
30 static inline void pm_runtime_init(struct device *dev) {} in pm_runtime_init()
31 static inline void pm_runtime_remove(struct device *dev) {} in pm_runtime_remove()
43 static inline struct device *to_device(struct list_head *entry) in to_device()
45 return container_of(entry, struct device, power.entry); in to_device()
48 extern void device_pm_sleep_init(struct device *dev);
[all …]
/drivers/gpu/drm/nouveau/
Dnva3_pm.c42 struct nouveau_device *device = nouveau_dev(dev); in read_vco() local
43 u32 sctl = nv_rd32(device, 0x4120 + (clk * 4)); in read_vco()
52 struct nouveau_device *device = nouveau_dev(dev); in read_clk() local
58 if (nv_device(drm->device)->chipset == 0xaf) { in read_clk()
60 return nv_rd32(device, 0x00471c) * 1000; in read_clk()
63 return device->crystal; in read_clk()
66 sctl = nv_rd32(device, 0x4120 + (clk * 4)); in read_clk()
72 return device->crystal; in read_clk()
89 struct nouveau_device *device = nouveau_dev(dev); in read_pll() local
90 u32 ctrl = nv_rd32(device, pll + 0); in read_pll()
[all …]
/drivers/misc/mei/
Dbus.c35 static int mei_cl_device_match(struct device *dev, struct device_driver *drv) in mei_cl_device_match()
37 struct mei_cl_device *device = to_mei_cl_device(dev); in mei_cl_device_match() local
41 if (!device) in mei_cl_device_match()
59 static int mei_cl_device_probe(struct device *dev) in mei_cl_device_probe()
61 struct mei_cl_device *device = to_mei_cl_device(dev); in mei_cl_device_probe() local
65 if (!device) in mei_cl_device_probe()
76 return driver->probe(device, &id); in mei_cl_device_probe()
79 static int mei_cl_device_remove(struct device *dev) in mei_cl_device_remove()
81 struct mei_cl_device *device = to_mei_cl_device(dev); in mei_cl_device_remove() local
84 if (!device || !dev->driver) in mei_cl_device_remove()
[all …]
/drivers/acpi/
Dscan.c28 #define ACPI_IS_ROOT_DEVICE(device) (!(device)->parent) argument
110 acpi_device_modalias_show(struct device *dev, struct device_attribute *attr, char *buf) { in acpi_device_modalias_show()
123 static int acpi_scan_hot_remove(struct acpi_device *device) in acpi_scan_hot_remove() argument
125 acpi_handle handle = device->handle; in acpi_scan_hot_remove()
134 dev_dbg(&device->dev, "ACPI handle missing\n"); in acpi_scan_hot_remove()
135 put_device(&device->dev); in acpi_scan_hot_remove()
140 "Hot-removing device %s...\n", dev_name(&device->dev))); in acpi_scan_hot_remove()
142 acpi_bus_trim(device); in acpi_scan_hot_remove()
144 put_device(&device->dev); in acpi_scan_hot_remove()
145 device = NULL; in acpi_scan_hot_remove()
[all …]

12345678910>>...134