Home
last modified time | relevance | path

Searched refs:device (Results 1 – 200 of 8918) sorted by relevance

12345678910>>...45

/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dnv50.c61 nv50_identify(struct nvkm_device *device) in nv50_identify() argument
63 switch (device->chipset) { in nv50_identify()
65 device->cname = "G80"; in nv50_identify()
66 device->oclass[NVDEV_SUBDEV_VBIOS ] = &nvkm_bios_oclass; in nv50_identify()
67 device->oclass[NVDEV_SUBDEV_GPIO ] = nv50_gpio_oclass; in nv50_identify()
68 device->oclass[NVDEV_SUBDEV_I2C ] = nv50_i2c_oclass; in nv50_identify()
69 device->oclass[NVDEV_SUBDEV_FUSE ] = &nv50_fuse_oclass; in nv50_identify()
70 device->oclass[NVDEV_SUBDEV_CLK ] = nv50_clk_oclass; in nv50_identify()
71 device->oclass[NVDEV_SUBDEV_THERM ] = &nv50_therm_oclass; in nv50_identify()
72 device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; in nv50_identify()
[all …]
Dnv40.c50 nv40_identify(struct nvkm_device *device) in nv40_identify() argument
52 switch (device->chipset) { in nv40_identify()
54 device->cname = "NV40"; in nv40_identify()
55 device->oclass[NVDEV_SUBDEV_VBIOS ] = &nvkm_bios_oclass; in nv40_identify()
56 device->oclass[NVDEV_SUBDEV_GPIO ] = nv10_gpio_oclass; in nv40_identify()
57 device->oclass[NVDEV_SUBDEV_I2C ] = nv04_i2c_oclass; in nv40_identify()
58 device->oclass[NVDEV_SUBDEV_CLK ] = &nv40_clk_oclass; in nv40_identify()
59 device->oclass[NVDEV_SUBDEV_THERM ] = &nv40_therm_oclass; in nv40_identify()
60 device->oclass[NVDEV_SUBDEV_DEVINIT] = nv1a_devinit_oclass; in nv40_identify()
61 device->oclass[NVDEV_SUBDEV_MC ] = nv40_mc_oclass; in nv40_identify()
[all …]
Dgf100.c59 gf100_identify(struct nvkm_device *device) in gf100_identify() argument
61 switch (device->chipset) { in gf100_identify()
63 device->cname = "GF100"; in gf100_identify()
64 device->oclass[NVDEV_SUBDEV_VBIOS ] = &nvkm_bios_oclass; in gf100_identify()
65 device->oclass[NVDEV_SUBDEV_GPIO ] = g94_gpio_oclass; in gf100_identify()
66 device->oclass[NVDEV_SUBDEV_I2C ] = g94_i2c_oclass; in gf100_identify()
67 device->oclass[NVDEV_SUBDEV_FUSE ] = &gf100_fuse_oclass; in gf100_identify()
68 device->oclass[NVDEV_SUBDEV_CLK ] = &gf100_clk_oclass; in gf100_identify()
69 device->oclass[NVDEV_SUBDEV_THERM ] = &gt215_therm_oclass; in gf100_identify()
70 device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; in gf100_identify()
[all …]
Dgk104.c59 gk104_identify(struct nvkm_device *device) in gk104_identify() argument
61 switch (device->chipset) { in gk104_identify()
63 device->cname = "GK104"; in gk104_identify()
64 device->oclass[NVDEV_SUBDEV_VBIOS ] = &nvkm_bios_oclass; in gk104_identify()
65 device->oclass[NVDEV_SUBDEV_GPIO ] = gk104_gpio_oclass; in gk104_identify()
66 device->oclass[NVDEV_SUBDEV_I2C ] = gk104_i2c_oclass; in gk104_identify()
67 device->oclass[NVDEV_SUBDEV_FUSE ] = &gf100_fuse_oclass; in gk104_identify()
68 device->oclass[NVDEV_SUBDEV_CLK ] = &gk104_clk_oclass; in gk104_identify()
69 device->oclass[NVDEV_SUBDEV_THERM ] = &gf110_therm_oclass; in gk104_identify()
70 device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; in gk104_identify()
[all …]
Dnv10.c45 nv10_identify(struct nvkm_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 ] = &nvkm_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_CLK ] = &nv04_clk_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 …]
Dgm100.c59 gm100_identify(struct nvkm_device *device) in gm100_identify() argument
61 switch (device->chipset) { in gm100_identify()
63 device->cname = "GM107"; in gm100_identify()
64 device->oclass[NVDEV_SUBDEV_VBIOS ] = &nvkm_bios_oclass; in gm100_identify()
65 device->oclass[NVDEV_SUBDEV_GPIO ] = gk104_gpio_oclass; in gm100_identify()
66 device->oclass[NVDEV_SUBDEV_I2C ] = gf110_i2c_oclass; in gm100_identify()
67 device->oclass[NVDEV_SUBDEV_FUSE ] = &gm107_fuse_oclass; in gm100_identify()
68 device->oclass[NVDEV_SUBDEV_CLK ] = &gk104_clk_oclass; in gm100_identify()
69 device->oclass[NVDEV_SUBDEV_THERM ] = &gm107_therm_oclass; in gm100_identify()
70 device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; in gm100_identify()
[all …]
Dnv30.c46 nv30_identify(struct nvkm_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 ] = &nvkm_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_CLK ] = &nv04_clk_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 nvkm_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 ] = &nvkm_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_CLK ] = &nv04_clk_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.c44 struct nvkm_device *device, *match = NULL; in nvkm_device_find() local
46 list_for_each_entry(device, &nv_devices, head) { in nvkm_device_find()
47 if (device->handle == name) { in nvkm_device_find()
48 match = device; in nvkm_device_find()
59 struct nvkm_device *device; in nvkm_device_list() local
62 list_for_each_entry(device, &nv_devices, head) { in nvkm_device_list()
64 name[nr - 1] = device->handle; in nvkm_device_list()
82 struct nvkm_device *device = nv_device(object); in nvkm_devobj_info() local
83 struct nvkm_fb *pfb = nvkm_fb(device); in nvkm_devobj_info()
84 struct nvkm_instmem *imem = nvkm_instmem(device); in nvkm_devobj_info()
[all …]
Dnv04.c44 nv04_identify(struct nvkm_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 ] = &nvkm_bios_oclass; in nv04_identify()
50 device->oclass[NVDEV_SUBDEV_I2C ] = nv04_i2c_oclass; in nv04_identify()
51 device->oclass[NVDEV_SUBDEV_CLK ] = &nv04_clk_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 …]
DKbuild1 nvkm-y += nvkm/engine/device/acpi.o
2 nvkm-y += nvkm/engine/device/base.o
3 nvkm-y += nvkm/engine/device/ctrl.o
4 nvkm-y += nvkm/engine/device/nv04.o
5 nvkm-y += nvkm/engine/device/nv10.o
6 nvkm-y += nvkm/engine/device/nv20.o
7 nvkm-y += nvkm/engine/device/nv30.o
8 nvkm-y += nvkm/engine/device/nv40.o
9 nvkm-y += nvkm/engine/device/nv50.o
10 nvkm-y += nvkm/engine/device/gf100.o
[all …]
Dacpi.c32 struct nvkm_device *device = in nvkm_acpi_ntfy() local
33 container_of(nb, typeof(*device), acpi.nb); in nvkm_acpi_ntfy()
37 nvkm_event_send(&device->event, 1, 0, NULL, 0); in nvkm_acpi_ntfy()
44 nvkm_acpi_fini(struct nvkm_device *device, bool suspend) in nvkm_acpi_fini() argument
47 unregister_acpi_notifier(&device->acpi.nb); in nvkm_acpi_fini()
53 nvkm_acpi_init(struct nvkm_device *device) in nvkm_acpi_init() argument
56 device->acpi.nb.notifier_call = nvkm_acpi_ntfy; in nvkm_acpi_init()
57 register_acpi_notifier(&device->acpi.nb); in nvkm_acpi_init()
/linux-4.1.27/drivers/block/drbd/
Ddrbd_actlog.c95 void *drbd_md_get_buffer(struct drbd_device *device, const char *intent) in drbd_md_get_buffer() argument
99 wait_event(device->misc_wait, in drbd_md_get_buffer()
100 (r = atomic_cmpxchg(&device->md_io.in_use, 0, 1)) == 0 || in drbd_md_get_buffer()
101 device->state.disk <= D_FAILED); in drbd_md_get_buffer()
106 device->md_io.current_use = intent; in drbd_md_get_buffer()
107 device->md_io.start_jif = jiffies; in drbd_md_get_buffer()
108 device->md_io.submit_jif = device->md_io.start_jif - 1; in drbd_md_get_buffer()
109 return page_address(device->md_io.page); in drbd_md_get_buffer()
112 void drbd_md_put_buffer(struct drbd_device *device) in drbd_md_put_buffer() argument
114 if (atomic_dec_and_test(&device->md_io.in_use)) in drbd_md_put_buffer()
[all …]
Ddrbd_worker.c70 struct drbd_device *device; in drbd_md_endio() local
72 device = bio->bi_private; in drbd_md_endio()
73 device->md_io.error = error; in drbd_md_endio()
86 drbd_md_put_buffer(device); in drbd_md_endio()
87 device->md_io.done = 1; in drbd_md_endio()
88 wake_up(&device->misc_wait); in drbd_md_endio()
90 if (device->ldev) /* special case: drbd_md_read() during drbd_adm_attach() */ in drbd_md_endio()
91 put_ldev(device); in drbd_md_endio()
101 struct drbd_device *device = peer_device->device; in drbd_endio_read_sec_final() local
103 spin_lock_irqsave(&device->resource->req_lock, flags); in drbd_endio_read_sec_final()
[all …]
Ddrbd_req.c34 static bool drbd_may_do_local_read(struct drbd_device *device, sector_t sector, int size);
37 static void _drbd_start_io_acct(struct drbd_device *device, struct drbd_request *req) in _drbd_start_io_acct() argument
40 &device->vdisk->part0); in _drbd_start_io_acct()
44 static void _drbd_end_io_acct(struct drbd_device *device, struct drbd_request *req) in _drbd_end_io_acct() argument
47 &device->vdisk->part0, req->start_jif); in _drbd_end_io_acct()
50 static struct drbd_request *drbd_req_new(struct drbd_device *device, in drbd_req_new() argument
62 req->device = device; in drbd_req_new()
87 struct drbd_device *device = req->device; in drbd_remove_request_interval() local
94 wake_up(&device->misc_wait); in drbd_remove_request_interval()
100 struct drbd_device *device = req->device; in drbd_req_destroy() local
[all …]
Ddrbd_receiver.c155 static struct page *__drbd_alloc_pages(struct drbd_device *device, in __drbd_alloc_pages() argument
201 static void reclaim_finished_net_peer_reqs(struct drbd_device *device, in reclaim_finished_net_peer_reqs() argument
211 list_for_each_entry_safe(peer_req, tmp, &device->net_ee, w.list) { in reclaim_finished_net_peer_reqs()
218 static void drbd_kick_lo_and_reclaim_net(struct drbd_device *device) in drbd_kick_lo_and_reclaim_net() argument
223 spin_lock_irq(&device->resource->req_lock); in drbd_kick_lo_and_reclaim_net()
224 reclaim_finished_net_peer_reqs(device, &reclaimed); in drbd_kick_lo_and_reclaim_net()
225 spin_unlock_irq(&device->resource->req_lock); in drbd_kick_lo_and_reclaim_net()
228 drbd_free_net_peer_req(device, peer_req); in drbd_kick_lo_and_reclaim_net()
254 struct drbd_device *device = peer_device->device; in drbd_alloc_pages() local
265 if (atomic_read(&device->pp_in_use) < mxb) in drbd_alloc_pages()
[all …]
Ddrbd_nl.c194 adm_ctx->device = minor_to_device(d_in->minor); in drbd_adm_prepare()
199 if (adm_ctx->device) in drbd_adm_prepare()
200 kref_get(&adm_ctx->device->kref); in drbd_adm_prepare()
206 if (!adm_ctx->device && (flags & DRBD_ADM_NEED_MINOR)) { in drbd_adm_prepare()
222 if (adm_ctx->device) { in drbd_adm_prepare()
238 if (adm_ctx->device && adm_ctx->resource && in drbd_adm_prepare()
239 adm_ctx->device->resource != adm_ctx->resource) { in drbd_adm_prepare()
242 adm_ctx->device->resource->name); in drbd_adm_prepare()
246 if (adm_ctx->device && in drbd_adm_prepare()
248 adm_ctx->volume != adm_ctx->device->vnr) { in drbd_adm_prepare()
[all …]
Ddrbd_main.c166 int _get_ldev_if_state(struct drbd_device *device, enum drbd_disk_state mins) in _get_ldev_if_state() argument
170 atomic_inc(&device->local_cnt); in _get_ldev_if_state()
171 io_allowed = (device->state.disk >= mins); in _get_ldev_if_state()
173 if (atomic_dec_and_test(&device->local_cnt)) in _get_ldev_if_state()
174 wake_up(&device->misc_wait); in _get_ldev_if_state()
307 void tl_abort_disk_io(struct drbd_device *device) in tl_abort_disk_io() argument
309 struct drbd_connection *connection = first_peer_device(device)->connection; in tl_abort_disk_io()
316 if (req->device != device) in tl_abort_disk_io()
494 minor = device_to_minor(peer_device->device); in conn_lowest_minor()
698 err = __send_command(peer_device->connection, peer_device->device->vnr, in drbd_send_command()
[all …]
Ddrbd_int.h68 void tl_abort_disk_io(struct drbd_device *device);
102 #define __drbd_printk_device(level, device, fmt, args...) \ argument
103 dev_printk(level, disk_to_dev((device)->vdisk), fmt, ## args)
105 dev_printk(level, disk_to_dev((peer_device)->device->vdisk), fmt, ## args)
146 #define dynamic_drbd_dbg(device, fmt, args...) \ argument
147 dynamic_dev_dbg(disk_to_dev(device->vdisk), fmt, ## args)
149 #define D_ASSERT(device, exp) do { \ argument
151 drbd_err(device, "ASSERT( " #exp " ) in %s:%d\n", __FILE__, __LINE__); \
162 drbd_err(device, "ASSERTION %s FAILED in %s\n", \
184 _drbd_insert_fault(struct drbd_device *device, unsigned int type);
[all …]
Ddrbd_state.c35 struct drbd_device *device; member
52 static void after_state_ch(struct drbd_device *device, union drbd_state os,
57 static union drbd_state sanitize_state(struct drbd_device *device, union drbd_state os,
73 struct drbd_device *device = peer_device->device; in conn_all_vols_unconf() local
74 if (device->state.disk != D_DISKLESS || in conn_all_vols_unconf()
75 device->state.conn != C_STANDALONE || in conn_all_vols_unconf()
76 device->state.role != R_SECONDARY) { in conn_all_vols_unconf()
113 struct drbd_device *device = peer_device->device; in conn_highest_role() local
114 role = max_role(role, device->state.role); in conn_highest_role()
129 struct drbd_device *device = peer_device->device; in conn_highest_peer() local
[all …]
Ddrbd_proc.c63 static void drbd_get_syncer_progress(struct drbd_device *device, in drbd_get_syncer_progress() argument
69 typecheck(unsigned long, device->rs_total); in drbd_get_syncer_progress()
70 *rs_total = device->rs_total; in drbd_get_syncer_progress()
77 *bits_left = device->ov_left; in drbd_get_syncer_progress()
79 *bits_left = drbd_bm_total_weight(device) - device->rs_failed; in drbd_get_syncer_progress()
113 static void drbd_syncer_progress(struct drbd_device *device, struct seq_file *seq, in drbd_syncer_progress() argument
121 drbd_get_syncer_progress(device, state, &rs_total, &rs_left, &res); in drbd_syncer_progress()
164 i = (device->rs_last_mark + 2) % DRBD_SYNC_MARKS; in drbd_syncer_progress()
165 dt = (jiffies - device->rs_mark_time[i]) / HZ; in drbd_syncer_progress()
171 db = device->rs_mark_left[i] - rs_left; in drbd_syncer_progress()
[all …]
Ddrbd_bitmap.c118 static void __bm_print_lock_info(struct drbd_device *device, const char *func) in __bm_print_lock_info() argument
120 struct drbd_bitmap *b = device->bitmap; in __bm_print_lock_info()
123 drbd_err(device, "FIXME %s[%d] in %s, bitmap locked for '%s' by %s[%d]\n", in __bm_print_lock_info()
129 void drbd_bm_lock(struct drbd_device *device, char *why, enum bm_flag flags) in drbd_bm_lock() argument
131 struct drbd_bitmap *b = device->bitmap; in drbd_bm_lock()
135 drbd_err(device, "FIXME no bitmap in drbd_bm_lock!?\n"); in drbd_bm_lock()
142 drbd_warn(device, "%s[%d] going to '%s' but bitmap already locked for '%s' by %s[%d]\n", in drbd_bm_lock()
149 drbd_err(device, "FIXME bitmap already locked in bm_lock\n"); in drbd_bm_lock()
156 void drbd_bm_unlock(struct drbd_device *device) in drbd_bm_unlock() argument
158 struct drbd_bitmap *b = device->bitmap; in drbd_bm_unlock()
[all …]
Ddrbd_debugfs.c123 seq_printf(m, "%u\t%u\t", req->device->minor, req->device->vnr); in seq_print_minor_vnr_req()
129 struct drbd_device *device; in seq_print_resource_pending_meta_io() local
134 idr_for_each_entry(&resource->devices, device, i) { in seq_print_resource_pending_meta_io()
140 tmp = device->md_io; in seq_print_resource_pending_meta_io()
143 device->minor, device->vnr, in seq_print_resource_pending_meta_io()
157 struct drbd_device *device; in seq_print_waiting_for_AL() local
162 idr_for_each_entry(&resource->devices, device, i) { in seq_print_waiting_for_AL()
165 int n = atomic_read(&device->ap_actlog_cnt); in seq_print_waiting_for_AL()
167 spin_lock_irq(&device->resource->req_lock); in seq_print_waiting_for_AL()
168 req = list_first_entry_or_null(&device->pending_master_completion[1], in seq_print_waiting_for_AL()
[all …]
/linux-4.1.27/include/linux/
Dpm_runtime.h34 extern int pm_generic_runtime_suspend(struct device *dev);
35 extern int pm_generic_runtime_resume(struct device *dev);
36 extern int pm_runtime_force_suspend(struct device *dev);
37 extern int pm_runtime_force_resume(struct device *dev);
39 extern int __pm_runtime_idle(struct device *dev, int rpmflags);
40 extern int __pm_runtime_suspend(struct device *dev, int rpmflags);
41 extern int __pm_runtime_resume(struct device *dev, int rpmflags);
42 extern int pm_schedule_suspend(struct device *dev, unsigned int delay);
43 extern int __pm_runtime_set_status(struct device *dev, unsigned int status);
44 extern int pm_runtime_barrier(struct device *dev);
[all …]
Ddevice.h32 struct device;
108 struct device *dev_root;
114 int (*match)(struct device *dev, struct device_driver *drv);
115 int (*uevent)(struct device *dev, struct kobj_uevent_env *env);
116 int (*probe)(struct device *dev);
117 int (*remove)(struct device *dev);
118 void (*shutdown)(struct device *dev);
120 int (*online)(struct device *dev);
121 int (*offline)(struct device *dev);
123 int (*suspend)(struct device *dev, pm_message_t state);
[all …]
Dattribute_container.h15 struct device;
23 int (*match)(struct attribute_container *, struct device *);
42 void attribute_container_create_device(struct device *dev,
44 struct device *,
45 struct device *));
46 void attribute_container_add_device(struct device *dev,
48 struct device *,
49 struct device *));
50 void attribute_container_remove_device(struct device *dev,
52 struct device *,
[all …]
Dpm.h37 struct device; /* we have a circular dep with device.h */
39 extern void pm_vt_switch_required(struct device *dev, bool required);
40 extern void pm_vt_switch_unregister(struct device *dev);
42 static inline void pm_vt_switch_required(struct device *dev, bool required) in pm_vt_switch_required()
45 static inline void pm_vt_switch_unregister(struct device *dev) in pm_vt_switch_unregister()
54 struct device;
296 int (*prepare)(struct device *dev);
297 void (*complete)(struct device *dev);
298 int (*suspend)(struct device *dev);
299 int (*resume)(struct device *dev);
[all …]
Dpm_opp.h21 struct device;
33 int dev_pm_opp_get_opp_count(struct device *dev);
35 struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev,
39 struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev,
42 struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev,
45 int dev_pm_opp_add(struct device *dev, unsigned long freq,
47 void dev_pm_opp_remove(struct device *dev, unsigned long freq);
49 int dev_pm_opp_enable(struct device *dev, unsigned long freq);
51 int dev_pm_opp_disable(struct device *dev, unsigned long freq);
53 struct srcu_notifier_head *dev_pm_opp_get_notifier(struct device *dev);
[all …]
Dcomponent.h4 struct device;
7 int (*bind)(struct device *, struct device *, void *);
8 void (*unbind)(struct device *, struct device *, void *);
11 int component_add(struct device *, const struct component_ops *);
12 void component_del(struct device *, const struct component_ops *);
14 int component_bind_all(struct device *, void *);
15 void component_unbind_all(struct device *, void *);
20 int (*add_components)(struct device *, struct master *);
21 int (*bind)(struct device *);
22 void (*unbind)(struct device *);
[all …]
Dpm_qos.h68 struct device *dev;
138 enum pm_qos_flags_status __dev_pm_qos_flags(struct device *dev, s32 mask);
139 enum pm_qos_flags_status dev_pm_qos_flags(struct device *dev, s32 mask);
140 s32 __dev_pm_qos_read_value(struct device *dev);
141 s32 dev_pm_qos_read_value(struct device *dev);
142 int dev_pm_qos_add_request(struct device *dev, struct dev_pm_qos_request *req,
146 int dev_pm_qos_add_notifier(struct device *dev,
148 int dev_pm_qos_remove_notifier(struct device *dev,
152 void dev_pm_qos_constraints_init(struct device *dev);
153 void dev_pm_qos_constraints_destroy(struct device *dev);
[all …]
Ddma-debug.h25 struct device;
37 extern void debug_dma_map_page(struct device *dev, struct page *page,
42 extern void debug_dma_mapping_error(struct device *dev, dma_addr_t dma_addr);
44 extern void debug_dma_unmap_page(struct device *dev, dma_addr_t addr,
47 extern void debug_dma_map_sg(struct device *dev, struct scatterlist *sg,
50 extern void debug_dma_unmap_sg(struct device *dev, struct scatterlist *sglist,
53 extern void debug_dma_alloc_coherent(struct device *dev, size_t size,
56 extern void debug_dma_free_coherent(struct device *dev, size_t size,
59 extern void debug_dma_sync_single_for_cpu(struct device *dev,
63 extern void debug_dma_sync_single_for_device(struct device *dev,
[all …]
Ddma-mapping.h18 void* (*alloc)(struct device *dev, size_t size,
21 void (*free)(struct device *dev, size_t size,
24 int (*mmap)(struct device *, struct vm_area_struct *,
27 int (*get_sgtable)(struct device *dev, struct sg_table *sgt, void *,
30 dma_addr_t (*map_page)(struct device *dev, struct page *page,
34 void (*unmap_page)(struct device *dev, dma_addr_t dma_handle,
41 int (*map_sg)(struct device *dev, struct scatterlist *sg,
44 void (*unmap_sg)(struct device *dev,
48 void (*sync_single_for_cpu)(struct device *dev,
51 void (*sync_single_for_device)(struct device *dev,
[all …]
Dpm_clock.h24 static inline bool pm_clk_no_clocks(struct device *dev) in pm_clk_no_clocks()
30 extern void pm_clk_init(struct device *dev);
31 extern int pm_clk_create(struct device *dev);
32 extern void pm_clk_destroy(struct device *dev);
33 extern int pm_clk_add(struct device *dev, const char *con_id);
34 extern int pm_clk_add_clk(struct device *dev, struct clk *clk);
35 extern void pm_clk_remove(struct device *dev, const char *con_id);
36 extern int pm_clk_suspend(struct device *dev);
37 extern int pm_clk_resume(struct device *dev);
39 static inline bool pm_clk_no_clocks(struct device *dev) in pm_clk_no_clocks()
[all …]
Ddevfreq.h83 int (*target)(struct device *dev, unsigned long *freq, u32 flags);
84 int (*get_dev_status)(struct device *dev,
86 int (*get_cur_freq)(struct device *dev, unsigned long *freq);
87 void (*exit)(struct device *dev);
156 struct device dev;
179 extern struct devfreq *devfreq_add_device(struct device *dev,
184 extern struct devfreq *devm_devfreq_add_device(struct device *dev,
188 extern void devm_devfreq_remove_device(struct device *dev,
196 extern struct dev_pm_opp *devfreq_recommended_opp(struct device *dev,
198 extern int devfreq_register_opp_notifier(struct device *dev,
[all …]
Dof_device.h11 struct device;
15 const struct of_device_id *matches, const struct device *dev);
16 extern void of_device_make_bus_id(struct device *dev);
23 static inline int of_driver_match_device(struct device *dev, in of_driver_match_device()
36 extern ssize_t of_device_get_modalias(struct device *dev,
39 extern void of_device_uevent(struct device *dev, struct kobj_uevent_env *env);
40 extern int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env);
42 static inline void of_device_node_put(struct device *dev) in of_device_node_put()
49 struct device *cpu_dev; in of_cpu_device_node_get()
56 void of_dma_configure(struct device *dev, struct device_node *np);
[all …]
Dpm_domain.h33 bool (*stop_ok)(struct device *dev);
37 int (*start)(struct device *dev);
38 int (*stop)(struct device *dev);
39 int (*save_state)(struct device *dev);
40 int (*restore_state)(struct device *dev);
41 bool (*active_wakeup)(struct device *dev);
79 struct device *dev);
81 struct device *dev);
109 struct device *dev;
125 static inline struct generic_pm_domain_data *dev_gpd_data(struct device *dev) in dev_gpd_data()
[all …]
Draid_class.h16 int (*is_raid)(struct device *);
17 void (*get_resync)(struct device *);
18 void (*get_state)(struct device *);
56 raid_set_##attr(struct raid_template *r, struct device *dev, type value) { \
57 struct device *device = \
60 BUG_ON(!device); \
61 rd = dev_get_drvdata(device); \
65 raid_get_##attr(struct raid_template *r, struct device *dev) { \
66 struct device *device = \
69 BUG_ON(!device); \
[all …]
Diommu.h37 struct device;
46 struct device *, unsigned long, int, void *);
145 int (*attach_dev)(struct iommu_domain *domain, struct device *dev);
146 void (*detach_dev)(struct iommu_domain *domain, struct device *dev);
154 int (*add_device)(struct device *dev);
155 void (*remove_device)(struct device *dev);
156 int (*device_group)(struct device *dev, unsigned int *groupid);
172 int (*of_xlate)(struct device *dev, struct of_phandle_args *args);
193 struct device *dev);
195 struct device *dev);
[all …]
Dpm_wakeup.h72 static inline bool device_can_wakeup(struct device *dev) in device_can_wakeup()
77 static inline bool device_may_wakeup(struct device *dev) in device_may_wakeup()
91 extern int device_wakeup_enable(struct device *dev);
92 extern int device_wakeup_disable(struct device *dev);
93 extern void device_set_wakeup_capable(struct device *dev, bool capable);
94 extern int device_init_wakeup(struct device *dev, bool val);
95 extern int device_set_wakeup_enable(struct device *dev, bool enable);
97 extern void pm_stay_awake(struct device *dev);
99 extern void pm_relax(struct device *dev);
101 extern void pm_wakeup_event(struct device *dev, unsigned int msec);
[all …]
Dswiotlb.h6 struct device;
42 extern phys_addr_t swiotlb_tbl_map_single(struct device *hwdev,
47 extern void swiotlb_tbl_unmap_single(struct device *hwdev,
51 extern void swiotlb_tbl_sync_single(struct device *hwdev,
58 *swiotlb_alloc_coherent(struct device *hwdev, size_t size,
62 swiotlb_free_coherent(struct device *hwdev, size_t size,
65 extern dma_addr_t swiotlb_map_page(struct device *dev, struct page *page,
69 extern void swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr,
74 swiotlb_map_sg(struct device *hwdev, struct scatterlist *sg, int nents,
78 swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sg, int nents,
[all …]
Dacpi_dma.h32 struct device *dev;
46 struct device *dev;
62 int acpi_dma_controller_register(struct device *dev,
66 int acpi_dma_controller_free(struct device *dev);
67 int devm_acpi_dma_controller_register(struct device *dev,
71 void devm_acpi_dma_controller_free(struct device *dev);
73 struct dma_chan *acpi_dma_request_slave_chan_by_index(struct device *dev,
75 struct dma_chan *acpi_dma_request_slave_chan_by_name(struct device *dev,
82 static inline int acpi_dma_controller_register(struct device *dev, in acpi_dma_controller_register()
89 static inline int acpi_dma_controller_free(struct device *dev) in acpi_dma_controller_free()
[all …]
Dtransport_class.h20 int (*setup)(struct transport_container *, struct device *,
21 struct device *);
22 int (*configure)(struct transport_container *, struct device *,
23 struct device *);
24 int (*remove)(struct transport_container *, struct device *,
25 struct device *);
65 void transport_remove_device(struct device *);
66 void transport_add_device(struct device *);
67 void transport_setup_device(struct device *);
68 void transport_configure_device(struct device *);
[all …]
Dfirmware.h21 struct device;
43 struct device *device);
46 const char *name, struct device *device, gfp_t gfp, void *context,
49 struct device *device);
55 struct device *device) in request_firmware() argument
61 const char *name, struct device *device, gfp_t gfp, void *context, in request_firmware_nowait() argument
73 struct device *device) in request_firmware_direct() argument
Ddca.h38 struct device *cd;
49 int (*add_requester) (struct dca_provider *, struct device *);
50 int (*remove_requester) (struct dca_provider *, struct device *);
51 u8 (*get_tag) (struct dca_provider *, struct device *,
53 int (*dev_managed) (struct dca_provider *, struct device *);
58 int register_dca_provider(struct dca_provider *dca, struct device *dev);
59 void unregister_dca_provider(struct dca_provider *dca, struct device *dev);
68 int dca_add_requester(struct device *dev);
69 int dca_remove_requester(struct device *dev);
71 u8 dca3_get_tag(struct device *dev, int cpu);
[all …]
Dhwmon.h17 struct device;
20 struct device *hwmon_device_register(struct device *dev);
21 struct device *
22 hwmon_device_register_with_groups(struct device *dev, const char *name,
25 struct device *
26 devm_hwmon_device_register_with_groups(struct device *dev, const char *name,
30 void hwmon_device_unregister(struct device *dev);
31 void devm_hwmon_device_unregister(struct device *dev);
Dproperty.h19 struct device;
30 bool device_property_present(struct device *dev, const char *propname);
31 int device_property_read_u8_array(struct device *dev, const char *propname,
33 int device_property_read_u16_array(struct device *dev, const char *propname,
35 int device_property_read_u32_array(struct device *dev, const char *propname,
37 int device_property_read_u64_array(struct device *dev, const char *propname,
39 int device_property_read_string_array(struct device *dev, const char *propname,
41 int device_property_read_string(struct device *dev, const char *propname,
63 struct fwnode_handle *device_get_next_child_node(struct device *dev,
72 unsigned int device_get_child_node_count(struct device *dev);
[all …]
Dacpi.h61 static inline bool has_acpi_companion(struct device *dev) in has_acpi_companion()
66 static inline void acpi_preset_companion(struct device *dev, in acpi_preset_companion()
181 int acpi_register_gsi (struct device *dev, u32 gsi, int triggering, int polarity);
451 const struct device *dev);
453 extern bool acpi_driver_match_device(struct device *dev,
455 int acpi_device_uevent_modalias(struct device *, struct kobj_uevent_env *);
456 int acpi_device_modalias(struct device *, char *, int);
487 static inline bool has_acpi_companion(struct device *dev) in has_acpi_companion()
551 const struct acpi_device_id *ids, const struct device *dev) in acpi_match_device()
556 static inline bool acpi_driver_match_device(struct device *dev, in acpi_driver_match_device()
[all …]
Dreset.h4 struct device;
15 struct reset_control *reset_control_get(struct device *dev, const char *id);
17 struct reset_control *devm_reset_control_get(struct device *dev, const char *id);
19 int __must_check device_reset(struct device *dev);
21 static inline int device_reset_optional(struct device *dev) in device_reset_optional()
27 struct device *dev, const char *id) in reset_control_get_optional()
33 struct device *dev, const char *id) in devm_reset_control_get_optional()
72 static inline int device_reset_optional(struct device *dev) in device_reset_optional()
78 struct device *dev, const char *id) in reset_control_get_optional()
84 struct device *dev, const char *id) in devm_reset_control_get_optional()
Dio.h25 struct device;
53 void __iomem * devm_ioport_map(struct device *dev, unsigned long port,
55 void devm_ioport_unmap(struct device *dev, void __iomem *addr);
57 static inline void __iomem *devm_ioport_map(struct device *dev, in devm_ioport_map()
64 static inline void devm_ioport_unmap(struct device *dev, void __iomem *addr) in devm_ioport_unmap()
71 void __iomem *devm_ioremap(struct device *dev, resource_size_t offset,
73 void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset,
75 void __iomem *devm_ioremap_wc(struct device *dev, resource_size_t offset,
77 void devm_iounmap(struct device *dev, void __iomem *addr);
80 void devm_ioremap_release(struct device *dev, void *res);
Ddevfreq-event.h32 struct device dev;
106 struct device *dev, int index);
107 extern int devfreq_event_get_edev_count(struct device *dev);
108 extern struct devfreq_event_dev *devfreq_event_add_edev(struct device *dev,
111 extern struct devfreq_event_dev *devm_devfreq_event_add_edev(struct device *dev,
113 extern void devm_devfreq_event_remove_edev(struct device *dev,
157 struct device *dev, int index) in devfreq_event_get_edev_by_phandle()
162 static inline int devfreq_event_get_edev_count(struct device *dev) in devfreq_event_get_edev_count()
167 static inline struct devfreq_event_dev *devfreq_event_add_edev(struct device *dev, in devfreq_event_add_edev()
179 struct device *dev, in devm_devfreq_event_add_edev()
[all …]
Drtc.h72 int (*open)(struct device *);
73 void (*release)(struct device *);
74 int (*ioctl)(struct device *, unsigned int, unsigned long);
75 int (*read_time)(struct device *, struct rtc_time *);
76 int (*set_time)(struct device *, struct rtc_time *);
77 int (*read_alarm)(struct device *, struct rtc_wkalrm *);
78 int (*set_alarm)(struct device *, struct rtc_wkalrm *);
79 int (*proc)(struct device *, struct seq_file *);
80 int (*set_mmss64)(struct device *, time64_t secs);
81 int (*set_mmss)(struct device *, unsigned long secs);
[all …]
Ddma-contiguous.h65 static inline struct cma *dev_get_cma_area(struct device *dev) in dev_get_cma_area()
72 static inline void dev_set_cma_area(struct device *dev, struct cma *cma) in dev_set_cma_area()
102 static inline int dma_declare_contiguous(struct device *dev, phys_addr_t size, in dma_declare_contiguous()
114 struct page *dma_alloc_from_contiguous(struct device *dev, int count,
116 bool dma_release_from_contiguous(struct device *dev, struct page *pages,
121 static inline struct cma *dev_get_cma_area(struct device *dev) in dev_get_cma_area()
126 static inline void dev_set_cma_area(struct device *dev, struct cma *cma) { } in dev_set_cma_area()
140 int dma_declare_contiguous(struct device *dev, phys_addr_t size, in dma_declare_contiguous()
147 struct page *dma_alloc_from_contiguous(struct device *dev, int count, in dma_alloc_from_contiguous()
154 bool dma_release_from_contiguous(struct device *dev, struct page *pages, in dma_release_from_contiguous()
/linux-4.1.27/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()
86 device->cdev_id); in tape_std_assign()
88 DBF_EVENT(3, "%08x: Tape assigned\n", device->cdev_id); in tape_std_assign()
[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 …]
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_proc.c40 struct tape_device *device; in tape_proc_show() local
50 device = tape_find_device(n); in tape_proc_show()
51 if (IS_ERR(device)) in tape_proc_show()
53 spin_lock_irq(get_ccwdev_lock(device->cdev)); in tape_proc_show()
55 seq_printf(m, "%-10.10s ", dev_name(&device->cdev->dev)); in tape_proc_show()
56 seq_printf(m, "%04X/", device->cdev->id.cu_type); in tape_proc_show()
57 seq_printf(m, "%02X\t", device->cdev->id.cu_model); in tape_proc_show()
58 seq_printf(m, "%04X/", device->cdev->id.dev_type); in tape_proc_show()
59 seq_printf(m, "%02X\t\t", device->cdev->id.dev_model); in tape_proc_show()
60 if (device->char_data.block_size == 0) in tape_proc_show()
[all …]
/linux-4.1.27/drivers/firewire/
Dcore-device.c171 static const struct ieee1394_device_id *unit_match(struct device *dev, in unit_match()
187 static bool is_fw_unit(struct device *dev);
189 static int fw_unit_match(struct device *dev, struct device_driver *drv) in fw_unit_match()
195 static int fw_unit_probe(struct device *dev) in fw_unit_probe()
203 static int fw_unit_remove(struct device *dev) in fw_unit_remove()
222 static int fw_unit_uevent(struct device *dev, struct kobj_uevent_env *env) in fw_unit_uevent()
243 int fw_device_enable_phys_dma(struct fw_device *device) in fw_device_enable_phys_dma() argument
245 int generation = device->generation; in fw_device_enable_phys_dma()
250 return device->card->driver->enable_phys_dma(device->card, in fw_device_enable_phys_dma()
251 device->node_id, in fw_device_enable_phys_dma()
[all …]
Dsbp2.c187 static const struct device *tgt_dev(const struct sbp2_target *tgt) in tgt_dev()
189 return &tgt->unit->device; in tgt_dev()
192 static const struct device *lu_dev(const struct sbp2_logical_unit *lu) in lu_dev()
194 return &lu->tgt->unit->device; in lu_dev()
504 struct fw_device *device = target_parent_device(lu->tgt); in sbp2_send_orb() local
519 fw_send_request(device->card, &orb->t, TCODE_WRITE_BLOCK_REQUEST, in sbp2_send_orb()
520 node_id, generation, device->max_speed, offset, in sbp2_send_orb()
526 struct fw_device *device = target_parent_device(lu->tgt); in sbp2_cancel_orbs() local
538 if (fw_cancel_transaction(device->card, &orb->t) == 0) in sbp2_cancel_orbs()
564 struct fw_device *device = target_parent_device(lu->tgt); in sbp2_send_management_orb() local
[all …]
/linux-4.1.27/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 …]
Dverbs.c131 enum rdma_link_layer rdma_port_get_link_layer(struct ib_device *device, u8 port_num) in rdma_port_get_link_layer() argument
133 if (device->get_link_layer) in rdma_port_get_link_layer()
134 return device->get_link_layer(device, port_num); in rdma_port_get_link_layer()
136 switch (rdma_node_get_transport(device->node_type)) { in rdma_port_get_link_layer()
151 struct ib_pd *ib_alloc_pd(struct ib_device *device) in ib_alloc_pd() argument
155 pd = device->alloc_pd(device, NULL, NULL); in ib_alloc_pd()
158 pd->device = device; in ib_alloc_pd()
172 return pd->device->dealloc_pd(pd); in ib_dealloc_pd()
182 ah = pd->device->create_ah(pd, ah_attr); in ib_create_ah()
185 ah->device = pd->device; in ib_create_ah()
[all …]
Dagent.c57 __ib_get_agent_port(struct ib_device *device, int port_num) in __ib_get_agent_port() argument
62 if (entry->agent[1]->device == device && in __ib_get_agent_port()
70 ib_get_agent_port(struct ib_device *device, int port_num) in ib_get_agent_port() argument
76 entry = __ib_get_agent_port(device, port_num); in ib_get_agent_port()
82 struct ib_wc *wc, struct ib_device *device, in agent_send_response() argument
91 if (device->node_type == RDMA_NODE_IB_SWITCH) in agent_send_response()
92 port_priv = ib_get_agent_port(device, 0); in agent_send_response()
94 port_priv = ib_get_agent_port(device, port_num); in agent_send_response()
97 dev_err(&device->dev, "Unable to find port agent\n"); in agent_send_response()
104 dev_err(&device->dev, "ib_create_ah_from_wc error %ld\n", in agent_send_response()
[all …]
Dsysfs.c455 static void ib_device_release(struct device *device) in ib_device_release() argument
457 struct ib_device *dev = container_of(device, struct ib_device, dev); in ib_device_release()
462 static int ib_device_uevent(struct device *device, in ib_device_uevent() argument
465 struct ib_device *dev = container_of(device, struct ib_device, dev); in ib_device_uevent()
520 static int add_port(struct ib_device *device, int port_num, in add_port() argument
529 ret = ib_query_port(device, port_num, &attr); in add_port()
537 p->ibdev = device; in add_port()
541 device->ports_parent, in add_port()
576 ret = port_callback(device, port_num, &p->kobj); in add_port()
581 list_add_tail(&p->kobj.entry, &device->port_list); in add_port()
[all …]
/linux-4.1.27/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);
27 extern int dpm_sysfs_add(struct device *dev);
28 extern void dpm_sysfs_remove(struct device *dev);
29 extern void rpm_sysfs_remove(struct device *dev);
30 extern int wakeup_sysfs_add(struct device *dev);
31 extern void wakeup_sysfs_remove(struct device *dev);
32 extern int pm_qos_sysfs_add_resume_latency(struct device *dev);
[all …]
Dgeneric_ops.c22 int pm_generic_runtime_suspend(struct device *dev) in pm_generic_runtime_suspend()
41 int pm_generic_runtime_resume(struct device *dev) in pm_generic_runtime_resume()
60 int pm_generic_prepare(struct device *dev) in pm_generic_prepare()
75 int pm_generic_suspend_noirq(struct device *dev) in pm_generic_suspend_noirq()
87 int pm_generic_suspend_late(struct device *dev) in pm_generic_suspend_late()
99 int pm_generic_suspend(struct device *dev) in pm_generic_suspend()
111 int pm_generic_freeze_noirq(struct device *dev) in pm_generic_freeze_noirq()
123 int pm_generic_freeze_late(struct device *dev) in pm_generic_freeze_late()
135 int pm_generic_freeze(struct device *dev) in pm_generic_freeze()
147 int pm_generic_poweroff_noirq(struct device *dev) in pm_generic_poweroff_noirq()
[all …]
Dsysfs.c101 static ssize_t control_show(struct device *dev, struct device_attribute *attr, in control_show()
108 static ssize_t control_store(struct device * dev, struct device_attribute *attr, in control_store()
130 static ssize_t rtpm_active_time_show(struct device *dev, in rtpm_active_time_show()
143 static ssize_t rtpm_suspended_time_show(struct device *dev, in rtpm_suspended_time_show()
157 static ssize_t rtpm_status_show(struct device *dev, in rtpm_status_show()
189 static ssize_t autosuspend_delay_ms_show(struct device *dev, in autosuspend_delay_ms_show()
197 static ssize_t autosuspend_delay_ms_store(struct device *dev, in autosuspend_delay_ms_store()
217 static ssize_t pm_qos_resume_latency_show(struct device *dev, in pm_qos_resume_latency_show()
224 static ssize_t pm_qos_resume_latency_store(struct device *dev, in pm_qos_resume_latency_store()
245 static ssize_t pm_qos_latency_tolerance_show(struct device *dev, in pm_qos_latency_tolerance_show()
[all …]
/linux-4.1.27/drivers/s390/block/
Ddasd.c90 struct dasd_device *device; in dasd_alloc_device() local
92 device = kzalloc(sizeof(struct dasd_device), GFP_ATOMIC); in dasd_alloc_device()
93 if (!device) in dasd_alloc_device()
97 device->ccw_mem = (void *) __get_free_pages(GFP_ATOMIC | GFP_DMA, 1); in dasd_alloc_device()
98 if (!device->ccw_mem) { in dasd_alloc_device()
99 kfree(device); in dasd_alloc_device()
103 device->erp_mem = (void *) get_zeroed_page(GFP_ATOMIC | GFP_DMA); in dasd_alloc_device()
104 if (!device->erp_mem) { in dasd_alloc_device()
105 free_pages((unsigned long) device->ccw_mem, 1); in dasd_alloc_device()
106 kfree(device); in dasd_alloc_device()
[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 …]
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_alias.c186 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()
232 list_add(&device->alias_list, &lcu->inactive_devices); in dasd_alias_make_device_known_to_lcu()
245 void dasd_alias_disconnect_device_from_lcu(struct dasd_device *device) in dasd_alias_disconnect_device_from_lcu() argument
254 private = (struct dasd_eckd_private *) device->private; in dasd_alias_disconnect_device_from_lcu()
259 device->discipline->get_uid(device, &uid); in dasd_alias_disconnect_device_from_lcu()
261 list_del_init(&device->alias_list); in dasd_alias_disconnect_device_from_lcu()
263 if (device == lcu->suc_data.device) { in dasd_alias_disconnect_device_from_lcu()
267 if (device == lcu->suc_data.device) { in dasd_alias_disconnect_device_from_lcu()
[all …]
Ddasd_erp.c27 struct dasd_device * device) in dasd_alloc_erp_request() argument
43 spin_lock_irqsave(&device->mem_lock, flags); in dasd_alloc_erp_request()
45 dasd_alloc_chunk(&device->erp_chunks, size); in dasd_alloc_erp_request()
46 spin_unlock_irqrestore(&device->mem_lock, flags); in dasd_alloc_erp_request()
67 dasd_get_device(device); in dasd_alloc_erp_request()
72 dasd_free_erp_request(struct dasd_ccw_req *cqr, struct dasd_device * device) in dasd_free_erp_request() argument
76 spin_lock_irqsave(&device->mem_lock, flags); in dasd_free_erp_request()
77 dasd_free_chunk(&device->erp_chunks, cqr); in dasd_free_erp_request()
78 spin_unlock_irqrestore(&device->mem_lock, flags); in dasd_free_erp_request()
79 atomic_dec(&device->ref_count); in dasd_free_erp_request()
[all …]
Ddasd_diag.c97 mdsk_init_io(struct dasd_device *device, unsigned int blocksize, in mdsk_init_io() argument
104 private = (struct dasd_diag_private *) device->private; in mdsk_init_io()
124 mdsk_term_io(struct dasd_device * device) in mdsk_term_io() argument
130 private = (struct dasd_diag_private *) device->private; in mdsk_term_io()
141 dasd_diag_erp(struct dasd_device *device) in dasd_diag_erp() argument
145 mdsk_term_io(device); in dasd_diag_erp()
146 rc = mdsk_init_io(device, device->block->bp_block, 0, NULL); in dasd_diag_erp()
148 if (!(test_and_set_bit(DASD_FLAG_DEVICE_RO, &device->flags))) in dasd_diag_erp()
151 dev_name(&device->cdev->dev)); in dasd_diag_erp()
156 "rc=%d\n", dev_name(&device->cdev->dev), rc); in dasd_diag_erp()
[all …]
Ddasd_proc.c37 struct dasd_device *device; in dasd_devices_show() local
41 device = dasd_device_from_devindex((unsigned long) v - 1); in dasd_devices_show()
42 if (IS_ERR(device)) in dasd_devices_show()
44 if (device->block) in dasd_devices_show()
45 block = device->block; in dasd_devices_show()
47 dasd_put_device(device); in dasd_devices_show()
51 seq_printf(m, "%s", dev_name(&device->cdev->dev)); in dasd_devices_show()
53 if (device->discipline != NULL) in dasd_devices_show()
54 seq_printf(m, "(%s)", device->discipline->name); in dasd_devices_show()
70 substr = (device->features & DASD_FEATURE_READONLY) ? "(ro)" : " "; in dasd_devices_show()
[all …]
Ddasd_eckd.c107 struct dasd_device *device; member
119 struct dasd_device *device; member
213 struct dasd_device *device) in check_XRC() argument
218 private = (struct dasd_eckd_private *) device->private; in check_XRC()
238 unsigned int totrk, int cmd, struct dasd_device *device) in define_extent() argument
245 private = (struct dasd_eckd_private *) device->private; in define_extent()
272 rc = check_XRC (ccw, data, device); in define_extent()
277 rc = check_XRC (ccw, data, device); in define_extent()
285 rc = check_XRC (ccw, data, device); in define_extent()
288 dev_err(&device->cdev->dev, in define_extent()
[all …]
Ddasd_eer.c292 static void dasd_eer_write_standard_trigger(struct dasd_device *device, in dasd_eer_write_standard_trigger() argument
315 strncpy(header.busid, dev_name(&device->cdev->dev), in dasd_eer_write_standard_trigger()
336 static void dasd_eer_write_snss_trigger(struct dasd_device *device, in dasd_eer_write_snss_trigger() argument
358 strncpy(header.busid, dev_name(&device->cdev->dev), in dasd_eer_write_snss_trigger()
377 void dasd_eer_write(struct dasd_device *device, struct dasd_ccw_req *cqr, in dasd_eer_write() argument
380 if (!device->eer_cqr) in dasd_eer_write()
385 dasd_eer_write_standard_trigger(device, cqr, id); in dasd_eer_write()
388 dasd_eer_write_standard_trigger(device, NULL, id); in dasd_eer_write()
391 dasd_eer_write_snss_trigger(device, cqr, id); in dasd_eer_write()
394 dasd_eer_write_standard_trigger(device, NULL, id); in dasd_eer_write()
[all …]
/linux-4.1.27/drivers/gpu/host1x/
Dbus.c43 static int host1x_subdev_add(struct host1x_device *device, in host1x_subdev_add() argument
55 mutex_lock(&device->subdevs_lock); in host1x_subdev_add()
56 list_add_tail(&subdev->list, &device->subdevs); in host1x_subdev_add()
57 mutex_unlock(&device->subdevs_lock); in host1x_subdev_add()
75 static int host1x_device_parse_dt(struct host1x_device *device, in host1x_device_parse_dt() argument
81 for_each_child_of_node(device->dev.parent->of_node, np) { in host1x_device_parse_dt()
84 err = host1x_subdev_add(device, np); in host1x_device_parse_dt()
93 static void host1x_subdev_register(struct host1x_device *device, in host1x_subdev_register() argument
104 mutex_lock(&device->subdevs_lock); in host1x_subdev_register()
105 mutex_lock(&device->clients_lock); in host1x_subdev_register()
[all …]
Dmipi.c101 struct device *device; member
117 struct tegra_mipi_device *tegra_mipi_request(struct device *device) in tegra_mipi_request() argument
119 struct device_node *np = device->of_node; in tegra_mipi_request()
151 dev->device = device; in tegra_mipi_request()
165 void tegra_mipi_free(struct tegra_mipi_device *device) in tegra_mipi_free() argument
167 platform_device_put(device->pdev); in tegra_mipi_free()
168 kfree(device); in tegra_mipi_free()
189 int tegra_mipi_calibrate(struct tegra_mipi_device *device) in tegra_mipi_calibrate() argument
191 const struct tegra_mipi_soc *soc = device->mipi->soc; in tegra_mipi_calibrate()
196 err = clk_enable(device->mipi->clk); in tegra_mipi_calibrate()
[all …]
/linux-4.1.27/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 …]
Dhid-hyperv.c146 struct hv_device *device; member
164 static struct mousevsc_dev *mousevsc_alloc_device(struct hv_device *device) in mousevsc_alloc_device() argument
173 input_dev->device = device; in mousevsc_alloc_device()
174 hv_set_drvdata(device, input_dev); in mousevsc_alloc_device()
181 static void mousevsc_free_device(struct mousevsc_dev *device) in mousevsc_free_device() argument
183 kfree(device->hid_desc); in mousevsc_free_device()
184 kfree(device->report_desc); in mousevsc_free_device()
185 hv_set_drvdata(device->device, NULL); in mousevsc_free_device()
186 kfree(device); in mousevsc_free_device()
236 ret = vmbus_sendpacket(input_device->device->channel, in mousevsc_on_receive_device_info()
[all …]
/linux-4.1.27/drivers/misc/mei/
Dbus.c33 static int mei_cl_device_match(struct device *dev, struct device_driver *drv) in mei_cl_device_match()
35 struct mei_cl_device *device = to_mei_cl_device(dev); in mei_cl_device_match() local
39 if (!device) in mei_cl_device_match()
57 static int mei_cl_device_probe(struct device *dev) in mei_cl_device_probe()
59 struct mei_cl_device *device = to_mei_cl_device(dev); in mei_cl_device_probe() local
63 if (!device) in mei_cl_device_probe()
74 return driver->probe(device, &id); in mei_cl_device_probe()
77 static int mei_cl_device_remove(struct device *dev) in mei_cl_device_remove()
79 struct mei_cl_device *device = to_mei_cl_device(dev); in mei_cl_device_remove() local
82 if (!device || !dev->driver) in mei_cl_device_remove()
[all …]
/linux-4.1.27/drivers/pcmcia/
Dsa1100_generic.h7 extern int pcmcia_adsbitsy_init(struct device *);
8 extern int pcmcia_assabet_init(struct device *);
9 extern int pcmcia_badge4_init(struct device *);
10 extern int pcmcia_cerf_init(struct device *);
11 extern int pcmcia_flexanet_init(struct device *);
12 extern int pcmcia_freebird_init(struct device *);
13 extern int pcmcia_gcplus_init(struct device *);
14 extern int pcmcia_graphicsmaster_init(struct device *);
15 extern int pcmcia_h3600_init(struct device *);
16 extern int pcmcia_nanoengine_init(struct device *);
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/nvif/
Ddevice.c28 nvif_device_fini(struct nvif_device *device) in nvif_device_fini() argument
30 nvif_object_fini(&device->base); in nvif_device_fini()
36 struct nvif_device *device) in nvif_device_init() argument
39 data, size, &device->base); in nvif_device_init()
41 device->object = &device->base; in nvif_device_init()
42 device->info.version = 0; in nvif_device_init()
43 ret = nvif_object_mthd(&device->base, NV_DEVICE_V0_INFO, in nvif_device_init()
44 &device->info, sizeof(device->info)); in nvif_device_init()
50 nvif_device_del(struct nvif_device *device) in nvif_device_del() argument
52 nvif_device_fini(device); in nvif_device_del()
[all …]
/linux-4.1.27/drivers/dma/
Ddmaengine.c79 static struct dma_chan *dev_to_dma_chan(struct device *dev) in dev_to_dma_chan()
83 chan_dev = container_of(dev, typeof(*chan_dev), device); in dev_to_dma_chan()
87 static ssize_t memcpy_count_show(struct device *dev, in memcpy_count_show()
109 static ssize_t bytes_transferred_show(struct device *dev, in bytes_transferred_show()
131 static ssize_t in_use_show(struct device *dev, struct device_attribute *attr, in in_use_show()
157 static void chan_dev_release(struct device *dev) in chan_dev_release()
161 chan_dev = container_of(dev, typeof(*chan_dev), device); in chan_dev_release()
179 #define dma_device_satisfies_mask(device, mask) \ argument
180 __dma_device_satisfies_mask((device), &(mask))
182 __dma_device_satisfies_mask(struct dma_device *device, in __dma_device_satisfies_mask() argument
[all …]
/linux-4.1.27/drivers/acpi/
Dprocessor_driver.c55 static int acpi_processor_start(struct device *dev);
56 static int acpi_processor_stop(struct device *dev);
75 struct acpi_device *device = data; in acpi_processor_notify() local
79 if (device->handle != handle) in acpi_processor_notify()
82 pr = acpi_driver_data(device); in acpi_processor_notify()
92 acpi_bus_generate_netlink_event(device->pnp.device_class, in acpi_processor_notify()
93 dev_name(&device->dev), event, in acpi_processor_notify()
98 acpi_bus_generate_netlink_event(device->pnp.device_class, in acpi_processor_notify()
99 dev_name(&device->dev), event, 0); in acpi_processor_notify()
103 acpi_bus_generate_netlink_event(device->pnp.device_class, in acpi_processor_notify()
[all …]
Dbutton.c77 static int acpi_button_add(struct acpi_device *device);
78 static int acpi_button_remove(struct acpi_device *device);
79 static void acpi_button_notify(struct acpi_device *device, u32 event);
82 static int acpi_button_suspend(struct device *dev);
83 static int acpi_button_resume(struct device *dev);
122 struct acpi_device *device = seq->private; in acpi_button_state_seq_show() local
126 status = acpi_evaluate_integer(device->handle, "_LID", NULL, &state); in acpi_button_state_seq_show()
146 static int acpi_button_add_fs(struct acpi_device *device) in acpi_button_add_fs() argument
148 struct acpi_button *button = acpi_driver_data(device); in acpi_button_add_fs()
174 acpi_device_dir(device) = proc_mkdir(acpi_device_bid(device), acpi_lid_dir); in acpi_button_add_fs()
[all …]
Dscan.c27 #define ACPI_IS_ROOT_DEVICE(device) (!(device)->parent) argument
247 static struct acpi_device *acpi_companion_match(const struct device *dev) in acpi_companion_match()
318 int acpi_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env) in acpi_device_uevent_modalias()
361 int acpi_device_modalias(struct device *dev, char *buf, int size) in acpi_device_modalias()
368 acpi_device_modalias_show(struct device *dev, struct device_attribute *attr, char *buf) { in acpi_device_modalias_show()
400 struct acpi_device *device = NULL; in acpi_bus_offline() local
405 if (acpi_bus_get_device(handle, &device)) in acpi_bus_offline()
408 if (device->handler && !device->handler->hotplug.enabled) { in acpi_bus_offline()
409 *ret_p = &device->dev; in acpi_bus_offline()
413 mutex_lock(&device->physical_node_lock); in acpi_bus_offline()
[all …]
Dfan.c51 static int acpi_fan_suspend(struct device *dev);
52 static int acpi_fan_resume(struct device *dev);
101 struct acpi_device *device = cdev->devdata; in fan_get_max_state() local
102 struct acpi_fan *fan = acpi_driver_data(device); in fan_get_max_state()
111 static int fan_get_state_acpi4(struct acpi_device *device, unsigned long *state) in fan_get_state_acpi4() argument
114 struct acpi_fan *fan = acpi_driver_data(device); in fan_get_state_acpi4()
119 status = acpi_evaluate_object(device->handle, "_FST", NULL, &buffer); in fan_get_state_acpi4()
121 dev_err(&device->dev, "Get fan state failed\n"); in fan_get_state_acpi4()
129 dev_err(&device->dev, "Invalid _FST data\n"); in fan_get_state_acpi4()
140 dev_dbg(&device->dev, "Invalid control value returned\n"); in fan_get_state_acpi4()
[all …]
Ddevice_pm.c67 int acpi_device_get_power(struct acpi_device *device, int *state) in acpi_device_get_power() argument
71 if (!device || !state) in acpi_device_get_power()
74 if (!device->flags.power_manageable) { in acpi_device_get_power()
76 *state = device->parent ? in acpi_device_get_power()
77 device->parent->power.state : ACPI_STATE_D0; in acpi_device_get_power()
85 if (device->power.flags.power_resources) { in acpi_device_get_power()
86 int error = acpi_power_get_inferred_state(device, &result); in acpi_device_get_power()
90 if (device->power.flags.explicit_get) { in acpi_device_get_power()
91 acpi_handle handle = device->handle; in acpi_device_get_power()
119 if (!device->power.flags.ignore_parent && device->parent in acpi_device_get_power()
[all …]
Dvideo.c98 static int acpi_video_bus_add(struct acpi_device *device);
99 static int acpi_video_bus_remove(struct acpi_device *device);
100 static void acpi_video_bus_notify(struct acpi_device *device, u32 event);
158 struct acpi_device *device; member
233 struct acpi_video_device *device);
235 static int acpi_video_device_lcd_set_level(struct acpi_video_device *device,
238 struct acpi_video_device *device,
240 static int acpi_video_get_next_level(struct acpi_video_device *device,
301 struct acpi_device *device = cooling_dev->devdata; in video_get_max_state() local
302 struct acpi_video_device *video = acpi_driver_data(device); in video_get_max_state()
[all …]
Dac.c60 static int acpi_ac_add(struct acpi_device *device);
61 static int acpi_ac_remove(struct acpi_device *device);
62 static void acpi_ac_notify(struct acpi_device *device, u32 event);
71 static int acpi_ac_resume(struct device *dev);
100 struct acpi_device * device; member
128 status = acpi_evaluate_integer(ac->device->handle, "_PSR", NULL, in acpi_ac_get_state()
216 if (!acpi_device_dir(ac->device)) { in acpi_ac_add_fs()
217 acpi_device_dir(ac->device) = in acpi_ac_add_fs()
218 proc_mkdir(acpi_device_bid(ac->device), acpi_ac_dir); in acpi_ac_add_fs()
219 if (!acpi_device_dir(ac->device)) in acpi_ac_add_fs()
[all …]
Dpower.c60 struct acpi_device device; member
83 struct acpi_power_resource *to_power_resource(struct acpi_device *device) in to_power_resource() argument
85 return container_of(device, struct acpi_power_resource, device); in to_power_resource()
90 struct acpi_device *device; in acpi_power_get_context() local
92 if (acpi_bus_get_device(handle, &device)) in acpi_power_get_context()
95 return to_power_resource(device); in acpi_power_get_context()
206 acpi_handle handle = resource->device.handle; in acpi_power_get_list_state()
230 status = acpi_evaluate_object(resource->device.handle, "_ON", NULL, NULL); in __acpi_power_on()
270 status = acpi_evaluate_object(resource->device.handle, "_OFF", in __acpi_power_off()
389 struct acpi_device *res_dev = &entry->resource->device; in acpi_power_hide_list()
[all …]
Dacpi_pad.c273 static ssize_t acpi_pad_rrtime_store(struct device *dev, in acpi_pad_rrtime_store()
287 static ssize_t acpi_pad_rrtime_show(struct device *dev, in acpi_pad_rrtime_show()
296 static ssize_t acpi_pad_idlepct_store(struct device *dev, in acpi_pad_idlepct_store()
310 static ssize_t acpi_pad_idlepct_show(struct device *dev, in acpi_pad_idlepct_show()
319 static ssize_t acpi_pad_idlecpus_store(struct device *dev, in acpi_pad_idlecpus_store()
331 static ssize_t acpi_pad_idlecpus_show(struct device *dev, in acpi_pad_idlecpus_show()
342 static int acpi_pad_add_sysfs(struct acpi_device *device) in acpi_pad_add_sysfs() argument
346 result = device_create_file(&device->dev, &dev_attr_idlecpus); in acpi_pad_add_sysfs()
349 result = device_create_file(&device->dev, &dev_attr_idlepct); in acpi_pad_add_sysfs()
351 device_remove_file(&device->dev, &dev_attr_idlecpus); in acpi_pad_add_sysfs()
[all …]
Dpci_root.c48 static int acpi_pci_root_add(struct acpi_device *device,
50 static void acpi_pci_root_remove(struct acpi_device *device);
90 struct acpi_device *device; in acpi_is_root_bridge() local
92 ret = acpi_bus_get_device(handle, &device); in acpi_is_root_bridge()
96 ret = acpi_match_device_ids(device, root_device_ids); in acpi_is_root_bridge()
174 dev_info(&root->device->dev, "_OSC: %s [%s]\n", msg, buf); in decode_osc_bits()
230 status = acpi_pci_run_osc(root->device->handle, capbuf, &result); in acpi_pci_query_osc()
252 struct acpi_device *device; in acpi_pci_find_root() local
254 if (acpi_bus_get_device(handle, &device) || in acpi_pci_find_root()
255 acpi_match_device_ids(device, root_device_ids)) in acpi_pci_find_root()
[all …]
Dacpi_memhotplug.c59 static int acpi_memory_device_add(struct acpi_device *device,
61 static void acpi_memory_device_remove(struct acpi_device *device);
82 struct acpi_device * device; member
142 status = acpi_walk_resources(mem_device->device->handle, METHOD_NAME__CRS, in acpi_memory_get_device_resources()
157 if (ACPI_FAILURE(acpi_evaluate_integer(mem_device->device->handle, in acpi_memory_check_device()
210 acpi_handle handle = mem_device->device->handle; in acpi_memory_enable_device()
246 result = acpi_bind_memory_blocks(info, mem_device->device); in acpi_memory_enable_device()
261 dev_err(&mem_device->device->dev, "add_memory failed\n"); in acpi_memory_enable_device()
278 acpi_handle handle = mem_device->device->handle; in acpi_memory_remove_memory()
302 mem_device->device->driver_data = NULL; in acpi_memory_device_free()
[all …]
Dacpi_processor.c213 static int acpi_processor_get_info(struct acpi_device *device) in acpi_processor_get_info() argument
217 struct acpi_processor *pr = acpi_driver_data(device); in acpi_processor_get_info()
238 if (!strcmp(acpi_device_hid(device), ACPI_PROCESSOR_OBJECT_HID)) { in acpi_processor_get_info()
242 dev_err(&device->dev, in acpi_processor_get_info()
257 dev_err(&device->dev, in acpi_processor_get_info()
303 sprintf(acpi_device_bid(device), "CPU%X", pr->id); in acpi_processor_get_info()
310 dev_err(&device->dev, "Invalid PBLK length [%d]\n", in acpi_processor_get_info()
349 static int acpi_processor_add(struct acpi_device *device, in acpi_processor_add() argument
353 struct device *dev; in acpi_processor_add()
365 pr->handle = device->handle; in acpi_processor_add()
[all …]
Dpci_link.c54 static int acpi_pci_link_add(struct acpi_device *device,
56 static void acpi_pci_link_remove(struct acpi_device *device);
86 struct acpi_device *device; member
175 status = acpi_walk_resources(link->device->handle, METHOD_NAME__PRS, in acpi_pci_link_get_possible()
257 result = acpi_bus_get_status(link->device); in acpi_pci_link_get_current()
263 if (!link->device->status.enabled) { in acpi_pci_link_get_current()
273 status = acpi_walk_resources(link->device->handle, METHOD_NAME__CRS, in acpi_pci_link_get_current()
358 status = acpi_set_current_resources(link->device->handle, &buffer); in acpi_pci_link_set()
368 result = acpi_bus_get_status(link->device); in acpi_pci_link_set()
373 if (!link->device->status.enabled) { in acpi_pci_link_set()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/gr/
Dctxnv40.c121 nv40_gr_vs_count(struct nvkm_device *device) in nv40_gr_vs_count() argument
124 switch (device->chipset) { in nv40_gr_vs_count()
162 struct nvkm_device *device = ctx->device; in nv40_gr_construct_general() local
189 if (device->chipset == 0x40) { in nv40_gr_construct_general()
210 if (nv44_gr_class(ctx->device)) { in nv40_gr_construct_general()
219 if (!nv44_gr_class(ctx->device)) { in nv40_gr_construct_general()
225 if (device->chipset == 0x4c || in nv40_gr_construct_general()
226 (device->chipset & 0xf0) == 0x60) in nv40_gr_construct_general()
233 switch (device->chipset) { in nv40_gr_construct_general()
242 switch (device->chipset) { in nv40_gr_construct_general()
[all …]
Dctxnv50.c256 nv50_grctx_fill(struct nvkm_device *device, struct nvkm_gpuobj *mem) in nv50_grctx_fill() argument
259 .device = device, in nv50_grctx_fill()
266 nv50_grctx_init(struct nvkm_device *device, u32 *size) in nv50_grctx_init() argument
270 .device = device, in nv50_grctx_init()
280 nv_wr32(device, 0x400324, 0); in nv50_grctx_init()
282 nv_wr32(device, 0x400328, ctxprog[i]); in nv50_grctx_init()
299 struct nvkm_device *device = ctx->device; in nv50_gr_construct_mmio() local
302 u32 units = nv_rd32 (ctx->device, 0x1540); in nv50_gr_construct_mmio()
308 if (device->chipset == 0x50) { in nv50_gr_construct_mmio()
315 if (IS_NVA3F(device->chipset)) in nv50_gr_construct_mmio()
[all …]
/linux-4.1.27/drivers/video/fbdev/core/
Dfbsysfs.c39 struct fb_info *framebuffer_alloc(size_t size, struct device *dev) in framebuffer_alloc()
60 info->device = dev; in framebuffer_alloc()
127 static ssize_t store_mode(struct device *device, struct device_attribute *attr, in store_mode() argument
130 struct fb_info *fb_info = dev_get_drvdata(device); in store_mode()
158 static ssize_t show_mode(struct device *device, struct device_attribute *attr, in show_mode() argument
161 struct fb_info *fb_info = dev_get_drvdata(device); in show_mode()
169 static ssize_t store_modes(struct device *device, in store_modes() argument
173 struct fb_info *fb_info = dev_get_drvdata(device); in store_modes()
201 static ssize_t show_modes(struct device *device, struct device_attribute *attr, in show_modes() argument
204 struct fb_info *fb_info = dev_get_drvdata(device); in show_modes()
[all …]
/linux-4.1.27/arch/arm/include/asm/
Ddma-mapping.h21 static inline struct dma_map_ops *__generic_dma_ops(struct device *dev) in __generic_dma_ops()
28 static inline struct dma_map_ops *get_dma_ops(struct device *dev) in get_dma_ops()
36 static inline void set_dma_ops(struct device *dev, struct dma_map_ops *ops) in set_dma_ops()
44 static inline int dma_set_mask(struct device *dev, u64 mask) in dma_set_mask()
59 static inline dma_addr_t pfn_to_dma(struct device *dev, unsigned long pfn) in pfn_to_dma()
66 static inline unsigned long dma_to_pfn(struct device *dev, dma_addr_t addr) in dma_to_pfn()
76 static inline void *dma_to_virt(struct device *dev, dma_addr_t addr) in dma_to_virt()
87 static inline dma_addr_t virt_to_dma(struct device *dev, void *addr) in virt_to_dma()
96 static inline dma_addr_t pfn_to_dma(struct device *dev, unsigned long pfn) in pfn_to_dma()
101 static inline unsigned long dma_to_pfn(struct device *dev, dma_addr_t addr) in dma_to_pfn()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/dispnv04/
Dhw.h63 struct nvif_device *device = &nouveau_drm(dev)->device; in NVReadCRTC() local
67 val = nvif_rd32(device, reg); in NVReadCRTC()
74 struct nvif_device *device = &nouveau_drm(dev)->device; in NVWriteCRTC() local
77 nvif_wr32(device, reg, val); in NVWriteCRTC()
83 struct nvif_device *device = &nouveau_drm(dev)->device; in NVReadRAMDAC() local
87 val = nvif_rd32(device, reg); in NVReadRAMDAC()
94 struct nvif_device *device = &nouveau_drm(dev)->device; in NVWriteRAMDAC() local
97 nvif_wr32(device, reg, val); in NVWriteRAMDAC()
123 struct nvif_device *device = &nouveau_drm(dev)->device; in NVWriteVgaCrtc() local
124 nvif_wr08(device, NV_PRMCIO_CRX__COLOR + head * NV_PRMCIO_SIZE, index); in NVWriteVgaCrtc()
[all …]
Dhw.c92 if (drm->device.info.chipset == 0x11) { in NVSetOwner()
103 if (drm->device.info.chipset == 0x11) { /* set me harder */ in NVSetOwner()
152 else if (drm->device.info.chipset == 0x30 || drm->device.info.chipset == 0x35) { in nouveau_hw_decode_pll()
168 struct nvif_device *device = &drm->device; in nouveau_hw_get_pllvals() local
169 struct nvkm_bios *bios = nvxx_bios(device); in nouveau_hw_get_pllvals()
178 pll1 = nvif_rd32(device, reg1); in nouveau_hw_get_pllvals()
180 pll2 = nvif_rd32(device, reg1 + 4); in nouveau_hw_get_pllvals()
184 pll2 = nvif_rd32(device, reg2); in nouveau_hw_get_pllvals()
187 if (drm->device.info.family == NV_DEVICE_INFO_V0_CELSIUS && reg1 >= NV_PRAMDAC_VPLL_COEFF) { in nouveau_hw_get_pllvals()
221 (dev->pdev->device & 0x0ff0) == CHIPSET_NFORCE) { in nouveau_hw_get_clock()
[all …]
/linux-4.1.27/drivers/input/tablet/
Dgtco.c200 static void parse_hid_report_descriptor(struct gtco *device, char * report, in parse_hid_report_descriptor() argument
203 struct device *ddev = &device->intf->dev; in parse_hid_report_descriptor()
295 if (device->max_X == 0) { in parse_hid_report_descriptor()
296 device->max_X = globalval[TAG_GLOB_LOG_MAX]; in parse_hid_report_descriptor()
297 device->min_X = globalval[TAG_GLOB_LOG_MIN]; in parse_hid_report_descriptor()
303 if (device->max_Y == 0) { in parse_hid_report_descriptor()
304 device->max_Y = globalval[TAG_GLOB_LOG_MAX]; in parse_hid_report_descriptor()
305 device->min_Y = globalval[TAG_GLOB_LOG_MIN]; in parse_hid_report_descriptor()
312 if (device->maxtilt_X == 0) { in parse_hid_report_descriptor()
313 device->maxtilt_X = globalval[TAG_GLOB_LOG_MAX]; in parse_hid_report_descriptor()
[all …]
/linux-4.1.27/drivers/infiniband/ulp/iser/
Diser_verbs.c66 event->device->name, event->element.port_num); in iser_event_handler()
76 static int iser_create_device_ib_res(struct iser_device *device) in iser_create_device_ib_res() argument
78 struct ib_device_attr *dev_attr = &device->dev_attr; in iser_create_device_ib_res()
81 ret = ib_query_device(device->ib_device, dev_attr); in iser_create_device_ib_res()
83 pr_warn("Query device failed for %s\n", device->ib_device->name); in iser_create_device_ib_res()
88 if (device->ib_device->alloc_fmr && device->ib_device->dealloc_fmr && in iser_create_device_ib_res()
89 device->ib_device->map_phys_fmr && device->ib_device->unmap_fmr) { in iser_create_device_ib_res()
91 device->iser_alloc_rdma_reg_res = iser_create_fmr_pool; in iser_create_device_ib_res()
92 device->iser_free_rdma_reg_res = iser_free_fmr_pool; in iser_create_device_ib_res()
93 device->iser_reg_rdma_mem = iser_reg_rdma_mem_fmr; in iser_create_device_ib_res()
[all …]
Diser_initiator.c52 struct iser_device *device = iser_task->iser_conn->ib_conn.device; in iser_prepare_read_cmd() local
76 err = device->iser_reg_rdma_mem(iser_task, ISER_DIR_IN); in iser_prepare_read_cmd()
106 struct iser_device *device = iser_task->iser_conn->ib_conn.device; in iser_prepare_write_cmd() local
131 err = device->iser_reg_rdma_mem(iser_task, ISER_DIR_OUT); in iser_prepare_write_cmd()
166 struct iser_device *device = iser_conn->ib_conn.device; in iser_create_send_desc() local
168 ib_dma_sync_single_for_cpu(device->ib_device, in iser_create_send_desc()
176 if (tx_desc->tx_sg[0].lkey != device->mr->lkey) { in iser_create_send_desc()
177 tx_desc->tx_sg[0].lkey = device->mr->lkey; in iser_create_send_desc()
184 struct iser_device *device = iser_conn->ib_conn.device; in iser_free_login_buf() local
190 ib_dma_unmap_single(device->ib_device, in iser_free_login_buf()
[all …]
/linux-4.1.27/drivers/misc/cxl/
Dsysfs.c21 static ssize_t caia_version_show(struct device *device, in caia_version_show() argument
25 struct cxl *adapter = to_cxl_adapter(device); in caia_version_show()
31 static ssize_t psl_revision_show(struct device *device, in psl_revision_show() argument
35 struct cxl *adapter = to_cxl_adapter(device); in psl_revision_show()
40 static ssize_t base_image_show(struct device *device, in base_image_show() argument
44 struct cxl *adapter = to_cxl_adapter(device); in base_image_show()
49 static ssize_t image_loaded_show(struct device *device, in image_loaded_show() argument
53 struct cxl *adapter = to_cxl_adapter(device); in image_loaded_show()
60 static ssize_t reset_adapter_store(struct device *device, in reset_adapter_store() argument
64 struct cxl *adapter = to_cxl_adapter(device); in reset_adapter_store()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_backlight.c43 struct nvif_device *device = &drm->device; in nv40_get_intensity() local
44 int val = (nvif_rd32(device, NV40_PMC_BACKLIGHT) & in nv40_get_intensity()
54 struct nvif_device *device = &drm->device; in nv40_set_intensity() local
56 int reg = nvif_rd32(device, NV40_PMC_BACKLIGHT); in nv40_set_intensity()
58 nvif_wr32(device, NV40_PMC_BACKLIGHT, in nv40_set_intensity()
74 struct nvif_device *device = &drm->device; in nv40_backlight_init() local
78 if (!(nvif_rd32(device, NV40_PMC_BACKLIGHT) & NV40_PMC_BACKLIGHT_MASK)) in nv40_backlight_init()
100 struct nvif_device *device = &drm->device; in nv50_get_intensity() local
105 val = nvif_rd32(device, NV50_PDISP_SOR_PWM_CTL(or)); in nv50_get_intensity()
115 struct nvif_device *device = &drm->device; in nv50_set_intensity() local
[all …]
Dnouveau_hwmon.c39 nouveau_hwmon_show_temp(struct device *d, struct device_attribute *a, char *buf) in nouveau_hwmon_show_temp()
43 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_show_temp()
55 nouveau_hwmon_show_temp1_auto_point1_pwm(struct device *d, in nouveau_hwmon_show_temp1_auto_point1_pwm()
64 nouveau_hwmon_temp1_auto_point1_temp(struct device *d, in nouveau_hwmon_temp1_auto_point1_temp()
69 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_temp1_auto_point1_temp()
75 nouveau_hwmon_set_temp1_auto_point1_temp(struct device *d, in nouveau_hwmon_set_temp1_auto_point1_temp()
81 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_set_temp1_auto_point1_temp()
97 nouveau_hwmon_temp1_auto_point1_temp_hyst(struct device *d, in nouveau_hwmon_temp1_auto_point1_temp_hyst()
102 struct nvkm_therm *therm = nvxx_therm(&drm->device); in nouveau_hwmon_temp1_auto_point1_temp_hyst()
108 nouveau_hwmon_set_temp1_auto_point1_temp_hyst(struct device *d, in nouveau_hwmon_set_temp1_auto_point1_temp_hyst()
[all …]
Dnouveau_agp.c30 struct nvif_device *device = &drm->device; in get_agp_mode() local
39 if (device->info.chipset == 0x18) in get_agp_mode()
48 nvxx_device(device)->pdev->vendor == quirk->chip_vendor && in get_agp_mode()
49 nvxx_device(device)->pdev->device == quirk->chip_device) { in get_agp_mode()
105 struct nvif_device *device = &drm->device; in nouveau_agp_reset() local
116 if ((nvif_rd32(device, NV04_PBUS_PCI_NV_19) | in nouveau_agp_reset()
135 save[0] = nvif_mask(device, NV04_PBUS_PCI_NV_1, 0x00000004, 0x00000000); in nouveau_agp_reset()
136 nvif_wr32(device, NV04_PBUS_PCI_NV_19, 0); in nouveau_agp_reset()
139 save[1] = nvif_mask(device, 0x000200, 0x00011100, 0x00000000); in nouveau_agp_reset()
140 nvif_mask(device, 0x000200, 0x00011100, save[1]); in nouveau_agp_reset()
[all …]
Dnouveau_chan.c80 nvif_device_ref(NULL, &chan->device); in nouveau_channel_del()
87 nouveau_channel_prep(struct nouveau_drm *drm, struct nvif_device *device, in nouveau_channel_prep() argument
90 struct nouveau_cli *cli = (void *)nvif_client(&device->base); in nouveau_channel_prep()
91 struct nvkm_mmu *mmu = nvxx_mmu(device); in nouveau_channel_prep()
101 nvif_device_ref(device, &chan->device); in nouveau_channel_prep()
128 if (device->info.family >= NV_DEVICE_INFO_V0_TESLA) { in nouveau_channel_prep()
142 if (device->info.family == NV_DEVICE_INFO_V0_TNT) { in nouveau_channel_prep()
149 args.start = nv_device_resource_start(nvxx_device(device), 1); in nouveau_channel_prep()
150 args.limit = args.start + device->info.ram_user - 1; in nouveau_channel_prep()
155 args.limit = device->info.ram_user - 1; in nouveau_channel_prep()
[all …]
/linux-4.1.27/include/linux/regulator/
Dconsumer.h40 struct device;
161 struct regulator *__must_check regulator_get(struct device *dev,
163 struct regulator *__must_check devm_regulator_get(struct device *dev,
165 struct regulator *__must_check regulator_get_exclusive(struct device *dev,
167 struct regulator *__must_check devm_regulator_get_exclusive(struct device *dev,
169 struct regulator *__must_check regulator_get_optional(struct device *dev,
171 struct regulator *__must_check devm_regulator_get_optional(struct device *dev,
176 int regulator_register_supply_alias(struct device *dev, const char *id,
177 struct device *alias_dev,
179 void regulator_unregister_supply_alias(struct device *dev, const char *id);
[all …]
/linux-4.1.27/arch/m68k/include/asm/
Ddma-mapping.h8 static inline int dma_supported(struct device *dev, u64 mask) in dma_supported()
13 static inline int dma_set_mask(struct device *dev, u64 mask) in dma_set_mask()
18 extern void *dma_alloc_coherent(struct device *, size_t,
20 extern void dma_free_coherent(struct device *, size_t,
23 static inline void *dma_alloc_attrs(struct device *dev, size_t size, in dma_alloc_attrs()
31 static inline void dma_free_attrs(struct device *dev, size_t size, in dma_free_attrs()
39 static inline void *dma_alloc_noncoherent(struct device *dev, size_t size, in dma_alloc_noncoherent()
44 static inline void dma_free_noncoherent(struct device *dev, size_t size, in dma_free_noncoherent()
49 static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size, in dma_cache_sync()
55 extern dma_addr_t dma_map_single(struct device *, void *, size_t,
[all …]
/linux-4.1.27/include/linux/phy/
Dphy.h61 struct device dev;
79 struct device *dev;
82 struct phy * (*of_xlate)(struct device *dev,
130 struct phy *phy_get(struct device *dev, const char *string);
131 struct phy *phy_optional_get(struct device *dev, const char *string);
132 struct phy *devm_phy_get(struct device *dev, const char *string);
133 struct phy *devm_phy_optional_get(struct device *dev, const char *string);
134 struct phy *devm_of_phy_get(struct device *dev, struct device_node *np,
137 void devm_phy_put(struct device *dev, struct phy *phy);
139 struct phy *of_phy_simple_xlate(struct device *dev,
[all …]
/linux-4.1.27/sound/i2c/
Di2c.c35 static int snd_i2c_bit_sendbytes(struct snd_i2c_device *device,
37 static int snd_i2c_bit_readbytes(struct snd_i2c_device *device,
51 struct snd_i2c_device *device; in snd_i2c_bus_free() local
56 device = snd_i2c_device(bus->devices.next); in snd_i2c_bus_free()
57 snd_i2c_device_free(device); in snd_i2c_bus_free()
73 static int snd_i2c_bus_dev_free(struct snd_device *device) in snd_i2c_bus_dev_free() argument
75 struct snd_i2c_bus *bus = device->device_data; in snd_i2c_bus_dev_free()
116 struct snd_i2c_device *device; in snd_i2c_device_create() local
121 device = kzalloc(sizeof(*device), GFP_KERNEL); in snd_i2c_device_create()
122 if (device == NULL) in snd_i2c_device_create()
[all …]
Dcs8427.c60 int snd_cs8427_reg_write(struct snd_i2c_device *device, unsigned char reg, in snd_cs8427_reg_write() argument
68 if ((err = snd_i2c_sendbytes(device, buf, 2)) != 2) { in snd_cs8427_reg_write()
78 static int snd_cs8427_reg_read(struct snd_i2c_device *device, unsigned char reg) in snd_cs8427_reg_read() argument
83 if ((err = snd_i2c_sendbytes(device, &reg, 1)) != 1) { in snd_cs8427_reg_read()
88 if ((err = snd_i2c_readbytes(device, &buf, 1)) != 1) { in snd_cs8427_reg_read()
96 static int snd_cs8427_select_corudata(struct snd_i2c_device *device, int udata) in snd_cs8427_select_corudata() argument
98 struct cs8427 *chip = device->private_data; in snd_cs8427_select_corudata()
105 err = snd_cs8427_reg_write(device, CS8427_REG_CSDATABUF, in snd_cs8427_select_corudata()
113 static int snd_cs8427_send_corudata(struct snd_i2c_device *device, in snd_cs8427_send_corudata() argument
118 struct cs8427 *chip = device->private_data; in snd_cs8427_send_corudata()
[all …]
/linux-4.1.27/arch/powerpc/sysdev/
Daxonram.c62 struct platform_device *device; member
72 axon_ram_sysfs_ecc(struct device *dev, struct device_attribute *attr, char *buf) in axon_ram_sysfs_ecc()
74 struct platform_device *device = to_platform_device(dev); in axon_ram_sysfs_ecc() local
75 struct axon_ram_bank *bank = device->dev.platform_data; in axon_ram_sysfs_ecc()
92 struct platform_device *device = dev; in axon_ram_irq_handler() local
93 struct axon_ram_bank *bank = device->dev.platform_data; in axon_ram_irq_handler()
97 dev_err(&device->dev, "Correctable memory error occurred\n"); in axon_ram_irq_handler()
143 axon_ram_direct_access(struct block_device *device, sector_t sector, in axon_ram_direct_access() argument
146 struct axon_ram_bank *bank = device->bd_disk->private_data; in axon_ram_direct_access()
164 static int axon_ram_probe(struct platform_device *device) in axon_ram_probe() argument
[all …]
/linux-4.1.27/arch/parisc/include/asm/
Ddma-mapping.h10 int (*dma_supported)(struct device *dev, u64 mask);
11 void *(*alloc_consistent)(struct device *dev, size_t size, dma_addr_t *iova, gfp_t flag);
12 void *(*alloc_noncoherent)(struct device *dev, size_t size, dma_addr_t *iova, gfp_t flag);
13 void (*free_consistent)(struct device *dev, size_t size, void *vaddr, dma_addr_t iova);
14 …dma_addr_t (*map_single)(struct device *dev, void *addr, size_t size, enum dma_data_direction dire…
15 …void (*unmap_single)(struct device *dev, dma_addr_t iova, size_t size, enum dma_data_direction dir…
16 …int (*map_sg)(struct device *dev, struct scatterlist *sg, int nents, enum dma_data_direction dire…
17 …void (*unmap_sg)(struct device *dev, struct scatterlist *sg, int nhwents, enum dma_data_direction …
18 …void (*dma_sync_single_for_cpu)(struct device *dev, dma_addr_t iova, unsigned long offset, size_t …
19 …void (*dma_sync_single_for_device)(struct device *dev, dma_addr_t iova, unsigned long offset, size…
[all …]
/linux-4.1.27/sound/soc/intel/atom/
Dsst-mfld-platform.h102 int (*open)(struct device *dev,
104 int (*stream_start)(struct device *dev, unsigned int str_id);
105 int (*stream_drop)(struct device *dev, unsigned int str_id);
106 int (*stream_drain)(struct device *dev, unsigned int str_id);
107 int (*stream_partial_drain)(struct device *dev, unsigned int str_id);
108 int (*stream_pause)(struct device *dev, unsigned int str_id);
109 int (*stream_pause_release)(struct device *dev, unsigned int str_id);
111 int (*tstamp)(struct device *dev, unsigned int str_id,
113 int (*ack)(struct device *dev, unsigned int str_id,
115 int (*close)(struct device *dev, unsigned int str_id);
[all …]
/linux-4.1.27/drivers/dma/ioat/
Ddma.c100 void ioat_init_channel(struct ioatdma_device *device, struct ioat_chan_common *chan, int idx) in ioat_init_channel() argument
102 struct dma_device *dma = &device->common; in ioat_init_channel()
106 chan->device = device; in ioat_init_channel()
107 chan->reg_base = device->reg_base + (0x80 * (idx + 1)); in ioat_init_channel()
109 chan->common.device = dma; in ioat_init_channel()
112 device->idx[idx] = chan; in ioat_init_channel()
114 chan->timer.function = device->timer_fn; in ioat_init_channel()
116 tasklet_init(&chan->cleanup_task, device->cleanup_fn, data); in ioat_init_channel()
123 static int ioat1_enumerate_channels(struct ioatdma_device *device) in ioat1_enumerate_channels() argument
129 struct device *dev = &device->pdev->dev; in ioat1_enumerate_channels()
[all …]
Ddma.h37 #define to_dev(ioat_chan) (&(ioat_chan)->device->pdev->dev)
38 #define to_pdev(ioat_chan) ((ioat_chan)->device->pdev)
40 #define chan_num(ch) ((int)((ch)->reg_base - (ch)->device->reg_base) / 0x80)
88 void (*intr_quirk)(struct ioatdma_device *device);
89 int (*enumerate_channels)(struct ioatdma_device *device);
93 int (*self_test)(struct ioatdma_device *device);
113 struct ioatdma_device *device; member
201 struct device *dev = to_dev(chan); in __dump_desc_dbg()
214 ioat_chan_by_index(struct ioatdma_device *device, int index) in ioat_chan_by_index() argument
216 return device->idx[index]; in ioat_chan_by_index()
[all …]
Dpci.c141 struct device *dev = &pdev->dev; in alloc_ioatdma()
154 struct device *dev = &pdev->dev; in ioat_pci_probe()
155 struct ioatdma_device *device; in ioat_pci_probe() local
181 device = alloc_ioatdma(pdev, iomap[IOAT_MMIO_BAR]); in ioat_pci_probe()
182 if (!device) in ioat_pci_probe()
185 pci_set_drvdata(pdev, device); in ioat_pci_probe()
187 device->version = readb(device->reg_base + IOAT_VER_OFFSET); in ioat_pci_probe()
188 if (device->version == IOAT_VER_1_2) in ioat_pci_probe()
189 err = ioat1_dma_probe(device, ioat_dca_enabled); in ioat_pci_probe()
190 else if (device->version == IOAT_VER_2_0) in ioat_pci_probe()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/core/
Ddevice.h54 struct nvkm_device *device = nv_device(object); in nv_device_match() local
55 return device->pdev->device == dev && in nv_device_match()
56 device->pdev->subsystem_vendor == ven && in nv_device_match()
57 device->pdev->subsystem_device == sub; in nv_device_match()
61 nv_device_is_pci(struct nvkm_device *device) in nv_device_is_pci() argument
63 return device->pdev != NULL; in nv_device_is_pci()
67 nv_device_is_cpu_coherent(struct nvkm_device *device) in nv_device_is_cpu_coherent() argument
69 return (!IS_ENABLED(CONFIG_ARM) && nv_device_is_pci(device)); in nv_device_is_cpu_coherent()
72 static inline struct device *
73 nv_device_base(struct nvkm_device *device) in nv_device_base() argument
[all …]
/linux-4.1.27/arch/frv/include/asm/
Ddma-mapping.h21 void *dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp);
22 void dma_free_coherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle);
24 extern dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size,
28 void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single()
34 extern int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
38 void dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, in dma_unmap_sg()
45 dma_addr_t dma_map_page(struct device *dev, struct page *page, unsigned long offset,
49 void dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, in dma_unmap_page()
57 void dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_cpu()
63 void dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_device()
[all …]
/linux-4.1.27/include/linux/platform_data/
Dmmc-omap.h17 struct device *dev;
27 int (*switch_slot)(struct device *dev, int slot);
30 int (*init)(struct device *dev);
31 void (*cleanup)(struct device *dev);
32 void (*shutdown)(struct device *dev);
35 int (*get_context_loss_count)(struct device *dev);
89 int (*set_bus_mode)(struct device *dev, int slot, int bus_mode);
90 int (*set_power)(struct device *dev, int slot,
92 int (*get_ro)(struct device *dev, int slot);
93 void (*remux)(struct device *dev, int slot, int power_on);
[all …]
/linux-4.1.27/arch/cris/include/asm/
Ddma-mapping.h19 void *dma_alloc_coherent(struct device *dev, size_t size,
22 void dma_free_coherent(struct device *dev, size_t size,
26 dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, in dma_alloc_coherent()
34 dma_free_coherent(struct device *dev, size_t size, void *cpu_addr, in dma_free_coherent()
41 dma_map_single(struct device *dev, void *ptr, size_t size, in dma_map_single()
49 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single()
56 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, in dma_map_sg()
64 dma_map_page(struct device *dev, struct page *page, unsigned long offset, in dma_map_page()
72 dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, in dma_unmap_page()
80 dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, in dma_unmap_sg()
[all …]
/linux-4.1.27/drivers/vfio/
Dvfio.c67 struct device *dev;
79 struct device *dev;
90 struct device *dev;
204 struct device *dev; in vfio_create_group()
364 struct device *dev, in vfio_group_create_device()
368 struct vfio_device *device; in vfio_group_create_device() local
370 device = kzalloc(sizeof(*device), GFP_KERNEL); in vfio_group_create_device()
371 if (!device) in vfio_group_create_device()
374 kref_init(&device->kref); in vfio_group_create_device()
375 device->dev = dev; in vfio_group_create_device()
[all …]
/linux-4.1.27/include/linux/pinctrl/
Dconsumer.h23 struct device;
33 extern struct pinctrl * __must_check pinctrl_get(struct device *dev);
40 extern struct pinctrl * __must_check devm_pinctrl_get(struct device *dev);
44 extern int pinctrl_pm_select_default_state(struct device *dev);
45 extern int pinctrl_pm_select_sleep_state(struct device *dev);
46 extern int pinctrl_pm_select_idle_state(struct device *dev);
48 static inline int pinctrl_pm_select_default_state(struct device *dev) in pinctrl_pm_select_default_state()
52 static inline int pinctrl_pm_select_sleep_state(struct device *dev) in pinctrl_pm_select_sleep_state()
56 static inline int pinctrl_pm_select_idle_state(struct device *dev) in pinctrl_pm_select_idle_state()
83 static inline struct pinctrl * __must_check pinctrl_get(struct device *dev) in pinctrl_get()
[all …]
/linux-4.1.27/include/linux/mfd/
Dabx500.h16 struct device;
304 int ab8500_bm_of_probe(struct device *dev,
308 int abx500_set_register_interruptible(struct device *dev, u8 bank, u8 reg,
310 int abx500_get_register_interruptible(struct device *dev, u8 bank, u8 reg,
312 int abx500_get_register_page_interruptible(struct device *dev, u8 bank,
314 int abx500_set_register_page_interruptible(struct device *dev, u8 bank,
328 int abx500_mask_and_set_register_interruptible(struct device *dev, u8 bank,
330 int abx500_get_chip_id(struct device *dev);
331 int abx500_event_registers_startup_state_get(struct device *dev, u8 *event);
332 int abx500_startup_irq_enabled(struct device *dev, unsigned int irq);
[all …]
/linux-4.1.27/include/asm-generic/
Ddma-mapping-broken.h12 dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
16 dma_free_coherent(struct device *dev, size_t size, void *cpu_addr,
19 static inline void *dma_alloc_attrs(struct device *dev, size_t size, in dma_alloc_attrs()
27 static inline void dma_free_attrs(struct device *dev, size_t size, in dma_free_attrs()
39 dma_map_single(struct device *dev, void *ptr, size_t size,
43 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size,
47 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
51 dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries,
55 dma_map_page(struct device *dev, struct page *page, unsigned long offset,
59 dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size,
[all …]
/linux-4.1.27/drivers/platform/x86/
Dxo15-ebook.c49 static int ebook_send_state(struct acpi_device *device) in ebook_send_state() argument
51 struct ebook_switch *button = acpi_driver_data(device); in ebook_send_state()
55 status = acpi_evaluate_integer(device->handle, "EBK", NULL, &state); in ebook_send_state()
65 static void ebook_switch_notify(struct acpi_device *device, u32 event) in ebook_switch_notify() argument
70 ebook_send_state(device); in ebook_switch_notify()
80 static int ebook_switch_resume(struct device *dev) in ebook_switch_resume()
88 static int ebook_switch_add(struct acpi_device *device) in ebook_switch_add() argument
92 const char *hid = acpi_device_hid(device); in ebook_switch_add()
100 device->driver_data = button; in ebook_switch_add()
108 name = acpi_device_name(device); in ebook_switch_add()
[all …]
Dintel_menlow.c66 struct acpi_device *device = cdev->devdata; in memory_get_max_bandwidth() local
67 acpi_handle handle = device->handle; in memory_get_max_bandwidth()
92 struct acpi_device *device = cdev->devdata; in memory_get_cur_bandwidth() local
93 acpi_handle handle = device->handle; in memory_get_cur_bandwidth()
115 struct acpi_device *device = cdev->devdata; in memory_set_cur_bandwidth() local
116 acpi_handle handle = device->handle; in memory_set_cur_bandwidth()
154 static int intel_menlow_memory_add(struct acpi_device *device) in intel_menlow_memory_add() argument
159 if (!device) in intel_menlow_memory_add()
162 if (!acpi_has_method(device->handle, MEMORY_GET_BANDWIDTH)) in intel_menlow_memory_add()
165 if (!acpi_has_method(device->handle, MEMORY_SET_BANDWIDTH)) in intel_menlow_memory_add()
[all …]
Ddell-smo8800.c34 struct device *dev; /* acpi device */
70 static u32 smo8800_get_irq(struct acpi_device *device) in smo8800_get_irq() argument
75 status = acpi_walk_resources(device->handle, METHOD_NAME__CRS, in smo8800_get_irq()
78 dev_err(&device->dev, "acpi_walk_resources failed\n"); in smo8800_get_irq()
147 static int smo8800_add(struct acpi_device *device) in smo8800_add() argument
152 smo8800 = devm_kzalloc(&device->dev, sizeof(*smo8800), GFP_KERNEL); in smo8800_add()
154 dev_err(&device->dev, "failed to allocate device data\n"); in smo8800_add()
158 smo8800->dev = &device->dev; in smo8800_add()
167 dev_err(&device->dev, "failed to register misc dev: %d\n", err); in smo8800_add()
171 device->driver_data = smo8800; in smo8800_add()
[all …]
Dtoshiba_bluetooth.c37 static int toshiba_bt_rfkill_add(struct acpi_device *device);
38 static int toshiba_bt_rfkill_remove(struct acpi_device *device);
39 static void toshiba_bt_rfkill_notify(struct acpi_device *device, u32 event);
48 static int toshiba_bt_resume(struct device *dev);
168 static void toshiba_bt_rfkill_notify(struct acpi_device *device, u32 event) in toshiba_bt_rfkill_notify() argument
170 toshiba_bluetooth_enable(device->handle); in toshiba_bt_rfkill_notify()
174 static int toshiba_bt_resume(struct device *dev) in toshiba_bt_resume()
180 static int toshiba_bt_rfkill_add(struct acpi_device *device) in toshiba_bt_rfkill_add() argument
184 result = toshiba_bluetooth_present(device->handle); in toshiba_bt_rfkill_add()
191 result = toshiba_bluetooth_enable(device->handle); in toshiba_bt_rfkill_add()
[all …]
Dtopstar-laptop.c60 static void acpi_topstar_notify(struct acpi_device *device, u32 event) in acpi_topstar_notify() argument
64 struct topstar_hkey *hkey = acpi_driver_data(device); in acpi_topstar_notify()
80 static int acpi_topstar_fncx_switch(struct acpi_device *device, bool state) in acpi_topstar_fncx_switch() argument
84 status = acpi_execute_simple_method(device->handle, "FNCX", in acpi_topstar_fncx_switch()
129 static int acpi_topstar_add(struct acpi_device *device) in acpi_topstar_add() argument
137 strcpy(acpi_device_name(device), "Topstar TPSACPI"); in acpi_topstar_add()
138 strcpy(acpi_device_class(device), ACPI_TOPSTAR_CLASS); in acpi_topstar_add()
140 if (acpi_topstar_fncx_switch(device, true)) in acpi_topstar_add()
146 device->driver_data = tps_hkey; in acpi_topstar_add()
154 static int acpi_topstar_remove(struct acpi_device *device) in acpi_topstar_remove() argument
[all …]
Dpanasonic-laptop.c176 static int acpi_pcc_hotkey_add(struct acpi_device *device);
177 static int acpi_pcc_hotkey_remove(struct acpi_device *device);
178 static void acpi_pcc_hotkey_notify(struct acpi_device *device, u32 event);
190 static int acpi_pcc_hotkey_resume(struct device *dev);
226 struct acpi_device *device; member
256 static inline int acpi_pcc_get_sqty(struct acpi_device *device) in acpi_pcc_get_sqty() argument
261 status = acpi_evaluate_integer(device->handle, METHOD_HKEY_SQTY, in acpi_pcc_get_sqty()
367 static ssize_t show_numbatt(struct device *dev, struct device_attribute *attr, in show_numbatt()
379 static ssize_t show_lcdtype(struct device *dev, struct device_attribute *attr, in show_lcdtype()
391 static ssize_t show_mute(struct device *dev, struct device_attribute *attr, in show_mute()
[all …]
/linux-4.1.27/Documentation/device-mapper/
Dzero.txt4 Device-Mapper's "zero" target provides a block-device that always returns
6 /dev/zero, but as a block-device instead of a character-device.
11 conjunction with dm-snapshot. A sparse device reports a device-size larger
12 than the amount of actual storage space available for that device. A user can
13 write data anywhere within the sparse device and read it back like a normal
14 device. Reads to previously unwritten areas will return a zero'd buffer. When
16 device is deactivated. This can be very useful for testing device and
19 To create a sparse device, start by creating a dm-zero device that's the
20 desired size of the sparse device. For this example, we'll assume a 10TB
21 sparse device.
[all …]
/linux-4.1.27/Documentation/driver-model/
Ddevice.txt5 See the kerneldoc for the struct device.
10 The bus driver that discovers the device uses this to register the
11 device with the core:
13 int device_register(struct device * dev);
22 A device is removed from the core when its reference count goes to
25 struct device * get_device(struct device * dev);
26 void put_device(struct device * dev);
28 get_device() will return a pointer to the struct device passed to it
32 A driver can access the lock in the device structure using:
34 void lock_device(struct device * dev);
[all …]
Dclass.txt7 A device class describes a type of device, like an audio or network
8 device. The following device classes have been identified:
13 Each device class defines a set of semantics and a programming interface
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 *);
28 typedef void (*devclass_remove)(struct device *);
32 A typical device class definition would look like:
40 Each device class structure should be exported in a header file so it
[all …]
/linux-4.1.27/drivers/pci/pcie/
Dportdrv_pci.c82 static int pcie_port_resume_noirq(struct device *dev) in pcie_port_resume_noirq()
150 static int error_detected_iter(struct device *device, void *data) in error_detected_iter() argument
159 if (device->bus == &pcie_port_bus_type && device->driver) { in error_detected_iter()
160 driver = to_service_driver(device->driver); in error_detected_iter()
166 pcie_device = to_pcie_device(device); in error_detected_iter()
189 static int mmio_enabled_iter(struct device *device, void *data) in mmio_enabled_iter() argument
197 if (device->bus == &pcie_port_bus_type && device->driver) { in mmio_enabled_iter()
198 driver = to_service_driver(device->driver); in mmio_enabled_iter()
202 pcie_device = to_pcie_device(device); in mmio_enabled_iter()
223 static int slot_reset_iter(struct device *device, void *data) in slot_reset_iter() argument
[all …]
/linux-4.1.27/arch/nios2/include/asm/
Ddma-mapping.h58 void *dma_alloc_coherent(struct device *dev, size_t size,
61 void dma_free_coherent(struct device *dev, size_t size,
64 static inline dma_addr_t dma_map_single(struct device *dev, void *ptr, in dma_map_single()
73 static inline void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, in dma_unmap_single()
78 extern int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
80 extern dma_addr_t dma_map_page(struct device *dev, struct page *page,
82 extern void dma_unmap_page(struct device *dev, dma_addr_t dma_address,
84 extern void dma_unmap_sg(struct device *dev, struct scatterlist *sg,
86 extern void dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle,
88 extern void dma_sync_single_for_device(struct device *dev,
[all …]
/linux-4.1.27/Documentation/usb/
Dchipidea.txt23 The A-device(with micro A plug inserted) should enumrate B-device.
26 On B-device:
30 On A-device:
33 B-device should take host role and enumrate A-device.
35 4) A-device switch back to host.
36 On B-device:
39 A-device should switch back to host and enumrate B-device.
41 5) Remove B-device(unplug micro B plug) and insert again in 10 seconds,
42 A-device should enumrate B-device again.
44 6) Remove B-device(unplug micro B plug) and insert again after 10 seconds,
[all …]
/linux-4.1.27/arch/xtensa/include/asm/
Ddma-mapping.h32 void *dma_alloc_coherent(struct device *dev, size_t size,
35 void dma_free_coherent(struct device *dev, size_t size,
39 dma_map_single(struct device *dev, void *ptr, size_t size, in dma_map_single()
48 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single()
55 dma_map_sg(struct device *dev, struct scatterlist *sg, int nents, in dma_map_sg()
73 dma_map_page(struct device *dev, struct page *page, unsigned long offset, in dma_map_page()
81 dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, in dma_unmap_page()
89 dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, in dma_unmap_sg()
96 dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, size_t size, in dma_sync_single_for_cpu()
103 dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_device()
[all …]
/linux-4.1.27/arch/avr32/include/asm/
Ddma-mapping.h11 extern void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
20 static inline int dma_supported(struct device *dev, u64 mask) in dma_supported()
26 static inline int dma_set_mask(struct device *dev, u64 dma_mask) in dma_set_mask()
38 static inline int dma_mapping_error(struct device *dev, dma_addr_t addr) in dma_mapping_error()
54 extern void *dma_alloc_coherent(struct device *dev, size_t size,
70 extern void dma_free_coherent(struct device *dev, size_t size,
84 extern void *dma_alloc_writecombine(struct device *dev, size_t size,
100 extern void dma_free_writecombine(struct device *dev, size_t size,
117 dma_map_single(struct device *dev, void *cpu_addr, size_t size, in dma_map_single()
139 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single()
[all …]
/linux-4.1.27/net/bridge/
Dbr_sysfs_br.c25 #define to_dev(obj) container_of(obj, struct device, kobj)
31 static ssize_t store_bridge_parm(struct device *d, in store_bridge_parm()
52 static ssize_t forward_delay_show(struct device *d, in forward_delay_show()
59 static ssize_t forward_delay_store(struct device *d, in forward_delay_store()
67 static ssize_t hello_time_show(struct device *d, struct device_attribute *attr, in hello_time_show()
74 static ssize_t hello_time_store(struct device *d, in hello_time_store()
82 static ssize_t max_age_show(struct device *d, struct device_attribute *attr, in max_age_show()
89 static ssize_t max_age_store(struct device *d, struct device_attribute *attr, in max_age_store()
96 static ssize_t ageing_time_show(struct device *d, in ageing_time_show()
109 static ssize_t ageing_time_store(struct device *d, in ageing_time_store()
[all …]
/linux-4.1.27/arch/c6x/include/asm/
Ddma-mapping.h20 static inline void dma_sync_single_range_for_device(struct device *dev, in dma_sync_single_range_for_device()
28 static inline int dma_set_mask(struct device *dev, u64 dma_mask) in dma_set_mask()
41 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error()
47 extern dma_addr_t dma_map_single(struct device *dev, void *cpu_addr,
50 extern void dma_unmap_single(struct device *dev, dma_addr_t handle,
53 extern int dma_map_sg(struct device *dev, struct scatterlist *sglist,
56 extern void dma_unmap_sg(struct device *dev, struct scatterlist *sglist,
59 static inline dma_addr_t dma_map_page(struct device *dev, struct page *page, in dma_map_page()
72 static inline void dma_unmap_page(struct device *dev, dma_addr_t handle, in dma_unmap_page()
80 extern void dma_sync_single_for_cpu(struct device *dev, dma_addr_t handle,
[all …]
/linux-4.1.27/fs/btrfs/
Dvolumes.c47 struct btrfs_device *device);
51 static void btrfs_dev_stat_print_on_load(struct btrfs_device *device);
101 struct btrfs_device *device; in free_fs_devices() local
104 device = list_entry(fs_devices->devices.next, in free_fs_devices()
106 list_del(&device->dev_list); in free_fs_devices()
107 rcu_string_free(device->name); in free_fs_devices()
108 kfree(device); in free_fs_devices()
250 static noinline void run_scheduled_bios(struct btrfs_device *device) in run_scheduled_bios() argument
275 bdi = blk_get_backing_dev_info(device->bdev); in run_scheduled_bios()
276 fs_info = device->dev_root->fs_info; in run_scheduled_bios()
[all …]
/linux-4.1.27/arch/mn10300/include/asm/
Ddma-mapping.h25 extern void *dma_alloc_coherent(struct device *dev, size_t size,
28 extern void dma_free_coherent(struct device *dev, size_t size,
35 dma_addr_t dma_map_single(struct device *dev, void *ptr, size_t size, in dma_map_single()
44 void dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single()
51 int dma_map_sg(struct device *dev, struct scatterlist *sglist, int nents, in dma_map_sg()
71 void dma_unmap_sg(struct device *dev, struct scatterlist *sg, int nhwentries, in dma_unmap_sg()
78 dma_addr_t dma_map_page(struct device *dev, struct page *page, in dma_map_page()
87 void dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, in dma_unmap_page()
94 void dma_sync_single_for_cpu(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_cpu()
100 void dma_sync_single_for_device(struct device *dev, dma_addr_t dma_handle, in dma_sync_single_for_device()
[all …]
/linux-4.1.27/include/xen/
Dswiotlb-xen.h10 *xen_swiotlb_alloc_coherent(struct device *hwdev, size_t size,
15 xen_swiotlb_free_coherent(struct device *hwdev, size_t size,
19 extern dma_addr_t xen_swiotlb_map_page(struct device *dev, struct page *page,
24 extern void xen_swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr,
28 xen_swiotlb_map_sg_attrs(struct device *hwdev, struct scatterlist *sgl,
33 xen_swiotlb_unmap_sg_attrs(struct device *hwdev, struct scatterlist *sgl,
38 xen_swiotlb_sync_single_for_cpu(struct device *hwdev, dma_addr_t dev_addr,
42 xen_swiotlb_sync_sg_for_cpu(struct device *hwdev, struct scatterlist *sg,
46 xen_swiotlb_sync_single_for_device(struct device *hwdev, dma_addr_t dev_addr,
50 xen_swiotlb_sync_sg_for_device(struct device *hwdev, struct scatterlist *sg,
[all …]
/linux-4.1.27/include/trace/events/
Diommu.h16 struct device;
20 TP_PROTO(int group_id, struct device *dev),
26 __string(device, dev_name(dev))
31 __assign_str(device, dev_name(dev));
35 __entry->gid, __get_str(device)
41 TP_PROTO(int group_id, struct device *dev),
49 TP_PROTO(int group_id, struct device *dev),
56 TP_PROTO(struct device *dev),
61 __string(device, dev_name(dev))
65 __assign_str(device, dev_name(dev));
[all …]
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dbus.h75 int (*preinit)(struct device *dev);
76 void (*stop)(struct device *dev);
77 int (*txdata)(struct device *dev, struct sk_buff *skb);
78 int (*txctl)(struct device *dev, unsigned char *msg, uint len);
79 int (*rxctl)(struct device *dev, unsigned char *msg, uint len);
80 struct pktq * (*gettxq)(struct device *dev);
81 void (*wowl_config)(struct device *dev, bool enabled);
126 struct device *dev;
192 bool brcmf_c_prec_enq(struct device *dev, struct pktq *q, struct sk_buff *pkt,
196 void brcmf_rx_frame(struct device *dev, struct sk_buff *rxp);
[all …]
/linux-4.1.27/drivers/base/
Dtransport_class.c69 struct device *dev, in anon_transport_dummy_function()
70 struct device *cdev) in anon_transport_dummy_function()
118 struct device *dev, in transport_setup_classdev()
119 struct device *classdev) in transport_setup_classdev()
145 void transport_setup_device(struct device *dev) in transport_setup_device()
152 struct device *dev, in transport_add_class_device()
153 struct device *classdev) in transport_add_class_device()
177 void transport_add_device(struct device *dev) in transport_add_device()
184 struct device *dev, in transport_configure()
185 struct device *cdev) in transport_configure()
[all …]
Dattribute_container.c29 struct device classdev;
55 attribute_container_classdev_to_container(struct device *classdev) in attribute_container_classdev_to_container()
113 static void attribute_container_release(struct device *classdev) in attribute_container_release()
117 struct device *dev = classdev->parent; in attribute_container_release()
142 attribute_container_add_device(struct device *dev, in attribute_container_add_device() argument
144 struct device *, in attribute_container_add_device()
145 struct device *)) in attribute_container_add_device()
207 attribute_container_remove_device(struct device *dev, in attribute_container_remove_device() argument
209 struct device *, in attribute_container_remove_device()
210 struct device *)) in attribute_container_remove_device()
[all …]
Dcore.c47 int (*platform_notify)(struct device *dev) = NULL;
48 int (*platform_notify_remove)(struct device *dev) = NULL;
76 static inline int device_is_not_partition(struct device *dev) in device_is_not_partition()
81 static inline int device_is_not_partition(struct device *dev) in device_is_not_partition()
96 const char *dev_driver_string(const struct device *dev) in dev_driver_string()
117 struct device *dev = kobj_to_dev(kobj); in dev_attr_show()
133 struct device *dev = kobj_to_dev(kobj); in dev_attr_store()
148 ssize_t device_store_ulong(struct device *dev, in device_store_ulong()
163 ssize_t device_show_ulong(struct device *dev, in device_show_ulong()
172 ssize_t device_store_int(struct device *dev, in device_store_int()
[all …]
Dbase.h77 struct device *device; member
86 extern int device_private_init(struct device *dev);
102 struct kobject *virtual_device_parent(struct device *dev);
104 extern int bus_add_device(struct device *dev);
105 extern void bus_probe_device(struct device *dev);
106 extern void bus_remove_device(struct device *dev);
112 extern int driver_probe_device(struct device_driver *drv, struct device *dev);
113 extern void driver_deferred_probe_del(struct device *dev);
115 struct device *dev) in driver_match_device()
125 extern int device_add_groups(struct device *dev,
[all …]
/linux-4.1.27/drivers/scsi/
Dscsi_pm.c21 static int do_scsi_suspend(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_suspend()
26 static int do_scsi_freeze(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_freeze()
31 static int do_scsi_poweroff(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_poweroff()
36 static int do_scsi_resume(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_resume()
41 static int do_scsi_thaw(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_thaw()
46 static int do_scsi_restore(struct device *dev, const struct dev_pm_ops *pm) in do_scsi_restore()
51 static int scsi_dev_type_suspend(struct device *dev, in scsi_dev_type_suspend()
52 int (*cb)(struct device *, const struct dev_pm_ops *)) in scsi_dev_type_suspend() argument
70 static int scsi_dev_type_resume(struct device *dev, in scsi_dev_type_resume()
71 int (*cb)(struct device *, const struct dev_pm_ops *)) in scsi_dev_type_resume() argument
[all …]
/linux-4.1.27/include/linux/gpio/
Dconsumer.h8 struct device;
47 int gpiod_count(struct device *dev, const char *con_id);
50 struct gpio_desc *__must_check __gpiod_get(struct device *dev,
53 struct gpio_desc *__must_check __gpiod_get_index(struct device *dev,
57 struct gpio_desc *__must_check __gpiod_get_optional(struct device *dev,
60 struct gpio_desc *__must_check __gpiod_get_index_optional(struct device *dev,
64 struct gpio_descs *__must_check gpiod_get_array(struct device *dev,
67 struct gpio_descs *__must_check gpiod_get_array_optional(struct device *dev,
73 struct gpio_desc *__must_check __devm_gpiod_get(struct device *dev,
76 struct gpio_desc *__must_check __devm_gpiod_get_index(struct device *dev,
[all …]
/linux-4.1.27/drivers/char/agp/
Dsis-agp.c77 struct pci_dev *device = NULL; in sis_delayed_enable() local
89 for_each_pci_dev(device) { in sis_delayed_enable()
90 u8 agp = pci_find_capability(device, PCI_CAP_ID_AGP); in sis_delayed_enable()
95 pci_name(device), rate); in sis_delayed_enable()
97 pci_write_config_dword(device, agp + PCI_AGP_COMMAND, command); in sis_delayed_enable()
104 if (device->device == bridge->dev->device) { in sis_delayed_enable()
161 if (bridge->dev->device==sis_broken_chipsets[i]) in sis_get_driver()
193 pdev->vendor, pdev->device); in agp_sis_probe()
245 .device = PCI_DEVICE_ID_SI_5591,
253 .device = PCI_DEVICE_ID_SI_530,
[all …]
/linux-4.1.27/sound/soc/
Dsoc-devres.c17 static void devm_component_release(struct device *dev, void *res) in devm_component_release()
19 snd_soc_unregister_component(*(struct device **)res); in devm_component_release()
32 int devm_snd_soc_register_component(struct device *dev, in devm_snd_soc_register_component()
36 struct device **ptr; in devm_snd_soc_register_component()
55 static void devm_platform_release(struct device *dev, void *res) in devm_platform_release()
57 snd_soc_unregister_platform(*(struct device **)res); in devm_platform_release()
68 int devm_snd_soc_register_platform(struct device *dev, in devm_snd_soc_register_platform()
71 struct device **ptr; in devm_snd_soc_register_platform()
90 static void devm_card_release(struct device *dev, void *res) in devm_card_release()
103 int devm_snd_soc_register_card(struct device *dev, struct snd_soc_card *card) in devm_snd_soc_register_card()
[all …]
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-fs-nilfs216 What: /sys/fs/nilfs2/<device>/revision
24 What: /sys/fs/nilfs2/<device>/blocksize
30 What: /sys/fs/nilfs2/<device>/device_size
36 What: /sys/fs/nilfs2/<device>/free_blocks
42 What: /sys/fs/nilfs2/<device>/uuid
48 What: /sys/fs/nilfs2/<device>/volume_name
54 What: /sys/fs/nilfs2/<device>/README
58 Describe attributes of /sys/fs/nilfs2/<device> group.
60 What: /sys/fs/nilfs2/<device>/superblock/sb_write_time
67 What: /sys/fs/nilfs2/<device>/superblock/sb_write_time_secs
[all …]
Dsysfs-bus-usb1 What: /sys/bus/usb/device/.../authorized
6 Authorized devices are available for use by device
12 device has been authenticated.
14 What: /sys/bus/usb/device/.../wusb_cdid
23 What: /sys/bus/usb/device/.../wusb_ck
30 Write the device's connection key (CK) to start the
31 authentication of the device. The CK is 16
34 What: /sys/bus/usb/device/.../wusb_disconnect
41 Write a 1 to force the device to disconnect
42 (equivalent to unplugging a wired USB device).
[all …]
/linux-4.1.27/Documentation/power/
Druntime_pm.txt12 * The power management workqueue pm_wq in which bus types and device drivers can
19 * A number of runtime PM fields in the 'power' member of 'struct device' (which
23 * Three device runtime PM callbacks in 'struct dev_pm_ops' (defined in
29 device drivers are encouraged to use these functions.
31 The runtime PM callbacks present in 'struct dev_pm_ops', the device runtime PM
37 There are three device runtime PM callbacks defined in 'struct dev_pm_ops':
41 int (*runtime_suspend)(struct device *dev);
42 int (*runtime_resume)(struct device *dev);
43 int (*runtime_idle)(struct device *dev);
48 are executed by the PM core for the device's subsystem that may be either of
[all …]
/linux-4.1.27/sound/core/
Dhwdep.c41 static int snd_hwdep_dev_free(struct snd_device *device);
42 static int snd_hwdep_dev_register(struct snd_device *device);
43 static int snd_hwdep_dev_disconnect(struct snd_device *device);
46 static struct snd_hwdep *snd_hwdep_search(struct snd_card *card, int device) in snd_hwdep_search() argument
51 if (hwdep->card == card && hwdep->device == device) in snd_hwdep_search()
277 int device; in snd_hwdep_control_ioctl() local
279 if (get_user(device, (int __user *)arg)) in snd_hwdep_control_ioctl()
283 if (device < 0) in snd_hwdep_control_ioctl()
284 device = 0; in snd_hwdep_control_ioctl()
285 else if (device < SNDRV_MINOR_HWDEPS) in snd_hwdep_control_ioctl()
[all …]
/linux-4.1.27/drivers/infiniband/hw/ehca/
Dehca_cq.c65 ehca_dbg(cq->ib_cq.device, "cq_num=%x real_qp_num=%x", in ehca_cq_assign_qp()
84 ehca_dbg(cq->ib_cq.device, in ehca_cq_unassign_qp()
93 ehca_err(cq->ib_cq.device, in ehca_cq_unassign_qp()
116 struct ib_cq *ehca_create_cq(struct ib_device *device, int cqe, int comp_vector, in ehca_create_cq() argument
124 container_of(device, struct ehca_shca, ib_device); in ehca_create_cq()
138 ehca_err(device, "Unable to create CQ, max number of %i " in ehca_create_cq()
140 ehca_err(device, "To increase the maximum number of CQs " in ehca_create_cq()
147 ehca_err(device, "Out of memory for ehca_cq struct device=%p", in ehca_create_cq()
148 device); in ehca_create_cq()
174 ehca_err(device, "Can't allocate new idr entry. device=%p", in ehca_create_cq()
[all …]
/linux-4.1.27/arch/mips/include/asm/mach-cavium-octeon/
Ddma-coherence.h18 struct device;
22 static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, in plat_map_dma_mem()
29 static inline dma_addr_t plat_map_dma_mem_page(struct device *dev, in plat_map_dma_mem_page()
36 static inline unsigned long plat_dma_addr_to_phys(struct device *dev, in plat_dma_addr_to_phys()
43 static inline void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr, in plat_unmap_dma_mem()
49 static inline int plat_dma_supported(struct device *dev, u64 mask) in plat_dma_supported()
55 static inline int plat_device_is_coherent(struct device *dev) in plat_device_is_coherent()
60 static inline void plat_post_dma_flush(struct device *dev) in plat_post_dma_flush()
64 dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr);
65 phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr);
/linux-4.1.27/arch/arc/include/asm/
Ddma-mapping.h34 void *dma_alloc_noncoherent(struct device *dev, size_t size,
37 void dma_free_noncoherent(struct device *dev, size_t size, void *vaddr,
40 void *dma_alloc_coherent(struct device *dev, size_t size,
43 void dma_free_coherent(struct device *dev, size_t size, void *kvaddr,
47 extern int dma_common_mmap(struct device *dev, struct vm_area_struct *vma,
49 extern int dma_common_get_sgtable(struct device *dev, struct sg_table *sgt,
93 dma_map_single(struct device *dev, void *cpu_addr, size_t size, in dma_map_single()
101 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, in dma_unmap_single()
107 dma_map_page(struct device *dev, struct page *page, in dma_map_page()
116 dma_unmap_page(struct device *dev, dma_addr_t dma_handle, in dma_unmap_page()
[all …]
/linux-4.1.27/arch/powerpc/include/asm/
Ddma-mapping.h24 extern void *dma_direct_alloc_coherent(struct device *dev, size_t size,
27 extern void dma_direct_free_coherent(struct device *dev, size_t size,
30 extern int dma_direct_mmap_coherent(struct device *dev,
43 struct device;
44 extern void *__dma_alloc_coherent(struct device *dev, size_t size,
64 static inline unsigned long device_to_mask(struct device *dev) in device_to_mask()
80 static inline struct dma_map_ops *get_dma_ops(struct device *dev) in get_dma_ops()
93 static inline void set_dma_ops(struct device *dev, struct dma_map_ops *ops) in set_dma_ops()
106 static inline dma_addr_t get_dma_offset(struct device *dev) in get_dma_offset()
114 static inline void set_dma_offset(struct device *dev, dma_addr_t off) in set_dma_offset()
[all …]
/linux-4.1.27/arch/mips/include/asm/mach-generic/
Ddma-coherence.h12 struct device;
14 static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, in plat_map_dma_mem()
20 static inline dma_addr_t plat_map_dma_mem_page(struct device *dev, in plat_map_dma_mem_page()
26 static inline unsigned long plat_dma_addr_to_phys(struct device *dev, in plat_dma_addr_to_phys()
32 static inline void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr, in plat_unmap_dma_mem()
37 static inline int plat_dma_supported(struct device *dev, u64 mask) in plat_dma_supported()
50 static inline int plat_device_is_coherent(struct device *dev) in plat_device_is_coherent()
56 static inline void plat_post_dma_flush(struct device *dev) in plat_post_dma_flush()
62 static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) in phys_to_dma()
67 static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) in dma_to_phys()
/linux-4.1.27/drivers/pps/clients/
Dpps_parport.c139 struct pps_client_pp *device; in parport_attach() local
151 device = kzalloc(sizeof(struct pps_client_pp), GFP_KERNEL); in parport_attach()
152 if (!device) { in parport_attach()
157 device->pardev = parport_register_device(port, KBUILD_MODNAME, in parport_attach()
158 NULL, NULL, parport_irq, PARPORT_FLAG_EXCL, device); in parport_attach()
159 if (!device->pardev) { in parport_attach()
164 if (parport_claim_or_block(device->pardev) < 0) { in parport_attach()
169 device->pps = pps_register_source(&info, in parport_attach()
171 if (device->pps == NULL) { in parport_attach()
176 device->cw = clear_wait; in parport_attach()
[all …]
/linux-4.1.27/arch/x86/include/asm/
Ddma-mapping.h27 extern struct device x86_dma_fallback_dev;
32 static inline struct dma_map_ops *get_dma_ops(struct device *dev) in get_dma_ops()
47 static inline int dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error()
60 extern int dma_supported(struct device *hwdev, u64 mask);
61 extern int dma_set_mask(struct device *dev, u64 mask);
63 extern void *dma_generic_alloc_coherent(struct device *dev, size_t size,
67 extern void dma_generic_free_coherent(struct device *dev, size_t size,
72 extern bool dma_capable(struct device *dev, dma_addr_t addr, size_t size);
73 extern dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr);
74 extern phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr);
[all …]
/linux-4.1.27/arch/blackfin/include/asm/
Ddma-mapping.h13 void *dma_alloc_coherent(struct device *dev, size_t size,
15 void dma_free_coherent(struct device *dev, size_t size, void *vaddr,
26 dma_set_mask(struct device *dev, u64 dma_mask) in dma_set_mask()
37 dma_mapping_error(struct device *dev, dma_addr_t dma_addr) in dma_mapping_error()
70 dma_map_single(struct device *dev, void *ptr, size_t size, in dma_map_single()
78 dma_map_page(struct device *dev, struct page *page, in dma_map_page()
86 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single()
93 dma_unmap_page(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_page()
99 extern int dma_map_sg(struct device *dev, struct scatterlist *sg, int nents,
103 dma_unmap_sg(struct device *dev, struct scatterlist *sg, in dma_unmap_sg()
[all …]
/linux-4.1.27/drivers/hwmon/
Dhwmon.c32 struct device dev;
37 show_name(struct device *dev, struct device_attribute *attr, char *buf) in show_name()
51 struct device *dev = container_of(kobj, struct device, kobj); in hwmon_dev_name_is_visible()
69 static void hwmon_dev_release(struct device *dev) in hwmon_dev_release()
95 struct device *
96 hwmon_device_register_with_groups(struct device *dev, const char *name, in hwmon_device_register_with_groups()
147 struct device *hwmon_device_register(struct device *dev) in hwmon_device_register()
158 void hwmon_device_unregister(struct device *dev) in hwmon_device_unregister()
171 static void devm_hwmon_release(struct device *dev, void *res) in devm_hwmon_release()
173 struct device *hwdev = *(struct device **)res; in devm_hwmon_release()
[all …]
/linux-4.1.27/arch/metag/include/asm/
Ddma-mapping.h14 void *dma_alloc_coherent(struct device *dev, size_t size,
17 void dma_free_coherent(struct device *dev, size_t size,
23 int dma_mmap_coherent(struct device *dev, struct vm_area_struct *vma,
26 int dma_mmap_writecombine(struct device *dev, struct vm_area_struct *vma,
30 dma_map_single(struct device *dev, void *ptr, size_t size, in dma_map_single()
40 dma_unmap_single(struct device *dev, dma_addr_t dma_addr, size_t size, in dma_unmap_single()
48 dma_map_sg(struct device *dev, struct scatterlist *sglist, int nents, in dma_map_sg()
68 dma_map_page(struct device *dev, struct page *page, unsigned long offset, in dma_map_page()
78 dma_unmap_page(struct device *dev, dma_addr_t dma_address, size_t size, in dma_unmap_page()
87 dma_unmap_sg(struct device *dev, struct scatterlist *sglist, int nhwentries, in dma_unmap_sg()
[all …]
/linux-4.1.27/drivers/gpu/drm/
Ddrm_sysfs.c41 static int __drm_class_suspend(struct device *dev, pm_message_t state) in __drm_class_suspend()
60 static int drm_class_suspend(struct device *dev) in drm_class_suspend()
70 static int drm_class_freeze(struct device *dev) in drm_class_freeze()
82 static int drm_class_resume(struct device *dev) in drm_class_resume()
102 static char *drm_devnode(struct device *dev, umode_t *mode) in drm_devnode()
169 static ssize_t status_store(struct device *device, in status_store() argument
173 struct drm_connector *connector = to_drm_connector(device); in status_store()
223 static ssize_t status_show(struct device *device, in status_show() argument
227 struct drm_connector *connector = to_drm_connector(device); in status_show()
233 static ssize_t dpms_show(struct device *device, in dpms_show() argument
[all …]
/linux-4.1.27/Documentation/s390/
Ddriver-model.txt23 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
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.
50 The device drivers can add entries to export per-device data and interfaces.
[all …]
/linux-4.1.27/drivers/net/wireless/ath/ath10k/
Dtrace.h55 __string(device, dev_name(ar->dev))
60 __assign_str(device, dev_name(ar->dev));
70 __get_str(device),
94 __string(device, dev_name(ar->dev))
100 __assign_str(device, dev_name(ar->dev));
111 __get_str(device),
123 __string(device, dev_name(ar->dev))
132 __assign_str(device, dev_name(ar->dev));
143 __get_str(device),
156 __string(device, dev_name(ar->dev))
[all …]
/linux-4.1.27/arch/mips/include/asm/mach-loongson/
Ddma-coherence.h18 struct device;
20 extern dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr);
21 extern phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr);
22 static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, in plat_map_dma_mem()
32 static inline dma_addr_t plat_map_dma_mem_page(struct device *dev, in plat_map_dma_mem_page()
42 static inline unsigned long plat_dma_addr_to_phys(struct device *dev, in plat_dma_addr_to_phys()
54 static inline void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr, in plat_unmap_dma_mem()
59 static inline int plat_dma_supported(struct device *dev, u64 mask) in plat_dma_supported()
72 static inline int plat_device_is_coherent(struct device *dev) in plat_device_is_coherent()
81 static inline void plat_post_dma_flush(struct device *dev) in plat_post_dma_flush()
/linux-4.1.27/drivers/misc/mic/bus/
Dmic_bus.c31 static ssize_t device_show(struct device *d, in device_show()
35 return sprintf(buf, "0x%04x\n", dev->id.device); in device_show()
37 static DEVICE_ATTR_RO(device);
39 static ssize_t vendor_show(struct device *d, in vendor_show()
47 static ssize_t modalias_show(struct device *d, in modalias_show()
52 dev->id.device, dev->id.vendor); in modalias_show()
67 if (id->device != dev->id.device && id->device != MBUS_DEV_ANY_ID) in mbus_id_match()
77 static int mbus_dev_match(struct device *dv, struct device_driver *dr) in mbus_dev_match()
84 for (i = 0; ids[i].device; i++) in mbus_dev_match()
90 static int mbus_uevent(struct device *dv, struct kobj_uevent_env *env) in mbus_uevent()
[all …]
/linux-4.1.27/Documentation/rapidio/
Dsysfs.txt8 For each RapidIO device, the RapidIO subsystem creates files in an individual
13 nn - two-digit hexadecimal ID of RapidIO network where the device resides
14 d - device typr: 'e' - for endpoint or 's' - for switch
15 iiii - four-digit device destID for endpoints, or switchID for switches
17 For example, below is a list of device directories that represents a typical
31 Each device subdirectory contains the following informational read-only files:
33 did - returns the device identifier
34 vid - returns the device vendor identifier
35 device_rev - returns the device revision level
36 asm_did - returns identifier for the assembly containing the device
[all …]
/linux-4.1.27/drivers/thermal/
Dthermal_hwmon.c38 struct device *device; member
62 name_show(struct device *dev, struct device_attribute *attr, char *buf) in name_show()
70 temp_input_show(struct device *dev, struct device_attribute *attr, char *buf) in temp_input_show()
90 temp_crit_show(struct device *dev, struct device_attribute *attr, char *buf) in temp_crit_show()
168 hwmon->device = hwmon_device_register(NULL); in thermal_add_hwmon_sysfs()
169 if (IS_ERR(hwmon->device)) { in thermal_add_hwmon_sysfs()
170 result = PTR_ERR(hwmon->device); in thermal_add_hwmon_sysfs()
173 dev_set_drvdata(hwmon->device, hwmon); in thermal_add_hwmon_sysfs()
174 result = device_create_file(hwmon->device, &dev_attr_name); in thermal_add_hwmon_sysfs()
194 result = device_create_file(hwmon->device, &temp->temp_input.attr); in thermal_add_hwmon_sysfs()
[all …]
/linux-4.1.27/drivers/hsi/
Dhsi.c33 static ssize_t modalias_show(struct device *dev, in modalias_show()
46 static int hsi_bus_uevent(struct device *dev, struct kobj_uevent_env *env) in hsi_bus_uevent()
53 static int hsi_bus_match(struct device *dev, struct device_driver *driver) in hsi_bus_match()
71 static void hsi_client_release(struct device *dev) in hsi_client_release()
104 cl->device.bus = &hsi_bus_type; in hsi_new_client()
105 cl->device.parent = &port->device; in hsi_new_client()
106 cl->device.release = hsi_client_release; in hsi_new_client()
107 dev_set_name(&cl->device, "%s", info->name); in hsi_new_client()
108 cl->device.platform_data = info->platform_data; in hsi_new_client()
110 cl->device.archdata = *info->archdata; in hsi_new_client()
[all …]
/linux-4.1.27/drivers/pnp/pnpacpi/
Dcore.c210 static char *__init pnpacpi_get_id(struct acpi_device *device) in pnpacpi_get_id() argument
214 list_for_each_entry(id, &device->pnp.ids, list) { in pnpacpi_get_id()
222 static int __init pnpacpi_add_device(struct acpi_device *device) in pnpacpi_add_device() argument
230 if (device->physical_node_count) in pnpacpi_add_device()
237 if (!acpi_has_method(device->handle, "_CRS")) in pnpacpi_add_device()
240 pnpid = pnpacpi_get_id(device); in pnpacpi_add_device()
244 if (!device->status.present) in pnpacpi_add_device()
251 ACPI_COMPANION_SET(&dev->dev, device); in pnpacpi_add_device()
252 dev->data = device; in pnpacpi_add_device()
254 dev->active = device->status.enabled; in pnpacpi_add_device()
[all …]
/linux-4.1.27/drivers/xen/
Dxen-acpi-memhotplug.c42 struct acpi_device *device; member
78 pxm = xen_acpi_get_pxm(mem_device->device->handle); in xen_acpi_memory_enable_device()
149 status = acpi_walk_resources(mem_device->device->handle, in acpi_memory_get_device_resources()
165 struct acpi_device *device = NULL; in acpi_memory_get_device() local
170 acpi_bus_get_device(handle, &device); in acpi_memory_get_device()
171 if (acpi_device_enumerated(device)) in acpi_memory_get_device()
184 device = NULL; in acpi_memory_get_device()
185 acpi_bus_get_device(handle, &device); in acpi_memory_get_device()
186 if (!acpi_device_enumerated(device)) { in acpi_memory_get_device()
193 *mem_device = acpi_driver_data(device); in acpi_memory_get_device()
[all …]
Dxen-acpi-cpuhotplug.c43 static int xen_acpi_processor_enable(struct acpi_device *device) in xen_acpi_processor_enable() argument
51 pr = acpi_driver_data(device); in xen_acpi_processor_enable()
57 if (!strcmp(acpi_device_hid(device), ACPI_PROCESSOR_OBJECT_HID)) { in xen_acpi_processor_enable()
91 static int xen_acpi_processor_add(struct acpi_device *device) in xen_acpi_processor_add() argument
96 if (!device) in xen_acpi_processor_add()
103 pr->handle = device->handle; in xen_acpi_processor_add()
104 strcpy(acpi_device_name(device), ACPI_PROCESSOR_DEVICE_NAME); in xen_acpi_processor_add()
105 strcpy(acpi_device_class(device), ACPI_PROCESSOR_CLASS); in xen_acpi_processor_add()
106 device->driver_data = pr; in xen_acpi_processor_add()
108 ret = xen_acpi_processor_enable(device); in xen_acpi_processor_add()
[all …]
/linux-4.1.27/drivers/gpu/drm/gma500/
Dpower.h42 int gma_power_suspend(struct device *dev);
43 int gma_power_resume(struct device *dev);
44 int gma_power_thaw(struct device *dev);
45 int gma_power_freeze(struct device *dev);
46 int gma_power_restore(struct device *_dev);
66 int psb_runtime_suspend(struct device *dev);
67 int psb_runtime_resume(struct device *dev);
68 int psb_runtime_idle(struct device *dev);
/linux-4.1.27/drivers/gpio/
Ddevres.c24 static void devm_gpiod_release(struct device *dev, void *res) in devm_gpiod_release()
31 static int devm_gpiod_match(struct device *dev, void *res, void *data) in devm_gpiod_match()
38 static void devm_gpiod_release_array(struct device *dev, void *res) in devm_gpiod_release_array()
45 static int devm_gpiod_match_array(struct device *dev, void *res, void *data) in devm_gpiod_match_array()
62 struct gpio_desc *__must_check __devm_gpiod_get(struct device *dev, in __devm_gpiod_get()
80 struct gpio_desc *__must_check __devm_gpiod_get_optional(struct device *dev, in __devm_gpiod_get_optional()
99 struct gpio_desc *__must_check __devm_gpiod_get_index(struct device *dev, in __devm_gpiod_get_index()
134 struct gpio_desc *devm_get_gpiod_from_child(struct device *dev, in devm_get_gpiod_from_child()
185 struct gpio_desc *__must_check __devm_gpiod_get_index_optional(struct device *dev, in __devm_gpiod_get_index_optional()
212 struct gpio_descs *__must_check devm_gpiod_get_array(struct device *dev, in devm_gpiod_get_array()
[all …]
/linux-4.1.27/include/linux/hsi/
Dhsi.h143 struct device device; member
152 #define to_hsi_client(dev) container_of(dev, struct hsi_client, device)
156 dev_set_drvdata(&cl->device, data); in hsi_client_set_drvdata()
161 return dev_get_drvdata(&cl->device); in hsi_client_drvdata()
238 struct device device; member
255 #define to_hsi_port(dev) container_of(dev, struct hsi_port, device)
256 #define hsi_get_port(cl) to_hsi_port((cl)->device.parent)
269 dev_set_drvdata(&port->device, data); in hsi_port_set_drvdata()
274 return dev_get_drvdata(&port->device); in hsi_port_drvdata()
286 struct device device; member
[all …]
/linux-4.1.27/arch/arm64/include/asm/
Ddma-mapping.h32 static inline struct dma_map_ops *__generic_dma_ops(struct device *dev) in __generic_dma_ops()
40 static inline struct dma_map_ops *get_dma_ops(struct device *dev) in get_dma_ops()
48 static inline void arch_setup_dma_ops(struct device *dev, u64 dma_base, u64 size, in arch_setup_dma_ops()
56 static inline bool is_device_dma_coherent(struct device *dev) in is_device_dma_coherent()
65 static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) in phys_to_dma()
70 static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t dev_addr) in dma_to_phys()
75 static inline int dma_mapping_error(struct device *dev, dma_addr_t dev_addr) in dma_mapping_error()
82 static inline int dma_supported(struct device *dev, u64 mask) in dma_supported()
88 static inline int dma_set_mask(struct device *dev, u64 mask) in dma_set_mask()
97 static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) in dma_capable()
[all …]
/linux-4.1.27/crypto/async_tx/
Dasync_tx.c63 dma_has_cap(tx_type, depend_tx->chan->device->cap_mask)) in __async_tx_find_channel()
82 struct dma_device *device = chan->device; in async_tx_channel_switch() local
95 device->device_issue_pending(chan); in async_tx_channel_switch()
102 if (dma_has_cap(DMA_INTERRUPT, device->cap_mask)) in async_tx_channel_switch()
103 intr_tx = device->device_prep_dma_interrupt(chan, 0); in async_tx_channel_switch()
129 device->device_issue_pending(chan); in async_tx_channel_switch()
237 struct dma_device *device; in async_trigger_callback() local
243 device = chan->device; in async_trigger_callback()
248 if (device && !dma_has_cap(DMA_INTERRUPT, device->cap_mask)) in async_trigger_callback()
249 device = NULL; in async_trigger_callback()
[all …]
/linux-4.1.27/arch/mips/include/asm/mach-jazz/
Ddma-coherence.h13 struct device;
15 static inline dma_addr_t plat_map_dma_mem(struct device *dev, void *addr, size_t size) in plat_map_dma_mem()
20 static inline dma_addr_t plat_map_dma_mem_page(struct device *dev, in plat_map_dma_mem_page()
26 static inline unsigned long plat_dma_addr_to_phys(struct device *dev, in plat_dma_addr_to_phys()
32 static inline void plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr, in plat_unmap_dma_mem()
38 static inline int plat_dma_supported(struct device *dev, u64 mask) in plat_dma_supported()
51 static inline void plat_post_dma_flush(struct device *dev) in plat_post_dma_flush()
55 static inline int plat_device_is_coherent(struct device *dev) in plat_device_is_coherent()
/linux-4.1.27/Documentation/i2c/busses/
Di2c-viapro49 device 1106:3050 (VT82C596A function 3)
50 device 1106:3051 (VT82C596B function 3)
51 device 1106:3057 (VT82C686 function 4)
52 device 1106:3074 (VT8233)
53 device 1106:3147 (VT8233A)
54 device 1106:8235 (VT8231 function 4)
55 device 1106:3177 (VT8235)
56 device 1106:3227 (VT8237R)
57 device 1106:3337 (VT8237A)
58 device 1106:3372 (VT8237S)
[all …]
/linux-4.1.27/drivers/pwm/
Dsysfs.c27 struct device child;
31 static struct pwm_export *child_to_pwm_export(struct device *child) in child_to_pwm_export()
36 static struct pwm_device *child_to_pwm_device(struct device *child) in child_to_pwm_device()
43 static ssize_t pwm_period_show(struct device *child, in pwm_period_show()
52 static ssize_t pwm_period_store(struct device *child, in pwm_period_store()
69 static ssize_t pwm_duty_cycle_show(struct device *child, in pwm_duty_cycle_show()
78 static ssize_t pwm_duty_cycle_store(struct device *child, in pwm_duty_cycle_store()
95 static ssize_t pwm_enable_show(struct device *child, in pwm_enable_show()
105 static ssize_t pwm_enable_store(struct device *child, in pwm_enable_store()
131 static ssize_t pwm_polarity_show(struct device *child, in pwm_polarity_show()
[all …]
/linux-4.1.27/drivers/regulator/
Ddevres.c28 static void devm_regulator_release(struct device *dev, void *res) in devm_regulator_release()
33 static struct regulator *_devm_regulator_get(struct device *dev, const char *id, in _devm_regulator_get()
75 struct regulator *devm_regulator_get(struct device *dev, const char *id) in devm_regulator_get()
90 struct regulator *devm_regulator_get_exclusive(struct device *dev, in devm_regulator_get_exclusive()
106 struct regulator *devm_regulator_get_optional(struct device *dev, in devm_regulator_get_optional()
113 static int devm_regulator_match(struct device *dev, void *res, void *data) in devm_regulator_match()
157 int devm_regulator_bulk_get(struct device *dev, int num_consumers, in devm_regulator_bulk_get()
188 static void devm_rdev_release(struct device *dev, void *res) in devm_rdev_release()
203 struct regulator_dev *devm_regulator_register(struct device *dev, in devm_regulator_register()
226 static int devm_rdev_match(struct device *dev, void *res, void *data) in devm_rdev_match()
[all …]
/linux-4.1.27/Documentation/hwmon/
Dhwmon-kernel-api.txt14 to communicate with a hardware monitoring device. If you want to know this
26 struct device *hwmon_device_register(struct device *dev);
27 struct device *
28 hwmon_device_register_with_groups(struct device *dev, const char *name,
32 struct device *
33 devm_hwmon_device_register_with_groups(struct device *dev,
37 void hwmon_device_unregister(struct device *dev);
38 void devm_hwmon_device_unregister(struct device *dev);
40 hwmon_device_register registers a hardware monitoring device. The parameter
41 of this function is a pointer to the parent device.
[all …]
/linux-4.1.27/drivers/ipack/
Dipack.c18 #define to_ipack_dev(device) container_of(device, struct ipack_device, dev) argument
23 static void ipack_device_release(struct device *dev) in ipack_device_release()
25 struct ipack_device *device = to_ipack_dev(dev); in ipack_device_release() local
26 kfree(device->id); in ipack_device_release()
27 device->release(device); in ipack_device_release()
32 const struct ipack_device *device) in ipack_match_one_device() argument
35 id->format == device->id_format) && in ipack_match_one_device()
36 (id->vendor == IPACK_ANY_ID || id->vendor == device->id_vendor) && in ipack_match_one_device()
37 (id->device == IPACK_ANY_ID || id->device == device->id_device)) in ipack_match_one_device()
46 while (ids->vendor || ids->device) { in ipack_match_id()
[all …]
/linux-4.1.27/arch/mips/include/asm/mach-ath25/
Ddma-coherence.h22 static inline dma_addr_t ath25_dev_offset(struct device *dev) in ath25_dev_offset()
34 plat_map_dma_mem(struct device *dev, void *addr, size_t size) in plat_map_dma_mem()
40 plat_map_dma_mem_page(struct device *dev, struct page *page) in plat_map_dma_mem_page()
46 plat_dma_addr_to_phys(struct device *dev, dma_addr_t dma_addr) in plat_dma_addr_to_phys()
52 plat_unmap_dma_mem(struct device *dev, dma_addr_t dma_addr, size_t size, in plat_unmap_dma_mem()
57 static inline int plat_dma_supported(struct device *dev, u64 mask) in plat_dma_supported()
62 static inline int plat_device_is_coherent(struct device *dev) in plat_device_is_coherent()
72 static inline void plat_post_dma_flush(struct device *dev) in plat_post_dma_flush()
/linux-4.1.27/include/sound/
Domap-hdmi-audio.h25 int (*audio_startup)(struct device *dev,
26 void (*abort_cb)(struct device *dev));
27 int (*audio_shutdown)(struct device *dev);
28 int (*audio_start)(struct device *dev);
29 void (*audio_stop)(struct device *dev);
30 int (*audio_config)(struct device *dev,
36 struct device *dev;
/linux-4.1.27/include/acpi/
Dacpi_bus.h139 void (*bind)(struct device *phys_dev);
140 void (*unbind)(struct device *phys_dev);
161 typedef int (*acpi_op_add) (struct acpi_device * device);
162 typedef int (*acpi_op_remove) (struct acpi_device * device);
163 typedef void (*acpi_op_notify) (struct acpi_device * device, u32 event);
254 const char *acpi_device_hid(struct acpi_device *device);
322 struct device *dev;
339 struct device *dev;
375 struct device dev;
454 int acpi_bus_get_device(acpi_handle handle, struct acpi_device **device);
[all …]
/linux-4.1.27/arch/x86/platform/olpc/
Dolpc-xo15-sci.c142 static int xo15_sci_add(struct acpi_device *device) in xo15_sci_add() argument
148 if (!device) in xo15_sci_add()
151 strcpy(acpi_device_name(device), XO15_SCI_DEVICE_NAME); in xo15_sci_add()
152 strcpy(acpi_device_class(device), XO15_SCI_CLASS); in xo15_sci_add()
155 status = acpi_evaluate_integer(device->handle, "_GPE", NULL, &tmp); in xo15_sci_add()
162 xo15_sci_gpe_handler, device); in xo15_sci_add()
166 dev_info(&device->dev, "Initialized, GPE = 0x%lx\n", xo15_sci_gpe); in xo15_sci_add()
168 r = sysfs_create_file(&device->dev.kobj, &lid_wake_on_close_attr.attr); in xo15_sci_add()
179 if (device->wakeup.flags.valid) in xo15_sci_add()
180 device_init_wakeup(&device->dev, true); in xo15_sci_add()
[all …]

12345678910>>...45