/linux-4.19.296/drivers/misc/mic/host/ |
D | mic_main.c | 60 static int mic_dp_init(struct mic_device *mdev) in mic_dp_init() argument 62 mdev->dp = kzalloc(MIC_DP_SIZE, GFP_KERNEL); in mic_dp_init() 63 if (!mdev->dp) in mic_dp_init() 66 mdev->dp_dma_addr = mic_map_single(mdev, in mic_dp_init() 67 mdev->dp, MIC_DP_SIZE); in mic_dp_init() 68 if (mic_map_error(mdev->dp_dma_addr)) { in mic_dp_init() 69 kfree(mdev->dp); in mic_dp_init() 70 dev_err(&mdev->pdev->dev, "%s %d err %d\n", in mic_dp_init() 74 mdev->ops->write_spad(mdev, MIC_DPLO_SPAD, mdev->dp_dma_addr); in mic_dp_init() 75 mdev->ops->write_spad(mdev, MIC_DPHI_SPAD, mdev->dp_dma_addr >> 32); in mic_dp_init() [all …]
|
D | mic_intr.c | 29 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 …]
|
D | mic_boot.c | 44 struct mic_device *mdev = vpdev_to_mdev(dev); in _mic_dma_map_page() local 46 return mic_map_single(mdev, va, size); in _mic_dma_map_page() 53 struct mic_device *mdev = vpdev_to_mdev(dev); in _mic_dma_unmap_page() local 55 mic_unmap_single(mdev, dma_addr, size); in _mic_dma_unmap_page() 68 struct mic_device *mdev = vpdev_to_mdev(&vpdev->dev); in __mic_request_irq() local 70 return mic_request_threaded_irq(mdev, func, NULL, name, data, in __mic_request_irq() 77 struct mic_device *mdev = vpdev_to_mdev(&vpdev->dev); in __mic_free_irq() local 79 mic_free_irq(mdev, cookie, data); in __mic_free_irq() 84 struct mic_device *mdev = vpdev_to_mdev(&vpdev->dev); in __mic_ack_interrupt() local 86 mdev->ops->intr_workarounds(mdev); in __mic_ack_interrupt() [all …]
|
D | mic_x100.c | 44 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 …]
|
D | mic_smpt.c | 27 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 …]
|
D | mic_debugfs.c | 36 struct mic_device *mdev = s->private; in mic_smpt_show() local 40 mdev->id, "SMPT entry", "SW DMA addr", "RefCount"); in mic_smpt_show() 43 if (mdev->smpt) { in mic_smpt_show() 44 struct mic_smpt_info *smpt_info = mdev->smpt; in mic_smpt_show() 77 struct mic_device *mdev = s->private; in mic_post_code_show() local 78 u32 reg = mdev->ops->get_postcode(mdev); in mic_post_code_show() 104 struct mic_device *mdev = s->private; in mic_msi_irq_info_show() local 109 struct pci_dev *pdev = mdev->pdev; in mic_msi_irq_info_show() 112 for (i = 0; i < mdev->irq_info.num_vectors; i++) { in mic_msi_irq_info_show() 114 entry = mdev->irq_info.msix_entries[i].entry; in mic_msi_irq_info_show() [all …]
|
D | mic_intr.h | 129 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 …]
|
D | mic_device.h | 124 u32 (*read_spad)(struct mic_device *mdev, unsigned int idx); 125 void (*write_spad)(struct mic_device *mdev, unsigned int idx, u32 val); 126 void (*send_intr)(struct mic_device *mdev, int doorbell); 127 u32 (*ack_interrupt)(struct mic_device *mdev); 128 void (*intr_workarounds)(struct mic_device *mdev); 129 void (*reset)(struct mic_device *mdev); 130 void (*reset_fw_ready)(struct mic_device *mdev); 131 bool (*is_fw_ready)(struct mic_device *mdev); 132 void (*send_firmware_intr)(struct mic_device *mdev); 133 int (*load_mic_fw)(struct mic_device *mdev, const char *buf); [all …]
|
D | mic_smpt.h | 29 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);
|
/linux-4.19.296/drivers/sh/maple/ |
D | maple.c | 139 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.19.296/include/media/ |
D | media-device.h | 182 struct media_entity_enum *ent_enum, struct media_device *mdev) in media_entity_enum_init() argument 185 mdev->entity_internal_idx_max + 1); in media_entity_enum_init() 202 void media_device_init(struct media_device *mdev); 212 void media_device_cleanup(struct media_device *mdev); 258 int __must_check __media_device_register(struct media_device *mdev, 270 #define media_device_register(mdev) __media_device_register(mdev, THIS_MODULE) argument 280 void media_device_unregister(struct media_device *mdev); 318 int __must_check media_device_register_entity(struct media_device *mdev, 355 int __must_check media_device_register_entity_notify(struct media_device *mdev, 366 void media_device_unregister_entity_notify(struct media_device *mdev, [all …]
|
/linux-4.19.296/drivers/media/ |
D | media-entity.c | 108 dev_dbg(gobj->mdev->dev, in dev_dbg_obj() 117 dev_dbg(gobj->mdev->dev, in dev_dbg_obj() 130 dev_dbg(gobj->mdev->dev, in dev_dbg_obj() 143 dev_dbg(gobj->mdev->dev, in dev_dbg_obj() 154 void media_gobj_create(struct media_device *mdev, in media_gobj_create() argument 158 BUG_ON(!mdev); in media_gobj_create() 160 gobj->mdev = mdev; in media_gobj_create() 163 gobj->id = media_gobj_gen_id(type, ++mdev->id); in media_gobj_create() 167 list_add_tail(&gobj->list, &mdev->entities); in media_gobj_create() 170 list_add_tail(&gobj->list, &mdev->pads); in media_gobj_create() [all …]
|
/linux-4.19.296/include/linux/mlx5/ |
D | vport.h | 45 u8 mlx5_query_vport_state(struct mlx5_core_dev *mdev, u8 opmod, u16 vport); 46 int mlx5_modify_vport_admin_state(struct mlx5_core_dev *mdev, u8 opmod, 48 int mlx5_query_nic_vport_mac_address(struct mlx5_core_dev *mdev, 50 int mlx5_query_nic_vport_min_inline(struct mlx5_core_dev *mdev, 52 void mlx5_query_min_inline(struct mlx5_core_dev *mdev, u8 *min_inline); 53 int mlx5_modify_nic_vport_min_inline(struct mlx5_core_dev *mdev, 57 int mlx5_query_nic_vport_mtu(struct mlx5_core_dev *mdev, u16 *mtu); 58 int mlx5_modify_nic_vport_mtu(struct mlx5_core_dev *mdev, u16 mtu); 59 int mlx5_query_nic_vport_system_image_guid(struct mlx5_core_dev *mdev, 61 int mlx5_query_nic_vport_node_guid(struct mlx5_core_dev *mdev, u64 *node_guid); [all …]
|
D | device.h | 1078 #define MLX5_CAP_GEN(mdev, cap) \ argument 1079 MLX5_GET(cmd_hca_cap, mdev->caps.hca_cur[MLX5_CAP_GENERAL], cap) 1081 #define MLX5_CAP_GEN_64(mdev, cap) \ argument 1082 MLX5_GET64(cmd_hca_cap, mdev->caps.hca_cur[MLX5_CAP_GENERAL], cap) 1084 #define MLX5_CAP_GEN_MAX(mdev, cap) \ argument 1085 MLX5_GET(cmd_hca_cap, mdev->caps.hca_max[MLX5_CAP_GENERAL], cap) 1087 #define MLX5_CAP_ETH(mdev, cap) \ argument 1089 mdev->caps.hca_cur[MLX5_CAP_ETHERNET_OFFLOADS], cap) 1091 #define MLX5_CAP_ETH_MAX(mdev, cap) \ argument 1093 mdev->caps.hca_max[MLX5_CAP_ETHERNET_OFFLOADS], cap) [all …]
|
D | port.h | 160 int mlx5_max_tc(struct mlx5_core_dev *mdev); 162 int mlx5_set_port_prio_tc(struct mlx5_core_dev *mdev, u8 *prio_tc); 163 int mlx5_query_port_prio_tc(struct mlx5_core_dev *mdev, 165 int mlx5_set_port_tc_group(struct mlx5_core_dev *mdev, u8 *tc_group); 166 int mlx5_query_port_tc_group(struct mlx5_core_dev *mdev, 168 int mlx5_set_port_tc_bw_alloc(struct mlx5_core_dev *mdev, u8 *tc_bw); 169 int mlx5_query_port_tc_bw_alloc(struct mlx5_core_dev *mdev, 171 int mlx5_modify_port_ets_rate_limit(struct mlx5_core_dev *mdev, 174 int mlx5_query_port_ets_rate_limit(struct mlx5_core_dev *mdev, 177 int mlx5_set_port_wol(struct mlx5_core_dev *mdev, u8 wol_mode); [all …]
|
D | fs_helpers.h | 81 static inline bool _mlx5_fs_is_outer_ipv_flow(struct mlx5_core_dev *mdev, in _mlx5_fs_is_outer_ipv_flow() argument 85 int match_ipv = MLX5_CAP_FLOWTABLE_NIC_RX(mdev, in _mlx5_fs_is_outer_ipv_flow() 119 mlx5_fs_is_outer_ipv4_flow(struct mlx5_core_dev *mdev, const u32 *match_c, in mlx5_fs_is_outer_ipv4_flow() argument 122 return _mlx5_fs_is_outer_ipv_flow(mdev, match_c, match_v, in mlx5_fs_is_outer_ipv4_flow() 127 mlx5_fs_is_outer_ipv6_flow(struct mlx5_core_dev *mdev, const u32 *match_c, in mlx5_fs_is_outer_ipv6_flow() argument 130 return _mlx5_fs_is_outer_ipv_flow(mdev, match_c, match_v, in mlx5_fs_is_outer_ipv6_flow()
|
D | accel.h | 98 struct mlx5_core_dev *mdev; member 119 u32 mlx5_accel_ipsec_device_caps(struct mlx5_core_dev *mdev); 122 mlx5_accel_esp_create_xfrm(struct mlx5_core_dev *mdev, 131 static inline u32 mlx5_accel_ipsec_device_caps(struct mlx5_core_dev *mdev) { return 0; } in mlx5_accel_ipsec_device_caps() argument 134 mlx5_accel_esp_create_xfrm(struct mlx5_core_dev *mdev, in mlx5_accel_esp_create_xfrm() argument
|
/linux-4.19.296/drivers/media/v4l2-core/ |
D | v4l2-mc.c | 22 int v4l2_mc_create_media_graph(struct media_device *mdev) in v4l2_mc_create_media_graph() argument 33 if (!mdev) in v4l2_mc_create_media_graph() 36 media_device_for_each_entity(entity, mdev) { in v4l2_mc_create_media_graph() 80 media_device_for_each_entity(entity, mdev) { in v4l2_mc_create_media_graph() 159 media_device_for_each_entity(entity, mdev) { in v4l2_mc_create_media_graph() 190 struct media_device *mdev = vdev->entity.graph_obj.mdev; in v4l_enable_media_source() local 193 if (!mdev) in v4l_enable_media_source() 196 mutex_lock(&mdev->graph_mutex); in v4l_enable_media_source() 197 if (!mdev->enable_source) in v4l_enable_media_source() 199 err = mdev->enable_source(&vdev->entity, &vdev->pipe); in v4l_enable_media_source() [all …]
|
/linux-4.19.296/include/linux/ |
D | mdev.h | 73 int (*create)(struct kobject *kobj, struct mdev_device *mdev); 74 int (*remove)(struct mdev_device *mdev); 75 int (*open)(struct mdev_device *mdev); 76 void (*release)(struct mdev_device *mdev); 77 ssize_t (*read)(struct mdev_device *mdev, char __user *buf, 79 ssize_t (*write)(struct mdev_device *mdev, const char __user *buf, 81 long (*ioctl)(struct mdev_device *mdev, unsigned int cmd, 83 int (*mmap)(struct mdev_device *mdev, struct vm_area_struct *vma); 121 extern void *mdev_get_drvdata(struct mdev_device *mdev); 122 extern void mdev_set_drvdata(struct mdev_device *mdev, void *data); [all …]
|
/linux-4.19.296/drivers/s390/cio/ |
D | vfio_ccw_ops.c | 16 static int vfio_ccw_mdev_reset(struct mdev_device *mdev) in vfio_ccw_mdev_reset() argument 22 private = dev_get_drvdata(mdev_parent_dev(mdev)); in vfio_ccw_mdev_reset() 60 if (vfio_ccw_mdev_reset(private->mdev)) in vfio_ccw_mdev_notifier() 109 static int vfio_ccw_mdev_create(struct kobject *kobj, struct mdev_device *mdev) in vfio_ccw_mdev_create() argument 112 dev_get_drvdata(mdev_parent_dev(mdev)); in vfio_ccw_mdev_create() 120 private->mdev = mdev; in vfio_ccw_mdev_create() 126 static int vfio_ccw_mdev_remove(struct mdev_device *mdev) in vfio_ccw_mdev_remove() argument 129 dev_get_drvdata(mdev_parent_dev(mdev)); in vfio_ccw_mdev_remove() 139 private->mdev = NULL; in vfio_ccw_mdev_remove() 145 static int vfio_ccw_mdev_open(struct mdev_device *mdev) in vfio_ccw_mdev_open() argument [all …]
|
/linux-4.19.296/drivers/isdn/mISDN/ |
D | core.c | 43 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.19.296/drivers/misc/mic/card/ |
D | mic_x100.c | 48 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 255 mdev->mmio.pa = MIC_X100_MMIO_BASE; in mic_probe() [all …]
|
D | mic_debugfs.c | 45 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()
|
D | mic_device.c | 43 struct mic_device *mdev = &mdrv->mdev; in mic_dp_init() local 48 lo = mic_read_spad(&mdrv->mdev, MIC_DPLO_SPAD); in mic_dp_init() 49 hi = mic_read_spad(&mdrv->mdev, MIC_DPHI_SPAD); in mic_dp_init() 52 mdrv->dp = mic_card_map(mdev, dp_dma_addr, MIC_DP_SIZE); in mic_dp_init() 69 mic_card_unmap(&g_drv->mdev, g_drv->dp); in mic_dp_uninit() 204 mic_ack_interrupt(&mdrv->mdev); in ___mic_ack_interrupt() 216 mic_send_intr(&mdrv->mdev, db); in ___mic_send_intr() 231 return mic_card_map(&mdrv->mdev, pa, len); in ___mic_ioremap() 238 mic_card_unmap(&mdrv->mdev, va); in ___mic_iounmap() 275 mic_ack_interrupt(&mdrv->mdev); in __mic_ack_interrupt() [all …]
|
D | mic_device.h | 87 struct mic_device mdev; member 136 u32 mic_read_spad(struct mic_device *mdev, unsigned int idx); 137 void mic_send_intr(struct mic_device *mdev, int doorbell); 140 u32 mic_ack_interrupt(struct mic_device *mdev); 143 mic_card_map(struct mic_device *mdev, dma_addr_t addr, size_t size); 144 void mic_card_unmap(struct mic_device *mdev, void __iomem *addr);
|