Home
last modified time | relevance | path

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

12

/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()
228 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.c363 mutex_lock(&hw->hw_info.lock); in fjes_setup_resources()
369 hw->hw_info.res_buf->info.info[epidx].es_status; in fjes_setup_resources()
371 hw->hw_info.res_buf->info.info[epidx].zone; in fjes_setup_resources()
379 mutex_unlock(&hw->hw_info.lock); in fjes_setup_resources()
382 mutex_unlock(&hw->hw_info.lock); in fjes_setup_resources()
409 mutex_lock(&hw->hw_info.lock); in fjes_setup_resources()
412 mutex_unlock(&hw->hw_info.lock); in fjes_setup_resources()
447 mutex_lock(&hw->hw_info.lock); in fjes_free_resources()
449 mutex_unlock(&hw->hw_info.lock); in fjes_free_resources()
474 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];
Dfjes_debugfs.c44 fjes_hw_epid_is_shared(hw->hw_info.share, epidx) ? 'Y' : 'N'); in fjes_dbg_status_show()
/drivers/net/ethernet/qlogic/qed/
Dqed.h271 ((dev)->hw_info.personality == QED_PCI_ETH_ROCE || \
272 (dev)->hw_info.personality == QED_PCI_ETH_IWARP || \
273 (dev)->hw_info.personality == QED_PCI_ETH_RDMA)
275 ((dev)->hw_info.personality == QED_PCI_ETH_ROCE || \
276 (dev)->hw_info.personality == QED_PCI_ETH_RDMA)
278 ((dev)->hw_info.personality == QED_PCI_ETH_IWARP || \
279 (dev)->hw_info.personality == QED_PCI_ETH_RDMA)
281 ((dev)->hw_info.personality == QED_PCI_ETH || \
284 ((dev)->hw_info.personality == QED_PCI_FCOE)
286 ((dev)->hw_info.personality == QED_PCI_ISCSI)
[all …]
Dqed_sp_commands.c318 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_start()
341 outer_tag_config->outer_tag.tci = cpu_to_le16(p_hwfn->hw_info.ovlan); in qed_sp_pf_start()
380 switch (p_hwfn->hw_info.personality) { in qed_sp_pf_start()
396 p_hwfn->hw_info.personality); in qed_sp_pf_start()
431 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_update()
461 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_update_ufp()
499 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_update_tunn_cfg()
530 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_stop()
551 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_heartbeat_ramrod()
572 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_pf_update_stag()
[all …]
Dqed_dev.c713 p_hwfn->hw_info.hw_mac_addr); in qed_llh_hw_init_pf()
1376 if (p_hwfn->hw_info.personality == QED_PCI_FCOE) in qed_resc_free()
1379 if (p_hwfn->hw_info.personality == QED_PCI_ISCSI) { in qed_resc_free()
1418 switch (p_hwfn->hw_info.personality) { in qed_get_pq_flags()
1439 "unknown personality %d\n", p_hwfn->hw_info.personality); in qed_get_pq_flags()
1449 return p_hwfn->hw_info.num_hw_tc; in qed_init_qm_get_num_tcs()
1636 return p_hwfn->hw_info.offload_tc_set; in qed_is_offload_tc_set()
1642 return p_hwfn->hw_info.offload_tc; in qed_get_offload_tc()
1844 p_hwfn->hw_info.offload_tc : tc, in qed_init_qm_mtc_pqs()
1954 p_hwfn->hw_info.multi_tc_roce_en = false; in qed_init_qm_sanity()
[all …]
Dqed_rdma.c415 guid[0] = p_hwfn->hw_info.hw_mac_addr[0] ^ 2; in qed_rdma_get_guid()
416 guid[1] = p_hwfn->hw_info.hw_mac_addr[1]; in qed_rdma_get_guid()
417 guid[2] = p_hwfn->hw_info.hw_mac_addr[2]; in qed_rdma_get_guid()
420 guid[5] = p_hwfn->hw_info.hw_mac_addr[3]; in qed_rdma_get_guid()
421 guid[6] = p_hwfn->hw_info.hw_mac_addr[4]; in qed_rdma_get_guid()
422 guid[7] = p_hwfn->hw_info.hw_mac_addr[5]; in qed_rdma_get_guid()
598 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_rdma_start_fw()
763 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_rdma_stop()
1090 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_rdma_create_cq()
1167 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_rdma_destroy_cq()
[all …]
Dqed_devlink.c169 memcpy(buf, cdev->hwfns[0].hw_info.part_num, sizeof(cdev->hwfns[0].hw_info.part_num)); in qed_devlink_info_get()
170 buf[sizeof(cdev->hwfns[0].hw_info.part_num)] = 0; in qed_devlink_info_get()
Dqed_roce.c255 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_roce_sp_create_responder()
309 p_ramrod->cq_cid = cpu_to_le32((p_hwfn->hw_info.opaque_fid << 16) | in qed_roce_sp_create_responder()
333 p_ramrod->srq_id.opaque_fid = cpu_to_le16(p_hwfn->hw_info.opaque_fid); in qed_roce_sp_create_responder()
393 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_roce_sp_create_requester()
446 cpu_to_le32((p_hwfn->hw_info.opaque_fid << 16) | qp->sq_cq_id); in qed_roce_sp_create_requester()
511 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_roce_sp_modify_responder()
599 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_roce_sp_modify_requester()
700 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_roce_sp_destroy_qp_responder()
780 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_roce_sp_destroy_qp_requester()
862 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_roce_query_qp()
Dqed_int.c1536 u8 num_tc = p_hwfn->hw_info.num_hw_tc; in qed_int_cau_conf_sb()
1586 p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_id]; in qed_get_igu_free_sb()
1606 p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_id]; in qed_get_pf_igu_sb_id()
1625 igu_sb_id = p_hwfn->hw_info.p_igu_info->igu_dsb_id; in qed_get_igu_sb_id()
1656 p_info = p_hwfn->hw_info.p_igu_info; in qed_int_sb_init()
1708 p_info = p_hwfn->hw_info.p_igu_info; in qed_int_sb_release()
1942 p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_sb_id]; in qed_int_igu_init_pure_rt_single()
1983 struct qed_igu_info *p_info = p_hwfn->hw_info.p_igu_info; in qed_int_igu_init_pure_rt()
2003 p_hwfn->hw_info.opaque_fid, in qed_int_igu_init_pure_rt()
2010 p_hwfn->hw_info.opaque_fid, in qed_int_igu_init_pure_rt()
[all …]
Dqed_iscsi.c155 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_iscsi_func_start()
171 if (p_params->num_queues > p_hwfn->hw_info.feat_num[QED_ISCSI_CQ]) { in qed_sp_iscsi_func_start()
175 p_hwfn->hw_info.feat_num[QED_ISCSI_CQ]); in qed_sp_iscsi_func_start()
186 p_hwfn->hw_info.resc_start[QED_LL2_RAM_QUEUE] + in qed_sp_iscsi_func_start()
202 dval = (u8)p_hwfn->hw_info.resc_start[QED_CMDQS_CQS]; in qed_sp_iscsi_func_start()
283 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_iscsi_conn_offload()
462 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_iscsi_conn_update()
503 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_iscsi_mac_update()
545 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_iscsi_conn_terminate()
579 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_iscsi_conn_clear_sq()
[all …]
Dqed_fcoe.c104 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_fcoe_func_start()
119 if (fcoe_pf_params->num_cqs > p_hwfn->hw_info.feat_num[QED_FCOE_CQ]) { in qed_sp_fcoe_func_start()
123 p_hwfn->hw_info.feat_num[QED_FCOE_CQ]); in qed_sp_fcoe_func_start()
167 tmp = (__force __le16)p_hwfn->hw_info.resc_start[QED_CMDQS_CQS]; in qed_sp_fcoe_func_start()
239 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_fcoe_conn_offload()
316 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_fcoe_conn_destroy()
347 init_data.opaque_fid = p_hwfn->hw_info.opaque_fid; in qed_sp_fcoe_func_stop()
628 p_conn->fw_cid = (p_hwfn->hw_info.opaque_fid << 16) | icid; in qed_fcoe_acquire_connection()
/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 …]
/drivers/net/wireless/quantenna/qtnfmac/
Dcore.c418 if (bus->hw_info.num_mac > 1) { in qtnf_core_mac_alloc()
492 if (qtnf_hwcap_is_set(&mac->bus->hw_info, QLINK_HW_CAPAB_HW_BRIDGE)) in qtnf_core_net_attach()
570 if (!(bus->hw_info.mac_bitmap & BIT(macid))) { in qtnf_core_mac_attach()
611 ret = qtnf_wiphy_register(&bus->hw_info, mac); in qtnf_core_mac_attach()
629 if (qtnf_hwcap_is_set(&bus->hw_info, QLINK_HW_CAPAB_HW_BRIDGE)) { in qtnf_core_mac_attach()
699 qtnf_hwcap_is_set(&bus->hw_info, in qtnf_core_netdevice_event()
751 if (QLINK_VER_MAJOR(bus->hw_info.ql_proto_ver) != in qtnf_core_attach()
755 QLINK_VER_MAJOR(bus->hw_info.ql_proto_ver)); in qtnf_core_attach()
767 if (qtnf_hwcap_is_set(&bus->hw_info, QLINK_HW_CAPAB_HW_BRIDGE) && in qtnf_core_attach()
771 if (bus->hw_info.num_mac > QTNF_MAX_MAC) { in qtnf_core_attach()
[all …]
Dcfg80211.c267 if (qtnf_hwcap_is_set(&mac->bus->hw_info, QLINK_HW_CAPAB_HW_BRIDGE)) { in qtnf_add_virtual_intf()
1088 qtnf_hwcap_is_set(&bus->hw_info, QLINK_HW_CAPAB_DFS_OFFLOAD)) in qtnf_wiphy_allocate()
1091 if (!qtnf_hwcap_is_set(&bus->hw_info, QLINK_HW_CAPAB_PWR_MGMT)) in qtnf_wiphy_allocate()
1134 int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac) in qtnf_wiphy_register() argument
1177 qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_DFS_OFFLOAD)) in qtnf_wiphy_register()
1180 if (qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_SCAN_DWELL)) in qtnf_wiphy_register()
1196 if (qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_STA_INACT_TIMEOUT)) in qtnf_wiphy_register()
1199 if (qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_SCAN_RANDOM_MAC_ADDR)) in qtnf_wiphy_register()
1202 if (!qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_OBSS_SCAN)) in qtnf_wiphy_register()
1205 if (qtnf_hwcap_is_set(hw_info, QLINK_HW_CAPAB_SAE)) in qtnf_wiphy_register()
[all …]
Dcfg80211.h11 int qtnf_wiphy_register(struct qtnf_hw_info *hw_info, struct qtnf_wmac *mac);
/drivers/net/dsa/
Dlantiq_gswip.c268 const struct gswip_hw_info *hw_info; member
619 unsigned int cpu_port = priv->hw_info->cpu_port; in gswip_add_single_port_br()
620 unsigned int max_ports = priv->hw_info->max_ports; in gswip_add_single_port_br()
789 unsigned int cpu_port = priv->hw_info->cpu_port; in gswip_setup()
798 for (i = 0; i < priv->hw_info->max_ports; i++) { in gswip_setup()
846 for (i = 0; i < priv->hw_info->max_ports; i++) in gswip_setup()
895 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_active_create()
953 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_add_unaware()
954 unsigned int cpu_port = priv->hw_info->cpu_port; in gswip_vlan_add_unaware()
1015 unsigned int max_ports = priv->hw_info->max_ports; in gswip_vlan_add_aware()
[all …]
/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()
/drivers/infiniband/hw/i40iw/
Di40iw_hw.c674 struct i40iw_qp_flush_info *hw_info; in i40iw_hw_flush_wqes() local
684 hw_info = &cqp_request->info.in.u.qp_flush_wqes.info; in i40iw_hw_flush_wqes()
685 memcpy(hw_info, info, sizeof(*hw_info)); in i40iw_hw_flush_wqes()
762 struct i40iw_manage_vf_pble_info *hw_info; in i40iw_hw_manage_vf_pble_bp() local
774 hw_info = &cqp_request->info.in.u.manage_vf_pble_bp.info; in i40iw_hw_manage_vf_pble_bp()
775 memcpy(hw_info, info, sizeof(*hw_info)); in i40iw_hw_manage_vf_pble_bp()
/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_ddc.c183 struct gpio_ddc_hw_info hw_info; in ddc_service_construct() local
192 hw_info.ddc_channel = i2c_info.i2c_line; in ddc_service_construct()
194 hw_info.hw_supported = i2c_info.i2c_hw_assist; in ddc_service_construct()
196 hw_info.hw_supported = false; in ddc_service_construct()
202 &hw_info); in ddc_service_construct()
/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()
/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 …]
/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_core.c138 static const struct inv_mpu6050_hw hw_info[] = { variable
1295 st->hw = &hw_info[st->chip_type]; in inv_check_and_setup_chip()
1296 st->reg = hw_info[st->chip_type].reg; in inv_check_and_setup_chip()
1297 memcpy(&st->chip_config, hw_info[st->chip_type].config, in inv_check_and_setup_chip()
1307 if (regval == hw_info[i].whoami) { in inv_check_and_setup_chip()
1311 regval, hw_info[i].name, in inv_check_and_setup_chip()
1435 BUILD_BUG_ON(ARRAY_SIZE(hw_info) != INV_NUM_PARTS); in inv_mpu_core_probe()

12