Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/net/fjes/
Dfjes_hw.c98 hw->hw_info.share = kzalloc(size, GFP_KERNEL); in fjes_hw_alloc_shared_status_region()
99 if (!hw->hw_info.share) in fjes_hw_alloc_shared_status_region()
102 hw->hw_info.share->epnum = hw->max_epid; in fjes_hw_alloc_shared_status_region()
109 kfree(hw->hw_info.share); in fjes_hw_free_shared_status_region()
110 hw->hw_info.share = NULL; in fjes_hw_free_shared_status_region()
211 hw->hw_info.max_epid = &hw->max_epid; in fjes_hw_setup()
212 hw->hw_info.my_epid = &hw->my_epid; in fjes_hw_setup()
222 hw->hw_info.req_buf = kzalloc(mem_size, GFP_KERNEL); in fjes_hw_setup()
223 if (!(hw->hw_info.req_buf)) in fjes_hw_setup()
226 hw->hw_info.req_buf_size = mem_size; in fjes_hw_setup()
[all …]
Dfjes_ethtool.c235 mutex_lock(&hw->hw_info.lock); in fjes_set_dump()
237 mutex_unlock(&hw->hw_info.lock); in fjes_set_dump()
246 mutex_lock(&hw->hw_info.lock); in fjes_set_dump()
248 mutex_unlock(&hw->hw_info.lock); in fjes_set_dump()
260 dump->len = hw->hw_info.trace_size; in fjes_get_dump_flag()
274 if (hw->hw_info.trace) in fjes_get_dump_data()
275 memcpy(buf, hw->hw_info.trace, hw->hw_info.trace_size); in fjes_get_dump_data()
Dfjes_main.c360 mutex_lock(&hw->hw_info.lock); in fjes_setup_resources()
366 hw->hw_info.res_buf->info.info[epidx].es_status; in fjes_setup_resources()
368 hw->hw_info.res_buf->info.info[epidx].zone; in fjes_setup_resources()
376 mutex_unlock(&hw->hw_info.lock); in fjes_setup_resources()
379 mutex_unlock(&hw->hw_info.lock); in fjes_setup_resources()
406 mutex_lock(&hw->hw_info.lock); in fjes_setup_resources()
409 mutex_unlock(&hw->hw_info.lock); in fjes_setup_resources()
444 mutex_lock(&hw->hw_info.lock); in fjes_free_resources()
446 mutex_unlock(&hw->hw_info.lock); in fjes_free_resources()
471 hw->hw_info.buffer_share_bit = 0; in fjes_free_resources()
[all …]
Dfjes_trace.h282 __entry->ep_status = hw->hw_info.share->ep_status[src_epid];
303 __entry->ep_status = hw->hw_info.share->ep_status[src_epid];
326 __entry->ep_status = hw->hw_info.share->ep_status[src_epid];
347 __entry->ep_status = hw->hw_info.share->ep_status[src_epid];
/Linux-v5.4/drivers/net/ethernet/qlogic/qed/
Dqed.h310 ((dev)->hw_info.personality == QED_PCI_ETH_ROCE || \
311 (dev)->hw_info.personality == QED_PCI_ETH_IWARP || \
312 (dev)->hw_info.personality == QED_PCI_ETH_RDMA)
314 ((dev)->hw_info.personality == QED_PCI_ETH_ROCE || \
315 (dev)->hw_info.personality == QED_PCI_ETH_RDMA)
317 ((dev)->hw_info.personality == QED_PCI_ETH_IWARP || \
318 (dev)->hw_info.personality == QED_PCI_ETH_RDMA)
320 ((dev)->hw_info.personality == QED_PCI_ETH || \
323 ((dev)->hw_info.personality == QED_PCI_FCOE)
325 ((dev)->hw_info.personality == QED_PCI_ISCSI)
[all …]
Dqed_sp_commands.c343 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_start()
366 cpu_to_le16(p_hwfn->hw_info.ovlan); in qed_sp_pf_start()
404 switch (p_hwfn->hw_info.personality) { in qed_sp_pf_start()
420 p_hwfn->hw_info.personality); in qed_sp_pf_start()
455 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_update()
485 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_update_ufp()
523 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_update_tunn_cfg()
554 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_stop()
575 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_heartbeat_ramrod()
596 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_update_stag()
[all …]
Dqed_dev.c739 p_hwfn->hw_info.hw_mac_addr); in qed_llh_hw_init_pf()
1399 if (p_hwfn->hw_info.personality == QED_PCI_FCOE) in qed_resc_free()
1402 if (p_hwfn->hw_info.personality == QED_PCI_ISCSI) { in qed_resc_free()
1438 switch (p_hwfn->hw_info.personality) { in qed_get_pq_flags()
1459 "unknown personality %d\n", p_hwfn->hw_info.personality); in qed_get_pq_flags()
1469 return p_hwfn->hw_info.num_hw_tc; in qed_init_qm_get_num_tcs()
1653 return p_hwfn->hw_info.offload_tc_set; in qed_is_offload_tc_set()
1659 return p_hwfn->hw_info.offload_tc; in qed_get_offload_tc()
1861 p_hwfn->hw_info.offload_tc : tc, in qed_init_qm_mtc_pqs()
1971 p_hwfn->hw_info.multi_tc_roce_en = 0; in qed_init_qm_sanity()
[all …]
Dqed_rdma.c412 guid[0] = p_hwfn->hw_info.hw_mac_addr[0] ^ 2; in qed_rdma_get_guid()
413 guid[1] = p_hwfn->hw_info.hw_mac_addr[1]; in qed_rdma_get_guid()
414 guid[2] = p_hwfn->hw_info.hw_mac_addr[2]; in qed_rdma_get_guid()
417 guid[5] = p_hwfn->hw_info.hw_mac_addr[3]; in qed_rdma_get_guid()
418 guid[6] = p_hwfn->hw_info.hw_mac_addr[4]; in qed_rdma_get_guid()
419 guid[7] = p_hwfn->hw_info.hw_mac_addr[5]; in qed_rdma_get_guid()
595 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_rdma_start_fw()
757 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_rdma_stop()
1049 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_rdma_create_cq()
1127 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_rdma_destroy_cq()
[all …]
Dqed_roce.c275 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_roce_sp_create_responder()
336 p_ramrod->cq_cid = cpu_to_le32((p_hwfn->hw_info.opaque_fid << 16) | in qed_roce_sp_create_responder()
359 p_ramrod->srq_id.opaque_fid = cpu_to_le16(p_hwfn->hw_info.opaque_fid); in qed_roce_sp_create_responder()
416 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_roce_sp_create_requester()
467 cpu_to_le32((p_hwfn->hw_info.opaque_fid << 16) | qp->sq_cq_id); in qed_roce_sp_create_requester()
528 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_roce_sp_modify_responder()
622 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_roce_sp_modify_requester()
728 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_roce_sp_destroy_qp_responder()
806 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_roce_sp_destroy_qp_requester()
888 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_roce_query_qp()
Dqed_int.c1530 u8 num_tc = p_hwfn->hw_info.num_hw_tc; in qed_int_cau_conf_sb()
1580 p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_id]; in qed_get_igu_free_sb()
1600 p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_id]; in qed_get_pf_igu_sb_id()
1619 igu_sb_id = p_hwfn->hw_info.p_igu_info->igu_dsb_id; in qed_get_igu_sb_id()
1650 p_info = p_hwfn->hw_info.p_igu_info; in qed_int_sb_init()
1702 p_info = p_hwfn->hw_info.p_igu_info; in qed_int_sb_release()
1936 p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_sb_id]; in qed_int_igu_init_pure_rt_single()
1977 struct qed_igu_info *p_info = p_hwfn->hw_info.p_igu_info; in qed_int_igu_init_pure_rt()
1997 p_hwfn->hw_info.opaque_fid, in qed_int_igu_init_pure_rt()
2004 p_hwfn->hw_info.opaque_fid, in qed_int_igu_init_pure_rt()
[all …]
Dqed_iscsi.c182 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_iscsi_func_start()
198 if (p_params->num_queues > p_hwfn->hw_info.feat_num[QED_ISCSI_CQ]) { in qed_sp_iscsi_func_start()
202 p_hwfn->hw_info.feat_num[QED_ISCSI_CQ]); in qed_sp_iscsi_func_start()
216 p_init->ll2_rx_queue_id = p_hwfn->hw_info.resc_start[QED_LL2_QUEUE] + in qed_sp_iscsi_func_start()
232 dval = (u8)p_hwfn->hw_info.resc_start[QED_CMDQS_CQS]; in qed_sp_iscsi_func_start()
312 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_iscsi_conn_offload()
484 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_iscsi_conn_update()
529 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_iscsi_mac_update()
575 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_iscsi_conn_terminate()
614 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_iscsi_conn_clear_sq()
[all …]
Dqed_fcoe.c130 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_fcoe_func_start()
145 if (fcoe_pf_params->num_cqs > p_hwfn->hw_info.feat_num[QED_FCOE_CQ]) { in qed_sp_fcoe_func_start()
149 p_hwfn->hw_info.feat_num[QED_FCOE_CQ]); in qed_sp_fcoe_func_start()
192 tmp = (u16)p_hwfn->hw_info.resc_start[QED_CMDQS_CQS]; in qed_sp_fcoe_func_start()
266 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_fcoe_conn_offload()
343 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_fcoe_conn_destroy()
374 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_fcoe_func_stop()
650 p_conn->fw_cid = (p_hwfn->hw_info.opaque_fid << 16) | icid; in qed_fcoe_acquire_connection()
/Linux-v5.4/drivers/net/ethernet/8390/
Dpcnet_cs.c113 struct hw_info { struct
134 static struct hw_info hw_info[] = { argument
196 #define NR_INFO ARRAY_SIZE(hw_info)
198 static struct hw_info default_info = { 0, 0, 0, 0, 0 };
199 static struct hw_info dl10019_info = { 0, 0, 0, 0, IS_DL10019|HAS_MII };
200 static struct hw_info dl10022_info = { 0, 0, 0, 0, IS_DL10022|HAS_MII };
277 static struct hw_info *get_hwinfo(struct pcmcia_device *link) in get_hwinfo()
299 hw_info[i].offset & ~(resource_size(link->resource[2])-1)); in get_hwinfo()
300 base = &virt[hw_info[i].offset & (resource_size(link->resource[2])-1)]; in get_hwinfo()
301 if ((readb(base+0) == hw_info[i].a0) && in get_hwinfo()
[all …]
/Linux-v5.4/sound/firewire/bebob/
Dbebob_proc.c11 struct hw_info { struct
39 struct hw_info *info; in proc_read_hw_info() argument
41 info = kzalloc(sizeof(struct hw_info), GFP_KERNEL); in proc_read_hw_info()
46 info, sizeof(struct hw_info)) < 0) in proc_read_hw_info()
/Linux-v5.4/drivers/net/wireless/quantenna/qtnfmac/
Dcfg80211.c1033 if (bus->hw_info.hw_capab & QLINK_HW_CAPAB_DFS_OFFLOAD) in qtnf_wiphy_allocate()
1036 if (!(bus->hw_info.hw_capab & QLINK_HW_CAPAB_PWR_MGMT)) in qtnf_wiphy_allocate()
1076 int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac) in qtnf_wiphy_register() argument
1095 (hw_info->max_scan_ssids) ? hw_info->max_scan_ssids : 1; in qtnf_wiphy_register()
1118 if (hw_info->hw_capab & QLINK_HW_CAPAB_DFS_OFFLOAD) in qtnf_wiphy_register()
1121 if (hw_info->hw_capab & QLINK_HW_CAPAB_SCAN_DWELL) in qtnf_wiphy_register()
1137 if (hw_info->hw_capab & QLINK_HW_CAPAB_STA_INACT_TIMEOUT) in qtnf_wiphy_register()
1140 if (hw_info->hw_capab & QLINK_HW_CAPAB_SCAN_RANDOM_MAC_ADDR) in qtnf_wiphy_register()
1143 if (!(hw_info->hw_capab & QLINK_HW_CAPAB_OBSS_SCAN)) in qtnf_wiphy_register()
1146 if (hw_info->hw_capab & QLINK_HW_CAPAB_SAE) in qtnf_wiphy_register()
[all …]
Dcore.c543 if (!(bus->hw_info.mac_bitmap & BIT(macid))) { in qtnf_core_mac_attach()
586 ret = qtnf_wiphy_register(&bus->hw_info, mac); in qtnf_core_mac_attach()
652 if (bus->hw_info.ql_proto_ver != QLINK_PROTO_VER) { in qtnf_core_attach()
654 QLINK_PROTO_VER, bus->hw_info.ql_proto_ver); in qtnf_core_attach()
659 if (bus->hw_info.num_mac > QTNF_MAX_MAC) { in qtnf_core_attach()
661 bus->hw_info.num_mac); in qtnf_core_attach()
666 for (i = 0; i < bus->hw_info.num_mac; i++) { in qtnf_core_attach()
791 if (!(bus->hw_info.mac_bitmap & BIT(macid))) in qtnf_wake_all_queues()
Dcfg80211.h11 int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac);
/Linux-v5.4/drivers/net/dsa/
Dlantiq_gswip.c248 const struct gswip_hw_info *hw_info; member
602 unsigned int cpu_port = priv->hw_info->cpu_port; in gswip_add_single_port_br()
603 unsigned int max_ports = priv->hw_info->max_ports; in gswip_add_single_port_br()
774 unsigned int cpu_port = priv->hw_info->cpu_port; in gswip_setup()
783 for (i = 0; i < priv->hw_info->max_ports; i++) { in gswip_setup()
854 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_active_create()
912 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_add_unaware()
913 unsigned int cpu_port = priv->hw_info->cpu_port; in gswip_vlan_add_unaware()
974 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_add_aware()
975 unsigned int cpu_port = priv->hw_info->cpu_port; in gswip_vlan_add_aware()
[all …]
/Linux-v5.4/arch/powerpc/sysdev/
Dtsi108_dev.c74 hw_info tsi_eth_data; in tsi108_eth_of_init()
144 sizeof(hw_info)); in tsi108_eth_of_init()
/Linux-v5.4/drivers/usb/serial/
Dwhiteheat.c223 struct whiteheat_hw_info *hw_info; in whiteheat_attach() local
240 result = kmalloc(sizeof(*hw_info) + 1, GFP_KERNEL); in whiteheat_attach()
266 sizeof(*hw_info) + 1, &alen, COMMAND_TIMEOUT_MS); in whiteheat_attach()
271 } else if (alen != sizeof(*hw_info) + 1) { in whiteheat_attach()
281 hw_info = (struct whiteheat_hw_info *)&result[1]; in whiteheat_attach()
285 hw_info->sw_major_rev, hw_info->sw_minor_rev); in whiteheat_attach()
/Linux-v5.4/drivers/infiniband/hw/i40iw/
Di40iw_hw.c675 struct i40iw_qp_flush_info *hw_info; in i40iw_hw_flush_wqes() local
685 hw_info = &cqp_request->info.in.u.qp_flush_wqes.info; in i40iw_hw_flush_wqes()
686 memcpy(hw_info, info, sizeof(*hw_info)); in i40iw_hw_flush_wqes()
763 struct i40iw_manage_vf_pble_info *hw_info; in i40iw_hw_manage_vf_pble_bp() local
775 hw_info = &cqp_request->info.in.u.manage_vf_pble_bp.info; in i40iw_hw_manage_vf_pble_bp()
776 memcpy(hw_info, info, sizeof(*hw_info)); in i40iw_hw_manage_vf_pble_bp()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_ddc.c199 struct gpio_ddc_hw_info hw_info; in construct() local
208 hw_info.ddc_channel = i2c_info.i2c_line; in construct()
209 hw_info.hw_supported = i2c_info.i2c_hw_assist; in construct()
215 &hw_info); in construct()
/Linux-v5.4/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_core.c111 static const struct inv_mpu6050_hw hw_info[] = { variable
334 memcpy(&st->chip_config, hw_info[st->chip_type].config, in inv_mpu6050_init_config()
977 st->hw = &hw_info[st->chip_type]; in inv_check_and_setup_chip()
978 st->reg = hw_info[st->chip_type].reg; in inv_check_and_setup_chip()
987 if (regval == hw_info[i].whoami) { in inv_check_and_setup_chip()
991 regval, hw_info[i].name, in inv_check_and_setup_chip()
1085 BUILD_BUG_ON(ARRAY_SIZE(hw_info) != INV_NUM_PARTS); in inv_mpu_core_probe()
/Linux-v5.4/drivers/media/usb/dvb-usb-v2/
Danysee.c493 u8 hw_info[3]; in anysee_read_config() local
499 ret = anysee_get_hw_info(d, hw_info); in anysee_read_config()
503 ret = anysee_get_hw_info(d, hw_info); in anysee_read_config()
511 KBUILD_MODNAME, hw_info[1], hw_info[2], hw_info[0]); in anysee_read_config()
513 state->hw = hw_info[0]; in anysee_read_config()
/Linux-v5.4/drivers/net/ethernet/neterion/vxge/
Dvxge-config.c805 struct vxge_hw_device_hw_info *hw_info) in __vxge_hw_vpath_fw_ver_get() argument
807 struct vxge_hw_device_version *fw_version = &hw_info->fw_version; in __vxge_hw_vpath_fw_ver_get()
808 struct vxge_hw_device_date *fw_date = &hw_info->fw_date; in __vxge_hw_vpath_fw_ver_get()
809 struct vxge_hw_device_version *flash_version = &hw_info->flash_version; in __vxge_hw_vpath_fw_ver_get()
810 struct vxge_hw_device_date *flash_date = &hw_info->flash_date; in __vxge_hw_vpath_fw_ver_get()
872 struct vxge_hw_device_hw_info *hw_info) in __vxge_hw_vpath_card_info_get() argument
876 u8 *serial_number = hw_info->serial_number; in __vxge_hw_vpath_card_info_get()
877 u8 *part_number = hw_info->part_number; in __vxge_hw_vpath_card_info_get()
878 u8 *product_desc = hw_info->product_desc; in __vxge_hw_vpath_card_info_get()
931 struct vxge_hw_device_hw_info *hw_info) in __vxge_hw_vpath_pci_func_mode_get() argument
[all …]

123