/Linux-v5.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_dev.c | 57 static int parse_capability(struct hinic_hwdev *hwdev, in parse_capability() argument 60 struct hinic_cap *nic_cap = &hwdev->nic_cap; in parse_capability() 63 if (!HINIC_IS_VF(hwdev->hwif) && dev_cap->intr_type != INTR_MSIX_TYPE) in parse_capability() 66 num_aeqs = HINIC_HWIF_NUM_AEQS(hwdev->hwif); in parse_capability() 67 num_ceqs = HINIC_HWIF_NUM_CEQS(hwdev->hwif); in parse_capability() 68 num_irqs = HINIC_HWIF_NUM_IRQS(hwdev->hwif); in parse_capability() 76 if (!HINIC_IS_VF(hwdev->hwif)) in parse_capability() 84 if (!HINIC_IS_VF(hwdev->hwif)) { in parse_capability() 89 hwdev->port_id = dev_cap->port_id; in parse_capability() 102 struct hinic_hwdev *hwdev = &pfhwdev->hwdev; in get_capability() local [all …]
|
D | hinic_port.c | 40 struct hinic_hwdev *hwdev = nic_dev->hwdev; in change_mac() local 42 struct hinic_hwif *hwif = hwdev->hwif; in change_mac() 57 err = hinic_port_msg_cmd(hwdev, cmd, &port_mac_cmd, in change_mac() 119 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_get_mac() local 121 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_mac() 128 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_GET_MAC, in hinic_port_get_mac() 151 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_mtu() local 153 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_mtu() 172 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_CHANGE_MTU, in hinic_port_set_mtu() 193 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_add_vlan() local [all …]
|
D | hinic_sriov.c | 27 static int hinic_set_mac(struct hinic_hwdev *hwdev, const u8 *mac_addr, in hinic_set_mac() argument 38 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_MAC, &mac_info, in hinic_set_mac() 42 …dev_err(&hwdev->func_to_io.hwif->pdev->dev, "Failed to set MAC, err: %d, status: 0x%x, out size: 0… in hinic_set_mac() 50 static void hinic_notify_vf_link_status(struct hinic_hwdev *hwdev, u16 vf_id, in hinic_notify_vf_link_status() argument 53 struct vf_data_storage *vf_infos = hwdev->func_to_io.vf_infos; in hinic_notify_vf_link_status() 60 link.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_notify_vf_link_status() 61 err = hinic_mbox_to_vf(hwdev, HINIC_MOD_L2NIC, in hinic_notify_vf_link_status() 66 dev_err(&hwdev->hwif->pdev->dev, in hinic_notify_vf_link_status() 74 void hinic_notify_all_vfs_link_changed(struct hinic_hwdev *hwdev, in hinic_notify_all_vfs_link_changed() argument 77 struct hinic_func_to_io *nic_io = &hwdev->func_to_io; in hinic_notify_all_vfs_link_changed() [all …]
|
D | hinic_hw_mbox.c | 191 static bool check_func_id(struct hinic_hwdev *hwdev, u16 src_func_idx, in check_func_id() argument 197 dev_warn(&hwdev->hwif->pdev->dev, in check_func_id() 206 dev_warn(&hwdev->hwif->pdev->dev, in check_func_id() 215 bool hinic_mbox_check_func_id_8B(struct hinic_hwdev *hwdev, u16 func_idx, in hinic_mbox_check_func_id_8B() argument 218 return check_func_id(hwdev, func_idx, buf_in, in_size, in hinic_mbox_check_func_id_8B() 229 int hinic_register_pf_mbox_cb(struct hinic_hwdev *hwdev, in hinic_register_pf_mbox_cb() argument 233 struct hinic_mbox_func_to_func *func_to_func = hwdev->func_to_func; in hinic_register_pf_mbox_cb() 252 int hinic_register_vf_mbox_cb(struct hinic_hwdev *hwdev, in hinic_register_vf_mbox_cb() argument 256 struct hinic_mbox_func_to_func *func_to_func = hwdev->func_to_func; in hinic_register_vf_mbox_cb() 273 void hinic_unregister_pf_mbox_cb(struct hinic_hwdev *hwdev, in hinic_unregister_pf_mbox_cb() argument [all …]
|
D | hinic_hw_mbox.h | 29 bool (*check_cmd)(struct hinic_hwdev *hwdev, u16 src_func_idx, 89 struct hinic_hwdev *hwdev; member 126 int (*cmd_msg_handler)(void *hwdev, u16 vf_id, 131 bool hinic_mbox_check_func_id_8B(struct hinic_hwdev *hwdev, u16 func_idx, 134 bool hinic_mbox_check_cmd_valid(struct hinic_hwdev *hwdev, 139 int hinic_register_pf_mbox_cb(struct hinic_hwdev *hwdev, 143 int hinic_register_vf_mbox_cb(struct hinic_hwdev *hwdev, 147 void hinic_unregister_pf_mbox_cb(struct hinic_hwdev *hwdev, 150 void hinic_unregister_vf_mbox_cb(struct hinic_hwdev *hwdev, 157 int hinic_func_to_func_init(struct hinic_hwdev *hwdev); [all …]
|
D | hinic_hw_dev.h | 398 struct hinic_hwdev hwdev; member 544 void hinic_hwdev_cb_register(struct hinic_hwdev *hwdev, 550 void hinic_hwdev_cb_unregister(struct hinic_hwdev *hwdev, 553 int hinic_port_msg_cmd(struct hinic_hwdev *hwdev, enum hinic_port_cmd cmd, 557 int hinic_hilink_msg_cmd(struct hinic_hwdev *hwdev, enum hinic_hilink_cmd cmd, 561 int hinic_hwdev_ifup(struct hinic_hwdev *hwdev, u16 sq_depth, u16 rq_depth); 563 void hinic_hwdev_ifdown(struct hinic_hwdev *hwdev); 567 void hinic_free_hwdev(struct hinic_hwdev *hwdev); 569 int hinic_hwdev_max_num_qps(struct hinic_hwdev *hwdev); 571 int hinic_hwdev_num_qps(struct hinic_hwdev *hwdev); [all …]
|
D | hinic_main.c | 128 int i, num_qps = hinic_hwdev_num_qps(nic_dev->hwdev); in update_nic_stats() 145 int err, i, j, num_txqs = hinic_hwdev_num_qps(nic_dev->hwdev); in create_txqs() 160 struct hinic_sq *sq = hinic_hwdev_get_sq(nic_dev->hwdev, i); in create_txqs() 196 int num_txqs = hinic_hwdev_num_qps(nic_dev->hwdev); in enable_txqs_napi() 205 int num_txqs = hinic_hwdev_num_qps(nic_dev->hwdev); in disable_txqs_napi() 218 int i, num_txqs = hinic_hwdev_num_qps(nic_dev->hwdev); in free_txqs() 243 int err, i, j, num_rxqs = hinic_hwdev_num_qps(nic_dev->hwdev); in create_rxqs() 258 struct hinic_rq *rq = hinic_hwdev_get_rq(nic_dev->hwdev, i); in create_rxqs() 297 int i, num_rxqs = hinic_hwdev_num_qps(nic_dev->hwdev); in free_rxqs() 318 err = hinic_set_max_qnum(nic_dev, nic_dev->hwdev->nic_cap.max_qps); in hinic_configure_max_qnum() [all …]
|
D | hinic_devlink.c | 33 dev_err(&priv->hwdev->hwif->pdev->dev, "Wrong fw_magic read from file, fw_magic: 0x%x\n", in check_image_valid() 39 dev_err(&priv->hwdev->hwif->pdev->dev, "Wrong fw_type_num read from file, fw_type_num: 0x%x\n", in check_image_valid() 53 dev_err(&priv->hwdev->hwif->pdev->dev, "Wrong data size read from file\n"); in check_image_valid() 75 dev_err(&priv->hwdev->hwif->pdev->dev, "Duplicate section type: %u\n", in check_image_integrity() 94 …dev_err(&priv->hwdev->hwif->pdev->dev, "Check file integrity failed, valid: 0x%x or 0x%lx, current… in check_image_integrity() 98 dev_err(&priv->hwdev->hwif->pdev->dev, "Check file integrity failed, valid:0x%x, current: 0x%x\n", in check_image_integrity() 109 if (hinic_get_board_info(priv->hwdev, &board_info)) { in check_image_device_type() 110 dev_err(&priv->hwdev->hwif->pdev->dev, "Get board info failed\n"); in check_image_device_type() 117 …dev_err(&priv->hwdev->hwif->pdev->dev, "The device type of upgrade file doesn't match the device t… in check_image_device_type() 118 dev_err(&priv->hwdev->hwif->pdev->dev, "The image device type: 0x%x, firmware device type: 0x%x\n", in check_image_device_type() [all …]
|
D | hinic_hw_mgmt.c | 284 hinic_dump_aeq_info(pf_to_mgmt->hwdev); in msg_to_mgmt_sync() 373 return hinic_mbox_to_pf(pf_to_mgmt->hwdev, mod, cmd, buf_in, in hinic_msg_to_mgmt() 624 struct hinic_hwdev *hwdev = &pfhwdev->hwdev; in hinic_pf_to_mgmt_init() local 629 pf_to_mgmt->hwdev = hwdev; in hinic_pf_to_mgmt_init() 634 err = hinic_health_reporters_create(hwdev->devlink_dev); in hinic_pf_to_mgmt_init() 642 hinic_health_reporters_destroy(hwdev->devlink_dev); in hinic_pf_to_mgmt_init() 650 hinic_health_reporters_destroy(hwdev->devlink_dev); in hinic_pf_to_mgmt_init() 657 hinic_health_reporters_destroy(hwdev->devlink_dev); in hinic_pf_to_mgmt_init() 661 hinic_aeq_register_hw_cb(&hwdev->aeqs, HINIC_MSG_FROM_MGMT_CPU, in hinic_pf_to_mgmt_init() 674 struct hinic_hwdev *hwdev = &pfhwdev->hwdev; in hinic_pf_to_mgmt_free() local [all …]
|
D | hinic_debugfs.c | 29 return nic_dev->hwdev->func_to_io.global_qpn + sq->qid; in hinic_dbg_get_sq_info() 59 return nic_dev->hwdev->func_to_io.global_qpn + rq->qid; in hinic_dbg_get_rq_info() 97 read_data->lt_index = HINIC_HWIF_FUNC_IDX(nic_dev->hwdev->hwif); in hinic_dbg_get_func_table() 100 err = hinic_port_msg_cmd(nic_dev->hwdev, HINIC_PORT_CMD_RD_LINE_TBL, read_data, in hinic_dbg_get_func_table() 252 if (HINIC_IS_VF(dev->hwdev->hwif)) in hinic_func_table_debug_add() 261 if (!HINIC_IS_VF(dev->hwdev->hwif) && dev->dbg) in hinic_func_table_debug_rem() 287 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_func_tbl_dbgfs_init() 293 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_func_tbl_dbgfs_uninit() 299 nic_dev->dbgfs_root = debugfs_create_dir(pci_name(nic_dev->hwdev->hwif->pdev), in hinic_dbg_init()
|
D | hinic_rx.c | 132 struct hinic_hwdev *hwdev = nic_dev->hwdev; in rx_alloc_skb() local 133 struct hinic_hwif *hwif = hwdev->hwif; in rx_alloc_skb() 169 struct hinic_hwdev *hwdev = nic_dev->hwdev; in rx_unmap_skb() local 170 struct hinic_hwif *hwif = hwdev->hwif; in rx_unmap_skb() 475 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in rx_poll() 476 hinic_hwdev_set_msix_state(nic_dev->hwdev, in rx_poll() 505 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in rx_irq() 506 hinic_hwdev_set_msix_state(nic_dev->hwdev, in rx_irq() 511 hinic_hwdev_msix_cnt_set(nic_dev->hwdev, rq->msix_entry); in rx_irq() 522 struct hinic_hwdev *hwdev = nic_dev->hwdev; in rx_request_irq() local [all …]
|
D | hinic_ethtool.c | 300 err = hinic_get_link_mode(nic_dev->hwdev, &link_mode); in hinic_get_link_ksettings() 310 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) { in hinic_get_link_ksettings() 311 err = hinic_get_hw_pause_info(nic_dev->hwdev, &pause_info); in hinic_get_link_ksettings() 375 err = hinic_get_link_mode(nic_dev->hwdev, &link_mode); in hinic_is_speed_legal() 434 err = hinic_set_autoneg(nic_dev->hwdev, in set_link_settings_separate_cmd() 448 err = hinic_set_speed(nic_dev->hwdev, speed_level); in set_link_settings_separate_cmd() 489 settings.func_id = HINIC_HWIF_FUNC_IDX(nic_dev->hwdev->hwif); in hinic_set_settings_to_hw() 494 err = hinic_set_link_settings(nic_dev->hwdev, &settings); in hinic_set_settings_to_hw() 542 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_get_drvinfo() local 543 struct hinic_hwif *hwif = hwdev->hwif; in hinic_get_drvinfo() [all …]
|
D | hinic_sriov.h | 28 struct hinic_hwdev *hwdev; member 96 void hinic_notify_all_vfs_link_changed(struct hinic_hwdev *hwdev, 103 int hinic_vf_func_init(struct hinic_hwdev *hwdev); 105 void hinic_vf_func_free(struct hinic_hwdev *hwdev);
|
D | hinic_hw_eqs.c | 542 struct hinic_hwdev *hwdev = eq->hwdev; in set_ceq_ctrl_reg() local 549 pfhwdev = container_of(hwdev, struct hinic_pfhwdev, hwdev); in set_ceq_ctrl_reg() 556 ceq_ctrl.func_id = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in set_ceq_ctrl_reg() 564 dev_err(&hwdev->hwif->pdev->dev, in set_ceq_ctrl_reg() 930 ceqs->ceq[q_id].hwdev = ceqs->hwdev; in hinic_ceqs_init() 960 void hinic_dump_ceq_info(struct hinic_hwdev *hwdev) in hinic_dump_ceq_info() argument 966 for (q_id = 0; q_id < hwdev->func_to_io.ceqs.num_ceqs; q_id++) { in hinic_dump_ceq_info() 967 eq = &hwdev->func_to_io.ceqs.ceq[q_id]; in hinic_dump_ceq_info() 969 ci = hinic_hwif_read_reg(hwdev->hwif, addr); in hinic_dump_ceq_info() 971 pi = hinic_hwif_read_reg(hwdev->hwif, addr); in hinic_dump_ceq_info() [all …]
|
D | hinic_tx.c | 136 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_map_skb() local 137 struct hinic_hwif *hwif = hwdev->hwif; in tx_map_skb() 187 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_unmap_skb() local 188 struct hinic_hwif *hwif = hwdev->hwif; in tx_unmap_skb() 766 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in free_tx_poll() 767 hinic_hwdev_set_msix_state(nic_dev->hwdev, in free_tx_poll() 784 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in tx_irq() 786 hinic_hwdev_set_msix_state(nic_dev->hwdev, in tx_irq() 790 hinic_hwdev_msix_cnt_set(nic_dev->hwdev, txq->sq->msix_entry); in tx_irq() 801 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_request_irq() local [all …]
|
/Linux-v5.10/drivers/gpu/drm/arm/ |
D | malidp_hw.c | 270 static int malidp500_query_hw(struct malidp_hw_device *hwdev) in malidp500_query_hw() argument 272 u32 conf = malidp_hw_read(hwdev, MALIDP500_CONFIG_ID); in malidp500_query_hw() 276 hwdev->min_line_size = 2; in malidp500_query_hw() 277 hwdev->max_line_size = SZ_2K * ln_size_mult; in malidp500_query_hw() 278 hwdev->rotation_memory[0] = SZ_1K * 64 * ln_size_mult; in malidp500_query_hw() 279 hwdev->rotation_memory[1] = 0; /* no second rotation memory bank */ in malidp500_query_hw() 284 static void malidp500_enter_config_mode(struct malidp_hw_device *hwdev) in malidp500_enter_config_mode() argument 288 malidp_hw_setbits(hwdev, MALIDP500_DC_CONFIG_REQ, MALIDP500_DC_CONTROL); in malidp500_enter_config_mode() 290 status = malidp_hw_read(hwdev, hwdev->hw->map.dc_base + MALIDP_REG_STATUS); in malidp500_enter_config_mode() 303 static void malidp500_leave_config_mode(struct malidp_hw_device *hwdev) in malidp500_leave_config_mode() argument [all …]
|
D | malidp_hw.h | 147 int (*query_hw)(struct malidp_hw_device *hwdev); 152 void (*enter_config_mode)(struct malidp_hw_device *hwdev); 157 void (*leave_config_mode)(struct malidp_hw_device *hwdev); 162 bool (*in_config_mode)(struct malidp_hw_device *hwdev); 171 void (*set_config_valid)(struct malidp_hw_device *hwdev, u8 value); 177 void (*modeset)(struct malidp_hw_device *hwdev, struct videomode *m); 183 int (*rotmem_required)(struct malidp_hw_device *hwdev, u16 w, u16 h, 186 int (*se_set_scaling_coeffs)(struct malidp_hw_device *hwdev, 190 long (*se_calc_mclk)(struct malidp_hw_device *hwdev, 203 int (*enable_memwrite)(struct malidp_hw_device *hwdev, dma_addr_t *addrs, [all …]
|
D | malidp_drv.c | 41 static void malidp_write_gamma_table(struct malidp_hw_device *hwdev, in malidp_write_gamma_table() argument 52 malidp_hw_write(hwdev, gamma_write_mask, in malidp_write_gamma_table() 53 hwdev->hw->map.coeffs_base + MALIDP_COEF_TABLE_ADDR); in malidp_write_gamma_table() 55 malidp_hw_write(hwdev, data[i], in malidp_write_gamma_table() 56 hwdev->hw->map.coeffs_base + in malidp_write_gamma_table() 64 struct malidp_hw_device *hwdev = malidp->dev; in malidp_atomic_commit_update_gamma() local 70 malidp_hw_clearbits(hwdev, in malidp_atomic_commit_update_gamma() 79 malidp_write_gamma_table(hwdev, mc->gamma_coeffs); in malidp_atomic_commit_update_gamma() 81 malidp_hw_setbits(hwdev, MALIDP_DISP_FUNC_GAMMA, in malidp_atomic_commit_update_gamma() 91 struct malidp_hw_device *hwdev = malidp->dev; in malidp_atomic_commit_update_coloradj() local [all …]
|
D | malidp_crtc.c | 28 struct malidp_hw_device *hwdev = malidp->dev; in malidp_crtc_mode_valid() local 37 rate = clk_round_rate(hwdev->pxlclk, req_rate); in malidp_crtc_mode_valid() 52 struct malidp_hw_device *hwdev = malidp->dev; in malidp_crtc_atomic_enable() local 62 clk_prepare_enable(hwdev->pxlclk); in malidp_crtc_atomic_enable() 65 clk_set_rate(hwdev->pxlclk, crtc->state->adjusted_mode.crtc_clock * 1000); in malidp_crtc_atomic_enable() 67 hwdev->hw->modeset(hwdev, &vm); in malidp_crtc_atomic_enable() 68 hwdev->hw->leave_config_mode(hwdev); in malidp_crtc_atomic_enable() 76 struct malidp_hw_device *hwdev = malidp->dev; in malidp_crtc_atomic_disable() local 83 hwdev->hw->enter_config_mode(hwdev); in malidp_crtc_atomic_disable() 85 clk_disable_unprepare(hwdev->pxlclk); in malidp_crtc_atomic_disable() [all …]
|
D | malidp_planes.c | 520 ms->format = malidp_hw_get_format_id(&mp->hwdev->hw->map, in malidp_de_plane_check() 528 u8 alignment = malidp_hw_get_pitch_align(mp->hwdev, rotated); in malidp_de_plane_check() 549 if ((state->crtc_w > mp->hwdev->max_line_size) || in malidp_de_plane_check() 550 (state->crtc_h > mp->hwdev->max_line_size) || in malidp_de_plane_check() 551 (state->crtc_w < mp->hwdev->min_line_size) || in malidp_de_plane_check() 552 (state->crtc_h < mp->hwdev->min_line_size)) in malidp_de_plane_check() 561 !(mp->hwdev->hw->features & MALIDP_DEVICE_LV_HAS_3_STRIDES) && in malidp_de_plane_check() 594 val = mp->hwdev->hw->rotmem_required(mp->hwdev, state->crtc_w, in malidp_de_plane_check() 625 num_strides = (mp->hwdev->hw->features & in malidp_de_set_plane_pitches() 636 malidp_hw_write(mp->hwdev, pitches[i] * block_h, in malidp_de_set_plane_pitches() [all …]
|
/Linux-v5.10/include/linux/ |
D | pci-dma-compat.h | 17 pci_alloc_consistent(struct pci_dev *hwdev, size_t size, in pci_alloc_consistent() argument 20 return dma_alloc_coherent(&hwdev->dev, size, dma_handle, GFP_ATOMIC); in pci_alloc_consistent() 24 pci_zalloc_consistent(struct pci_dev *hwdev, size_t size, in pci_zalloc_consistent() argument 27 return dma_alloc_coherent(&hwdev->dev, size, dma_handle, GFP_ATOMIC); in pci_zalloc_consistent() 31 pci_free_consistent(struct pci_dev *hwdev, size_t size, in pci_free_consistent() argument 34 dma_free_coherent(&hwdev->dev, size, vaddr, dma_handle); in pci_free_consistent() 38 pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, int direction) in pci_map_single() argument 40 return dma_map_single(&hwdev->dev, ptr, size, (enum dma_data_direction)direction); in pci_map_single() 44 pci_unmap_single(struct pci_dev *hwdev, dma_addr_t dma_addr, in pci_unmap_single() argument 47 dma_unmap_single(&hwdev->dev, dma_addr, size, (enum dma_data_direction)direction); in pci_unmap_single() [all …]
|
/Linux-v5.10/drivers/xen/ |
D | swiotlb-xen.c | 277 xen_swiotlb_alloc_coherent(struct device *hwdev, size_t size, in xen_swiotlb_alloc_coherent() argument 303 ret = xen_alloc_coherent_pages(hwdev, size, dma_handle, flags, attrs); in xen_swiotlb_alloc_coherent() 308 if (hwdev && hwdev->coherent_dma_mask) in xen_swiotlb_alloc_coherent() 309 dma_mask = hwdev->coherent_dma_mask; in xen_swiotlb_alloc_coherent() 315 phys = dma_to_phys(hwdev, *dma_handle); in xen_swiotlb_alloc_coherent() 316 dev_addr = xen_phys_to_dma(hwdev, phys); in xen_swiotlb_alloc_coherent() 323 xen_free_coherent_pages(hwdev, size, ret, (dma_addr_t)phys, attrs); in xen_swiotlb_alloc_coherent() 326 *dma_handle = phys_to_dma(hwdev, *dma_handle); in xen_swiotlb_alloc_coherent() 334 xen_swiotlb_free_coherent(struct device *hwdev, size_t size, void *vaddr, in xen_swiotlb_free_coherent() argument 342 if (hwdev && hwdev->coherent_dma_mask) in xen_swiotlb_free_coherent() [all …]
|
/Linux-v5.10/drivers/hwmon/ |
D | hwmon.c | 115 struct hwmon_device *hwdev = to_hwmon_device(dev); in hwmon_dev_release() local 117 if (hwdev->group.attrs) in hwmon_dev_release() 118 hwmon_free_attrs(hwdev->group.attrs); in hwmon_dev_release() 119 kfree(hwdev->groups); in hwmon_dev_release() 120 kfree(hwdev); in hwmon_dev_release() 142 struct hwmon_device *hwdev = to_hwmon_device(tdata->dev); in hwmon_thermal_get_temp() local 146 ret = hwdev->chip->ops->read(tdata->dev, hwmon_temp, hwmon_temp_input, in hwmon_thermal_get_temp() 167 struct hwmon_device *hwdev = to_hwmon_device(dev); in hwmon_thermal_add_sensor() local 193 list_add(&tdata->node, &hwdev->tzdata); in hwmon_thermal_add_sensor() 200 struct hwmon_device *hwdev = to_hwmon_device(dev); in hwmon_thermal_register_sensors() local [all …]
|
/Linux-v5.10/drivers/infiniband/hw/qib/ |
D | qib_user_pages.c | 59 int qib_map_page(struct pci_dev *hwdev, struct page *page, dma_addr_t *daddr) in qib_map_page() argument 63 phys = pci_map_page(hwdev, page, 0, PAGE_SIZE, PCI_DMA_FROMDEVICE); in qib_map_page() 64 if (pci_dma_mapping_error(hwdev, phys)) in qib_map_page() 68 pci_unmap_page(hwdev, phys, PAGE_SIZE, PCI_DMA_FROMDEVICE); in qib_map_page() 69 phys = pci_map_page(hwdev, page, 0, PAGE_SIZE, in qib_map_page() 71 if (pci_dma_mapping_error(hwdev, phys)) in qib_map_page()
|
/Linux-v5.10/include/xen/arm/ |
D | page-coherent.h | 8 static inline void *xen_alloc_coherent_pages(struct device *hwdev, size_t size, in xen_alloc_coherent_pages() argument 11 return dma_direct_alloc(hwdev, size, dma_handle, flags, attrs); in xen_alloc_coherent_pages() 14 static inline void xen_free_coherent_pages(struct device *hwdev, size_t size, in xen_free_coherent_pages() argument 17 dma_direct_free(hwdev, size, cpu_addr, dma_handle, attrs); in xen_free_coherent_pages()
|