Home
last modified time | relevance | path

Searched refs:port_idx (Results 1 – 23 of 23) sorted by relevance

/drivers/input/joystick/
Dturbografx.c146 int i, j, port_idx; in tgfx_attach() local
150 for (port_idx = 0; port_idx < TGFX_MAX_PORTS; port_idx++) { in tgfx_attach()
151 if (tgfx_cfg[port_idx].nargs == 0 || in tgfx_attach()
152 tgfx_cfg[port_idx].args[0] < 0) in tgfx_attach()
154 if (tgfx_cfg[port_idx].args[0] == pp->number) in tgfx_attach()
158 if (port_idx == TGFX_MAX_PORTS) { in tgfx_attach()
162 n_buttons = tgfx_cfg[port_idx].args + 1; in tgfx_attach()
163 n_devs = tgfx_cfg[port_idx].nargs - 1; in tgfx_attach()
169 port_idx); in tgfx_attach()
235 tgfx_base[port_idx] = tgfx; in tgfx_attach()
Ddb9.c549 int i, j, port_idx; in db9_attach() local
553 for (port_idx = 0; port_idx < DB9_MAX_PORTS; port_idx++) { in db9_attach()
554 if (db9_cfg[port_idx].nargs == 0 || in db9_attach()
555 db9_cfg[port_idx].args[DB9_ARG_PARPORT] < 0) in db9_attach()
558 if (db9_cfg[port_idx].args[DB9_ARG_PARPORT] == pp->number) in db9_attach()
562 if (port_idx == DB9_MAX_PORTS) { in db9_attach()
567 mode = db9_cfg[port_idx].args[DB9_ARG_MODE]; in db9_attach()
584 pd = parport_register_dev_model(pp, "db9", &db9_parport_cb, port_idx); in db9_attach()
637 db9_base[port_idx] = db9; in db9_attach()
Dgamecon.c923 int i, port_idx; in gc_attach() local
928 for (port_idx = 0; port_idx < GC_MAX_PORTS; port_idx++) { in gc_attach()
929 if (gc_cfg[port_idx].nargs == 0 || gc_cfg[port_idx].args[0] < 0) in gc_attach()
932 if (gc_cfg[port_idx].args[0] == pp->number) in gc_attach()
936 if (port_idx == GC_MAX_PORTS) { in gc_attach()
940 pads = gc_cfg[port_idx].args + 1; in gc_attach()
941 n_pads = gc_cfg[port_idx].nargs - 1; in gc_attach()
947 port_idx); in gc_attach()
979 gc_base[port_idx] = gc; in gc_attach()
/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_rcb.c298 u32 port_idx, u32 desc_cnt) in hns_rcb_set_port_desc_cnt() argument
300 dsaf_write_dev(rcb_common, RCB_CFG_BD_NUM_REG + port_idx * 4, in hns_rcb_set_port_desc_cnt()
305 struct rcb_common_cb *rcb_common, u32 port_idx, u32 timeout) in hns_rcb_set_port_timeout() argument
313 RCB_PORT_INT_GAPTIME_REG + port_idx * 4, in hns_rcb_set_port_timeout()
317 RCB_PORT_INT_GAPTIME_REG + port_idx * 4, in hns_rcb_set_port_timeout()
321 RCB_PORT_CFG_OVERTIME_REG + port_idx * 4, in hns_rcb_set_port_timeout()
325 RCB_PORT_CFG_OVERTIME_REG + port_idx * 4, in hns_rcb_set_port_timeout()
560 struct rcb_common_cb *rcb_common, u32 port_idx) in hns_rcb_get_rx_coalesced_frames() argument
562 return dsaf_read_dev(rcb_common, RCB_CFG_PKTLINE_REG + port_idx * 4); in hns_rcb_get_rx_coalesced_frames()
573 struct rcb_common_cb *rcb_common, u32 port_idx) in hns_rcb_get_tx_coalesced_frames() argument
[all …]
Dhns_dsaf_rcb.h137 struct rcb_common_cb *rcb_common, u32 port_idx);
139 struct rcb_common_cb *rcb_common, u32 port_idx);
141 struct rcb_common_cb *rcb_common, u32 port_idx);
143 struct rcb_common_cb *rcb_common, u32 port_idx, u32 timeout);
145 struct rcb_common_cb *rcb_common, u32 port_idx, u32 coalesced_frames);
147 struct rcb_common_cb *rcb_common, u32 port_idx, u32 coalesced_frames);
/drivers/gpu/drm/i915/gvt/
Dedid.c480 int port_idx, in intel_gvt_i2c_handle_aux_ch_write() argument
528 i2c_edid->port = port_idx; in intel_gvt_i2c_handle_aux_ch_write()
531 port_idx) && in intel_gvt_i2c_handle_aux_ch_write()
532 intel_vgpu_port_is_dp(vgpu, port_idx)) in intel_gvt_i2c_handle_aux_ch_write()
Dedid.h150 int port_idx,
/drivers/net/ethernet/netronome/nfp/flower/
Dtunnel_conf.c32 __be16 port_idx; member
1361 payload.port_idx = cpu_to_be16(mac_entry->index); in nfp_flower_xmit_pre_tun_flow()
1365 flow->pre_tun_rule.port_idx = payload.port_idx; in nfp_flower_xmit_pre_tun_flow()
1391 payload.port_idx = flow->pre_tun_rule.port_idx; in nfp_flower_xmit_pre_tun_del_flow()
Dmain.h435 __be16 port_idx; member
/drivers/infiniband/hw/qib/
Dqib_verbs.h249 void qib_notify_create_mad_agent(struct rvt_dev_info *rdi, int port_idx);
250 void qib_notify_free_mad_agent(struct rvt_dev_info *rdi, int port_idx);
Dqib_mad.c2423 void qib_notify_create_mad_agent(struct rvt_dev_info *rdi, int port_idx) in qib_notify_create_mad_agent() argument
2430 dd->pport[port_idx].cong_stats.counter = 0; in qib_notify_create_mad_agent()
2431 timer_setup(&dd->pport[port_idx].cong_stats.timer, in qib_notify_create_mad_agent()
2433 dd->pport[port_idx].cong_stats.timer.expires = 0; in qib_notify_create_mad_agent()
2434 add_timer(&dd->pport[port_idx].cong_stats.timer); in qib_notify_create_mad_agent()
2437 void qib_notify_free_mad_agent(struct rvt_dev_info *rdi, int port_idx) in qib_notify_free_mad_agent() argument
2443 if (dd->pport[port_idx].cong_stats.timer.function) in qib_notify_free_mad_agent()
2444 del_timer_sync(&dd->pport[port_idx].cong_stats.timer); in qib_notify_free_mad_agent()
2446 if (dd->pport[port_idx].ibport_data.smi_ah) in qib_notify_free_mad_agent()
2447 rdma_destroy_ah(&dd->pport[port_idx].ibport_data.smi_ah->ibah, in qib_notify_free_mad_agent()
/drivers/scsi/
Dg_NCR5380.c231 int port_idx = -1; in generic_NCR5380_init_one() local
290 port_idx = i; in generic_NCR5380_init_one()
418 magic_configure(port_idx, board_irq, magic); in generic_NCR5380_init_one()
/drivers/net/ethernet/marvell/prestera/
Dprestera_main.c783 u32 port_idx; in prestera_create_ports() local
786 for (port_idx = 0; port_idx < sw->port_count; port_idx++) { in prestera_create_ports()
787 err = prestera_port_create(sw, port_idx); in prestera_create_ports()
/drivers/net/wwan/
Dwwan_hwsim.c46 unsigned int port_idx; member
203 port->id = dev->port_idx++; in wwan_hwsim_port_new()
/drivers/net/ethernet/microsoft/mana/
Dmana_en.c1867 int port_idx = apc->port_idx; in mana_init_port() local
1875 err = mana_query_vport_cfg(apc, port_idx, &max_txq, &max_rxq, in mana_init_port()
1879 port_idx); in mana_init_port()
2081 static int mana_probe_port(struct mana_context *ac, int port_idx, in mana_probe_port() argument
2103 apc->port_idx = port_idx; in mana_probe_port()
2143 netdev_err(ndev, "Failed to probe vPort %d: %d\n", port_idx, err); in mana_probe_port()
Dmana.h383 u16 port_idx; member
/drivers/scsi/mpi3mr/
Dmpi3mr_transport.c1675 int i, j, found, host_port_count = 0, port_idx; in mpi3mr_refresh_sas_ports() local
1727 port_idx = host_port_count; in mpi3mr_refresh_sas_ports()
1728 h_port[port_idx].sas_address = le64_to_cpu(sasinf->sas_address); in mpi3mr_refresh_sas_ports()
1729 h_port[port_idx].handle = attached_handle; in mpi3mr_refresh_sas_ports()
1730 h_port[port_idx].phy_mask = (1 << i); in mpi3mr_refresh_sas_ports()
1731 h_port[port_idx].iounit_port_id = sas_io_unit_pg0->phy_data[i].io_unit_port; in mpi3mr_refresh_sas_ports()
1732 h_port[port_idx].lowest_phy = sasinf->phy_num; in mpi3mr_refresh_sas_ports()
1733 h_port[port_idx].used = 0; in mpi3mr_refresh_sas_ports()
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-switch.c2927 u16 port_idx) in dpaa2_switch_remove_port() argument
2929 struct ethsw_port_priv *port_priv = ethsw->ports[port_idx]; in dpaa2_switch_remove_port()
2935 ethsw->ports[port_idx] = NULL; in dpaa2_switch_remove_port()
3235 u16 port_idx) in dpaa2_switch_probe_port() argument
3252 port_priv->idx = port_idx; in dpaa2_switch_probe_port()
3271 ethsw->ports[port_idx] = port_priv; in dpaa2_switch_probe_port()
3280 err = dpaa2_switch_port_init(port_priv, port_idx); in dpaa2_switch_probe_port()
3301 ethsw->ports[port_idx] = NULL; in dpaa2_switch_probe_port()
/drivers/net/ethernet/ti/
Dam65-cpsw-nuss.c369 int port_idx, i, ret; in am65_cpsw_nuss_common_open() local
393 for (port_idx = 0; port_idx < common->port_num; port_idx++) { in am65_cpsw_nuss_common_open()
394 struct am65_cpsw_port *port = &common->ports[port_idx]; in am65_cpsw_nuss_common_open()
1961 am65_cpsw_nuss_init_port_ndev(struct am65_cpsw_common *common, u32 port_idx) in am65_cpsw_nuss_init_port_ndev() argument
1969 port = &common->ports[port_idx]; in am65_cpsw_nuss_init_port_ndev()
/drivers/rapidio/devices/
Drio_mport_cdev.c1363 u32 port_idx = md->mport->index; in maint_port_idx_get() local
1365 rmcd_debug(MPORT, "port_index=%d", port_idx); in maint_port_idx_get()
1367 if (copy_to_user(arg, &port_idx, sizeof(port_idx))) in maint_port_idx_get()
/drivers/net/ethernet/chelsio/cxgb3/
Dt3_cpl.h552 __u8 port_idx:1; member
556 __u8 port_idx:1; member
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4.h1545 static inline void t4_set_hw_addr(struct adapter *adapter, int port_idx, in t4_set_hw_addr() argument
1548 eth_hw_addr_set(adapter->port[port_idx], hw_addr); in t4_set_hw_addr()
1549 ether_addr_copy(adapter->port[port_idx]->perm_addr, hw_addr); in t4_set_hw_addr()
/drivers/net/ethernet/fungible/funeth/
Dfuneth_main.c1890 unsigned int port_idx = be16_to_cpu(notif->id); in fun_update_link_state() local
1894 if (port_idx >= ed->num_ports) in fun_update_link_state()
1897 netdev = ed->netdevs[port_idx]; in fun_update_link_state()