/openbmc/linux/drivers/input/joystick/ |
H A D | turbografx.c | 146 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()
|
H A D | db9.c | 549 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()
|
H A D | gamecon.c | 923 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()
|
/openbmc/linux/net/smc/ |
H A D | smc_ib.c | 385 u8 port_idx; in smc_ib_port_event_work() local 392 smcr_port_err(smcibdev, port_idx + 1); in smc_ib_port_event_work() 395 smcr_port_add(smcibdev, port_idx + 1); in smc_ib_port_event_work() 407 u8 port_idx; in smc_ib_global_event_handler() local 414 for (port_idx = 0; port_idx < SMC_MAX_PORTS; port_idx++) { in smc_ib_global_event_handler() 416 if (!test_and_set_bit(port_idx, in smc_ib_global_event_handler() 425 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler() 433 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler() 441 if (port_idx >= SMC_MAX_PORTS) in smc_ib_global_event_handler() 638 u8 port_idx; in smc_ib_qp_event_handler() local [all …]
|
/openbmc/linux/sound/soc/qcom/qdsp6/ |
H A D | q6adm.c | 128 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 …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns/ |
H A D | hns_dsaf_rcb.h | 137 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);
|
H A D | hns_dsaf_rcb.c | 294 u32 port_idx, u32 desc_cnt) in hns_rcb_set_port_desc_cnt() argument 309 RCB_PORT_INT_GAPTIME_REG + port_idx * 4, in hns_rcb_set_port_timeout() 313 RCB_PORT_INT_GAPTIME_REG + port_idx * 4, in hns_rcb_set_port_timeout() 317 RCB_PORT_CFG_OVERTIME_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() 556 struct rcb_common_cb *rcb_common, u32 port_idx) in hns_rcb_get_rx_coalesced_frames() argument 569 struct rcb_common_cb *rcb_common, u32 port_idx) in hns_rcb_get_tx_coalesced_frames() argument 585 struct rcb_common_cb *rcb_common, u32 port_idx) in hns_rcb_get_coalesce_usecs() argument 592 RCB_PORT_CFG_OVERTIME_REG + port_idx * 4); in hns_rcb_get_coalesce_usecs() 641 hns_rcb_get_tx_coalesced_frames(rcb_common, port_idx); in hns_rcb_set_tx_coalesced_frames() [all …]
|
/openbmc/u-boot/drivers/serial/ |
H A D | mcfuart.c | 27 static int mcf_serial_init_common(uart_t *uart, int port_idx, int baudrate) in mcf_serial_init_common() argument 31 uart_port_conf(port_idx); in mcf_serial_init_common() 86 int port_idx; in mcf_serial_init() local 89 port_idx = CONFIG_SYS_UART_PORT; in mcf_serial_init() 91 return mcf_serial_init_common(uart_base, port_idx, gd->baudrate); in mcf_serial_init()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | xdp_synproxy.c | 398 __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()
|
/openbmc/linux/drivers/tty/serial/8250/ |
H A D | 8250_pci1xxxx.c | 326 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()
|
/openbmc/linux/drivers/gpu/drm/i915/gvt/ |
H A D | edid.c | 477 int port_idx, in intel_gvt_i2c_handle_aux_ch_write() argument 525 i2c_edid->port = port_idx; in intel_gvt_i2c_handle_aux_ch_write() 528 port_idx) && in intel_gvt_i2c_handle_aux_ch_write() 529 intel_vgpu_port_is_dp(vgpu, port_idx)) in intel_gvt_i2c_handle_aux_ch_write()
|
H A D | edid.h | 150 int port_idx,
|
/openbmc/linux/drivers/infiniband/hw/qib/ |
H A D | qib_verbs.h | 249 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);
|
H A D | qib_mad.c | 2423 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()
|
/openbmc/linux/include/rdma/ |
H A D | rdma_vt.h | 352 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);
|
/openbmc/linux/drivers/scsi/ |
H A D | g_NCR5380.c | 231 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()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | tunnel_conf.c | 32 __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()
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | mae.h | 37 u32 port_idx; /* for mport_type == NET_PORT */ member
|
/openbmc/linux/drivers/net/wwan/ |
H A D | wwan_hwsim.c | 46 unsigned int port_idx; member 203 port->id = dev->port_idx++; in wwan_hwsim_port_new()
|
/openbmc/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_main.c | 774 u32 port_idx; in prestera_create_ports() local 777 for (port_idx = 0; port_idx < sw->port_count; port_idx++) { in prestera_create_ports() 778 err = prestera_port_create(sw, port_idx); in prestera_create_ports()
|
/openbmc/linux/drivers/net/ethernet/microsoft/mana/ |
H A D | mana_en.c | 2437 int port_idx = apc->port_idx; in mana_init_port() local 2445 err = mana_query_vport_cfg(apc, port_idx, &max_txq, &max_rxq, in mana_init_port() 2449 port_idx); in mana_init_port() 2651 static int mana_probe_port(struct mana_context *ac, int port_idx, in mana_probe_port() argument 2673 apc->port_idx = port_idx; in mana_probe_port() 2684 ndev->dev_port = port_idx; in mana_probe_port() 2720 netdev_err(ndev, "Failed to probe vPort %d: %d\n", port_idx, err); in mana_probe_port()
|
/openbmc/linux/drivers/scsi/mpi3mr/ |
H A D | mpi3mr_transport.c | 1685 int i, j, found, host_port_count = 0, port_idx; in mpi3mr_refresh_sas_ports() local 1737 port_idx = host_port_count; in mpi3mr_refresh_sas_ports() 1738 h_port[port_idx].sas_address = le64_to_cpu(sasinf->sas_address); in mpi3mr_refresh_sas_ports() 1739 h_port[port_idx].handle = attached_handle; in mpi3mr_refresh_sas_ports() 1740 h_port[port_idx].phy_mask = (1 << i); in mpi3mr_refresh_sas_ports() 1741 h_port[port_idx].iounit_port_id = sas_io_unit_pg0->phy_data[i].io_unit_port; in mpi3mr_refresh_sas_ports() 1742 h_port[port_idx].lowest_phy = sasinf->phy_num; in mpi3mr_refresh_sas_ports() 1743 h_port[port_idx].used = 0; in mpi3mr_refresh_sas_ports()
|
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-switch.c | 2948 u16 port_idx) in dpaa2_switch_remove_port() argument 2950 struct ethsw_port_priv *port_priv = ethsw->ports[port_idx]; in dpaa2_switch_remove_port() 2954 ethsw->ports[port_idx] = NULL; in dpaa2_switch_remove_port() 3252 u16 port_idx) in dpaa2_switch_probe_port() argument 3271 port_priv->idx = port_idx; in dpaa2_switch_probe_port() 3290 ethsw->ports[port_idx] = port_priv; in dpaa2_switch_probe_port() 3299 err = dpaa2_switch_port_init(port_priv, port_idx); in dpaa2_switch_probe_port() 3320 ethsw->ports[port_idx] = NULL; in dpaa2_switch_probe_port()
|
/openbmc/linux/drivers/net/ethernet/ti/ |
H A D | am65-cpsw-nuss.c | 373 int port_idx, i, ret; in am65_cpsw_nuss_common_open() local 397 for (port_idx = 0; port_idx < common->port_num; port_idx++) { in am65_cpsw_nuss_common_open() 398 struct am65_cpsw_port *port = &common->ports[port_idx]; in am65_cpsw_nuss_common_open() 2138 am65_cpsw_nuss_init_port_ndev(struct am65_cpsw_common *common, u32 port_idx) in am65_cpsw_nuss_init_port_ndev() argument 2146 port = &common->ports[port_idx]; in am65_cpsw_nuss_init_port_ndev()
|
/openbmc/linux/sound/core/seq/ |
H A D | seq_clientmgr.c | 1310 int port_idx, err; in snd_seq_ioctl_create_port() local 1322 port_idx = info->addr.port; in snd_seq_ioctl_create_port() 1324 port_idx = -1; in snd_seq_ioctl_create_port() 1325 if (port_idx >= SNDRV_SEQ_ADDRESS_UNKNOWN) in snd_seq_ioctl_create_port() 1327 err = snd_seq_create_port(client, port_idx, &port); in snd_seq_ioctl_create_port()
|