Home
last modified time | relevance | path

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

/drivers/input/joystick/
Dturbografx.c149 int i, j, port_idx; in tgfx_attach() local
153 for (port_idx = 0; port_idx < TGFX_MAX_PORTS; port_idx++) { in tgfx_attach()
154 if (tgfx_cfg[port_idx].nargs == 0 || in tgfx_attach()
155 tgfx_cfg[port_idx].args[0] < 0) in tgfx_attach()
157 if (tgfx_cfg[port_idx].args[0] == pp->number) in tgfx_attach()
161 if (port_idx == TGFX_MAX_PORTS) { in tgfx_attach()
165 n_buttons = tgfx_cfg[port_idx].args + 1; in tgfx_attach()
166 n_devs = tgfx_cfg[port_idx].nargs - 1; in tgfx_attach()
172 port_idx); in tgfx_attach()
238 tgfx_base[port_idx] = tgfx; in tgfx_attach()
Ddb9.c552 int i, j, port_idx; in db9_attach() local
556 for (port_idx = 0; port_idx < DB9_MAX_PORTS; port_idx++) { in db9_attach()
557 if (db9_cfg[port_idx].nargs == 0 || in db9_attach()
558 db9_cfg[port_idx].args[DB9_ARG_PARPORT] < 0) in db9_attach()
561 if (db9_cfg[port_idx].args[DB9_ARG_PARPORT] == pp->number) in db9_attach()
565 if (port_idx == DB9_MAX_PORTS) { in db9_attach()
570 mode = db9_cfg[port_idx].args[DB9_ARG_MODE]; in db9_attach()
587 pd = parport_register_dev_model(pp, "db9", &db9_parport_cb, port_idx); in db9_attach()
640 db9_base[port_idx] = db9; in db9_attach()
Dgamecon.c926 int i, port_idx; in gc_attach() local
931 for (port_idx = 0; port_idx < GC_MAX_PORTS; port_idx++) { in gc_attach()
932 if (gc_cfg[port_idx].nargs == 0 || gc_cfg[port_idx].args[0] < 0) in gc_attach()
935 if (gc_cfg[port_idx].args[0] == pp->number) in gc_attach()
939 if (port_idx == GC_MAX_PORTS) { in gc_attach()
943 pads = gc_cfg[port_idx].args + 1; in gc_attach()
944 n_pads = gc_cfg[port_idx].nargs - 1; in gc_attach()
950 port_idx); in gc_attach()
982 gc_base[port_idx] = gc; in gc_attach()
/drivers/net/ethernet/hisilicon/hns/
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);
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 …]
/drivers/gpu/drm/i915/gvt/
Dedid.c478 int port_idx, in intel_gvt_i2c_handle_aux_ch_write() argument
526 i2c_edid->port = port_idx; in intel_gvt_i2c_handle_aux_ch_write()
529 port_idx) && in intel_gvt_i2c_handle_aux_ch_write()
530 intel_vgpu_port_is_dp(vgpu, port_idx)) in intel_gvt_i2c_handle_aux_ch_write()
Dedid.h150 int port_idx,
/drivers/net/ethernet/marvell/prestera/
Dprestera_main.c408 u32 port_idx; in prestera_create_ports() local
411 for (port_idx = 0; port_idx < sw->port_count; port_idx++) { in prestera_create_ports()
412 err = prestera_port_create(sw, port_idx); in prestera_create_ports()
/drivers/net/ethernet/netronome/nfp/flower/
Dtunnel_conf.c32 __be16 port_idx; member
1308 payload.port_idx = cpu_to_be16(mac_entry->index); in nfp_flower_xmit_pre_tun_flow()
1312 flow->pre_tun_rule.port_idx = payload.port_idx; in nfp_flower_xmit_pre_tun_flow()
1338 payload.port_idx = flow->pre_tun_rule.port_idx; in nfp_flower_xmit_pre_tun_del_flow()
Dmain.h333 __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.c2421 void qib_notify_create_mad_agent(struct rvt_dev_info *rdi, int port_idx) in qib_notify_create_mad_agent() argument
2428 dd->pport[port_idx].cong_stats.counter = 0; in qib_notify_create_mad_agent()
2429 timer_setup(&dd->pport[port_idx].cong_stats.timer, in qib_notify_create_mad_agent()
2431 dd->pport[port_idx].cong_stats.timer.expires = 0; in qib_notify_create_mad_agent()
2432 add_timer(&dd->pport[port_idx].cong_stats.timer); in qib_notify_create_mad_agent()
2435 void qib_notify_free_mad_agent(struct rvt_dev_info *rdi, int port_idx) in qib_notify_free_mad_agent() argument
2441 if (dd->pport[port_idx].cong_stats.timer.function) in qib_notify_free_mad_agent()
2442 del_timer_sync(&dd->pport[port_idx].cong_stats.timer); in qib_notify_free_mad_agent()
2444 if (dd->pport[port_idx].ibport_data.smi_ah) in qib_notify_free_mad_agent()
2445 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/ti/
Dam65-cpsw-nuss.c411 int port_idx, i, ret; in am65_cpsw_nuss_common_open() local
435 for (port_idx = 0; port_idx < common->port_num; port_idx++) { in am65_cpsw_nuss_common_open()
436 struct am65_cpsw_port *port = &common->ports[port_idx]; in am65_cpsw_nuss_common_open()
/drivers/staging/fsl-dpaa2/ethsw/
Dethsw.c1688 u16 port_idx) in dpaa2_switch_probe_port() argument
1705 port_priv->idx = port_idx; in dpaa2_switch_probe_port()
1719 err = dpaa2_switch_port_init(port_priv, port_idx); in dpaa2_switch_probe_port()
1733 ethsw->ports[port_idx] = port_priv; in dpaa2_switch_probe_port()
/drivers/rapidio/devices/
Drio_mport_cdev.c1362 u32 port_idx = md->mport->index; in maint_port_idx_get() local
1364 rmcd_debug(MPORT, "port_index=%d", port_idx); in maint_port_idx_get()
1366 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.h1547 static inline void t4_set_hw_addr(struct adapter *adapter, int port_idx, in t4_set_hw_addr() argument
1550 ether_addr_copy(adapter->port[port_idx]->dev_addr, hw_addr); in t4_set_hw_addr()
1551 ether_addr_copy(adapter->port[port_idx]->perm_addr, hw_addr); in t4_set_hw_addr()