/linux-6.6.21/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_dev.c | 51 static int parse_capability(struct hinic_hwdev *hwdev, in parse_capability() argument 54 struct hinic_cap *nic_cap = &hwdev->nic_cap; in parse_capability() 57 if (!HINIC_IS_VF(hwdev->hwif) && dev_cap->intr_type != INTR_MSIX_TYPE) in parse_capability() 60 num_aeqs = HINIC_HWIF_NUM_AEQS(hwdev->hwif); in parse_capability() 61 num_ceqs = HINIC_HWIF_NUM_CEQS(hwdev->hwif); in parse_capability() 62 num_irqs = HINIC_HWIF_NUM_IRQS(hwdev->hwif); in parse_capability() 70 if (!HINIC_IS_VF(hwdev->hwif)) in parse_capability() 78 if (!HINIC_IS_VF(hwdev->hwif)) { in parse_capability() 83 hwdev->port_id = dev_cap->port_id; in parse_capability() 96 struct hinic_hwdev *hwdev = &pfhwdev->hwdev; in get_capability() local [all …]
|
D | hinic_port.c | 37 struct hinic_hwdev *hwdev = nic_dev->hwdev; in change_mac() local 39 struct hinic_hwif *hwif = hwdev->hwif; in change_mac() 54 err = hinic_port_msg_cmd(hwdev, cmd, &port_mac_cmd, in change_mac() 116 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_get_mac() local 118 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_get_mac() 125 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_GET_MAC, in hinic_port_get_mac() 147 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_set_mtu() local 149 struct hinic_hwif *hwif = hwdev->hwif; in hinic_port_set_mtu() 157 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_CHANGE_MTU, in hinic_port_set_mtu() 178 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_port_add_vlan() local [all …]
|
D | hinic_sriov.c | 29 static int hinic_set_mac(struct hinic_hwdev *hwdev, const u8 *mac_addr, in hinic_set_mac() argument 40 err = hinic_port_msg_cmd(hwdev, HINIC_PORT_CMD_SET_MAC, &mac_info, in hinic_set_mac() 44 …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() 52 static void hinic_notify_vf_link_status(struct hinic_hwdev *hwdev, u16 vf_id, in hinic_notify_vf_link_status() argument 55 struct vf_data_storage *vf_infos = hwdev->func_to_io.vf_infos; in hinic_notify_vf_link_status() 62 link.func_id = hinic_glb_pf_vf_offset(hwdev->hwif) + vf_id; in hinic_notify_vf_link_status() 63 err = hinic_mbox_to_vf(hwdev, HINIC_MOD_L2NIC, in hinic_notify_vf_link_status() 68 dev_err(&hwdev->hwif->pdev->dev, in hinic_notify_vf_link_status() 76 void hinic_notify_all_vfs_link_changed(struct hinic_hwdev *hwdev, in hinic_notify_all_vfs_link_changed() argument 79 struct hinic_func_to_io *nic_io = &hwdev->func_to_io; in hinic_notify_all_vfs_link_changed() [all …]
|
D | hinic_hw_mbox.c | 186 static bool check_func_id(struct hinic_hwdev *hwdev, u16 src_func_idx, in check_func_id() argument 192 dev_warn(&hwdev->hwif->pdev->dev, in check_func_id() 201 dev_warn(&hwdev->hwif->pdev->dev, in check_func_id() 210 bool hinic_mbox_check_func_id_8B(struct hinic_hwdev *hwdev, u16 func_idx, in hinic_mbox_check_func_id_8B() argument 213 return check_func_id(hwdev, func_idx, buf_in, in_size, in hinic_mbox_check_func_id_8B() 224 int hinic_register_pf_mbox_cb(struct hinic_hwdev *hwdev, in hinic_register_pf_mbox_cb() argument 228 struct hinic_mbox_func_to_func *func_to_func = hwdev->func_to_func; in hinic_register_pf_mbox_cb() 247 int hinic_register_vf_mbox_cb(struct hinic_hwdev *hwdev, in hinic_register_vf_mbox_cb() argument 251 struct hinic_mbox_func_to_func *func_to_func = hwdev->func_to_func; in hinic_register_vf_mbox_cb() 268 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, 153 int hinic_func_to_func_init(struct hinic_hwdev *hwdev); [all …]
|
D | hinic_main.c | 114 int i, num_qps = hinic_hwdev_num_qps(nic_dev->hwdev); in gather_nic_stats() 131 int err, i, j, num_txqs = hinic_hwdev_num_qps(nic_dev->hwdev); in create_txqs() 145 struct hinic_sq *sq = hinic_hwdev_get_sq(nic_dev->hwdev, i); in create_txqs() 180 int num_txqs = hinic_hwdev_num_qps(nic_dev->hwdev); in enable_txqs_napi() 189 int num_txqs = hinic_hwdev_num_qps(nic_dev->hwdev); in disable_txqs_napi() 202 int i, num_txqs = hinic_hwdev_num_qps(nic_dev->hwdev); in free_txqs() 227 int err, i, j, num_rxqs = hinic_hwdev_num_qps(nic_dev->hwdev); in create_rxqs() 241 struct hinic_rq *rq = hinic_hwdev_get_rq(nic_dev->hwdev, i); in create_rxqs() 280 int i, num_rxqs = hinic_hwdev_num_qps(nic_dev->hwdev); in free_rxqs() 299 return hinic_set_max_qnum(nic_dev, nic_dev->hwdev->nic_cap.max_qps); in hinic_configure_max_qnum() [all …]
|
D | hinic_hw_dev.h | 464 struct hinic_hwdev hwdev; member 610 void hinic_hwdev_cb_register(struct hinic_hwdev *hwdev, 616 void hinic_hwdev_cb_unregister(struct hinic_hwdev *hwdev, 619 int hinic_port_msg_cmd(struct hinic_hwdev *hwdev, enum hinic_port_cmd cmd, 623 int hinic_hilink_msg_cmd(struct hinic_hwdev *hwdev, enum hinic_hilink_cmd cmd, 627 int hinic_hwdev_ifup(struct hinic_hwdev *hwdev, u16 sq_depth, u16 rq_depth); 629 void hinic_hwdev_ifdown(struct hinic_hwdev *hwdev); 633 void hinic_free_hwdev(struct hinic_hwdev *hwdev); 635 int hinic_hwdev_num_qps(struct hinic_hwdev *hwdev); 637 struct hinic_sq *hinic_hwdev_get_sq(struct hinic_hwdev *hwdev, int i); [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() 51 dev_err(&priv->hwdev->hwif->pdev->dev, "Wrong data size read from file\n"); in check_image_valid() 73 dev_err(&priv->hwdev->hwif->pdev->dev, "Duplicate section type: %u\n", in check_image_integrity() 92 …dev_err(&priv->hwdev->hwif->pdev->dev, "Check file integrity failed, valid: 0x%x or 0x%lx, current… in check_image_integrity() 96 dev_err(&priv->hwdev->hwif->pdev->dev, "Check file integrity failed, valid:0x%x, current: 0x%x\n", in check_image_integrity() 107 if (hinic_get_board_info(priv->hwdev, &board_info)) { in check_image_device_type() 108 dev_err(&priv->hwdev->hwif->pdev->dev, "Get board info failed\n"); in check_image_device_type() 115 …dev_err(&priv->hwdev->hwif->pdev->dev, "The device type of upgrade file doesn't match the device t… in check_image_device_type() 116 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() 620 struct hinic_hwdev *hwdev = &pfhwdev->hwdev; in hinic_pf_to_mgmt_init() local 625 pf_to_mgmt->hwdev = hwdev; in hinic_pf_to_mgmt_init() 630 err = hinic_health_reporters_create(hwdev->devlink_dev); in hinic_pf_to_mgmt_init() 638 hinic_health_reporters_destroy(hwdev->devlink_dev); in hinic_pf_to_mgmt_init() 647 hinic_health_reporters_destroy(hwdev->devlink_dev); in hinic_pf_to_mgmt_init() 655 hinic_health_reporters_destroy(hwdev->devlink_dev); in hinic_pf_to_mgmt_init() 659 hinic_aeq_register_hw_cb(&hwdev->aeqs, HINIC_MSG_FROM_MGMT_CPU, in hinic_pf_to_mgmt_init() 672 struct hinic_hwdev *hwdev = &pfhwdev->hwdev; in hinic_pf_to_mgmt_free() local [all …]
|
D | hinic_rx.c | 131 struct hinic_hwdev *hwdev = nic_dev->hwdev; in rx_alloc_skb() local 132 struct hinic_hwif *hwif = hwdev->hwif; in rx_alloc_skb() 166 struct hinic_hwdev *hwdev = nic_dev->hwdev; in rx_unmap_skb() local 167 struct hinic_hwif *hwif = hwdev->hwif; in rx_unmap_skb() 470 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in rx_poll() 471 hinic_hwdev_set_msix_state(nic_dev->hwdev, in rx_poll() 501 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in rx_irq() 502 hinic_hwdev_set_msix_state(nic_dev->hwdev, in rx_irq() 507 hinic_hwdev_msix_cnt_set(nic_dev->hwdev, rq->msix_entry); in rx_irq() 518 struct hinic_hwdev *hwdev = nic_dev->hwdev; in rx_request_irq() 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() 98 read_data->lt_index = HINIC_HWIF_FUNC_IDX(nic_dev->hwdev->hwif); in hinic_dbg_get_func_table() 101 err = hinic_port_msg_cmd(nic_dev->hwdev, HINIC_PORT_CMD_RD_LINE_TBL, read_data, in hinic_dbg_get_func_table() 258 if (HINIC_IS_VF(dev->hwdev->hwif)) in hinic_func_table_debug_add() 267 if (!HINIC_IS_VF(dev->hwdev->hwif) && dev->dbg) in hinic_func_table_debug_rem() 293 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_func_tbl_dbgfs_init() 299 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) in hinic_func_tbl_dbgfs_uninit() 305 nic_dev->dbgfs_root = debugfs_create_dir(pci_name(nic_dev->hwdev->hwif->pdev), in hinic_dbg_init()
|
D | hinic_ethtool.c | 299 err = hinic_get_link_mode(nic_dev->hwdev, &link_mode); in hinic_get_link_ksettings() 309 if (!HINIC_IS_VF(nic_dev->hwdev->hwif)) { in hinic_get_link_ksettings() 310 err = hinic_get_hw_pause_info(nic_dev->hwdev, &pause_info); in hinic_get_link_ksettings() 372 err = hinic_get_link_mode(nic_dev->hwdev, &link_mode); in hinic_is_speed_legal() 431 err = hinic_set_autoneg(nic_dev->hwdev, in set_link_settings_separate_cmd() 445 err = hinic_set_speed(nic_dev->hwdev, speed_level); in set_link_settings_separate_cmd() 481 settings.func_id = HINIC_HWIF_FUNC_IDX(nic_dev->hwdev->hwif); in hinic_set_settings_to_hw() 486 err = hinic_set_link_settings(nic_dev->hwdev, &settings); in hinic_set_settings_to_hw() 534 struct hinic_hwdev *hwdev = nic_dev->hwdev; in hinic_get_drvinfo() local 535 struct hinic_hwif *hwif = hwdev->hwif; in hinic_get_drvinfo() [all …]
|
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() 929 ceqs->ceq[q_id].hwdev = ceqs->hwdev; in hinic_ceqs_init() 959 void hinic_dump_ceq_info(struct hinic_hwdev *hwdev) in hinic_dump_ceq_info() argument 965 for (q_id = 0; q_id < hwdev->func_to_io.ceqs.num_ceqs; q_id++) { in hinic_dump_ceq_info() 966 eq = &hwdev->func_to_io.ceqs.ceq[q_id]; in hinic_dump_ceq_info() 968 ci = hinic_hwif_read_reg(hwdev->hwif, addr); in hinic_dump_ceq_info() 970 pi = hinic_hwif_read_reg(hwdev->hwif, addr); in hinic_dump_ceq_info() [all …]
|
D | hinic_sriov.h | 28 struct hinic_hwdev *hwdev; member 96 void hinic_notify_all_vfs_link_changed(struct hinic_hwdev *hwdev, 101 int hinic_vf_func_init(struct hinic_hwdev *hwdev); 103 void hinic_vf_func_free(struct hinic_hwdev *hwdev);
|
D | hinic_tx.c | 135 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_map_skb() local 136 struct hinic_hwif *hwif = hwdev->hwif; in tx_map_skb() 186 struct hinic_hwdev *hwdev = nic_dev->hwdev; in tx_unmap_skb() local 187 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 …]
|
D | hinic_hw_cmdq.c | 399 hinic_dump_ceq_info(cmdq->hwdev); in cmdq_sync_cmd_direct_resp() 786 static int init_cmdqs_ctxt(struct hinic_hwdev *hwdev, in init_cmdqs_ctxt() argument 789 struct hinic_hwif *hwif = hwdev->hwif; in init_cmdqs_ctxt() 801 pfhwdev = container_of(hwdev, struct hinic_pfhwdev, hwdev); in init_cmdqs_ctxt() 805 cmdqs->cmdq[cmdq_type].hwdev = hwdev; in init_cmdqs_ctxt() 848 static int hinic_set_cmdq_depth(struct hinic_hwdev *hwdev, u16 cmdq_depth) in hinic_set_cmdq_depth() argument 853 pfhwdev = container_of(hwdev, struct hinic_pfhwdev, hwdev); in hinic_set_cmdq_depth() 855 hw_ioctxt.func_idx = HINIC_HWIF_FUNC_IDX(hwdev->hwif); in hinic_set_cmdq_depth() 856 hw_ioctxt.ppf_idx = HINIC_HWIF_PPF_IDX(hwdev->hwif); in hinic_set_cmdq_depth() 880 struct hinic_hwdev *hwdev; in hinic_init_cmdqs() local [all …]
|
/linux-6.6.21/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 | 43 static void malidp_write_gamma_table(struct malidp_hw_device *hwdev, in malidp_write_gamma_table() argument 54 malidp_hw_write(hwdev, gamma_write_mask, in malidp_write_gamma_table() 55 hwdev->hw->map.coeffs_base + MALIDP_COEF_TABLE_ADDR); in malidp_write_gamma_table() 57 malidp_hw_write(hwdev, data[i], in malidp_write_gamma_table() 58 hwdev->hw->map.coeffs_base + in malidp_write_gamma_table() 66 struct malidp_hw_device *hwdev = malidp->dev; in malidp_atomic_commit_update_gamma() local 72 malidp_hw_clearbits(hwdev, in malidp_atomic_commit_update_gamma() 81 malidp_write_gamma_table(hwdev, mc->gamma_coeffs); in malidp_atomic_commit_update_gamma() 83 malidp_hw_setbits(hwdev, MALIDP_DISP_FUNC_GAMMA, in malidp_atomic_commit_update_gamma() 93 struct malidp_hw_device *hwdev = malidp->dev; in malidp_atomic_commit_update_coloradj() local [all …]
|
D | malidp_crtc.c | 29 struct malidp_hw_device *hwdev = malidp->dev; in malidp_crtc_mode_valid() local 38 rate = clk_round_rate(hwdev->pxlclk, req_rate); in malidp_crtc_mode_valid() 53 struct malidp_hw_device *hwdev = malidp->dev; in malidp_crtc_atomic_enable() local 63 clk_prepare_enable(hwdev->pxlclk); in malidp_crtc_atomic_enable() 66 clk_set_rate(hwdev->pxlclk, crtc->state->adjusted_mode.crtc_clock * 1000); in malidp_crtc_atomic_enable() 68 hwdev->hw->modeset(hwdev, &vm); in malidp_crtc_atomic_enable() 69 hwdev->hw->leave_config_mode(hwdev); in malidp_crtc_atomic_enable() 79 struct malidp_hw_device *hwdev = malidp->dev; in malidp_crtc_atomic_disable() local 86 hwdev->hw->enter_config_mode(hwdev); in malidp_crtc_atomic_disable() 88 clk_disable_unprepare(hwdev->pxlclk); in malidp_crtc_atomic_disable() [all …]
|
D | malidp_planes.c | 510 ms->format = malidp_hw_get_format_id(&mp->hwdev->hw->map, in malidp_de_plane_check() 518 u8 alignment = malidp_hw_get_pitch_align(mp->hwdev, rotated); in malidp_de_plane_check() 539 if ((new_plane_state->crtc_w > mp->hwdev->max_line_size) || in malidp_de_plane_check() 540 (new_plane_state->crtc_h > mp->hwdev->max_line_size) || in malidp_de_plane_check() 541 (new_plane_state->crtc_w < mp->hwdev->min_line_size) || in malidp_de_plane_check() 542 (new_plane_state->crtc_h < mp->hwdev->min_line_size)) in malidp_de_plane_check() 551 !(mp->hwdev->hw->features & MALIDP_DEVICE_LV_HAS_3_STRIDES) && in malidp_de_plane_check() 584 val = mp->hwdev->hw->rotmem_required(mp->hwdev, new_plane_state->crtc_w, in malidp_de_plane_check() 615 num_strides = (mp->hwdev->hw->features & in malidp_de_set_plane_pitches() 626 malidp_hw_write(mp->hwdev, pitches[i] * block_h, in malidp_de_set_plane_pitches() [all …]
|
/linux-6.6.21/drivers/hwmon/ |
D | hwmon.c | 130 struct hwmon_device *hwdev = to_hwmon_device(dev); in hwmon_dev_release() local 132 if (hwdev->group.attrs) in hwmon_dev_release() 133 hwmon_free_attrs(hwdev->group.attrs); in hwmon_dev_release() 134 kfree(hwdev->groups); in hwmon_dev_release() 135 kfree(hwdev->label); in hwmon_dev_release() 136 kfree(hwdev); in hwmon_dev_release() 157 struct hwmon_device *hwdev = to_hwmon_device(tdata->dev); in hwmon_thermal_get_temp() local 161 ret = hwdev->chip->ops->read(tdata->dev, hwmon_temp, hwmon_temp_input, in hwmon_thermal_get_temp() 174 struct hwmon_device *hwdev = to_hwmon_device(tdata->dev); in hwmon_thermal_set_trips() local 175 const struct hwmon_chip_info *chip = hwdev->chip; in hwmon_thermal_set_trips() [all …]
|
/linux-6.6.21/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 = dma_map_page(&hwdev->dev, page, 0, PAGE_SIZE, DMA_FROM_DEVICE); in qib_map_page() 64 if (dma_mapping_error(&hwdev->dev, phys)) in qib_map_page() 68 dma_unmap_page(&hwdev->dev, phys, PAGE_SIZE, DMA_FROM_DEVICE); in qib_map_page() 69 phys = dma_map_page(&hwdev->dev, page, 0, PAGE_SIZE, in qib_map_page() 71 if (dma_mapping_error(&hwdev->dev, phys)) in qib_map_page()
|
/linux-6.6.21/drivers/xen/ |
D | swiotlb-xen.c | 253 static void xen_swiotlb_unmap_page(struct device *hwdev, dma_addr_t dev_addr, in xen_swiotlb_unmap_page() argument 256 phys_addr_t paddr = xen_dma_to_phys(hwdev, dev_addr); in xen_swiotlb_unmap_page() 260 if (!dev_is_dma_coherent(hwdev) && !(attrs & DMA_ATTR_SKIP_CPU_SYNC)) { in xen_swiotlb_unmap_page() 261 if (pfn_valid(PFN_DOWN(dma_to_phys(hwdev, dev_addr)))) in xen_swiotlb_unmap_page() 264 xen_dma_sync_for_cpu(hwdev, dev_addr, size, dir); in xen_swiotlb_unmap_page() 268 if (is_xen_swiotlb_buffer(hwdev, dev_addr)) in xen_swiotlb_unmap_page() 269 swiotlb_tbl_unmap_single(hwdev, paddr, size, dir, attrs); in xen_swiotlb_unmap_page() 311 xen_swiotlb_unmap_sg(struct device *hwdev, struct scatterlist *sgl, int nelems, in xen_swiotlb_unmap_sg() argument 320 xen_swiotlb_unmap_page(hwdev, sg->dma_address, sg_dma_len(sg), in xen_swiotlb_unmap_sg() 382 xen_swiotlb_dma_supported(struct device *hwdev, u64 mask) in xen_swiotlb_dma_supported() argument [all …]
|
/linux-6.6.21/drivers/net/ethernet/via/ |
D | via-rhine.c | 671 static inline int verify_mmio(struct device *hwdev, in verify_mmio() argument 686 dev_err(hwdev, in verify_mmio() 896 static int rhine_init_one_common(struct device *hwdev, u32 quirks, in rhine_init_one_common() argument 906 rc = dma_set_mask(hwdev, DMA_BIT_MASK(32)); in rhine_init_one_common() 908 dev_err(hwdev, "32-bit DMA addresses not supported by the card!?\n"); in rhine_init_one_common() 917 SET_NETDEV_DEV(dev, hwdev); in rhine_init_one_common() 995 dev_set_drvdata(hwdev, dev); in rhine_init_one_common() 1033 struct device *hwdev = &pdev->dev; in rhine_init_one_pci() local 1073 dev_err(hwdev, "Insufficient PCI resources, aborting\n"); in rhine_init_one_pci() 1089 dev_err(hwdev, in rhine_init_one_pci() [all …]
|