/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | device.c | 7 #include <linux/device.h> 11 #include "device.h" 13 static char *hfi1_devnode(const struct device *dev, umode_t *mode) 25 static char *hfi1_user_devnode(const struct device *dev, umode_t *mode) 40 struct cdev *cdev, struct device **devp, 45 struct device *device = NULL; local 61 device = device_create(&user_class, NULL, dev, NULL, "%s", name); 63 device = device_create(&class, NULL, dev, NULL, "%s", name); 65 if (IS_ERR(device)) { 79 struct device *device = *devp; local [all...] |
/linux-master/drivers/block/drbd/ |
H A D | drbd_receiver.c | 147 static struct page *__drbd_alloc_pages(struct drbd_device *device, argument 193 static void reclaim_finished_net_peer_reqs(struct drbd_device *device, argument 203 list_for_each_entry_safe(peer_req, tmp, &device->net_ee, w.list) { 210 static void drbd_reclaim_net_peer_reqs(struct drbd_device *device) argument 215 spin_lock_irq(&device->resource->req_lock); 216 reclaim_finished_net_peer_reqs(device, &reclaimed); 217 spin_unlock_irq(&device->resource->req_lock); 219 drbd_free_net_peer_req(device, peer_req); 229 struct drbd_device *device = peer_device->device; local 265 struct drbd_device *device = peer_device->device; local 317 drbd_free_pages(struct drbd_device *device, struct page *page, int is_net) argument 363 struct drbd_device *device = peer_device->device; local 406 __drbd_free_peer_req(struct drbd_device *device, struct drbd_peer_request *peer_req, int is_net) argument 422 drbd_free_peer_reqs(struct drbd_device *device, struct list_head *list) argument 443 drbd_finish_peer_reqs(struct drbd_device *device) argument 476 _drbd_wait_ee_list_empty(struct drbd_device *device, struct list_head *head) argument 492 drbd_wait_ee_list_empty(struct drbd_device *device, struct list_head *head) argument 891 struct drbd_device *device = peer_device->device; local 1107 struct drbd_device *device = peer_device->device; local 1257 struct drbd_device *device; member in struct:one_flush_context 1264 struct drbd_device *device = octx->device; local 1282 submit_one_flush(struct drbd_device *device, struct issue_flush_context *ctx) argument 1325 struct drbd_device *device = peer_device->device; local 1451 struct drbd_device *device; local 1513 drbd_issue_discard_or_zero_out(struct drbd_device *device, sector_t start, unsigned int nr_sectors, int flags) argument 1578 can_do_reliable_discards(struct drbd_device *device) argument 1593 drbd_issue_peer_discard_or_zero_out(struct drbd_device *device, struct drbd_peer_request *peer_req) argument 1636 struct drbd_device *device = peer_req->peer_device->device; local 1727 drbd_remove_epoch_entry_interval(struct drbd_device *device, struct drbd_peer_request *peer_req) argument 1747 struct drbd_device *device = peer_device->device; local 1850 struct drbd_device *device = peer_device->device; local 2039 struct drbd_device *device = peer_device->device; local 2062 struct drbd_device *device = peer_device->device; local 2100 find_request(struct drbd_device *device, struct rb_root *root, u64 id, sector_t sector, bool missing_ok, const char *func) argument 2119 struct drbd_device *device; local 2151 struct drbd_device *device; local 2183 restart_conflicting_writes(struct drbd_device *device, sector_t sector, int size) argument 2210 struct drbd_device *device = peer_device->device; local 2293 struct drbd_device *device = peer_device->device; local 2313 overlapping_resync_write(struct drbd_device *device, struct drbd_peer_request *peer_req) argument 2354 struct drbd_device *device = peer_device->device; local 2419 fail_postponed_requests(struct drbd_device *device, sector_t sector, unsigned int size) argument 2445 handle_write_conflicts(struct drbd_device *device, struct drbd_peer_request *peer_req) argument 2557 struct drbd_device *device; local 2735 struct drbd_device *device = peer_device->device; local 2756 drbd_rs_c_min_rate_throttle(struct drbd_device *device) argument 2805 struct drbd_device *device; local 3015 struct drbd_device *device = peer_device->device; local 3098 struct drbd_device *device = peer_device->device; local 3155 struct drbd_device *device = peer_device->device; local 3200 drbd_uuid_dump(struct drbd_device *device, char *text, u64 *uuid, u64 bits, u64 flags) argument 3234 struct drbd_device *device = peer_device->device; local 3453 struct drbd_device *device = peer_device->device; local 3782 drbd_crypto_alloc_digest_safe( const struct drbd_device *device, const char *alg, const char *name) argument 3841 struct drbd_device *device; local 4049 warn_if_differ_considerably(struct drbd_device *device, const char *s, sector_t a, sector_t b) argument 4064 struct drbd_device *device; local 4235 struct drbd_device *device; local 4340 struct drbd_device *device; local 4397 struct drbd_device *device; local 4594 struct drbd_device *device; local 4818 struct drbd_device *device; local 4922 struct drbd_device *device; local 4949 struct drbd_device *device; local 5131 struct drbd_device *device = peer_device->device; local 5164 struct drbd_device *device = peer_device->device; local 5592 struct drbd_device *device; local 5637 struct drbd_device *device; local 5669 struct drbd_device *device = peer_device->device; local 5690 struct drbd_device *device; local 5736 struct drbd_device *device; local 5772 struct drbd_device *device; local 5794 struct drbd_device *device; local 5838 struct drbd_device *device = peer_device->device; local 5855 struct drbd_device *device; local 6102 struct drbd_device *device = peer_device->device; local [all...] |
H A D | drbd_bitmap.c | 113 static void __bm_print_lock_info(struct drbd_device *device, const char *func) argument 115 struct drbd_bitmap *b = device->bitmap; 118 drbd_err(device, "FIXME %s[%d] in %s, bitmap locked for '%s' by %s[%d]\n", 124 void drbd_bm_lock(struct drbd_device *device, char *why, enum bm_flag flags) argument 126 struct drbd_bitmap *b = device->bitmap; 130 drbd_err(device, "FIXME no bitmap in drbd_bm_lock!?\n"); 137 drbd_warn(device, "%s[%d] going to '%s' but bitmap already locked for '%s' by %s[%d]\n", 144 drbd_err(device, "FIXME bitmap already locked in bm_lock\n"); 151 void drbd_bm_unlock(struct drbd_device *device) argument 153 struct drbd_bitmap *b = device 211 bm_page_lock_io(struct drbd_device *device, int page_nr) argument 218 bm_page_unlock_io(struct drbd_device *device, int page_nr) argument 240 drbd_bm_reset_al_hints(struct drbd_device *device) argument 254 drbd_bm_mark_for_writeout(struct drbd_device *device, int page_nr) argument 433 drbd_bm_init(struct drbd_device *device) argument 449 drbd_bm_capacity(struct drbd_device *device) argument 458 drbd_bm_cleanup(struct drbd_device *device) argument 630 drbd_bm_resize(struct drbd_device *device, sector_t capacity, int set_new_bits) argument 754 _drbd_bm_total_weight(struct drbd_device *device) argument 772 drbd_bm_total_weight(struct drbd_device *device) argument 783 drbd_bm_words(struct drbd_device *device) argument 794 drbd_bm_bits(struct drbd_device *device) argument 808 drbd_bm_merge_lel(struct drbd_device *device, size_t offset, size_t number, unsigned long *buffer) argument 857 drbd_bm_get_lel(struct drbd_device *device, size_t offset, size_t number, unsigned long *buffer) argument 894 drbd_bm_set_all(struct drbd_device *device) argument 910 drbd_bm_clear_all(struct drbd_device *device) argument 940 struct drbd_device *device = ctx->device; local 992 struct drbd_device *device = ctx->device; local 1292 __bm_find_next(struct drbd_device *device, unsigned long bm_fo, const int find_zero_bit) argument 1332 bm_find_next(struct drbd_device *device, unsigned long bm_fo, const int find_zero_bit) argument 1353 drbd_bm_find_next(struct drbd_device *device, unsigned long bm_fo) argument 1368 _drbd_bm_find_next(struct drbd_device *device, unsigned long bm_fo) argument 1374 _drbd_bm_find_next_zero(struct drbd_device *device, unsigned long bm_fo) argument 1386 __bm_change_bits_to(struct drbd_device *device, const unsigned long s, unsigned long e, int val) argument 1435 bm_change_bits_to(struct drbd_device *device, const unsigned long s, const unsigned long e, int val) argument 1458 drbd_bm_set_bits(struct drbd_device *device, const unsigned long s, const unsigned long e) argument 1464 drbd_bm_clear_bits(struct drbd_device *device, const unsigned long s, const unsigned long e) argument 1501 _drbd_bm_set_bits(struct drbd_device *device, const unsigned long s, const unsigned long e) argument 1581 drbd_bm_test_bit(struct drbd_device *device, const unsigned long bitnr) argument 1612 drbd_bm_count_bits(struct drbd_device *device, const unsigned long s, const unsigned long e) argument 1667 drbd_bm_e_weight(struct drbd_device *device, unsigned long enr) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
H A D | nv50.c | 35 return nvkm_rd32(gr->engine.subdev.device, 0x1540); 46 int ret = nvkm_gpuobj_new(object->engine->subdev.device, 16, 73 int ret = nvkm_gpuobj_new(gr->base.engine.subdev.device, gr->size, 77 nv50_grctx_fill(gr->base.engine.subdev.device, *pgpuobj); 243 struct nvkm_device *device = subdev->device; local 244 u32 e0c = nvkm_rd32(device, ustatus_addr + 0x04); 245 u32 e10 = nvkm_rd32(device, ustatus_addr + 0x08); 246 u32 e14 = nvkm_rd32(device, ustatus_addr + 0x0c); 247 u32 e18 = nvkm_rd32(device, ustatus_add 285 struct nvkm_device *device = subdev->device; local 329 struct nvkm_device *device = subdev->device; local 399 struct nvkm_device *device = subdev->device; local 624 struct nvkm_device *device = subdev->device; local 682 struct nvkm_device *device = gr->base.engine.subdev.device; local 763 nv50_gr_new_(const struct nvkm_gr_func *func, struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_gr **pgr) argument 793 nv50_gr_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_gr **pgr) argument [all...] |
H A D | ga102.c | 38 struct nvkm_device *device = gr->base.engine.subdev.device; local 46 nvkm_mask(device, 0x41bcb4, 0x0000001f, zbc); 47 nvkm_wr32(device, 0x41bcec, color[0]); 48 nvkm_wr32(device, 0x41bcf0, color[1]); 49 nvkm_wr32(device, 0x41bcf4, color[2]); 50 nvkm_wr32(device, 0x41bcf8, color[3]); 64 struct nvkm_device *device = gr->base.engine.subdev.device; local 66 nvkm_wr32(device, 83 struct nvkm_device *device = gr->base.engine.subdev.device; local 106 struct nvkm_device *device = gr->base.engine.subdev.device; local 122 struct nvkm_device *device = gr->base.engine.subdev.device; local 135 struct nvkm_device *device = gr->base.engine.subdev.device; local 352 ga102_gr_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_gr **pgr) argument [all...] |
/linux-master/include/linux/ |
H A D | reset.h | 9 struct device; 47 struct reset_control *__reset_control_get(struct device *dev, const char *id, 51 int __reset_control_bulk_get(struct device *dev, int num_rstcs, 56 int __device_reset(struct device *dev, bool optional); 57 struct reset_control *__devm_reset_control_get(struct device *dev, 60 int __devm_reset_control_bulk_get(struct device *dev, int num_rstcs, 64 struct reset_control *devm_reset_control_array_get(struct device *dev, 70 int reset_control_get_count(struct device *dev); 112 static inline int __device_reset(struct device *dev, bool optional) 126 struct device *de [all...] |
H A D | peci.h | 7 #include <linux/device.h> 34 * @dev: device object to register PECI controller to the device model 35 * @ops: pointer to device specific controller operations 44 struct device dev; 50 struct peci_controller *devm_peci_controller_add(struct device *parent, 59 * struct peci_device - PECI device 60 * @dev: device object to register PECI device to the device mode 104 struct peci_device *device; member in struct:peci_request [all...] |
H A D | pm.h | 25 struct device; /* we have a circular dep with device.h */ 27 extern void pm_vt_switch_required(struct device *dev, bool required); 28 extern void pm_vt_switch_unregister(struct device *dev); 30 static inline void pm_vt_switch_required(struct device *dev, bool required) 33 static inline void pm_vt_switch_unregister(struct device *dev) 63 * struct dev_pm_ops - device PM callbacks. 66 * the device from being registered after it has returned (the driver's 77 * used to indicate to the PM core to leave the device in runtime suspend 79 * core will understand that as a declaration that the device appear [all...] |
H A D | fsi-sbefifo.h | 3 * SBEFIFO FSI Client device driver 17 struct device; 19 int sbefifo_submit(struct device *dev, const __be32 *command, size_t cmd_len, 22 int sbefifo_parse_status(struct device *dev, u16 cmd, __be32 *response,
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/mpeg/ |
H A D | nv31.c | 42 int ret = nvkm_gpuobj_new(object->engine->subdev.device, 16, align, 116 struct nvkm_device *device = mpeg->engine.subdev.device; local 118 nvkm_wr32(device, 0x00b008 + (i * 0x10), tile->pitch); 119 nvkm_wr32(device, 0x00b004 + (i * 0x10), tile->limit); 120 nvkm_wr32(device, 0x00b000 + (i * 0x10), tile->addr); 124 nv31_mpeg_mthd_dma(struct nvkm_device *device, u32 mthd, u32 data) argument 126 struct nv31_mpeg *mpeg = nv31_mpeg(device->mpeg); 129 u32 dma0 = nvkm_rd32(device, 0x700000 + inst); 130 u32 dma1 = nvkm_rd32(device, 170 struct nvkm_device *device = mpeg->engine.subdev.device; local 187 struct nvkm_device *device = subdev->device; local 227 struct nvkm_device *device = subdev->device; local 275 nv31_mpeg_new_(const struct nv31_mpeg_func *func, struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_engine **pmpeg) argument 294 nv31_mpeg_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_engine **pmpeg) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/volt/ |
H A D | gm20b.c | 67 gm20b_volt_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, argument 70 struct nvkm_device_tegra *tdev = device->func->tegra(device); 75 nvdev_error(device, "unsupported speedo %d\n", 88 return gk20a_volt_ctor(device, type, inst, gm20b_na_cvb_coef, 91 return gk20a_volt_ctor(device, type, inst, gm20b_cvb_coef,
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/engine/ce/ |
H A D | gv100.c | 33 struct nvkm_device *device = object->engine->subdev.device; local 37 size = nvkm_rd32(device, 0x104028); /* NV_PCE_PCE_MAP */ 41 return nvkm_gpuobj_new(device, size, align, true, parent, pgpuobj); 60 gv100_ce_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, argument 63 return nvkm_engine_new_(&gv100_ce, device, type, inst, true, pengine);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/top/ |
H A D | base.c | 39 list_add_tail(&info->head, &top->device); 45 nvkm_top_addr(struct nvkm_device *device, enum nvkm_subdev_type type, int inst) argument 47 struct nvkm_top *top = device->top; 51 list_for_each_entry(info, &top->device, head) { 61 nvkm_top_reset(struct nvkm_device *device, enum nvkm_subdev_type type, int inst) argument 63 struct nvkm_top *top = device->top; 67 list_for_each_entry(info, &top->device, head) { 77 nvkm_top_intr_mask(struct nvkm_device *device, enum nvkm_subdev_type type, int inst) argument 79 struct nvkm_top *top = device->top; 83 list_for_each_entry(info, &top->device, hea 93 nvkm_top_fault_id(struct nvkm_device *device, enum nvkm_subdev_type type, int inst) argument 107 nvkm_top_fault(struct nvkm_device *device, int fault) argument 121 nvkm_top_parse(struct nvkm_device *device) argument 151 nvkm_top_new_(const struct nvkm_top_func *func, struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_top **ptop) argument [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/mc/ |
H A D | nv50.c | 43 struct nvkm_device *device = mc->subdev.device; local 44 nvkm_wr32(device, 0x000200, 0xffffffff); /* everything on */ 52 .device = &nv04_mc_device, 57 nv50_mc_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, struct nvkm_mc **pmc) argument 59 return nvkm_mc_new_(&nv50_mc, device, type, inst, pmc);
|
/linux-master/include/linux/device/ |
H A D | driver.h | 20 #include <linux/device/bus.h> 24 * enum probe_type - device driver probe type to try 36 * device registration (with the exception of -EPROBE_DEFER 52 * struct device_driver - The basic device driver structure 53 * @name: Name of the device driver. 54 * @bus: The bus which the device of this driver belongs to. 61 * @probe: Called to query the existence of a specific device, 63 * to a specific device. 64 * @sync_state: Called to sync device state to software state after all the 65 * state tracking consumers linked to this device (presen [all...] |
/linux-master/drivers/usb/host/ |
H A D | pci-quirks.h | 13 void sb800_prefetch(struct device *dev, int on); 14 bool usb_amd_pt_check_port(struct device *device, int port); 31 static inline void sb800_prefetch(struct device *dev, int on) {} 32 static inline bool usb_amd_pt_check_port(struct device *device, int port) argument
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
H A D | busnv4e.c | 36 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; local 37 nvkm_mask(device, bus->addr, 0x2f, state ? 0x21 : 0x01); 44 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; local 45 nvkm_mask(device, bus->addr, 0x1f, state ? 0x11 : 0x01); 52 struct nvkm_device *device = bus->base.pad->i2c->subdev.device; local 53 return !!(nvkm_rd32(device, bus->addr) & 0x00040000); 60 struct nvkm_device *device local [all...] |
H A D | gk110.c | 28 nvkm_mask(i2c->subdev.device, 0x00e4f8 + (aux * 0x50), 0x00010000, enable << 16); 42 gk110_i2c_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, argument 45 return nvkm_i2c_new_(&gk110_i2c, device, type, inst, pi2c);
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
H A D | rammcp77.c | 36 struct nvkm_device *device = ram->base.fb->subdev.device; local 44 nvkm_wr32(device, 0x100c18, dniso); 45 nvkm_mask(device, 0x100c14, 0x00000000, 0x00000001); 46 nvkm_wr32(device, 0x100c1c, hostnb); 47 nvkm_mask(device, 0x100c14, 0x00000000, 0x00000002); 48 nvkm_wr32(device, 0x100c24, flush); 49 nvkm_mask(device, 0x100c14, 0x00000000, 0x00010000); 61 struct nvkm_device *device = fb->subdev.device; local [all...] |
/linux-master/drivers/net/ethernet/ti/ |
H A D | cpsw.h | 18 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave); 21 void cpsw_phy_sel(struct device *dev, phy_interface_t phy_mode, int slave) 24 int ti_cm_get_macid(struct device *dev, int slave, u8 *mac_addr);
|
/linux-master/drivers/media/platform/xilinx/ |
H A D | xilinx-vipp.h | 17 #include <media/media-device.h> 20 #include <media/v4l2-device.h> 23 * struct xvip_composite_device - Xilinx Video IP device structure 24 * @v4l2_dev: V4L2 device 25 * @media_dev: media device 26 * @dev: (OF) device 29 * @v4l2_caps: V4L2 capabilities of the whole device (see VIDIOC_QUERYCAP) 34 struct device *dev;
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | g84.c | 44 g84_clk_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst, argument 47 return nv50_clk_new_(&g84_clk, device, type, inst, (device->chipset >= 0x94), pclk);
|
/linux-master/drivers/char/xillybus/ |
H A D | xillybus_class.h | 12 #include <linux/device.h> 16 int xillybus_init_chrdev(struct device *dev, 25 struct device *dev);
|
/linux-master/arch/s390/kernel/ |
H A D | nospec-sysfs.c | 2 #include <linux/device.h> 7 ssize_t cpu_show_spectre_v1(struct device *dev, 13 ssize_t cpu_show_spectre_v2(struct device *dev,
|
/linux-master/drivers/staging/media/atomisp/pci/ |
H A D | sh_css_firmware.h | 38 struct device; 40 sh_css_check_firmware_version(struct device *dev, const char *fw_data); 43 sh_css_load_firmware(struct device *dev, const char *fw_data,
|