Home
last modified time | relevance | path

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

/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 in smc_ib_port_event_work()
407 u8 port_idx; smc_ib_global_event_handler() local
638 u8 port_idx; smc_ib_qp_event_handler() local
[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()
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_alloc_copp()
249 copp = q6adm_find_copp(adm, port_idx, copp_idx); in q6adm_apr_send_copp_pkt()
276 static struct q6copp *q6adm_alloc_copp(struct q6adm *adm, int port_idx) in q6adm_apr_send_copp_pkt()
128 int port_idx, copp_idx; q6adm_callback() local
212 q6adm_alloc_copp(struct q6adm * adm,int port_idx) q6adm_alloc_copp() argument
508 int port_idx = payload_map.port_id[i]; q6adm_matrix_map() local
[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.c2068 unsigned int port_idx, in pci_moxa_set_interface() argument
2072 resource_size_t UIR_addr = iobar_addr + MOXA_UIR_OFFSET + port_idx / 2; in pci_moxa_set_interface()
2077 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/freescale/dpaa2/
H A Ddpaa2-switch.c2993 u16 port_idx) in dpaa2_switch_remove_port() argument
2995 struct ethsw_port_priv *port_priv = ethsw->ports[port_idx]; in dpaa2_switch_remove_port()
2999 ethsw->ports[port_idx] = NULL; in dpaa2_switch_remove_port()
3297 u16 port_idx) in dpaa2_switch_probe_port() argument
3316 port_priv->idx = port_idx; in dpaa2_switch_probe_port()
3335 ethsw->ports[port_idx] = port_priv; in dpaa2_switch_probe_port()
3345 err = dpaa2_switch_port_init(port_priv, port_idx); in dpaa2_switch_probe_port()
3366 ethsw->ports[port_idx] = NULL; in dpaa2_switch_probe_port()
/linux/drivers/rapidio/devices/
H A Drio_mport_cdev.c1345 u32 port_idx = md->mport->index; in maint_port_idx_get() local
1347 rmcd_debug(MPORT, "port_index=%d", port_idx); in maint_port_idx_get()
1349 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/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.c3115 int port_idx = entry->start; in scarlett2_usb_set_mux() local
3117 SCARLETT2_PORT_OUT, port_type) + port_idx; in scarlett2_usb_set_mux()
3118 int dst_id = scarlett2_ports[port_type].id + port_idx; in scarlett2_usb_set_mux()
/linux/drivers/net/ethernet/sfc/
H A Dmae.c1180 d->port_idx = MCDI_STRUCT_DWORD(desc, in efx_mae_enumerate_mports()