Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/input/joystick/
A 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()
A 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()
A 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()
/linux-6.3-rc2/net/smc/
A Dsmc_ib.c379 u8 port_idx; in smc_ib_port_event_work() local
386 smcr_port_err(smcibdev, port_idx + 1); in smc_ib_port_event_work()
389 smcr_port_add(smcibdev, port_idx + 1); in smc_ib_port_event_work()
401 u8 port_idx; in smc_ib_global_event_handler() local
408 for (port_idx = 0; port_idx < SMC_MAX_PORTS; port_idx++) { in smc_ib_global_event_handler()
410 if (!test_and_set_bit(port_idx, in smc_ib_global_event_handler()
419 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler()
427 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler()
435 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler()
632 u8 port_idx; in smc_ib_qp_event_handler() local
[all …]
/linux-6.3-rc2/sound/soc/qcom/qdsp6/
A Dq6adm.c128 int port_idx, copp_idx; in q6adm_callback() local
137 port_idx = ((hdr->token) >> 16) & 0xFF; in q6adm_callback()
138 if (port_idx < 0 || port_idx >= AFE_MAX_PORTS) { in q6adm_callback()
140 port_idx, hdr->token); in q6adm_callback()
158 copp = q6adm_find_copp(adm, port_idx, copp_idx); in q6adm_callback()
185 copp = q6adm_find_copp(adm, port_idx, copp_idx); in q6adm_callback()
227 set_bit(idx, &adm->copp_bitmap[port_idx]); in q6adm_alloc_copp()
229 c->afe_port = port_idx; in q6adm_alloc_copp()
508 int port_idx = payload_map.port_id[i]; in q6adm_matrix_map() local
510 if (port_idx < 0) { in q6adm_matrix_map()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/hisilicon/hns/
A 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);
A Dhns_dsaf_rcb.c298 u32 port_idx, u32 desc_cnt) in hns_rcb_set_port_desc_cnt() 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
573 struct rcb_common_cb *rcb_common, u32 port_idx) in hns_rcb_get_tx_coalesced_frames() argument
589 struct rcb_common_cb *rcb_common, u32 port_idx) in hns_rcb_get_coalesce_usecs() argument
596 RCB_PORT_CFG_OVERTIME_REG + port_idx * 4); in hns_rcb_get_coalesce_usecs()
645 hns_rcb_get_tx_coalesced_frames(rcb_common, port_idx); in hns_rcb_set_tx_coalesced_frames()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/
A Dxdp_synproxy.c398 __u32 port_idx = 0; in main() local
408 err = bpf_map_update_elem(ports_map_fd, &port_idx, &port, BPF_ANY); in main()
412 port, port_idx); in main()
416 port_idx++; in main()
418 err = bpf_map_update_elem(ports_map_fd, &port_idx, &port_last, BPF_ANY); in main()
422 port_idx); in main()
/linux-6.3-rc2/drivers/tty/serial/8250/
A D8250_pci1xxxx.c326 struct uart_8250_port *port, int port_idx) in pci1xxxx_setup() argument
338 ret = serial8250_pci_setup_port(pdev, port, 0, PORT_OFFSET * port_idx, 0); in pci1xxxx_setup()
383 int port_idx; in pci1xxxx_serial_probe() local
424 port_idx = pci1xxxx_logical_to_physical_port_translate(subsys_dev, i); in pci1xxxx_serial_probe()
427 uart.port.irq = pci_irq_vector(pdev, port_idx); in pci1xxxx_serial_probe()
431 rc = pci1xxxx_setup(pdev, &uart, port_idx); in pci1xxxx_serial_probe()
/linux-6.3-rc2/drivers/gpu/drm/i915/gvt/
A 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()
A Dedid.h150 int port_idx,
/linux-6.3-rc2/drivers/infiniband/hw/qib/
A 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);
A 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()
/linux-6.3-rc2/include/rdma/
A Drdma_vt.h352 void (*notify_create_mad_agent)(struct rvt_dev_info *rdi, int port_idx);
355 void (*notify_free_mad_agent)(struct rvt_dev_info *rdi, int port_idx);
/linux-6.3-rc2/drivers/scsi/
A 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()
/linux-6.3-rc2/drivers/net/ethernet/sfc/
A Dmae.h37 u32 port_idx; /* for mport_type == NET_PORT */ member
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/flower/
A Dtunnel_conf.c32 __be16 port_idx; member
1402 payload.port_idx = cpu_to_be16(mac_entry->index); in nfp_flower_xmit_pre_tun_flow()
1406 flow->pre_tun_rule.port_idx = payload.port_idx; in nfp_flower_xmit_pre_tun_flow()
1432 payload.port_idx = flow->pre_tun_rule.port_idx; in nfp_flower_xmit_pre_tun_del_flow()
A Dmain.h449 __be16 port_idx; member
/linux-6.3-rc2/drivers/net/ethernet/microsoft/mana/
A Dmana_en.c1925 int port_idx = apc->port_idx; in mana_init_port() local
1933 err = mana_query_vport_cfg(apc, port_idx, &max_txq, &max_rxq, in mana_init_port()
1937 port_idx); in mana_init_port()
2111 static int mana_probe_port(struct mana_context *ac, int port_idx, in mana_probe_port() argument
2133 apc->port_idx = port_idx; in mana_probe_port()
2144 ndev->dev_port = port_idx; in mana_probe_port()
2179 netdev_err(ndev, "Failed to probe vPort %d: %d\n", port_idx, err); in mana_probe_port()
/linux-6.3-rc2/drivers/net/wwan/
A Dwwan_hwsim.c46 unsigned int port_idx; member
203 port->id = dev->port_idx++; in wwan_hwsim_port_new()
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/
A Dprestera_main.c779 u32 port_idx; in prestera_create_ports() local
782 for (port_idx = 0; port_idx < sw->port_count; port_idx++) { in prestera_create_ports()
783 err = prestera_port_create(sw, port_idx); in prestera_create_ports()
/linux-6.3-rc2/drivers/scsi/mpi3mr/
A Dmpi3mr_transport.c1678 int i, j, found, host_port_count = 0, port_idx; in mpi3mr_refresh_sas_ports() local
1730 port_idx = host_port_count; in mpi3mr_refresh_sas_ports()
1731 h_port[port_idx].sas_address = le64_to_cpu(sasinf->sas_address); in mpi3mr_refresh_sas_ports()
1732 h_port[port_idx].handle = attached_handle; in mpi3mr_refresh_sas_ports()
1733 h_port[port_idx].phy_mask = (1 << i); in mpi3mr_refresh_sas_ports()
1734 h_port[port_idx].iounit_port_id = sas_io_unit_pg0->phy_data[i].io_unit_port; in mpi3mr_refresh_sas_ports()
1735 h_port[port_idx].lowest_phy = sasinf->phy_num; in mpi3mr_refresh_sas_ports()
1736 h_port[port_idx].used = 0; in mpi3mr_refresh_sas_ports()
/linux-6.3-rc2/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-switch.c2954 u16 port_idx) in dpaa2_switch_remove_port() argument
2956 struct ethsw_port_priv *port_priv = ethsw->ports[port_idx]; in dpaa2_switch_remove_port()
2960 ethsw->ports[port_idx] = NULL; in dpaa2_switch_remove_port()
3260 u16 port_idx) in dpaa2_switch_probe_port() argument
3279 port_priv->idx = port_idx; in dpaa2_switch_probe_port()
3298 ethsw->ports[port_idx] = port_priv; in dpaa2_switch_probe_port()
3307 err = dpaa2_switch_port_init(port_priv, port_idx); in dpaa2_switch_probe_port()
3328 ethsw->ports[port_idx] = NULL; in dpaa2_switch_probe_port()
/linux-6.3-rc2/drivers/net/ethernet/ti/
A Dam65-cpsw-nuss.c370 int port_idx, i, ret; in am65_cpsw_nuss_common_open() local
394 for (port_idx = 0; port_idx < common->port_num; port_idx++) { in am65_cpsw_nuss_common_open()
395 struct am65_cpsw_port *port = &common->ports[port_idx]; in am65_cpsw_nuss_common_open()
2099 am65_cpsw_nuss_init_port_ndev(struct am65_cpsw_common *common, u32 port_idx) in am65_cpsw_nuss_init_port_ndev() argument
2107 port = &common->ports[port_idx]; in am65_cpsw_nuss_init_port_ndev()
/linux-6.3-rc2/include/net/mana/
A Dmana.h385 u16 port_idx; member

Completed in 76 milliseconds

12