Home
last modified time | relevance | path

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

12345678910>>...170

/linux/drivers/block/drbd/
A Ddrbd_actlog.c95 device->md_io.submit_jif = device->md_io.start_jif - 1; in drbd_md_get_buffer()
181 D_ASSERT(device, atomic_read(&device->md_io.in_use) == 1); in drbd_md_sync_page_io()
249 D_ASSERT(device, atomic_read(&device->local_cnt) > 0); in drbd_al_begin_io_fastpath()
268 D_ASSERT(device, atomic_read(&device->local_cnt) > 0); in drbd_al_begin_io_prepare()
363 device->act_log->nr_elements - device->al_tr_cycle); in __al_write_transaction()
373 if (device->al_tr_cycle >= device->act_log->nr_elements) in __al_write_transaction()
602 wait_event(device->al_wait, _try_lc_del(device, al_ext)); in drbd_al_shrink()
657 D_ASSERT(device, atomic_read(&device->local_cnt)); in update_rs_extent()
1044 e = lc_find(device->resync, device->resync_wenr); in drbd_try_rs_begin_io()
1079 if (device->resync_locked > device->resync->nr_elements-3) in drbd_try_rs_begin_io()
[all …]
A Ddrbd_worker.c85 struct drbd_device *device = peer_device->device; in drbd_endio_read_sec_final() local
201 device->minor, device->resource->name, device->vnr); in drbd_panic_after_delayed_completion_of_aborted_request()
210 struct drbd_device *device = req->device; in drbd_request_endio() local
824 struct drbd_device *device = dw->device; in w_ov_finished() local
836 struct drbd_device *device = dw->device; in w_resync_finished() local
877 dw->device = device; in drbd_resync_finished()
1427 struct drbd_device *device = req->device; in w_send_out_of_sync() local
1458 struct drbd_device *device = req->device; in w_send_dblock() local
1491 struct drbd_device *device = req->device; in w_send_read_req() local
1521 struct drbd_device *device = req->device; in w_restart_disk_io() local
[all …]
/linux/drivers/s390/char/
A Dtape_core.c197 if (device->tape_state < TS_SIZE && device->tape_state >=0 ) in tape_state_set()
225 struct tape_device *device = p->device; in tape_med_state_work_handler() local
256 p->device = tape_get_device(device); in tape_med_state_work()
413 device->discipline->cleanup_device(device); in tape_generic_online()
424 device->discipline->cleanup_device(device); in tape_cleanup_device()
443 if (!device) { in tape_generic_offline()
448 device->cdev_id, device); in tape_generic_offline()
504 return device; in tape_alloc_device()
663 if (device) { in tape_generic_remove()
913 request->device = tape_get_device(device); in __tape_start_request()
[all …]
A Dtape_char.c70 &device->cdev->dev, in tapechar_setup_device()
78 &device->cdev->dev, in tapechar_setup_device()
91 unregister_tape_dev(&device->cdev->dev, device->rt); in tapechar_cleanup_device()
92 device->rt = NULL; in tapechar_cleanup_device()
93 unregister_tape_dev(&device->cdev->dev, device->nt); in tapechar_cleanup_device()
94 device->nt = NULL; in tapechar_cleanup_device()
166 request = device->discipline->read_block(device, block_size); in tapechar_read()
219 request = device->discipline->write_block(device, block_size); in tapechar_write()
248 device->discipline->process_eov(device); in tapechar_write()
285 if (IS_ERR(device)) { in tapechar_open()
[all …]
/linux/include/linux/
A Dpm_runtime.h34 extern int pm_generic_runtime_resume(struct device *dev);
35 extern int pm_runtime_force_suspend(struct device *dev);
36 extern int pm_runtime_force_resume(struct device *dev);
44 extern int pm_runtime_barrier(struct device *dev);
45 extern void pm_runtime_enable(struct device *dev);
47 extern void pm_runtime_allow(struct device *dev);
48 extern void pm_runtime_forbid(struct device *dev);
50 extern void pm_runtime_irq_safe(struct device *dev);
59 extern void pm_runtime_new_link(struct device *dev);
62 extern int devm_pm_runtime_enable(struct device *dev);
[all …]
A Dpm_opp.h21 struct device;
87 struct device *dev;
106 int dev_pm_opp_get_opp_count(struct device *dev);
159 struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, const char * const *names, struct dev…
161 int devm_pm_opp_attach_genpd(struct device *dev, const char * const *names, struct device ***virt_d…
168 void dev_pm_opp_remove_table(struct device *dev);
170 int dev_pm_opp_sync_regulators(struct device *dev);
379 … struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, const char * const *names, struct d… in dev_pm_opp_attach_genpd()
388 struct device ***virt_devs) in devm_pm_opp_attach_genpd()
440 int dev_pm_opp_of_add_table(struct device *dev);
[all …]
A Ddevice.h35 struct device;
153 int device_create_file(struct device *device,
473 struct device { struct
475 struct device *parent; argument
595 struct device *supplier;
597 struct device *consumer;
599 struct device link_dev;
829 struct device *device_find_child(struct device *dev, void *data,
831 struct device *device_find_child_by_name(struct device *parent,
834 int device_move(struct device *dev, struct device *new_parent,
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/gr/
A Dnv40.c97 struct nvkm_device *device = subdev->device; in nv40_gr_chan_fini() local
176 struct nvkm_device *device = gr->base.engine.subdev.device; in nv40_gr_tile() local
237 struct nvkm_device *device = subdev->device; in nv40_gr_intr() local
290 struct nvkm_device *device = gr->base.engine.subdev.device; in nv40_gr_init() local
389 vramsz = device->func->resource_size(device, 1) - 1; in nv40_gr_init()
392 nvkm_wr32(device, 0x4009A4, nvkm_rd32(device, 0x100200)); in nv40_gr_init()
393 nvkm_wr32(device, 0x4009A8, nvkm_rd32(device, 0x100204)); in nv40_gr_init()
394 nvkm_wr32(device, 0x4069A4, nvkm_rd32(device, 0x100200)); in nv40_gr_init()
395 nvkm_wr32(device, 0x4069A8, nvkm_rd32(device, 0x100204)); in nv40_gr_init()
418 nvkm_wr32(device, 0x4069F0, nvkm_rd32(device, 0x100200)); in nv40_gr_init()
[all …]
A Dnv50.c243 struct nvkm_device *device = subdev->device; in nv50_gr_prop_trap() local
285 struct nvkm_device *device = subdev->device; in nv50_gr_mp_trap() local
294 if (device->chipset < 0xa0) in nv50_gr_mp_trap()
329 struct nvkm_device *device = subdev->device; in nv50_gr_tp_trap() local
338 if (device->chipset < 0xa0) in nv50_gr_tp_trap()
352 nvkm_rd32(device, r)); in nv50_gr_tp_trap()
399 struct nvkm_device *device = subdev->device; in nv50_gr_trap_handler() local
444 nvkm_wr32(device, 0x4008e8, nvkm_rd32(device, 0x4008e8) & 3); in nv50_gr_trap_handler()
624 struct nvkm_device *device = subdev->device; in nv50_gr_intr() local
673 nvkm_wr32(device, 0x400824, nvkm_rd32(device, 0x400824) & ~(1 << 31)); in nv50_gr_intr()
[all …]
A Dnv20.c34 struct nvkm_device *device = gr->base.engine.subdev.device; in nv20_gr_chan_fini() local
152 struct nvkm_device *device = gr->base.engine.subdev.device; in nv20_gr_tile() local
184 struct nvkm_device *device = subdev->device; in nv20_gr_intr() local
232 struct nvkm_device *device = gr->base.engine.subdev.device; in nv20_gr_init() local
287 nvkm_wr32(device, 0x4009a0, nvkm_rd32(device, 0x100324)); in nv20_gr_init()
289 nvkm_wr32(device, NV10_PGRAPH_RDI_DATA, nvkm_rd32(device, 0x100324)); in nv20_gr_init()
300 vramsz = device->func->resource_size(device, 1) - 1; in nv20_gr_init()
301 nvkm_wr32(device, 0x4009A4, nvkm_rd32(device, 0x100200)); in nv20_gr_init()
302 nvkm_wr32(device, 0x4009A8, nvkm_rd32(device, 0x100204)); in nv20_gr_init()
304 nvkm_wr32(device, NV10_PGRAPH_RDI_DATA , nvkm_rd32(device, 0x100200)); in nv20_gr_init()
[all …]
/linux/drivers/firewire/
A Dcore-device.c712 unit->device.parent = &device->device; in create_units()
713 dev_set_name(&unit->device, "%s.%d", dev_name(&device->device), i++); in create_units()
809 device_unregister(&device->device); in fw_device_shutdown()
1011 fw_device_release(&device->device); in fw_device_init()
1020 fw_device_release(&device->device); in fw_device_init()
1025 device_initialize(&device->device); in fw_device_init()
1036 device->device.bus = &fw_bus_type; in fw_device_init()
1037 device->device.type = &fw_device_type; in fw_device_init()
1038 device->device.parent = card->device; in fw_device_init()
1049 if (device_add(&device->device)) { in fw_device_init()
[all …]
/linux/drivers/s390/block/
A Ddasd_devmap.c513 device = devmap->device; in dasd_device_from_devindex()
559 devmap->device = device; in dasd_create_device()
607 if (devmap->device != device) { in dasd_delete_device()
709 device = devmap->device; in dasd_device_from_gendisk()
770 device = devmap->device; in dasd_ro_show()
803 if (!device->block || !device->block->gdp || in dasd_ro_store()
1099 !device->discipline->get_uid(device, &uid)) { in dasd_alias_show()
1126 !device->discipline->get_uid(device, &uid)) in dasd_vendor_show()
1154 !device->discipline->get_uid(device, &uid)) { in dasd_uid_show()
1341 if (IS_ERR(device) || !device->block) in dasd_timeout_store()
[all …]
A Ddasd.c539 if (device->state == device->target) in dasd_change_state()
542 if (device->state < device->target) in dasd_change_state()
549 device->target = device->state; in dasd_change_state()
554 if (device->state == device->target) in dasd_change_state()
591 device->discipline->reload(device); in do_reload_device()
619 if (device->state != device->target) in dasd_set_target_state()
630 return (device->state == device->target); in _wait_for_device()
644 device->discipline->kick_validate(device); in dasd_enable_device()
1508 device = from_timer(device, t, timer); in dasd_device_timeout()
1611 if (!device->discipline->is_ese(device)) in dasd_ese_needs_format()
[all …]
A Ddasd_3990_erp.c119 dev_err(&device->cdev->dev, in dasd_3990_erp_int_req()
206 device); in dasd_3990_erp_DCTL()
228 dctl_cqr->memdev = device; in dasd_3990_erp_DCTL()
1731 erp->startdev = device; in dasd_3990_erp_action_1B_32()
1732 erp->memdev = device; in dasd_3990_erp_action_1B_32()
2220 device->path[pos].cssid, device->path[pos].chpid, lpum); in dasd_3990_erp_disable_path()
2228 device->path[pos].cssid, device->path[pos].chpid, lpum); in dasd_3990_erp_disable_path()
2234 device->path[pos].cssid, device->path[pos].chpid, lpum); in dasd_3990_erp_disable_path()
2267 device->path_thrhld) in dasd_3990_erp_account_error()
2434 erp->startdev = device; in dasd_3990_erp_add_erp()
[all …]
/linux/drivers/base/power/
A Dpower.h21 extern void pm_runtime_init(struct device *dev);
22 extern void pm_runtime_reinit(struct device *dev);
23 extern void pm_runtime_remove(struct device *dev);
34 struct device *dev;
69 extern int dpm_sysfs_add(struct device *dev);
114 extern void device_pm_add(struct device *);
115 extern void device_pm_remove(struct device *);
116 extern void device_pm_move_before(struct device *, struct device *);
117 extern void device_pm_move_after(struct device *, struct device *);
145 struct device *devb) {} in device_pm_move_before()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/disp/
A Dvga.c29 if (device->card_type >= NV_50) in nvkm_rdport()
40 if (device->card_type < NV_40) in nvkm_rdport()
51 if (device->card_type >= NV_50) in nvkm_wrport()
62 if (device->card_type < NV_40) in nvkm_wrport()
132 if (device->card_type < NV_50) in nvkm_lockvgac()
136 if (device->chipset == 0x11) { in nvkm_lockvgac()
165 if (device->chipset == 0x11) { in nvkm_rdvgaowner()
192 if (device->chipset == 0x11) { in nvkm_wrvgaowner()
194 nvkm_rdvgac(device, 0, 0x1f); in nvkm_wrvgaowner()
195 nvkm_rdvgac(device, 1, 0x1f); in nvkm_wrvgaowner()
[all …]
A Dgv100.c34 struct nvkm_device *device = disp->engine.subdev.device; in gv100_disp_wndw_cnt() local
45 struct nvkm_device *device = subdev->device; in gv100_disp_super() local
100 struct nvkm_device *device = subdev->device; in gv100_disp_exception() local
142 struct nvkm_device *device = subdev->device; in gv100_disp_intr_ctrl_disp() local
190 struct nvkm_device *device = subdev->device; in gv100_disp_intr_exc_other() local
219 struct nvkm_device *device = subdev->device; in gv100_disp_intr_exc_winim() local
239 struct nvkm_device *device = subdev->device; in gv100_disp_intr_exc_win() local
259 struct nvkm_device *device = subdev->device; in gv100_disp_intr_head_timing() local
284 struct nvkm_device *device = subdev->device; in gv100_disp_intr() local
323 struct nvkm_device *device = disp->base.engine.subdev.device; in gv100_disp_fini() local
[all …]
/linux/drivers/gpu/drm/mediatek/
A Dmtk_disp_drv.h12 int mtk_aal_clk_enable(struct device *dev);
13 void mtk_aal_clk_disable(struct device *dev);
18 void mtk_aal_start(struct device *dev);
19 void mtk_aal_stop(struct device *dev);
27 void mtk_ccorr_start(struct device *dev);
28 void mtk_ccorr_stop(struct device *dev);
36 void mtk_color_start(struct device *dev);
42 void mtk_dpi_start(struct device *dev);
43 void mtk_dpi_stop(struct device *dev);
76 void mtk_ovl_start(struct device *dev);
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/
A Dnv04.c52 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv04_fifo_pause() local
70 nvkm_msec(device, 2000, in nv04_fifo_pause()
88 struct nvkm_device *device = fifo->base.engine.subdev.device; in nv04_fifo_start() local
142 struct nvkm_sw *sw = device->sw; in nv04_fifo_swmthd()
172 struct nvkm_device *device = subdev->device; in nv04_fifo_cache_error() local
186 if (device->card_type < NV_40) { in nv04_fifo_cache_error()
223 struct nvkm_device *device = subdev->device; in nv04_fifo_dma_pusher() local
234 if (device->card_type == NV_50) { in nv04_fifo_dma_pusher()
276 struct nvkm_device *device = subdev->device; in nv04_fifo_intr() local
308 if (device->card_type == NV_50) { in nv04_fifo_intr()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
A Dgt215.c34 struct nvkm_device *device = subdev->device; in gt215_pmu_send() local
40 if (nvkm_msec(device, 2000, in gt215_pmu_send()
90 struct nvkm_device *device = subdev->device; in gt215_pmu_recv() local
142 struct nvkm_device *device = subdev->device; in gt215_pmu_intr() local
165 nvkm_rd32(device, 0x10a7a0), in gt215_pmu_intr()
166 nvkm_rd32(device, 0x10a7a4)); in gt215_pmu_intr()
186 struct nvkm_device *device = pmu->subdev.device; in gt215_pmu_reset() local
189 nvkm_rd32(device, 0x022210); in gt215_pmu_reset()
201 struct nvkm_device *device = pmu->subdev.device; in gt215_pmu_init() local
223 if (nvkm_msec(device, 2000, in gt215_pmu_init()
[all …]
A Dgk104.c39 nvkm_msec(device, 2000, in magic_()
59 struct nvkm_device *device = pmu->subdev.device; in gk104_pmu_pgob() local
65 nvkm_rd32(device, 0x000200); in gk104_pmu_pgob()
82 nvkm_rd32(device, 0x000200); in gk104_pmu_pgob()
85 switch (device->chipset) { in gk104_pmu_pgob()
87 magic(device, 0x04000000); in gk104_pmu_pgob()
88 magic(device, 0x06000000); in gk104_pmu_pgob()
89 magic(device, 0x0c000000); in gk104_pmu_pgob()
90 magic(device, 0x0e000000); in gk104_pmu_pgob()
93 magic(device, 0x02000000); in gk104_pmu_pgob()
[all …]
/linux/drivers/hid/
A Dhid-roccat.c77 struct roccat_device *device = reader->device; in roccat_read() local
123 len = device->report_size > count ? count : device->report_size; in roccat_read()
163 if (!device) { in roccat_open()
187 reader->device = device; in roccat_open()
212 if (!device) { in roccat_release()
260 report = &device->cbuf[device->cbuf_end]; in roccat_report_event()
266 device->cbuf_end = (device->cbuf_end + 1) % ROCCAT_CBUF_SIZE; in roccat_report_event()
301 if (!device) in roccat_connect()
316 kfree(device); in roccat_connect()
328 kfree(device); in roccat_connect()
[all …]
/linux/drivers/staging/pi433/
A Dpi433_if.c775 device = instance->device; in pi433_read()
817 device = instance->device; in pi433_write()
884 device = instance->device; in pi433_ioctl()
951 instance->device = device; in pi433_open()
988 device->gpiod[i] = gpiod_get(&device->spi->dev, name, in setup_gpio()
1004 free_irq(device->irq_num[i], device); in setup_gpio()
1017 device->irq_num[i] = gpiod_to_irq(device->gpiod[i]); in setup_gpio()
1046 free_irq(device->irq_num[i], device); in free_gpio()
1133 device = kzalloc(sizeof(*device), GFP_KERNEL); in pi433_probe()
1200 device->devt = MKDEV(MAJOR(pi433_dev), device->minor); in pi433_probe()
[all …]
/linux/drivers/gpu/host1x/
A Dbus.c148 if (device->registered) { in __host1x_subdev_unregister()
150 device_del(&device->dev); in __host1x_subdev_unregister()
214 dev_err(&device->dev, in host1x_device_init()
264 dev_err(&device->dev, in host1x_device_exit()
445 kfree(device); in host1x_device_release()
456 device = kzalloc(sizeof(*device), GFP_KERNEL); in host1x_device_add()
457 if (!device) in host1x_device_add()
468 device->driver = driver; in host1x_device_add()
471 device->dev.dma_mask = &device->dev.coherent_dma_mask; in host1x_device_add()
479 device->dev.dma_parms = &device->dma_parms; in host1x_device_add()
[all …]
/linux/drivers/dma/
A Ddmaengine.c431 device->device_release(device); in dma_device_release()
577 device = chan->device; in dma_get_slave_caps()
702 struct dma_device *device = chan->device; in dma_get_slave_channel() local
765 if (np && device->dev->of_node && np != device->dev->of_node) in __dma_request_channel()
1034 device->dev_id = rc; in get_dma_id()
1067 chan->dev->device.parent = device->dev; in __dma_async_device_channel_register()
1076 device->chancnt++; in __dma_async_device_channel_register()
1113 device->chancnt--; in __dma_async_device_channel_unregister()
1144 if (!device) in dma_async_device_register()
1148 if (!device->dev) { in dma_async_device_register()
[all …]

Completed in 128 milliseconds

12345678910>>...170