/openbmc/linux/drivers/s390/char/ |
H A D | tape_proc.c | 41 struct tape_device *device; in tape_proc_show() local 51 device = tape_find_device(n); in tape_proc_show() 52 if (IS_ERR(device)) in tape_proc_show() 54 spin_lock_irq(get_ccwdev_lock(device->cdev)); in tape_proc_show() 61 if (device->char_data.block_size == 0) in tape_proc_show() 65 if (device->tape_state >= 0 && in tape_proc_show() 66 device->tape_state < TS_SIZE) in tape_proc_show() 67 str = tape_state_verbose[device->tape_state]; in tape_proc_show() 71 if (!list_empty(&device->req_queue)) { in tape_proc_show() 72 request = list_entry(device->req_queue.next, in tape_proc_show() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/ |
H A D | nv10.c | 31 struct nvkm_device *device = gpio->subdev.device; in nv10_gpio_sense() local 34 line = nvkm_rd32(device, 0x600818) >> line; in nv10_gpio_sense() 39 line = nvkm_rd32(device, 0x60081c) >> line; in nv10_gpio_sense() 44 line = nvkm_rd32(device, 0x600850) >> line; in nv10_gpio_sense() 54 struct nvkm_device *device = gpio->subdev.device; in nv10_gpio_drive() local 85 struct nvkm_device *device = gpio->subdev.device; in nv10_gpio_intr_stat() local 86 u32 intr = nvkm_rd32(device, 0x001104); in nv10_gpio_intr_stat() 90 nvkm_wr32(device, 0x001104, intr); in nv10_gpio_intr_stat() 96 struct nvkm_device *device = gpio->subdev.device; in nv10_gpio_intr_mask() local 97 u32 inte = nvkm_rd32(device, 0x001144); in nv10_gpio_intr_mask() [all …]
|
H A D | nv50.c | 29 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_reset() local 30 struct nvkm_bios *bios = device->bios; in nv50_gpio_reset() 73 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_drive() local 86 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_sense() local 98 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_intr_stat() local 99 u32 intr = nvkm_rd32(device, 0x00e054); in nv50_gpio_intr_stat() 100 u32 stat = nvkm_rd32(device, 0x00e050) & intr; in nv50_gpio_intr_stat() 103 nvkm_wr32(device, 0x00e054, intr); in nv50_gpio_intr_stat() 109 struct nvkm_device *device = gpio->subdev.device; in nv50_gpio_intr_mask() local 110 u32 inte = nvkm_rd32(device, 0x00e050); in nv50_gpio_intr_mask() [all …]
|
H A D | g94.c | 29 struct nvkm_device *device = gpio->subdev.device; in g94_gpio_intr_stat() local 30 u32 intr0 = nvkm_rd32(device, 0x00e054); in g94_gpio_intr_stat() 31 u32 intr1 = nvkm_rd32(device, 0x00e074); in g94_gpio_intr_stat() 32 u32 stat0 = nvkm_rd32(device, 0x00e050) & intr0; in g94_gpio_intr_stat() 36 nvkm_wr32(device, 0x00e054, intr0); in g94_gpio_intr_stat() 37 nvkm_wr32(device, 0x00e074, intr1); in g94_gpio_intr_stat() 43 struct nvkm_device *device = gpio->subdev.device; in g94_gpio_intr_mask() local 44 u32 inte0 = nvkm_rd32(device, 0x00e050); in g94_gpio_intr_mask() 45 u32 inte1 = nvkm_rd32(device, 0x00e070); in g94_gpio_intr_mask() 56 nvkm_wr32(device, 0x00e050, inte0); in g94_gpio_intr_mask() [all …]
|
H A D | gk104.c | 29 struct nvkm_device *device = gpio->subdev.device; in gk104_gpio_intr_stat() local 30 u32 intr0 = nvkm_rd32(device, 0x00dc00); in gk104_gpio_intr_stat() 31 u32 intr1 = nvkm_rd32(device, 0x00dc80); in gk104_gpio_intr_stat() 32 u32 stat0 = nvkm_rd32(device, 0x00dc08) & intr0; in gk104_gpio_intr_stat() 36 nvkm_wr32(device, 0x00dc00, intr0); in gk104_gpio_intr_stat() 37 nvkm_wr32(device, 0x00dc80, intr1); in gk104_gpio_intr_stat() 43 struct nvkm_device *device = gpio->subdev.device; in gk104_gpio_intr_mask() local 44 u32 inte0 = nvkm_rd32(device, 0x00dc08); in gk104_gpio_intr_mask() 45 u32 inte1 = nvkm_rd32(device, 0x00dc88); in gk104_gpio_intr_mask() 56 nvkm_wr32(device, 0x00dc08, inte0); in gk104_gpio_intr_mask() [all …]
|
/openbmc/linux/drivers/nvdimm/ |
H A D | nd-core.h | 23 struct device dev; 35 struct device dev; 85 bool is_nvdimm(const struct device *dev); 86 bool is_nd_pmem(const struct device *dev); 87 bool is_nd_volatile(const struct device *dev); 92 static inline bool is_memory(const struct device *dev) in is_memory() 109 void nd_device_register(struct device *dev); 110 void nd_device_register_sync(struct device *dev); 143 ssize_t nd_namespace_store(struct device *dev, 146 struct nd_pfn *to_nd_pfn_safe(struct device *dev); [all …]
|
/openbmc/linux/include/linux/device/ |
H A D | class.h | 22 struct device; 59 char *(*devnode)(const struct device *dev, umode_t *mode); 62 void (*dev_release)(struct device *dev); 64 int (*shutdown_pre)(struct device *dev); 67 const void *(*namespace)(const struct device *dev); 88 struct device *device_link); 90 struct device *device_link); 98 int (*fn)(struct device *dev, void *data)); 99 struct device *class_find_device(const struct class *class, const struct device *start, 223 int (*add_dev) (struct device *dev); [all …]
|
H A D | driver.h | 109 int (*probe) (struct device *dev); 110 void (*sync_state)(struct device *dev); 111 int (*remove) (struct device *dev); 112 void (*shutdown) (struct device *dev); 114 int (*resume) (struct device *dev); 119 void (*coredump) (struct device *dev); 180 static inline struct device * 193 static inline struct device * 213 struct device *start) in driver_find_next_device() 225 static inline struct device * [all …]
|
/openbmc/linux/include/linux/regulator/ |
H A D | consumer.h | 37 struct device; 216 struct device *alias_dev, 222 struct device *alias_dev, 229 struct device *alias_dev, 234 struct device *alias_dev, 255 struct device *dev, int num_consumers, 349 devm_regulator_get(struct device *dev, const char *id) in devm_regulator_get() 404 struct device *alias_dev, in regulator_register_supply_alias() 417 struct device *alias_dev, in regulator_bulk_register_supply_alias() 432 struct device *alias_dev, in devm_regulator_register_supply_alias() [all …]
|
/openbmc/linux/sound/i2c/ |
H A D | i2c.c | 107 device = kzalloc(sizeof(*device), GFP_KERNEL); in snd_i2c_device_create() 108 if (device == NULL) in snd_i2c_device_create() 110 device->addr = addr; in snd_i2c_device_create() 111 strscpy(device->name, name, sizeof(device->name)); in snd_i2c_device_create() 113 device->bus = bus; in snd_i2c_device_create() 114 *rdevice = device; in snd_i2c_device_create() 122 if (device->bus) in snd_i2c_device_free() 125 device->private_free(device); in snd_i2c_device_free() 126 kfree(device); in snd_i2c_device_free() 134 return device->bus->ops->sendbytes(device, bytes, count); in snd_i2c_sendbytes() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | tu102.c | 42 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in tu102_chan_start() local 45 nvkm_wr32(device, device->vfn->addr.user + 0x0090, chan->func->doorbell_handle(chan)); in tu102_chan_start() 64 struct nvkm_device *device = runl->fifo->engine.subdev.device; in tu102_runl_pending() local 72 struct nvkm_device *device = runl->fifo->engine.subdev.device; in tu102_runl_commit() local 170 struct nvkm_device *device = fifo->engine.subdev.device; in tu102_fifo_intr_ctxsw_timeout() local 173 u32 engm = nvkm_rd32(device, 0x002a30); in tu102_fifo_intr_ctxsw_timeout() 183 nvkm_wr32(device, 0x002a30, engm); in tu102_fifo_intr_ctxsw_timeout() 201 struct nvkm_device *device = subdev->device; in tu102_fifo_intr() local 202 u32 mask = nvkm_rd32(device, 0x002140); in tu102_fifo_intr() 207 nvkm_wr32(device, 0x002100, 0x00000001); in tu102_fifo_intr() [all …]
|
H A D | nv50.c | 50 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in nv50_chan_stop() local 58 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in nv50_chan_start() local 66 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in nv50_chan_unbind() local 74 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in nv50_chan_bind() local 82 struct nvkm_device *device = chan->cgrp->runl->fifo->engine.subdev.device; in nv50_chan_ramfc_write() local 153 struct nvkm_device *device = subdev->device; in nv50_ectx_bind() local 182 nvkm_msec(device, 2000, in nv50_ectx_bind() 186 nvkm_wr32(device, 0x00b860, save); in nv50_ectx_bind() 240 struct nvkm_device *device = runl->fifo->engine.subdev.device; in nv50_runl_commit() local 244 nvkm_wr32(device, 0x0032ec, count); in nv50_runl_commit() [all …]
|
/openbmc/linux/drivers/misc/cxl/ |
H A D | sysfs.c | 17 static ssize_t caia_version_show(struct device *device, in caia_version_show() argument 27 static ssize_t psl_revision_show(struct device *device, in psl_revision_show() argument 36 static ssize_t base_image_show(struct device *device, in base_image_show() argument 45 static ssize_t image_loaded_show(struct device *device, in image_loaded_show() argument 86 static ssize_t reset_adapter_store(struct device *device, in reset_adapter_store() argument 236 static ssize_t mmio_size_show(struct device *device, in mmio_size_show() argument 247 static ssize_t reset_store_afu(struct device *device, in reset_store_afu() argument 270 static ssize_t irqs_min_show(struct device *device, in irqs_min_show() argument 279 static ssize_t irqs_max_show(struct device *device, in irqs_max_show() argument 288 static ssize_t irqs_max_store(struct device *device, in irqs_max_store() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bar/ |
H A D | nv50.c | 35 struct nvkm_device *device = bar->base.subdev.device; in nv50_bar_flush() local 38 nvkm_wr32(device, 0x00330c, 0x00000001); in nv50_bar_flush() 39 nvkm_msec(device, 2000, in nv50_bar_flush() 40 if (!(nvkm_rd32(device, 0x00330c) & 0x00000002)) in nv50_bar_flush() 67 struct nvkm_device *device = base->subdev.device; in nv50_bar_bar1_init() local 87 struct nvkm_device *device = base->subdev.device; in nv50_bar_bar2_init() local 98 struct nvkm_device *device = bar->base.subdev.device; in nv50_bar_init() local 109 struct nvkm_device *device = bar->base.subdev.device; in nv50_bar_oneinit() local 130 size = device->func->resource_size(device, 3); in nv50_bar_oneinit() 166 nvkm_bar_bar2_init(device); in nv50_bar_oneinit() [all …]
|
/openbmc/linux/include/linux/ |
H A D | devfreq.h | 113 int (*get_dev_status)(struct device *dev, 115 int (*get_cur_freq)(struct device *dev, unsigned long *freq); 116 void (*exit)(struct device *dev); 184 struct device dev; 228 struct devfreq *devfreq_add_device(struct device *dev, 233 struct devfreq *devm_devfreq_add_device(struct device *dev, 252 int devfreq_register_opp_notifier(struct device *dev, 254 int devfreq_unregister_opp_notifier(struct device *dev, 256 int devm_devfreq_register_opp_notifier(struct device *dev, 266 int devm_devfreq_register_notifier(struct device *dev, [all …]
|
H A D | swiotlb.h | 13 struct device; 50 extern void swiotlb_tbl_unmap_single(struct device *hwdev, 60 dma_addr_t swiotlb_map(struct device *dev, phys_addr_t phys, 203 void swiotlb_dev_init(struct device *dev); 204 size_t swiotlb_max_mapping_size(struct device *dev); 206 bool is_swiotlb_active(struct device *dev); 215 static inline void swiotlb_dev_init(struct device *dev) in swiotlb_dev_init() 240 static inline bool is_swiotlb_active(struct device *dev) in is_swiotlb_active() 263 struct page *swiotlb_alloc(struct device *dev, size_t size); 266 static inline bool is_swiotlb_for_alloc(struct device *dev) in is_swiotlb_for_alloc() [all …]
|
H A D | mii_timestamper.h | 62 struct device *device; member 77 struct mii_timestamper *(*probe_channel)(struct device *device, 79 void (*release_channel)(struct device *device, 85 int register_mii_tstamp_controller(struct device *device, 88 void unregister_mii_tstamp_controller(struct device *device); 98 int register_mii_tstamp_controller(struct device *device, in register_mii_tstamp_controller() argument 104 static inline void unregister_mii_tstamp_controller(struct device *device) in unregister_mii_tstamp_controller() argument
|
H A D | msi.h | 188 struct device *dev; 247 int msi_setup_device_data(struct device *dev); 249 void msi_lock_descs(struct device *dev); 250 void msi_unlock_descs(struct device *dev); 394 int msi_device_populate_sysfs(struct device *dev); 395 void msi_device_destroy_sysfs(struct device *dev); 459 struct device *dev, int nvec, 466 struct device *dev, int nvec); 468 struct device *dev); 470 struct device *dev); [all …]
|
H A D | of_device.h | 10 struct device; 16 const struct of_device_id *matches, const struct device *dev); 23 static inline int of_driver_match_device(struct device *dev, in of_driver_match_device() 34 int of_dma_configure_id(struct device *dev, 37 static inline int of_dma_configure(struct device *dev, in of_dma_configure() 45 static inline int of_driver_match_device(struct device *dev, in of_driver_match_device() 51 static inline void of_device_uevent(const struct device *dev, in of_device_uevent() 54 static inline int of_device_modalias(struct device *dev, in of_device_modalias() 67 const struct of_device_id *matches, const struct device *dev) in of_match_device() 72 static inline int of_dma_configure_id(struct device *dev, in of_dma_configure_id() [all …]
|
H A D | of_platform.h | 13 struct device; 55 struct device *parent); 72 struct device *parent); 78 struct device *parent); 85 struct device *parent); 88 struct device *parent); 89 extern void of_platform_depopulate(struct device *parent); 91 extern int devm_of_platform_populate(struct device *dev); 98 struct device *parent) in of_platform_device_create() 110 struct device *parent) in of_platform_populate() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
H A D | gf100.c | 36 struct nvkm_device *device = subdev->device; in gf100_fb_intr() local 37 u32 intr = nvkm_rd32(device, 0x000100); in gf100_fb_intr() 48 struct nvkm_device *device = fb->base.subdev.device; in gf100_fb_oneinit() local 51 size = nvkm_longopt(device->cfgopt, "MmuDebugBufferSize", size); in gf100_fb_oneinit() 54 ret = nvkm_memory_new(device, NVKM_MEM_TARGET_INST, size, 0x1000, in gf100_fb_oneinit() 59 ret = nvkm_memory_new(device, NVKM_MEM_TARGET_INST, size, 0x1000, in gf100_fb_oneinit() 70 struct nvkm_device *device = fb->subdev.device; in gf100_fb_init_page() local 90 struct nvkm_device *device = fb->base.subdev.device; in gf100_fb_init() local 93 nvkm_therm_clkgate_init(device->therm, in gf100_fb_init() 114 nvkm_fb_ctor(func, device, type, inst, &fb->base); in gf100_fb_new_() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | gf100.c | 51 struct nvkm_device *device = clk->base.subdev.device; in read_vco() local 61 struct nvkm_device *device = clk->base.subdev.device; in read_pll() local 75 sclk = device->crystal; in read_pll() 100 struct nvkm_device *device = clk->base.subdev.device; in read_div() local 135 struct nvkm_device *device = clk->base.subdev.device; in read_clk() local 162 struct nvkm_device *device = subdev->device; in gf100_clk_read() local 347 struct nvkm_device *device = clk->base.subdev.device; in gf100_clk_prog_0() local 357 struct nvkm_device *device = clk->base.subdev.device; in gf100_clk_prog_1() local 369 struct nvkm_device *device = clk->base.subdev.device; in gf100_clk_prog_2() local 396 struct nvkm_device *device = clk->base.subdev.device; in gf100_clk_prog_3() local [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bus/ |
H A D | nv04.c | 33 struct nvkm_device *device = subdev->device; in nv04_bus_intr() local 34 u32 stat = nvkm_rd32(device, 0x001100) & nvkm_rd32(device, 0x001140); in nv04_bus_intr() 39 nvkm_wr32(device, 0x001100, 0x00000001); in nv04_bus_intr() 43 struct nvkm_gpio *gpio = device->gpio; in nv04_bus_intr() 47 nvkm_wr32(device, 0x001100, 0x00000110); in nv04_bus_intr() 52 nvkm_mask(device, 0x001140, stat, 0x00000000); in nv04_bus_intr() 59 struct nvkm_device *device = bus->subdev.device; in nv04_bus_init() local 60 nvkm_wr32(device, 0x001100, 0xffffffff); in nv04_bus_init() 61 nvkm_wr32(device, 0x001140, 0x00000111); in nv04_bus_init() 71 nv04_bus_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, in nv04_bus_new() argument [all …]
|
/openbmc/phosphor-power/phosphor-power-sequencer/test/ |
H A D | pmbus_driver_device_tests.cpp | 123 EXPECT_EQ(device.getName(), name); in TEST_F() 127 EXPECT_EQ(device.getBus(), bus); in TEST_F() 130 EXPECT_EQ(device.getInstance(), 0); in TEST_F() 149 EXPECT_EQ(device.getName(), name); in TEST_F() 153 EXPECT_EQ(device.getBus(), bus); in TEST_F() 171 EXPECT_EQ(device.getBus(), bus); in TEST_F() 268 device.getGPIOValues(services); in TEST_F() 322 device.getStatusWord(page); in TEST_F() 376 device.getStatusVout(page); in TEST_F() 445 device.getReadVout(page); in TEST_F() [all …]
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | ep0.c | 305 (device, port, 0, bNumInterface, in ep0_get_descriptor() 330 device->qualifier_descriptor; in ep0_get_descriptor() 383 struct usb_device_instance *device; in ep0_recv_setup() local 387 if (!urb || !urb->device) { in ep0_recv_setup() 393 device = urb->device; in ep0_recv_setup() 420 switch (device->device_state) { in ep0_recv_setup() 488 return ep0_get_one (device, urb, in ep0_recv_setup() 489 device->configuration); in ep0_recv_setup() 492 return ep0_get_one (device, urb, device->alternate); in ep0_recv_setup() 558 device->address = address; in ep0_recv_setup() [all …]
|