Home
last modified time | relevance | path

Searched refs:mdev (Results 1 – 178 of 178) sorted by relevance

/linux-4.4.14/drivers/infiniband/hw/mthca/
Dmthca_main.c137 static int mthca_tune_pci(struct mthca_dev *mdev) in mthca_tune_pci() argument
143 if (pci_find_capability(mdev->pdev, PCI_CAP_ID_PCIX)) { in mthca_tune_pci()
144 if (pcix_set_mmrbc(mdev->pdev, pcix_get_max_mmrbc(mdev->pdev))) { in mthca_tune_pci()
145 mthca_err(mdev, "Couldn't set PCI-X max read count, " in mthca_tune_pci()
149 } else if (!(mdev->mthca_flags & MTHCA_FLAG_PCIE)) in mthca_tune_pci()
150 mthca_info(mdev, "No PCI-X capability, not setting RBC.\n"); in mthca_tune_pci()
152 if (pci_is_pcie(mdev->pdev)) { in mthca_tune_pci()
153 if (pcie_set_readrq(mdev->pdev, 4096)) { in mthca_tune_pci()
154 mthca_err(mdev, "Couldn't write PCI Express read request, " in mthca_tune_pci()
158 } else if (mdev->mthca_flags & MTHCA_FLAG_PCIE) in mthca_tune_pci()
[all …]
Dmthca_reset.c41 int mthca_reset(struct mthca_dev *mdev) in mthca_reset() argument
69 if (!(mdev->mthca_flags & MTHCA_FLAG_PCIE)) { in mthca_reset()
72 while ((bridge = pci_get_device(mdev->pdev->vendor, in mthca_reset()
73 mdev->pdev->device + 2, in mthca_reset()
76 bridge->subordinate == mdev->pdev->bus) { in mthca_reset()
77 mthca_dbg(mdev, "Found bridge: %s\n", in mthca_reset()
89 mthca_warn(mdev, "No bridge found for %s\n", in mthca_reset()
90 pci_name(mdev->pdev)); in mthca_reset()
99 mthca_err(mdev, "Couldn't allocate memory to save HCA " in mthca_reset()
107 if (pci_read_config_dword(mdev->pdev, i * 4, hca_header + i)) { in mthca_reset()
[all …]
Dmthca_provider.c66 struct mthca_dev *mdev = to_mdev(ibdev); in mthca_query_device() local
78 props->fw_ver = mdev->fw_ver; in mthca_query_device()
83 err = mthca_MAD_IFC(mdev, 1, 1, in mthca_query_device()
88 props->device_cap_flags = mdev->device_cap_flags; in mthca_query_device()
96 props->page_size_cap = mdev->limits.page_size_cap; in mthca_query_device()
97 props->max_qp = mdev->limits.num_qps - mdev->limits.reserved_qps; in mthca_query_device()
98 props->max_qp_wr = mdev->limits.max_wqes; in mthca_query_device()
99 props->max_sge = mdev->limits.max_sg; in mthca_query_device()
101 props->max_cq = mdev->limits.num_cqs - mdev->limits.reserved_cqs; in mthca_query_device()
102 props->max_cqe = mdev->limits.max_cqes; in mthca_query_device()
[all …]
Dmthca_dev.h366 #define mthca_dbg(mdev, format, arg...) \ argument
369 dev_printk(KERN_DEBUG, &mdev->pdev->dev, format, ## arg); \
374 #define mthca_dbg(mdev, format, arg...) do { (void) mdev; } while (0) argument
378 #define mthca_err(mdev, format, arg...) \ argument
379 dev_err(&mdev->pdev->dev, format, ## arg)
380 #define mthca_info(mdev, format, arg...) \ argument
381 dev_info(&mdev->pdev->dev, format, ## arg)
382 #define mthca_warn(mdev, format, arg...) \ argument
383 dev_warn(&mdev->pdev->dev, format, ## arg)
412 int mthca_reset(struct mthca_dev *mdev);
Dmthca_profile.h54 s64 mthca_make_profile(struct mthca_dev *mdev,
/linux-4.4.14/drivers/media/platform/s5p-tv/
Dmixer_drv.c45 void mxr_get_mbus_fmt(struct mxr_device *mdev, in mxr_get_mbus_fmt() argument
54 mutex_lock(&mdev->mutex); in mxr_get_mbus_fmt()
55 sd = to_outsd(mdev); in mxr_get_mbus_fmt()
59 mutex_unlock(&mdev->mutex); in mxr_get_mbus_fmt()
62 void mxr_streamer_get(struct mxr_device *mdev) in mxr_streamer_get() argument
64 mutex_lock(&mdev->mutex); in mxr_streamer_get()
65 ++mdev->n_streamer; in mxr_streamer_get()
66 mxr_dbg(mdev, "%s(%d)\n", __func__, mdev->n_streamer); in mxr_streamer_get()
67 if (mdev->n_streamer == 1) { in mxr_streamer_get()
68 struct v4l2_subdev *sd = to_outsd(mdev); in mxr_streamer_get()
[all …]
Dmixer_reg.c22 static inline u32 vp_read(struct mxr_device *mdev, u32 reg_id) in vp_read() argument
24 return readl(mdev->res.vp_regs + reg_id); in vp_read()
27 static inline void vp_write(struct mxr_device *mdev, u32 reg_id, u32 val) in vp_write() argument
29 writel(val, mdev->res.vp_regs + reg_id); in vp_write()
32 static inline void vp_write_mask(struct mxr_device *mdev, u32 reg_id, in vp_write_mask() argument
35 u32 old = vp_read(mdev, reg_id); in vp_write_mask()
38 writel(val, mdev->res.vp_regs + reg_id); in vp_write_mask()
41 static inline u32 mxr_read(struct mxr_device *mdev, u32 reg_id) in mxr_read() argument
43 return readl(mdev->res.mxr_regs + reg_id); in mxr_read()
46 static inline void mxr_write(struct mxr_device *mdev, u32 reg_id, u32 val) in mxr_write() argument
[all …]
Dmixer.h155 struct mxr_device *mdev; member
278 static inline struct mxr_output *to_output(struct mxr_device *mdev) in to_output() argument
280 return mdev->output[mdev->current_output]; in to_output()
284 static inline struct v4l2_subdev *to_outsd(struct mxr_device *mdev) in to_outsd() argument
286 struct mxr_output *out = to_output(mdev); in to_outsd()
294 int mxr_acquire_video(struct mxr_device *mdev,
298 void mxr_release_video(struct mxr_device *mdev);
300 struct mxr_layer *mxr_graph_layer_create(struct mxr_device *mdev, int idx);
301 struct mxr_layer *mxr_vp_layer_create(struct mxr_device *mdev, int idx);
302 struct mxr_layer *mxr_base_layer_create(struct mxr_device *mdev,
[all …]
Dmixer_video.c36 struct mxr_device *mdev, char *module_name) in find_and_register_subdev() argument
45 mxr_warn(mdev, "module %s is missing\n", module_name); in find_and_register_subdev()
52 mxr_warn(mdev, "module %s provides no subdev!\n", module_name); in find_and_register_subdev()
56 ret = v4l2_device_register_subdev(&mdev->v4l2_dev, sd); in find_and_register_subdev()
58 mxr_warn(mdev, "failed to register subdev %s\n", sd->name); in find_and_register_subdev()
66 int mxr_acquire_video(struct mxr_device *mdev, in mxr_acquire_video() argument
69 struct device *dev = mdev->dev; in mxr_acquire_video()
70 struct v4l2_device *v4l2_dev = &mdev->v4l2_dev; in mxr_acquire_video()
75 strlcpy(v4l2_dev->name, dev_name(mdev->dev), sizeof(v4l2_dev->name)); in mxr_acquire_video()
79 mxr_err(mdev, "could not register v4l2 device.\n"); in mxr_acquire_video()
[all …]
Dmixer_vp_layer.c97 mxr_reg_vp_buffer(layer->mdev, luma_addr, chroma_addr); in mxr_vp_buffer_set()
118 mxr_reg_vp_buffer(layer->mdev, luma_addr, chroma_addr); in mxr_vp_buffer_set()
123 mxr_reg_vp_layer_stream(layer->mdev, en); in mxr_vp_stream_set()
128 mxr_reg_vp_format(layer->mdev, layer->fmt, &layer->geo); in mxr_vp_format_set()
206 struct mxr_layer *mxr_vp_layer_create(struct mxr_device *mdev, int idx) in mxr_vp_layer_create() argument
221 layer = mxr_base_layer_create(mdev, idx, name, &ops); in mxr_vp_layer_create()
223 mxr_err(mdev, "failed to initialize layer(%d) base\n", idx); in mxr_vp_layer_create()
Dmixer_grp_layer.c90 mxr_reg_graph_buffer(layer->mdev, layer->idx, addr); in mxr_graph_buffer_set()
95 mxr_reg_graph_layer_stream(layer->mdev, layer->idx, en); in mxr_graph_stream_set()
100 mxr_reg_graph_format(layer->mdev, layer->idx, in mxr_graph_format_set()
234 struct mxr_layer *mxr_graph_layer_create(struct mxr_device *mdev, int idx) in mxr_graph_layer_create() argument
249 layer = mxr_base_layer_create(mdev, idx, name, &ops); in mxr_graph_layer_create()
251 mxr_err(mdev, "failed to initialize layer(%d) base\n", idx); in mxr_graph_layer_create()
/linux-4.4.14/drivers/misc/mic/host/
Dmic_main.c73 static int mic_dp_init(struct mic_device *mdev) in mic_dp_init() argument
75 mdev->dp = kzalloc(MIC_DP_SIZE, GFP_KERNEL); in mic_dp_init()
76 if (!mdev->dp) in mic_dp_init()
79 mdev->dp_dma_addr = mic_map_single(mdev, in mic_dp_init()
80 mdev->dp, MIC_DP_SIZE); in mic_dp_init()
81 if (mic_map_error(mdev->dp_dma_addr)) { in mic_dp_init()
82 kfree(mdev->dp); in mic_dp_init()
83 dev_err(&mdev->pdev->dev, "%s %d err %d\n", in mic_dp_init()
87 mdev->ops->write_spad(mdev, MIC_DPLO_SPAD, mdev->dp_dma_addr); in mic_dp_init()
88 mdev->ops->write_spad(mdev, MIC_DPHI_SPAD, mdev->dp_dma_addr >> 32); in mic_dp_init()
[all …]
Dmic_intr.c29 struct mic_device *mdev = dev; in mic_thread_fn() local
30 struct mic_intr_info *intr_info = mdev->intr_info; in mic_thread_fn()
31 struct mic_irq_info *irq_info = &mdev->irq_info; in mic_thread_fn()
33 struct pci_dev *pdev = mdev->pdev; in mic_thread_fn()
55 struct mic_device *mdev = dev; in mic_interrupt() local
56 struct mic_intr_info *intr_info = mdev->intr_info; in mic_interrupt()
57 struct mic_irq_info *irq_info = &mdev->irq_info; in mic_interrupt()
59 struct pci_dev *pdev = mdev->pdev; in mic_interrupt()
63 mask = mdev->ops->ack_interrupt(mdev); in mic_interrupt()
83 static u16 mic_map_src_to_offset(struct mic_device *mdev, in mic_map_src_to_offset() argument
[all …]
Dmic_x100.c44 mic_x100_write_spad(struct mic_device *mdev, unsigned int idx, u32 val) in mic_x100_write_spad() argument
46 dev_dbg(&mdev->pdev->dev, "Writing 0x%x to scratch pad index %d\n", in mic_x100_write_spad()
48 mic_mmio_write(&mdev->mmio, val, in mic_x100_write_spad()
63 mic_x100_read_spad(struct mic_device *mdev, unsigned int idx) in mic_x100_read_spad() argument
65 u32 val = mic_mmio_read(&mdev->mmio, in mic_x100_read_spad()
69 dev_dbg(&mdev->pdev->dev, in mic_x100_read_spad()
78 static void mic_x100_enable_interrupts(struct mic_device *mdev) in mic_x100_enable_interrupts() argument
81 struct mic_mw *mw = &mdev->mmio; in mic_x100_enable_interrupts()
93 if (mdev->irq_info.num_vectors > 1) { in mic_x100_enable_interrupts()
105 static void mic_x100_disable_interrupts(struct mic_device *mdev) in mic_x100_disable_interrupts() argument
[all …]
Dmic_boot.c43 struct mic_device *mdev = scdev_to_mdev(scdev); in __mic_dma_alloc() local
48 tmp = mic_map_single(mdev, va, size); in __mic_dma_alloc()
63 struct mic_device *mdev = scdev_to_mdev(scdev); in __mic_dma_free() local
65 mic_unmap_single(mdev, dma_handle, size); in __mic_dma_free()
76 struct mic_device *mdev = scdev_to_mdev(scdev); in __mic_dma_map_page() local
78 return mic_map_single(mdev, va, size); in __mic_dma_map_page()
87 struct mic_device *mdev = scdev_to_mdev(scdev); in __mic_dma_unmap_page() local
89 mic_unmap_single(mdev, dma_addr, size); in __mic_dma_unmap_page()
97 struct mic_device *mdev = scdev_to_mdev(scdev); in __mic_dma_map_sg() local
102 ret = dma_map_sg(&mdev->pdev->dev, sg, nents, dir); in __mic_dma_map_sg()
[all …]
Dmic_smpt.c27 static inline u64 mic_system_page_mask(struct mic_device *mdev) in mic_system_page_mask() argument
29 return (1ULL << mdev->smpt->info.page_shift) - 1ULL; in mic_system_page_mask()
32 static inline u8 mic_sys_addr_to_smpt(struct mic_device *mdev, dma_addr_t pa) in mic_sys_addr_to_smpt() argument
34 return (pa - mdev->smpt->info.base) >> mdev->smpt->info.page_shift; in mic_sys_addr_to_smpt()
37 static inline u64 mic_smpt_to_pa(struct mic_device *mdev, u8 index) in mic_smpt_to_pa() argument
39 return mdev->smpt->info.base + (index * mdev->smpt->info.page_size); in mic_smpt_to_pa()
42 static inline u64 mic_smpt_offset(struct mic_device *mdev, dma_addr_t pa) in mic_smpt_offset() argument
44 return pa & mic_system_page_mask(mdev); in mic_smpt_offset()
47 static inline u64 mic_smpt_align_low(struct mic_device *mdev, dma_addr_t pa) in mic_smpt_align_low() argument
49 return ALIGN(pa - mic_system_page_mask(mdev), in mic_smpt_align_low()
[all …]
Dmic_debugfs.c37 struct mic_device *mdev = s->private; in mic_smpt_show() local
41 mdev->id, "SMPT entry", "SW DMA addr", "RefCount"); in mic_smpt_show()
44 if (mdev->smpt) { in mic_smpt_show()
45 struct mic_smpt_info *smpt_info = mdev->smpt; in mic_smpt_show()
78 struct mic_device *mdev = s->private; in mic_post_code_show() local
79 u32 reg = mdev->ops->get_postcode(mdev); in mic_post_code_show()
105 struct mic_device *mdev = s->private; in mic_dp_show() local
111 struct mic_bootparam *bootparam = mdev->dp; in mic_dp_show()
132 d = mdev->dp + i; in mic_dp_show()
200 struct mic_device *mdev = s->private; in mic_vdev_info_show() local
[all …]
Dmic_intr.h129 void (*intr_init)(struct mic_device *mdev);
130 void (*enable_interrupts)(struct mic_device *mdev);
131 void (*disable_interrupts)(struct mic_device *mdev);
132 void (*program_msi_to_src_map) (struct mic_device *mdev,
134 u32 (*read_msi_to_src_map) (struct mic_device *mdev,
138 int mic_next_db(struct mic_device *mdev);
140 mic_request_threaded_irq(struct mic_device *mdev,
144 void mic_free_irq(struct mic_device *mdev,
146 int mic_setup_interrupts(struct mic_device *mdev, struct pci_dev *pdev);
147 void mic_free_interrupts(struct mic_device *mdev, struct pci_dev *pdev);
[all …]
Dmic_virtio.c37 static int mic_sync_dma(struct mic_device *mdev, dma_addr_t dst, in mic_sync_dma() argument
42 struct dma_chan *mic_ch = mdev->dma_ch[0]; in mic_sync_dma()
64 dev_err(&mdev->pdev->dev, "%s %d err %d\n", in mic_sync_dma()
79 struct mic_device *mdev = mvdev->mdev; in mic_virtio_copy_to_user() local
80 void __iomem *dbuf = mdev->aper.va + daddr; in mic_virtio_copy_to_user()
82 size_t dma_alignment = 1 << mdev->dma_ch[0]->device->copy_align; in mic_virtio_copy_to_user()
94 err = mic_sync_dma(mdev, mvr->buf_da, daddr, in mic_virtio_copy_to_user()
128 struct mic_device *mdev = mvdev->mdev; in mic_virtio_copy_from_user() local
129 void __iomem *dbuf = mdev->aper.va + daddr; in mic_virtio_copy_from_user()
131 size_t dma_alignment = 1 << mdev->dma_ch[0]->device->copy_align; in mic_virtio_copy_from_user()
[all …]
Dmic_device.h127 u32 (*read_spad)(struct mic_device *mdev, unsigned int idx);
128 void (*write_spad)(struct mic_device *mdev, unsigned int idx, u32 val);
129 void (*send_intr)(struct mic_device *mdev, int doorbell);
130 u32 (*ack_interrupt)(struct mic_device *mdev);
131 void (*intr_workarounds)(struct mic_device *mdev);
132 void (*reset)(struct mic_device *mdev);
133 void (*reset_fw_ready)(struct mic_device *mdev);
134 bool (*is_fw_ready)(struct mic_device *mdev);
135 void (*send_firmware_intr)(struct mic_device *mdev);
136 int (*load_mic_fw)(struct mic_device *mdev, const char *buf);
[all …]
Dmic_smpt.h29 void (*init)(struct mic_device *mdev);
30 void (*set)(struct mic_device *mdev, dma_addr_t dma_addr, u8 index);
75 dma_addr_t mic_map_single(struct mic_device *mdev, void *va, size_t size);
76 void mic_unmap_single(struct mic_device *mdev,
78 dma_addr_t mic_map(struct mic_device *mdev,
80 void mic_unmap(struct mic_device *mdev, dma_addr_t mic_addr, size_t size);
81 dma_addr_t mic_to_dma_addr(struct mic_device *mdev, dma_addr_t mic_addr);
95 int mic_smpt_init(struct mic_device *mdev);
96 void mic_smpt_uninit(struct mic_device *mdev);
97 void mic_smpt_restore(struct mic_device *mdev);
Dmic_virtio.h96 struct mic_device *mdev; member
113 void mic_virtio_uninit(struct mic_device *mdev);
121 void mic_virtio_reset_devices(struct mic_device *mdev);
127 return &mvdev->mdev->pdev->dev; in mic_dev()
Dmic_fops.c33 struct mic_device *mdev = container_of(f->private_data, in mic_open() local
42 mvdev->mdev = mdev; in mic_open()
158 struct mic_device *mdev = mvdev->mdev; in mic_query_offset() local
171 *pa = virt_to_phys(mdev->dp); in mic_query_offset()
/linux-4.4.14/drivers/sh/maple/
Dmaple.c139 struct maple_device *mdev; in maple_release_device() local
142 mdev = to_maple_dev(dev); in maple_release_device()
143 mq = mdev->mq; in maple_release_device()
146 kfree(mdev); in maple_release_device()
157 int maple_add_packet(struct maple_device *mdev, u32 function, u32 command, in maple_add_packet() argument
172 mdev->mq->command = command; in maple_add_packet()
173 mdev->mq->length = length; in maple_add_packet()
176 mdev->mq->sendbuf = sendbuf; in maple_add_packet()
179 list_add_tail(&mdev->mq->list, &maple_waitq); in maple_add_packet()
186 static struct mapleq *maple_allocq(struct maple_device *mdev) in maple_allocq() argument
[all …]
/linux-4.4.14/drivers/staging/most/aim-v4l2/
Dvideo.c58 struct most_video_dev *mdev; member
65 static inline bool data_ready(struct most_video_dev *mdev) in data_ready() argument
67 return !list_empty(&mdev->pending_mbos); in data_ready()
70 static inline struct mbo *get_top_mbo(struct most_video_dev *mdev) in get_top_mbo() argument
72 return list_first_entry(&mdev->pending_mbos, struct mbo, list); in get_top_mbo()
79 struct most_video_dev *mdev = video_drvdata(filp); in aim_vdev_open() local
95 if (!atomic_inc_and_test(&mdev->access_ref)) { in aim_vdev_open()
101 fh->mdev = mdev; in aim_vdev_open()
107 ret = most_start_channel(mdev->iface, mdev->ch_idx, &aim_info); in aim_vdev_open()
120 atomic_dec(&mdev->access_ref); in aim_vdev_open()
[all …]
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_main.c96 level, DRV_NAME, dev_name(&priv->mdev->pdev->dev), in en_print()
117 if (mlx4_is_mfunc(priv->mdev->dev) && in mlx4_en_update_loopback_state()
124 if (mlx4_is_mfunc(priv->mdev->dev) || priv->validate_loopback) in mlx4_en_update_loopback_state()
127 mutex_lock(&priv->mdev->state_lock); in mlx4_en_update_loopback_state()
128 if (priv->mdev->dev->caps.flags2 & in mlx4_en_update_loopback_state()
145 mlx4_warn(priv->mdev, "failed to change mcast loopback\n"); in mlx4_en_update_loopback_state()
147 mutex_unlock(&priv->mdev->state_lock); in mlx4_en_update_loopback_state()
150 static int mlx4_en_get_profile(struct mlx4_en_dev *mdev) in mlx4_en_get_profile() argument
152 struct mlx4_en_profile *params = &mdev->profile; in mlx4_en_get_profile()
160 if (params->udp_rss && !(mdev->dev->caps.flags in mlx4_en_get_profile()
[all …]
Den_clock.c43 struct mlx4_en_dev *mdev = in mlx4_en_read_clock() local
45 struct mlx4_dev *dev = mdev->dev; in mlx4_en_read_clock()
61 void mlx4_en_fill_hwtstamps(struct mlx4_en_dev *mdev, in mlx4_en_fill_hwtstamps() argument
68 read_lock_irqsave(&mdev->clock_lock, flags); in mlx4_en_fill_hwtstamps()
69 nsec = timecounter_cyc2time(&mdev->clock, timestamp); in mlx4_en_fill_hwtstamps()
70 read_unlock_irqrestore(&mdev->clock_lock, flags); in mlx4_en_fill_hwtstamps()
82 void mlx4_en_remove_timestamp(struct mlx4_en_dev *mdev) in mlx4_en_remove_timestamp() argument
84 if (mdev->ptp_clock) { in mlx4_en_remove_timestamp()
85 ptp_clock_unregister(mdev->ptp_clock); in mlx4_en_remove_timestamp()
86 mdev->ptp_clock = NULL; in mlx4_en_remove_timestamp()
[all …]
Den_cq.c51 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_create_cq() local
65 cq->buf_size = cq->size * mdev->dev->caps.cqe_size; in mlx4_en_create_cq()
69 cq->vector = mdev->dev->caps.num_comp_vectors; in mlx4_en_create_cq()
74 set_dev_node(&mdev->dev->persist->pdev->dev, node); in mlx4_en_create_cq()
75 err = mlx4_alloc_hwq_res(mdev->dev, &cq->wqres, in mlx4_en_create_cq()
77 set_dev_node(&mdev->dev->persist->pdev->dev, mdev->dev->numa_node); in mlx4_en_create_cq()
91 mlx4_free_hwq_res(mdev->dev, &cq->wqres, cq->buf_size); in mlx4_en_create_cq()
101 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_activate_cq() local
106 cq->dev = mdev->pndev[priv->port]; in mlx4_en_activate_cq()
114 if (!mlx4_is_eq_vector_valid(mdev->dev, priv->port, in mlx4_en_activate_cq()
[all …]
Den_netdev.c196 rc = mlx4_flow_detach(priv->mdev->dev, filter->reg_id); in mlx4_en_filter_work()
201 rc = mlx4_flow_attach(priv->mdev->dev, &rule, &filter->reg_id); in mlx4_en_filter_work()
267 rc = mlx4_flow_detach(priv->mdev->dev, filter->reg_id); in mlx4_en_filter_free()
349 queue_work(priv->mdev->workqueue, &filter->work); in mlx4_en_filter_rfs()
415 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_vlan_rx_add_vid() local
424 mutex_lock(&mdev->state_lock); in mlx4_en_vlan_rx_add_vid()
425 if (mdev->device_up && priv->port_up) { in mlx4_en_vlan_rx_add_vid()
426 err = mlx4_SET_VLAN_FLTR(mdev->dev, priv); in mlx4_en_vlan_rx_add_vid()
430 if (mlx4_register_vlan(mdev->dev, priv->port, vid, &idx)) in mlx4_en_vlan_rx_add_vid()
432 mutex_unlock(&mdev->state_lock); in mlx4_en_vlan_rx_add_vid()
[all …]
Den_dcb_nl.c141 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_config_port_scheduler() local
164 return mlx4_SET_PORT_SCHEDULER(mdev->dev, priv->port, tc_tx_bw, pg, in mlx4_en_config_port_scheduler()
172 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_dcbnl_ieee_setets() local
179 err = mlx4_SET_PORT_PRIO2TC(mdev->dev, priv->port, ets->prio_tc); in mlx4_en_dcbnl_ieee_setets()
208 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_dcbnl_ieee_setpfc() local
222 err = mlx4_SET_PORT_general(mdev->dev, priv->port, in mlx4_en_dcbnl_ieee_setpfc()
231 mlx4_en_update_pfc_stats_bitmap(mdev->dev, &priv->stats_bitmap, in mlx4_en_dcbnl_ieee_setpfc()
306 if (!(priv->mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_QCN)) in mlx4_en_dcbnl_ieee_getqcn()
309 mailbox_out = mlx4_alloc_cmd_mailbox(priv->mdev->dev); in mlx4_en_dcbnl_ieee_getqcn()
319 err = mlx4_cmd_box(priv->mdev->dev, mailbox_in_dma, in mlx4_en_dcbnl_ieee_getqcn()
[all …]
Den_rx.c222 rx_desc->data[i].lkey = cpu_to_be32(priv->mdev->mr.key); in mlx4_en_init_rx_desc()
331 void mlx4_en_set_num_rx_rings(struct mlx4_en_dev *mdev) in mlx4_en_set_num_rx_rings() argument
336 struct mlx4_dev *dev = mdev->dev; in mlx4_en_set_num_rx_rings()
341 mlx4_get_eqs_per_port(mdev->dev, i), in mlx4_en_set_num_rx_rings()
347 mdev->profile.prof[i].rx_ring_num = in mlx4_en_set_num_rx_rings()
356 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_create_rx_ring() local
393 set_dev_node(&mdev->dev->persist->pdev->dev, node); in mlx4_en_create_rx_ring()
394 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, in mlx4_en_create_rx_ring()
396 set_dev_node(&mdev->dev->persist->pdev->dev, mdev->dev->numa_node); in mlx4_en_create_rx_ring()
413 mlx4_free_hwq_res(mdev->dev, &ring->wqres, ring->buf_size); in mlx4_en_create_rx_ring()
[all …]
Den_resources.c44 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_fill_qp_context() local
49 context->pd = cpu_to_be32(mdev->priv_pdn); in mlx4_en_fill_qp_context()
55 if (mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_PORT_REMAP) in mlx4_en_fill_qp_context()
61 context->usr_page = cpu_to_be32(mdev->priv_uar.index); in mlx4_en_fill_qp_context()
73 (mdev->dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_LB_SRC_CHK) && in mlx4_en_fill_qp_context()
75 MLX4_SINK_COUNTER_INDEX(mdev->dev)) { in mlx4_en_fill_qp_context()
86 (mdev->dev->caps.tunnel_offload_mode == MLX4_TUNNEL_OFFLOAD_MODE_VXLAN)) { in mlx4_en_fill_qp_context()
102 ret = mlx4_update_qp(priv->mdev->dev, qp->qpn, in mlx4_en_change_mcast_lb()
Den_ethtool.c86 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_get_drvinfo() local
93 (u16) (mdev->dev->caps.fw_ver >> 32), in mlx4_en_get_drvinfo()
94 (u16) ((mdev->dev->caps.fw_ver >> 16) & 0xffff), in mlx4_en_get_drvinfo()
95 (u16) (mdev->dev->caps.fw_ver & 0xffff)); in mlx4_en_get_drvinfo()
96 strlcpy(drvinfo->bus_info, pci_name(mdev->dev->persist->pdev), in mlx4_en_get_drvinfo()
231 if (!(priv->mdev->dev->caps.flags & mask)) { in mlx4_en_get_wol()
237 err = mlx4_wol_read(priv->mdev->dev, &config, priv->port); in mlx4_en_get_wol()
268 if (!(priv->mdev->dev->caps.flags & mask)) in mlx4_en_set_wol()
274 err = mlx4_wol_read(priv->mdev->dev, &config, priv->port); in mlx4_en_set_wol()
288 err = mlx4_wol_write(priv->mdev->dev, config, priv->port); in mlx4_en_set_wol()
[all …]
Den_selftest.c45 return mlx4_cmd(priv->mdev->dev, 0, 0, 0, MLX4_CMD_HW_HEALTH_CHECK, in mlx4_en_test_registers()
124 if (mlx4_en_QUERY_PORT(priv->mdev, priv->port)) in mlx4_en_test_link()
135 if (mlx4_en_QUERY_PORT(priv->mdev, priv->port)) in mlx4_en_test_speed()
154 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_ex_selftest() local
169 if (priv->mdev->dev->caps.flags & in mlx4_en_ex_selftest()
180 buf[0] = mlx4_test_interrupts(mdev->dev); in mlx4_en_ex_selftest()
Den_tx.c52 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_create_tx_ring() local
95 set_dev_node(&mdev->dev->persist->pdev->dev, node); in mlx4_en_create_tx_ring()
96 err = mlx4_alloc_hwq_res(mdev->dev, &ring->wqres, ring->buf_size, in mlx4_en_create_tx_ring()
98 set_dev_node(&mdev->dev->persist->pdev->dev, mdev->dev->numa_node); in mlx4_en_create_tx_ring()
116 err = mlx4_qp_reserve_range(mdev->dev, 1, 1, &ring->qpn, in mlx4_en_create_tx_ring()
123 err = mlx4_qp_alloc(mdev->dev, ring->qpn, &ring->qp, GFP_KERNEL); in mlx4_en_create_tx_ring()
130 err = mlx4_bf_alloc(mdev->dev, &ring->bf, node); in mlx4_en_create_tx_ring()
133 ring->bf.uar = &mdev->priv_uar; in mlx4_en_create_tx_ring()
134 ring->bf.uar->map = mdev->uar_map; in mlx4_en_create_tx_ring()
149 priv->mdev->dev->numa_node), in mlx4_en_create_tx_ring()
[all …]
Den_port.c72 int mlx4_en_QUERY_PORT(struct mlx4_en_dev *mdev, u8 port) in mlx4_en_QUERY_PORT() argument
75 struct mlx4_en_priv *priv = netdev_priv(mdev->pndev[port]); in mlx4_en_QUERY_PORT()
80 mailbox = mlx4_alloc_cmd_mailbox(mdev->dev); in mlx4_en_QUERY_PORT()
83 err = mlx4_cmd_box(mdev->dev, 0, mailbox->dma, port, 0, in mlx4_en_QUERY_PORT()
127 mlx4_free_cmd_mailbox(mdev->dev, mailbox); in mlx4_en_QUERY_PORT()
150 int mlx4_en_DUMP_ETH_STATS(struct mlx4_en_dev *mdev, u8 port, u8 reset) in mlx4_en_DUMP_ETH_STATS() argument
155 struct mlx4_en_priv *priv = netdev_priv(mdev->pndev[port]); in mlx4_en_DUMP_ETH_STATS()
162 mailbox = mlx4_alloc_cmd_mailbox(mdev->dev); in mlx4_en_DUMP_ETH_STATS()
165 err = mlx4_cmd_box(mdev->dev, 0, mailbox->dma, in_mod, 0, in mlx4_en_DUMP_ETH_STATS()
206 if (mlx4_is_master(mdev->dev)) { in mlx4_en_DUMP_ETH_STATS()
[all …]
Dmlx4_en.h497 struct mlx4_en_dev *mdev; member
740 int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port,
779 void mlx4_en_set_num_rx_rings(struct mlx4_en_dev *mdev);
814 int mlx4_en_DUMP_ETH_STATS(struct mlx4_en_dev *mdev, u8 port, u8 reset);
815 int mlx4_en_QUERY_PORT(struct mlx4_en_dev *mdev, u8 port);
830 void mlx4_en_ptp_overflow_check(struct mlx4_en_dev *mdev);
849 void mlx4_en_fill_hwtstamps(struct mlx4_en_dev *mdev,
852 void mlx4_en_init_timestamp(struct mlx4_en_dev *mdev);
853 void mlx4_en_remove_timestamp(struct mlx4_en_dev *mdev);
881 #define mlx4_err(mdev, format, ...) \ argument
[all …]
Dmain.c1040 struct mlx4_dev *mdev = info->dev; in show_port_type() local
1044 (mdev->caps.port_type[info->port] == MLX4_PORT_TYPE_IB) ? in show_port_type()
1046 if (mdev->caps.possible_type[info->port] == MLX4_PORT_TYPE_AUTO) in show_port_type()
1060 struct mlx4_dev *mdev = info->dev; in set_port_type() local
1061 struct mlx4_priv *priv = mlx4_priv(mdev); in set_port_type()
1077 mlx4_err(mdev, "%s is not supported port type\n", buf); in set_port_type()
1082 mlx4_stop_sense(mdev); in set_port_type()
1085 mdev->caps.possible_type[info->port] = info->tmp_type; in set_port_type()
1087 for (i = 0; i < mdev->caps.num_ports; i++) { in set_port_type()
1089 mdev->caps.possible_type[i+1]; in set_port_type()
[all …]
Dmlx4.h216 #define mlx4_dbg(mdev, format, ...) \ argument
220 &(mdev)->persist->pdev->dev, format, \
224 #define mlx4_err(mdev, format, ...) \ argument
225 dev_err(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
226 #define mlx4_info(mdev, format, ...) \ argument
227 dev_info(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
228 #define mlx4_warn(mdev, format, ...) \ argument
229 dev_warn(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__)
/linux-4.4.14/sound/core/seq/oss/
Dseq_oss_midi.c69 …t send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_midi *mdev);
108 struct seq_oss_midi *mdev; in get_mdev() local
112 mdev = midi_devs[dev]; in get_mdev()
113 if (mdev) in get_mdev()
114 snd_use_lock_use(&mdev->use_lock); in get_mdev()
116 return mdev; in get_mdev()
126 struct seq_oss_midi *mdev; in find_slot() local
131 mdev = midi_devs[i]; in find_slot()
132 if (mdev && mdev->client == client && mdev->port == port) { in find_slot()
134 snd_use_lock_use(&mdev->use_lock); in find_slot()
[all …]
/linux-4.4.14/drivers/mtd/maps/
Dvmu-flash.c26 struct maple_device *mdev; member
62 struct maple_device *mdev; in ofs_to_block() local
68 mdev = mpart->mdev; in ofs_to_block()
69 card = maple_get_drvdata(mdev); in ofs_to_block()
93 struct maple_device *mdev; in vmu_blockread() local
96 mdev = mq->dev; in vmu_blockread()
97 card = maple_get_drvdata(mdev); in vmu_blockread()
116 struct maple_device *mdev; in maple_vmu_read_block() local
123 mdev = mpart->mdev; in maple_vmu_read_block()
125 card = maple_get_drvdata(mdev); in maple_vmu_read_block()
[all …]
/linux-4.4.14/drivers/media/
Dmedia-devnode.c62 struct media_devnode *mdev = to_media_devnode(cd); in media_devnode_release() local
67 cdev_del(&mdev->cdev); in media_devnode_release()
70 clear_bit(mdev->minor, media_devnode_nums); in media_devnode_release()
75 if (mdev->release) in media_devnode_release()
76 mdev->release(mdev); in media_devnode_release()
86 struct media_devnode *mdev = media_devnode_data(filp); in media_read() local
88 if (!mdev->fops->read) in media_read()
90 if (!media_devnode_is_registered(mdev)) in media_read()
92 return mdev->fops->read(filp, buf, sz, off); in media_read()
98 struct media_devnode *mdev = media_devnode_data(filp); in media_write() local
[all …]
Dmedia-device.c68 static struct media_entity *find_entity(struct media_device *mdev, u32 id) in find_entity() argument
75 spin_lock(&mdev->lock); in find_entity()
77 media_device_for_each_entity(entity, mdev) { in find_entity()
80 spin_unlock(&mdev->lock); in find_entity()
85 spin_unlock(&mdev->lock); in find_entity()
90 static long media_device_enum_entities(struct media_device *mdev, in media_device_enum_entities() argument
100 ent = find_entity(mdev, u_ent.id); in media_device_enum_entities()
128 static long __media_device_enum_links(struct media_device *mdev, in __media_device_enum_links() argument
133 entity = find_entity(mdev, links->entity); in __media_device_enum_links()
176 static long media_device_enum_links(struct media_device *mdev, in media_device_enum_links() argument
[all …]
Dmedia-entity.c228 struct media_device *mdev = entity->parent; in media_entity_pipeline_start() local
233 mutex_lock(&mdev->graph_mutex); in media_entity_pipeline_start()
306 mutex_unlock(&mdev->graph_mutex); in media_entity_pipeline_start()
330 mutex_unlock(&mdev->graph_mutex); in media_entity_pipeline_start()
350 struct media_device *mdev = entity->parent; in media_entity_pipeline_stop() local
353 mutex_lock(&mdev->graph_mutex); in media_entity_pipeline_stop()
363 mutex_unlock(&mdev->graph_mutex); in media_entity_pipeline_stop()
569 struct media_device *mdev; in __media_entity_setup_link() local
593 mdev = source->parent; in __media_entity_setup_link()
595 if (mdev->link_notify) { in __media_entity_setup_link()
[all …]
/linux-4.4.14/drivers/staging/most/hdm-usb/
Dhdm_usb.c197 static void free_anchored_buffers(struct most_dev *mdev, unsigned int channel) in free_anchored_buffers() argument
203 spin_lock_irqsave(&mdev->anchor_list_lock[channel], flags); in free_anchored_buffers()
204 list_for_each_entry_safe(anchor, tmp, &mdev->anchor_list[channel], in free_anchored_buffers()
208 spin_unlock_irqrestore(&mdev->anchor_list_lock[channel], flags); in free_anchored_buffers()
224 spin_lock_irqsave(&mdev->anchor_list_lock[channel], flags); in free_anchored_buffers()
228 spin_unlock_irqrestore(&mdev->anchor_list_lock[channel], flags); in free_anchored_buffers()
278 struct most_dev *mdev; in hdm_poison_channel() local
280 mdev = to_mdev(iface); in hdm_poison_channel()
282 dev_warn(&mdev->usb_device->dev, "Poison: Bad interface.\n"); in hdm_poison_channel()
286 dev_warn(&mdev->usb_device->dev, "Channel ID out of range.\n"); in hdm_poison_channel()
[all …]
/linux-4.4.14/drivers/gpu/drm/mgag200/
Dmgag200_main.c79 static int mga_probe_vram(struct mga_device *mdev, void __iomem *mem) in mga_probe_vram() argument
91 vram_size = mdev->mc.vram_window; in mga_probe_vram()
93 if ((mdev->type == G200_EW3) && (vram_size >= 0x1000000)) { in mga_probe_vram()
124 static int mga_vram_init(struct mga_device *mdev) in mga_vram_init() argument
132 mdev->mc.vram_base = pci_resource_start(mdev->dev->pdev, 0); in mga_vram_init()
133 mdev->mc.vram_window = pci_resource_len(mdev->dev->pdev, 0); in mga_vram_init()
135 aper->ranges[0].base = mdev->mc.vram_base; in mga_vram_init()
136 aper->ranges[0].size = mdev->mc.vram_window; in mga_vram_init()
141 if (!devm_request_mem_region(mdev->dev->dev, mdev->mc.vram_base, mdev->mc.vram_window, in mga_vram_init()
147 mem = pci_iomap(mdev->dev->pdev, 0, 0); in mga_vram_init()
[all …]
Dmgag200_cursor.c21 static void mga_hide_cursor(struct mga_device *mdev) in mga_hide_cursor() argument
25 if (mdev->cursor.pixels_1->pin_count) in mga_hide_cursor()
26 mgag200_bo_unpin(mdev->cursor.pixels_1); in mga_hide_cursor()
27 if (mdev->cursor.pixels_2->pin_count) in mga_hide_cursor()
28 mgag200_bo_unpin(mdev->cursor.pixels_2); in mga_hide_cursor()
38 struct mga_device *mdev = (struct mga_device *)dev->dev_private; in mga_crtc_cursor_set() local
39 struct mgag200_bo *pixels_1 = mdev->cursor.pixels_1; in mga_crtc_cursor_set()
40 struct mgag200_bo *pixels_2 = mdev->cursor.pixels_2; in mga_crtc_cursor_set()
41 struct mgag200_bo *pixels_current = mdev->cursor.pixels_current; in mga_crtc_cursor_set()
42 struct mgag200_bo *pixels_prev = mdev->cursor.pixels_prev; in mga_crtc_cursor_set()
[all …]
Dmgag200_i2c.c35 static int mga_i2c_read_gpio(struct mga_device *mdev) in mga_i2c_read_gpio() argument
41 static void mga_i2c_set_gpio(struct mga_device *mdev, int mask, int val) in mga_i2c_set_gpio() argument
51 static inline void mga_i2c_set(struct mga_device *mdev, int mask, int state) in mga_i2c_set() argument
57 mga_i2c_set_gpio(mdev, ~mask, state); in mga_i2c_set()
63 struct mga_device *mdev = i2c->dev->dev_private; in mga_gpio_setsda() local
64 mga_i2c_set(mdev, i2c->data, state); in mga_gpio_setsda()
70 struct mga_device *mdev = i2c->dev->dev_private; in mga_gpio_setscl() local
71 mga_i2c_set(mdev, i2c->clock, state); in mga_gpio_setscl()
77 struct mga_device *mdev = i2c->dev->dev_private; in mga_gpio_getsda() local
78 return (mga_i2c_read_gpio(mdev) & i2c->data) ? 1 : 0; in mga_gpio_getsda()
[all …]
Dmgag200_mode.c32 struct mga_device *mdev = dev->dev_private; in mga_crtc_load_lut() local
71 static inline void mga_wait_vsync(struct mga_device *mdev) in mga_wait_vsync() argument
86 static inline void mga_wait_busy(struct mga_device *mdev) in mga_wait_busy() argument
109 static int mga_g200se_set_plls(struct mga_device *mdev, long clock) in mga_g200se_set_plls() argument
120 if (mdev->unique_rev_id <= 0x03) { in mga_g200se_set_plls()
220 static int mga_g200wb_set_plls(struct mga_device *mdev, long clock) in mga_g200wb_set_plls() argument
235 if (mdev->type == G200_EW3) { in mga_g200wb_set_plls()
399 static int mga_g200ev_set_plls(struct mga_device *mdev, long clock) in mga_g200ev_set_plls() argument
492 static int mga_g200eh_set_plls(struct mga_device *mdev, long clock) in mga_g200eh_set_plls() argument
586 static int mga_g200er_set_plls(struct mga_device *mdev, long clock) in mga_g200er_set_plls() argument
[all …]
Dmgag200_ttm.c160 struct mga_device *mdev = mgag200_bdev(bdev); in mgag200_ttm_io_mem_reserve() local
175 mem->bus.base = pci_resource_start(mdev->dev->pdev, 0); in mgag200_ttm_io_mem_reserve()
250 int mgag200_mm_init(struct mga_device *mdev) in mgag200_mm_init() argument
253 struct drm_device *dev = mdev->dev; in mgag200_mm_init()
254 struct ttm_bo_device *bdev = &mdev->ttm.bdev; in mgag200_mm_init()
256 ret = mgag200_ttm_global_init(mdev); in mgag200_mm_init()
260 ret = ttm_bo_device_init(&mdev->ttm.bdev, in mgag200_mm_init()
261 mdev->ttm.bo_global_ref.ref.object, in mgag200_mm_init()
271 ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM, mdev->mc.vram_size >> PAGE_SHIFT); in mgag200_mm_init()
277 mdev->fb_mtrr = arch_phys_wc_add(pci_resource_start(dev->pdev, 0), in mgag200_mm_init()
[all …]
Dmgag200_fb.c165 struct mga_device *mdev = dev->dev_private; in mgag200fb_create() local
217 info->apertures->ranges[0].base = mdev->dev->mode_config.fb_base; in mgag200fb_create()
218 info->apertures->ranges[0].size = mdev->mc.vram_size; in mgag200fb_create()
269 int mgag200_fbdev_init(struct mga_device *mdev) in mgag200_fbdev_init() argument
276 if (IS_G200_SE(mdev) && mdev->mc.vram_size < (2048*1024)) in mgag200_fbdev_init()
279 mfbdev = devm_kzalloc(mdev->dev->dev, sizeof(struct mga_fbdev), GFP_KERNEL); in mgag200_fbdev_init()
283 mdev->mfbdev = mfbdev; in mgag200_fbdev_init()
286 drm_fb_helper_prepare(mdev->dev, &mfbdev->helper, &mga_fb_helper_funcs); in mgag200_fbdev_init()
288 ret = drm_fb_helper_init(mdev->dev, &mfbdev->helper, in mgag200_fbdev_init()
289 mdev->num_crtc, MGAG200FB_CONN_LIMIT); in mgag200_fbdev_init()
[all …]
Dmgag200_drv.h44 #define RREG8(reg) ioread8(((void __iomem *)mdev->rmmio) + (reg))
45 #define WREG8(reg, v) iowrite8(v, ((void __iomem *)mdev->rmmio) + (reg))
46 #define RREG32(reg) ioread32(((void __iomem *)mdev->rmmio) + (reg))
47 #define WREG32(reg, v) iowrite32(v, ((void __iomem *)mdev->rmmio) + (reg))
186 #define IS_G200_SE(mdev) (mdev->type == G200_SE_A || mdev->type == G200_SE_B) argument
245 int mgag200_modeset_init(struct mga_device *mdev);
246 void mgag200_modeset_fini(struct mga_device *mdev);
249 int mgag200_fbdev_init(struct mga_device *mdev);
250 void mgag200_fbdev_fini(struct mga_device *mdev);
300 int mgag200_mm_init(struct mga_device *mdev);
[all …]
/linux-4.4.14/drivers/mailbox/
Dmailbox-sti.c40 #define MBOX_BASE(mdev, inst) ((mdev)->base + ((inst) * 4)) argument
85 struct sti_mbox_device *mdev; member
93 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_channel_is_enabled() local
97 return mdev->enabled[instance] & BIT(channel); in sti_mbox_channel_is_enabled()
126 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_enable_channel() local
130 void __iomem *base = MBOX_BASE(mdev, instance); in sti_mbox_enable_channel()
132 spin_lock_irqsave(&mdev->lock, flags); in sti_mbox_enable_channel()
133 mdev->enabled[instance] |= BIT(channel); in sti_mbox_enable_channel()
135 spin_unlock_irqrestore(&mdev->lock, flags); in sti_mbox_enable_channel()
141 struct sti_mbox_device *mdev = chan_info->mdev; in sti_mbox_disable_channel() local
[all …]
Domap-mailbox.c145 unsigned int mbox_read_reg(struct omap_mbox_device *mdev, size_t ofs) in mbox_read_reg() argument
147 return __raw_readl(mdev->mbox_base + ofs); in mbox_read_reg()
151 void mbox_write_reg(struct omap_mbox_device *mdev, u32 val, size_t ofs) in mbox_write_reg() argument
153 __raw_writel(val, mdev->mbox_base + ofs); in mbox_write_reg()
445 static struct omap_mbox *omap_mbox_device_find(struct omap_mbox_device *mdev, in omap_mbox_device_find() argument
449 struct omap_mbox **mboxes = mdev->mboxes; in omap_mbox_device_find()
469 struct omap_mbox_device *mdev; in omap_mbox_request_channel() local
484 list_for_each_entry(mdev, &omap_mbox_devices, elem) { in omap_mbox_request_channel()
485 mbox = omap_mbox_device_find(mdev, chan_name); in omap_mbox_request_channel()
516 static int omap_mbox_register(struct omap_mbox_device *mdev) in omap_mbox_register() argument
[all …]
/linux-4.4.14/drivers/w1/masters/
Dmxc_w1.c101 struct mxc_w1_device *mdev; in mxc_w1_probe() local
107 mdev = devm_kzalloc(&pdev->dev, sizeof(struct mxc_w1_device), in mxc_w1_probe()
109 if (!mdev) in mxc_w1_probe()
112 mdev->clk = devm_clk_get(&pdev->dev, NULL); in mxc_w1_probe()
113 if (IS_ERR(mdev->clk)) in mxc_w1_probe()
114 return PTR_ERR(mdev->clk); in mxc_w1_probe()
116 clkrate = clk_get_rate(mdev->clk); in mxc_w1_probe()
128 mdev->regs = devm_ioremap_resource(&pdev->dev, res); in mxc_w1_probe()
129 if (IS_ERR(mdev->regs)) in mxc_w1_probe()
130 return PTR_ERR(mdev->regs); in mxc_w1_probe()
[all …]
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Dwq.c67 int mlx5_wq_cyc_create(struct mlx5_core_dev *mdev, struct mlx5_wq_param *param, in mlx5_wq_cyc_create() argument
76 err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); in mlx5_wq_cyc_create()
78 mlx5_core_warn(mdev, "mlx5_db_alloc() failed, %d\n", err); in mlx5_wq_cyc_create()
82 err = mlx5_buf_alloc_node(mdev, mlx5_wq_cyc_get_byte_size(wq), in mlx5_wq_cyc_create()
85 mlx5_core_warn(mdev, "mlx5_buf_alloc() failed, %d\n", err); in mlx5_wq_cyc_create()
92 wq_ctrl->mdev = mdev; in mlx5_wq_cyc_create()
97 mlx5_db_free(mdev, &wq_ctrl->db); in mlx5_wq_cyc_create()
102 int mlx5_cqwq_create(struct mlx5_core_dev *mdev, struct mlx5_wq_param *param, in mlx5_cqwq_create() argument
112 err = mlx5_db_alloc_node(mdev, &wq_ctrl->db, param->db_numa_node); in mlx5_cqwq_create()
114 mlx5_core_warn(mdev, "mlx5_db_alloc() failed, %d\n", err); in mlx5_cqwq_create()
[all …]
Den_main.c62 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_update_carrier() local
65 port_state = mlx5_query_vport_state(mdev, in mlx5e_update_carrier()
87 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_update_pport_counters() local
101 mlx5_core_access_reg(mdev, in, sz, out, in mlx5e_update_pport_counters()
108 mlx5_core_access_reg(mdev, in, sz, out, in mlx5e_update_pport_counters()
115 mlx5_core_access_reg(mdev, in, sz, out, in mlx5e_update_pport_counters()
128 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_update_stats() local
185 if (mlx5_cmd_exec(mdev, in, sizeof(in), out, outlen)) in mlx5e_update_stats()
283 static void mlx5e_async_event(struct mlx5_core_dev *mdev, void *vpriv, in mlx5e_async_event() argument
314 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_create_rq() local
[all …]
Den_ethtool.c39 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_get_drvinfo() local
46 fw_rev_maj(mdev), fw_rev_min(mdev), fw_rev_sub(mdev)); in mlx5e_get_drvinfo()
47 strlcpy(drvinfo->bus_info, pci_name(mdev->pdev), in mlx5e_get_drvinfo()
349 ch->max_combined = mlx5e_get_max_num_channels(priv->mdev); in mlx5e_get_channels()
357 int ncv = mlx5e_get_max_num_channels(priv->mdev); in mlx5e_set_channels()
414 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_set_coalesce() local
428 mlx5_core_modify_cq_moderation(mdev, in mlx5e_set_coalesce()
434 mlx5_core_modify_cq_moderation(mdev, &c->rq.cq.mcq, in mlx5e_set_coalesce()
559 struct mlx5_core_dev *mdev = priv->mdev; in mlx5e_get_settings() local
567 err = mlx5_query_port_ptys(mdev, out, sizeof(out), MLX5_PTYS_EN, 1); in mlx5e_get_settings()
[all …]
Duar.c229 int mlx5_alloc_map_uar(struct mlx5_core_dev *mdev, struct mlx5_uar *uar) in mlx5_alloc_map_uar() argument
235 err = mlx5_cmd_alloc_uar(mdev, &uar->index); in mlx5_alloc_map_uar()
237 mlx5_core_warn(mdev, "mlx5_cmd_alloc_uar() failed, %d\n", err); in mlx5_alloc_map_uar()
241 uar_bar_start = pci_resource_start(mdev->pdev, 0); in mlx5_alloc_map_uar()
245 mlx5_core_warn(mdev, "ioremap() failed, %d\n", err); in mlx5_alloc_map_uar()
250 if (mdev->priv.bf_mapping) in mlx5_alloc_map_uar()
251 uar->bf_map = io_mapping_map_wc(mdev->priv.bf_mapping, in mlx5_alloc_map_uar()
257 mlx5_cmd_free_uar(mdev, uar->index); in mlx5_alloc_map_uar()
263 void mlx5_unmap_free_uar(struct mlx5_core_dev *mdev, struct mlx5_uar *uar) in mlx5_unmap_free_uar() argument
267 mlx5_cmd_free_uar(mdev, uar->index); in mlx5_unmap_free_uar()
Dwq.h45 struct mlx5_core_dev *mdev; member
77 int mlx5_wq_cyc_create(struct mlx5_core_dev *mdev, struct mlx5_wq_param *param,
82 int mlx5_cqwq_create(struct mlx5_core_dev *mdev, struct mlx5_wq_param *param,
87 int mlx5_wq_ll_create(struct mlx5_core_dev *mdev, struct mlx5_wq_param *param,
Dmain.c503 static int mlx5_irq_set_affinity_hint(struct mlx5_core_dev *mdev, int i) in mlx5_irq_set_affinity_hint() argument
505 struct mlx5_priv *priv = &mdev->priv; in mlx5_irq_set_affinity_hint()
512 mlx5_core_warn(mdev, "zalloc_cpumask_var failed"); in mlx5_irq_set_affinity_hint()
521 mlx5_core_warn(mdev, "irq_set_affinity_hint failed,irq 0x%.4x", in mlx5_irq_set_affinity_hint()
533 static void mlx5_irq_clear_affinity_hint(struct mlx5_core_dev *mdev, int i) in mlx5_irq_clear_affinity_hint() argument
535 struct mlx5_priv *priv = &mdev->priv; in mlx5_irq_clear_affinity_hint()
543 static int mlx5_irq_set_affinity_hints(struct mlx5_core_dev *mdev) in mlx5_irq_set_affinity_hints() argument
548 for (i = 0; i < mdev->priv.eq_table.num_comp_vectors; i++) { in mlx5_irq_set_affinity_hints()
549 err = mlx5_irq_set_affinity_hint(mdev, i); in mlx5_irq_set_affinity_hints()
558 mlx5_irq_clear_affinity_hint(mdev, i); in mlx5_irq_set_affinity_hints()
[all …]
Dvport.c39 u8 mlx5_query_vport_state(struct mlx5_core_dev *mdev, u8 opmod) in mlx5_query_vport_state() argument
51 err = mlx5_cmd_exec_check_status(mdev, in, sizeof(in), out, in mlx5_query_vport_state()
54 mlx5_core_warn(mdev, "MLX5_CMD_OP_QUERY_VPORT_STATE failed\n"); in mlx5_query_vport_state()
60 void mlx5_query_nic_vport_mac_address(struct mlx5_core_dev *mdev, u8 *addr) in mlx5_query_nic_vport_mac_address() argument
80 mlx5_cmd_exec_check_status(mdev, in, sizeof(in), out, outlen); in mlx5_query_nic_vport_mac_address()
Den.h509 struct mlx5_core_dev *mdev; member
626 static inline int mlx5e_get_max_num_channels(struct mlx5_core_dev *mdev) in mlx5e_get_max_num_channels() argument
628 return min_t(int, mdev->priv.eq_table.num_comp_vectors, in mlx5e_get_max_num_channels()
633 u16 mlx5e_get_max_inline_cap(struct mlx5_core_dev *mdev);
Dfw.c75 int mlx5_core_query_vendor_id(struct mlx5_core_dev *mdev, u32 *vendor_id) in mlx5_core_query_vendor_id() argument
85 err = mlx5_cmd_query_adapter(mdev, out, outlen); in mlx5_core_query_vendor_id()
Den_flow_table.c828 priv->ft.main = mlx5_create_flow_table(priv->mdev, 1, in mlx5e_create_main_flow_table()
862 priv->ft.vlan = mlx5_create_flow_table(priv->mdev, 0, in mlx5e_create_vlan_flow_table()
/linux-4.4.14/drivers/remoteproc/
Dste_modem_rproc.c21 dev_dbg(&sproc->mdev->pdev.dev, fmt, ##__VA_ARGS__)
23 dev_err(&sproc->mdev->pdev.dev, fmt, ##__VA_ARGS__)
28 struct ste_modem_device *mdev; member
183 sproc->mdev->ops.kick(sproc->mdev, vqid + SPROC_MAX_NOTIFY_ID); in sproc_kick()
187 static void sproc_kick_callback(struct ste_modem_device *mdev, int vqid) in sproc_kick_callback() argument
189 struct sproc *sproc = mdev->drv_data; in sproc_kick_callback()
216 err = sproc->mdev->ops.kick_subscribe(sproc->mdev, i); in sproc_start()
225 return sproc->mdev->ops.power(sproc->mdev, true); in sproc_start()
235 return sproc->mdev->ops.power(sproc->mdev, false); in sproc_stop()
247 struct ste_modem_device *mdev = in sproc_drv_remove() local
[all …]
/linux-4.4.14/drivers/net/wireless/orinoco/
Dairport.c28 struct macio_dev *mdev; member
36 airport_suspend(struct macio_dev *mdev, pm_message_t state) in airport_suspend() argument
38 struct orinoco_private *priv = dev_get_drvdata(&mdev->ofdev.dev); in airport_suspend()
58 macio_get_of_node(mdev), 0, 0); in airport_suspend()
64 airport_resume(struct macio_dev *mdev) in airport_resume() argument
66 struct orinoco_private *priv = dev_get_drvdata(&mdev->ofdev.dev); in airport_resume()
75 macio_get_of_node(mdev), 0, 1); in airport_resume()
88 airport_detach(struct macio_dev *mdev) in airport_detach() argument
90 struct orinoco_private *priv = dev_get_drvdata(&mdev->ofdev.dev); in airport_detach()
105 macio_release_resource(mdev, 0); in airport_detach()
[all …]
/linux-4.4.14/drivers/mcb/
Dmcb-parse.c41 struct mcb_device *mdev; in chameleon_parse_gdd() local
48 mdev = mcb_alloc_dev(bus); in chameleon_parse_gdd()
49 if (!mdev) in chameleon_parse_gdd()
57 mdev->id = GDD_DEV(reg1); in chameleon_parse_gdd()
58 mdev->rev = GDD_REV(reg1); in chameleon_parse_gdd()
59 mdev->var = GDD_VAR(reg1); in chameleon_parse_gdd()
60 mdev->bar = GDD_BAR(reg2); in chameleon_parse_gdd()
61 mdev->group = GDD_GRP(reg2); in chameleon_parse_gdd()
62 mdev->inst = GDD_INS(reg2); in chameleon_parse_gdd()
64 pr_debug("Found a 16z%03d\n", mdev->id); in chameleon_parse_gdd()
[all …]
Dmcb-core.c37 struct mcb_device *mdev = to_mcb_device(dev); in mcb_match() local
40 found_id = mcb_match_id(mdrv->id_table, mdev); in mcb_match()
49 struct mcb_device *mdev = to_mcb_device(dev); in mcb_uevent() local
52 ret = add_uevent_var(env, "MODALIAS=mcb:16z%03d", mdev->id); in mcb_uevent()
62 struct mcb_device *mdev = to_mcb_device(dev); in mcb_probe() local
65 found_id = mcb_match_id(mdrv->id_table, mdev); in mcb_probe()
69 return mdrv->probe(mdev, found_id); in mcb_probe()
75 struct mcb_device *mdev = to_mcb_device(dev); in mcb_remove() local
77 mdrv->remove(mdev); in mcb_remove()
79 put_device(&mdev->dev); in mcb_remove()
[all …]
Dmcb-pci.c24 static int mcb_pci_get_irq(struct mcb_device *mdev) in mcb_pci_get_irq() argument
26 struct mcb_bus *mbus = mdev->bus; in mcb_pci_get_irq()
/linux-4.4.14/drivers/infiniband/hw/mlx5/
Dmain.c71 switch (MLX5_CAP_GEN(dev->mdev, port_type)) { in mlx5_ib_port_link_layer()
83 return !dev->mdev->issi; in mlx5_use_mad_ifc()
108 struct mlx5_core_dev *mdev = dev->mdev; in mlx5_query_system_image_guid() local
118 err = mlx5_query_hca_vport_system_image_guid(mdev, &tmp); in mlx5_query_system_image_guid()
132 struct mlx5_core_dev *mdev = dev->mdev; in mlx5_query_max_pkeys() local
140 *max_pkeys = mlx5_to_sw_pkey_sz(MLX5_CAP_GEN(mdev, in mlx5_query_max_pkeys()
160 return mlx5_core_query_vendor_id(dev->mdev, vendor_id); in mlx5_query_vendor_id()
178 err = mlx5_query_hca_vport_node_guid(dev->mdev, &tmp); in mlx5_query_node_guid()
201 return mlx5_core_access_reg(dev->mdev, &in, sizeof(in), node_desc, in mlx5_query_node_desc()
211 struct mlx5_core_dev *mdev = dev->mdev; in mlx5_ib_query_device() local
[all …]
Dcq.c184 msrq = mlx5_core_get_srq(dev->mdev, in handle_responder()
375 mlx5_buf_free(dev->mdev, &buf->buf); in free_cq_buf()
461 mqp = __mlx5_qp_lookup(dev->mdev, qpn); in mlx5_poll_one()
525 read_lock(&dev->mdev->priv.mr_table.lock); in mlx5_poll_one()
526 mmr = __mlx5_mr_lookup(dev->mdev, in mlx5_poll_one()
529 read_unlock(&dev->mdev->priv.mr_table.lock); in mlx5_poll_one()
547 read_unlock(&dev->mdev->priv.mr_table.lock); in mlx5_poll_one()
583 struct mlx5_core_dev *mdev = to_mdev(ibcq->device)->mdev; in mlx5_ib_arm_cq() local
584 void __iomem *uar_page = mdev->priv.uuari.uars[0].map; in mlx5_ib_arm_cq()
590 MLX5_GET_DOORBELL_LOCK(&mdev->priv.cq_uar_lock), in mlx5_ib_arm_cq()
[all …]
Dsrq.c162 err = mlx5_db_alloc(dev->mdev, &srq->db); in create_srq_kernel()
168 if (mlx5_buf_alloc(dev->mdev, buf_size, &srq->buf)) { in create_srq_kernel()
213 mlx5_buf_free(dev->mdev, &srq->buf); in create_srq_kernel()
216 mlx5_db_free(dev->mdev, &srq->db); in create_srq_kernel()
230 mlx5_buf_free(dev->mdev, &srq->buf); in destroy_srq_kernel()
231 mlx5_db_free(dev->mdev, &srq->db); in destroy_srq_kernel()
247 __u32 max_srq_wqes = 1 << MLX5_CAP_GEN(dev->mdev, log_max_srq_sz); in mlx5_ib_create_srq()
305 err = mlx5_core_create_srq(dev->mdev, &srq->msrq, in, inlen, is_xrc); in mlx5_ib_create_srq()
329 mlx5_core_destroy_srq(dev->mdev, &srq->msrq); in mlx5_ib_create_srq()
359 ret = mlx5_core_arm_srq(dev->mdev, &srq->msrq, attr->srq_limit, 1); in mlx5_ib_modify_srq()
[all …]
Dmad.c57 return mlx5_core_mad_ifc(dev->mdev, in_mad, response_mad, op_modifier, port); in mlx5_MAD_IFC()
140 dev->mdev->port_caps[port - 1].ext_port_cap = (!err && !packet_error) ? in mlx5_query_ext_port_caps()
358 struct mlx5_core_dev *mdev = dev->mdev; in mlx5_query_mad_ifc_port() local
364 if (port < 1 || port > MLX5_CAP_GEN(mdev, num_ports)) { in mlx5_query_mad_ifc_port()
394 props->max_msg_sz = 1 << MLX5_CAP_GEN(mdev, log_max_msg); in mlx5_query_mad_ifc_port()
395 props->pkey_tbl_len = mdev->port_caps[port - 1].pkey_table_len; in mlx5_query_mad_ifc_port()
422 if (mdev->port_caps[port - 1].ext_port_cap & in mlx5_query_mad_ifc_port()
Dmr.c60 int err = mlx5_core_destroy_mkey(dev->mdev, &mr->mmr); in destroy_mkey()
89 struct mlx5_mr_table *table = &dev->mdev->priv.mr_table; in reg_mr_callback()
113 spin_lock_irqsave(&dev->mdev->priv.mkey_lock, flags); in reg_mr_callback()
114 key = dev->mdev->priv.mkey_key++; in reg_mr_callback()
115 spin_unlock_irqrestore(&dev->mdev->priv.mkey_lock, flags); in reg_mr_callback()
171 err = mlx5_core_create_mkey(dev->mdev, &mr->mmr, in, in add_keys()
524 cache->root = debugfs_create_dir("mr_cache", dev->mdev->priv.dbg_root); in mlx5_mr_cache_debugfs_init()
599 if (dev->mdev->profile->mask & MLX5_PROF_MASK_MR_CACHE) in mlx5_mr_cache_init()
600 limit = dev->mdev->profile->mr_cache[i].limit; in mlx5_mr_cache_init()
638 struct mlx5_core_dev *mdev = dev->mdev; in mlx5_ib_get_dma_mr() local
[all …]
Dqp.c222 if (cap->max_recv_wr > (1 << MLX5_CAP_GEN(dev->mdev, log_max_qp_sz))) in set_rq_size()
242 if (wqe_size > MLX5_CAP_GEN(dev->mdev, max_wqe_sz_rq)) { in set_rq_size()
245 MLX5_CAP_GEN(dev->mdev, in set_rq_size()
338 if (wqe_size > MLX5_CAP_GEN(dev->mdev, max_wqe_sz_sq)) { in calc_sq_size()
340 wqe_size, MLX5_CAP_GEN(dev->mdev, max_wqe_sz_sq)); in calc_sq_size()
353 if (qp->sq.wqe_cnt > (1 << MLX5_CAP_GEN(dev->mdev, log_max_qp_sz))) { in calc_sq_size()
356 1 << MLX5_CAP_GEN(dev->mdev, log_max_qp_sz)); in calc_sq_size()
373 if (desc_sz > MLX5_CAP_GEN(dev->mdev, max_wqe_sz_sq)) { in set_user_buf_size()
375 desc_sz, MLX5_CAP_GEN(dev->mdev, max_wqe_sz_sq)); in set_user_buf_size()
387 if (qp->sq.wqe_cnt > (1 << MLX5_CAP_GEN(dev->mdev, log_max_qp_sz))) { in set_user_buf_size()
[all …]
Dodp.c118 if (!MLX5_CAP_GEN(dev->mdev, pg)) in mlx5_ib_internal_fill_odp_caps()
123 if (MLX5_CAP_ODP(dev->mdev, ud_odp_caps.send)) in mlx5_ib_internal_fill_odp_caps()
126 if (MLX5_CAP_ODP(dev->mdev, rc_odp_caps.send)) in mlx5_ib_internal_fill_odp_caps()
129 if (MLX5_CAP_ODP(dev->mdev, rc_odp_caps.receive)) in mlx5_ib_internal_fill_odp_caps()
132 if (MLX5_CAP_ODP(dev->mdev, rc_odp_caps.write)) in mlx5_ib_internal_fill_odp_caps()
135 if (MLX5_CAP_ODP(dev->mdev, rc_odp_caps.read)) in mlx5_ib_internal_fill_odp_caps()
145 struct mlx5_core_mr *mmr = __mlx5_mr_lookup(dev->mdev, base_key); in mlx5_ib_odp_find_mr_lkey()
158 int ret = mlx5_core_page_fault_resume(dev->mdev, qp->mqp.qpn, in mlx5_ib_page_fault_resume()
Dmlx5_ib.h412 struct mlx5_core_dev *mdev; member
/linux-4.4.14/drivers/input/joystick/
Dmaplecontrol.c23 struct maple_device *mdev; member
66 maple_getcond_callback(pad->mdev, dc_pad_callback, HZ/20, in dc_pad_open()
76 maple_getcond_callback(pad->mdev, dc_pad_callback, 0, in dc_pad_close()
97 struct maple_device *mdev = to_maple_dev(dev); in probe_maple_controller() local
102 unsigned long data = be32_to_cpu(mdev->devinfo.function_data[0]); in probe_maple_controller()
112 pad->mdev = mdev; in probe_maple_controller()
139 idev->dev.parent = &mdev->dev; in probe_maple_controller()
140 idev->name = mdev->product_name; in probe_maple_controller()
148 mdev->driver = mdrv; in probe_maple_controller()
149 maple_set_drvdata(mdev, pad); in probe_maple_controller()
[all …]
/linux-4.4.14/drivers/input/mouse/
Dmaplemouse.c23 struct maple_device *mdev; member
52 maple_getcond_callback(mse->mdev, dc_mouse_callback, HZ/50, in dc_mouse_open()
62 maple_getcond_callback(mse->mdev, dc_mouse_callback, 0, in dc_mouse_close()
69 struct maple_device *mdev = to_maple_dev(dev); in probe_maple_mouse() local
88 mse->mdev = mdev; in probe_maple_mouse()
98 input_dev->name = mdev->product_name; in probe_maple_mouse()
104 mdev->driver = mdrv; in probe_maple_mouse()
105 maple_set_drvdata(mdev, mse); in probe_maple_mouse()
119 struct maple_device *mdev = to_maple_dev(dev); in remove_maple_mouse() local
120 struct dc_mouse *mse = maple_get_drvdata(mdev); in remove_maple_mouse()
[all …]
/linux-4.4.14/drivers/isdn/mISDN/
Dcore.c43 struct mISDNdevice *mdev = dev_to_mISDN(dev); in id_show() local
45 if (!mdev) in id_show()
47 return sprintf(buf, "%d\n", mdev->id); in id_show()
54 struct mISDNdevice *mdev = dev_to_mISDN(dev); in nrbchan_show() local
56 if (!mdev) in nrbchan_show()
58 return sprintf(buf, "%d\n", mdev->nrbchan); in nrbchan_show()
65 struct mISDNdevice *mdev = dev_to_mISDN(dev); in d_protocols_show() local
67 if (!mdev) in d_protocols_show()
69 return sprintf(buf, "%d\n", mdev->Dprotocols); in d_protocols_show()
76 struct mISDNdevice *mdev = dev_to_mISDN(dev); in b_protocols_show() local
[all …]
/linux-4.4.14/include/media/
Dmedia-device.h90 int __must_check __media_device_register(struct media_device *mdev,
92 #define media_device_register(mdev) __media_device_register(mdev, THIS_MODULE) argument
93 void media_device_unregister(struct media_device *mdev);
95 int __must_check media_device_register_entity(struct media_device *mdev,
100 #define media_device_for_each_entity(entity, mdev) \ argument
101 list_for_each_entry(entity, &(mdev)->entities, list)
Dmedia-devnode.h83 void (*release)(struct media_devnode *mdev);
89 int __must_check media_devnode_register(struct media_devnode *mdev,
91 void media_devnode_unregister(struct media_devnode *mdev);
98 static inline int media_devnode_is_registered(struct media_devnode *mdev) in media_devnode_is_registered() argument
100 return test_bit(MEDIA_FLAG_REGISTERED, &mdev->flags); in media_devnode_is_registered()
Dv4l2-device.h45 struct media_device *mdev; member
/linux-4.4.14/drivers/misc/mic/card/
Dmic_x100.c48 u32 mic_read_spad(struct mic_device *mdev, unsigned int idx) in mic_read_spad() argument
50 return mic_mmio_read(&mdev->mmio, in mic_read_spad()
60 void mic_send_intr(struct mic_device *mdev, int doorbell) in mic_send_intr() argument
62 struct mic_mw *mw = &mdev->mmio; in mic_send_intr()
114 u32 mic_ack_interrupt(struct mic_device *mdev) in mic_ack_interrupt() argument
185 mic_card_map(struct mic_device *mdev, dma_addr_t addr, size_t size) in mic_card_map() argument
197 void mic_card_unmap(struct mic_device *mdev, void __iomem *addr) in mic_card_unmap() argument
234 mic_ack_interrupt(&mbdev_to_mdrv(mbdev)->mdev); in _mic_ack_interrupt()
246 struct mic_device *mdev = &mdrv->mdev; in mic_probe() local
252 mdev->mmio.pa = MIC_X100_MMIO_BASE; in mic_probe()
[all …]
Dmic_debugfs.c45 struct mic_device *mdev = &mdrv->mdev; in mic_intr_test() local
47 mic_send_intr(mdev, 0); in mic_intr_test()
49 mic_send_intr(mdev, 1); in mic_intr_test()
51 mic_send_intr(mdev, 2); in mic_intr_test()
53 mic_send_intr(mdev, 3); in mic_intr_test()
Dmic_device.h85 struct mic_device mdev; member
133 u32 mic_read_spad(struct mic_device *mdev, unsigned int idx);
134 void mic_send_intr(struct mic_device *mdev, int doorbell);
137 u32 mic_ack_interrupt(struct mic_device *mdev);
140 mic_card_map(struct mic_device *mdev, dma_addr_t addr, size_t size);
141 void mic_card_unmap(struct mic_device *mdev, void __iomem *addr);
Dmic_device.c44 struct mic_device *mdev = &mdrv->mdev; in mic_dp_init() local
49 lo = mic_read_spad(&mdrv->mdev, MIC_DPLO_SPAD); in mic_dp_init()
50 hi = mic_read_spad(&mdrv->mdev, MIC_DPHI_SPAD); in mic_dp_init()
53 mdrv->dp = mic_card_map(mdev, dp_dma_addr, MIC_DP_SIZE); in mic_dp_init()
70 mic_card_unmap(&g_drv->mdev, g_drv->dp); in mic_dp_uninit()
205 mic_ack_interrupt(&mdrv->mdev); in ___mic_ack_interrupt()
217 mic_send_intr(&mdrv->mdev, db); in ___mic_send_intr()
232 return mic_card_map(&mdrv->mdev, pa, len); in ___mic_ioremap()
239 mic_card_unmap(&mdrv->mdev, va); in ___mic_iounmap()
319 0, node_id, &mdrv->mdev.mmio, NULL, in mic_driver_init()
Dmic_virtio.c53 struct mic_device *mdev; member
153 mic_send_intr(mvdev->mdev, mvdev->c2h_vdev_db); in mic_set_status()
165 mic_send_intr(mvdev->mdev, mvdev->c2h_vdev_db); in mic_reset_inform_host()
198 mic_send_intr(mvdev->mdev, mvdev->c2h_vdev_db); in mic_notify()
209 mic_card_unmap(mvdev->mdev, mvdev->vr[n]); in mic_del_vq()
257 va = mic_card_map(mvdev->mdev, le64_to_cpu(config.address), vr_size); in mic_find_vq()
307 mic_card_unmap(mvdev->mdev, mvdev->vr[index]); in mic_find_vq()
339 mic_send_intr(mvdev->mdev, mvdev->c2h_vdev_db); in mic_find_vqs()
379 mic_ack_interrupt(mvdev->mdev); in mic_virtio_intr_handler()
413 mvdev->mdev = &mdrv->mdev; in mic_add_device()
[all …]
/linux-4.4.14/drivers/macintosh/
Drack-meter.c61 struct macio_dev *mdev; member
99 struct macio_chip *macio = rm->mdev->bus->chip; in rackmeter_setup_i2s()
367 static int rackmeter_probe(struct macio_dev* mdev, in rackmeter_probe() argument
378 while ((i2s = of_get_next_child(mdev->ofdev.dev.of_node, i2s)) != NULL) in rackmeter_probe()
405 rm->mdev = mdev; in rackmeter_probe()
408 dev_set_drvdata(&mdev->ofdev.dev, rm); in rackmeter_probe()
411 if (macio_resource_count(mdev) < 2 || macio_irq_count(mdev) < 2) { in rackmeter_probe()
415 mdev->ofdev.node->full_name); in rackmeter_probe()
419 if (macio_request_resources(mdev, "rackmeter")) { in rackmeter_probe()
422 mdev->ofdev.node->full_name); in rackmeter_probe()
[all …]
Dmediabay.c65 struct macio_dev *mdev; member
452 struct macio_dev *mdev; in mb_broadcast_hotplug() local
462 mdev = to_macio_device(dev); in mb_broadcast_hotplug()
465 drv->mediabay_event(mdev, state); in mb_broadcast_hotplug()
509 device_for_each_child(&bay->mdev->ofdev.dev, in media_bay_step()
523 device_for_each_child(&bay->mdev->ofdev.dev, in media_bay_step()
529 device_for_each_child(&bay->mdev->ofdev.dev, in media_bay_step()
559 static int media_bay_attach(struct macio_dev *mdev, in media_bay_attach() argument
568 ofnode = mdev->ofdev.dev.of_node; in media_bay_attach()
570 if (macio_resource_count(mdev) < 1) in media_bay_attach()
[all …]
Dmacio_sysfs.c11 struct macio_dev *mdev = to_macio_device (dev); \
12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \
Dmacio_asic.c171 struct macio_dev *mdev; in macio_release_dev() local
173 mdev = to_macio_device(dev); in macio_release_dev()
174 kfree(mdev); in macio_release_dev()
459 struct macio_dev *rdev, *mdev, *mbdev = NULL, *sdev = NULL; in macio_pci_add_devices() local
485 mdev = macio_add_one_device(chip, &rdev->ofdev.dev, np, NULL, in macio_pci_add_devices()
487 if (mdev == NULL) in macio_pci_add_devices()
490 mbdev = mdev; in macio_pci_add_devices()
492 sdev = mdev; in macio_pci_add_devices()
/linux-4.4.14/drivers/media/usb/dvb-usb/
Ddvb-usb-dvb.c101 struct media_device *mdev; in dvb_usb_media_device_register() local
106 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in dvb_usb_media_device_register()
107 if (!mdev) in dvb_usb_media_device_register()
110 mdev->dev = &udev->dev; in dvb_usb_media_device_register()
111 strlcpy(mdev->model, d->desc->name, sizeof(mdev->model)); in dvb_usb_media_device_register()
113 strlcpy(mdev->serial, udev->serial, sizeof(mdev->serial)); in dvb_usb_media_device_register()
114 strcpy(mdev->bus_info, udev->devpath); in dvb_usb_media_device_register()
115 mdev->hw_revision = le16_to_cpu(udev->descriptor.bcdDevice); in dvb_usb_media_device_register()
116 mdev->driver_version = LINUX_VERSION_CODE; in dvb_usb_media_device_register()
118 ret = media_device_register(mdev); in dvb_usb_media_device_register()
[all …]
/linux-4.4.14/include/linux/
Dste_modem_shm.h22 void (*kick)(struct ste_modem_device *mdev, int notify_id);
37 int (*power)(struct ste_modem_device *mdev, bool on);
38 int (*kick)(struct ste_modem_device *mdev, int notify_id);
39 int (*kick_subscribe)(struct ste_modem_device *mdev, int notify_id);
40 int (*setup)(struct ste_modem_device *mdev,
Dmaple.h71 void (*fileerr_handler)(struct maple_device *mdev, void *recvbuf);
72 int (*can_unload)(struct maple_device *mdev);
95 int maple_add_packet(struct maple_device *mdev, u32 function,
97 void maple_clear_dev(struct maple_device *mdev);
Dmcb.h86 int (*probe)(struct mcb_device *mdev, const struct mcb_device_id *id);
87 void (*remove)(struct mcb_device *mdev);
88 void (*shutdown)(struct mcb_device *mdev);
Dlp.h41 unsigned int mdev; member
/linux-4.4.14/drivers/staging/most/Documentation/ABI/
Dsysfs-class-most.txt35 What: /sys/class/most/mostcore/devices/<mdev>/description
45 What: /sys/class/most/mostcore/devices/<mdev>/interface
54 What: /sys/class/most/mostcore/devices/<mdev>/<channel>/
65 What: /sys/class/most/mostcore/devices/<mdev>/<channel>/available_datatypes
73 What: /sys/class/most/mostcore/devices/<mdev>/<channel>/available_directions
81 What: /sys/class/most/mostcore/devices/<mdev>/<channel>/number_of_packet_buffers
90 What: /sys/class/most/mostcore/devices/<mdev>/<channel>/number_of_stream_buffers
99 What: /sys/class/most/mostcore/devices/<mdev>/<channel>/size_of_packet_buffer
108 What: /sys/class/most/mostcore/devices/<mdev>/<channel>/size_of_stream_buffer
117 What: /sys/class/most/mostcore/devices/<mdev>/<channel>/set_number_of_buffers
[all …]
/linux-4.4.14/drivers/ide/
Dpmac.c64 struct macio_dev *mdev; member
853 return pmif->mdev && pmif->mdev->media_bay != NULL; in on_media_bay()
951 if (check_media_bay(pmif->mdev->media_bay) == MB_CD) { in pmac_ide_init_dev()
1074 if (pmif->mdev) in pmac_ide_setup_device()
1075 lock_media_bay(pmif->mdev->media_bay); in pmac_ide_setup_device()
1105 pmif->mdev ? "macio" : "PCI", pmif->aapl_bus_id, in pmac_ide_setup_device()
1112 if (pmif->mdev) in pmac_ide_setup_device()
1113 unlock_media_bay(pmif->mdev->media_bay); in pmac_ide_setup_device()
1134 static int pmac_ide_macio_attach(struct macio_dev *mdev, in pmac_ide_macio_attach() argument
1147 if (macio_resource_count(mdev) == 0) { in pmac_ide_macio_attach()
[all …]
/linux-4.4.14/drivers/scsi/
Dmac53c94.c58 struct macio_dev *mdev; member
409 static int mac53c94_probe(struct macio_dev *mdev, const struct of_device_id *match) in mac53c94_probe() argument
411 struct device_node *node = macio_get_of_node(mdev); in mac53c94_probe()
412 struct pci_dev *pdev = macio_get_pci_dev(mdev); in mac53c94_probe()
419 if (macio_resource_count(mdev) != 2 || macio_irq_count(mdev) != 2) { in mac53c94_probe()
422 macio_resource_count(mdev), macio_irq_count(mdev)); in mac53c94_probe()
426 if (macio_request_resources(mdev, "mac53c94") != 0) { in mac53c94_probe()
439 macio_set_drvdata(mdev, state); in mac53c94_probe()
442 state->mdev = mdev; in mac53c94_probe()
445 ioremap(macio_resource_start(mdev, 0), 0x1000); in mac53c94_probe()
[all …]
Dmesh.c173 struct macio_dev *mdev; member
1744 pmac_call_feature(PMAC_FTR_MESH_ENABLE, macio_get_of_node(ms->mdev), 0, 1); in set_mesh_power()
1747 pmac_call_feature(PMAC_FTR_MESH_ENABLE, macio_get_of_node(ms->mdev), 0, 0); in set_mesh_power()
1754 static int mesh_suspend(struct macio_dev *mdev, pm_message_t mesg) in mesh_suspend() argument
1756 struct mesh_state *ms = (struct mesh_state *)macio_get_drvdata(mdev); in mesh_suspend()
1785 static int mesh_resume(struct macio_dev *mdev) in mesh_resume() argument
1787 struct mesh_state *ms = (struct mesh_state *)macio_get_drvdata(mdev); in mesh_resume()
1811 static int mesh_shutdown(struct macio_dev *mdev) in mesh_shutdown() argument
1813 struct mesh_state *ms = (struct mesh_state *)macio_get_drvdata(mdev); in mesh_shutdown()
1844 static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match) in mesh_probe() argument
[all …]
/linux-4.4.14/drivers/block/
Dswim3.c205 struct macio_dev *mdev; member
211 #define swim3_err(fmt, arg...) dev_err(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg)
212 #define swim3_warn(fmt, arg...) dev_warn(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg)
213 #define swim3_info(fmt, arg...) dev_info(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg)
216 #define swim3_dbg(fmt, arg...) dev_dbg(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg)
334 if (fs->mdev->media_bay && in start_request()
335 check_media_bay(fs->mdev->media_bay) != MB_FD) { in start_request()
913 if (fs->mdev->media_bay && in floppy_locked_ioctl()
914 check_media_bay(fs->mdev->media_bay) != MB_FD) in floppy_locked_ioctl()
951 if (fs->mdev->media_bay && in floppy_open()
[all …]
/linux-4.4.14/drivers/ata/
Dpata_macio.c231 struct macio_dev *mdev; member
1113 static int pata_macio_attach(struct macio_dev *mdev, in pata_macio_attach() argument
1122 if (macio_resource_count(mdev) == 0) { in pata_macio_attach()
1123 dev_err(&mdev->ofdev.dev, in pata_macio_attach()
1129 macio_enable_devres(mdev); in pata_macio_attach()
1132 priv = devm_kzalloc(&mdev->ofdev.dev, in pata_macio_attach()
1135 dev_err(&mdev->ofdev.dev, in pata_macio_attach()
1139 priv->node = of_node_get(mdev->ofdev.dev.of_node); in pata_macio_attach()
1140 priv->mdev = mdev; in pata_macio_attach()
1141 priv->dev = &mdev->ofdev.dev; in pata_macio_attach()
[all …]
/linux-4.4.14/sound/oss/
Dvidc.c88 vidc_mixer_set(int mdev, unsigned int level) in vidc_mixer_set() argument
104 switch (mdev) { in vidc_mixer_set()
107 vidc_level_l[mdev] = lev_l; in vidc_mixer_set()
108 vidc_level_r[mdev] = lev_r; in vidc_mixer_set()
121 unsigned int mdev; in vidc_mixer_ioctl() local
126 mdev = _SIOC_NR(cmd); in vidc_mixer_ioctl()
132 if (mdev < SOUND_MIXER_NRDEVICES) in vidc_mixer_ioctl()
133 vidc_mixer_set(mdev, val); in vidc_mixer_ioctl()
141 switch (mdev) { in vidc_mixer_ioctl()
163 if (mdev < SOUND_MIXER_NRDEVICES) in vidc_mixer_ioctl()
[all …]
/linux-4.4.14/drivers/media/usb/siano/
Dsmsusb.c347 struct media_device *mdev; in siano_media_device_register() local
352 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in siano_media_device_register()
353 if (!mdev) in siano_media_device_register()
356 mdev->dev = &udev->dev; in siano_media_device_register()
357 strlcpy(mdev->model, board->name, sizeof(mdev->model)); in siano_media_device_register()
359 strlcpy(mdev->serial, udev->serial, sizeof(mdev->serial)); in siano_media_device_register()
360 strcpy(mdev->bus_info, udev->devpath); in siano_media_device_register()
361 mdev->hw_revision = le16_to_cpu(udev->descriptor.bcdDevice); in siano_media_device_register()
362 mdev->driver_version = LINUX_VERSION_CODE; in siano_media_device_register()
364 ret = media_device_register(mdev); in siano_media_device_register()
[all …]
/linux-4.4.14/drivers/input/keyboard/
Dmaple_keyb.c162 struct maple_device *mdev; in probe_maple_kbd() local
168 mdev = to_maple_dev(dev); in probe_maple_kbd()
186 idev->name = mdev->product_name; in probe_maple_kbd()
192 idev->dev.parent = &mdev->dev; in probe_maple_kbd()
206 maple_getcond_callback(mdev, dc_kbd_callback, HZ/50, in probe_maple_kbd()
209 mdev->driver = mdrv; in probe_maple_kbd()
211 maple_set_drvdata(mdev, kbd); in probe_maple_kbd()
216 maple_set_drvdata(mdev, NULL); in probe_maple_kbd()
226 struct maple_device *mdev = to_maple_dev(dev); in remove_maple_kbd() local
227 struct dc_kbd *kbd = maple_get_drvdata(mdev); in remove_maple_kbd()
[all …]
/linux-4.4.14/drivers/tty/serial/
Dmen_z135_uart.c124 struct mcb_device *mdev; member
267 dev_warn(&uart->mdev->dev, in men_z135_handle_rx()
281 dev_warn(&uart->mdev->dev, in men_z135_handle_rx()
332 dev_err(&uart->mdev->dev, in men_z135_handle_tx()
413 dev_dbg(&uart->mdev->dev, "Character Timeout Indication\n"); in men_z135_intr()
442 struct device *dev = &uart->mdev->dev; in men_z135_request_irq()
747 struct mcb_device *mdev = uart->mdev; in men_z135_request_port() local
750 mem = mcb_request_mem(uart->mdev, dev_name(&mdev->dev)); in men_z135_request_port()
813 static int men_z135_probe(struct mcb_device *mdev, in men_z135_probe() argument
821 dev = &mdev->dev; in men_z135_probe()
[all …]
Dpmac_zilog.c1559 static int pmz_attach(struct macio_dev *mdev, const struct of_device_id *match) in pmz_attach() argument
1567 if (pmz_ports[i].node == mdev->ofdev.dev.of_node) in pmz_attach()
1574 uap->dev = mdev; in pmz_attach()
1575 uap->port.dev = &mdev->ofdev.dev; in pmz_attach()
1576 dev_set_drvdata(&mdev->ofdev.dev, uap); in pmz_attach()
1595 static int pmz_detach(struct macio_dev *mdev) in pmz_detach() argument
1597 struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev); in pmz_detach()
1608 dev_set_drvdata(&mdev->ofdev.dev, NULL); in pmz_detach()
1616 static int pmz_suspend(struct macio_dev *mdev, pm_message_t pm_state) in pmz_suspend() argument
1618 struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev); in pmz_suspend()
[all …]
/linux-4.4.14/include/linux/mlx5/
Ddevice.h1143 #define MLX5_CAP_GEN(mdev, cap) \ argument
1144 MLX5_GET(cmd_hca_cap, mdev->hca_caps_cur[MLX5_CAP_GENERAL], cap)
1146 #define MLX5_CAP_GEN_MAX(mdev, cap) \ argument
1147 MLX5_GET(cmd_hca_cap, mdev->hca_caps_max[MLX5_CAP_GENERAL], cap)
1149 #define MLX5_CAP_ETH(mdev, cap) \ argument
1151 mdev->hca_caps_cur[MLX5_CAP_ETHERNET_OFFLOADS], cap)
1153 #define MLX5_CAP_ETH_MAX(mdev, cap) \ argument
1155 mdev->hca_caps_max[MLX5_CAP_ETHERNET_OFFLOADS], cap)
1157 #define MLX5_CAP_ROCE(mdev, cap) \ argument
1158 MLX5_GET(roce_cap, mdev->hca_caps_cur[MLX5_CAP_ROCE], cap)
[all …]
Dvport.h38 u8 mlx5_query_vport_state(struct mlx5_core_dev *mdev, u8 opmod);
39 void mlx5_query_nic_vport_mac_address(struct mlx5_core_dev *mdev, u8 *addr);
Ddriver.h701 int mlx5_alloc_map_uar(struct mlx5_core_dev *mdev, struct mlx5_uar *uar);
702 void mlx5_unmap_free_uar(struct mlx5_core_dev *mdev, struct mlx5_uar *uar);
874 void *mlx5_get_protocol_dev(struct mlx5_core_dev *mdev, int protocol);
877 int mlx5_core_query_vendor_id(struct mlx5_core_dev *mdev, u32 *vendor_id);
/linux-4.4.14/drivers/bcma/
Ddriver_mips.c123 struct bcma_device *mdev = dev->bus->drv_mips.core; in bcma_core_mips_irq() local
132 if (bcma_read32(mdev, BCMA_MIPS_MIPS74K_INTMASK(irq)) & in bcma_core_mips_irq()
143 struct bcma_device *mdev = bus->drv_mips.core; in bcma_core_mips_set_irq() local
153 bcma_write32(mdev, BCMA_MIPS_MIPS74K_INTMASK(0), in bcma_core_mips_set_irq()
154 bcma_read32(mdev, BCMA_MIPS_MIPS74K_INTMASK(0)) & in bcma_core_mips_set_irq()
157 bcma_write32(mdev, BCMA_MIPS_MIPS74K_INTMASK(oldirq), 0); in bcma_core_mips_set_irq()
161 bcma_write32(mdev, BCMA_MIPS_MIPS74K_INTMASK(0), in bcma_core_mips_set_irq()
162 bcma_read32(mdev, BCMA_MIPS_MIPS74K_INTMASK(0)) | in bcma_core_mips_set_irq()
165 u32 irqinitmask = bcma_read32(mdev, in bcma_core_mips_set_irq()
181 bcma_write32(mdev, BCMA_MIPS_MIPS74K_INTMASK(irq), in bcma_core_mips_set_irq()
/linux-4.4.14/drivers/ssb/
Ddriver_mipscore.c104 struct ssb_device *mdev = bus->mipscore.dev; in ssb_mips_irq() local
120 if ((1 << irqflag) & ssb_read32(mdev, SSB_INTVEC)) in ssb_mips_irq()
145 struct ssb_device *mdev = bus->mipscore.dev; in set_irq() local
154 ssb_write32(mdev, SSB_INTVEC, (~(1 << irqflag) & ssb_read32(mdev, SSB_INTVEC))); in set_irq()
160 ssb_write32(mdev, SSB_INTVEC, ((1 << irqflag) | ssb_read32(mdev, SSB_INTVEC))); in set_irq()
162 u32 ipsflag = ssb_read32(mdev, SSB_IPSFLAG); in set_irq()
171 ssb_write32(mdev, SSB_IPSFLAG, irqflag); in set_irq()
/linux-4.4.14/drivers/net/ethernet/apple/
Dbmac.c71 struct macio_dev *mdev; member
237 pmac_call_feature(PMAC_FTR_BMAC_ENABLE, macio_get_of_node(bp->mdev), 0, 1); in bmac_enable_and_reset_chip()
456 static int bmac_suspend(struct macio_dev *mdev, pm_message_t state) in bmac_suspend() argument
458 struct net_device* dev = macio_get_drvdata(mdev); in bmac_suspend()
502 pmac_call_feature(PMAC_FTR_BMAC_ENABLE, macio_get_of_node(bp->mdev), 0, 0); in bmac_suspend()
506 static int bmac_resume(struct macio_dev *mdev) in bmac_resume() argument
508 struct net_device* dev = macio_get_drvdata(mdev); in bmac_resume()
1244 static int bmac_probe(struct macio_dev *mdev, const struct of_device_id *match) in bmac_probe() argument
1253 if (macio_resource_count(mdev) != 3 || macio_irq_count(mdev) != 3) { in bmac_probe()
1257 prop_addr = of_get_property(macio_get_of_node(mdev), in bmac_probe()
[all …]
Dmace.c66 struct macio_dev *mdev; member
109 static int mace_probe(struct macio_dev *mdev, const struct of_device_id *match) in mace_probe() argument
111 struct device_node *mace = macio_get_of_node(mdev); in mace_probe()
117 if (macio_resource_count(mdev) != 3 || macio_irq_count(mdev) != 3) { in mace_probe()
143 if (macio_request_resources(mdev, "mace")) { in mace_probe()
153 SET_NETDEV_DEV(dev, &mdev->ofdev.dev); in mace_probe()
156 mp->mdev = mdev; in mace_probe()
157 macio_set_drvdata(mdev, dev); in mace_probe()
159 dev->base_addr = macio_resource_start(mdev, 0); in mace_probe()
166 dev->irq = macio_irq(mdev, 0); in mace_probe()
[all …]
/linux-4.4.14/net/mpls/
Daf_mpls.c232 struct mpls_dev *mdev; in mpls_forward() local
240 mdev = mpls_dev_get(dev); in mpls_forward()
241 if (!mdev || !mdev->input_enabled) in mpls_forward()
831 struct mpls_dev *mdev) in mpls_dev_sysctl_register() argument
845 table[i].data = (char *)mdev + (uintptr_t)table[i].data; in mpls_dev_sysctl_register()
849 mdev->sysctl = register_net_sysctl(dev_net(dev), path, table); in mpls_dev_sysctl_register()
850 if (!mdev->sysctl) in mpls_dev_sysctl_register()
861 static void mpls_dev_sysctl_unregister(struct mpls_dev *mdev) in mpls_dev_sysctl_unregister() argument
865 table = mdev->sysctl->ctl_table_arg; in mpls_dev_sysctl_unregister()
866 unregister_net_sysctl_table(mdev->sysctl); in mpls_dev_sysctl_unregister()
[all …]
/linux-4.4.14/drivers/media/dvb-core/
Ddvbdev.h96 struct media_device *mdev; member
207 struct media_device *mdev) in dvb_register_media_controller() argument
209 adap->mdev = mdev; in dvb_register_media_controller()
Ddvbdev.c189 if (!dvbdev->adapter->mdev) in dvb_register_media_device()
254 ret = media_device_register_entity(dvbdev->adapter->mdev, in dvb_register_media_device()
387 struct media_device *mdev = adap->mdev; in dvb_create_media_graph() local
391 if (!mdev) in dvb_create_media_graph()
394 media_device_for_each_entity(entity, mdev) { in dvb_create_media_graph()
Ddvb_frontend.c622 struct media_device *mdev = adapter->mdev; in dvb_enable_media_tuner() local
629 if (!mdev) in dvb_enable_media_tuner()
/linux-4.4.14/arch/powerpc/include/asm/
Dmacio.h109 static inline struct device_node *macio_get_of_node(struct macio_dev *mdev) in macio_get_of_node() argument
111 return mdev->ofdev.dev.of_node; in macio_get_of_node()
115 static inline struct pci_dev *macio_get_pci_dev(struct macio_dev *mdev) in macio_get_pci_dev() argument
117 return mdev->bus->pdev; in macio_get_pci_dev()
/linux-4.4.14/drivers/media/platform/vsp1/
Dvsp1_drv.c134 struct media_device *mdev = &vsp1->media_dev; in vsp1_create_entities() local
140 mdev->dev = vsp1->dev; in vsp1_create_entities()
141 strlcpy(mdev->model, "VSP1", sizeof(mdev->model)); in vsp1_create_entities()
142 snprintf(mdev->bus_info, sizeof(mdev->bus_info), "platform:%s", in vsp1_create_entities()
143 dev_name(mdev->dev)); in vsp1_create_entities()
144 ret = media_device_register(mdev); in vsp1_create_entities()
151 vdev->mdev = mdev; in vsp1_create_entities()
Dvsp1_video.c412 struct media_device *mdev = entity->parent; in vsp1_pipeline_validate() local
416 mutex_lock(&mdev->graph_mutex); in vsp1_pipeline_validate()
450 mutex_unlock(&mdev->graph_mutex); in vsp1_pipeline_validate()
/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dmain.c615 struct mlx4_ib_dev *mdev = to_mdev(ibdev); in eth_link_query_port() local
616 struct mlx4_ib_iboe *iboe = &mdev->iboe; in eth_link_query_port()
621 int is_bonded = mlx4_is_bonded(mdev->dev); in eth_link_query_port()
623 mailbox = mlx4_alloc_cmd_mailbox(mdev->dev); in eth_link_query_port()
627 err = mlx4_cmd_box(mdev->dev, 0, mailbox->dma, port, 0, in eth_link_query_port()
637 props->gid_tbl_len = mdev->dev->caps.gid_table_len[port]; in eth_link_query_port()
638 props->max_msg_sz = mdev->dev->caps.max_msg_sz; in eth_link_query_port()
664 mlx4_free_cmd_mailbox(mdev->dev, mailbox); in eth_link_query_port()
871 struct mlx4_ib_dev *mdev = to_mdev(ibdev); in mlx4_ib_modify_port() local
872 u8 is_eth = mdev->dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH; in mlx4_ib_modify_port()
[all …]
Dsysfs.c52 struct mlx4_ib_dev *mdev = port->dev; in show_admin_alias_guid() local
55 sysadmin_ag_val = mlx4_get_admin_guid(mdev->dev, in show_admin_alias_guid()
77 struct mlx4_ib_dev *mdev = port->dev; in store_admin_alias_guid() local
87 spin_lock_irqsave(&mdev->sriov.alias_guid.ag_work_lock, flags); in store_admin_alias_guid()
89 *(__be64 *)&mdev->sriov.alias_guid.ports_guid[port->num - 1]. in store_admin_alias_guid()
95 mdev->sriov.alias_guid.ports_guid[port->num - 1].all_rec_per_port[record_num].status in store_admin_alias_guid()
97 mlx4_set_admin_guid(mdev->dev, cpu_to_be64(sysadmin_ag_val), in store_admin_alias_guid()
102 mdev->sriov.alias_guid.ports_guid[port->num - 1].all_rec_per_port[record_num].guid_indexes in store_admin_alias_guid()
105 spin_unlock_irqrestore(&mdev->sriov.alias_guid.ag_work_lock, flags); in store_admin_alias_guid()
106 mlx4_ib_init_alias_guid_work(mdev, port->num - 1); in store_admin_alias_guid()
[all …]
Dmr.c494 struct mlx4_dev *mdev = NULL; in mlx4_ib_unmap_fmr() local
497 if (mdev && to_mdev(ibfmr->device)->dev != mdev) in mlx4_ib_unmap_fmr()
499 mdev = to_mdev(ibfmr->device)->dev; in mlx4_ib_unmap_fmr()
502 if (!mdev) in mlx4_ib_unmap_fmr()
508 mlx4_fmr_unmap(mdev, &ifmr->mfmr, &ifmr->ibfmr.lkey, &ifmr->ibfmr.rkey); in mlx4_ib_unmap_fmr()
517 err = mlx4_SYNC_TPT(mdev); in mlx4_ib_unmap_fmr()
Dsrq.c324 struct mlx4_ib_dev *mdev = to_mdev(ibsrq->device); in mlx4_ib_post_srq_recv() local
327 if (mdev->dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { in mlx4_ib_post_srq_recv()
Dqp.c2146 struct mlx4_ib_dev *mdev = to_mdev(sqp->qp.ibqp.device); in build_sriov_qp0_header() local
2147 struct ib_device *ib_dev = &mdev->ib_dev; in build_sriov_qp0_header()
2196 cpu_to_be32(mdev->dev->caps.qp0_tunnel[sqp->qp.port - 1]); in build_sriov_qp0_header()
2199 if (mlx4_is_master(mdev->dev)) { in build_sriov_qp0_header()
2200 if (mlx4_get_parav_qkey(mdev->dev, sqp->qp.mqp.qpn, &qkey)) in build_sriov_qp0_header()
2203 if (vf_get_qp0_qkey(mdev->dev, sqp->qp.mqp.qpn, &qkey)) in build_sriov_qp0_header()
2767 struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); in mlx4_ib_post_send() local
2770 if (mdev->dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { in mlx4_ib_post_send()
3078 struct mlx4_ib_dev *mdev = to_mdev(ibqp->device); in mlx4_ib_post_recv() local
3083 if (mdev->dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { in mlx4_ib_post_recv()
Dmlx4_ib.h804 int mlx4_ib_add_mc(struct mlx4_ib_dev *mdev, struct mlx4_ib_qp *mqp,
862 int mlx4_ib_steer_qp_reg(struct mlx4_ib_dev *mdev, struct mlx4_ib_qp *mqp,
Dcq.c898 struct mlx4_ib_dev *mdev = to_mdev(cq->ibcq.device); in mlx4_ib_poll_cq() local
901 if (mdev->dev->persist->state & MLX4_DEVICE_STATE_INTERNAL_ERROR) { in mlx4_ib_poll_cq()
/linux-4.4.14/drivers/media/usb/dvb-usb-v2/
Ddvb_usb_core.c406 struct media_device *mdev; in dvb_usbv2_media_device_register() local
411 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in dvb_usbv2_media_device_register()
412 if (!mdev) in dvb_usbv2_media_device_register()
415 mdev->dev = &udev->dev; in dvb_usbv2_media_device_register()
416 strlcpy(mdev->model, d->name, sizeof(mdev->model)); in dvb_usbv2_media_device_register()
418 strlcpy(mdev->serial, udev->serial, sizeof(mdev->serial)); in dvb_usbv2_media_device_register()
419 strcpy(mdev->bus_info, udev->devpath); in dvb_usbv2_media_device_register()
420 mdev->hw_revision = le16_to_cpu(udev->descriptor.bcdDevice); in dvb_usbv2_media_device_register()
421 mdev->driver_version = LINUX_VERSION_CODE; in dvb_usbv2_media_device_register()
423 ret = media_device_register(mdev); in dvb_usbv2_media_device_register()
[all …]
/linux-4.4.14/drivers/hv/
Dhv_utils_transport.c229 hvt->mdev.minor = MISC_DYNAMIC_MINOR; in hvutil_transport_init()
230 hvt->mdev.name = name; in hvutil_transport_init()
239 hvt->mdev.fops = &hvt->fops; in hvutil_transport_init()
251 if (misc_register(&hvt->mdev)) in hvutil_transport_init()
273 misc_deregister(&hvt->mdev); in hvutil_transport_destroy()
Dhv_utils_transport.h33 struct miscdevice mdev; /* misc device */ member
/linux-4.4.14/sound/aoa/soundbus/
Dsysfs.c11 struct soundbus_dev *mdev = to_soundbus_device (dev); \
12 return sprintf (buf, format_string, mdev->ofdev.dev.of_node->field); \
/linux-4.4.14/drivers/media/usb/cx231xx/
Dcx231xx-cards.c1212 struct media_device *mdev; in cx231xx_media_device_register() local
1215 mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); in cx231xx_media_device_register()
1216 if (!mdev) in cx231xx_media_device_register()
1219 mdev->dev = dev->dev; in cx231xx_media_device_register()
1220 strlcpy(mdev->model, dev->board.name, sizeof(mdev->model)); in cx231xx_media_device_register()
1222 strlcpy(mdev->serial, udev->serial, sizeof(mdev->serial)); in cx231xx_media_device_register()
1223 strcpy(mdev->bus_info, udev->devpath); in cx231xx_media_device_register()
1224 mdev->hw_revision = le16_to_cpu(udev->descriptor.bcdDevice); in cx231xx_media_device_register()
1225 mdev->driver_version = LINUX_VERSION_CODE; in cx231xx_media_device_register()
1227 ret = media_device_register(mdev); in cx231xx_media_device_register()
[all …]
Dcx231xx-video.c106 struct media_device *mdev = dev->media_dev; in cx231xx_enable_analog_tuner() local
111 if (!mdev) in cx231xx_enable_analog_tuner()
121 media_device_for_each_entity(entity, mdev) { in cx231xx_enable_analog_tuner()
/linux-4.4.14/drivers/misc/mic/scif/
Dscif_main.c29 .mdev = {
318 struct miscdevice *mdev = &scif_info.mdev; in scif_init() local
329 rc = misc_register(mdev); in scif_init()
346 misc_deregister(&scif_info.mdev); in scif_exit()
Dscif_mmap.c88 dev_dbg(scif_info.mdev.this_device, in __scif_zap_mmaps()
141 dev_err(scif_info.mdev.this_device, in __scif_cleanup_rma_for_zombies()
229 dev_dbg(scif_info.mdev.this_device, in scif_get_pages()
445 dev_err(scif_info.mdev.this_device, in scif_rma_list_mmap()
537 dev_dbg(scif_info.mdev.this_device, in scif_vma_open()
562 dev_dbg(scif_info.mdev.this_device, in scif_munmap()
568 dev_dbg(scif_info.mdev.this_device, in scif_munmap()
582 dev_err(scif_info.mdev.this_device, in scif_munmap()
621 dev_dbg(scif_info.mdev.this_device, in scif_mmap()
Dscif_api.c75 dev_dbg(scif_info.mdev.this_device, in scif_open()
171 dev_dbg(scif_info.mdev.this_device, "SCIFAPI close: ep %p %s\n", in scif_close()
188 dev_err(scif_info.mdev.this_device, in scif_close()
342 dev_dbg(scif_info.mdev.this_device, in scif_bind()
385 dev_dbg(scif_info.mdev.this_device, in scif_bind()
398 dev_dbg(scif_info.mdev.this_device, in scif_listen()
606 dev_dbg(scif_info.mdev.this_device, "SCIFAPI connect: ep %p %s\n", ep, in __scif_connect()
757 dev_dbg(scif_info.mdev.this_device, in scif_accept()
823 dev_err(scif_info.mdev.this_device, in scif_accept()
1113 dev_dbg(scif_info.mdev.this_device, in scif_user_send()
[all …]
Dscif_fence.c311 dev_err(scif_info.mdev.this_device, in scif_prog_signal()
634 dev_dbg(scif_info.mdev.this_device, in scif_fence_mark()
668 dev_err(scif_info.mdev.this_device, in scif_fence_mark()
670 dev_dbg(scif_info.mdev.this_device, in scif_fence_mark()
682 dev_dbg(scif_info.mdev.this_device, in scif_fence_wait()
704 dev_err(scif_info.mdev.this_device, in scif_fence_wait()
716 dev_dbg(scif_info.mdev.this_device, in scif_fence_signal()
767 dev_err(scif_info.mdev.this_device, in scif_fence_signal()
Dscif_rma_list.c191 dev_err(scif_info.mdev.this_device, in scif_query_window()
273 dev_err(scif_info.mdev.this_device, in scif_unregister_all_windows()
Dscif_dma.c189 dev_info(scif_info.mdev.this_device, in scif_rma_tc_can_cache()
815 dev_err(scif_info.mdev.this_device, in scif_off_to_dma_addr()
1112 dev_err(scif_info.mdev.this_device, in scif_rma_list_dma_copy_unaligned()
1230 dev_err(scif_info.mdev.this_device, in _scif_rma_list_dma_copy_aligned()
1464 dev_err(scif_info.mdev.this_device, in scif_rma_list_dma_copy_aligned()
1855 dev_err(scif_info.mdev.this_device, in scif_rma_copy()
1868 dev_dbg(scif_info.mdev.this_device, in scif_readfrom()
1896 dev_dbg(scif_info.mdev.this_device, in scif_writeto()
1924 dev_dbg(scif_info.mdev.this_device, in scif_vreadfrom()
1955 dev_dbg(scif_info.mdev.this_device, in scif_vwriteto()
Dscif_rma.c279 dev_err(scif_info.mdev.this_device, in __scif_dec_pinned_vm_lock()
303 dev_err(scif_info.mdev.this_device, in __scif_check_inc_pinned_vm()
340 dev_err(scif_info.mdev.this_device, in scif_destroy_window()
700 dev_err(scif_info.mdev.this_device, in scif_unregister_window()
1443 dev_dbg(scif_info.mdev.this_device, in __scif_pin_pages()
1464 dev_err(scif_info.mdev.this_device, in scif_unpin_pages()
1603 dev_dbg(scif_info.mdev.this_device, in scif_register()
1725 dev_dbg(scif_info.mdev.this_device, in scif_unregister()
Dscif_main.h107 struct miscdevice mdev; member
Dscif_debugfs.c148 dev_err(scif_info.mdev.this_device, in scif_init_debugfs()
Dscif_fd.c78 dev_dbg(scif_info.mdev.this_device, "%s err %d\n", str, err); in scif_err_debug()
/linux-4.4.14/sound/soc/intel/atom/sst/
Dsst_acpi.c255 struct platform_device *mdev; in sst_acpi_probe() local
286 mdev = platform_device_register_data(dev, mach->machine, -1, NULL, 0); in sst_acpi_probe()
287 if (IS_ERR(mdev)) { in sst_acpi_probe()
289 return PTR_ERR(mdev); in sst_acpi_probe()
/linux-4.4.14/drivers/media/v4l2-core/
Dv4l2-device.c187 if (v4l2_dev->mdev) { in v4l2_device_register_subdev()
188 err = media_device_register_entity(v4l2_dev->mdev, entity); in v4l2_device_register_subdev()
287 if (v4l2_dev->mdev) { in v4l2_device_unregister_subdev()
Dv4l2-subdev.c77 if (sd->v4l2_dev->mdev) { in subdev_open()
116 if (sd->v4l2_dev->mdev) in subdev_close()
Dv4l2-dev.c197 if (v4l2_dev->mdev && in v4l2_device_release()
923 if (vdev->v4l2_dev->mdev && in __video_register_device()
929 ret = media_device_register_entity(vdev->v4l2_dev->mdev, in __video_register_device()
/linux-4.4.14/drivers/net/wireless/hostap/
Dhostap_main.c54 struct net_device *dev, *mdev; in hostap_add_interface() local
68 mdev = local->dev; in hostap_add_interface()
69 eth_hw_addr_inherit(dev, mdev); in hostap_add_interface()
70 dev->base_addr = mdev->base_addr; in hostap_add_interface()
71 dev->irq = mdev->irq; in hostap_add_interface()
72 dev->mem_start = mdev->mem_start; in hostap_add_interface()
73 dev->mem_end = mdev->mem_end; in hostap_add_interface()
82 SET_NETDEV_DEV(dev, mdev->dev.parent); in hostap_add_interface()
96 mdev->name, dev->name); in hostap_add_interface()
/linux-4.4.14/drivers/staging/media/davinci_vpfe/
Dvpfe_video.c133 struct media_device *mdev = entity->parent; in vpfe_prepare_pipeline() local
146 mutex_lock(&mdev->graph_mutex); in vpfe_prepare_pipeline()
159 mutex_unlock(&mdev->graph_mutex); in vpfe_prepare_pipeline()
283 struct media_device *mdev; in vpfe_pipeline_enable() local
291 mdev = entity->parent; in vpfe_pipeline_enable()
292 mutex_lock(&mdev->graph_mutex); in vpfe_pipeline_enable()
303 mutex_unlock(&mdev->graph_mutex); in vpfe_pipeline_enable()
323 struct media_device *mdev; in vpfe_pipeline_disable() local
331 mdev = entity->parent; in vpfe_pipeline_disable()
332 mutex_lock(&mdev->graph_mutex); in vpfe_pipeline_disable()
[all …]
Dvpfe_mc_capture.c649 vpfe_dev->v4l2_dev.mdev = &vpfe_dev->media_dev; in vpfe_probe()
/linux-4.4.14/Documentation/spi/
Dspidev37 device node with a "dev" attribute that will be understood by udev or mdev.
38 (Larger systems will have "udev". Smaller ones may configure "mdev" into
44 that userspace programs will open, created by "udev" or "mdev".
55 security issues; udev/mdev should already be configured securely.
59 kernel and by udev/mdev). You can unbind by removing the "spidev" driver
/linux-4.4.14/drivers/media/usb/uvc/
Duvc_driver.c1657 if (media_devnode_is_registered(&dev->mdev.devnode)) in uvc_delete()
1658 media_device_unregister(&dev->mdev); in uvc_delete()
1911 dev->mdev.dev = &intf->dev; in uvc_probe()
1912 strlcpy(dev->mdev.model, dev->name, sizeof(dev->mdev.model)); in uvc_probe()
1914 strlcpy(dev->mdev.serial, udev->serial, in uvc_probe()
1915 sizeof(dev->mdev.serial)); in uvc_probe()
1916 strcpy(dev->mdev.bus_info, udev->devpath); in uvc_probe()
1917 dev->mdev.hw_revision = le16_to_cpu(udev->descriptor.bcdDevice); in uvc_probe()
1918 dev->mdev.driver_version = LINUX_VERSION_CODE; in uvc_probe()
1919 if (media_device_register(&dev->mdev) < 0) in uvc_probe()
[all …]
Duvcvideo.h534 struct media_device mdev; member
/linux-4.4.14/drivers/staging/most/mostcore/
Dcore.c922 most_c_obj *get_channel_by_name(char *mdev, char *mdev_ch) in get_channel_by_name() argument
929 if (!strcmp(kobject_name(&i->kobj), mdev)) { in get_channel_by_name()
978 char *mdev; in store_add_link() local
988 ret = split_string(buffer, &mdev, &mdev_ch, &mdev_devnod); in store_add_link()
993 snprintf(devnod_buf, sizeof(devnod_buf), "%s-%s", mdev, in store_add_link()
998 c = get_channel_by_name(mdev, mdev_ch); in store_add_link()
1044 char *mdev; in store_remove_link() local
1051 ret = split_string(buffer, &mdev, &mdev_ch, NULL); in store_remove_link()
1055 c = get_channel_by_name(mdev, mdev_ch); in store_remove_link()
/linux-4.4.14/Documentation/zh_CN/video4linux/
Dv4l2-framework.txt90 结构体的 mdev 域,子设备和视频节点的入口将自动出现在媒体框架中。
110 结构体的 mdev 域,指向适当的初始化并注册过的 media_device 实例。
328 如果 v4l2_device 父设备的 mdev 域为非 NULL 值,则子设备实体将被自动
658 如果 v4l2_device 父设备的 mdev 域为非 NULL 值,视频设备实体将自动
/linux-4.4.14/drivers/media/platform/xilinx/
Dxilinx-dma.c184 struct media_device *mdev = entity->parent; in xvip_pipeline_validate() local
188 mutex_lock(&mdev->graph_mutex); in xvip_pipeline_validate()
209 mutex_unlock(&mdev->graph_mutex); in xvip_pipeline_validate()
Dxilinx-vipp.c592 xdev->v4l2_dev.mdev = &xdev->media_dev; in xvip_composite_v4l2_init()
/linux-4.4.14/drivers/media/platform/exynos4-is/
Dfimc-isp-video.c317 struct media_device *mdev = entity->parent; in isp_video_release() local
331 mutex_lock(&mdev->graph_mutex); in isp_video_release()
333 mutex_unlock(&mdev->graph_mutex); in isp_video_release()
Dmedia-dev.c1341 v4l2_dev->mdev = &fmd->media_dev; in fimc_md_probe()
/linux-4.4.14/Documentation/
Dmen-chameleon-bus.txt138 static init foo_probe(struct mcb_device *mdev, const struct mcb_device_id *id);
139 static void foo_remove(struct mcb_device *mdev);
Dmedia-framework.txt50 media_device_register(struct media_device *mdev);
89 media_device_unregister(struct media_device *mdev);
129 media_device_register_entity(struct media_device *mdev,
231 media_device_for_each_entity(entity, mdev) {
/linux-4.4.14/net/mac802154/
Dllsec.c62 struct mac802154_llsec_device *mdev; in mac802154_llsec_destroy() local
64 mdev = container_of(dev, struct mac802154_llsec_device, dev); in mac802154_llsec_destroy()
66 llsec_dev_free(mdev); in mac802154_llsec_destroy()
/linux-4.4.14/drivers/staging/media/omap4iss/
Diss_video.c209 struct media_device *mdev = entity->parent; in iss_video_far_end() local
212 mutex_lock(&mdev->graph_mutex); in iss_video_far_end()
229 mutex_unlock(&mdev->graph_mutex); in iss_video_far_end()
Diss.c1194 iss->v4l2_dev.mdev = &iss->media_dev; in iss_register_entities()
/linux-4.4.14/arch/powerpc/configs/85xx/
Dkmp204x_defconfig89 CONFIG_UEVENT_HELPER_PATH="/sbin/mdev"
/linux-4.4.14/net/ipv6/
Dndisc.c798 struct net_device *mdev; in ndisc_recv_ns() local
800 mdev = netdev_master_upper_dev_get_rcu(dev); in ndisc_recv_ns()
801 if (mdev) { in ndisc_recv_ns()
802 ifp = ipv6_get_ifaddr(net, &msg->target, mdev, 1); in ndisc_recv_ns()
/linux-4.4.14/drivers/media/platform/omap3isp/
Dispvideo.c229 struct media_device *mdev = entity->parent; in isp_video_get_graph_data() local
232 mutex_lock(&mdev->graph_mutex); in isp_video_get_graph_data()
254 mutex_unlock(&mdev->graph_mutex); in isp_video_get_graph_data()
Disp.c1884 isp->v4l2_dev.mdev = &isp->media_dev; in isp_register_entities()
/linux-4.4.14/Documentation/usb/
Dgadget_serial.txt46 sysfs in /sys, and use "mdev" (in Busybox) or "udev" to make the
128 Your system should use mdev (from busybox) or udev to make the
/linux-4.4.14/drivers/video/fbdev/
Dsh_mobile_lcdcfb.c1076 struct sh_mobile_meram_info *mdev = priv->meram_dev; in sh_mobile_lcdc_start() local
1122 if (mdev == NULL || ch->cfg->meram_cfg == NULL) in sh_mobile_lcdc_start()
1127 sh_mobile_meram_cache_free(mdev, ch->cache); in sh_mobile_lcdc_start()
1150 cache = sh_mobile_meram_cache_alloc(mdev, ch->cfg->meram_cfg, in sh_mobile_lcdc_start()
1154 sh_mobile_meram_cache_update(mdev, cache, in sh_mobile_lcdc_start()
/linux-4.4.14/drivers/media/platform/s3c-camif/
Dcamif-core.c325 v4l2_dev->mdev = md; in camif_media_dev_register()
/linux-4.4.14/drivers/media/common/siano/
Dsmscoreapi.h1126 void *mdev);
Dsmscoreapi.c657 void *mdev) in smscore_register_device() argument
667 dev->media_dev = mdev; in smscore_register_device()
/linux-4.4.14/Documentation/video4linux/
Dv4l2-framework.txt78 driver sets the struct v4l2_device mdev field, sub-devices and video nodes
100 also set the struct v4l2_device mdev field to point to a properly initialized
360 If the v4l2_device parent device has a non-NULL mdev field, the sub-device
761 If the v4l2_device parent device has a non-NULL mdev field, the video device
/linux-4.4.14/include/linux/mlx4/
Ddevice.h1091 void mlx4_free_hwq_res(struct mlx4_dev *mdev, struct mlx4_hwq_resources *wqres,