/linux/sound/soc/sh/ |
H A D | siu_dai.c | 94 static void siu_dai_start(struct siu_port *port_info) in siu_dai_start() argument 99 dev_dbg(port_info->pcm->card->dev, "%s\n", __func__); in siu_dai_start() 107 port_info->stfifo = 0; in siu_dai_start() 108 port_info->trdat = 0; in siu_dai_start() 133 siu_write32(base + SIU_SBDVCA, port_info->playback.volume); in siu_dai_start() 134 siu_write32(base + SIU_SBDVCB, port_info->capture.volume); in siu_dai_start() 137 static void siu_dai_stop(struct siu_port *port_info) in siu_dai_stop() argument 146 static void siu_dai_spbAselect(struct siu_port *port_info) in siu_dai_spbAselect() argument 167 port_info->stfifo |= fw->spbpar[idx].stfifo; in siu_dai_spbAselect() 168 port_info->trdat |= fw->spbpar[idx].trdat; in siu_dai_spbAselect() [all …]
|
H A D | siu_pcm.c | 37 static int siu_pcm_stmwrite_stop(struct siu_port *port_info) in siu_pcm_stmwrite_stop() argument 41 struct siu_stream *siu_stream = &port_info->playback; in siu_pcm_stmwrite_stop() 59 static int siu_pcm_stmwrite_start(struct siu_port *port_info) in siu_pcm_stmwrite_start() argument 61 struct siu_stream *siu_stream = &port_info->playback; in siu_pcm_stmwrite_start() 67 port_info->playback.cur_period = 0; in siu_pcm_stmwrite_start() 102 static int siu_pcm_wr_set(struct siu_port *port_info, in siu_pcm_wr_set() argument 107 struct siu_stream *siu_stream = &port_info->playback; in siu_pcm_wr_set() 143 siu_write32(base + SIU_STFIFO, stfifo | (port_info->stfifo & 0x0c180c18)); in siu_pcm_wr_set() 145 stfifo, stfifo | (port_info->stfifo & 0x0c180c18)); in siu_pcm_wr_set() 150 static int siu_pcm_rd_set(struct siu_port *port_info, in siu_pcm_rd_set() argument [all …]
|
/linux/drivers/message/fusion/ |
H A D | mptsas.c | 128 struct mptsas_portinfo *port_info, u8 force); 409 struct mptsas_portinfo *port_info, *rc=NULL; in mptsas_find_portinfo_by_handle() local 412 list_for_each_entry(port_info, &ioc->sas_topology, list) in mptsas_find_portinfo_by_handle() 413 for (i = 0; i < port_info->num_phys; i++) in mptsas_find_portinfo_by_handle() 414 if (port_info->phy_info[i].identify.handle == handle) { in mptsas_find_portinfo_by_handle() 415 rc = port_info; in mptsas_find_portinfo_by_handle() 435 struct mptsas_portinfo *port_info, *rc = NULL; in mptsas_find_portinfo_by_sas_address() local 444 list_for_each_entry(port_info, &ioc->sas_topology, list) in mptsas_find_portinfo_by_sas_address() 445 for (i = 0; i < port_info->num_phys; i++) in mptsas_find_portinfo_by_sas_address() 446 if (port_info->phy_info[i].identify.sas_address == in mptsas_find_portinfo_by_sas_address() [all …]
|
/linux/drivers/acpi/acpica/ |
H A D | hwvalid.c | 95 const struct acpi_port_info *port_info; in acpi_hw_validate_io_request() local 107 port_info = acpi_protected_ports; in acpi_hw_validate_io_request() 133 for (i = 0; i < ACPI_PORT_INFO_ENTRIES; i++, port_info++) { in acpi_hw_validate_io_request() 143 if ((address <= port_info->end) in acpi_hw_validate_io_request() 144 && (last_address >= port_info->start)) { in acpi_hw_validate_io_request() 148 if (port_info->osi_dependency == ACPI_ALWAYS_ILLEGAL || in acpi_hw_validate_io_request() 149 acpi_gbl_osi_data == port_info->osi_dependency) { in acpi_hw_validate_io_request() 153 byte_width, port_info->name, in acpi_hw_validate_io_request() 154 port_info->start, in acpi_hw_validate_io_request() 155 port_info->end)); in acpi_hw_validate_io_request() [all …]
|
/linux/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_vema.c | 180 static inline void vema_get_pod_values(struct opa_veswport_info *port_info) in vema_get_pod_values() argument 182 memset(port_info, 0, sizeof(*port_info)); in vema_get_pod_values() 183 port_info->vport.max_mac_tbl_ent = in vema_get_pod_values() 185 port_info->vport.max_smac_ent = in vema_get_pod_values() 187 port_info->vport.oper_state = OPA_VNIC_STATE_DROP_ALL; in vema_get_pod_values() 188 port_info->vport.config_state = OPA_VNIC_STATE_DROP_ALL; in vema_get_pod_values() 189 port_info->vesw.eth_mtu = cpu_to_be16(ETH_DATA_LEN); in vema_get_pod_values() 233 struct opa_class_port_info *port_info; in vema_get_class_port_info() local 235 port_info = (struct opa_class_port_info *)rsp_mad->data; in vema_get_class_port_info() 236 memcpy(port_info, &port->class_port_info, sizeof(*port_info)); in vema_get_class_port_info() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_dcb_lib.c | 87 static u8 ice_dcb_get_mode(struct ice_port_info *port_info, bool host) in ice_dcb_get_mode() argument 96 if (port_info->qos_cfg.local_dcbx_cfg.dcbx_mode & ICE_DCBX_MODE_CEE) in ice_dcb_get_mode() 151 struct ice_dcbx_cfg *cfg = &vsi->port_info->qos_cfg.local_dcbx_cfg; in ice_get_first_droptc() 182 struct ice_dcbx_cfg *cfg = &vsi->port_info->qos_cfg.local_dcbx_cfg; in ice_vsi_set_dcb_tc_cfg() 359 curr_cfg = &pf->hw.port_info->qos_cfg.local_dcbx_cfg; in ice_pf_dcb_cfg() 362 if (!pf->hw.port_info->qos_cfg.is_sw_lldp) in ice_pf_dcb_cfg() 368 if (pf->hw.port_info->is_custom_tx_enabled) { in ice_pf_dcb_cfg() 428 if (pf->hw.port_info->qos_cfg.is_sw_lldp) { in ice_pf_dcb_cfg() 429 ret = ice_set_dcb_cfg(pf->hw.port_info); in ice_pf_dcb_cfg() 438 ret = ice_query_port_ets(pf->hw.port_info, &buf, sizeof(buf), NULL); in ice_pf_dcb_cfg() [all …]
|
H A D | ice_eswitch.c | 41 if (ice_cfg_dflt_vsi(uplink_vsi->port_info, uplink_vsi->idx, true, in ice_eswitch_setup_env() 45 if (ice_cfg_dflt_vsi(uplink_vsi->port_info, uplink_vsi->idx, true, in ice_eswitch_setup_env() 71 ice_cfg_dflt_vsi(uplink_vsi->port_info, uplink_vsi->idx, false, in ice_eswitch_setup_env() 74 ice_cfg_dflt_vsi(uplink_vsi->port_info, uplink_vsi->idx, false, in ice_eswitch_setup_env() 80 uplink_vsi->port_info->mac.perm_addr, in ice_eswitch_setup_env() 128 dst->u.port_info.port_id = vsi->vsi_num; in ice_eswitch_setup_repr() 129 dst->u.port_info.lower_dev = uplink_vsi->netdev; in ice_eswitch_setup_repr() 195 repr->dst->u.port_info.port_id = vsi->vsi_num; in ice_eswitch_update_repr() 233 skb->dev = repr->dst->u.port_info.lower_dev; in ice_eswitch_port_start_xmit() 259 dst->u.port_info.port_id); in ice_eswitch_set_target_vsi() [all …]
|
H A D | ice_dcb_nl.c | 38 dcbxcfg = &pf->hw.port_info->qos_cfg.local_dcbx_cfg; in ice_dcbnl_getets() 78 new_cfg = &pf->hw.port_info->qos_cfg.desired_dcbx_cfg; in ice_dcbnl_setets() 183 qos_cfg = &pf->hw.port_info->qos_cfg; in ice_dcbnl_setdcbx() 208 struct ice_port_info *pi = pf->hw.port_info; in ice_dcbnl_get_perm_hw_addr() 241 struct ice_port_info *pi = pf->hw.port_info; in ice_dcbnl_getpfc() 281 new_cfg = &pf->hw.port_info->qos_cfg.desired_dcbx_cfg; in ice_dcbnl_setpfc() 309 struct ice_port_info *pi = pf->hw.port_info; in ice_dcbnl_get_pfc_cfg() 346 new_cfg = &pf->hw.port_info->qos_cfg.desired_dcbx_cfg; in ice_dcbnl_set_pfc_cfg() 365 struct ice_port_info *pi = pf->hw.port_info; in ice_dcbnl_getpfcstate() 413 memcpy(&pf->hw.port_info->qos_cfg.desired_dcbx_cfg, in ice_dcbnl_setstate() [all …]
|
H A D | ice_lag.c | 147 if (hw->port_info->lport == lport) in ice_lag_find_hw_by_lport() 239 s_rule->src = cpu_to_le16(hw->port_info->lport); in ice_lag_cfg_fltr() 449 struct ice_port_info *pi = hw->port_info; in ice_lag_get_sched_parent() 710 pri_port = pf->hw.port_info->lport; in ice_lag_move_new_vf_nodes() 798 s_rule->src = cpu_to_le16(vsi->port_info->lport); in ice_lag_cfg_cp_fltr() 928 src_hw->port_info->lport, hw->port_info->lport, in ice_lag_reclaim_vf_tc() 1019 pri_port = lag->pf->hw.port_info->lport; in ice_lag_unlink() 1030 pri_port = primary_lag->pf->hw.port_info->lport; in ice_lag_unlink() 1031 loc_port = pf->hw.port_info->lport; in ice_lag_unlink() 1111 cpu_to_le16(local_lag->pf->hw.port_info->sw_id); in ice_lag_set_swid() [all …]
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | sched.c | 41 static int t4_sched_class_fw_cmd(struct port_info *pi, in t4_sched_class_fw_cmd() 71 static int t4_sched_bind_unbind_op(struct port_info *pi, void *arg, in t4_sched_bind_unbind_op() 120 static void *t4_sched_entry_lookup(struct port_info *pi, in t4_sched_entry_lookup() 172 struct port_info *pi = netdev2pinfo(dev); in cxgb4_sched_queue_lookup() 185 static int t4_sched_queue_unbind(struct port_info *pi, struct ch_sched_queue *p) in t4_sched_queue_unbind() 215 static int t4_sched_queue_bind(struct port_info *pi, struct ch_sched_queue *p) in t4_sched_queue_bind() 259 static int t4_sched_flowc_unbind(struct port_info *pi, struct ch_sched_flowc *p) in t4_sched_flowc_unbind() 286 static int t4_sched_flowc_bind(struct port_info *pi, struct ch_sched_flowc *p) in t4_sched_flowc_bind() 324 static void t4_sched_class_unbind_all(struct port_info *pi, in t4_sched_class_unbind_all() 351 static int t4_sched_class_bind_unbind_op(struct port_info *pi, void *arg, in t4_sched_class_bind_unbind_op() [all …]
|
H A D | cxgb4_ptp.h | 53 struct port_info; 69 int cxgb4_ptprx_timestamping(struct port_info *pi, u8 port, u16 mode); 70 int cxgb4_ptp_redirect_rx_packet(struct adapter *adap, struct port_info *pi); 72 void cxgb4_ptp_read_hwstamp(struct adapter *adap, struct port_info *pi);
|
H A D | cxgb4_tc_matchall.c | 56 struct port_info *pi = netdev2pinfo(dev); in cxgb4_matchall_egress_validate() 126 struct port_info *pi = netdev2pinfo(dev); in cxgb4_matchall_tc_bind_queues() 153 struct port_info *pi = netdev2pinfo(dev); in cxgb4_matchall_tc_unbind_queues() 180 struct port_info *pi = netdev2pinfo(dev); in cxgb4_matchall_alloc_tc() 227 struct port_info *pi = netdev2pinfo(dev); in cxgb4_matchall_free_tc() 244 struct port_info *pi = netdev2pinfo(dev); in cxgb4_matchall_mirror_alloc() 271 struct port_info *pi = netdev2pinfo(dev); in cxgb4_matchall_mirror_free() 285 struct port_info *pi = netdev2pinfo(dev); in cxgb4_matchall_del_filter() 305 struct port_info *pi = netdev2pinfo(dev); in cxgb4_matchall_add_filter() 351 struct port_info *pi = netdev2pinfo(dev); in cxgb4_matchall_alloc_filter() [all …]
|
H A D | cxgb4_dcb.c | 35 struct port_info *pi = netdev2pinfo(dev); in cxgb4_dcb_state_init() 50 struct port_info *pi = netdev2pinfo(dev); in cxgb4_dcb_version_init() 61 struct port_info *pi = netdev2pinfo(dev); in cxgb4_dcb_cleanup_apps() 128 struct port_info *pi = netdev2pinfo(dev); in cxgb4_dcb_state_fsm() 279 struct port_info *pi = netdev_priv(dev); in cxgb4_dcb_handle_fw_update() 413 struct port_info *pi = netdev2pinfo(dev); in cxgb4_getstate() 422 struct port_info *pi = netdev2pinfo(dev); in cxgb4_setstate() 443 struct port_info *pi = netdev2pinfo(dev); in cxgb4_getpgtccfg() 506 struct port_info *pi = netdev2pinfo(dev); in cxgb4_setpgtccfg_tx() 568 struct port_info *pi = netdev2pinfo(dev); in cxgb4_getpgbwgcfg() [all …]
|
H A D | cxgb4_ethtool.c | 280 const struct port_info *p, in collect_sge_port_stats() 355 struct port_info *pi = netdev_priv(dev); in get_stats() 393 struct port_info *p = netdev_priv(dev); in restart_autoneg() 665 struct port_info *pi = netdev_priv(dev); in get_link_ksettings() 720 struct port_info *pi = netdev_priv(dev); in set_link_ksettings() 818 const struct port_info *pi = netdev_priv(dev); in get_fecparam() 839 struct port_info *pi = netdev_priv(dev); in set_fecparam() 863 struct port_info *p = netdev_priv(dev); in get_pauseparam() 873 struct port_info *p = netdev_priv(dev); in set_pauseparam() 897 const struct port_info *pi = netdev_priv(dev); in get_sge_param() [all …]
|
H A D | sched.h | 90 struct port_info *pi = netdev2pinfo(dev); in can_sched() 97 struct port_info *pi = netdev2pinfo(dev); in valid_class_id()
|
H A D | cxgb4_fcoe.c | 70 struct port_info *pi = netdev_priv(netdev); in cxgb_fcoe_enable() 101 struct port_info *pi = netdev_priv(netdev); in cxgb_fcoe_disable()
|
/linux/drivers/scsi/cxgbi/cxgb3i/ |
H A D | cxgb3i.h | 29 return ((struct port_info *)(netdev_priv(ndev)))->iscsi_ipv4addr; in cxgb3i_get_private_ipv4addr() 35 struct port_info *pi = (struct port_info *)netdev_priv(ndev); in cxgb3i_set_private_ipv4addr()
|
/linux/drivers/net/ethernet/chelsio/cxgb3/ |
H A D | cxgb3_main.c | 161 const struct port_info *p = netdev_priv(dev); in link_report() 182 struct port_info *pi) in enable_tx_fifo_drain() 192 struct port_info *pi) in disable_tx_fifo_drain() 201 struct port_info *pi = netdev_priv(dev); in t3_os_link_fault() 254 struct port_info *pi = netdev_priv(dev); in t3_os_link_changed() 321 const struct port_info *pi = netdev_priv(dev); in t3_os_phymod_changed() 332 struct port_info *pi = netdev_priv(dev); in cxgb_set_rxmode() 345 struct port_info *pi = netdev_priv(dev); in link_start() 389 const struct port_info *pi = netdev_priv(d); in name_msix_vecs() 662 struct port_info *pi = netdev_priv(dev); in setup_sge_qsets() [all …]
|
H A D | adapter.h | 50 struct port_info; 62 int (*send)(struct port_info *pi, struct sk_buff **skb); 63 int (*recv)(struct port_info *pi, struct sk_buff *skb); 66 struct port_info { struct 284 static inline struct port_info *adap2pinfo(struct adapter *adap, int idx) in adap2pinfo() 292 struct port_info *port0 = adap2pinfo(adap, 0); in phy2portid()
|
/linux/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_ethtool.c | 132 if (!idev->port_info) { in ionic_get_link_ksettings() 142 switch (le16_to_cpu(idev->port_info->status.xcvr.pid)) { in ionic_get_link_ksettings() 228 idev->port_info->status.xcvr.pid, in ionic_get_link_ksettings() 229 idev->port_info->status.xcvr.pid); in ionic_get_link_ksettings() 237 if (idev->port_info->config.fec_type == IONIC_PORT_FEC_TYPE_FC) in ionic_get_link_ksettings() 239 else if (idev->port_info->config.fec_type == IONIC_PORT_FEC_TYPE_RS) in ionic_get_link_ksettings() 245 if (idev->port_info->status.xcvr.phy == IONIC_PHY_TYPE_COPPER || in ionic_get_link_ksettings() 248 else if (idev->port_info->status.xcvr.phy == IONIC_PHY_TYPE_FIBER) in ionic_get_link_ksettings() 263 if (idev->port_info->config.an_enable) { in ionic_get_link_ksettings() 285 if (ks->base.autoneg != idev->port_info->config.an_enable) { in ionic_set_link_ksettings() [all …]
|
H A D | ionic_main.c | 720 if (!idev->port_info) { in ionic_port_init() 721 idev->port_info_sz = ALIGN(sizeof(*idev->port_info), PAGE_SIZE); in ionic_port_init() 722 idev->port_info = dma_alloc_coherent(ionic->dev, in ionic_port_init() 726 if (!idev->port_info) in ionic_port_init() 745 idev->port_info, idev->port_info_pa); in ionic_port_init() 746 idev->port_info = NULL; in ionic_port_init() 758 if (!idev->port_info) in ionic_port_reset() 769 idev->port_info, idev->port_info_pa); in ionic_port_reset() 771 idev->port_info = NULL; in ionic_port_reset()
|
/linux/drivers/ata/ |
H A D | pata_rdc.c | 313 struct ata_port_info port_info[2]; in rdc_init_one() local 314 const struct ata_port_info *ppi[] = { &port_info[0], &port_info[1] }; in rdc_init_one() 321 port_info[0] = rdc_port_info; in rdc_init_one() 322 port_info[1] = rdc_port_info; in rdc_init_one()
|
H A D | pata_netcell.c | 70 const struct ata_port_info *port_info[] = { &info, NULL }; in netcell_init_one() local 83 return ata_pci_bmdma_init_one(pdev, port_info, &netcell_sht, NULL, 0); in netcell_init_one()
|
/linux/drivers/net/ethernet/chelsio/cxgb4vf/ |
H A D | cxgb4vf_main.c | 155 const struct port_info *pi = netdev_priv(dev); in t4vf_os_link_changed() 219 const struct port_info *pi = netdev_priv(dev); in t4vf_os_portmod_changed() 241 static int cxgb4vf_set_addr_hash(struct port_info *pi) in cxgb4vf_set_addr_hash() 272 static int cxgb4vf_change_mac(struct port_info *pi, unsigned int viid, in cxgb4vf_change_mac() 322 struct port_info *pi = netdev_priv(dev); in link_start() 366 const struct port_info *pi = netdev_priv(dev); in name_msix_vecs() 631 struct port_info *pi = netdev_priv(dev); in setup_sge_queues() 662 struct port_info *pi = netdev_priv(dev); in setup_sge_queues() 704 struct port_info *pi = adap2pinfo(adapter, pidx); in setup_rss() 836 struct port_info *pi = netdev_priv(dev); in cxgb4vf_open() [all …]
|
/linux/include/net/ |
H A D | dst_metadata.h | 37 struct hw_port_info port_info; member 115 return memcmp(&a->u.port_info, &b->u.port_info, in skb_metadata_dst_cmp() 116 sizeof(a->u.port_info)); in skb_metadata_dst_cmp()
|