/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/ |
H A D | mthca_main.c | 136 static int mthca_tune_pci(struct mthca_dev *mdev) in mthca_tune_pci() argument 142 if (pci_find_capability(mdev->pdev, PCI_CAP_ID_PCIX)) { in mthca_tune_pci() 143 if (pcix_set_mmrbc(mdev->pdev, pcix_get_max_mmrbc(mdev->pdev))) { in mthca_tune_pci() 144 mthca_err(mdev, "Couldn't set PCI-X max read count, " in mthca_tune_pci() 148 } else if (!(mdev->mthca_flags & MTHCA_FLAG_PCIE)) in mthca_tune_pci() 149 mthca_info(mdev, "No PCI-X capability, not setting RBC.\n"); in mthca_tune_pci() 151 if (pci_is_pcie(mdev->pdev)) { in mthca_tune_pci() 152 if (pcie_set_readrq(mdev->pdev, 4096)) { in mthca_tune_pci() 153 mthca_err(mdev, "Could in mthca_tune_pci() 164 mthca_dev_lim(struct mthca_dev *mdev, struct mthca_dev_lim *dev_lim) mthca_dev_lim() argument 287 mthca_init_tavor(struct mthca_dev *mdev) mthca_init_tavor() argument 345 mthca_load_fw(struct mthca_dev *mdev) mthca_load_fw() argument 380 mthca_init_icm(struct mthca_dev *mdev, struct mthca_dev_lim *dev_lim, struct mthca_init_hca_param *init_hca, u64 icm_size) mthca_init_icm() argument 556 mthca_free_icms(struct mthca_dev *mdev) mthca_free_icms() argument 574 mthca_init_arbel(struct mthca_dev *mdev) mthca_init_arbel() argument 647 mthca_close_hca(struct mthca_dev *mdev) mthca_close_hca() argument 663 mthca_init_hca(struct mthca_dev *mdev) mthca_init_hca() argument 851 mthca_enable_msi_x(struct mthca_dev *mdev) mthca_enable_msi_x() argument 901 struct mthca_dev *mdev; __mthca_init_one() local 1083 struct mthca_dev *mdev = pci_get_drvdata(pdev); __mthca_remove_one() local 1124 struct mthca_dev *mdev; __mthca_restart_one() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/mthca/ |
H A D | mthca_main.c | 136 static int mthca_tune_pci(struct mthca_dev *mdev) in mthca_tune_pci() argument 142 if (pci_find_capability(mdev->pdev, PCI_CAP_ID_PCIX)) { in mthca_tune_pci() 143 if (pcix_set_mmrbc(mdev->pdev, pcix_get_max_mmrbc(mdev->pdev))) { in mthca_tune_pci() 144 mthca_err(mdev, "Couldn't set PCI-X max read count, " in mthca_tune_pci() 148 } else if (!(mdev->mthca_flags & MTHCA_FLAG_PCIE)) in mthca_tune_pci() 149 mthca_info(mdev, "No PCI-X capability, not setting RBC.\n"); in mthca_tune_pci() 151 if (pci_is_pcie(mdev->pdev)) { in mthca_tune_pci() 152 if (pcie_set_readrq(mdev->pdev, 4096)) { in mthca_tune_pci() 153 mthca_err(mdev, "Could in mthca_tune_pci() 164 mthca_dev_lim(struct mthca_dev *mdev, struct mthca_dev_lim *dev_lim) mthca_dev_lim() argument 287 mthca_init_tavor(struct mthca_dev *mdev) mthca_init_tavor() argument 345 mthca_load_fw(struct mthca_dev *mdev) mthca_load_fw() argument 380 mthca_init_icm(struct mthca_dev *mdev, struct mthca_dev_lim *dev_lim, struct mthca_init_hca_param *init_hca, u64 icm_size) mthca_init_icm() argument 556 mthca_free_icms(struct mthca_dev *mdev) mthca_free_icms() argument 574 mthca_init_arbel(struct mthca_dev *mdev) mthca_init_arbel() argument 647 mthca_close_hca(struct mthca_dev *mdev) mthca_close_hca() argument 663 mthca_init_hca(struct mthca_dev *mdev) mthca_init_hca() argument 851 mthca_enable_msi_x(struct mthca_dev *mdev) mthca_enable_msi_x() argument 901 struct mthca_dev *mdev; __mthca_init_one() local 1068 struct mthca_dev *mdev = pci_get_drvdata(pdev); __mthca_remove_one() local 1109 struct mthca_dev *mdev; __mthca_restart_one() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_dev.c | 26 struct komeda_dev *mdev = sf->private; in komeda_register_show() local 31 pm_runtime_get_sync(mdev->dev); in komeda_register_show() 33 if (mdev->funcs->dump_register) in komeda_register_show() 34 mdev->funcs->dump_register(mdev, sf); in komeda_register_show() 36 for (i = 0; i < mdev->n_pipelines; i++) in komeda_register_show() 37 komeda_pipeline_dump_register(mdev->pipelines[i], sf); in komeda_register_show() 39 pm_runtime_put(mdev->dev); in komeda_register_show() 58 static void komeda_debugfs_init(struct komeda_dev *mdev) in komeda_debugfs_init() argument 63 mdev in komeda_debugfs_init() 74 struct komeda_dev *mdev = dev_to_mdev(dev); core_id_show() local 83 struct komeda_dev *mdev = dev_to_mdev(dev); config_id_show() local 106 struct komeda_dev *mdev = dev_to_mdev(dev); aclk_hz_show() local 148 komeda_parse_dt(struct device *dev, struct komeda_dev *mdev) komeda_parse_dt() argument 200 struct komeda_dev *mdev; komeda_dev_create() local 294 komeda_dev_destroy(struct komeda_dev *mdev) komeda_dev_destroy() argument 335 komeda_dev_resume(struct komeda_dev *mdev) komeda_dev_resume() argument 348 komeda_dev_suspend(struct komeda_dev *mdev) komeda_dev_suspend() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_dev.c | 26 struct komeda_dev *mdev = sf->private; in komeda_register_show() local 31 pm_runtime_get_sync(mdev->dev); in komeda_register_show() 33 if (mdev->funcs->dump_register) in komeda_register_show() 34 mdev->funcs->dump_register(mdev, sf); in komeda_register_show() 36 for (i = 0; i < mdev->n_pipelines; i++) in komeda_register_show() 37 komeda_pipeline_dump_register(mdev->pipelines[i], sf); in komeda_register_show() 39 pm_runtime_put(mdev->dev); in komeda_register_show() 47 static void komeda_debugfs_init(struct komeda_dev *mdev) in komeda_debugfs_init() argument 52 mdev in komeda_debugfs_init() 63 struct komeda_dev *mdev = dev_to_mdev(dev); core_id_show() local 72 struct komeda_dev *mdev = dev_to_mdev(dev); config_id_show() local 95 struct komeda_dev *mdev = dev_to_mdev(dev); aclk_hz_show() local 137 komeda_parse_dt(struct device *dev, struct komeda_dev *mdev) komeda_parse_dt() argument 188 struct komeda_dev *mdev; komeda_dev_create() local 281 komeda_dev_destroy(struct komeda_dev *mdev) komeda_dev_destroy() argument 322 komeda_dev_resume(struct komeda_dev *mdev) komeda_dev_resume() argument 335 komeda_dev_suspend(struct komeda_dev *mdev) komeda_dev_suspend() argument [all...] |
/kernel/linux/linux-5.10/drivers/sh/maple/ |
H A 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() 151 * @mdev: maple 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 in maple_add_packet() 186 maple_allocq(struct maple_device *mdev) maple_allocq() argument 213 struct maple_device *mdev; maple_alloc_dev() local 237 maple_free_dev(struct maple_device *mdev) maple_free_dev() argument 316 struct maple_device *mdev; maple_check_matching_driver() local 325 maple_detach_driver(struct maple_device *mdev) maple_detach_driver() argument 331 maple_attach_driver(struct maple_device *mdev) maple_attach_driver() argument 410 struct maple_device *mdev; check_maple_device() local 422 struct maple_device *mdev = to_maple_dev(device); setup_maple_commands() local 449 struct maple_device *mdev; maple_vblank_handler() local 492 maple_map_subunits(struct maple_device *mdev, int submask) maple_map_subunits() argument 524 maple_clean_submap(struct maple_device *mdev) maple_clean_submap() argument 535 maple_response_none(struct maple_device *mdev) maple_response_none() argument 577 maple_response_devinfo(struct maple_device *mdev, char *recvbuf) maple_response_devinfo() argument 603 maple_response_fileerr(struct maple_device *mdev, void *recvbuf) maple_response_fileerr() argument 617 struct maple_device *mdev; maple_port_rescan() local 634 struct maple_device *mdev; maple_dma_handler() local 798 struct maple_device *mdev[MAPLE_PORTS]; maple_bus_init() local [all...] |
/kernel/linux/linux-6.6/drivers/sh/maple/ |
H A D | maple.c | 138 struct maple_device *mdev; in maple_release_device() local 141 mdev = to_maple_dev(dev); in maple_release_device() 142 mq = mdev->mq; in maple_release_device() 145 kfree(mdev); in maple_release_device() 150 * @mdev: maple device 156 int maple_add_packet(struct maple_device *mdev, u32 function, u32 command, in maple_add_packet() argument 171 mdev->mq->command = command; in maple_add_packet() 172 mdev->mq->length = length; in maple_add_packet() 175 mdev->mq->sendbuf = sendbuf; in maple_add_packet() 178 list_add_tail(&mdev in maple_add_packet() 185 maple_allocq(struct maple_device *mdev) maple_allocq() argument 212 struct maple_device *mdev; maple_alloc_dev() local 236 maple_free_dev(struct maple_device *mdev) maple_free_dev() argument 315 struct maple_device *mdev; maple_check_matching_driver() local 324 maple_detach_driver(struct maple_device *mdev) maple_detach_driver() argument 330 maple_attach_driver(struct maple_device *mdev) maple_attach_driver() argument 409 struct maple_device *mdev; check_maple_device() local 421 struct maple_device *mdev = to_maple_dev(device); setup_maple_commands() local 448 struct maple_device *mdev; maple_vblank_handler() local 491 maple_map_subunits(struct maple_device *mdev, int submask) maple_map_subunits() argument 523 maple_clean_submap(struct maple_device *mdev) maple_clean_submap() argument 534 maple_response_none(struct maple_device *mdev) maple_response_none() argument 576 maple_response_devinfo(struct maple_device *mdev, char *recvbuf) maple_response_devinfo() argument 602 maple_response_fileerr(struct maple_device *mdev, void *recvbuf) maple_response_fileerr() argument 616 struct maple_device *mdev; maple_port_rescan() local 633 struct maple_device *mdev; maple_dma_handler() local 790 struct maple_device *mdev[MAPLE_PORTS]; maple_bus_init() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/most/video/ |
H A D | video.c | 51 struct most_video_dev *mdev; member 58 static inline bool data_ready(struct most_video_dev *mdev) in data_ready() argument 60 return !list_empty(&mdev->pending_mbos); in data_ready() 63 static inline struct mbo *get_top_mbo(struct most_video_dev *mdev) in get_top_mbo() argument 65 return list_first_entry(&mdev->pending_mbos, struct mbo, list); in get_top_mbo() 72 struct most_video_dev *mdev = video_drvdata(filp); in comp_vdev_open() local 86 if (!atomic_inc_and_test(&mdev->access_ref)) { in comp_vdev_open() 87 v4l2_err(&mdev->v4l2_dev, "too many clients\n"); in comp_vdev_open() 92 fh->mdev = mdev; in comp_vdev_open() 119 struct most_video_dev *mdev = fh->mdev; comp_vdev_close() local 155 struct most_video_dev *mdev = fh->mdev; comp_vdev_read() local 204 struct most_video_dev *mdev = fh->mdev; comp_vdev_poll() local 228 comp_set_format(struct most_video_dev *mdev, unsigned int cmd, struct v4l2_format *format) comp_set_format() argument 246 struct most_video_dev *mdev = fh->mdev; vidioc_querycap() local 280 struct most_video_dev *mdev = fh->mdev; vidioc_try_fmt_vid_cap() local 289 struct most_video_dev *mdev = fh->mdev; vidioc_s_fmt_vid_cap() local 304 struct most_video_dev *mdev = fh->mdev; vidioc_enum_input() local 321 struct most_video_dev *mdev = fh->mdev; vidioc_g_input() local 329 struct most_video_dev *mdev = fh->mdev; vidioc_s_input() local 371 struct most_video_dev *mdev; get_comp_dev() local 388 struct most_video_dev *mdev = comp_rx_data() local 406 comp_register_videodev(struct most_video_dev *mdev) comp_register_videodev() argument 436 comp_unregister_videodev(struct most_video_dev *mdev) comp_unregister_videodev() argument 443 struct most_video_dev *mdev = comp_v4l2_dev_release() local 455 struct most_video_dev *mdev = get_comp_dev(iface, channel_idx); comp_probe_channel() local 512 struct most_video_dev *mdev = get_comp_dev(iface, channel_idx); comp_disconnect_channel() local 554 struct most_video_dev *mdev, *tmp; comp_exit() local [all...] |
/kernel/linux/linux-6.6/drivers/staging/most/video/ |
H A D | video.c | 51 struct most_video_dev *mdev; member 58 static inline bool data_ready(struct most_video_dev *mdev) in data_ready() argument 60 return !list_empty(&mdev->pending_mbos); in data_ready() 63 static inline struct mbo *get_top_mbo(struct most_video_dev *mdev) in get_top_mbo() argument 65 return list_first_entry(&mdev->pending_mbos, struct mbo, list); in get_top_mbo() 72 struct most_video_dev *mdev = video_drvdata(filp); in comp_vdev_open() local 86 if (!atomic_inc_and_test(&mdev->access_ref)) { in comp_vdev_open() 87 v4l2_err(&mdev->v4l2_dev, "too many clients\n"); in comp_vdev_open() 92 fh->mdev = mdev; in comp_vdev_open() 119 struct most_video_dev *mdev = fh->mdev; comp_vdev_close() local 155 struct most_video_dev *mdev = fh->mdev; comp_vdev_read() local 204 struct most_video_dev *mdev = fh->mdev; comp_vdev_poll() local 228 comp_set_format(struct most_video_dev *mdev, unsigned int cmd, struct v4l2_format *format) comp_set_format() argument 246 struct most_video_dev *mdev = fh->mdev; vidioc_querycap() local 280 struct most_video_dev *mdev = fh->mdev; vidioc_try_fmt_vid_cap() local 289 struct most_video_dev *mdev = fh->mdev; vidioc_s_fmt_vid_cap() local 304 struct most_video_dev *mdev = fh->mdev; vidioc_enum_input() local 321 struct most_video_dev *mdev = fh->mdev; vidioc_g_input() local 329 struct most_video_dev *mdev = fh->mdev; vidioc_s_input() local 370 struct most_video_dev *mdev; get_comp_dev() local 387 struct most_video_dev *mdev = comp_rx_data() local 405 comp_register_videodev(struct most_video_dev *mdev) comp_register_videodev() argument 435 comp_unregister_videodev(struct most_video_dev *mdev) comp_unregister_videodev() argument 442 struct most_video_dev *mdev = comp_v4l2_dev_release() local 454 struct most_video_dev *mdev = get_comp_dev(iface, channel_idx); comp_probe_channel() local 511 struct most_video_dev *mdev = get_comp_dev(iface, channel_idx); comp_disconnect_channel() local 553 struct most_video_dev *mdev, *tmp; comp_exit() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_clock.c | 43 struct mlx4_en_dev *mdev = in mlx4_en_read_clock() local 45 struct mlx4_dev *dev = mdev->dev; in mlx4_en_read_clock() 61 u64 mlx4_en_get_hwtstamp(struct mlx4_en_dev *mdev, u64 timestamp) in mlx4_en_get_hwtstamp() argument 67 seq = read_seqbegin(&mdev->clock_lock); in mlx4_en_get_hwtstamp() 68 nsec = timecounter_cyc2time(&mdev->clock, timestamp); in mlx4_en_get_hwtstamp() 69 } while (read_seqretry(&mdev->clock_lock, seq)); in mlx4_en_get_hwtstamp() 74 void mlx4_en_fill_hwtstamps(struct mlx4_en_dev *mdev, in mlx4_en_fill_hwtstamps() argument 79 hwts->hwtstamp = mlx4_en_get_hwtstamp(mdev, timestamp); in mlx4_en_fill_hwtstamps() 84 * @mdev: board private structure 88 void mlx4_en_remove_timestamp(struct mlx4_en_dev *mdev) in mlx4_en_remove_timestamp() argument 104 mlx4_en_ptp_overflow_check(struct mlx4_en_dev *mdev) mlx4_en_ptp_overflow_check() argument 132 struct mlx4_en_dev *mdev = container_of(ptp, struct mlx4_en_dev, mlx4_en_phc_adjfine() local 154 struct mlx4_en_dev *mdev = container_of(ptp, struct mlx4_en_dev, mlx4_en_phc_adjtime() local 176 struct mlx4_en_dev *mdev = container_of(ptp, struct mlx4_en_dev, mlx4_en_phc_gettime() local 201 struct mlx4_en_dev *mdev = container_of(ptp, struct mlx4_en_dev, mlx4_en_phc_settime() local 261 mlx4_en_init_timestamp(struct mlx4_en_dev *mdev) mlx4_en_init_timestamp() argument [all...] |
H A D | en_main.c | 96 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 void 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 in mlx4_en_get_profile() 189 struct mlx4_en_dev *mdev = mlx4_en_event() local 241 struct mlx4_en_dev *mdev = auxiliary_get_drvdata(adev); mlx4_en_remove() local 269 struct mlx4_en_dev *mdev; mlx4_en_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/dma/ |
H A D | altera-msgdma.c | 205 * @mdev: Pointer to the Altera mSGDMA device structure 209 static struct msgdma_sw_desc *msgdma_get_descriptor(struct msgdma_device *mdev) in msgdma_get_descriptor() argument 214 spin_lock_irqsave(&mdev->lock, flags); in msgdma_get_descriptor() 215 desc = list_first_entry(&mdev->free_list, struct msgdma_sw_desc, node); in msgdma_get_descriptor() 217 spin_unlock_irqrestore(&mdev->lock, flags); in msgdma_get_descriptor() 226 * @mdev: Pointer to the Altera mSGDMA device structure 229 static void msgdma_free_descriptor(struct msgdma_device *mdev, in msgdma_free_descriptor() argument 234 mdev->desc_free_cnt++; in msgdma_free_descriptor() 235 list_add_tail(&desc->node, &mdev->free_list); in msgdma_free_descriptor() 237 mdev in msgdma_free_descriptor() 247 msgdma_free_desc_list(struct msgdma_device *mdev, struct list_head *list) msgdma_free_desc_list() argument 305 struct msgdma_device *mdev = to_mdev(tx->chan); msgdma_tx_submit() local 334 struct msgdma_device *mdev = to_mdev(dchan); msgdma_prep_memcpy() local 392 struct msgdma_device *mdev = to_mdev(dchan); msgdma_prep_slave_sg() local 463 struct msgdma_device *mdev = to_mdev(dchan); msgdma_dma_config() local 470 msgdma_reset(struct msgdma_device *mdev) msgdma_reset() argument 495 msgdma_copy_one(struct msgdma_device *mdev, struct msgdma_sw_desc *desc) msgdma_copy_one() argument 533 msgdma_copy_desc_to_fifo(struct msgdma_device *mdev, struct msgdma_sw_desc *desc) msgdma_copy_desc_to_fifo() argument 548 msgdma_start_transfer(struct msgdma_device *mdev) msgdma_start_transfer() argument 570 struct msgdma_device *mdev = to_mdev(chan); msgdma_issue_pending() local 582 msgdma_chan_desc_cleanup(struct msgdma_device *mdev) msgdma_chan_desc_cleanup() argument 609 msgdma_complete_descriptor(struct msgdma_device *mdev) msgdma_complete_descriptor() argument 626 msgdma_free_descriptors(struct msgdma_device *mdev) msgdma_free_descriptors() argument 639 struct msgdma_device *mdev = to_mdev(dchan); msgdma_free_chan_resources() local 656 struct msgdma_device *mdev = to_mdev(dchan); msgdma_alloc_chan_resources() local 685 struct msgdma_device *mdev = from_tasklet(mdev, t, irq_tasklet); msgdma_tasklet() local 724 struct msgdma_device *mdev = data; msgdma_irq_handler() local 748 msgdma_dev_remove(struct msgdma_device *mdev) msgdma_dev_remove() argument 795 struct msgdma_device *mdev; msgdma_probe() local 909 struct msgdma_device *mdev = platform_get_drvdata(pdev); msgdma_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_main.c | 96 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 void 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 in mlx4_en_get_profile() 196 struct mlx4_en_dev *mdev = (struct mlx4_en_dev *) endev_ptr; mlx4_en_event() local 229 struct mlx4_en_dev *mdev = endev_ptr; mlx4_en_remove() local 254 struct mlx4_en_dev *mdev = ctx; mlx4_en_activate() local 273 struct mlx4_en_dev *mdev; mlx4_en_add() local [all...] |
H A D | en_clock.c | 43 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 69 seq = read_seqbegin(&mdev->clock_lock); in mlx4_en_fill_hwtstamps() 70 nsec = timecounter_cyc2time(&mdev->clock, timestamp); in mlx4_en_fill_hwtstamps() 71 } while (read_seqretry(&mdev->clock_lock, seq)); in mlx4_en_fill_hwtstamps() 79 * @mdev: board private structure 83 void mlx4_en_remove_timestamp(struct mlx4_en_dev *mdev) in mlx4_en_remove_timestamp() argument 85 if (mdev->ptp_clock) { in mlx4_en_remove_timestamp() 86 ptp_clock_unregister(mdev in mlx4_en_remove_timestamp() 99 mlx4_en_ptp_overflow_check(struct mlx4_en_dev *mdev) mlx4_en_ptp_overflow_check() argument 127 struct mlx4_en_dev *mdev = container_of(ptp, struct mlx4_en_dev, mlx4_en_phc_adjfreq() local 156 struct mlx4_en_dev *mdev = container_of(ptp, struct mlx4_en_dev, mlx4_en_phc_adjtime() local 178 struct mlx4_en_dev *mdev = container_of(ptp, struct mlx4_en_dev, mlx4_en_phc_gettime() local 203 struct mlx4_en_dev *mdev = container_of(ptp, struct mlx4_en_dev, mlx4_en_phc_settime() local 263 mlx4_en_init_timestamp(struct mlx4_en_dev *mdev) mlx4_en_init_timestamp() argument [all...] |
/kernel/linux/linux-6.6/sound/core/seq/oss/ |
H A D | seq_oss_midi.c | 58 static int send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_midi *mdev); 97 struct seq_oss_midi *mdev; in get_mdev() local 101 mdev = midi_devs[dev]; in get_mdev() 102 if (mdev) in get_mdev() 103 snd_use_lock_use(&mdev->use_lock); in get_mdev() 105 return mdev; in get_mdev() 115 struct seq_oss_midi *mdev; in find_slot() local 120 mdev = midi_devs[i]; in find_slot() 121 if (mdev && mdev in find_slot() 142 struct seq_oss_midi *mdev; snd_seq_oss_midi_check_new_port() local 220 struct seq_oss_midi *mdev; snd_seq_oss_midi_check_exit_port() local 252 struct seq_oss_midi *mdev; snd_seq_oss_midi_clear_all() local 325 struct seq_oss_midi *mdev; snd_seq_oss_midi_open() local 398 struct seq_oss_midi *mdev; snd_seq_oss_midi_close() local 437 struct seq_oss_midi *mdev; snd_seq_oss_midi_filemode() local 461 struct seq_oss_midi *mdev; snd_seq_oss_midi_reset() local 510 struct seq_oss_midi *mdev; snd_seq_oss_midi_get_addr() local 528 struct seq_oss_midi *mdev; snd_seq_oss_midi_input() local 615 send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_midi *mdev) send_midi_event() argument 644 struct seq_oss_midi *mdev; snd_seq_oss_midi_putc() local 664 struct seq_oss_midi *mdev; snd_seq_oss_midi_make_info() local 700 struct seq_oss_midi *mdev; snd_seq_oss_midi_info_read() local [all...] |
/kernel/linux/linux-5.10/sound/core/seq/oss/ |
H A D | seq_oss_midi.c | 58 static int send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_midi *mdev); 97 struct seq_oss_midi *mdev; in get_mdev() local 101 mdev = midi_devs[dev]; in get_mdev() 102 if (mdev) in get_mdev() 103 snd_use_lock_use(&mdev->use_lock); in get_mdev() 105 return mdev; in get_mdev() 115 struct seq_oss_midi *mdev; in find_slot() local 120 mdev = midi_devs[i]; in find_slot() 121 if (mdev && mdev in find_slot() 142 struct seq_oss_midi *mdev; snd_seq_oss_midi_check_new_port() local 219 struct seq_oss_midi *mdev; snd_seq_oss_midi_check_exit_port() local 250 struct seq_oss_midi *mdev; snd_seq_oss_midi_clear_all() local 322 struct seq_oss_midi *mdev; snd_seq_oss_midi_open() local 394 struct seq_oss_midi *mdev; snd_seq_oss_midi_close() local 432 struct seq_oss_midi *mdev; snd_seq_oss_midi_filemode() local 455 struct seq_oss_midi *mdev; snd_seq_oss_midi_reset() local 503 struct seq_oss_midi *mdev; snd_seq_oss_midi_get_addr() local 520 struct seq_oss_midi *mdev; snd_seq_oss_midi_input() local 606 send_midi_event(struct seq_oss_devinfo *dp, struct snd_seq_event *ev, struct seq_oss_midi *mdev) send_midi_event() argument 635 struct seq_oss_midi *mdev; snd_seq_oss_midi_putc() local 654 struct seq_oss_midi *mdev; snd_seq_oss_midi_make_info() local 689 struct seq_oss_midi *mdev; snd_seq_oss_midi_info_read() local [all...] |
/kernel/linux/linux-5.10/drivers/most/ |
H A D | most_usb.c | 77 struct most_dev *mdev; member 238 struct most_dev *mdev = to_mdev(iface); in hdm_poison_channel() local 243 dev_warn(&mdev->usb_device->dev, "Channel ID out of range.\n"); in hdm_poison_channel() 247 lock = mdev->channel_lock + channel; in hdm_poison_channel() 249 mdev->is_channel_healthy[channel] = false; in hdm_poison_channel() 252 cancel_work_sync(&mdev->clear_work[channel].ws); in hdm_poison_channel() 254 mutex_lock(&mdev->io_mutex); in hdm_poison_channel() 255 usb_kill_anchored_urbs(&mdev->busy_urbs[channel]); in hdm_poison_channel() 256 if (mdev->padding_active[channel]) in hdm_poison_channel() 257 mdev in hdm_poison_channel() 276 hdm_add_padding(struct most_dev *mdev, int channel, struct mbo *mbo) hdm_add_padding() argument 309 hdm_remove_padding(struct most_dev *mdev, int channel, struct mbo *mbo) hdm_remove_padding() argument 343 struct most_dev *mdev = to_mdev(mbo->ifp); hdm_write_completion() local 395 struct most_dev *mdev = to_mdev(mbo->ifp); hdm_read_completion() local 460 struct most_dev *mdev = to_mdev(iface); hdm_enqueue() local 537 struct most_dev *mdev = to_mdev(mbo->ifp); hdm_dma_alloc() local 545 struct most_dev *mdev = to_mdev(mbo->ifp); hdm_dma_free() local 571 struct most_dev *mdev = to_mdev(iface); hdm_configure_channel() local 651 struct most_dev *mdev = to_mdev(iface); hdm_request_netinfo() local 670 struct most_dev *mdev = from_timer(mdev, t, link_stat_timer); link_stat_timer_handler() local 685 struct most_dev *mdev = to_mdev_from_work(wq_obj); wq_netinfo() local 731 struct most_dev *mdev = clear_work->mdev; wq_clear_halt() local 930 struct most_dev *mdev = to_mdev_from_dev(dev); release_mdev() local 952 struct most_dev *mdev; hdm_probe() local 1111 struct most_dev *mdev = usb_get_intfdata(interface); hdm_disconnect() local 1135 struct most_dev *mdev = usb_get_intfdata(interface); hdm_suspend() local 1149 struct most_dev *mdev = usb_get_intfdata(interface); hdm_resume() local [all...] |
/kernel/linux/linux-6.6/drivers/most/ |
H A D | most_usb.c | 77 struct most_dev *mdev; member 238 struct most_dev *mdev = to_mdev(iface); in hdm_poison_channel() local 243 dev_warn(&mdev->usb_device->dev, "Channel ID out of range.\n"); in hdm_poison_channel() 247 lock = mdev->channel_lock + channel; in hdm_poison_channel() 249 mdev->is_channel_healthy[channel] = false; in hdm_poison_channel() 252 cancel_work_sync(&mdev->clear_work[channel].ws); in hdm_poison_channel() 254 mutex_lock(&mdev->io_mutex); in hdm_poison_channel() 255 usb_kill_anchored_urbs(&mdev->busy_urbs[channel]); in hdm_poison_channel() 256 if (mdev->padding_active[channel]) in hdm_poison_channel() 257 mdev in hdm_poison_channel() 276 hdm_add_padding(struct most_dev *mdev, int channel, struct mbo *mbo) hdm_add_padding() argument 309 hdm_remove_padding(struct most_dev *mdev, int channel, struct mbo *mbo) hdm_remove_padding() argument 343 struct most_dev *mdev = to_mdev(mbo->ifp); hdm_write_completion() local 395 struct most_dev *mdev = to_mdev(mbo->ifp); hdm_read_completion() local 460 struct most_dev *mdev = to_mdev(iface); hdm_enqueue() local 537 struct most_dev *mdev = to_mdev(mbo->ifp); hdm_dma_alloc() local 545 struct most_dev *mdev = to_mdev(mbo->ifp); hdm_dma_free() local 571 struct most_dev *mdev = to_mdev(iface); hdm_configure_channel() local 651 struct most_dev *mdev = to_mdev(iface); hdm_request_netinfo() local 670 struct most_dev *mdev = from_timer(mdev, t, link_stat_timer); link_stat_timer_handler() local 685 struct most_dev *mdev = to_mdev_from_work(wq_obj); wq_netinfo() local 731 struct most_dev *mdev = clear_work->mdev; wq_clear_halt() local 930 struct most_dev *mdev = to_mdev_from_dev(dev); release_mdev() local 952 struct most_dev *mdev; hdm_probe() local 1111 struct most_dev *mdev = usb_get_intfdata(interface); hdm_disconnect() local 1135 struct most_dev *mdev = usb_get_intfdata(interface); hdm_suspend() local 1149 struct most_dev *mdev = usb_get_intfdata(interface); hdm_resume() local [all...] |
/kernel/linux/linux-5.10/drivers/mtd/maps/ |
H A D | vmu-flash.c | 24 struct maple_device *mdev; member 60 struct maple_device *mdev; in ofs_to_block() local 66 mdev = mpart->mdev; in ofs_to_block() 67 card = maple_get_drvdata(mdev); in ofs_to_block() 91 struct maple_device *mdev; in vmu_blockread() local 94 mdev = mq->dev; in vmu_blockread() 95 card = maple_get_drvdata(mdev); in vmu_blockread() 114 struct maple_device *mdev; in maple_vmu_read_block() local 121 mdev in maple_vmu_read_block() 231 struct maple_device *mdev; maple_vmu_write_block() local 308 struct maple_device *mdev; vmu_flash_read_char() local 353 struct maple_device *mdev; vmu_flash_read() local 419 struct maple_device *mdev; vmu_flash_write() local 501 struct maple_device *mdev; vmu_queryblocks() local 597 vmu_connect(struct maple_device *mdev) vmu_connect() argument 691 vmu_disconnect(struct maple_device *mdev) vmu_disconnect() argument 713 vmu_can_unload(struct maple_device *mdev) vmu_can_unload() argument 730 vmu_file_error(struct maple_device *mdev, void *recvbuf) vmu_file_error() argument 775 struct maple_device *mdev = to_maple_dev(dev); probe_maple_vmu() local 787 struct maple_device *mdev = to_maple_dev(dev); remove_maple_vmu() local [all...] |
/kernel/linux/linux-6.6/drivers/mtd/maps/ |
H A D | vmu-flash.c | 24 struct maple_device *mdev; member 60 struct maple_device *mdev; in ofs_to_block() local 66 mdev = mpart->mdev; in ofs_to_block() 67 card = maple_get_drvdata(mdev); in ofs_to_block() 91 struct maple_device *mdev; in vmu_blockread() local 94 mdev = mq->dev; in vmu_blockread() 95 card = maple_get_drvdata(mdev); in vmu_blockread() 114 struct maple_device *mdev; in maple_vmu_read_block() local 121 mdev in maple_vmu_read_block() 231 struct maple_device *mdev; maple_vmu_write_block() local 308 struct maple_device *mdev; vmu_flash_read_char() local 353 struct maple_device *mdev; vmu_flash_read() local 419 struct maple_device *mdev; vmu_flash_write() local 501 struct maple_device *mdev; vmu_queryblocks() local 597 vmu_connect(struct maple_device *mdev) vmu_connect() argument 691 vmu_disconnect(struct maple_device *mdev) vmu_disconnect() argument 713 vmu_can_unload(struct maple_device *mdev) vmu_can_unload() argument 730 vmu_file_error(struct maple_device *mdev, void *recvbuf) vmu_file_error() argument 775 struct maple_device *mdev = to_maple_dev(dev); probe_maple_vmu() local 787 struct maple_device *mdev = to_maple_dev(dev); remove_maple_vmu() local [all...] |
/kernel/linux/linux-6.6/net/mctp/ |
H A D | device.c | 33 struct mctp_dev *mdev = rcu_dereference(dev->mctp_ptr); in __mctp_dev_get() local 35 /* RCU guarantees that any mdev is still live. in __mctp_dev_get() 38 if (mdev) in __mctp_dev_get() 39 if (!refcount_inc_not_zero(&mdev->refs)) in __mctp_dev_get() 41 return mdev; in __mctp_dev_get() 62 struct mctp_dev *mdev, mctp_eid_t eid, in mctp_fill_addrinfo() 78 hdr->ifa_index = mdev->dev->ifindex; in mctp_fill_addrinfo() 95 static int mctp_dump_dev_addrinfo(struct mctp_dev *mdev, struct sk_buff *skb, in mctp_dump_dev_addrinfo() argument 104 for (; mcb->a_idx < mdev->num_addrs; mcb->a_idx++) { in mctp_dump_dev_addrinfo() 105 rc = mctp_fill_addrinfo(skb, mdev, mde in mctp_dump_dev_addrinfo() 61 mctp_fill_addrinfo(struct sk_buff *skb, struct mctp_dev *mdev, mctp_eid_t eid, int msg_type, u32 portid, u32 seq, int flag) mctp_fill_addrinfo() argument 121 struct mctp_dev *mdev; mctp_dump_addrinfo() local 159 mctp_addr_notify(struct mctp_dev *mdev, mctp_eid_t eid, int msg_type, struct sk_buff *req_skb, struct nlmsghdr *req_nlh) mctp_addr_notify() argument 197 struct mctp_dev *mdev; mctp_rtm_newaddr() local 260 struct mctp_dev *mdev; mctp_rtm_deladdr() local 308 mctp_dev_hold(struct mctp_dev *mdev) mctp_dev_hold() argument 313 mctp_dev_put(struct mctp_dev *mdev) mctp_dev_put() argument 342 struct mctp_dev *mdev; mctp_add_dev() local 367 struct mctp_dev *mdev; mctp_fill_link_af() local 380 struct mctp_dev *mdev; mctp_get_link_af_size() local 400 struct mctp_dev *mdev; mctp_set_link_af() local 429 struct mctp_dev *mdev; mctp_unregister() local 445 struct mctp_dev *mdev; mctp_register() local 485 struct mctp_dev *mdev; mctp_register_netdevice() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | params.c | 12 static u8 mlx5e_mpwrq_min_page_shift(struct mlx5_core_dev *mdev) in mlx5e_mpwrq_min_page_shift() argument 14 u8 min_page_shift = MLX5_CAP_GEN_2(mdev, log_min_mkey_entity_size); in mlx5e_mpwrq_min_page_shift() 19 u8 mlx5e_mpwrq_page_shift(struct mlx5_core_dev *mdev, struct mlx5e_xsk_param *xsk) in mlx5e_mpwrq_page_shift() argument 22 u8 min_page_shift = mlx5e_mpwrq_min_page_shift(mdev); in mlx5e_mpwrq_page_shift() 32 mlx5e_mpwrq_umr_mode(struct mlx5_core_dev *mdev, struct mlx5e_xsk_param *xsk) in mlx5e_mpwrq_umr_mode() argument 43 u8 page_shift = mlx5e_mpwrq_page_shift(mdev, xsk); in mlx5e_mpwrq_umr_mode() 101 u8 mlx5e_mpwrq_log_wqe_sz(struct mlx5_core_dev *mdev, u8 page_shift, in mlx5e_mpwrq_log_wqe_sz() argument 109 max_wqe_size = mlx5e_get_max_sq_aligned_wqebbs(mdev) * MLX5_SEND_WQE_BB; in mlx5e_mpwrq_log_wqe_sz() 119 u8 mlx5e_mpwrq_pages_per_wqe(struct mlx5_core_dev *mdev, u8 page_shift, in mlx5e_mpwrq_pages_per_wqe() argument 122 u8 log_wqe_sz = mlx5e_mpwrq_log_wqe_sz(mdev, page_shif in mlx5e_mpwrq_pages_per_wqe() 142 mlx5e_mpwrq_umr_wqe_sz(struct mlx5_core_dev *mdev, u8 page_shift, enum mlx5e_mpwrq_umr_mode umr_mode) mlx5e_mpwrq_umr_wqe_sz() argument 157 mlx5e_mpwrq_umr_wqebbs(struct mlx5_core_dev *mdev, u8 page_shift, enum mlx5e_mpwrq_umr_mode umr_mode) mlx5e_mpwrq_umr_wqebbs() argument 164 mlx5e_mpwrq_mtts_per_wqe(struct mlx5_core_dev *mdev, u8 page_shift, enum mlx5e_mpwrq_umr_mode umr_mode) mlx5e_mpwrq_mtts_per_wqe() argument 178 mlx5e_mpwrq_max_num_entries(struct mlx5_core_dev *mdev, enum mlx5e_mpwrq_umr_mode umr_mode) mlx5e_mpwrq_max_num_entries() argument 201 mlx5e_mpwrq_max_log_rq_size(struct mlx5_core_dev *mdev, u8 page_shift, enum mlx5e_mpwrq_umr_mode umr_mode) mlx5e_mpwrq_max_log_rq_size() argument 210 mlx5e_mpwrq_max_log_rq_pkts(struct mlx5_core_dev *mdev, u8 page_shift, enum mlx5e_mpwrq_umr_mode umr_mode) mlx5e_mpwrq_max_log_rq_pkts() argument 252 mlx5e_rx_get_linear_stride_sz(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk, bool mpwqe) mlx5e_rx_get_linear_stride_sz() argument 273 mlx5e_mpwqe_log_pkts_per_wqe(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk) mlx5e_mpwqe_log_pkts_per_wqe() argument 285 mlx5e_rx_is_linear_skb(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk) mlx5e_rx_is_linear_skb() argument 305 mlx5e_verify_rx_mpwqe_strides(struct mlx5_core_dev *mdev, u8 log_stride_sz, u8 log_num_strides, u8 page_shift, enum mlx5e_mpwrq_umr_mode umr_mode) mlx5e_verify_rx_mpwqe_strides() argument 327 mlx5e_verify_params_rx_mpwqe_strides(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk) mlx5e_verify_params_rx_mpwqe_strides() argument 341 mlx5e_rx_mpwqe_is_linear_skb(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk) mlx5e_rx_mpwqe_is_linear_skb() argument 367 mlx5e_mpwqe_get_log_rq_size(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk) mlx5e_mpwqe_get_log_rq_size() argument 395 mlx5e_shampo_get_log_hd_entry_size(struct mlx5_core_dev *mdev, struct mlx5e_params *params) mlx5e_shampo_get_log_hd_entry_size() argument 401 mlx5e_shampo_get_log_rsrv_size(struct mlx5_core_dev *mdev, struct mlx5e_params *params) mlx5e_shampo_get_log_rsrv_size() argument 407 mlx5e_shampo_get_log_pkt_per_rsrv(struct mlx5_core_dev *mdev, struct mlx5e_params *params) mlx5e_shampo_get_log_pkt_per_rsrv() argument 416 mlx5e_mpwqe_get_log_stride_size(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk) mlx5e_mpwqe_get_log_stride_size() argument 430 mlx5e_mpwqe_get_log_num_strides(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk) mlx5e_mpwqe_get_log_num_strides() argument 452 mlx5e_get_rq_headroom(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk) mlx5e_get_rq_headroom() argument 470 mlx5e_calc_sq_stop_room(struct mlx5_core_dev *mdev, struct mlx5e_params *params) mlx5e_calc_sq_stop_room() argument 487 mlx5e_validate_params(struct mlx5_core_dev *mdev, struct mlx5e_params *params) mlx5e_validate_params() argument 573 slow_pci_heuristic(struct mlx5_core_dev *mdev) slow_pci_heuristic() argument 589 mlx5e_mpwrq_validate_regular(struct mlx5_core_dev *mdev, struct mlx5e_params *params) mlx5e_mpwrq_validate_regular() argument 600 mlx5e_mpwrq_validate_xsk(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk) mlx5e_mpwrq_validate_xsk() argument 632 mlx5e_init_rq_type_params(struct mlx5_core_dev *mdev, struct mlx5e_params *params) mlx5e_init_rq_type_params() argument 640 mlx5e_set_rq_type(struct mlx5_core_dev *mdev, struct mlx5e_params *params) mlx5e_set_rq_type() argument 647 mlx5e_build_rq_params(struct mlx5_core_dev *mdev, struct mlx5e_params *params) mlx5e_build_rq_params() argument 733 mlx5e_build_rq_frags_info(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk, struct mlx5e_rq_frags_info *info, u32 *xdp_frag_size) mlx5e_build_rq_frags_info() argument 870 mlx5e_build_common_cq_param(struct mlx5_core_dev *mdev, struct mlx5e_cq_param *param) mlx5e_build_common_cq_param() argument 880 mlx5e_shampo_get_log_cq_size(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk) mlx5e_shampo_get_log_cq_size() argument 897 mlx5e_build_rx_cq_param(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk, struct mlx5e_cq_param *param) mlx5e_build_rx_cq_param() argument 934 rq_end_pad_mode(struct mlx5_core_dev *mdev, struct mlx5e_params *params) rq_end_pad_mode() argument 943 mlx5e_build_rq_param(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk, u16 q_counter, struct mlx5e_rq_param *param) mlx5e_build_rq_param() argument 1018 mlx5e_build_drop_rq_param(struct mlx5_core_dev *mdev, u16 q_counter, struct mlx5e_rq_param *param) mlx5e_build_drop_rq_param() argument 1033 mlx5e_build_tx_cq_param(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_cq_param *param) mlx5e_build_tx_cq_param() argument 1045 mlx5e_build_sq_param_common(struct mlx5_core_dev *mdev, struct mlx5e_sq_param *param) mlx5e_build_sq_param_common() argument 1057 mlx5e_build_sq_param(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_sq_param *param) mlx5e_build_sq_param() argument 1075 mlx5e_build_ico_cq_param(struct mlx5_core_dev *mdev, u8 log_wq_size, struct mlx5e_cq_param *param) mlx5e_build_ico_cq_param() argument 1093 mlx5e_shampo_hd_per_wqe(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_rq_param *rq_param) mlx5e_shampo_hd_per_wqe() argument 1115 mlx5e_shampo_hd_per_wq(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_rq_param *rq_param) mlx5e_shampo_hd_per_wq() argument 1128 mlx5e_shampo_icosq_sz(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_rq_param *rq_param) mlx5e_shampo_icosq_sz() argument 1148 mlx5e_mpwrq_total_umr_wqebbs(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk) mlx5e_mpwrq_total_umr_wqebbs() argument 1161 mlx5e_build_icosq_log_wq_sz(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_rq_param *rqp) mlx5e_build_icosq_log_wq_sz() argument 1237 mlx5e_build_async_icosq_log_wq_sz(struct mlx5_core_dev *mdev) mlx5e_build_async_icosq_log_wq_sz() argument 1245 mlx5e_build_icosq_param(struct mlx5_core_dev *mdev, u8 log_wq_size, struct mlx5e_sq_param *param) mlx5e_build_icosq_param() argument 1259 mlx5e_build_async_icosq_param(struct mlx5_core_dev *mdev, u8 log_wq_size, struct mlx5e_sq_param *param) mlx5e_build_async_icosq_param() argument 1276 mlx5e_build_xdpsq_param(struct mlx5_core_dev *mdev, struct mlx5e_params *params, struct mlx5e_xsk_param *xsk, struct mlx5e_sq_param *param) mlx5e_build_xdpsq_param() argument 1291 mlx5e_build_channel_param(struct mlx5_core_dev *mdev, struct mlx5e_params *params, u16 q_counter, struct mlx5e_channel_param *cparam) mlx5e_build_channel_param() argument [all...] |
/kernel/linux/linux-6.6/drivers/dma/ |
H A D | altera-msgdma.c | 206 * @mdev: Pointer to the Altera mSGDMA device structure 210 static struct msgdma_sw_desc *msgdma_get_descriptor(struct msgdma_device *mdev) in msgdma_get_descriptor() argument 215 spin_lock_irqsave(&mdev->lock, flags); in msgdma_get_descriptor() 216 desc = list_first_entry(&mdev->free_list, struct msgdma_sw_desc, node); in msgdma_get_descriptor() 218 spin_unlock_irqrestore(&mdev->lock, flags); in msgdma_get_descriptor() 227 * @mdev: Pointer to the Altera mSGDMA device structure 230 static void msgdma_free_descriptor(struct msgdma_device *mdev, in msgdma_free_descriptor() argument 235 mdev->desc_free_cnt++; in msgdma_free_descriptor() 236 list_add_tail(&desc->node, &mdev->free_list); in msgdma_free_descriptor() 238 mdev in msgdma_free_descriptor() 248 msgdma_free_desc_list(struct msgdma_device *mdev, struct list_head *list) msgdma_free_desc_list() argument 306 struct msgdma_device *mdev = to_mdev(tx->chan); msgdma_tx_submit() local 335 struct msgdma_device *mdev = to_mdev(dchan); msgdma_prep_memcpy() local 393 struct msgdma_device *mdev = to_mdev(dchan); msgdma_prep_slave_sg() local 464 struct msgdma_device *mdev = to_mdev(dchan); msgdma_dma_config() local 471 msgdma_reset(struct msgdma_device *mdev) msgdma_reset() argument 496 msgdma_copy_one(struct msgdma_device *mdev, struct msgdma_sw_desc *desc) msgdma_copy_one() argument 534 msgdma_copy_desc_to_fifo(struct msgdma_device *mdev, struct msgdma_sw_desc *desc) msgdma_copy_desc_to_fifo() argument 549 msgdma_start_transfer(struct msgdma_device *mdev) msgdma_start_transfer() argument 571 struct msgdma_device *mdev = to_mdev(chan); msgdma_issue_pending() local 583 msgdma_chan_desc_cleanup(struct msgdma_device *mdev) msgdma_chan_desc_cleanup() argument 608 msgdma_complete_descriptor(struct msgdma_device *mdev) msgdma_complete_descriptor() argument 625 msgdma_free_descriptors(struct msgdma_device *mdev) msgdma_free_descriptors() argument 638 struct msgdma_device *mdev = to_mdev(dchan); msgdma_free_chan_resources() local 655 struct msgdma_device *mdev = to_mdev(dchan); msgdma_alloc_chan_resources() local 684 struct msgdma_device *mdev = from_tasklet(mdev, t, irq_tasklet); msgdma_tasklet() local 731 struct msgdma_device *mdev = data; msgdma_irq_handler() local 755 msgdma_dev_remove(struct msgdma_device *mdev) msgdma_dev_remove() argument 809 struct msgdma_device *mdev; msgdma_probe() local 928 struct msgdma_device *mdev = platform_get_drvdata(pdev); msgdma_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_common.c | 40 void mlx5e_mkey_set_relaxed_ordering(struct mlx5_core_dev *mdev, void *mkc) in mlx5e_mkey_set_relaxed_ordering() argument 42 bool ro_write = MLX5_CAP_GEN(mdev, relaxed_ordering_write); in mlx5e_mkey_set_relaxed_ordering() 43 bool ro_read = MLX5_CAP_GEN(mdev, relaxed_ordering_read) || in mlx5e_mkey_set_relaxed_ordering() 44 (pcie_relaxed_ordering_enabled(mdev->pdev) && in mlx5e_mkey_set_relaxed_ordering() 45 MLX5_CAP_GEN(mdev, relaxed_ordering_read_pci_enabled)); in mlx5e_mkey_set_relaxed_ordering() 51 int mlx5e_create_mkey(struct mlx5_core_dev *mdev, u32 pdn, u32 *mkey) in mlx5e_create_mkey() argument 66 mlx5e_mkey_set_relaxed_ordering(mdev, mkc); in mlx5e_create_mkey() 71 err = mlx5_core_create_mkey(mdev, mkey, in, inlen); in mlx5e_create_mkey() 77 int mlx5e_create_mdev_resources(struct mlx5_core_dev *mdev) in mlx5e_create_mdev_resources() argument 79 struct mlx5e_hw_objs *res = &mdev in mlx5e_create_mdev_resources() 127 mlx5e_destroy_mdev_resources(struct mlx5_core_dev *mdev) mlx5e_destroy_mdev_resources() argument 143 struct mlx5_core_dev *mdev = priv->mdev; mlx5e_refresh_tirs() local [all...] |
/kernel/linux/linux-5.10/drivers/vfio/mdev/ |
H A D | mdev_core.c | 15 #include <linux/mdev.h> 30 struct device *mdev_parent_dev(struct mdev_device *mdev) in mdev_parent_dev() argument 32 return mdev->parent->dev; in mdev_parent_dev() 36 void *mdev_get_drvdata(struct mdev_device *mdev) in mdev_get_drvdata() argument 38 return mdev->driver_data; in mdev_get_drvdata() 42 void mdev_set_drvdata(struct mdev_device *mdev, void *data) in mdev_set_drvdata() argument 44 mdev->driver_data = data; in mdev_set_drvdata() 48 struct device *mdev_dev(struct mdev_device *mdev) in mdev_dev() argument 50 return &mdev->dev; in mdev_dev() 60 const guid_t *mdev_uuid(struct mdev_device *mdev) in mdev_uuid() argument 103 mdev_device_remove_common(struct mdev_device *mdev) mdev_device_remove_common() argument 126 struct mdev_device *mdev; mdev_device_remove_cb() local 255 mdev_device_free(struct mdev_device *mdev) mdev_device_free() argument 267 struct mdev_device *mdev = to_mdev_device(dev); mdev_device_release() local 276 struct mdev_device *mdev, *tmp; mdev_device_create() local 355 struct mdev_device *mdev, *tmp; mdev_device_remove() local 391 struct mdev_device *mdev = to_mdev_device(dev); mdev_set_iommu_device() local 401 struct mdev_device *mdev = to_mdev_device(dev); mdev_get_iommu_device() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/mgag200/ |
H A D | mgag200_drv.c | 48 static bool mgag200_has_sgram(struct mga_device *mdev) in mgag200_has_sgram() argument 50 struct drm_device *dev = &mdev->base; in mgag200_has_sgram() 61 static int mgag200_regs_init(struct mga_device *mdev) in mgag200_regs_init() argument 63 struct drm_device *dev = &mdev->base; in mgag200_regs_init() 67 switch (mdev->type) { in mgag200_regs_init() 70 if (mgag200_has_sgram(mdev)) in mgag200_regs_init() 79 if (mgag200_has_sgram(mdev)) in mgag200_regs_init() 108 mdev->rmmio_base = pci_resource_start(dev->pdev, 1); in mgag200_regs_init() 109 mdev->rmmio_size = pci_resource_len(dev->pdev, 1); in mgag200_regs_init() 111 if (!devm_request_mem_region(dev->dev, mdev in mgag200_regs_init() 128 mgag200_g200_interpret_bios(struct mga_device *mdev, const unsigned char *bios, size_t size) mgag200_g200_interpret_bios() argument 219 mgag200_g200_init_refclk(struct mga_device *mdev) mgag200_g200_init_refclk() argument 251 mgag200_g200se_init_unique_id(struct mga_device *mdev) mgag200_g200se_init_unique_id() argument 262 mgag200_device_init(struct mga_device *mdev, unsigned long flags) mgag200_device_init() argument 296 struct mga_device *mdev; mgag200_device_create() local 339 struct mga_device *mdev; mgag200_pci_probe() local [all...] |