/freebsd/sys/dev/bhnd/siba/ |
H A D | siba_subr.c | 268 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() 298 siba_is_port_valid(struct siba_core_id *core_id, bhnd_port_type port_type, in siba_is_port_valid() argument 302 if (siba_port_count(core_id, port_type) <= port) in siba_is_port_valid() 316 siba_port_region_count(struct siba_core_id *core_id, bhnd_port_type port_type, in siba_port_region_count() argument 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() [all …]
|
H A D | siba.c | 1015 siba_get_port_rid(device_t dev, device_t child, bhnd_port_type port_type, in siba_get_port_rid() argument 1025 port_type, port_num, region_num)); in siba_get_port_rid() 1030 addrspace = siba_find_addrspace(dinfo, port_type, port_num, region_num); in siba_get_port_rid() 1035 cfg = siba_find_cfg_block(dinfo, port_type, port_num, region_num); in siba_get_port_rid() 1045 bhnd_port_type *port_type, u_int *port_num, u_int *region_num) in siba_decode_port_rid() argument 1052 type, rid, port_type, port_num, region_num)); in siba_decode_port_rid() 1065 *port_type = BHND_PORT_DEVICE; in siba_decode_port_rid() 1076 *port_type = BHND_PORT_AGENT; in siba_decode_port_rid() 1087 siba_get_region_addr(device_t dev, device_t child, bhnd_port_type port_type, in siba_get_region_addr() argument 1097 port_type, port_num, region_num, addr, size)); in siba_get_region_addr() [all …]
|
H A D | sibavar.h | 82 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 D | bhndb_pci_hwdata.c | 145 .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 D | bhndbvar.h | 119 bhnd_port_type port_type, u_int port, 126 bhnd_port_type port_type, u_int port,
|
H A D | bhndb_subr.c | 1494 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 D | bhndb.h | 87 bhnd_port_type port_type; /**< mapped port type */ member
|
H A D | bhndb_private.h | 142 bhnd_port_type port_type, u_int port,
|
/freebsd/sys/dev/bhnd/bcma/ |
H A D | bcma_erom.c | 77 uint8_t region_type, bhnd_port_type *port_type); 212 bhnd_port_type port_type, u_int port_num, u_int region_num, in bcma_erom_lookup_core_addr() argument 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 950 error = bcma_erom_region_to_port_type(erom, region_type, &port_type); in bcma_erom_corecfg_fill_port_regions() [all …]
|
H A D | bcma.c | 507 bcma_get_port_rid(device_t dev, device_t child, bhnd_port_type port_type, in bcma_get_port_rid() argument 516 ports = bcma_corecfg_get_port_list(dinfo->corecfg, port_type); in bcma_get_port_rid() 532 bhnd_port_type *port_type, u_int *port_num, u_int *region_num) in bcma_decode_port_rid() argument 561 *port_type = port->sp_type; in bcma_decode_port_rid() 573 bcma_get_region_addr(device_t dev, device_t child, bhnd_port_type port_type, in bcma_get_region_addr() argument 582 ports = bcma_corecfg_get_port_list(dinfo->corecfg, port_type); in bcma_get_region_addr()
|
H A D | bcma_subr.c | 511 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 D | bcmavar.h | 106 struct bcma_sport *bcma_alloc_sport(bcma_pid_t port_num, bhnd_port_type port_type);
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_main.c | 175 enum mlx4_port_type port_type[MLX4_MAX_PORTS + 1]; member 196 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() 210 if (!(port_type[i] & dev->caps.supported_type[i+1])) { in mlx4_check_port_params() 224 dev->caps.port_mask[i] = dev->caps.port_type[i]; in mlx4_set_port_mask() 476 dev->caps.port_type[i] = MLX4_PORT_TYPE_NONE; in mlx4_dev_cap() 480 dev->caps.port_type[i] = MLX4_PORT_TYPE_ETH; in mlx4_dev_cap() 484 dev->caps.port_type[i] = MLX4_PORT_TYPE_IB; in mlx4_dev_cap() 490 dev->caps.port_type[i] = dev->caps.suggested_type[i] ? in mlx4_dev_cap() 493 dev->caps.port_type[i] = port_type_array[i - 1]; in mlx4_dev_cap() [all …]
|
H A D | mlx4_fw.c | 656 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 …]
|
H A D | mlx4_sense.c | 105 mlx4_do_sense_ports(dev, stype, &dev->caps.port_type[1]); in mlx4_sense_port()
|
/freebsd/sys/dev/ocs_fc/ |
H A D | sli4.c | 652 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() 2249 if (SLI4_PORT_TYPE_FC == sli4->port_type) { in sli_cmd_common_get_cntl_addl_attributes() [all …]
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_frontend.c | 264 if (port->port_type == CTL_PORT_FC) in ctl_port_set_wwns() 266 else if (port->port_type == CTL_PORT_SAS) in ctl_port_set_wwns() 268 else if (port->port_type == CTL_PORT_ISCSI) in ctl_port_set_wwns()
|
H A D | ctl_frontend.h | 217 ctl_port_type port_type; /* passed to CTL */ member
|
H A D | ctl.h | 64 ctl_port_type port_type; 63 ctl_port_type port_type; global() member
|
H A D | ctl_frontend_ioctl.c | 124 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 D | cxgb_t3_hw.c | 890 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() 894 p->port_type[1] = (u8)hex2int(vpd.port1_data[0]); in get_vpd_params() 895 p->port_type[2] = (u8)hex2int(vpd.port2_data[0]); in get_vpd_params() 896 p->port_type[3] = (u8)hex2int(vpd.port3_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() [all …]
|
H A D | cxgb_xgmac.c | 479 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 D | bhnd.h | 437 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 D | umad.c | 326 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 D | mlx5_gid.c | 135 if (MLX5_CAP_GEN(dev, port_type) != MLX5_CAP_PORT_TYPE_ETH) in mlx5_core_roce_gid_set()
|