Home
last modified time | relevance | path

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

12

/linux/drivers/input/joystick/
H A Dturbografx.c144 int i, j, port_idx; in tgfx_attach() local
148 for (port_idx = 0; port_idx < TGFX_MAX_PORTS; port_idx++) { in tgfx_attach()
149 if (tgfx_cfg[port_idx].nargs == 0 || in tgfx_attach()
150 tgfx_cfg[port_idx].args[0] < 0) in tgfx_attach()
152 if (tgfx_cfg[port_idx].args[0] == pp->number) in tgfx_attach()
156 if (port_idx == TGFX_MAX_PORTS) { in tgfx_attach()
160 n_buttons = tgfx_cfg[port_idx].args + 1; in tgfx_attach()
161 n_devs = tgfx_cfg[port_idx].nargs - 1; in tgfx_attach()
167 port_idx); in tgfx_attach()
233 tgfx_base[port_idx] = tgfx; in tgfx_attach()
H A Ddb9.c547 int i, j, port_idx; in db9_attach() local
551 for (port_idx = 0; port_idx < DB9_MAX_PORTS; port_idx++) { in db9_attach()
552 if (db9_cfg[port_idx].nargs == 0 || in db9_attach()
553 db9_cfg[port_idx].args[DB9_ARG_PARPORT] < 0) in db9_attach()
556 if (db9_cfg[port_idx].args[DB9_ARG_PARPORT] == pp->number) in db9_attach()
560 if (port_idx == DB9_MAX_PORTS) { in db9_attach()
565 mode = db9_cfg[port_idx].args[DB9_ARG_MODE]; in db9_attach()
582 pd = parport_register_dev_model(pp, "db9", &db9_parport_cb, port_idx); in db9_attach()
635 db9_base[port_idx] = db9; in db9_attach()
H A Dgamecon.c921 int i, port_idx; in gc_attach() local
926 for (port_idx = 0; port_idx < GC_MAX_PORTS; port_idx++) { in gc_attach()
927 if (gc_cfg[port_idx].nargs == 0 || gc_cfg[port_idx].args[0] < 0) in gc_attach()
930 if (gc_cfg[port_idx].args[0] == pp->number) in gc_attach()
934 if (port_idx == GC_MAX_PORTS) { in gc_attach()
938 pads = gc_cfg[port_idx].args + 1; in gc_attach()
939 n_pads = gc_cfg[port_idx].nargs - 1; in gc_attach()
945 port_idx); in gc_attach()
977 gc_base[port_idx] = gc; in gc_attach()
/linux/net/smc/
H A Dsmc_ib.c385 u8 port_idx; in smc_ib_port_event_work() local
387 for_each_set_bit(port_idx, &smcibdev->port_event_mask, SMC_MAX_PORTS) { in smc_ib_port_event_work()
388 smc_ib_remember_port_attr(smcibdev, port_idx + 1); in smc_ib_port_event_work()
389 clear_bit(port_idx, &smcibdev->port_event_mask); in smc_ib_port_event_work()
390 if (!smc_ib_port_active(smcibdev, port_idx + 1)) { in smc_ib_port_event_work()
391 set_bit(port_idx, smcibdev->ports_going_away); in smc_ib_port_event_work()
392 smcr_port_err(smcibdev, port_idx + 1); in smc_ib_port_event_work()
394 clear_bit(port_idx, smcibdev->ports_going_away); in smc_ib_port_event_work()
395 smcr_port_add(smcibdev, port_idx + 1); in smc_ib_port_event_work()
396 smc_ib_gid_check(smcibdev, port_idx + 1); in smc_ib_port_event_work()
[all …]
/linux/sound/soc/qcom/qdsp6/
H A Dq6adm.c90 static struct q6copp *q6adm_find_copp(struct q6adm *adm, int port_idx, in q6adm_find_copp() argument
99 if ((port_idx == c->afe_port) && (copp_idx == c->copp_idx)) { in q6adm_find_copp()
192 int port_idx, copp_idx; in q6adm_callback() local
201 port_idx = ((hdr->token) >> 16) & 0xFF; in q6adm_callback()
202 if (port_idx < 0 || port_idx >= AFE_MAX_PORTS) { in q6adm_callback()
204 port_idx, hdr->token); in q6adm_callback()
223 if ((port_idx == copp->afe_port) && (copp_idx == copp->copp_idx)) { in q6adm_callback()
249 copp = q6adm_find_copp(adm, port_idx, copp_idx); in q6adm_callback()
276 static struct q6copp *q6adm_alloc_copp(struct q6adm *adm, int port_idx) in q6adm_alloc_copp() argument
281 idx = find_first_zero_bit(&adm->copp_bitmap[port_idx], in q6adm_alloc_copp()
[all …]
/linux/tools/testing/selftests/bpf/
H 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/drivers/tty/serial/8250/
H A D8250_pci1xxxx.c674 struct uart_8250_port *port, int port_idx, struct pci1xxxx_8250 *priv) in pci1xxxx_setup() argument
706 ret = serial8250_pci_setup_port(pdev, port, 0, PORT_OFFSET * port_idx, 0, priv->membase); in pci1xxxx_setup()
772 int port_idx; in pci1xxxx_serial_probe() local
817 port_idx = pci1xxxx_logical_to_physical_port_translate(subsys_dev, i); in pci1xxxx_serial_probe()
820 uart.port.irq = pci_irq_vector(pdev, port_idx); in pci1xxxx_serial_probe()
824 rc = pci1xxxx_setup(pdev, &uart, port_idx, priv); in pci1xxxx_serial_probe()
H A D8250_pci.c2062 unsigned int port_idx, in pci_moxa_set_interface() argument
2066 resource_size_t UIR_addr = iobar_addr + MOXA_UIR_OFFSET + port_idx / 2; in pci_moxa_set_interface()
2071 if (port_idx % 2) { in pci_moxa_set_interface()
/linux/drivers/gpu/drm/i915/gvt/
H A Dedid.h142 int port_idx,
/linux/include/rdma/
H 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/drivers/scsi/
H A Dg_NCR5380.c232 int port_idx = -1; in generic_NCR5380_init_one() local
291 port_idx = i; in generic_NCR5380_init_one()
419 magic_configure(port_idx, board_irq, magic); in generic_NCR5380_init_one()
/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Dtunnel_conf.c32 __be16 port_idx; member
1465 payload.port_idx = cpu_to_be16(mac_entry->index); in nfp_flower_xmit_pre_tun_flow()
1469 flow->pre_tun_rule.port_idx = payload.port_idx; in nfp_flower_xmit_pre_tun_flow()
1495 payload.port_idx = flow->pre_tun_rule.port_idx; in nfp_flower_xmit_pre_tun_del_flow()
H A Dmain.h451 __be16 port_idx; member
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_main.c775 u32 port_idx; in prestera_create_ports() local
778 for (port_idx = 0; port_idx < sw->port_count; port_idx++) { in prestera_create_ports()
779 err = prestera_port_create(sw, port_idx); in prestera_create_ports()
/linux/drivers/net/ethernet/microsoft/mana/
H A Dmana_en.c1266 MANA_INDIRECT_TABLE_DEF_SIZE, apc->port_idx); in mana_query_vport_cfg()
2866 apc->port_idx); in mana_rss_table_alloc()
3091 int port_idx = apc->port_idx; in mana_init_port()
3102 err = mana_query_vport_cfg(apc, port_idx, &max_txq, &max_rxq, in mana_init_port()
3106 port_idx); in mana_init_port()
3118 sprintf(vport, "vport%d", port_idx); in mana_init_port()
3135 netdev_err(ndev, "Failed to create vPort %u : %d\n", apc->port_idx, err); in mana_alloc_queues()
3317 static int mana_probe_port(struct mana_context *ac, int port_idx, in mana_probe_port()
3341 apc->port_idx in mana_probe_port()
3084 int port_idx = apc->port_idx; mana_init_port() local
3310 mana_probe_port(struct mana_context * ac,int port_idx,struct net_device ** ndev_storage) mana_probe_port() argument
[all...]
/linux/drivers/scsi/mpi3mr/
H A Dmpi3mr_transport.c1709 int i, j, found, host_port_count = 0, port_idx; in mpi3mr_refresh_sas_ports() local
1765 port_idx = host_port_count; in mpi3mr_refresh_sas_ports()
1766 h_port[port_idx].sas_address = le64_to_cpu(sasinf->sas_address); in mpi3mr_refresh_sas_ports()
1767 h_port[port_idx].handle = attached_handle; in mpi3mr_refresh_sas_ports()
1768 h_port[port_idx].phy_mask = (1 << i); in mpi3mr_refresh_sas_ports()
1769 h_port[port_idx].iounit_port_id = sas_io_unit_pg0->phy_data[i].io_unit_port; in mpi3mr_refresh_sas_ports()
1770 h_port[port_idx].lowest_phy = sasinf->phy_num; in mpi3mr_refresh_sas_ports()
1771 h_port[port_idx].used = 0; in mpi3mr_refresh_sas_ports()
/linux/drivers/net/wwan/
H A Dwwan_hwsim.c50 unsigned int port_idx; member
327 port->id = dev->port_idx++; in wwan_hwsim_port_new()
/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.c2998 u16 port_idx) in dpaa2_switch_remove_port() argument
3000 struct ethsw_port_priv *port_priv = ethsw->ports[port_idx]; in dpaa2_switch_remove_port()
3004 ethsw->ports[port_idx] = NULL; in dpaa2_switch_remove_port()
3315 u16 port_idx) in dpaa2_switch_probe_port() argument
3334 port_priv->idx = port_idx; in dpaa2_switch_probe_port()
3353 ethsw->ports[port_idx] = port_priv; in dpaa2_switch_probe_port()
3363 err = dpaa2_switch_port_init(port_priv, port_idx); in dpaa2_switch_probe_port()
3384 ethsw->ports[port_idx] = NULL; in dpaa2_switch_probe_port()
/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-nuss.c873 int port_idx, ret; in am65_cpsw_nuss_common_open() local
895 for (port_idx = 0; port_idx < common->port_num; port_idx++) { in am65_cpsw_nuss_common_open()
896 struct am65_cpsw_port *port = &common->ports[port_idx]; in am65_cpsw_nuss_common_open()
2759 am65_cpsw_nuss_init_port_ndev(struct am65_cpsw_common *common, u32 port_idx) in am65_cpsw_nuss_init_port_ndev() argument
2766 port = &common->ports[port_idx]; in am65_cpsw_nuss_init_port_ndev()
/linux/drivers/rapidio/devices/
H A Drio_mport_cdev.c1344 u32 port_idx = md->mport->index; in maint_port_idx_get() local
1346 rmcd_debug(MPORT, "port_index=%d", port_idx); in maint_port_idx_get()
1348 if (copy_to_user(arg, &port_idx, sizeof(port_idx))) in maint_port_idx_get()
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dt3_cpl.h552 __u8 port_idx:1; member
556 __u8 port_idx:1; member
/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_main.c1873 unsigned int port_idx = be16_to_cpu(notif->id); in fun_update_link_state() local
1877 if (port_idx >= ed->num_ports) in fun_update_link_state()
1880 netdev = ed->netdevs[port_idx]; in fun_update_link_state()
/linux/sound/soc/codecs/
H A Dpm4125.c843 static int pm4125_connect_port(struct pm4125_sdw_priv *sdw_priv, u8 port_idx, u8 ch_id, bool enable) in pm4125_connect_port() argument
845 struct sdw_port_config *port_config = &sdw_priv->port_config[port_idx - 1]; in pm4125_connect_port()
H A Dwcd937x.c1183 static int wcd937x_connect_port(struct wcd937x_sdw_priv *wcd, u8 port_idx, u8 ch_id, bool enable) in wcd937x_connect_port() argument
1185 struct sdw_port_config *port_config = &wcd->port_config[port_idx - 1]; in wcd937x_connect_port()
/linux/sound/usb/
H A Dmixer_scarlett2.c3113 int port_idx = entry->start; in scarlett2_usb_set_mux() local
3115 SCARLETT2_PORT_OUT, port_type) + port_idx; in scarlett2_usb_set_mux()
3116 int dst_id = scarlett2_ports[port_type].id + port_idx; in scarlett2_usb_set_mux()

12