Home
last modified time | relevance | path

Searched refs:port_type (Results 1 – 25 of 70) sorted by relevance

123

/freebsd-12.1/sys/dev/bhnd/siba/
H A Dsiba_subr.c272 siba_port_count(struct siba_core_id *core_id, bhnd_port_type port_type) in siba_port_count() argument
274 switch (port_type) { in siba_port_count()
306 if (siba_port_count(core_id, port_type) <= port) in siba_is_port_valid()
324 if (!siba_is_port_valid(core_id, port_type, port)) in siba_port_region_count()
327 switch (port_type) { in siba_port_region_count()
352 bhnd_port_type_name(port_type), port); in siba_port_region_count()
376 siba_cfg_index(struct siba_core_id *core_id, bhnd_port_type port_type, in siba_cfg_index() argument
380 if (port_type != BHND_PORT_AGENT) in siba_cfg_index()
384 if (!siba_is_port_valid(core_id, port_type, port)) in siba_cfg_index()
455 if (port_type != BHND_PORT_DEVICE) in siba_addrspace_index()
[all …]
H A Dsiba.c1019 siba_get_port_rid(device_t dev, device_t child, bhnd_port_type port_type, in siba_get_port_rid() argument
1029 port_type, port_num, region_num)); in siba_get_port_rid()
1034 addrspace = siba_find_addrspace(dinfo, port_type, port_num, region_num); in siba_get_port_rid()
1039 cfg = siba_find_cfg_block(dinfo, port_type, port_num, region_num); in siba_get_port_rid()
1049 bhnd_port_type *port_type, u_int *port_num, u_int *region_num) in siba_decode_port_rid() argument
1056 type, rid, port_type, port_num, region_num)); in siba_decode_port_rid()
1069 *port_type = BHND_PORT_DEVICE; in siba_decode_port_rid()
1080 *port_type = BHND_PORT_AGENT; in siba_decode_port_rid()
1101 port_type, port_num, region_num, addr, size)); in siba_get_region_addr()
1107 addrspace = siba_find_addrspace(dinfo, port_type, port_num, region_num); in siba_get_region_addr()
[all …]
H A Dsibavar.h83 bhnd_port_type port_type);
85 bhnd_port_type port_type, u_int port);
89 bhnd_port_type port_type, u_int port);
/freebsd-12.1/sys/dev/bhnd/bhndb/
H A Dbhndb_pci_hwdata.c149 .port_type = BHND_PORT_DEVICE
331 .port_type = BHND_PORT_DEVICE,
347 .port_type = BHND_PORT_DEVICE
407 .port_type = BHND_PORT_DEVICE
422 .port_type = BHND_PORT_DEVICE
482 .port_type = BHND_PORT_DEVICE
497 .port_type = BHND_PORT_DEVICE
565 .port_type = BHND_PORT_DEVICE
580 .port_type = BHND_PORT_DEVICE
648 .port_type = BHND_PORT_DEVICE
[all …]
H A Dbhndbvar.h120 bhnd_port_type port_type, u_int port,
127 bhnd_port_type port_type, u_int port,
H A Dbhndb_subr.c1501 int unit, bhnd_port_type port_type, u_int port, u_int region, in bhndb_regwin_find_core() argument
1520 if (rw->d.core.port_type != port_type) in bhndb_regwin_find_core()
1569 bhnd_devclass_t class, int unit, bhnd_port_type port_type, u_int port, in bhndb_regwin_find_best() argument
1575 rw = bhndb_regwin_find_core(table, class, unit, port_type, in bhndb_regwin_find_best()
1645 struct bhnd_core_info *core, bhnd_port_type port_type, u_int port, in bhndb_hw_priorty_find_port() argument
1656 if (pp->type != port_type) in bhndb_hw_priorty_find_port()
H A Dbhndb.h90 bhnd_port_type port_type; /**< mapped port type */ member
/freebsd-12.1/sys/dev/bhnd/bcma/
H A Dbcma_erom.c80 uint8_t region_type, bhnd_port_type *port_type);
260 if (p_type == port_type) { in bcma_erom_lookup_core_addr()
296 if (p_type == port_type) in bcma_erom_lookup_core_addr()
910 bhnd_port_type *port_type) in bcma_erom_region_to_port_type() argument
914 *port_type = BHND_PORT_DEVICE; in bcma_erom_region_to_port_type()
917 *port_type = BHND_PORT_BRIDGE; in bcma_erom_region_to_port_type()
921 *port_type = BHND_PORT_AGENT; in bcma_erom_region_to_port_type()
949 bhnd_port_type port_type; in bcma_erom_corecfg_fill_port_regions() local
962 sport = bcma_alloc_sport(port_num, port_type); in bcma_erom_corecfg_fill_port_regions()
977 bhnd_port_type_name(port_type), in bcma_erom_corecfg_fill_port_regions()
[all …]
H A Dbcma.c514 bcma_get_port_rid(device_t dev, device_t child, bhnd_port_type port_type, in bcma_get_port_rid() argument
523 ports = bcma_corecfg_get_port_list(dinfo->corecfg, port_type); in bcma_get_port_rid()
539 bhnd_port_type *port_type, u_int *port_num, u_int *region_num) in bcma_decode_port_rid() argument
568 *port_type = port->sp_type; in bcma_decode_port_rid()
580 bcma_get_region_addr(device_t dev, device_t child, bhnd_port_type port_type, in bcma_get_region_addr() argument
589 ports = bcma_corecfg_get_port_list(dinfo->corecfg, port_type); in bcma_get_region_addr()
H A Dbcma_subr.c517 bcma_alloc_sport(bcma_pid_t port_num, bhnd_port_type port_type) in bcma_alloc_sport() argument
526 sport->sp_type = port_type; in bcma_alloc_sport()
H A Dbcmavar.h108 struct bcma_sport *bcma_alloc_sport(bcma_pid_t port_num, bhnd_port_type port_type);
/freebsd-12.1/sys/dev/mlx4/mlx4_core/
H A Dmlx4_main.c196 enum mlx4_port_type *port_type) in mlx4_check_port_params() argument
202 if (port_type[i] != port_type[i + 1]) { in mlx4_check_port_params()
516 dev->caps.port_type[i] = sensed_port; in mlx4_dev_cap()
1100 enum mlx4_port_type port_type) in __set_port_type() argument
1109 if ((port_type & mdev->caps.supported_type[info->port]) != port_type) { in __set_port_type()
1119 info->tmp_type = port_type; in __set_port_type()
1128 types[i] = mdev->caps.port_type[i+1]; in __set_port_type()
1173 enum mlx4_port_type port_type; in set_port_type() local
1180 port_type = MLX4_PORT_TYPE_IB; in set_port_type()
1182 port_type = MLX4_PORT_TYPE_ETH; in set_port_type()
[all …]
H A Dmlx4_fw.c656 if (dev->caps.port_type[gen_or_port] == MLX4_PORT_TYPE_ETH) { in mlx4_QUERY_FUNC_CAP()
668 } else if (dev->caps.port_type[gen_or_port] == MLX4_PORT_TYPE_IB) { in mlx4_QUERY_FUNC_CAP()
1395 u8 port_type; in mlx4_QUERY_PORT_wrapper() local
1426 MLX4_GET(port_type, outbox->buf, in mlx4_QUERY_PORT_wrapper()
1430 port_type &= MLX4_VF_PORT_NO_LINK_SENSE_MASK; in mlx4_QUERY_PORT_wrapper()
1432 port_type |= (dev->caps.port_type[vhcr->in_modifier] & 0x3); in mlx4_QUERY_PORT_wrapper()
1435 port_type |= MLX4_PORT_LINK_UP_MASK; in mlx4_QUERY_PORT_wrapper()
1437 port_type &= ~MLX4_PORT_LINK_UP_MASK; in mlx4_QUERY_PORT_wrapper()
1445 port_type |= (port_cap.link_state << 7); in mlx4_QUERY_PORT_wrapper()
1448 MLX4_PUT(outbox->buf, port_type, in mlx4_QUERY_PORT_wrapper()
[all …]
H A Dmlx4_sense.c105 mlx4_do_sense_ports(dev, stype, &dev->caps.port_type[1]); in mlx4_sense_port()
/freebsd-12.1/sys/mips/nlm/dev/net/
H A Dsgmii.c143 nlm_nae_setup_rx_mode_sgmii(uint64_t base, int nblock, int iface, int port_type, in nlm_nae_setup_rx_mode_sgmii() argument
183 int port_type, uint8_t *mac_addr) in nlm_nae_setup_mac_addr_sgmii() argument
H A Dxaui.c141 nlm_nae_setup_rx_mode_xaui(uint64_t base, int nblock, int iface, int port_type, in nlm_nae_setup_rx_mode_xaui() argument
157 int port_type, unsigned char *mac_addr) in nlm_nae_setup_mac_addr_xaui() argument
H A Dnae.c1263 nlm_mac_enable(uint64_t nae_base, int nblock, int port_type, int port) in nlm_mac_enable() argument
1269 switch(port_type) { in nlm_mac_enable()
1300 nlm_mac_disable(uint64_t nae_base, int nblock, int port_type, int port) in nlm_mac_disable() argument
1306 switch(port_type) { in nlm_mac_disable()
1358 nlm_nae_open_if(uint64_t nae_base, int nblock, int port_type, in nlm_nae_open_if() argument
1365 switch (port_type) { in nlm_nae_open_if()
/freebsd-12.1/sys/dev/ocs_fc/
H A Dsli4.c602 if (sli4->port_type == SLI4_PORT_TYPE_FC) { in sli_cmd_common_read_transceiver_data()
1688 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_function_reset()
1770 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_create_cq()
1896 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_destroy_cq()
1935 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_modify_eq_delay()
1987 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_create_eq()
2059 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_destroy_eq()
2095 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli4_cmd_lowlevel_set_watchdog()
2118 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_get_cntl_attributes()
3982 sli4->port_type = port_type; in sli_setup()
[all …]
/freebsd-12.1/sys/cam/ctl/
H A Dctl_frontend.c269 if (port->port_type == CTL_PORT_FC) in ctl_port_set_wwns()
271 else if (port->port_type == CTL_PORT_SAS) in ctl_port_set_wwns()
273 else if (port->port_type == CTL_PORT_ISCSI) in ctl_port_set_wwns()
H A Dctl_frontend.h218 ctl_port_type port_type; /* passed to CTL */ member
H A Dctl.h64 ctl_port_type port_type; member
/freebsd-12.1/sys/dev/cxgb/common/
H A Dcxgb_t3_hw.c893 p->port_type[0] = uses_xaui(adapter) ? 1 : 2; in get_vpd_params()
894 p->port_type[1] = uses_xaui(adapter) ? 6 : 2; in get_vpd_params()
896 p->port_type[0] = (u8)hex2int(vpd.port0_data[0]); in get_vpd_params()
4555 unsigned port_type = adapter->params.vpd.port_type[j]; in t3_prep_adapter() local
4556 if (port_type) { in t3_prep_adapter()
4557 if (port_type < ARRAY_SIZE(port_types)) { in t3_prep_adapter()
4558 pti = &port_types[port_type]; in t3_prep_adapter()
4627 unsigned port_type = adap->params.vpd.port_type[j]; in t3_reinit_adapter() local
4628 if (port_type) { in t3_reinit_adapter()
4629 if (port_type < ARRAY_SIZE(port_types)) { in t3_reinit_adapter()
[all …]
H A Dcxgb_xgmac.c470 unsigned port_type = adap->params.vpd.port_type[macidx(mac)]; in t3_mac_set_mtu() local
486 if (port_type == 2) { in t3_mac_set_mtu()
541 ipg = (port_type == 9 || adap->params.rev != T3_REV_C) ? 1 : 0; in t3_mac_set_mtu()
/freebsd-12.1/sys/dev/bhnd/
H A Dbhnd.h447 const char *bhnd_port_type_name(bhnd_port_type port_type);
1468 bhnd_decode_port_rid(device_t dev, int type, int rid, bhnd_port_type *port_type, in bhnd_decode_port_rid() argument
1472 port_type, port, region); in bhnd_decode_port_rid()
1489 bhnd_get_region_addr(device_t dev, bhnd_port_type port_type, u_int port, in bhnd_get_region_addr() argument
1492 return BHND_BUS_GET_REGION_ADDR(device_get_parent(dev), dev, port_type, in bhnd_get_region_addr()
/freebsd-12.1/contrib/ofed/libibumad/
H A Dumad.c326 int phys_found = -1, port_found = 0, port, port_type; in resolve_ca_name() local
347 if ((port_type = resolve_ca_port(names[caidx], &port)) < 0) in resolve_ca_name()
351 names[caidx], port, port_type); in resolve_ca_name()
353 if (port_type > 0) { in resolve_ca_name()

123