Home
last modified time | relevance | path

Searched refs:hw_info (Results 1 – 25 of 94) sorted by relevance

1234

/openbmc/linux/drivers/net/wwan/t7xx/
H A Dt7xx_dpmaif.c88 isr_en_msk = &hw_info->isr_en_mask; in t7xx_dpmaif_mask_ulq_intr()
97 dev_err(hw_info->dev, in t7xx_dpmaif_mask_ulq_intr()
108 isr_en_msk = &hw_info->isr_en_mask; in t7xx_dpmaif_unmask_ulq_intr()
117 dev_err(hw_info->dev, in t7xx_dpmaif_unmask_ulq_intr()
154 dev_err(hw_info->dev, in t7xx_mask_dlq_intr()
424 t7xx_dpmaif_hw_reset(hw_info); in t7xx_dpmaif_hw_config()
771 t7xx_dpmaif_dl_dlq_pit_en(hw_info); in t7xx_dpmaif_config_dlq_pit_hw()
780 t7xx_dpmaif_config_dlq_pit_hw(hw_info, i, &hw_info->dl_que[i]); in t7xx_dpmaif_config_all_dlq_hw()
914 ul_que = &hw_info->ul_que[i]; in t7xx_dpmaif_config_ulq_hw()
1129 dl_que = &hw_info->dl_que[i]; in t7xx_dpmaif_set_queue_property()
[all …]
H A Dt7xx_cldma.c50 if (hw_info->hw_mode == MODE_BIT_64) in t7xx_cldma_hw_restore()
52 else if (hw_info->hw_mode == MODE_BIT_40) in t7xx_cldma_hw_restore()
54 else if (hw_info->hw_mode == MODE_BIT_36) in t7xx_cldma_hw_restore()
126 void __iomem *base = hw_info->ap_pdn_base; in t7xx_cldma_hw_resume_queue()
142 hw_info->ap_pdn_base + REG_CLDMA_UL_STATUS; in t7xx_cldma_hw_queue_status()
177 hw_info->ap_pdn_base + REG_CLDMA_L2TISAR0; in t7xx_cldma_hw_int_status()
189 hw_info->ap_pdn_base + REG_CLDMA_L2TIMSR0; in t7xx_cldma_hw_irq_dis_txrx()
200 hw_info->ap_pdn_base + REG_CLDMA_L2TIMSR0; in t7xx_cldma_hw_irq_dis_eq()
212 hw_info->ap_pdn_base + REG_CLDMA_L2TIMCR0; in t7xx_cldma_hw_irq_en_txrx()
223 hw_info->ap_pdn_base + REG_CLDMA_L2TIMCR0; in t7xx_cldma_hw_irq_en_eq()
[all …]
H A Dt7xx_dpmaif.h151 int t7xx_dpmaif_hw_stop_all_txq(struct dpmaif_hw_info *hw_info);
152 int t7xx_dpmaif_hw_stop_all_rxq(struct dpmaif_hw_info *hw_info);
153 void t7xx_dpmaif_start_hw(struct dpmaif_hw_info *hw_info);
154 int t7xx_dpmaif_hw_get_intr_cnt(struct dpmaif_hw_info *hw_info,
163 void t7xx_dpmaif_dlq_unmask_pitcnt_len_err_intr(struct dpmaif_hw_info *hw_info,
166 bool t7xx_dpmaif_ul_clr_done(struct dpmaif_hw_info *hw_info, unsigned int qno);
167 void t7xx_dpmaif_ul_clr_all_intr(struct dpmaif_hw_info *hw_info);
168 void t7xx_dpmaif_dl_clr_all_intr(struct dpmaif_hw_info *hw_info);
169 void t7xx_dpmaif_clr_ip_busy_sts(struct dpmaif_hw_info *hw_info);
170 void t7xx_dpmaif_dl_unmask_batcnt_len_err_intr(struct dpmaif_hw_info *hw_info);
[all …]
H A Dt7xx_hif_cldma.c121 hw_info = &md_ctrl->hw_info; in t7xx_cldma_gpd_rx_from_q()
207 hw_info = &md_ctrl->hw_info; in t7xx_cldma_gpd_rx_collect()
319 struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info; in t7xx_cldma_txq_empty_hndl() local
344 hw_info = &md_ctrl->hw_info; in t7xx_cldma_tx_done()
553 struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info; in t7xx_cldma_irq_work_cb() local
613 struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info; in t7xx_cldma_qs_are_active() local
639 struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info; in t7xx_cldma_stop() local
831 struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info; in t7xx_cldma_stop_all_qs() local
1119 hw_info = &md_ctrl->hw_info; in t7xx_cldma_resume_early()
1160 hw_info = &md_ctrl->hw_info; in t7xx_cldma_suspend_late()
[all …]
H A Dt7xx_cldma.h153 void t7xx_cldma_hw_irq_dis_txrx(struct t7xx_cldma_hw *hw_info, unsigned int qno,
155 void t7xx_cldma_hw_irq_dis_eq(struct t7xx_cldma_hw *hw_info, unsigned int qno,
157 void t7xx_cldma_hw_irq_en_txrx(struct t7xx_cldma_hw *hw_info, unsigned int qno,
162 void t7xx_cldma_hw_init(struct t7xx_cldma_hw *hw_info);
163 void t7xx_cldma_hw_resume_queue(struct t7xx_cldma_hw *hw_info, unsigned int qno,
165 void t7xx_cldma_hw_start(struct t7xx_cldma_hw *hw_info);
166 void t7xx_cldma_hw_start_queue(struct t7xx_cldma_hw *hw_info, unsigned int qno,
171 void t7xx_cldma_hw_set_start_addr(struct t7xx_cldma_hw *hw_info,
174 void t7xx_cldma_hw_stop(struct t7xx_cldma_hw *hw_info, enum mtk_txrx tx_rx);
177 void t7xx_cldma_hw_restore(struct t7xx_cldma_hw *hw_info);
[all …]
H A Dt7xx_hif_dpmaif.c85 struct dpmaif_hw_info *hw_info; in t7xx_dpmaif_irq_cb() local
89 hw_info = &dpmaif_ctrl->hw_info; in t7xx_dpmaif_irq_cb()
112 t7xx_dpmaif_dl_unmask_batcnt_len_err_intr(hw_info); in t7xx_dpmaif_irq_cb()
117 t7xx_dpmaif_dl_unmask_pitcnt_len_err_intr(hw_info); in t7xx_dpmaif_irq_cb()
301 struct dpmaif_hw_info *hw_info = &dpmaif_ctrl->hw_info; in t7xx_dpmaif_start() local
350 ret = t7xx_dpmaif_hw_init(hw_info, &hw_init_para); in t7xx_dpmaif_start()
364 t7xx_dpmaif_ul_clr_all_intr(hw_info); in t7xx_dpmaif_start()
365 t7xx_dpmaif_dl_clr_all_intr(hw_info); in t7xx_dpmaif_start()
388 t7xx_dpmaif_hw_stop_all_txq(&dpmaif_ctrl->hw_info); in t7xx_dpmaif_stop_hw()
457 t7xx_dpmaif_start_hw(&dpmaif_ctrl->hw_info); in t7xx_dpmaif_resume()
[all …]
H A Dt7xx_hif_dpmaif_rx.c213 ret = t7xx_dpmaif_dl_snd_hw_bat_cnt(&dpmaif_ctrl->hw_info, i); in t7xx_dpmaif_rx_buf_alloc()
217 hw_wr_idx = t7xx_dpmaif_dl_get_bat_wr_idx(&dpmaif_ctrl->hw_info, in t7xx_dpmaif_rx_buf_alloc()
238 struct dpmaif_hw_info *hw_info = &rxq->dpmaif_ctrl->hw_info; in t7xx_dpmaifq_release_pit_entry() local
379 t7xx_dpmaif_dl_snd_hw_frg_cnt(&dpmaif_ctrl->hw_info, i); in t7xx_dpmaif_rx_frag_alloc()
503 struct dpmaif_hw_info *hw_info = &rxq->dpmaif_ctrl->hw_info; in t7xx_dpmaif_release_bat_entry() local
513 hw_rd_idx = t7xx_dpmaif_dl_get_frg_rd_idx(hw_info, rxq->index); in t7xx_dpmaif_release_bat_entry()
516 hw_rd_idx = t7xx_dpmaif_dl_get_bat_rd_idx(hw_info, rxq->index); in t7xx_dpmaif_release_bat_entry()
873 t7xx_dpmaif_clr_ip_busy_sts(&rxq->dpmaif_ctrl->hw_info); in t7xx_dpmaif_napi_rx_poll()
876 t7xx_dpmaif_clr_ip_busy_sts(&rxq->dpmaif_ctrl->hw_info); in t7xx_dpmaif_napi_rx_poll()
877 t7xx_dpmaif_dlq_unmask_rx_done(&rxq->dpmaif_ctrl->hw_info, rxq->index); in t7xx_dpmaif_napi_rx_poll()
[all …]
H A Dt7xx_hif_dpmaif_tx.c62 new_hw_rd_idx = t7xx_dpmaif_ul_get_rd_idx(&dpmaif_ctrl->hw_info, q_num); in t7xx_dpmaif_update_drb_rd_idx()
162 struct dpmaif_hw_info *hw_info; in t7xx_dpmaif_tx_done() local
172 hw_info = &dpmaif_ctrl->hw_info; in t7xx_dpmaif_tx_done()
175 (t7xx_dpmaif_ul_clr_done(hw_info, txq->index) && in t7xx_dpmaif_tx_done()
180 t7xx_dpmaif_clr_ip_busy_sts(hw_info); in t7xx_dpmaif_tx_done()
182 t7xx_dpmaif_clr_ip_busy_sts(hw_info); in t7xx_dpmaif_tx_done()
183 t7xx_dpmaif_unmask_ulq_intr(hw_info, txq->index); in t7xx_dpmaif_tx_done()
438 t7xx_dpmaif_ul_update_hw_drb_cnt(&dpmaif_ctrl->hw_info, txq->index, in t7xx_do_tx_hw_push()
/openbmc/linux/drivers/net/fjes/
H A Dfjes_hw.c99 if (!hw->hw_info.share) in fjes_hw_alloc_shared_status_region()
109 kfree(hw->hw_info.share); in fjes_hw_free_shared_status_region()
110 hw->hw_info.share = NULL; in fjes_hw_free_shared_status_region()
290 kfree(hw->hw_info.res_buf); in fjes_hw_setup()
291 hw->hw_info.res_buf = NULL; in fjes_hw_setup()
293 kfree(hw->hw_info.req_buf); in fjes_hw_setup()
294 hw->hw_info.req_buf = NULL; in fjes_hw_setup()
373 vfree(hw->hw_info.trace); in fjes_hw_exit()
374 hw->hw_info.trace = NULL; in fjes_hw_exit()
1213 if (!hw->hw_info.trace) in fjes_hw_start_debug()
[all …]
H A Dfjes_ethtool.c235 mutex_lock(&hw->hw_info.lock); in fjes_set_dump()
237 mutex_unlock(&hw->hw_info.lock); in fjes_set_dump()
246 mutex_lock(&hw->hw_info.lock); in fjes_set_dump()
248 mutex_unlock(&hw->hw_info.lock); in fjes_set_dump()
260 dump->len = hw->hw_info.trace_size; in fjes_get_dump_flag()
274 if (hw->hw_info.trace) in fjes_get_dump_data()
275 memcpy(buf, hw->hw_info.trace, hw->hw_info.trace_size); in fjes_get_dump_data()
H A Dfjes_main.c176 mutex_lock(&hw->hw_info.lock); in fjes_setup_resources()
192 mutex_unlock(&hw->hw_info.lock); in fjes_setup_resources()
195 mutex_unlock(&hw->hw_info.lock); in fjes_setup_resources()
222 mutex_lock(&hw->hw_info.lock); in fjes_setup_resources()
225 mutex_unlock(&hw->hw_info.lock); in fjes_setup_resources()
442 mutex_lock(&hw->hw_info.lock); in fjes_free_resources()
444 mutex_unlock(&hw->hw_info.lock); in fjes_free_resources()
469 hw->hw_info.buffer_share_bit = 0; in fjes_free_resources()
1227 mutex_lock(&hw->hw_info.lock); in fjes_watch_unshare_task()
1243 mutex_unlock(&hw->hw_info.lock); in fjes_watch_unshare_task()
[all …]
/openbmc/linux/drivers/hwtracing/coresight/
H A Dcoresight-cfg-afdo.c34 .hw_info = ETM4_CFG_RES_SEL,
40 .hw_info = ETM4_CFG_RES_SEQ,
47 .hw_info = ETM4_CFG_RES_CTR,
52 .hw_info = ETM4_CFG_RES_CTR,
58 .hw_info = ETM4_CFG_RES_CTR,
65 .hw_info = ETM4_CFG_RES_CTR,
70 .hw_info = ETM4_CFG_RES_CTR,
76 .hw_info = ETM4_CFG_RES_CTR,
83 .hw_info = ETM4_CFG_RES_SEQ,
89 .hw_info = ETM4_CFG_RES_SEQ,
/openbmc/u-boot/drivers/net/
H A Dne2000.c106 static hw_info_t hw_info[] = { variable
170 #define NR_INFO (sizeof(hw_info)/sizeof(hw_info_t))
241 if ((prom[0] == hw_info[i].a0) && in get_prom()
242 (prom[2] == hw_info[i].a1) && in get_prom()
243 (prom[4] == hw_info[i].a2)) { in get_prom()
/openbmc/linux/drivers/perf/amlogic/
H A Dmeson_ddr_pmu_core.c41 pmu->info.hw_info->enable(&pmu->info); in dmc_pmu_enable()
49 pmu->info.hw_info->disable(&pmu->info); in dmc_pmu_disable()
91 int chann_nr = pmu->info.hw_info->chann_nr; in meson_ddr_perf_event_update()
94 pmu->info.hw_info->get_counters(&pmu->info, &dc); in meson_ddr_perf_event_update()
356 if (info->hw_info->irq_handler(info, &counters) != 0) in dmc_irq_handler()
363 for (i = 0; i < pmu->info.hw_info->chann_nr; i++) in dmc_irq_handler()
372 info->hw_info->enable(info); in dmc_irq_handler()
429 for (i = 0; i < pmu->info.hw_info->chann_nr; i++, k++) { in fill_event_attr()
449 info->hw_info = of_device_get_match_data(&pdev->dev); in ddr_pmu_parse_dt()
451 for (i = 0; i < info->hw_info->dmc_nr; i++) { in ddr_pmu_parse_dt()
[all …]
/openbmc/linux/drivers/bluetooth/
H A Dbtrtl.c86 char *hw_info; member
109 .hw_info = "rtl8723au" },
117 .hw_info = "rtl8723bs" },
125 .hw_info = "rtl8723bu" },
161 .hw_info = "rtl8723cs" },
169 .hw_info = "rtl8723du" },
177 .hw_info = "rtl8723ds" },
185 .hw_info = "rtl8821au" },
194 .hw_info = "rtl8821cu" },
203 .hw_info = "rtl8821cs" },
[all …]
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed.h268 ((dev)->hw_info.personality == QED_PCI_ETH_ROCE || \
269 (dev)->hw_info.personality == QED_PCI_ETH_IWARP || \
270 (dev)->hw_info.personality == QED_PCI_ETH_RDMA)
272 ((dev)->hw_info.personality == QED_PCI_ETH_ROCE || \
273 (dev)->hw_info.personality == QED_PCI_ETH_RDMA)
276 (dev)->hw_info.personality == QED_PCI_ETH_RDMA)
278 ((dev)->hw_info.personality == QED_PCI_ETH || \
281 ((dev)->hw_info.personality == QED_PCI_FCOE)
283 ((dev)->hw_info.personality == QED_PCI_ISCSI)
285 ((dev)->hw_info.personality == QED_PCI_NVMETCP)
[all …]
H A Dqed_sp_commands.c320 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_start()
343 outer_tag_config->outer_tag.tci = cpu_to_le16(p_hwfn->hw_info.ovlan); in qed_sp_pf_start()
386 switch (p_hwfn->hw_info.personality) { in qed_sp_pf_start()
403 p_hwfn->hw_info.personality); in qed_sp_pf_start()
438 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_update()
468 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_update_ufp()
506 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_update_tunn_cfg()
537 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_stop()
558 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_heartbeat_ramrod()
579 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_update_stag()
[all …]
H A Dqed_dev.c1462 return p_hwfn->hw_info.num_hw_tc; in qed_init_qm_get_num_tcs()
2106 p_hwfn->hw_info.hw_mode); in qed_qm_reconf()
2564 p_hwfn->hw_info.hw_mode); in qed_calc_hw_mode()
2921 p_hwfn->hw_info.ovlan); in qed_hw_init_pf()
3091 if (!p_hwfn->hw_info.mtu) { in qed_hw_init()
3092 p_hwfn->hw_info.mtu = 1500; in qed_hw_init()
3195 p_hwfn->hw_info.hw_mode); in qed_hw_init()
3209 p_hwfn->hw_info.hw_mode, in qed_hw_init()
3273 p_hwfn->hw_info.mtu); in qed_hw_init()
3578 p_hwfn->hw_info.concrete_fid, p_hwfn->hw_info.opaque_fid); in get_function_id()
[all …]
H A Dqed_devlink.c165 memcpy(buf, cdev->hwfns[0].hw_info.part_num, sizeof(cdev->hwfns[0].hw_info.part_num)); in qed_devlink_info_get()
166 buf[sizeof(cdev->hwfns[0].hw_info.part_num)] = 0; in qed_devlink_info_get()
/openbmc/linux/drivers/net/ethernet/8390/
H A Dpcnet_cs.c112 struct hw_info { struct
133 static struct hw_info hw_info[] = { argument
195 #define NR_INFO ARRAY_SIZE(hw_info)
301 if ((readb(base+0) == hw_info[i].a0) && in get_hwinfo()
302 (readb(base+2) == hw_info[i].a1) && in get_hwinfo()
303 (readb(base+4) == hw_info[i].a2)) { in get_hwinfo()
360 if ((prom[0] == hw_info[i].a0) && in get_prom()
361 (prom[2] == hw_info[i].a1) && in get_prom()
362 (prom[4] == hw_info[i].a2)) in get_prom()
508 struct hw_info *local_hw_info; in pcnet_try_config()
[all …]
/openbmc/linux/drivers/net/wireless/quantenna/qtnfmac/
H A Dcore.c417 if (bus->hw_info.num_mac > 1) { in qtnf_core_mac_alloc()
564 if (!(bus->hw_info.mac_bitmap & BIT(macid))) { in qtnf_core_mac_attach()
605 ret = qtnf_wiphy_register(&bus->hw_info, mac); in qtnf_core_mac_attach()
624 if (qtnf_hwcap_is_set(&bus->hw_info, QLINK_HW_CAPAB_HW_BRIDGE)) { in qtnf_core_mac_attach()
694 qtnf_hwcap_is_set(&bus->hw_info, in qtnf_core_netdevice_event()
746 if (QLINK_VER_MAJOR(bus->hw_info.ql_proto_ver) != in qtnf_core_attach()
750 QLINK_VER_MAJOR(bus->hw_info.ql_proto_ver)); in qtnf_core_attach()
766 if (bus->hw_info.num_mac > QTNF_MAX_MAC) { in qtnf_core_attach()
768 bus->hw_info.num_mac); in qtnf_core_attach()
773 for (i = 0; i < bus->hw_info.num_mac; i++) { in qtnf_core_attach()
[all …]
H A Dcfg80211.c267 if (qtnf_hwcap_is_set(&mac->bus->hw_info, QLINK_HW_CAPAB_HW_BRIDGE)) { in qtnf_add_virtual_intf()
1075 qtnf_hwcap_is_set(&bus->hw_info, QLINK_HW_CAPAB_DFS_OFFLOAD)) in qtnf_wiphy_allocate()
1078 if (!qtnf_hwcap_is_set(&bus->hw_info, QLINK_HW_CAPAB_PWR_MGMT)) in qtnf_wiphy_allocate()
1164 qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_DFS_OFFLOAD)) in qtnf_wiphy_register()
1167 if (qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_SCAN_DWELL)) in qtnf_wiphy_register()
1183 if (qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_STA_INACT_TIMEOUT)) in qtnf_wiphy_register()
1189 if (!qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_OBSS_SCAN)) in qtnf_wiphy_register()
1192 if (qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_SAE)) in qtnf_wiphy_register()
1203 if (qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_REG_UPDATE)) { in qtnf_wiphy_register()
1226 strscpy(wiphy->fw_version, hw_info->fw_version, in qtnf_wiphy_register()
[all …]
/openbmc/linux/sound/firewire/bebob/
H A Dbebob_proc.c11 struct hw_info { struct
39 struct hw_info *info; in proc_read_hw_info() argument
41 info = kzalloc(sizeof(struct hw_info), GFP_KERNEL); in proc_read_hw_info()
46 info, sizeof(struct hw_info)) < 0) in proc_read_hw_info()
/openbmc/linux/drivers/input/touchscreen/
H A Dgoodix_fwupload.c28 u8 hw_info[4]; member
76 fw_header->hw_info[0], fw_header->hw_info[1], in goodix_firmware_verify()
77 fw_header->hw_info[2], fw_header->hw_info[3]); in goodix_firmware_verify()
/openbmc/linux/drivers/net/dsa/
H A Dlantiq_gswip.c280 const struct gswip_hw_info *hw_info; member
648 unsigned int cpu_port = priv->hw_info->cpu_port; in gswip_add_single_port_br()
813 unsigned int cpu_port = priv->hw_info->cpu_port; in gswip_setup()
822 for (i = 0; i < priv->hw_info->max_ports; i++) { in gswip_setup()
863 for (i = 0; i < priv->hw_info->max_ports; i++) in gswip_setup()
972 unsigned int cpu_port = priv->hw_info->cpu_port; in gswip_vlan_add_unaware()
1470 int cpu_port = priv->hw_info->cpu_port; in gswip_port_change_mtu()
2121 priv->hw_info = of_device_get_match_data(dev); in gswip_probe()
2122 if (!priv->hw_info) in gswip_probe()
2132 priv->ds->ops = priv->hw_info->ops; in gswip_probe()
[all …]

1234