Symbol: hw_info
arch/powerpc/sysdev/tsi108_dev.c
141
sizeof(hw_info));
arch/powerpc/sysdev/tsi108_dev.c
74
hw_info tsi_eth_data;
drivers/bluetooth/btrtl.c
113
.hw_info = "rtl8723au" },
drivers/bluetooth/btrtl.c
121
.hw_info = "rtl8723bs" },
drivers/bluetooth/btrtl.c
1247
coredump_info->rtl_dump.controller = btrtl_dev->ic_info->hw_info;
drivers/bluetooth/btrtl.c
129
.hw_info = "rtl8723bu" },
drivers/bluetooth/btrtl.c
141
.hw_info = "rtl8723cs-cg" },
drivers/bluetooth/btrtl.c
153
.hw_info = "rtl8723cs-vf" },
drivers/bluetooth/btrtl.c
165
.hw_info = "rtl8723cs" },
drivers/bluetooth/btrtl.c
173
.hw_info = "rtl8723du" },
drivers/bluetooth/btrtl.c
181
.hw_info = "rtl8723ds" },
drivers/bluetooth/btrtl.c
189
.hw_info = "rtl8821au" },
drivers/bluetooth/btrtl.c
198
.hw_info = "rtl8821cu" },
drivers/bluetooth/btrtl.c
207
.hw_info = "rtl8821cs" },
drivers/bluetooth/btrtl.c
215
.hw_info = "rtl8761au" },
drivers/bluetooth/btrtl.c
224
.hw_info = "rtl8761btv" },
drivers/bluetooth/btrtl.c
232
.hw_info = "rtl8761bu" },
drivers/bluetooth/btrtl.c
240
.hw_info = "rtl8761cu" },
drivers/bluetooth/btrtl.c
249
.hw_info = "rtl8822cs" },
drivers/bluetooth/btrtl.c
258
.hw_info = "rtl8822cs" },
drivers/bluetooth/btrtl.c
267
.hw_info = "rtl8822cu" },
drivers/bluetooth/btrtl.c
276
.hw_info = "rtl8822bu" },
drivers/bluetooth/btrtl.c
285
.hw_info = "rtl8852au" },
drivers/bluetooth/btrtl.c
294
.hw_info = "rtl8852bs" },
drivers/bluetooth/btrtl.c
303
.hw_info = "rtl8852bu" },
drivers/bluetooth/btrtl.c
312
.hw_info = "rtl8852cu" },
drivers/bluetooth/btrtl.c
321
.hw_info = "rtl8851bu" },
drivers/bluetooth/btrtl.c
330
.hw_info = "rtl8922au" },
drivers/bluetooth/btrtl.c
339
.hw_info = "rtl8852btu" },
drivers/bluetooth/btrtl.c
90
char *hw_info;
drivers/gpu/drm/amd/display/dc/dc_ddc_types.h
140
struct gpio_ddc_hw_info hw_info;
drivers/gpu/drm/amd/display/dc/dce/dce_i2c_hw.c
454
if (ddc->hw_info.hw_supported) {
drivers/gpu/drm/amd/display/dc/gpio/gpio_service.c
524
ddc->hw_info = *info;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
327
struct gpio_ddc_hw_info hw_info;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
330
hw_info.ddc_channel = i2c_info.i2c_line;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
331
hw_info.hw_supported = i2c_info.i2c_hw_assist;
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
337
&hw_info);
drivers/gpu/drm/amd/display/dc/link/protocols/link_ddc.c
117
struct gpio_ddc_hw_info hw_info;
drivers/gpu/drm/amd/display/dc/link/protocols/link_ddc.c
137
hw_info.ddc_channel = i2c_info.i2c_line;
drivers/gpu/drm/amd/display/dc/link/protocols/link_ddc.c
139
hw_info.hw_supported = i2c_info.i2c_hw_assist;
drivers/gpu/drm/amd/display/dc/link/protocols/link_ddc.c
141
hw_info.hw_supported = false;
drivers/gpu/drm/amd/display/dc/link/protocols/link_ddc.c
147
&hw_info);
drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_panel_replay.c
122
replay_context.aux_inst = link->ddc->ddc_pin->hw_info.ddc_channel;
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
1027
replay_context.aux_inst = link->ddc->ddc_pin->hw_info.ddc_channel;
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
794
psr_context->channel = link->ddc->ddc_pin->hw_info.ddc_channel;
drivers/gpu/drm/amd/display/modules/power/power.c
489
ASSERT(link->ddc->ddc_pin->hw_info.ddc_channel <= 0xFF);
drivers/gpu/drm/amd/display/modules/power/power.c
490
aux_inst = (uint8_t)link->ddc->ddc_pin->hw_info.ddc_channel;
drivers/gpu/drm/amd/display/modules/power/power_abm.c
855
ASSERT(link->ddc->ddc_pin->hw_info.ddc_channel <= 0xFF);
drivers/gpu/drm/amd/display/modules/power/power_abm.c
856
aux_inst = (uint8_t)link->ddc->ddc_pin->hw_info.ddc_channel;
drivers/gpu/drm/amd/display/modules/power/power_abm.c
947
ASSERT(link->ddc->ddc_pin->hw_info.ddc_channel <= 0xFF);
drivers/gpu/drm/amd/display/modules/power/power_abm.c
948
aux_inst = (uint8_t)link->ddc->ddc_pin->hw_info.ddc_channel;
drivers/hwtracing/coresight/coresight-cfg-afdo.c
35
.hw_info = ETM4_CFG_RES_SEL,
drivers/hwtracing/coresight/coresight-cfg-afdo.c
41
.hw_info = ETM4_CFG_RES_SEQ,
drivers/hwtracing/coresight/coresight-cfg-afdo.c
48
.hw_info = ETM4_CFG_RES_CTR,
drivers/hwtracing/coresight/coresight-cfg-afdo.c
53
.hw_info = ETM4_CFG_RES_CTR,
drivers/hwtracing/coresight/coresight-cfg-afdo.c
59
.hw_info = ETM4_CFG_RES_CTR,
drivers/hwtracing/coresight/coresight-cfg-afdo.c
66
.hw_info = ETM4_CFG_RES_CTR,
drivers/hwtracing/coresight/coresight-cfg-afdo.c
71
.hw_info = ETM4_CFG_RES_CTR,
drivers/hwtracing/coresight/coresight-cfg-afdo.c
77
.hw_info = ETM4_CFG_RES_CTR,
drivers/hwtracing/coresight/coresight-cfg-afdo.c
84
.hw_info = ETM4_CFG_RES_SEQ,
drivers/hwtracing/coresight/coresight-cfg-afdo.c
90
.hw_info = ETM4_CFG_RES_SEQ,
drivers/hwtracing/coresight/coresight-cfg-pstop.c
30
.hw_info = ETM4_CFG_RES_SEL,
drivers/hwtracing/coresight/coresight-config.h
76
u32 hw_info:12;
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
144
static const struct inv_mpu6050_hw hw_info[] = {
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
1755
st->hw = &hw_info[st->chip_type];
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
1756
st->reg = hw_info[st->chip_type].reg;
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
1757
memcpy(&st->chip_config, hw_info[st->chip_type].config,
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
1770
if (regval == hw_info[i].whoami) {
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
1773
regval, hw_info[i].name,
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
1896
BUILD_BUG_ON(ARRAY_SIZE(hw_info) != INV_NUM_PARTS);
drivers/infiniband/hw/irdma/hw.c
2688
struct irdma_qp_flush_info *hw_info;
drivers/infiniband/hw/irdma/hw.c
2694
hw_info = &cqp_info->in.u.qp_flush_wqes.info;
drivers/infiniband/hw/irdma/hw.c
2701
if (hw_info->rq &&
drivers/infiniband/hw/irdma/hw.c
2707
if (hw_info->sq &&
drivers/infiniband/hw/irdma/hw.c
2730
struct irdma_qp_flush_info *hw_info;
drivers/infiniband/hw/irdma/hw.c
2742
hw_info = &cqp_request->info.in.u.qp_flush_wqes.info;
drivers/infiniband/hw/irdma/hw.c
2743
memcpy(hw_info, info, sizeof(*hw_info));
drivers/infiniband/hw/irdma/hw.c
2789
hw_info = &new_req->info.in.u.qp_flush_wqes.info;
drivers/infiniband/hw/irdma/hw.c
2790
memcpy(hw_info, info, sizeof(*hw_info));
drivers/input/touchscreen/goodix_fwupload.c
28
u8 hw_info[4];
drivers/input/touchscreen/goodix_fwupload.c
76
fw_header->hw_info[0], fw_header->hw_info[1],
drivers/input/touchscreen/goodix_fwupload.c
77
fw_header->hw_info[2], fw_header->hw_info[3]);
drivers/iommu/amd/iommu.c
3161
.hw_info = amd_iommufd_hw_info,
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c
21
if (!impl_ops || !impl_ops->hw_info)
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-iommufd.c
23
return impl_ops->hw_info(master->smmu, length, type);
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
4311
.hw_info = arm_smmu_hw_info,
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h
883
void *(*hw_info)(struct arm_smmu_device *smmu, u32 *length,
drivers/iommu/arm/arm-smmu-v3/tegra241-cmdqv.c
849
.hw_info = tegra241_cmdqv_hw_info,
drivers/iommu/generic_pt/iommu_pt.h
1350
#define pt_iommu_hw_info CONCATENATE(CONCATENATE(pt_iommu_, PTPFX), hw_info)
drivers/iommu/intel/iommu.c
3922
.hw_info = intel_iommu_hw_info,
drivers/iommu/iommufd/device.c
1578
if (ops->hw_info) {
drivers/iommu/iommufd/device.c
1579
data = ops->hw_info(idev->dev, &data_len, &cmd->out_data_type);
drivers/iommu/iommufd/selftest.c
854
.hw_info = mock_domain_hw_info,
drivers/irqchip/irq-renesas-rzv2h.c
747
const struct rzv2h_hw_info *hw_info = priv->info;
drivers/irqchip/irq-renesas-rzv2h.c
763
for (k = hw_info->ecc_start; k <= hw_info->ecc_end; k++) {
drivers/irqchip/irq-renesas-rzv2h.c
796
const struct rzv2h_hw_info *hw_info = rzv2h_icu_data->info;
drivers/irqchip/irq-renesas-rzv2h.c
833
for (i = hw_info->ecc_start; i <= hw_info->ecc_end; i++)
drivers/irqchip/irq-renesas-rzv2h.c
853
const struct rzv2h_hw_info *hw_info)
drivers/irqchip/irq-renesas-rzv2h.c
902
rzv2h_icu_data->info = hw_info;
drivers/media/usb/dvb-usb-v2/anysee.c
484
u8 hw_info[3];
drivers/media/usb/dvb-usb-v2/anysee.c
490
ret = anysee_get_hw_info(d, hw_info);
drivers/media/usb/dvb-usb-v2/anysee.c
494
ret = anysee_get_hw_info(d, hw_info);
drivers/media/usb/dvb-usb-v2/anysee.c
502
KBUILD_MODNAME, hw_info[1], hw_info[2], hw_info[0]);
drivers/media/usb/dvb-usb-v2/anysee.c
504
state->hw = hw_info[0];
drivers/net/dsa/lantiq/lantiq_gswip.c
379
priv->hw_info = of_device_get_match_data(dev);
drivers/net/dsa/lantiq/lantiq_gswip.c
380
if (!priv->hw_info)
drivers/net/dsa/lantiq/lantiq_gswip.h
288
const struct gswip_hw_info *hw_info;
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1152
unsigned int max_ports = priv->hw_info->max_ports;
drivers/net/dsa/lantiq/lantiq_gswip_common.c
122
if (priv->hw_info->mii_cfg[port] == -1)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
125
regmap_write_bits(priv->mii, priv->hw_info->mii_cfg[port], mask,
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1297
priv->hw_info->phylink_get_caps(ds, port, config);
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1608
if (priv->hw_info->mac_select_pcs)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1609
return priv->hw_info->mac_select_pcs(config, interface);
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1671
if (BIT(cpu_port) & ~priv->hw_info->allowed_cpu_ports)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
1689
priv->ds->num_ports = priv->hw_info->max_ports;
drivers/net/dsa/lantiq/lantiq_gswip_common.c
424
if (priv->hw_info->port_setup) {
drivers/net/dsa/lantiq/lantiq_gswip_common.c
425
err = priv->hw_info->port_setup(ds, port);
drivers/net/dsa/lantiq/lantiq_gswip_common.c
489
for (i = 0; i < priv->hw_info->pce_microcode_size; i++) {
drivers/net/dsa/lantiq/lantiq_gswip_common.c
492
(*priv->hw_info->pce_microcode)[i].val_0);
drivers/net/dsa/lantiq/lantiq_gswip_common.c
494
(*priv->hw_info->pce_microcode)[i].val_1);
drivers/net/dsa/lantiq/lantiq_gswip_common.c
496
(*priv->hw_info->pce_microcode)[i].val_2);
drivers/net/dsa/lantiq/lantiq_gswip_common.c
498
(*priv->hw_info->pce_microcode)[i].val_3);
drivers/net/dsa/lantiq/lantiq_gswip_common.c
537
for (int i = priv->hw_info->max_ports;
drivers/net/dsa/lantiq/lantiq_gswip_common.c
613
if (priv->hw_info->mii_pcdu[dp->index] == -1)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
636
regmap_write_bits(priv->mii, priv->hw_info->mii_pcdu[dp->index],
drivers/net/dsa/lantiq/lantiq_gswip_common.c
655
for (i = 0; i < priv->hw_info->max_ports; i++) {
drivers/net/dsa/lantiq/lantiq_gswip_common.c
703
for (i = 0; i < priv->hw_info->max_ports; i++)
drivers/net/dsa/lantiq/lantiq_gswip_common.c
755
return priv->hw_info->tag_protocol;
drivers/net/dsa/lantiq/lantiq_gswip_common.c
763
unsigned int max_ports = priv->hw_info->max_ports;
drivers/net/dsa/lantiq/lantiq_gswip_common.c
822
unsigned int max_ports = priv->hw_info->max_ports;
drivers/net/dsa/lantiq/lantiq_gswip_common.c
896
unsigned int max_ports = priv->hw_info->max_ports;
drivers/net/dsa/lantiq/lantiq_gswip_common.c
987
unsigned int max_ports = priv->hw_info->max_ports;
drivers/net/dsa/lantiq/mxl-gsw1xx.c
549
if (priv->hw_info->supports_2500m) {
drivers/net/dsa/lantiq/mxl-gsw1xx.c
668
if (!priv->gswip.hw_info->mac_select_pcs)
drivers/net/dsa/lantiq/mxl-gsw1xx.c
677
if (priv->gswip.hw_info->supports_2500m)
drivers/net/dsa/lantiq/mxl-gsw1xx.c
704
priv->gswip.hw_info = of_device_get_match_data(dev);
drivers/net/dsa/lantiq/mxl-gsw1xx.c
705
if (!priv->gswip.hw_info)
drivers/net/ethernet/8390/pcnet_cs.c
133
static struct hw_info hw_info[] = {
drivers/net/ethernet/8390/pcnet_cs.c
195
#define NR_INFO ARRAY_SIZE(hw_info)
drivers/net/ethernet/8390/pcnet_cs.c
197
static struct hw_info default_info = { 0, 0, 0, 0, 0 };
drivers/net/ethernet/8390/pcnet_cs.c
198
static struct hw_info dl10019_info = { 0, 0, 0, 0, IS_DL10019|HAS_MII };
drivers/net/ethernet/8390/pcnet_cs.c
199
static struct hw_info dl10022_info = { 0, 0, 0, 0, IS_DL10022|HAS_MII };
drivers/net/ethernet/8390/pcnet_cs.c
276
static struct hw_info *get_hwinfo(struct pcmcia_device *link)
drivers/net/ethernet/8390/pcnet_cs.c
299
hw_info[i].offset & ~(resource_size(link->resource[2])-1));
drivers/net/ethernet/8390/pcnet_cs.c
300
base = &virt[hw_info[i].offset & (resource_size(link->resource[2])-1)];
drivers/net/ethernet/8390/pcnet_cs.c
301
if ((readb(base+0) == hw_info[i].a0) &&
drivers/net/ethernet/8390/pcnet_cs.c
302
(readb(base+2) == hw_info[i].a1) &&
drivers/net/ethernet/8390/pcnet_cs.c
303
(readb(base+4) == hw_info[i].a2)) {
drivers/net/ethernet/8390/pcnet_cs.c
313
return (i < NR_INFO) ? hw_info+i : NULL;
drivers/net/ethernet/8390/pcnet_cs.c
324
static struct hw_info *get_prom(struct pcmcia_device *link)
drivers/net/ethernet/8390/pcnet_cs.c
360
if ((prom[0] == hw_info[i].a0) &&
drivers/net/ethernet/8390/pcnet_cs.c
361
(prom[2] == hw_info[i].a1) &&
drivers/net/ethernet/8390/pcnet_cs.c
362
(prom[4] == hw_info[i].a2))
drivers/net/ethernet/8390/pcnet_cs.c
369
return (i < NR_INFO) ? hw_info+i : &default_info;
drivers/net/ethernet/8390/pcnet_cs.c
380
static struct hw_info *get_dl10019(struct pcmcia_device *link)
drivers/net/ethernet/8390/pcnet_cs.c
404
static struct hw_info *get_ax88190(struct pcmcia_device *link)
drivers/net/ethernet/8390/pcnet_cs.c
437
static struct hw_info *get_hwired(struct pcmcia_device *link)
drivers/net/ethernet/8390/pcnet_cs.c
504
static struct hw_info *pcnet_try_config(struct pcmcia_device *link,
drivers/net/ethernet/8390/pcnet_cs.c
508
struct hw_info *local_hw_info;
drivers/net/ethernet/8390/pcnet_cs.c
571
struct hw_info *local_hw_info;
drivers/net/ethernet/aquantia/atlantic/aq_ptp.c
1321
struct hw_atl_info *hw_info)
drivers/net/ethernet/aquantia/atlantic/aq_ptp.c
1331
if (hw_info->gpio_pin[i] ==
drivers/net/ethernet/aquantia/atlantic/aq_ptp.c
1344
if (hw_info->caps_ex & BIT(CAPS_EX_PHY_CTRL_TS_PIN)) {
drivers/net/ethernet/cavium/thunder/nic_main.c
1304
nic->hw = devm_kzalloc(dev, sizeof(struct hw_info), GFP_KERNEL);
drivers/net/ethernet/cavium/thunder/nic_main.c
360
struct hw_info *hw = nic->hw;
drivers/net/ethernet/cavium/thunder/nic_main.c
41
struct hw_info *hw;
drivers/net/ethernet/cavium/thunder/nic_main.c
474
struct hw_info *hw = nic->hw;
drivers/net/ethernet/cavium/thunder/nic_main.c
614
struct hw_info *hw = nic->hw;
drivers/net/ethernet/mucse/rnpgbe/rnpgbe_mbx_fw.c
76
le16_to_cpu(reply.r.hw_info.pfnum));
drivers/net/ethernet/mucse/rnpgbe/rnpgbe_mbx_fw.h
79
struct mucse_hw_info hw_info;
drivers/net/ethernet/qlogic/qed/qed.h
268
((dev)->hw_info.personality == QED_PCI_ETH_ROCE || \
drivers/net/ethernet/qlogic/qed/qed.h
269
(dev)->hw_info.personality == QED_PCI_ETH_IWARP || \
drivers/net/ethernet/qlogic/qed/qed.h
270
(dev)->hw_info.personality == QED_PCI_ETH_RDMA)
drivers/net/ethernet/qlogic/qed/qed.h
272
((dev)->hw_info.personality == QED_PCI_ETH_ROCE || \
drivers/net/ethernet/qlogic/qed/qed.h
273
(dev)->hw_info.personality == QED_PCI_ETH_RDMA)
drivers/net/ethernet/qlogic/qed/qed.h
275
((dev)->hw_info.personality == QED_PCI_ETH_IWARP || \
drivers/net/ethernet/qlogic/qed/qed.h
276
(dev)->hw_info.personality == QED_PCI_ETH_RDMA)
drivers/net/ethernet/qlogic/qed/qed.h
278
((dev)->hw_info.personality == QED_PCI_ETH || \
drivers/net/ethernet/qlogic/qed/qed.h
281
((dev)->hw_info.personality == QED_PCI_FCOE)
drivers/net/ethernet/qlogic/qed/qed.h
283
((dev)->hw_info.personality == QED_PCI_ISCSI)
drivers/net/ethernet/qlogic/qed/qed.h
285
((dev)->hw_info.personality == QED_PCI_NVMETCP)
drivers/net/ethernet/qlogic/qed/qed.h
290
#define RESC_START(_p_hwfn, resc) ((_p_hwfn)->hw_info.resc_start[resc])
drivers/net/ethernet/qlogic/qed/qed.h
291
#define RESC_NUM(_p_hwfn, resc) ((_p_hwfn)->hw_info.resc_num[resc])
drivers/net/ethernet/qlogic/qed/qed.h
296
#define FEAT_NUM(_p_hwfn, resc) ((_p_hwfn)->hw_info.feat_num[resc])
drivers/net/ethernet/qlogic/qed/qed.h
310
#define IS_QED_MULTI_TC_ROCE(p_hwfn) ((p_hwfn)->hw_info.multi_tc_roce_en)
drivers/net/ethernet/qlogic/qed/qed.h
553
struct qed_hw_info hw_info;
drivers/net/ethernet/qlogic/qed/qed_cxt.c
1749
if ((p_hwfn->hw_info.personality == QED_PCI_FCOE) &&
drivers/net/ethernet/qlogic/qed/qed_cxt.c
1974
p_hwfn->hw_info.personality = QED_PCI_ETH_ROCE;
drivers/net/ethernet/qlogic/qed/qed_cxt.c
1977
switch (p_hwfn->hw_info.personality) {
drivers/net/ethernet/qlogic/qed/qed_cxt.c
2025
switch (p_hwfn->hw_info.personality) {
drivers/net/ethernet/qlogic/qed/qed_cxt.c
2134
switch (p_hwfn->hw_info.personality) {
drivers/net/ethernet/qlogic/qed/qed_cxt.c
2461
switch (p_hwfn->hw_info.personality) {
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
161
p_data->arr[id].tc, p_hwfn->hw_info.num_active_tc);
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
185
if (app_tlv && p_hwfn->hw_info.personality == personality)
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
186
qed_hw_info_set_offload_tc(&p_hwfn->hw_info, tc);
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
348
p_info = &p_hwfn->hw_info;
drivers/net/ethernet/qlogic/qed/qed_dcbx.c
888
if (p_hwfn->hw_info.personality ==
drivers/net/ethernet/qlogic/qed/qed_dev.c
1363
if (p_hwfn->hw_info.personality == QED_PCI_FCOE)
drivers/net/ethernet/qlogic/qed/qed_dev.c
1366
if (p_hwfn->hw_info.personality == QED_PCI_ISCSI) {
drivers/net/ethernet/qlogic/qed/qed_dev.c
1371
if (p_hwfn->hw_info.personality == QED_PCI_NVMETCP) {
drivers/net/ethernet/qlogic/qed/qed_dev.c
1411
switch (p_hwfn->hw_info.personality) {
drivers/net/ethernet/qlogic/qed/qed_dev.c
1433
"unknown personality %d\n", p_hwfn->hw_info.personality);
drivers/net/ethernet/qlogic/qed/qed_dev.c
1443
return p_hwfn->hw_info.num_hw_tc;
drivers/net/ethernet/qlogic/qed/qed_dev.c
1630
return p_hwfn->hw_info.offload_tc_set;
drivers/net/ethernet/qlogic/qed/qed_dev.c
1636
return p_hwfn->hw_info.offload_tc;
drivers/net/ethernet/qlogic/qed/qed_dev.c
1838
p_hwfn->hw_info.offload_tc : tc,
drivers/net/ethernet/qlogic/qed/qed_dev.c
1948
p_hwfn->hw_info.multi_tc_roce_en = false;
drivers/net/ethernet/qlogic/qed/qed_dev.c
2087
p_hwfn->hw_info.hw_mode);
drivers/net/ethernet/qlogic/qed/qed_dev.c
2256
} else if (p_hwfn->hw_info.personality == QED_PCI_ISCSI ||
drivers/net/ethernet/qlogic/qed/qed_dev.c
2257
p_hwfn->hw_info.personality == QED_PCI_NVMETCP) {
drivers/net/ethernet/qlogic/qed/qed_dev.c
2292
if (p_hwfn->hw_info.personality == QED_PCI_FCOE) {
drivers/net/ethernet/qlogic/qed/qed_dev.c
2298
if (p_hwfn->hw_info.personality == QED_PCI_ISCSI) {
drivers/net/ethernet/qlogic/qed/qed_dev.c
2307
if (p_hwfn->hw_info.personality == QED_PCI_NVMETCP) {
drivers/net/ethernet/qlogic/qed/qed_dev.c
2434
if (p_hwfn->hw_info.personality == QED_PCI_FCOE)
drivers/net/ethernet/qlogic/qed/qed_dev.c
2437
if (p_hwfn->hw_info.personality == QED_PCI_ISCSI) {
drivers/net/ethernet/qlogic/qed/qed_dev.c
2442
if (p_hwfn->hw_info.personality == QED_PCI_NVMETCP) {
drivers/net/ethernet/qlogic/qed/qed_dev.c
2537
p_hwfn->hw_info.hw_mode = hw_mode;
drivers/net/ethernet/qlogic/qed/qed_dev.c
2541
p_hwfn->hw_info.hw_mode);
drivers/net/ethernet/qlogic/qed/qed_dev.c
2558
p_igu_info = p_hwfn->hw_info.p_igu_info;
drivers/net/ethernet/qlogic/qed/qed_dev.c
2898
p_hwfn->hw_info.ovlan);
drivers/net/ethernet/qlogic/qed/qed_dev.c
2916
((p_hwfn->hw_info.personality == QED_PCI_ISCSI) ||
drivers/net/ethernet/qlogic/qed/qed_dev.c
2917
(p_hwfn->hw_info.personality == QED_PCI_NVMETCP)) ? 1 : 0);
drivers/net/ethernet/qlogic/qed/qed_dev.c
2919
(p_hwfn->hw_info.personality == QED_PCI_FCOE) ? 1 : 0);
drivers/net/ethernet/qlogic/qed/qed_dev.c
2964
if (p_hwfn->hw_info.personality == QED_PCI_FCOE) {
drivers/net/ethernet/qlogic/qed/qed_dev.c
3068
if (!p_hwfn->hw_info.mtu) {
drivers/net/ethernet/qlogic/qed/qed_dev.c
3069
p_hwfn->hw_info.mtu = 1500;
drivers/net/ethernet/qlogic/qed/qed_dev.c
3172
p_hwfn->hw_info.hw_mode);
drivers/net/ethernet/qlogic/qed/qed_dev.c
3178
p_hwfn->hw_info.hw_mode);
drivers/net/ethernet/qlogic/qed/qed_dev.c
3186
p_hwfn->hw_info.hw_mode,
drivers/net/ethernet/qlogic/qed/qed_dev.c
3250
p_hwfn->hw_info.mtu);
drivers/net/ethernet/qlogic/qed/qed_dev.c
3405
p_hwfn->hw_info.hw_mac_addr);
drivers/net/ethernet/qlogic/qed/qed_dev.c
3503
kfree(p_hwfn->hw_info.p_igu_info);
drivers/net/ethernet/qlogic/qed/qed_dev.c
3504
p_hwfn->hw_info.p_igu_info = NULL;
drivers/net/ethernet/qlogic/qed/qed_dev.c
3542
p_hwfn->hw_info.opaque_fid = (u16)REG_RD(p_hwfn,
drivers/net/ethernet/qlogic/qed/qed_dev.c
3545
p_hwfn->hw_info.concrete_fid = REG_RD(p_hwfn, PXP_PF_ME_CONCRETE_ADDR);
drivers/net/ethernet/qlogic/qed/qed_dev.c
3547
p_hwfn->abs_pf_id = (p_hwfn->hw_info.concrete_fid >> 16) & 0xf;
drivers/net/ethernet/qlogic/qed/qed_dev.c
3548
p_hwfn->rel_pf_id = GET_FIELD(p_hwfn->hw_info.concrete_fid,
drivers/net/ethernet/qlogic/qed/qed_dev.c
3550
p_hwfn->port_id = GET_FIELD(p_hwfn->hw_info.concrete_fid,
drivers/net/ethernet/qlogic/qed/qed_dev.c
3555
p_hwfn->hw_info.concrete_fid, p_hwfn->hw_info.opaque_fid);
drivers/net/ethernet/qlogic/qed/qed_dev.c
3560
u32 *feat_num = p_hwfn->hw_info.feat_num;
drivers/net/ethernet/qlogic/qed/qed_dev.c
3808
if (p_hwfn->hw_info.personality != QED_PCI_ISCSI &&
drivers/net/ethernet/qlogic/qed/qed_dev.c
3809
p_hwfn->hw_info.personality != QED_PCI_FCOE &&
drivers/net/ethernet/qlogic/qed/qed_dev.c
3810
p_hwfn->hw_info.personality != QED_PCI_NVMETCP)
drivers/net/ethernet/qlogic/qed/qed_dev.c
3831
else if (p_hwfn->hw_info.personality == QED_PCI_ISCSI ||
drivers/net/ethernet/qlogic/qed/qed_dev.c
3832
p_hwfn->hw_info.personality == QED_PCI_NVMETCP)
drivers/net/ethernet/qlogic/qed/qed_dev.c
3834
else if (p_hwfn->hw_info.personality == QED_PCI_FCOE)
drivers/net/ethernet/qlogic/qed/qed_dev.c
4366
&p_hwfn->hw_info.device_capabilities);
drivers/net/ethernet/qlogic/qed/qed_dev.c
4369
&p_hwfn->hw_info.device_capabilities);
drivers/net/ethernet/qlogic/qed/qed_dev.c
4372
&p_hwfn->hw_info.device_capabilities);
drivers/net/ethernet/qlogic/qed/qed_dev.c
4375
&p_hwfn->hw_info.device_capabilities);
drivers/net/ethernet/qlogic/qed/qed_dev.c
4383
p_hwfn->hw_info.part_num[i] = qed_rd(p_hwfn, p_ptt, addr + i * 4);
drivers/net/ethernet/qlogic/qed/qed_dev.c
4535
ether_addr_copy(p_hwfn->hw_info.hw_mac_addr,
drivers/net/ethernet/qlogic/qed/qed_dev.c
4538
eth_random_addr(p_hwfn->hw_info.hw_mac_addr);
drivers/net/ethernet/qlogic/qed/qed_dev.c
4542
p_hwfn->hw_info.ovlan =
drivers/net/ethernet/qlogic/qed/qed_dev.c
4556
p_hwfn->hw_info.personality = protocol;
drivers/net/ethernet/qlogic/qed/qed_dev.c
4560
p_hwfn->hw_info.multi_tc_roce_en = true;
drivers/net/ethernet/qlogic/qed/qed_dev.c
4562
p_hwfn->hw_info.num_hw_tc = NUM_PHYS_TCS_4PORT_K2;
drivers/net/ethernet/qlogic/qed/qed_dev.c
4563
p_hwfn->hw_info.num_active_tc = 1;
drivers/net/ethernet/qlogic/qed/qed_dev.c
4568
p_hwfn->hw_info.mtu = p_hwfn->mcp_info->func_info.mtu;
drivers/net/ethernet/qlogic/qed/qed_dev.c
4743
personality = p_hwfn->hw_info.personality;
drivers/net/ethernet/qlogic/qed/qed_dev.c
697
p_hwfn->hw_info.hw_mac_addr);
drivers/net/ethernet/qlogic/qed/qed_devlink.c
168
memcpy(buf, cdev->hwfns[0].hw_info.part_num, sizeof(cdev->hwfns[0].hw_info.part_num));
drivers/net/ethernet/qlogic/qed/qed_devlink.c
169
buf[sizeof(cdev->hwfns[0].hw_info.part_num)] = 0;
drivers/net/ethernet/qlogic/qed/qed_fcoe.c
105
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_fcoe.c
120
if (fcoe_pf_params->num_cqs > p_hwfn->hw_info.feat_num[QED_FCOE_CQ]) {
drivers/net/ethernet/qlogic/qed/qed_fcoe.c
124
p_hwfn->hw_info.feat_num[QED_FCOE_CQ]);
drivers/net/ethernet/qlogic/qed/qed_fcoe.c
168
tmp = (__force __le16)p_hwfn->hw_info.resc_start[QED_CMDQS_CQS];
drivers/net/ethernet/qlogic/qed/qed_fcoe.c
240
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_fcoe.c
317
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_fcoe.c
348
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_fcoe.c
627
p_conn->fw_cid = (p_hwfn->hw_info.opaque_fid << 16) | icid;
drivers/net/ethernet/qlogic/qed/qed_int.c
1556
u8 num_tc = p_hwfn->hw_info.num_hw_tc;
drivers/net/ethernet/qlogic/qed/qed_int.c
1606
p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_id];
drivers/net/ethernet/qlogic/qed/qed_int.c
1626
p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_id];
drivers/net/ethernet/qlogic/qed/qed_int.c
1645
igu_sb_id = p_hwfn->hw_info.p_igu_info->igu_dsb_id;
drivers/net/ethernet/qlogic/qed/qed_int.c
1676
p_info = p_hwfn->hw_info.p_igu_info;
drivers/net/ethernet/qlogic/qed/qed_int.c
1728
p_info = p_hwfn->hw_info.p_igu_info;
drivers/net/ethernet/qlogic/qed/qed_int.c
1962
p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_sb_id];
drivers/net/ethernet/qlogic/qed/qed_int.c
2003
struct qed_igu_info *p_info = p_hwfn->hw_info.p_igu_info;
drivers/net/ethernet/qlogic/qed/qed_int.c
2023
p_hwfn->hw_info.opaque_fid,
drivers/net/ethernet/qlogic/qed/qed_int.c
2030
p_hwfn->hw_info.opaque_fid,
drivers/net/ethernet/qlogic/qed/qed_int.c
2036
struct qed_igu_info *p_info = p_hwfn->hw_info.p_igu_info;
drivers/net/ethernet/qlogic/qed/qed_int.c
2175
p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_sb_id];
drivers/net/ethernet/qlogic/qed/qed_int.c
2191
p_hwfn->hw_info.p_igu_info = kzalloc_obj(*p_igu_info);
drivers/net/ethernet/qlogic/qed/qed_int.c
2192
if (!p_hwfn->hw_info.p_igu_info)
drivers/net/ethernet/qlogic/qed/qed_int.c
2195
p_igu_info = p_hwfn->hw_info.p_igu_info;
drivers/net/ethernet/qlogic/qed/qed_int.c
2341
struct qed_igu_info *info = p_hwfn->hw_info.p_igu_info;
drivers/net/ethernet/qlogic/qed/qed_iscsi.c
156
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_iscsi.c
172
if (p_params->num_queues > p_hwfn->hw_info.feat_num[QED_ISCSI_CQ]) {
drivers/net/ethernet/qlogic/qed/qed_iscsi.c
176
p_hwfn->hw_info.feat_num[QED_ISCSI_CQ]);
drivers/net/ethernet/qlogic/qed/qed_iscsi.c
187
p_hwfn->hw_info.resc_start[QED_LL2_RAM_QUEUE] +
drivers/net/ethernet/qlogic/qed/qed_iscsi.c
203
dval = (u8)p_hwfn->hw_info.resc_start[QED_CMDQS_CQS];
drivers/net/ethernet/qlogic/qed/qed_iscsi.c
284
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_iscsi.c
463
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_iscsi.c
504
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_iscsi.c
546
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_iscsi.c
580
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_iscsi.c
604
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_iscsi.c
811
p_conn->fw_cid = (p_hwfn->hw_info.opaque_fid << 16) | icid;
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
217
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
256
p_ramrod->srq_id.opaque_fid = cpu_to_le16(p_hwfn->hw_info.opaque_fid);
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
261
cpu_to_le32((p_hwfn->hw_info.opaque_fid << 16) | qp->sq_cq_id);
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
263
cpu_to_le32((p_hwfn->hw_info.opaque_fid << 16) | qp->rq_cq_id);
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
299
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
3238
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
471
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
639
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
842
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
869
val = p_hwfn->hw_info.opaque_fid << 16 | ep->tcp_cid;
drivers/net/ethernet/qlogic/qed/qed_l2.c
1456
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_l2.c
1525
opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_l2.c
1552
opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_l2.c
2002
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_l2.c
2174
info->num_tc = p_hwfn->hw_info.num_hw_tc;
drivers/net/ethernet/qlogic/qed/qed_l2.c
2221
cdev->hwfns[0].hw_info.hw_mac_addr);
drivers/net/ethernet/qlogic/qed/qed_l2.c
2294
start.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_l2.c
2295
start.concrete_fid = p_hwfn->hw_info.concrete_fid;
drivers/net/ethernet/qlogic/qed/qed_l2.c
2332
p_hwfn->hw_info.opaque_fid, vport_id);
drivers/net/ethernet/qlogic/qed/qed_l2.c
2444
sp_params.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_l2.c
2483
p_hwfn->hw_info.opaque_fid,
drivers/net/ethernet/qlogic/qed/qed_l2.c
2534
p_hwfn->hw_info.opaque_fid,
drivers/net/ethernet/qlogic/qed/qed_l2.c
810
vport_update_params.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_ll2.c
1045
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_ll2.c
1095
if (p_hwfn->hw_info.personality == QED_PCI_ISCSI ||
drivers/net/ethernet/qlogic/qed/qed_ll2.c
1096
p_hwfn->hw_info.personality == QED_PCI_NVMETCP)
drivers/net/ethernet/qlogic/qed/qed_ll2.c
1129
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_ll2.c
1159
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_ll2.c
1541
return p_hwfn->hw_info.resc_start[QED_LL2_RAM_QUEUE] + handle;
drivers/net/ethernet/qlogic/qed/qed_ll2.c
1549
qid = p_hwfn->hw_info.resc_start[QED_LL2_CTX_QUEUE] +
drivers/net/ethernet/qlogic/qed/qed_ll2.c
2509
switch (p_hwfn->hw_info.personality) {
drivers/net/ethernet/qlogic/qed/qed_ll2.c
973
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_main.c
379
struct qed_hw_info *hw_info = &p_hwfn->hw_info;
drivers/net/ethernet/qlogic/qed/qed_main.c
405
ether_addr_copy(dev_info->hw_mac, hw_info->hw_mac_addr);
drivers/net/ethernet/qlogic/qed/qed_main.c
418
if (hw_info->b_wol_support == QED_WOL_SUPPORT_PME)
drivers/net/ethernet/qlogic/qed/qed_main.c
449
dev_info->mtu = hw_info->mtu;
drivers/net/ethernet/qlogic/qed/qed_main.c
854
if (QED_LEADING_HWFN(cdev)->hw_info.personality != QED_PCI_ETH) {
drivers/net/ethernet/qlogic/qed/qed_mcp.c
1784
p_hwfn->hw_info.ovlan = p_hwfn->mcp_info->func_info.ovlan;
drivers/net/ethernet/qlogic/qed/qed_mcp.c
1786
if (p_hwfn->hw_info.ovlan != QED_MCP_VLAN_UNSET) {
drivers/net/ethernet/qlogic/qed/qed_mcp.c
1788
p_hwfn->hw_info.ovlan);
drivers/net/ethernet/qlogic/qed/qed_mcp.c
1794
p_hwfn->hw_info.ovlan);
drivers/net/ethernet/qlogic/qed/qed_mcp.c
1806
p_hwfn->mcp_info->func_info.ovlan, p_hwfn->hw_info.hw_mode);
drivers/net/ethernet/qlogic/qed/qed_mcp.c
1994
qed_hw_info_set_offload_tc(&p_hwfn->hw_info,
drivers/net/ethernet/qlogic/qed/qed_mcp.c
2430
if (test_bit(QED_DEV_CAP_ROCE, &p_hwfn->hw_info.device_capabilities))
drivers/net/ethernet/qlogic/qed/qed_mcp.c
2561
p_hwfn->hw_info.b_wol_support = QED_WOL_SUPPORT_NONE;
drivers/net/ethernet/qlogic/qed/qed_mcp.c
2572
p_hwfn->hw_info.b_wol_support = QED_WOL_SUPPORT_PME;
drivers/net/ethernet/qlogic/qed/qed_mcp.c
2581
info->ovlan, (u8)p_hwfn->hw_info.b_wol_support);
drivers/net/ethernet/qlogic/qed/qed_mcp.c
2949
if (p_hwfn->hw_info.b_wol_support == QED_WOL_SUPPORT_NONE) {
drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c
1302
p_hwfn->hw_info.personality != QED_PCI_FCOE) {
drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c
1309
p_hwfn->hw_info.personality != QED_PCI_ISCSI &&
drivers/net/ethernet/qlogic/qed/qed_mng_tlv.c
1310
p_hwfn->hw_info.personality != QED_PCI_NVMETCP) {
drivers/net/ethernet/qlogic/qed/qed_nvmetcp.c
130
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_nvmetcp.c
284
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_nvmetcp.c
370
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_nvmetcp.c
406
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_nvmetcp.c
434
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_nvmetcp.c
543
p_conn->fw_cid = (p_hwfn->hw_info.opaque_fid << 16) | icid;
drivers/net/ethernet/qlogic/qed/qed_nvmetcp.c
66
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_ooo.c
84
switch (p_hwfn->hw_info.personality) {
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1063
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1140
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1401
(u8 *)&p_hwfn->hw_info.hw_mac_addr, ETH_ALEN);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1478
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1595
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1692
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1703
opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1730
opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1796
opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1824
cpu_to_le32((p_hwfn->hw_info.opaque_fid << 16) |
drivers/net/ethernet/qlogic/qed/qed_rdma.c
424
p_hwfn->hw_info.hw_mac_addr);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
571
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_rdma.c
736
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_roce.c
255
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_roce.c
309
p_ramrod->cq_cid = cpu_to_le32((p_hwfn->hw_info.opaque_fid << 16) |
drivers/net/ethernet/qlogic/qed/qed_roce.c
333
p_ramrod->srq_id.opaque_fid = cpu_to_le16(p_hwfn->hw_info.opaque_fid);
drivers/net/ethernet/qlogic/qed/qed_roce.c
393
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_roce.c
446
cpu_to_le32((p_hwfn->hw_info.opaque_fid << 16) | qp->sq_cq_id);
drivers/net/ethernet/qlogic/qed/qed_roce.c
511
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_roce.c
599
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_roce.c
700
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_roce.c
780
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_roce.c
861
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
320
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
343
outer_tag_config->outer_tag.tci = cpu_to_le16(p_hwfn->hw_info.ovlan);
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
386
switch (p_hwfn->hw_info.personality) {
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
403
p_hwfn->hw_info.personality);
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
438
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
468
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
506
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
537
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
558
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
579
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_sp_commands.c
589
p_ent->ramrod.pf_update.mf_vlan = cpu_to_le16(p_hwfn->hw_info.ovlan);
drivers/net/ethernet/qlogic/qed/qed_sriov.c
1626
memcpy(pfdev_info->port_mac, p_hwfn->hw_info.hw_mac_addr, ETH_ALEN);
drivers/net/ethernet/qlogic/qed/qed_sriov.c
3582
qed_fid_pretend(p_hwfn, p_ptt, (u16)p_hwfn->hw_info.concrete_fid);
drivers/net/ethernet/qlogic/qed/qed_sriov.c
451
vf->opaque_fid = (p_hwfn->hw_info.opaque_fid & 0xff) |
drivers/net/ethernet/qlogic/qed/qed_sriov.c
71
switch (p_hwfn->hw_info.personality) {
drivers/net/ethernet/qlogic/qed/qed_sriov.c
724
qed_fid_pretend(p_hwfn, p_ptt, (u16)p_hwfn->hw_info.concrete_fid);
drivers/net/ethernet/qlogic/qed/qed_sriov.c
751
qed_fid_pretend(p_hwfn, p_ptt, (u16)p_hwfn->hw_info.concrete_fid);
drivers/net/ethernet/qlogic/qed/qed_sriov.c
81
p_hwfn->hw_info.personality);
drivers/net/ethernet/qlogic/qed/qed_sriov.c
818
p_hwfn->hw_info.hw_mode);
drivers/net/ethernet/qlogic/qed/qed_sriov.c
821
qed_fid_pretend(p_hwfn, p_ptt, (u16)p_hwfn->hw_info.concrete_fid);
drivers/net/ethernet/qlogic/qed/qed_sriov.c
881
if (num_rx_queues > p_hwfn->hw_info.p_igu_info->usage.free_cnt_iov)
drivers/net/ethernet/qlogic/qed/qed_sriov.c
882
num_rx_queues = p_hwfn->hw_info.p_igu_info->usage.free_cnt_iov;
drivers/net/ethernet/qlogic/qed/qed_sriov.c
883
p_hwfn->hw_info.p_igu_info->usage.free_cnt_iov -= num_rx_queues;
drivers/net/ethernet/qlogic/qed/qed_sriov.c
918
struct qed_igu_info *p_info = p_hwfn->hw_info.p_igu_info;
drivers/net/ethernet/qlogic/qed/qed_sriov.c
932
p_hwfn->hw_info.p_igu_info->usage.free_cnt_iov++;
drivers/net/ethernet/qlogic/qed/qed_vf.c
258
req->vfdev_info.opaque_fid = p_hwfn->hw_info.opaque_fid;
drivers/net/ethernet/qlogic/qed/qed_vf.c
451
p_hwfn->hw_info.opaque_fid = (u16)REG_RD(p_hwfn, reg);
drivers/net/ethernet/qlogic/qed/qed_vf.c
454
p_hwfn->hw_info.concrete_fid = REG_RD(p_hwfn, reg);
drivers/net/ethernet/qlogic/qed/qed_vf.c
525
p_hwfn->hw_info.personality = QED_PCI_ETH;
drivers/net/ethernet/qlogic/qed/qed_vf.c
82
GET_FIELD(p_hwfn->hw_info.concrete_fid,
drivers/net/ethernet/renesas/ravb_main.c
1769
const struct ravb_hw_info *hw_info = priv->info;
drivers/net/ethernet/renesas/ravb_main.c
1771
if (hw_info->gptp || hw_info->ccc_gac) {
drivers/net/ethernet/tundra/tsi108_eth.c
1542
hw_info *einfo;
drivers/net/fjes/fjes_debugfs.c
44
fjes_hw_epid_is_shared(hw->hw_info.share, epidx) ? 'Y' : 'N');
drivers/net/fjes/fjes_ethtool.c
217
mutex_lock(&hw->hw_info.lock);
drivers/net/fjes/fjes_ethtool.c
219
mutex_unlock(&hw->hw_info.lock);
drivers/net/fjes/fjes_ethtool.c
228
mutex_lock(&hw->hw_info.lock);
drivers/net/fjes/fjes_ethtool.c
230
mutex_unlock(&hw->hw_info.lock);
drivers/net/fjes/fjes_ethtool.c
242
dump->len = hw->hw_info.trace_size;
drivers/net/fjes/fjes_ethtool.c
256
if (hw->hw_info.trace)
drivers/net/fjes/fjes_ethtool.c
257
memcpy(buf, hw->hw_info.trace, hw->hw_info.trace_size);
drivers/net/fjes/fjes_hw.c
1008
res_buf = hw->hw_info.res_buf;
drivers/net/fjes/fjes_hw.c
1011
mutex_lock(&hw->hw_info.lock);
drivers/net/fjes/fjes_hw.c
102
hw->hw_info.share->epnum = hw->max_epid;
drivers/net/fjes/fjes_hw.c
1061
&hw->hw_info.buffer_unshare_reserve_bit);
drivers/net/fjes/fjes_hw.c
1083
mutex_unlock(&hw->hw_info.lock);
drivers/net/fjes/fjes_hw.c
109
kfree(hw->hw_info.share);
drivers/net/fjes/fjes_hw.c
1095
mutex_lock(&hw->hw_info.lock);
drivers/net/fjes/fjes_hw.c
110
hw->hw_info.share = NULL;
drivers/net/fjes/fjes_hw.c
1113
mutex_unlock(&hw->hw_info.lock);
drivers/net/fjes/fjes_hw.c
1120
mutex_lock(&hw->hw_info.lock);
drivers/net/fjes/fjes_hw.c
1138
mutex_unlock(&hw->hw_info.lock);
drivers/net/fjes/fjes_hw.c
1165
set_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit);
drivers/net/fjes/fjes_hw.c
1210
union fjes_device_command_req *req_buf = hw->hw_info.req_buf;
drivers/net/fjes/fjes_hw.c
1211
union fjes_device_command_res *res_buf = hw->hw_info.res_buf;
drivers/net/fjes/fjes_hw.c
1218
if (!hw->hw_info.trace)
drivers/net/fjes/fjes_hw.c
1220
memset(hw->hw_info.trace, 0, FJES_DEBUG_BUFFER_SIZE);
drivers/net/fjes/fjes_hw.c
1222
memset(req_buf, 0, hw->hw_info.req_buf_size);
drivers/net/fjes/fjes_hw.c
1223
memset(res_buf, 0, hw->hw_info.res_buf_size);
drivers/net/fjes/fjes_hw.c
1226
FJES_DEV_COMMAND_START_DBG_REQ_LEN(hw->hw_info.trace_size);
drivers/net/fjes/fjes_hw.c
1228
req_buf->start_trace.buffer_len = hw->hw_info.trace_size;
drivers/net/fjes/fjes_hw.c
1229
page_count = hw->hw_info.trace_size / FJES_DEBUG_PAGE_SIZE;
drivers/net/fjes/fjes_hw.c
1231
addr = ((u8 *)hw->hw_info.trace) + i * FJES_DEBUG_PAGE_SIZE;
drivers/net/fjes/fjes_hw.c
1279
union fjes_device_command_req *req_buf = hw->hw_info.req_buf;
drivers/net/fjes/fjes_hw.c
1280
union fjes_device_command_res *res_buf = hw->hw_info.res_buf;
drivers/net/fjes/fjes_hw.c
1284
if (!hw->hw_info.trace)
drivers/net/fjes/fjes_hw.c
1287
memset(req_buf, 0, hw->hw_info.req_buf_size);
drivers/net/fjes/fjes_hw.c
1288
memset(res_buf, 0, hw->hw_info.res_buf_size);
drivers/net/fjes/fjes_hw.c
212
hw->hw_info.max_epid = &hw->max_epid;
drivers/net/fjes/fjes_hw.c
213
hw->hw_info.my_epid = &hw->my_epid;
drivers/net/fjes/fjes_hw.c
222
hw->hw_info.req_buf = kzalloc(mem_size, GFP_KERNEL);
drivers/net/fjes/fjes_hw.c
223
if (!(hw->hw_info.req_buf)) {
drivers/net/fjes/fjes_hw.c
228
hw->hw_info.req_buf_size = mem_size;
drivers/net/fjes/fjes_hw.c
231
hw->hw_info.res_buf = kzalloc(mem_size, GFP_KERNEL);
drivers/net/fjes/fjes_hw.c
232
if (!(hw->hw_info.res_buf)) {
drivers/net/fjes/fjes_hw.c
237
hw->hw_info.res_buf_size = mem_size;
drivers/net/fjes/fjes_hw.c
243
hw->hw_info.buffer_share_bit = 0;
drivers/net/fjes/fjes_hw.c
244
hw->hw_info.buffer_unshare_reserve_bit = 0;
drivers/net/fjes/fjes_hw.c
269
param.req_len = hw->hw_info.req_buf_size;
drivers/net/fjes/fjes_hw.c
270
param.req_start = __pa(hw->hw_info.req_buf);
drivers/net/fjes/fjes_hw.c
271
param.res_len = hw->hw_info.res_buf_size;
drivers/net/fjes/fjes_hw.c
272
param.res_start = __pa(hw->hw_info.res_buf);
drivers/net/fjes/fjes_hw.c
274
param.share_start = __pa(hw->hw_info.share->ep_status);
drivers/net/fjes/fjes_hw.c
289
kfree(hw->hw_info.res_buf);
drivers/net/fjes/fjes_hw.c
290
hw->hw_info.res_buf = NULL;
drivers/net/fjes/fjes_hw.c
292
kfree(hw->hw_info.req_buf);
drivers/net/fjes/fjes_hw.c
293
hw->hw_info.req_buf = NULL;
drivers/net/fjes/fjes_hw.c
309
kfree(hw->hw_info.req_buf);
drivers/net/fjes/fjes_hw.c
310
hw->hw_info.req_buf = NULL;
drivers/net/fjes/fjes_hw.c
312
kfree(hw->hw_info.res_buf);
drivers/net/fjes/fjes_hw.c
313
hw->hw_info.res_buf = NULL;
drivers/net/fjes/fjes_hw.c
343
mutex_init(&hw->hw_info.lock);
drivers/net/fjes/fjes_hw.c
356
hw->hw_info.trace = vzalloc(FJES_DEBUG_BUFFER_SIZE);
drivers/net/fjes/fjes_hw.c
357
hw->hw_info.trace_size = FJES_DEBUG_BUFFER_SIZE;
drivers/net/fjes/fjes_hw.c
374
mutex_lock(&hw->hw_info.lock);
drivers/net/fjes/fjes_hw.c
376
mutex_unlock(&hw->hw_info.lock);
drivers/net/fjes/fjes_hw.c
378
vfree(hw->hw_info.trace);
drivers/net/fjes/fjes_hw.c
379
hw->hw_info.trace = NULL;
drivers/net/fjes/fjes_hw.c
380
hw->hw_info.trace_size = 0;
drivers/net/fjes/fjes_hw.c
448
union fjes_device_command_req *req_buf = hw->hw_info.req_buf;
drivers/net/fjes/fjes_hw.c
449
union fjes_device_command_res *res_buf = hw->hw_info.res_buf;
drivers/net/fjes/fjes_hw.c
453
memset(req_buf, 0, hw->hw_info.req_buf_size);
drivers/net/fjes/fjes_hw.c
454
memset(res_buf, 0, hw->hw_info.res_buf_size);
drivers/net/fjes/fjes_hw.c
466
if (FJES_DEV_COMMAND_INFO_RES_LEN((*hw->hw_info.max_epid)) !=
drivers/net/fjes/fjes_hw.c
506
union fjes_device_command_req *req_buf = hw->hw_info.req_buf;
drivers/net/fjes/fjes_hw.c
507
union fjes_device_command_res *res_buf = hw->hw_info.res_buf;
drivers/net/fjes/fjes_hw.c
515
if (test_bit(dest_epid, &hw->hw_info.buffer_share_bit))
drivers/net/fjes/fjes_hw.c
518
memset(req_buf, 0, hw->hw_info.req_buf_size);
drivers/net/fjes/fjes_hw.c
519
memset(res_buf, 0, hw->hw_info.res_buf_size);
drivers/net/fjes/fjes_hw.c
582
set_bit(dest_epid, &hw->hw_info.buffer_share_bit);
drivers/net/fjes/fjes_hw.c
614
union fjes_device_command_req *req_buf = hw->hw_info.req_buf;
drivers/net/fjes/fjes_hw.c
615
union fjes_device_command_res *res_buf = hw->hw_info.res_buf;
drivers/net/fjes/fjes_hw.c
616
struct fjes_device_shared_info *share = hw->hw_info.share;
drivers/net/fjes/fjes_hw.c
627
if (!test_bit(dest_epid, &hw->hw_info.buffer_share_bit))
drivers/net/fjes/fjes_hw.c
630
memset(req_buf, 0, hw->hw_info.req_buf_size);
drivers/net/fjes/fjes_hw.c
631
memset(res_buf, 0, hw->hw_info.res_buf_size);
drivers/net/fjes/fjes_hw.c
672
clear_bit(dest_epid, &hw->hw_info.buffer_share_bit);
drivers/net/fjes/fjes_hw.c
772
if (fjes_hw_epid_is_shared(hw->hw_info.share, epid)) {
drivers/net/fjes/fjes_hw.c
809
set_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit);
drivers/net/fjes/fjes_hw.c
826
while (hw->hw_info.buffer_unshare_reserve_bit &&
drivers/net/fjes/fjes_hw.c
831
status = fjes_hw_epid_is_shared(hw->hw_info.share,
drivers/net/fjes/fjes_hw.c
838
&hw->hw_info.buffer_unshare_reserve_bit)) {
drivers/net/fjes/fjes_hw.c
840
&hw->hw_info.buffer_unshare_reserve_bit);
drivers/net/fjes/fjes_hw.c
851
if (test_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit))
drivers/net/fjes/fjes_hw.c
853
&hw->hw_info.buffer_unshare_reserve_bit);
drivers/net/fjes/fjes_hw.c
98
hw->hw_info.share = kzalloc(size, GFP_KERNEL);
drivers/net/fjes/fjes_hw.c
99
if (!hw->hw_info.share)
drivers/net/fjes/fjes_hw.h
317
struct fjes_hw_info hw_info;
drivers/net/fjes/fjes_main.c
1156
is_shared = fjes_hw_epid_is_shared(hw->hw_info.share,
drivers/net/fjes/fjes_main.c
1167
&hw->hw_info.buffer_unshare_reserve_bit);
drivers/net/fjes/fjes_main.c
1174
mutex_lock(&hw->hw_info.lock);
drivers/net/fjes/fjes_main.c
1190
mutex_unlock(&hw->hw_info.lock);
drivers/net/fjes/fjes_main.c
1202
&hw->hw_info.buffer_unshare_reserve_bit);
drivers/net/fjes/fjes_main.c
1209
if (hw->hw_info.buffer_unshare_reserve_bit) {
drivers/net/fjes/fjes_main.c
1215
&hw->hw_info.buffer_unshare_reserve_bit)) {
drivers/net/fjes/fjes_main.c
1216
mutex_lock(&hw->hw_info.lock);
drivers/net/fjes/fjes_main.c
123
mutex_lock(&hw->hw_info.lock);
drivers/net/fjes/fjes_main.c
1233
mutex_unlock(&hw->hw_info.lock);
drivers/net/fjes/fjes_main.c
1247
clear_bit(epidx, &hw->hw_info.buffer_unshare_reserve_bit);
drivers/net/fjes/fjes_main.c
129
hw->hw_info.res_buf->info.info[epidx].es_status;
drivers/net/fjes/fjes_main.c
131
hw->hw_info.res_buf->info.info[epidx].zone;
drivers/net/fjes/fjes_main.c
139
mutex_unlock(&hw->hw_info.lock);
drivers/net/fjes/fjes_main.c
142
mutex_unlock(&hw->hw_info.lock);
drivers/net/fjes/fjes_main.c
169
mutex_lock(&hw->hw_info.lock);
drivers/net/fjes/fjes_main.c
172
mutex_unlock(&hw->hw_info.lock);
drivers/net/fjes/fjes_main.c
208
set_bit(src_epid, &hw->hw_info.buffer_unshare_reserve_bit);
drivers/net/fjes/fjes_main.c
389
mutex_lock(&hw->hw_info.lock);
drivers/net/fjes/fjes_main.c
391
mutex_unlock(&hw->hw_info.lock);
drivers/net/fjes/fjes_main.c
416
hw->hw_info.buffer_share_bit = 0;
drivers/net/fjes/fjes_main.c
420
param.req_len = hw->hw_info.req_buf_size;
drivers/net/fjes/fjes_main.c
421
param.req_start = __pa(hw->hw_info.req_buf);
drivers/net/fjes/fjes_main.c
422
param.res_len = hw->hw_info.res_buf_size;
drivers/net/fjes/fjes_main.c
423
param.res_start = __pa(hw->hw_info.res_buf);
drivers/net/fjes/fjes_main.c
424
param.share_start = __pa(hw->hw_info.share->ep_status);
drivers/net/fjes/fjes_trace.h
282
__entry->ep_status = hw->hw_info.share->ep_status[src_epid];
drivers/net/fjes/fjes_trace.h
303
__entry->ep_status = hw->hw_info.share->ep_status[src_epid];
drivers/net/fjes/fjes_trace.h
326
__entry->ep_status = hw->hw_info.share->ep_status[src_epid];
drivers/net/fjes/fjes_trace.h
347
__entry->ep_status = hw->hw_info.share->ep_status[src_epid];
drivers/net/wireless/quantenna/qtnfmac/bus.h
60
struct qtnf_hw_info hw_info;
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1077
qtnf_hwcap_is_set(&bus->hw_info, QLINK_HW_CAPAB_DFS_OFFLOAD))
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1080
if (!qtnf_hwcap_is_set(&bus->hw_info, QLINK_HW_CAPAB_PWR_MGMT))
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1123
int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac)
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1166
qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_DFS_OFFLOAD))
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1169
if (qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_SCAN_DWELL))
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1185
if (qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_STA_INACT_TIMEOUT))
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1188
if (qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_SCAN_RANDOM_MAC_ADDR))
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1191
if (!qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_OBSS_SCAN))
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1194
if (qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_SAE))
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1205
if (qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_REG_UPDATE)) {
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1228
strscpy(wiphy->fw_version, hw_info->fw_version,
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
1230
wiphy->hw_version = hw_info->hw_version;
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
267
if (qtnf_hwcap_is_set(&mac->bus->hw_info, QLINK_HW_CAPAB_HW_BRIDGE)) {
drivers/net/wireless/quantenna/qtnfmac/cfg80211.h
11
int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac);
drivers/net/wireless/quantenna/qtnfmac/commands.c
1698
bus->hw_info.ql_proto_ver = le32_to_cpu(resp->qlink_proto_ver);
drivers/net/wireless/quantenna/qtnfmac/commands.c
881
struct qtnf_hw_info *hwinfo = &bus->hw_info;
drivers/net/wireless/quantenna/qtnfmac/commands.c
964
QLINK_VER_MAJOR(bus->hw_info.ql_proto_ver),
drivers/net/wireless/quantenna/qtnfmac/commands.c
965
QLINK_VER_MINOR(bus->hw_info.ql_proto_ver),
drivers/net/wireless/quantenna/qtnfmac/core.c
402
if (bus->hw_info.num_mac > 1) {
drivers/net/wireless/quantenna/qtnfmac/core.c
473
if (qtnf_hwcap_is_set(&mac->bus->hw_info, QLINK_HW_CAPAB_HW_BRIDGE))
drivers/net/wireless/quantenna/qtnfmac/core.c
550
if (!(bus->hw_info.mac_bitmap & BIT(macid))) {
drivers/net/wireless/quantenna/qtnfmac/core.c
591
ret = qtnf_wiphy_register(&bus->hw_info, mac);
drivers/net/wireless/quantenna/qtnfmac/core.c
610
if (qtnf_hwcap_is_set(&bus->hw_info, QLINK_HW_CAPAB_HW_BRIDGE)) {
drivers/net/wireless/quantenna/qtnfmac/core.c
680
qtnf_hwcap_is_set(&bus->hw_info,
drivers/net/wireless/quantenna/qtnfmac/core.c
733
if (QLINK_VER_MAJOR(bus->hw_info.ql_proto_ver) !=
drivers/net/wireless/quantenna/qtnfmac/core.c
737
QLINK_VER_MAJOR(bus->hw_info.ql_proto_ver));
drivers/net/wireless/quantenna/qtnfmac/core.c
749
if (qtnf_hwcap_is_set(&bus->hw_info, QLINK_HW_CAPAB_HW_BRIDGE) &&
drivers/net/wireless/quantenna/qtnfmac/core.c
753
if (bus->hw_info.num_mac > QTNF_MAX_MAC) {
drivers/net/wireless/quantenna/qtnfmac/core.c
755
bus->hw_info.num_mac);
drivers/net/wireless/quantenna/qtnfmac/core.c
760
for (i = 0; i < bus->hw_info.num_mac; i++) {
drivers/net/wireless/quantenna/qtnfmac/core.c
894
if (!(bus->hw_info.mac_bitmap & BIT(macid)))
drivers/net/wwan/t7xx/t7xx_cldma.c
105
bool t7xx_cldma_tx_addr_is_set(struct t7xx_cldma_hw *hw_info, unsigned int qno)
drivers/net/wwan/t7xx/t7xx_cldma.c
109
return ioread64_lo_hi(hw_info->ap_pdn_base + offset);
drivers/net/wwan/t7xx/t7xx_cldma.c
112
void t7xx_cldma_hw_set_start_addr(struct t7xx_cldma_hw *hw_info, unsigned int qno, u64 address,
drivers/net/wwan/t7xx/t7xx_cldma.c
118
reg = tx_rx == MTK_RX ? hw_info->ap_ao_base + REG_CLDMA_DL_START_ADDRL_0 :
drivers/net/wwan/t7xx/t7xx_cldma.c
119
hw_info->ap_pdn_base + REG_CLDMA_UL_START_ADDRL_0;
drivers/net/wwan/t7xx/t7xx_cldma.c
123
void t7xx_cldma_hw_resume_queue(struct t7xx_cldma_hw *hw_info, unsigned int qno,
drivers/net/wwan/t7xx/t7xx_cldma.c
126
void __iomem *base = hw_info->ap_pdn_base;
drivers/net/wwan/t7xx/t7xx_cldma.c
134
unsigned int t7xx_cldma_hw_queue_status(struct t7xx_cldma_hw *hw_info, unsigned int qno,
drivers/net/wwan/t7xx/t7xx_cldma.c
141
reg = tx_rx == MTK_RX ? hw_info->ap_ao_base + REG_CLDMA_DL_STATUS :
drivers/net/wwan/t7xx/t7xx_cldma.c
142
hw_info->ap_pdn_base + REG_CLDMA_UL_STATUS;
drivers/net/wwan/t7xx/t7xx_cldma.c
148
void t7xx_cldma_hw_tx_done(struct t7xx_cldma_hw *hw_info, unsigned int bitmask)
drivers/net/wwan/t7xx/t7xx_cldma.c
152
ch_id = ioread32(hw_info->ap_pdn_base + REG_CLDMA_L2TISAR0);
drivers/net/wwan/t7xx/t7xx_cldma.c
155
iowrite32(ch_id, hw_info->ap_pdn_base + REG_CLDMA_L2TISAR0);
drivers/net/wwan/t7xx/t7xx_cldma.c
156
ioread32(hw_info->ap_pdn_base + REG_CLDMA_L2TISAR0);
drivers/net/wwan/t7xx/t7xx_cldma.c
159
void t7xx_cldma_hw_rx_done(struct t7xx_cldma_hw *hw_info, unsigned int bitmask)
drivers/net/wwan/t7xx/t7xx_cldma.c
163
ch_id = ioread32(hw_info->ap_pdn_base + REG_CLDMA_L2RISAR0);
drivers/net/wwan/t7xx/t7xx_cldma.c
166
iowrite32(ch_id, hw_info->ap_pdn_base + REG_CLDMA_L2RISAR0);
drivers/net/wwan/t7xx/t7xx_cldma.c
167
ioread32(hw_info->ap_pdn_base + REG_CLDMA_L2RISAR0);
drivers/net/wwan/t7xx/t7xx_cldma.c
170
unsigned int t7xx_cldma_hw_int_status(struct t7xx_cldma_hw *hw_info, unsigned int bitmask,
drivers/net/wwan/t7xx/t7xx_cldma.c
176
reg = tx_rx == MTK_RX ? hw_info->ap_pdn_base + REG_CLDMA_L2RISAR0 :
drivers/net/wwan/t7xx/t7xx_cldma.c
177
hw_info->ap_pdn_base + REG_CLDMA_L2TISAR0;
drivers/net/wwan/t7xx/t7xx_cldma.c
182
void t7xx_cldma_hw_irq_dis_txrx(struct t7xx_cldma_hw *hw_info, unsigned int qno,
drivers/net/wwan/t7xx/t7xx_cldma.c
188
reg = tx_rx == MTK_RX ? hw_info->ap_ao_base + REG_CLDMA_L2RIMSR0 :
drivers/net/wwan/t7xx/t7xx_cldma.c
189
hw_info->ap_pdn_base + REG_CLDMA_L2TIMSR0;
drivers/net/wwan/t7xx/t7xx_cldma.c
194
void t7xx_cldma_hw_irq_dis_eq(struct t7xx_cldma_hw *hw_info, unsigned int qno, enum mtk_txrx tx_rx)
drivers/net/wwan/t7xx/t7xx_cldma.c
199
reg = tx_rx == MTK_RX ? hw_info->ap_ao_base + REG_CLDMA_L2RIMSR0 :
drivers/net/wwan/t7xx/t7xx_cldma.c
200
hw_info->ap_pdn_base + REG_CLDMA_L2TIMSR0;
drivers/net/wwan/t7xx/t7xx_cldma.c
205
void t7xx_cldma_hw_irq_en_txrx(struct t7xx_cldma_hw *hw_info, unsigned int qno,
drivers/net/wwan/t7xx/t7xx_cldma.c
211
reg = tx_rx == MTK_RX ? hw_info->ap_ao_base + REG_CLDMA_L2RIMCR0 :
drivers/net/wwan/t7xx/t7xx_cldma.c
212
hw_info->ap_pdn_base + REG_CLDMA_L2TIMCR0;
drivers/net/wwan/t7xx/t7xx_cldma.c
217
void t7xx_cldma_hw_irq_en_eq(struct t7xx_cldma_hw *hw_info, unsigned int qno, enum mtk_txrx tx_rx)
drivers/net/wwan/t7xx/t7xx_cldma.c
222
reg = tx_rx == MTK_RX ? hw_info->ap_ao_base + REG_CLDMA_L2RIMCR0 :
drivers/net/wwan/t7xx/t7xx_cldma.c
223
hw_info->ap_pdn_base + REG_CLDMA_L2TIMCR0;
drivers/net/wwan/t7xx/t7xx_cldma.c
234
void t7xx_cldma_hw_init(struct t7xx_cldma_hw *hw_info)
drivers/net/wwan/t7xx/t7xx_cldma.c
238
ul_cfg = ioread32(hw_info->ap_pdn_base + REG_CLDMA_UL_CFG);
drivers/net/wwan/t7xx/t7xx_cldma.c
239
dl_cfg = ioread32(hw_info->ap_ao_base + REG_CLDMA_DL_CFG);
drivers/net/wwan/t7xx/t7xx_cldma.c
244
if (hw_info->hw_mode == MODE_BIT_64) {
drivers/net/wwan/t7xx/t7xx_cldma.c
247
} else if (hw_info->hw_mode == MODE_BIT_40) {
drivers/net/wwan/t7xx/t7xx_cldma.c
250
} else if (hw_info->hw_mode == MODE_BIT_36) {
drivers/net/wwan/t7xx/t7xx_cldma.c
255
iowrite32(ul_cfg, hw_info->ap_pdn_base + REG_CLDMA_UL_CFG);
drivers/net/wwan/t7xx/t7xx_cldma.c
257
iowrite32(dl_cfg, hw_info->ap_ao_base + REG_CLDMA_DL_CFG);
drivers/net/wwan/t7xx/t7xx_cldma.c
258
iowrite32(0, hw_info->ap_ao_base + REG_CLDMA_INT_MASK);
drivers/net/wwan/t7xx/t7xx_cldma.c
259
iowrite32(BUSY_MASK_MD, hw_info->ap_ao_base + REG_CLDMA_BUSY_MASK);
drivers/net/wwan/t7xx/t7xx_cldma.c
260
iowrite32(UL_MEM_CHECK_DIS, hw_info->ap_pdn_base + REG_CLDMA_UL_MEM);
drivers/net/wwan/t7xx/t7xx_cldma.c
261
iowrite32(DL_MEM_CHECK_DIS, hw_info->ap_pdn_base + REG_CLDMA_DL_MEM);
drivers/net/wwan/t7xx/t7xx_cldma.c
264
void t7xx_cldma_hw_stop_all_qs(struct t7xx_cldma_hw *hw_info, enum mtk_txrx tx_rx)
drivers/net/wwan/t7xx/t7xx_cldma.c
268
reg = tx_rx == MTK_RX ? hw_info->ap_pdn_base + REG_CLDMA_DL_STOP_CMD :
drivers/net/wwan/t7xx/t7xx_cldma.c
269
hw_info->ap_pdn_base + REG_CLDMA_UL_STOP_CMD;
drivers/net/wwan/t7xx/t7xx_cldma.c
273
void t7xx_cldma_hw_stop(struct t7xx_cldma_hw *hw_info, enum mtk_txrx tx_rx)
drivers/net/wwan/t7xx/t7xx_cldma.c
277
reg = tx_rx == MTK_RX ? hw_info->ap_ao_base + REG_CLDMA_L2RIMSR0 :
drivers/net/wwan/t7xx/t7xx_cldma.c
278
hw_info->ap_pdn_base + REG_CLDMA_L2TIMSR0;
drivers/net/wwan/t7xx/t7xx_cldma.c
28
void t7xx_cldma_clear_ip_busy(struct t7xx_cldma_hw *hw_info)
drivers/net/wwan/t7xx/t7xx_cldma.c
32
val = ioread32(hw_info->ap_pdn_base + REG_CLDMA_IP_BUSY);
drivers/net/wwan/t7xx/t7xx_cldma.c
34
iowrite32(val, hw_info->ap_pdn_base + REG_CLDMA_IP_BUSY);
drivers/net/wwan/t7xx/t7xx_cldma.c
43
void t7xx_cldma_hw_restore(struct t7xx_cldma_hw *hw_info)
drivers/net/wwan/t7xx/t7xx_cldma.c
47
ul_cfg = ioread32(hw_info->ap_pdn_base + REG_CLDMA_UL_CFG);
drivers/net/wwan/t7xx/t7xx_cldma.c
50
if (hw_info->hw_mode == MODE_BIT_64)
drivers/net/wwan/t7xx/t7xx_cldma.c
52
else if (hw_info->hw_mode == MODE_BIT_40)
drivers/net/wwan/t7xx/t7xx_cldma.c
54
else if (hw_info->hw_mode == MODE_BIT_36)
drivers/net/wwan/t7xx/t7xx_cldma.c
57
iowrite32(ul_cfg, hw_info->ap_pdn_base + REG_CLDMA_UL_CFG);
drivers/net/wwan/t7xx/t7xx_cldma.c
59
iowrite32(UL_MEM_CHECK_DIS, hw_info->ap_pdn_base + REG_CLDMA_UL_MEM);
drivers/net/wwan/t7xx/t7xx_cldma.c
60
iowrite32(DL_MEM_CHECK_DIS, hw_info->ap_pdn_base + REG_CLDMA_DL_MEM);
drivers/net/wwan/t7xx/t7xx_cldma.c
63
void t7xx_cldma_hw_start_queue(struct t7xx_cldma_hw *hw_info, unsigned int qno,
drivers/net/wwan/t7xx/t7xx_cldma.c
69
reg = tx_rx == MTK_RX ? hw_info->ap_pdn_base + REG_CLDMA_DL_START_CMD :
drivers/net/wwan/t7xx/t7xx_cldma.c
70
hw_info->ap_pdn_base + REG_CLDMA_UL_START_CMD;
drivers/net/wwan/t7xx/t7xx_cldma.c
75
void t7xx_cldma_hw_start(struct t7xx_cldma_hw *hw_info)
drivers/net/wwan/t7xx/t7xx_cldma.c
78
iowrite32(TXRX_STATUS_BITMASK, hw_info->ap_pdn_base + REG_CLDMA_L2TIMCR0);
drivers/net/wwan/t7xx/t7xx_cldma.c
79
iowrite32(TXRX_STATUS_BITMASK, hw_info->ap_ao_base + REG_CLDMA_L2RIMCR0);
drivers/net/wwan/t7xx/t7xx_cldma.c
81
iowrite32(EMPTY_STATUS_BITMASK, hw_info->ap_pdn_base + REG_CLDMA_L2TIMCR0);
drivers/net/wwan/t7xx/t7xx_cldma.c
82
iowrite32(EMPTY_STATUS_BITMASK, hw_info->ap_ao_base + REG_CLDMA_L2RIMCR0);
drivers/net/wwan/t7xx/t7xx_cldma.h
153
void t7xx_cldma_hw_irq_dis_txrx(struct t7xx_cldma_hw *hw_info, unsigned int qno,
drivers/net/wwan/t7xx/t7xx_cldma.h
155
void t7xx_cldma_hw_irq_dis_eq(struct t7xx_cldma_hw *hw_info, unsigned int qno,
drivers/net/wwan/t7xx/t7xx_cldma.h
157
void t7xx_cldma_hw_irq_en_txrx(struct t7xx_cldma_hw *hw_info, unsigned int qno,
drivers/net/wwan/t7xx/t7xx_cldma.h
159
void t7xx_cldma_hw_irq_en_eq(struct t7xx_cldma_hw *hw_info, unsigned int qno, enum mtk_txrx tx_rx);
drivers/net/wwan/t7xx/t7xx_cldma.h
160
unsigned int t7xx_cldma_hw_queue_status(struct t7xx_cldma_hw *hw_info, unsigned int qno,
drivers/net/wwan/t7xx/t7xx_cldma.h
162
void t7xx_cldma_hw_init(struct t7xx_cldma_hw *hw_info);
drivers/net/wwan/t7xx/t7xx_cldma.h
163
void t7xx_cldma_hw_resume_queue(struct t7xx_cldma_hw *hw_info, unsigned int qno,
drivers/net/wwan/t7xx/t7xx_cldma.h
165
void t7xx_cldma_hw_start(struct t7xx_cldma_hw *hw_info);
drivers/net/wwan/t7xx/t7xx_cldma.h
166
void t7xx_cldma_hw_start_queue(struct t7xx_cldma_hw *hw_info, unsigned int qno,
drivers/net/wwan/t7xx/t7xx_cldma.h
168
void t7xx_cldma_hw_tx_done(struct t7xx_cldma_hw *hw_info, unsigned int bitmask);
drivers/net/wwan/t7xx/t7xx_cldma.h
169
void t7xx_cldma_hw_rx_done(struct t7xx_cldma_hw *hw_info, unsigned int bitmask);
drivers/net/wwan/t7xx/t7xx_cldma.h
170
void t7xx_cldma_hw_stop_all_qs(struct t7xx_cldma_hw *hw_info, enum mtk_txrx tx_rx);
drivers/net/wwan/t7xx/t7xx_cldma.h
171
void t7xx_cldma_hw_set_start_addr(struct t7xx_cldma_hw *hw_info,
drivers/net/wwan/t7xx/t7xx_cldma.h
174
void t7xx_cldma_hw_stop(struct t7xx_cldma_hw *hw_info, enum mtk_txrx tx_rx);
drivers/net/wwan/t7xx/t7xx_cldma.h
175
unsigned int t7xx_cldma_hw_int_status(struct t7xx_cldma_hw *hw_info, unsigned int bitmask,
drivers/net/wwan/t7xx/t7xx_cldma.h
177
void t7xx_cldma_hw_restore(struct t7xx_cldma_hw *hw_info);
drivers/net/wwan/t7xx/t7xx_cldma.h
178
void t7xx_cldma_clear_ip_busy(struct t7xx_cldma_hw *hw_info);
drivers/net/wwan/t7xx/t7xx_cldma.h
179
bool t7xx_cldma_tx_addr_is_set(struct t7xx_cldma_hw *hw_info, unsigned int qno);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1001
unsigned int value = ioread32(hw_info->pcie_base + DPMAIF_ULQ_STA0_n(q_num));
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1006
int t7xx_dpmaif_dlq_add_pit_remain_cnt(struct dpmaif_hw_info *hw_info, unsigned int dlq_pit_idx,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1015
ret = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_DL_DLQPIT_ADD,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1019
dev_err(hw_info->dev, "Data plane modem is not ready to add dlq\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
102
void t7xx_dpmaif_unmask_ulq_intr(struct dpmaif_hw_info *hw_info, unsigned int q_num)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1023
iowrite32(dl_update, hw_info->pcie_base + DPMAIF_DL_DLQPIT_ADD);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1025
ret = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_DL_DLQPIT_ADD,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1029
dev_err(hw_info->dev, "Data plane modem add dlq failed\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1036
unsigned int t7xx_dpmaif_dl_dlq_pit_get_wr_idx(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1041
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_DLQ_WR_IDX +
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1046
static int t7xx_dl_add_timedout(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1050
return ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_DL_BAT_ADD,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1055
int t7xx_dpmaif_dl_snd_hw_bat_cnt(struct dpmaif_hw_info *hw_info, unsigned int bat_entry_cnt)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1059
if (t7xx_dl_add_timedout(hw_info)) {
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1060
dev_err(hw_info->dev, "DL add BAT not ready\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1066
iowrite32(value, hw_info->pcie_base + DPMAIF_DL_BAT_ADD);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1068
if (t7xx_dl_add_timedout(hw_info)) {
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1069
dev_err(hw_info->dev, "DL add BAT timeout\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1076
unsigned int t7xx_dpmaif_dl_get_bat_rd_idx(struct dpmaif_hw_info *hw_info, unsigned int q_num)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
108
isr_en_msk = &hw_info->isr_en_mask;
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1080
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_BAT_RD_IDX);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1084
unsigned int t7xx_dpmaif_dl_get_bat_wr_idx(struct dpmaif_hw_info *hw_info, unsigned int q_num)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1088
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_BAT_WR_IDX);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1092
int t7xx_dpmaif_dl_snd_hw_frg_cnt(struct dpmaif_hw_info *hw_info, unsigned int frg_entry_cnt)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1096
if (t7xx_dl_add_timedout(hw_info)) {
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1097
dev_err(hw_info->dev, "Data plane modem is not ready to add frag DLQ\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1103
iowrite32(value, hw_info->pcie_base + DPMAIF_DL_BAT_ADD);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1105
if (t7xx_dl_add_timedout(hw_info)) {
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1106
dev_err(hw_info->dev, "Data plane modem add frag DLQ failed");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
111
iowrite32(ul_int_que_done, hw_info->pcie_base + DPMAIF_AO_UL_AP_L2TIMCR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1113
unsigned int t7xx_dpmaif_dl_get_frg_rd_idx(struct dpmaif_hw_info *hw_info, unsigned int q_num)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1117
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_FRGBAT_RD_IDX);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1121
static void t7xx_dpmaif_set_queue_property(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1129
dl_que = &hw_info->dl_que[i];
drivers/net/wwan/t7xx/t7xx_dpmaif.c
113
ret = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_AO_UL_AP_L2TIMR0,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1140
ul_que = &hw_info->ul_que[i];
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1158
int t7xx_dpmaif_hw_stop_all_txq(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1162
t7xx_dpmaif_ul_all_q_en(hw_info, false);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1163
while (t7xx_dpmaif_ul_idle_check(hw_info)) {
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1165
dev_err(hw_info->dev, "Failed to stop TX, status: 0x%x\n",
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1166
ioread32(hw_info->pcie_base + DPMAIF_UL_CHK_BUSY));
drivers/net/wwan/t7xx/t7xx_dpmaif.c
117
dev_err(hw_info->dev,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1187
int t7xx_dpmaif_hw_stop_all_rxq(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1192
t7xx_dpmaif_dl_all_q_en(hw_info, false);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1193
while (t7xx_dpmaif_dl_idle_check(hw_info)) {
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1195
dev_err(hw_info->dev, "Failed to stop RX, status: 0x%x\n",
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1196
ioread32(hw_info->pcie_base + DPMAIF_DL_CHK_BUSY));
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1204
wr_idx = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_PIT_WR_IDX);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1206
rd_idx = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_PIT_RD_IDX);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1213
dev_err(hw_info->dev, "Check middle PIT sync fail\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1217
void t7xx_dpmaif_start_hw(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1219
t7xx_dpmaif_ul_all_q_en(hw_info, true);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
122
void t7xx_dpmaif_dl_unmask_batcnt_len_err_intr(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1220
t7xx_dpmaif_dl_all_q_en(hw_info, true);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1234
int t7xx_dpmaif_hw_init(struct dpmaif_hw_info *hw_info, struct dpmaif_hw_params *init_param)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1238
ret = t7xx_dpmaif_hw_config(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
124
hw_info->isr_en_mask.ap_dl_l2intr_en_msk |= DP_DL_INT_BATCNT_LEN_ERR;
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1240
dev_err(hw_info->dev, "DPMAIF HW config failed\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1244
ret = t7xx_dpmaif_init_intr(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1246
dev_err(hw_info->dev, "DPMAIF HW interrupts init failed\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
125
iowrite32(DP_DL_INT_BATCNT_LEN_ERR, hw_info->pcie_base + DPMAIF_AO_UL_APDL_L2TIMCR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1250
t7xx_dpmaif_set_queue_property(hw_info, init_param);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1251
t7xx_dpmaif_pcie_dpmaif_sign(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1252
t7xx_dpmaif_dl_performance(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1254
ret = t7xx_dpmaif_config_dlq_hw(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1256
dev_err(hw_info->dev, "DPMAIF HW dlq config failed\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1260
t7xx_dpmaif_config_ulq_hw(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1262
ret = t7xx_dpmaif_hw_init_done(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1264
dev_err(hw_info->dev, "DPMAIF HW queue init failed\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1269
bool t7xx_dpmaif_ul_clr_done(struct dpmaif_hw_info *hw_info, unsigned int qno)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1273
intr_status = ioread32(hw_info->pcie_base + DPMAIF_AP_L2TISAR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
1276
iowrite32(intr_status, hw_info->pcie_base + DPMAIF_AP_L2TISAR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
128
void t7xx_dpmaif_dl_unmask_pitcnt_len_err_intr(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
130
hw_info->isr_en_mask.ap_dl_l2intr_en_msk |= DP_DL_INT_PITCNT_LEN_ERR;
drivers/net/wwan/t7xx/t7xx_dpmaif.c
131
iowrite32(DP_DL_INT_PITCNT_LEN_ERR, hw_info->pcie_base + DPMAIF_AO_UL_APDL_L2TIMCR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
134
static u32 t7xx_update_dlq_intr(struct dpmaif_hw_info *hw_info, u32 q_done)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
138
value = ioread32(hw_info->pcie_base + DPMAIF_AO_UL_AP_L2TIMR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
139
iowrite32(q_done, hw_info->pcie_base + DPMAIF_AO_UL_APDL_L2TIMSR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
143
static int t7xx_mask_dlq_intr(struct dpmaif_hw_info *hw_info, unsigned int qno)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
149
iowrite32(q_done, hw_info->pcie_base + DPMAIF_AO_UL_APDL_L2TIMSR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
152
0, DPMAIF_CHECK_TIMEOUT_US, false, hw_info, q_done);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
154
dev_err(hw_info->dev,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
160
hw_info->isr_en_mask.ap_dl_l2intr_en_msk &= ~q_done;
drivers/net/wwan/t7xx/t7xx_dpmaif.c
164
void t7xx_dpmaif_dlq_unmask_rx_done(struct dpmaif_hw_info *hw_info, unsigned int qno)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
169
iowrite32(mask, hw_info->pcie_base + DPMAIF_AO_UL_APDL_L2TIMCR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
170
hw_info->isr_en_mask.ap_dl_l2intr_en_msk |= mask;
drivers/net/wwan/t7xx/t7xx_dpmaif.c
173
void t7xx_dpmaif_clr_ip_busy_sts(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
177
ip_busy_sts = ioread32(hw_info->pcie_base + DPMAIF_AP_IP_BUSY);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
178
iowrite32(ip_busy_sts, hw_info->pcie_base + DPMAIF_AP_IP_BUSY);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
181
static void t7xx_dpmaif_dlq_mask_rx_pitcnt_len_err_intr(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
186
hw_info->pcie_base + DPMAIF_AO_UL_APDL_L2TIMSR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
189
hw_info->pcie_base + DPMAIF_AO_UL_APDL_L2TIMSR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
192
void t7xx_dpmaif_dlq_unmask_pitcnt_len_err_intr(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
197
hw_info->pcie_base + DPMAIF_AO_UL_APDL_L2TIMCR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
200
hw_info->pcie_base + DPMAIF_AO_UL_APDL_L2TIMCR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
203
void t7xx_dpmaif_ul_clr_all_intr(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
205
iowrite32(DPMAIF_AP_ALL_L2TISAR0_MASK, hw_info->pcie_base + DPMAIF_AP_L2TISAR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
208
void t7xx_dpmaif_dl_clr_all_intr(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
210
iowrite32(DPMAIF_AP_APDL_ALL_L2TISAR0_MASK, hw_info->pcie_base + DPMAIF_AP_APDL_L2TISAR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
224
static void t7xx_dpmaif_hw_check_tx_intr(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
237
t7xx_dpmaif_mask_ulq_intr(hw_info, index);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
257
iowrite32(intr_status, hw_info->pcie_base + DPMAIF_AP_L2TISAR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
263
static void t7xx_dpmaif_hw_check_rx_intr(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
273
hw_info->isr_en_mask.ap_dl_l2intr_en_msk &= ~DP_DL_INT_BATCNT_LEN_ERR;
drivers/net/wwan/t7xx/t7xx_dpmaif.c
275
hw_info->pcie_base + DPMAIF_AO_UL_APDL_L2TIMSR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
280
hw_info->isr_en_mask.ap_dl_l2intr_en_msk &= ~DP_DL_INT_PITCNT_LEN_ERR;
drivers/net/wwan/t7xx/t7xx_dpmaif.c
282
hw_info->pcie_base + DPMAIF_AO_UL_APDL_L2TIMSR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
299
t7xx_dpmaif_dlq_mask_rx_pitcnt_len_err_intr(hw_info, qno);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
310
if (!t7xx_mask_dlq_intr(hw_info, qno))
drivers/net/wwan/t7xx/t7xx_dpmaif.c
318
t7xx_dpmaif_dlq_mask_rx_pitcnt_len_err_intr(hw_info, qno);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
322
if (!t7xx_mask_dlq_intr(hw_info, qno))
drivers/net/wwan/t7xx/t7xx_dpmaif.c
331
iowrite32(intr_status, hw_info->pcie_base + DPMAIF_AP_APDL_L2TISAR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
34
static int t7xx_dpmaif_init_intr(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
344
int t7xx_dpmaif_hw_get_intr_cnt(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
350
rx_intr_status = ioread32(hw_info->pcie_base + DPMAIF_AP_APDL_L2TISAR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
351
rx_intr_qdone = ioread32(hw_info->pcie_base + DPMAIF_AO_UL_APDL_L2TIMR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
358
tx_intr_status = ioread32(hw_info->pcie_base + DPMAIF_AP_L2TISAR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
359
tx_intr_qdone = ioread32(hw_info->pcie_base + DPMAIF_AO_UL_AP_L2TIMR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
36
struct dpmaif_isr_en_mask *isr_en_msk = &hw_info->isr_en_mask;
drivers/net/wwan/t7xx/t7xx_dpmaif.c
362
t7xx_dpmaif_clr_ip_busy_sts(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
370
t7xx_dpmaif_hw_check_tx_intr(hw_info, tx_intr_status, para);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
388
t7xx_dpmaif_hw_check_rx_intr(hw_info, rx_intr_status, para, qno);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
394
static int t7xx_dpmaif_sram_init(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
398
value = ioread32(hw_info->pcie_base + DPMAIF_AP_MEM_CLR);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
400
iowrite32(value, hw_info->pcie_base + DPMAIF_AP_MEM_CLR);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
402
return ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_AP_MEM_CLR,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
407
static void t7xx_dpmaif_hw_reset(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
409
iowrite32(DPMAIF_AP_AO_RST_BIT, hw_info->pcie_base + DPMAIF_AP_AO_RGU_ASSERT);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
411
iowrite32(DPMAIF_AP_RST_BIT, hw_info->pcie_base + DPMAIF_AP_RGU_ASSERT);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
413
iowrite32(DPMAIF_AP_AO_RST_BIT, hw_info->pcie_base + DPMAIF_AP_AO_RGU_DEASSERT);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
415
iowrite32(DPMAIF_AP_RST_BIT, hw_info->pcie_base + DPMAIF_AP_RGU_DEASSERT);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
419
static int t7xx_dpmaif_hw_config(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
42
iowrite32(DPMAIF_AP_ALL_L2TISAR0_MASK, hw_info->pcie_base + DPMAIF_AP_L2TISAR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
424
t7xx_dpmaif_hw_reset(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
426
ret = t7xx_dpmaif_sram_init(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
430
ap_port_mode = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
432
iowrite32(ap_port_mode, hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
433
iowrite32(DPMAIF_CG_EN, hw_info->pcie_base + DPMAIF_AP_CG_EN);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
437
static void t7xx_dpmaif_pcie_dpmaif_sign(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
439
iowrite32(DPMAIF_PCIE_MODE_SET_VALUE, hw_info->pcie_base + DPMAIF_UL_RESERVE_AO_RW);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
442
static void t7xx_dpmaif_dl_performance(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
446
enable_bat_cache = ioread32(hw_info->pcie_base + DPMAIF_DL_BAT_INIT_CON1);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
448
iowrite32(enable_bat_cache, hw_info->pcie_base + DPMAIF_DL_BAT_INIT_CON1);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
45
iowrite32(ul_intr_enable, hw_info->pcie_base + DPMAIF_AO_UL_AP_L2TIMCR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
450
enable_pit_burst = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
452
iowrite32(enable_pit_burst, hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
457
static void t7xx_dpmaif_hw_hpc_cntl_set(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
46
iowrite32(~ul_intr_enable, hw_info->pcie_base + DPMAIF_AO_UL_AP_L2TIMSR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
464
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_DL_HPC_CNTL);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
467
static void t7xx_dpmaif_hw_agg_cfg_set(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
472
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_DL_DLQ_AGG_CFG);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
475
static void t7xx_dpmaif_hw_hash_bit_choose_set(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
478
hw_info->pcie_base + DPMAIF_AO_DL_DLQPIT_INIT_CON5);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
481
static void t7xx_dpmaif_hw_mid_pit_timeout_thres_set(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
483
iowrite32(DPMAIF_MID_TIMEOUT_THRES_DF, hw_info->pcie_base + DPMAIF_AO_DL_DLQPIT_TIMEOUT0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
486
static void t7xx_dpmaif_hw_dlq_timeout_thres_set(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
49
ret = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_AO_UL_AP_L2TIMR0,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
496
hw_info->pcie_base + DPMAIF_AO_DL_DLQPIT_TIMEOUT1 + sizeof(u32) * i);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
500
static void t7xx_dpmaif_hw_dlq_start_prs_thres_set(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
502
iowrite32(DPMAIF_DLQ_PRS_THRES_DF, hw_info->pcie_base + DPMAIF_AO_DL_DLQPIT_TRIG_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
505
static void t7xx_dpmaif_dl_dlq_hpc_hw_init(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
507
t7xx_dpmaif_hw_hpc_cntl_set(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
508
t7xx_dpmaif_hw_agg_cfg_set(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
509
t7xx_dpmaif_hw_hash_bit_choose_set(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
510
t7xx_dpmaif_hw_mid_pit_timeout_thres_set(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
511
t7xx_dpmaif_hw_dlq_timeout_thres_set(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
512
t7xx_dpmaif_hw_dlq_start_prs_thres_set(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
515
static int t7xx_dpmaif_dl_bat_init_done(struct dpmaif_hw_info *hw_info, bool frg_en)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
526
ret = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_DL_BAT_INIT,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
530
dev_err(hw_info->dev, "Data plane modem DL BAT is not ready\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
534
iowrite32(dl_bat_init, hw_info->pcie_base + DPMAIF_DL_BAT_INIT);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
536
ret = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_DL_BAT_INIT,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
540
dev_err(hw_info->dev, "Data plane modem DL BAT initialization failed\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
545
static void t7xx_dpmaif_dl_set_bat_base_addr(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
548
iowrite32(lower_32_bits(addr), hw_info->pcie_base + DPMAIF_DL_BAT_INIT_CON0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
549
iowrite32(upper_32_bits(addr), hw_info->pcie_base + DPMAIF_DL_BAT_INIT_CON3);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
552
static void t7xx_dpmaif_dl_set_bat_size(struct dpmaif_hw_info *hw_info, unsigned int size)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
556
value = ioread32(hw_info->pcie_base + DPMAIF_DL_BAT_INIT_CON1);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
559
iowrite32(value, hw_info->pcie_base + DPMAIF_DL_BAT_INIT_CON1);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
562
static void t7xx_dpmaif_dl_bat_en(struct dpmaif_hw_info *hw_info, bool enable)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
566
value = ioread32(hw_info->pcie_base + DPMAIF_DL_BAT_INIT_CON1);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
573
iowrite32(value, hw_info->pcie_base + DPMAIF_DL_BAT_INIT_CON1);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
576
static void t7xx_dpmaif_dl_set_ao_bid_maxcnt(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
580
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_PKTINFO_CON0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
583
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_DL_PKTINFO_CON0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
586
static void t7xx_dpmaif_dl_set_ao_mtu(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
588
iowrite32(DPMAIF_HW_MTU_SIZE, hw_info->pcie_base + DPMAIF_AO_DL_PKTINFO_CON1);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
591
static void t7xx_dpmaif_dl_set_ao_pit_chknum(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
595
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_PKTINFO_CON2);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
598
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_DL_PKTINFO_CON2);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
60
iowrite32(DPMAIF_AP_APDL_ALL_L2TISAR0_MASK, hw_info->pcie_base + DPMAIF_AP_APDL_L2TISAR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
601
static void t7xx_dpmaif_dl_set_ao_remain_minsz(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
605
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_PKTINFO_CON0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
609
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_DL_PKTINFO_CON0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
612
static void t7xx_dpmaif_dl_set_ao_bat_bufsz(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
616
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_PKTINFO_CON2);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
620
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_DL_PKTINFO_CON2);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
623
static void t7xx_dpmaif_dl_set_ao_bat_rsv_length(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
627
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_PKTINFO_CON2);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
63
iowrite32(~ul_intr_enable, hw_info->pcie_base + DPMAIF_AO_UL_APDL_L2TIMSR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
630
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_DL_PKTINFO_CON2);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
633
static void t7xx_dpmaif_dl_set_pkt_alignment(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
637
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
64
ret = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_AO_UL_APDL_L2TIMR0,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
640
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
643
static void t7xx_dpmaif_dl_set_pkt_checksum(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
647
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
649
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
652
static void t7xx_dpmaif_dl_set_ao_frg_check_thres(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
656
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_FRG_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
659
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_FRG_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
662
static void t7xx_dpmaif_dl_set_ao_frg_bufsz(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
666
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_FRG_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
670
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_FRG_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
673
static void t7xx_dpmaif_dl_frg_ao_en(struct dpmaif_hw_info *hw_info, bool enable)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
677
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_FRG_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
684
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_FRG_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
687
static void t7xx_dpmaif_dl_set_ao_bat_check_thres(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
691
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
694
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_DL_RDY_CHK_THRES);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
697
static void t7xx_dpmaif_dl_set_pit_seqnum(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
701
value = ioread32(hw_info->pcie_base + DPMAIF_AO_DL_PIT_SEQ_END);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
704
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_DL_PIT_SEQ_END);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
707
static void t7xx_dpmaif_dl_set_dlq_pit_base_addr(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
71
iowrite32(DPMAIF_AP_IP_BUSY_MASK, hw_info->pcie_base + DPMAIF_AP_IP_BUSY);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
710
iowrite32(lower_32_bits(addr), hw_info->pcie_base + DPMAIF_DL_DLQPIT_INIT_CON0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
711
iowrite32(upper_32_bits(addr), hw_info->pcie_base + DPMAIF_DL_DLQPIT_INIT_CON4);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
714
static void t7xx_dpmaif_dl_set_dlq_pit_size(struct dpmaif_hw_info *hw_info, unsigned int size)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
718
value = ioread32(hw_info->pcie_base + DPMAIF_DL_DLQPIT_INIT_CON1);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
721
iowrite32(value, hw_info->pcie_base + DPMAIF_DL_DLQPIT_INIT_CON1);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
722
iowrite32(0, hw_info->pcie_base + DPMAIF_DL_DLQPIT_INIT_CON2);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
723
iowrite32(0, hw_info->pcie_base + DPMAIF_DL_DLQPIT_INIT_CON3);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
724
iowrite32(0, hw_info->pcie_base + DPMAIF_DL_DLQPIT_INIT_CON5);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
725
iowrite32(0, hw_info->pcie_base + DPMAIF_DL_DLQPIT_INIT_CON6);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
728
static void t7xx_dpmaif_dl_dlq_pit_en(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
73
hw_info->pcie_base + DPMAIF_AO_AP_DLUL_IP_BUSY_MASK);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
732
value = ioread32(hw_info->pcie_base + DPMAIF_DL_DLQPIT_INIT_CON3);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
734
iowrite32(value, hw_info->pcie_base + DPMAIF_DL_DLQPIT_INIT_CON3);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
737
static void t7xx_dpmaif_dl_dlq_pit_init_done(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
74
value = ioread32(hw_info->pcie_base + DPMAIF_AO_UL_AP_L1TIMR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
748
timeout = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_DL_DLQPIT_INIT,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
753
dev_err(hw_info->dev, "Data plane modem DL PIT is not ready\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
757
iowrite32(dl_pit_init, hw_info->pcie_base + DPMAIF_DL_DLQPIT_INIT);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
758
timeout = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_DL_DLQPIT_INIT,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
76
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_UL_AP_L1TIMR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
763
dev_err(hw_info->dev, "Data plane modem DL PIT initialization failed\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
766
static void t7xx_dpmaif_config_dlq_pit_hw(struct dpmaif_hw_info *hw_info, unsigned int q_num,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
769
t7xx_dpmaif_dl_set_dlq_pit_base_addr(hw_info, dl_que->pit_base);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
77
iowrite32(DPMA_HPC_ALL_INT_MASK, hw_info->pcie_base + DPMAIF_HPC_INTR_MASK);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
770
t7xx_dpmaif_dl_set_dlq_pit_size(hw_info, dl_que->pit_size_cnt);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
771
t7xx_dpmaif_dl_dlq_pit_en(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
772
t7xx_dpmaif_dl_dlq_pit_init_done(hw_info, q_num);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
775
static void t7xx_dpmaif_config_all_dlq_hw(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
780
t7xx_dpmaif_config_dlq_pit_hw(hw_info, i, &hw_info->dl_que[i]);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
783
static void t7xx_dpmaif_dl_all_q_en(struct dpmaif_hw_info *hw_info, bool enable)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
788
value = ioread32(hw_info->pcie_base + DPMAIF_DL_BAT_INIT_CON1);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
795
iowrite32(value, hw_info->pcie_base + DPMAIF_DL_BAT_INIT_CON1);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
799
timeout = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_DL_BAT_INIT,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
803
dev_err(hw_info->dev, "Timeout updating BAT setting to HW\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
805
iowrite32(dl_bat_init, hw_info->pcie_base + DPMAIF_DL_BAT_INIT);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
806
timeout = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_DL_BAT_INIT,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
810
dev_err(hw_info->dev, "Data plane modem DL BAT is not ready\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
813
static int t7xx_dpmaif_config_dlq_hw(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
818
t7xx_dpmaif_dl_dlq_hpc_hw_init(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
82
static void t7xx_dpmaif_mask_ulq_intr(struct dpmaif_hw_info *hw_info, unsigned int q_num)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
820
dl_que = &hw_info->dl_que[0]; /* All queues share one BAT/frag BAT table */
drivers/net/wwan/t7xx/t7xx_dpmaif.c
824
t7xx_dpmaif_dl_set_ao_remain_minsz(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
825
t7xx_dpmaif_dl_set_ao_bat_bufsz(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
826
t7xx_dpmaif_dl_set_ao_frg_bufsz(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
827
t7xx_dpmaif_dl_set_ao_bat_rsv_length(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
828
t7xx_dpmaif_dl_set_ao_bid_maxcnt(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
829
t7xx_dpmaif_dl_set_pkt_alignment(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
830
t7xx_dpmaif_dl_set_pit_seqnum(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
831
t7xx_dpmaif_dl_set_ao_mtu(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
832
t7xx_dpmaif_dl_set_ao_pit_chknum(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
833
t7xx_dpmaif_dl_set_ao_bat_check_thres(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
834
t7xx_dpmaif_dl_set_ao_frg_check_thres(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
835
t7xx_dpmaif_dl_frg_ao_en(hw_info, true);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
837
t7xx_dpmaif_dl_set_bat_base_addr(hw_info, dl_que->frg_base);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
838
t7xx_dpmaif_dl_set_bat_size(hw_info, dl_que->frg_size_cnt);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
839
t7xx_dpmaif_dl_bat_en(hw_info, true);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
841
ret = t7xx_dpmaif_dl_bat_init_done(hw_info, true);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
845
t7xx_dpmaif_dl_set_bat_base_addr(hw_info, dl_que->bat_base);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
846
t7xx_dpmaif_dl_set_bat_size(hw_info, dl_que->bat_size_cnt);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
847
t7xx_dpmaif_dl_bat_en(hw_info, false);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
849
ret = t7xx_dpmaif_dl_bat_init_done(hw_info, false);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
854
t7xx_dpmaif_config_all_dlq_hw(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
855
t7xx_dpmaif_dl_all_q_en(hw_info, true);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
856
t7xx_dpmaif_dl_set_pkt_checksum(hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
860
static void t7xx_dpmaif_ul_update_drb_size(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
865
value = ioread32(hw_info->pcie_base + DPMAIF_UL_DRBSIZE_ADDRH_n(q_num));
drivers/net/wwan/t7xx/t7xx_dpmaif.c
868
iowrite32(value, hw_info->pcie_base + DPMAIF_UL_DRBSIZE_ADDRH_n(q_num));
drivers/net/wwan/t7xx/t7xx_dpmaif.c
871
static void t7xx_dpmaif_ul_update_drb_base_addr(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
874
iowrite32(lower_32_bits(addr), hw_info->pcie_base + DPMAIF_ULQSAR_n(q_num));
drivers/net/wwan/t7xx/t7xx_dpmaif.c
875
iowrite32(upper_32_bits(addr), hw_info->pcie_base + DPMAIF_UL_DRB_ADDRH_n(q_num));
drivers/net/wwan/t7xx/t7xx_dpmaif.c
878
static void t7xx_dpmaif_ul_rdy_en(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
88
isr_en_msk = &hw_info->isr_en_mask;
drivers/net/wwan/t7xx/t7xx_dpmaif.c
883
value = ioread32(hw_info->pcie_base + DPMAIF_AO_UL_CHNL_ARB0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
890
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_UL_CHNL_ARB0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
893
static void t7xx_dpmaif_ul_arb_en(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
898
value = ioread32(hw_info->pcie_base + DPMAIF_AO_UL_CHNL_ARB0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
905
iowrite32(value, hw_info->pcie_base + DPMAIF_AO_UL_CHNL_ARB0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
908
static void t7xx_dpmaif_config_ulq_hw(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
91
iowrite32(ul_int_que_done, hw_info->pcie_base + DPMAIF_AO_UL_AP_L2TIMSR0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
914
ul_que = &hw_info->ul_que[i];
drivers/net/wwan/t7xx/t7xx_dpmaif.c
916
t7xx_dpmaif_ul_update_drb_size(hw_info, i, ul_que->drb_size_cnt *
drivers/net/wwan/t7xx/t7xx_dpmaif.c
918
t7xx_dpmaif_ul_update_drb_base_addr(hw_info, i, ul_que->drb_base);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
919
t7xx_dpmaif_ul_rdy_en(hw_info, i, true);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
920
t7xx_dpmaif_ul_arb_en(hw_info, i, true);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
922
t7xx_dpmaif_ul_arb_en(hw_info, i, false);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
927
static int t7xx_dpmaif_hw_init_done(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
93
ret = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_AO_UL_AP_L2TIMR0,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
932
ap_cfg = ioread32(hw_info->pcie_base + DPMAIF_AP_OVERWRITE_CFG);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
934
iowrite32(ap_cfg, hw_info->pcie_base + DPMAIF_AP_OVERWRITE_CFG);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
936
ret = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_AP_OVERWRITE_CFG,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
942
iowrite32(DPMAIF_UL_INIT_DONE, hw_info->pcie_base + DPMAIF_AO_UL_INIT_SET);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
943
iowrite32(DPMAIF_DL_INIT_DONE, hw_info->pcie_base + DPMAIF_AO_DL_INIT_SET);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
947
static bool t7xx_dpmaif_dl_idle_check(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
949
u32 dpmaif_dl_is_busy = ioread32(hw_info->pcie_base + DPMAIF_DL_CHK_BUSY);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
954
static void t7xx_dpmaif_ul_all_q_en(struct dpmaif_hw_info *hw_info, bool enable)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
956
u32 ul_arb_en = ioread32(hw_info->pcie_base + DPMAIF_AO_UL_CHNL_ARB0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
963
iowrite32(ul_arb_en, hw_info->pcie_base + DPMAIF_AO_UL_CHNL_ARB0);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
966
static bool t7xx_dpmaif_ul_idle_check(struct dpmaif_hw_info *hw_info)
drivers/net/wwan/t7xx/t7xx_dpmaif.c
968
u32 dpmaif_ul_is_busy = ioread32(hw_info->pcie_base + DPMAIF_UL_CHK_BUSY);
drivers/net/wwan/t7xx/t7xx_dpmaif.c
97
dev_err(hw_info->dev,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
973
void t7xx_dpmaif_ul_update_hw_drb_cnt(struct dpmaif_hw_info *hw_info, unsigned int q_num,
drivers/net/wwan/t7xx/t7xx_dpmaif.c
982
err = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_ULQ_ADD_DESC_CH_n(q_num),
drivers/net/wwan/t7xx/t7xx_dpmaif.c
986
dev_err(hw_info->dev, "UL add is not ready\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
990
iowrite32(ul_update, hw_info->pcie_base + DPMAIF_ULQ_ADD_DESC_CH_n(q_num));
drivers/net/wwan/t7xx/t7xx_dpmaif.c
992
err = ioread32_poll_timeout_atomic(hw_info->pcie_base + DPMAIF_ULQ_ADD_DESC_CH_n(q_num),
drivers/net/wwan/t7xx/t7xx_dpmaif.c
996
dev_err(hw_info->dev, "Timeout updating UL add\n");
drivers/net/wwan/t7xx/t7xx_dpmaif.c
999
unsigned int t7xx_dpmaif_ul_get_rd_idx(struct dpmaif_hw_info *hw_info, unsigned int q_num)
drivers/net/wwan/t7xx/t7xx_dpmaif.h
150
int t7xx_dpmaif_hw_init(struct dpmaif_hw_info *hw_info, struct dpmaif_hw_params *init_param);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
151
int t7xx_dpmaif_hw_stop_all_txq(struct dpmaif_hw_info *hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
152
int t7xx_dpmaif_hw_stop_all_rxq(struct dpmaif_hw_info *hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
153
void t7xx_dpmaif_start_hw(struct dpmaif_hw_info *hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
154
int t7xx_dpmaif_hw_get_intr_cnt(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.h
156
void t7xx_dpmaif_unmask_ulq_intr(struct dpmaif_hw_info *hw_info, unsigned int q_num);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
157
void t7xx_dpmaif_ul_update_hw_drb_cnt(struct dpmaif_hw_info *hw_info, unsigned int q_num,
drivers/net/wwan/t7xx/t7xx_dpmaif.h
159
int t7xx_dpmaif_dl_snd_hw_bat_cnt(struct dpmaif_hw_info *hw_info, unsigned int bat_entry_cnt);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
160
int t7xx_dpmaif_dl_snd_hw_frg_cnt(struct dpmaif_hw_info *hw_info, unsigned int frg_entry_cnt);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
161
int t7xx_dpmaif_dlq_add_pit_remain_cnt(struct dpmaif_hw_info *hw_info, unsigned int dlq_pit_idx,
drivers/net/wwan/t7xx/t7xx_dpmaif.h
163
void t7xx_dpmaif_dlq_unmask_pitcnt_len_err_intr(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_dpmaif.h
165
void t7xx_dpmaif_dlq_unmask_rx_done(struct dpmaif_hw_info *hw_info, unsigned int qno);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
166
bool t7xx_dpmaif_ul_clr_done(struct dpmaif_hw_info *hw_info, unsigned int qno);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
167
void t7xx_dpmaif_ul_clr_all_intr(struct dpmaif_hw_info *hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
168
void t7xx_dpmaif_dl_clr_all_intr(struct dpmaif_hw_info *hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
169
void t7xx_dpmaif_clr_ip_busy_sts(struct dpmaif_hw_info *hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
170
void t7xx_dpmaif_dl_unmask_batcnt_len_err_intr(struct dpmaif_hw_info *hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
171
void t7xx_dpmaif_dl_unmask_pitcnt_len_err_intr(struct dpmaif_hw_info *hw_info);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
172
unsigned int t7xx_dpmaif_ul_get_rd_idx(struct dpmaif_hw_info *hw_info, unsigned int q_num);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
173
unsigned int t7xx_dpmaif_dl_get_bat_rd_idx(struct dpmaif_hw_info *hw_info, unsigned int q_num);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
174
unsigned int t7xx_dpmaif_dl_get_bat_wr_idx(struct dpmaif_hw_info *hw_info, unsigned int q_num);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
175
unsigned int t7xx_dpmaif_dl_get_frg_rd_idx(struct dpmaif_hw_info *hw_info, unsigned int q_num);
drivers/net/wwan/t7xx/t7xx_dpmaif.h
176
unsigned int t7xx_dpmaif_dl_dlq_pit_get_wr_idx(struct dpmaif_hw_info *hw_info,
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1080
struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1083
hw_info->hw_mode = MODE_BIT_64;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1088
hw_info->phy_interrupt_id = CLDMA1_INT;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1092
hw_info->phy_interrupt_id = CLDMA0_INT;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1095
hw_info->ap_ao_base = t7xx_pcie_addr_transfer(pbase->pcie_ext_reg_base,
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1097
hw_info->ap_pdn_base = t7xx_pcie_addr_transfer(pbase->pcie_ext_reg_base,
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1131
struct t7xx_cldma_hw *hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1135
hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1138
t7xx_cldma_hw_restore(hw_info);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
114
struct t7xx_cldma_hw *hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1140
t7xx_cldma_hw_set_start_addr(hw_info, qno_t, md_ctrl->txq[qno_t].tx_next->gpd_addr,
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1142
t7xx_cldma_hw_set_start_addr(hw_info, qno_t, md_ctrl->rxq[qno_t].tr_done->gpd_addr,
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1146
t7xx_cldma_hw_start_queue(hw_info, CLDMA_ALL_Q, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1148
t7xx_cldma_hw_irq_en_eq(hw_info, CLDMA_ALL_Q, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1149
t7xx_cldma_hw_irq_en_txrx(hw_info, CLDMA_ALL_Q, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1160
t7xx_cldma_hw_irq_en_txrx(&md_ctrl->hw_info, CLDMA_ALL_Q, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1161
t7xx_cldma_hw_irq_en_eq(&md_ctrl->hw_info, CLDMA_ALL_Q, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1173
struct t7xx_cldma_hw *hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1176
hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1179
t7xx_cldma_hw_irq_dis_eq(hw_info, CLDMA_ALL_Q, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1180
t7xx_cldma_hw_irq_dis_txrx(hw_info, CLDMA_ALL_Q, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1182
t7xx_cldma_hw_stop_all_qs(hw_info, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1183
t7xx_cldma_clear_ip_busy(hw_info);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
119
hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1191
struct t7xx_cldma_hw *hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1197
hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1200
t7xx_cldma_hw_irq_dis_eq(hw_info, CLDMA_ALL_Q, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1201
t7xx_cldma_hw_irq_dis_txrx(hw_info, CLDMA_ALL_Q, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1203
t7xx_cldma_hw_stop_all_qs(hw_info, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1244
struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1248
t7xx_cldma_hw_stop(hw_info, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1249
t7xx_cldma_hw_stop(hw_info, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1250
t7xx_cldma_hw_rx_done(hw_info, EMPTY_STATUS_BITMASK | TXRX_STATUS_BITMASK);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1251
t7xx_cldma_hw_tx_done(hw_info, EMPTY_STATUS_BITMASK | TXRX_STATUS_BITMASK);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1252
t7xx_cldma_hw_init(hw_info);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1261
interrupt = md_ctrl->hw_info.phy_interrupt_id;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1302
struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1339
t7xx_pcie_mac_clear_int(md_ctrl->t7xx_dev, hw_info->phy_interrupt_id);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1340
md_ctrl->t7xx_dev->intr_handler[hw_info->phy_interrupt_id] = t7xx_cldma_isr_handler;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1341
md_ctrl->t7xx_dev->intr_thread[hw_info->phy_interrupt_id] = NULL;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1342
md_ctrl->t7xx_dev->callback_param[hw_info->phy_interrupt_id] = md_ctrl;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
1343
t7xx_pcie_mac_clear_int_status(md_ctrl->t7xx_dev, hw_info->phy_interrupt_id);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
140
gpd_addr = ioread64_lo_hi(hw_info->ap_pdn_base +
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
199
struct t7xx_cldma_hw *hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
205
hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
218
if (!t7xx_cldma_hw_queue_status(hw_info, queue->index, MTK_RX))
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
219
t7xx_cldma_hw_resume_queue(hw_info, queue->index, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
221
pending_rx_int = t7xx_cldma_hw_int_status(hw_info, BIT(queue->index),
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
224
t7xx_cldma_hw_rx_done(hw_info, pending_rx_int);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
250
t7xx_cldma_clear_ip_busy(&md_ctrl->hw_info);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
251
t7xx_cldma_hw_irq_en_txrx(&md_ctrl->hw_info, queue->index, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
252
t7xx_cldma_hw_irq_en_eq(&md_ctrl->hw_info, queue->index, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
316
struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
319
ul_curr_addr = ioread64_lo_hi(hw_info->ap_pdn_base + REG_CLDMA_UL_CURRENT_ADDRL_0 +
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
328
t7xx_cldma_hw_resume_queue(hw_info, queue->index, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
337
struct t7xx_cldma_hw *hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
341
hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
343
l2_tx_int = t7xx_cldma_hw_int_status(hw_info, BIT(queue->index) | EQ_STA_BIT(queue->index),
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
346
t7xx_cldma_hw_tx_done(hw_info, EQ_STA_BIT(queue->index));
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
351
t7xx_cldma_hw_tx_done(hw_info, BIT(queue->index));
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
358
t7xx_cldma_clear_ip_busy(hw_info);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
359
t7xx_cldma_hw_irq_en_eq(hw_info, queue->index, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
360
t7xx_cldma_hw_irq_en_txrx(hw_info, queue->index, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
538
t7xx_pcie_mac_set_int(md_ctrl->t7xx_dev, md_ctrl->hw_info.phy_interrupt_id);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
543
t7xx_pcie_mac_clear_int(md_ctrl->t7xx_dev, md_ctrl->hw_info.phy_interrupt_id);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
549
struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
553
l2_tx_int = ioread32(hw_info->ap_pdn_base + REG_CLDMA_L2TISAR0);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
554
l2_rx_int = ioread32(hw_info->ap_pdn_base + REG_CLDMA_L2RISAR0);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
555
l2_tx_int_msk = ioread32(hw_info->ap_pdn_base + REG_CLDMA_L2TIMR0);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
556
l2_rx_int_msk = ioread32(hw_info->ap_ao_base + REG_CLDMA_L2RIMR0);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
563
val = ioread32(hw_info->ap_pdn_base + REG_CLDMA_L3TISAR0);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
564
iowrite32(val, hw_info->ap_pdn_base + REG_CLDMA_L3TISAR0);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
565
val = ioread32(hw_info->ap_pdn_base + REG_CLDMA_L3TISAR1);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
566
iowrite32(val, hw_info->ap_pdn_base + REG_CLDMA_L3TISAR1);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
569
t7xx_cldma_hw_tx_done(hw_info, l2_tx_int);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
574
t7xx_cldma_hw_irq_dis_eq(hw_info, i, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
575
t7xx_cldma_hw_irq_dis_txrx(hw_info, i, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
588
val = ioread32(hw_info->ap_pdn_base + REG_CLDMA_L3RISAR0);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
589
iowrite32(val, hw_info->ap_pdn_base + REG_CLDMA_L3RISAR0);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
590
val = ioread32(hw_info->ap_pdn_base + REG_CLDMA_L3RISAR1);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
591
iowrite32(val, hw_info->ap_pdn_base + REG_CLDMA_L3RISAR1);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
594
t7xx_cldma_hw_rx_done(hw_info, l2_rx_int);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
599
t7xx_cldma_hw_irq_dis_eq(hw_info, i, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
600
t7xx_cldma_hw_irq_dis_txrx(hw_info, i, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
609
struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
616
tx_active = t7xx_cldma_hw_queue_status(hw_info, CLDMA_ALL_Q, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
617
rx_active = t7xx_cldma_hw_queue_status(hw_info, CLDMA_ALL_Q, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
635
struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
640
t7xx_cldma_hw_stop_all_qs(hw_info, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
642
t7xx_cldma_hw_stop_all_qs(hw_info, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
645
t7xx_cldma_hw_stop(hw_info, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
646
t7xx_cldma_hw_stop(hw_info, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
647
t7xx_cldma_hw_tx_done(hw_info, CLDMA_L2TISAR0_ALL_INT_MASK);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
648
t7xx_cldma_hw_rx_done(hw_info, CLDMA_L2RISAR0_ALL_INT_MASK);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
727
struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
734
t7xx_cldma_hw_set_start_addr(hw_info, i,
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
741
t7xx_cldma_hw_set_start_addr(hw_info, i,
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
747
t7xx_cldma_hw_start_queue(hw_info, CLDMA_ALL_Q, MTK_RX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
748
t7xx_cldma_hw_start(hw_info);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
827
struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
831
t7xx_cldma_hw_irq_dis_eq(hw_info, CLDMA_ALL_Q, tx_rx);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
832
t7xx_cldma_hw_irq_dis_txrx(hw_info, CLDMA_ALL_Q, tx_rx);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
837
t7xx_cldma_hw_stop_all_qs(hw_info, tx_rx);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
876
struct t7xx_cldma_hw *hw_info = &md_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
879
if (!t7xx_cldma_tx_addr_is_set(hw_info, qno)) {
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
880
t7xx_cldma_hw_init(hw_info);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
881
t7xx_cldma_hw_set_start_addr(hw_info, qno, prev_req->gpd_addr, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
885
if (!t7xx_cldma_hw_queue_status(hw_info, qno, MTK_TX)) {
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
887
t7xx_cldma_hw_resume_queue(hw_info, qno, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
889
t7xx_cldma_hw_start_queue(hw_info, qno, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
977
if (!t7xx_cldma_hw_queue_status(&md_ctrl->hw_info, qno, MTK_TX)) {
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
979
t7xx_cldma_hw_resume_queue(&md_ctrl->hw_info, qno, MTK_TX);
drivers/net/wwan/t7xx/t7xx_hif_cldma.h
112
struct t7xx_cldma_hw hw_info;
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
112
t7xx_dpmaif_dl_unmask_batcnt_len_err_intr(hw_info);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
117
t7xx_dpmaif_dl_unmask_pitcnt_len_err_intr(hw_info);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
122
t7xx_dpmaif_dlq_unmask_pitcnt_len_err_intr(hw_info, DPF_RX_QNO_DFT);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
127
t7xx_dpmaif_dlq_unmask_pitcnt_len_err_intr(hw_info, DPF_RX_QNO1);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
301
struct dpmaif_hw_info *hw_info = &dpmaif_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
350
ret = t7xx_dpmaif_hw_init(hw_info, &hw_init_para);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
356
ret = t7xx_dpmaif_dl_snd_hw_bat_cnt(hw_info, rxq->bat_req->bat_size_cnt - 1);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
360
ret = t7xx_dpmaif_dl_snd_hw_frg_cnt(hw_info, rxq->bat_frag->bat_size_cnt - 1);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
364
t7xx_dpmaif_ul_clr_all_intr(hw_info);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
365
t7xx_dpmaif_dl_clr_all_intr(hw_info);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
388
t7xx_dpmaif_hw_stop_all_txq(&dpmaif_ctrl->hw_info);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
389
t7xx_dpmaif_hw_stop_all_rxq(&dpmaif_ctrl->hw_info);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
415
t7xx_dpmaif_hw_stop_all_txq(&dpmaif_ctrl->hw_info);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
416
t7xx_dpmaif_hw_stop_all_rxq(&dpmaif_ctrl->hw_info);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
427
t7xx_dpmaif_dlq_unmask_rx_done(&dpmaif_ctrl->hw_info, qno);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
457
t7xx_dpmaif_start_hw(&dpmaif_ctrl->hw_info);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
553
dpmaif_ctrl->hw_info.dev = dev;
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
554
dpmaif_ctrl->hw_info.pcie_base = t7xx_dev->base_addr.pcie_ext_reg_base -
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
85
struct dpmaif_hw_info *hw_info;
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
89
hw_info = &dpmaif_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.c
91
if (t7xx_dpmaif_hw_get_intr_cnt(hw_info, &intr_status, isr_para->dlq_id) < 0) {
drivers/net/wwan/t7xx/t7xx_hif_dpmaif.h
176
struct dpmaif_hw_info hw_info;
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c
214
ret = t7xx_dpmaif_dl_snd_hw_bat_cnt(&dpmaif_ctrl->hw_info, i);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c
218
hw_wr_idx = t7xx_dpmaif_dl_get_bat_wr_idx(&dpmaif_ctrl->hw_info,
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c
239
struct dpmaif_hw_info *hw_info = &rxq->dpmaif_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c
257
ret = t7xx_dpmaif_dlq_add_pit_remain_cnt(hw_info, rxq->index, rel_entry_num);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c
380
t7xx_dpmaif_dl_snd_hw_frg_cnt(&dpmaif_ctrl->hw_info, i);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c
509
struct dpmaif_hw_info *hw_info = &rxq->dpmaif_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c
519
hw_rd_idx = t7xx_dpmaif_dl_get_frg_rd_idx(hw_info, rxq->index);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c
522
hw_rd_idx = t7xx_dpmaif_dl_get_bat_rd_idx(hw_info, rxq->index);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c
811
hw_wr_idx = t7xx_dpmaif_dl_dlq_pit_get_wr_idx(&rxq->dpmaif_ctrl->hw_info, rxq->index);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c
879
t7xx_dpmaif_clr_ip_busy_sts(&rxq->dpmaif_ctrl->hw_info);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c
882
t7xx_dpmaif_clr_ip_busy_sts(&rxq->dpmaif_ctrl->hw_info);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c
883
t7xx_dpmaif_dlq_unmask_rx_done(&rxq->dpmaif_ctrl->hw_info, rxq->index);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c
888
t7xx_dpmaif_clr_ip_busy_sts(&rxq->dpmaif_ctrl->hw_info);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
162
struct dpmaif_hw_info *hw_info;
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
172
hw_info = &dpmaif_ctrl->hw_info;
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
175
(t7xx_dpmaif_ul_clr_done(hw_info, txq->index) &&
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
180
t7xx_dpmaif_clr_ip_busy_sts(hw_info);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
182
t7xx_dpmaif_clr_ip_busy_sts(hw_info);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
183
t7xx_dpmaif_unmask_ulq_intr(hw_info, txq->index);
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
437
t7xx_dpmaif_ul_update_hw_drb_cnt(&dpmaif_ctrl->hw_info, txq->index,
drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c
62
new_hw_rd_idx = t7xx_dpmaif_ul_get_rd_idx(&dpmaif_ctrl->hw_info, q_num);
drivers/net/wwan/t7xx/t7xx_modem_ops.c
322
t7xx_cldma_hw_init(&md_ctrl->hw_info);
drivers/pci/controller/pcie-apple.c
160
static const struct hw_info t8103_hw = {
drivers/pci/controller/pcie-apple.c
171
static const struct hw_info t602x_hw = {
drivers/pci/controller/pcie-apple.c
187
const struct hw_info *hw;
drivers/perf/amlogic/meson_ddr_pmu_core.c
296
const u64 *capability = ddr_pmu->info.hw_info->capability;
drivers/perf/amlogic/meson_ddr_pmu_core.c
356
if (info->hw_info->irq_handler(info, &counters) != 0)
drivers/perf/amlogic/meson_ddr_pmu_core.c
363
for (i = 0; i < pmu->info.hw_info->chann_nr; i++)
drivers/perf/amlogic/meson_ddr_pmu_core.c
372
info->hw_info->enable(info);
drivers/perf/amlogic/meson_ddr_pmu_core.c
41
pmu->info.hw_info->enable(&pmu->info);
drivers/perf/amlogic/meson_ddr_pmu_core.c
429
for (i = 0; i < pmu->info.hw_info->chann_nr; i++, k++) {
drivers/perf/amlogic/meson_ddr_pmu_core.c
449
info->hw_info = of_device_get_match_data(&pdev->dev);
drivers/perf/amlogic/meson_ddr_pmu_core.c
451
for (i = 0; i < info->hw_info->dmc_nr; i++) {
drivers/perf/amlogic/meson_ddr_pmu_core.c
49
pmu->info.hw_info->disable(&pmu->info);
drivers/perf/amlogic/meson_ddr_pmu_core.c
512
fmt_attr_fill(pmu->info.hw_info->fmt_attr);
drivers/perf/amlogic/meson_ddr_pmu_core.c
63
pmu->info.hw_info->set_axi_filter(&pmu->info, axi_id, chann);
drivers/perf/amlogic/meson_ddr_pmu_core.c
91
int chann_nr = pmu->info.hw_info->chann_nr;
drivers/perf/amlogic/meson_ddr_pmu_core.c
94
pmu->info.hw_info->get_counters(&pmu->info, &dc);
drivers/perf/amlogic/meson_g12_ddr_pmu.c
257
if (channel > info->hw_info->chann_nr)
drivers/perf/amlogic/meson_g12_ddr_pmu.c
279
for (i = 0; i < info->hw_info->chann_nr; i++)
drivers/perf/amlogic/meson_g12_ddr_pmu.c
292
for (i = 0; i < info->hw_info->chann_nr; i++) {
drivers/usb/serial/whiteheat.c
213
struct whiteheat_hw_info *hw_info;
drivers/usb/serial/whiteheat.c
230
result = kmalloc(sizeof(*hw_info) + 1, GFP_KERNEL);
drivers/usb/serial/whiteheat.c
256
sizeof(*hw_info) + 1, &alen, COMMAND_TIMEOUT_MS);
drivers/usb/serial/whiteheat.c
261
} else if (alen != sizeof(*hw_info) + 1) {
drivers/usb/serial/whiteheat.c
271
hw_info = (struct whiteheat_hw_info *)&result[1];
drivers/usb/serial/whiteheat.c
275
hw_info->sw_major_rev, hw_info->sw_minor_rev);
include/linux/iommu.h
697
void *(*hw_info)(struct device *dev, u32 *length,
include/net/bluetooth/hci_core.h
577
const char *hw_info;
include/soc/amlogic/meson_ddr_pmu.h
55
const struct dmc_hw_info *hw_info;
net/bluetooth/hci_core.c
2709
kfree_const(hdev->hw_info);
net/bluetooth/hci_core.c
2958
kfree_const(hdev->hw_info);
net/bluetooth/hci_core.c
2959
hdev->hw_info = kvasprintf_const(GFP_KERNEL, fmt, vargs);
net/bluetooth/hci_debugfs.c
309
DEFINE_INFO_ATTRIBUTE(hardware_info, hw_info);
net/bluetooth/hci_debugfs.c
348
if (hdev->hw_info)
sound/firewire/bebob/bebob_proc.c
39
struct hw_info *info;
sound/firewire/bebob/bebob_proc.c
41
info = kzalloc_obj(struct hw_info);
sound/firewire/bebob/bebob_proc.c
46
info, sizeof(struct hw_info)) < 0)
sound/pci/cmipci.c
469
struct snd_pcm_hardware *hw_info[3]; /* for playbacks */
sound/soc/sof/amd/acp-common.c
234
.hw_info = SNDRV_PCM_INFO_MMAP |
sound/soc/sof/imx/imx-common.c
470
.hw_info = SNDRV_PCM_INFO_MMAP |
sound/soc/sof/intel/bdw.c
614
.hw_info = SNDRV_PCM_INFO_MMAP |
sound/soc/sof/intel/byt.c
275
.hw_info = SNDRV_PCM_INFO_MMAP |
sound/soc/sof/intel/byt.c
351
.hw_info = SNDRV_PCM_INFO_MMAP |
sound/soc/sof/intel/hda-common-ops.c
100
.hw_info = SNDRV_PCM_INFO_MMAP |
sound/soc/sof/intel/pci-tng.c
189
.hw_info = SNDRV_PCM_INFO_MMAP |
sound/soc/sof/mediatek/mt8186/mt8186.c
440
.hw_info = SNDRV_PCM_INFO_MMAP |
sound/soc/sof/mediatek/mt8195/mt8195.c
464
.hw_info = SNDRV_PCM_INFO_MMAP |
sound/soc/sof/pcm.c
560
runtime->hw.info = ops->hw_info; /* platform-specific */
sound/soc/sof/sof-priv.h
358
u32 hw_info;