Home
last modified time | relevance | path

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

123

/freebsd/sys/dev/bhnd/siba/
H A Dsiba_subr.c268 siba_port_count(struct siba_core_id *core_id, bhnd_port_type port_type) in siba_port_count() argument
270 switch (port_type) { in siba_port_count()
302 if (siba_port_count(core_id, port_type) <= port) in siba_is_port_valid()
320 if (!siba_is_port_valid(core_id, port_type, port)) in siba_port_region_count()
323 switch (port_type) { in siba_port_region_count()
348 bhnd_port_type_name(port_type), port); in siba_port_region_count()
372 siba_cfg_index(struct siba_core_id *core_id, bhnd_port_type port_type, in siba_cfg_index() argument
376 if (port_type != BHND_PORT_AGENT) in siba_cfg_index()
380 if (!siba_is_port_valid(core_id, port_type, port)) in siba_cfg_index()
451 if (port_type != BHND_PORT_DEVICE) in siba_addrspace_index()
[all …]
H A Dsiba.c1016 siba_get_port_rid(device_t dev, device_t child, bhnd_port_type port_type, in siba_get_port_rid() argument
1026 port_type, port_num, region_num)); in siba_get_port_rid()
1031 addrspace = siba_find_addrspace(dinfo, port_type, port_num, region_num); in siba_get_port_rid()
1036 cfg = siba_find_cfg_block(dinfo, port_type, port_num, region_num); in siba_get_port_rid()
1046 bhnd_port_type *port_type, u_int *port_num, u_int *region_num) in siba_decode_port_rid() argument
1053 type, rid, port_type, port_num, region_num)); in siba_decode_port_rid()
1066 *port_type = BHND_PORT_DEVICE; in siba_decode_port_rid()
1077 *port_type = BHND_PORT_AGENT; in siba_decode_port_rid()
1098 port_type, port_num, region_num, addr, size)); in siba_get_region_addr()
1104 addrspace = siba_find_addrspace(dinfo, port_type, port_num, region_num); in siba_get_region_addr()
[all …]
H A Dsibavar.h82 bhnd_port_type port_type);
84 bhnd_port_type port_type, u_int port);
88 bhnd_port_type port_type, u_int port);
/freebsd/sys/dev/bhnd/bhndb/
H A Dbhndb_pci_hwdata.c145 .port_type = BHND_PORT_DEVICE
325 .port_type = BHND_PORT_DEVICE,
341 .port_type = BHND_PORT_DEVICE
401 .port_type = BHND_PORT_DEVICE
416 .port_type = BHND_PORT_DEVICE
476 .port_type = BHND_PORT_DEVICE
491 .port_type = BHND_PORT_DEVICE
559 .port_type = BHND_PORT_DEVICE
574 .port_type = BHND_PORT_DEVICE
642 .port_type = BHND_PORT_DEVICE
[all …]
H A Dbhndbvar.h119 bhnd_port_type port_type, u_int port,
126 bhnd_port_type port_type, u_int port,
H A Dbhndb_subr.c1494 int unit, bhnd_port_type port_type, u_int port, u_int region, in bhndb_regwin_find_core() argument
1513 if (rw->d.core.port_type != port_type) in bhndb_regwin_find_core()
1562 bhnd_devclass_t class, int unit, bhnd_port_type port_type, u_int port, in bhndb_regwin_find_best() argument
1568 rw = bhndb_regwin_find_core(table, class, unit, port_type, in bhndb_regwin_find_best()
1637 struct bhnd_core_info *core, bhnd_port_type port_type, u_int port, in bhndb_hw_priorty_find_port() argument
1648 if (pp->type != port_type) in bhndb_hw_priorty_find_port()
H A Dbhndb.h87 bhnd_port_type port_type; /**< mapped port type */ member
H A Dbhndb_private.h142 bhnd_port_type port_type, u_int port,
/freebsd/sys/dev/bhnd/bcma/
H A Dbcma_erom.c77 uint8_t region_type, bhnd_port_type *port_type);
256 if (p_type == port_type) { in bcma_erom_lookup_core_addr()
292 if (p_type == port_type) in bcma_erom_lookup_core_addr()
906 bhnd_port_type *port_type) in bcma_erom_region_to_port_type() argument
910 *port_type = BHND_PORT_DEVICE; in bcma_erom_region_to_port_type()
913 *port_type = BHND_PORT_BRIDGE; in bcma_erom_region_to_port_type()
917 *port_type = BHND_PORT_AGENT; in bcma_erom_region_to_port_type()
945 bhnd_port_type port_type; in bcma_erom_corecfg_fill_port_regions() local
958 sport = bcma_alloc_sport(port_num, port_type); in bcma_erom_corecfg_fill_port_regions()
973 bhnd_port_type_name(port_type), in bcma_erom_corecfg_fill_port_regions()
[all …]
H A Dbcma.c508 bcma_get_port_rid(device_t dev, device_t child, bhnd_port_type port_type, in bcma_get_port_rid() argument
517 ports = bcma_corecfg_get_port_list(dinfo->corecfg, port_type); in bcma_get_port_rid()
533 bhnd_port_type *port_type, u_int *port_num, u_int *region_num) in bcma_decode_port_rid() argument
562 *port_type = port->sp_type; in bcma_decode_port_rid()
574 bcma_get_region_addr(device_t dev, device_t child, bhnd_port_type port_type, in bcma_get_region_addr() argument
583 ports = bcma_corecfg_get_port_list(dinfo->corecfg, port_type); in bcma_get_region_addr()
H A Dbcma_subr.c511 bcma_alloc_sport(bcma_pid_t port_num, bhnd_port_type port_type) in bcma_alloc_sport() argument
520 sport->sp_type = port_type; in bcma_alloc_sport()
H A Dbcmavar.h106 struct bcma_sport *bcma_alloc_sport(bcma_pid_t port_num, bhnd_port_type port_type);
/freebsd/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()
517 dev->caps.port_type[i] = sensed_port; in mlx4_dev_cap()
1101 enum mlx4_port_type port_type) in __set_port_type() argument
1110 if ((port_type & mdev->caps.supported_type[info->port]) != port_type) { in __set_port_type()
1120 info->tmp_type = port_type; in __set_port_type()
1129 types[i] = mdev->caps.port_type[i+1]; in __set_port_type()
1174 enum mlx4_port_type port_type; in set_port_type() local
1181 port_type = MLX4_PORT_TYPE_IB; in set_port_type()
1183 port_type = MLX4_PORT_TYPE_ETH; in set_port_type()
[all …]
H A Dmlx4_sense.c105 mlx4_do_sense_ports(dev, stype, &dev->caps.port_type[1]); in mlx4_sense_port()
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()
1398 u8 port_type; in mlx4_QUERY_PORT_wrapper() local
1429 MLX4_GET(port_type, outbox->buf, in mlx4_QUERY_PORT_wrapper()
1433 port_type &= MLX4_VF_PORT_NO_LINK_SENSE_MASK; in mlx4_QUERY_PORT_wrapper()
1435 port_type |= (dev->caps.port_type[vhcr->in_modifier] & 0x3); in mlx4_QUERY_PORT_wrapper()
1438 port_type |= MLX4_PORT_LINK_UP_MASK; in mlx4_QUERY_PORT_wrapper()
1440 port_type &= ~MLX4_PORT_LINK_UP_MASK; in mlx4_QUERY_PORT_wrapper()
1448 port_type |= (port_cap.link_state << 7); in mlx4_QUERY_PORT_wrapper()
1451 MLX4_PUT(outbox->buf, port_type, in mlx4_QUERY_PORT_wrapper()
[all …]
/freebsd/sys/dev/ocs_fc/
H A Dsli4.c652 if (sli4->port_type == SLI4_PORT_TYPE_FC) { in sli_cmd_common_read_transceiver_data()
1776 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_function_reset()
1858 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_create_cq()
1985 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_destroy_cq()
2024 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_modify_eq_delay()
2076 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_create_eq()
2151 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_destroy_eq()
2187 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli4_cmd_lowlevel_set_watchdog()
2210 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_get_cntl_attributes()
4088 sli4->port_type = port_type; in sli_setup()
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_frontend.c266 if (port->port_type == CTL_PORT_FC) in ctl_port_set_wwns()
268 else if (port->port_type == CTL_PORT_SAS) in ctl_port_set_wwns()
270 else if (port->port_type == CTL_PORT_ISCSI) in ctl_port_set_wwns()
H A Dctl_frontend.h217 ctl_port_type port_type; /* passed to CTL */ member
H A Dctl.h64 ctl_port_type port_type; member
H A Dctl_frontend_ioctl.c124 port->port_type = CTL_PORT_IOCTL; in cfi_init()
210 port->port_type = CTL_PORT_IOCTL; in cfi_ioctl_port_create()
/freebsd/sys/dev/cxgb/common/
H A Dcxgb_t3_hw.c890 p->port_type[0] = uses_xaui(adapter) ? 1 : 2; in get_vpd_params()
891 p->port_type[1] = uses_xaui(adapter) ? 6 : 2; in get_vpd_params()
893 p->port_type[0] = (u8)hex2int(vpd.port0_data[0]); in get_vpd_params()
4552 unsigned port_type = adapter->params.vpd.port_type[j]; in t3_prep_adapter() local
4553 if (port_type) { in t3_prep_adapter()
4554 if (port_type < ARRAY_SIZE(port_types)) { in t3_prep_adapter()
4555 pti = &port_types[port_type]; in t3_prep_adapter()
4624 unsigned port_type = adap->params.vpd.port_type[j]; in t3_reinit_adapter() local
4625 if (port_type) { in t3_reinit_adapter()
4626 if (port_type < ARRAY_SIZE(port_types)) { in t3_reinit_adapter()
[all …]
H A Dcxgb_xgmac.c479 unsigned port_type = adap->params.vpd.port_type[macidx(mac)]; in t3_mac_set_mtu() local
495 if (port_type == 2) { in t3_mac_set_mtu()
550 ipg = (port_type == 9 || adap->params.rev != T3_REV_C) ? 1 : 0; in t3_mac_set_mtu()
/freebsd/sys/dev/bhnd/
H A Dbhnd.h437 const char *bhnd_port_type_name(bhnd_port_type port_type);
1456 bhnd_decode_port_rid(device_t dev, int type, int rid, bhnd_port_type *port_type, in bhnd_decode_port_rid() argument
1460 port_type, port, region); in bhnd_decode_port_rid()
1477 bhnd_get_region_addr(device_t dev, bhnd_port_type port_type, u_int port, in bhnd_get_region_addr() argument
1480 return BHND_BUS_GET_REGION_ADDR(device_get_parent(dev), dev, port_type, in bhnd_get_region_addr()
/freebsd/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()
/freebsd/sys/dev/mlx5/mlx5_lib/
H A Dmlx5_gid.c135 if (MLX5_CAP_GEN(dev, port_type) != MLX5_CAP_PORT_TYPE_ETH) in mlx5_core_roce_gid_set()

123