Home
last modified time | relevance | path

Searched refs:caps (Results 1 – 25 of 216) sorted by relevance

123456789

/NextBSD/sys/ofed/drivers/net/mlx4/
HDmain.c563 for (i = 0; i < dev->caps.num_ports - 1; i++) { in mlx4_check_port_params()
565 if (!(dev->caps.flags & MLX4_DEV_CAP_FLAG_DPDP)) { in mlx4_check_port_params()
573 for (i = 0; i < dev->caps.num_ports; i++) { in mlx4_check_port_params()
574 if (!(port_type[i] & dev->caps.supported_type[i+1])) { in mlx4_check_port_params()
587 for (i = 1; i <= dev->caps.num_ports; ++i) in mlx4_set_port_mask()
588 dev->caps.port_mask[i] = dev->caps.port_type[i]; in mlx4_set_port_mask()
623 dev->caps.num_ports = dev_cap->num_ports; in mlx4_dev_cap()
625 for (i = 1; i <= dev->caps.num_ports; ++i) { in mlx4_dev_cap()
626 dev->caps.vl_cap[i] = dev_cap->max_vl[i]; in mlx4_dev_cap()
627 dev->caps.ib_mtu_cap[i] = dev_cap->ib_mtu[i]; in mlx4_dev_cap()
[all …]
HDqp.c392 (dev->caps.num_qps - 1), qp); in mlx4_qp_alloc()
415 radix_tree_delete(&dev->qp_table_tree, qp->qpn & (dev->caps.num_qps - 1)); in mlx4_qp_remove()
458 ALIGN(dev->caps.reserved_qps_cnt[MLX4_QP_REGION_FW], 8); in mlx4_init_qp_table()
463 int last_base = dev->caps.num_qps; in mlx4_init_qp_table()
470 if (dev->caps.reserved_qps_cnt[sort[j]] > in mlx4_init_qp_table()
471 dev->caps.reserved_qps_cnt[sort[j - 1]]) { in mlx4_init_qp_table()
480 last_base -= dev->caps.reserved_qps_cnt[sort[i]]; in mlx4_init_qp_table()
481 dev->caps.reserved_qps_base[sort[i]] = last_base; in mlx4_init_qp_table()
483 dev->caps.reserved_qps_cnt[sort[i]]; in mlx4_init_qp_table()
499 if (reserved_from_bot + reserved_from_top > dev->caps.num_qps) { in mlx4_init_qp_table()
[all …]
HDeq.c88 if (dev->caps.flags & MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV) in get_async_ev_mask()
90 if (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT) in get_async_ev_mask()
184 memcpy(s_eqe, eqe, dev->caps.eqe_size - 1); in slave_event()
202 slave == dev->caps.function) in mlx4_slave_event()
457 while ((eqe = next_eqe_sw(eq, dev->caps.eqe_factor))) { in mlx4_eq_int()
494 if (!ret && slave != dev->caps.function) { in mlx4_eq_int()
529 if (!ret && slave != dev->caps.function) { in mlx4_eq_int()
557 if (dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH) { in mlx4_eq_int()
585 if (dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH) in mlx4_eq_int()
620 if (!ret && slave != dev->caps.function) { in mlx4_eq_int()
[all …]
HDpd.c122 return mlx4_bitmap_init(&priv->pd_bitmap, dev->caps.num_pds, in mlx4_init_pd_table()
124 dev->caps.reserved_pds, 0); in mlx4_init_pd_table()
137 (1 << 16) - 1, dev->caps.reserved_xrcds + 1, 0); in mlx4_init_xrcd_table()
155 dev->caps.uar_page_size); in mlx4_uar_alloc()
221 bf->buf_size = dev->caps.bf_reg_size / 2; in mlx4_bf_alloc()
222 bf->reg = uar->bf_map + idx * dev->caps.bf_reg_size; in mlx4_bf_alloc()
223 if (uar->free_bf_bmap == (1 << dev->caps.bf_regs_per_page) - 1) in mlx4_bf_alloc()
253 idx = (bf->reg - bf->uar->bf_map) / dev->caps.bf_reg_size; in mlx4_bf_free()
287 if (dev->caps.num_uars <= 128) { in mlx4_init_uar_table()
289 dev->caps.num_uars); in mlx4_init_uar_table()
[all …]
HDprofile.c171 dev->caps.num_qps = profile[i].num; in mlx4_make_profile()
180 dev->caps.max_qp_dest_rdma = 1 << priv->qp_table.rdmarc_shift; in mlx4_make_profile()
192 dev->caps.num_srqs = profile[i].num; in mlx4_make_profile()
197 dev->caps.num_cqs = profile[i].num; in mlx4_make_profile()
202 dev->caps.num_eqs = roundup_pow_of_two(min_t(unsigned, dev_cap->max_eqs, in mlx4_make_profile()
205 init_hca->log_num_eqs = ilog2(dev->caps.num_eqs); in mlx4_make_profile()
208 dev->caps.num_mpts = profile[i].num; in mlx4_make_profile()
217 dev->caps.num_mtts = profile[i].num; in mlx4_make_profile()
226 if (dev->caps.steering_mode == in mlx4_make_profile()
228 dev->caps.num_mgms = profile[i].num; in mlx4_make_profile()
[all …]
HDfw.c270 field = dev->caps.num_ports; in mlx4_QUERY_FUNC_CAP_wrapper()
273 size = dev->caps.function_caps; /* set PF behaviours */ in mlx4_QUERY_FUNC_CAP_wrapper()
281 size = dev->caps.num_qps; in mlx4_QUERY_FUNC_CAP_wrapper()
286 size = dev->caps.num_srqs; in mlx4_QUERY_FUNC_CAP_wrapper()
291 size = dev->caps.num_cqs; in mlx4_QUERY_FUNC_CAP_wrapper()
294 size = dev->caps.num_eqs; in mlx4_QUERY_FUNC_CAP_wrapper()
297 size = dev->caps.reserved_eqs; in mlx4_QUERY_FUNC_CAP_wrapper()
302 size = dev->caps.num_mpts; in mlx4_QUERY_FUNC_CAP_wrapper()
307 size = dev->caps.num_mtts; in mlx4_QUERY_FUNC_CAP_wrapper()
310 size = dev->caps.num_mgms + dev->caps.num_amgms; in mlx4_QUERY_FUNC_CAP_wrapper()
[all …]
HDsense.c72 for (i = 1; i <= dev->caps.num_ports; i++) { in mlx4_do_sense_ports()
75 dev->caps.possible_type[i] == MLX4_PORT_TYPE_AUTO) { in mlx4_do_sense_ports()
86 for (i = 0; i < dev->caps.num_ports; i++) in mlx4_do_sense_ports()
101 mlx4_do_sense_ports(dev, stype, &dev->caps.port_type[1]); in mlx4_sense_port()
120 if (!(dev->caps.flags & MLX4_DEV_CAP_FLAG_DPDP)) in mlx4_start_sense()
139 for (port = 1; port <= dev->caps.num_ports; port++) in mlx4_sense_init()
HDmcg.c130 if (port < 1 || port > dev->caps.num_ports) in get_promisc_qp()
161 if (port < 1 || port > dev->caps.num_ports) in new_steering_entry()
211 if (members_count == dev->caps.num_qp_per_mgm) { in new_steering_entry()
248 if (port < 1 || port > dev->caps.num_ports) in existing_steering_entry()
296 if (port < 1 || port > dev->caps.num_ports) in check_duplicate_entry()
341 if (port < 1 || port > dev->caps.num_ports) in promisc_steering_entry()
380 if (port < 1 || port > dev->caps.num_ports) in can_remove_steering_entry()
436 if (port < 1 || port > dev->caps.num_ports) in add_promisc_qp()
489 if (members_count == dev->caps.num_qp_per_mgm) { in add_promisc_qp()
509 if (members_count == dev->caps.num_qp_per_mgm) { in add_promisc_qp()
[all …]
HDen_main.c79 if (params->udp_rss && !(mdev->dev->caps.flags in mlx4_en_get_profile()
132 if (port < 1 || port > dev->caps.num_ports || in mlx4_en_event()
195 mdev->LSO_support = !!(dev->caps.flags & (1 << 15)); in mlx4_en_add()
225 if (!dev->caps.comp_pool) { in mlx4_en_add()
229 dev->caps.num_comp_vectors, in mlx4_en_add()
233 min_t(int, dev->caps.comp_pool / in mlx4_en_add()
234 dev->caps.num_ports, MAX_MSIX_P_PORT)); in mlx4_en_add()
/NextBSD/sys/dev/ifmlx4/
HDmain.c565 for (i = 0; i < dev->caps.num_ports - 1; i++) { in mlx4_check_port_params()
567 if (!(dev->caps.flags & MLX4_DEV_CAP_FLAG_DPDP)) { in mlx4_check_port_params()
575 for (i = 0; i < dev->caps.num_ports; i++) { in mlx4_check_port_params()
576 if (!(port_type[i] & dev->caps.supported_type[i+1])) { in mlx4_check_port_params()
589 for (i = 1; i <= dev->caps.num_ports; ++i) in mlx4_set_port_mask()
590 dev->caps.port_mask[i] = dev->caps.port_type[i]; in mlx4_set_port_mask()
625 dev->caps.num_ports = dev_cap->num_ports; in mlx4_dev_cap()
627 for (i = 1; i <= dev->caps.num_ports; ++i) { in mlx4_dev_cap()
628 dev->caps.vl_cap[i] = dev_cap->max_vl[i]; in mlx4_dev_cap()
629 dev->caps.ib_mtu_cap[i] = dev_cap->ib_mtu[i]; in mlx4_dev_cap()
[all …]
HDqp.c392 (dev->caps.num_qps - 1), qp); in mlx4_qp_alloc()
415 radix_tree_delete(&dev->qp_table_tree, qp->qpn & (dev->caps.num_qps - 1)); in mlx4_qp_remove()
458 ALIGN(dev->caps.reserved_qps_cnt[MLX4_QP_REGION_FW], 8); in mlx4_init_qp_table()
463 int last_base = dev->caps.num_qps; in mlx4_init_qp_table()
470 if (dev->caps.reserved_qps_cnt[sort[j]] > in mlx4_init_qp_table()
471 dev->caps.reserved_qps_cnt[sort[j - 1]]) { in mlx4_init_qp_table()
480 last_base -= dev->caps.reserved_qps_cnt[sort[i]]; in mlx4_init_qp_table()
481 dev->caps.reserved_qps_base[sort[i]] = last_base; in mlx4_init_qp_table()
483 dev->caps.reserved_qps_cnt[sort[i]]; in mlx4_init_qp_table()
499 if (reserved_from_bot + reserved_from_top > dev->caps.num_qps) { in mlx4_init_qp_table()
[all …]
HDeq.c88 if (dev->caps.flags & MLX4_DEV_CAP_FLAG_PORT_MNG_CHG_EV) in get_async_ev_mask()
90 if (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_RECOVERABLE_ERROR_EVENT) in get_async_ev_mask()
184 memcpy(s_eqe, eqe, dev->caps.eqe_size - 1); in slave_event()
202 slave == dev->caps.function) in mlx4_slave_event()
457 while ((eqe = next_eqe_sw(eq, dev->caps.eqe_factor))) { in mlx4_eq_int()
494 if (!ret && slave != dev->caps.function) { in mlx4_eq_int()
529 if (!ret && slave != dev->caps.function) { in mlx4_eq_int()
557 if (dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH) { in mlx4_eq_int()
585 if (dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH) in mlx4_eq_int()
620 if (!ret && slave != dev->caps.function) { in mlx4_eq_int()
[all …]
HDpd.c122 return mlx4_bitmap_init(&priv->pd_bitmap, dev->caps.num_pds, in mlx4_init_pd_table()
124 dev->caps.reserved_pds, 0); in mlx4_init_pd_table()
137 (1 << 16) - 1, dev->caps.reserved_xrcds + 1, 0); in mlx4_init_xrcd_table()
155 dev->caps.uar_page_size); in mlx4_uar_alloc()
221 bf->buf_size = dev->caps.bf_reg_size / 2; in mlx4_bf_alloc()
222 bf->reg = uar->bf_map + idx * dev->caps.bf_reg_size; in mlx4_bf_alloc()
223 if (uar->free_bf_bmap == (1 << dev->caps.bf_regs_per_page) - 1) in mlx4_bf_alloc()
253 idx = (bf->reg - bf->uar->bf_map) / dev->caps.bf_reg_size; in mlx4_bf_free()
287 if (dev->caps.num_uars <= 128) { in mlx4_init_uar_table()
289 dev->caps.num_uars); in mlx4_init_uar_table()
[all …]
HDprofile.c171 dev->caps.num_qps = profile[i].num; in mlx4_make_profile()
180 dev->caps.max_qp_dest_rdma = 1 << priv->qp_table.rdmarc_shift; in mlx4_make_profile()
192 dev->caps.num_srqs = profile[i].num; in mlx4_make_profile()
197 dev->caps.num_cqs = profile[i].num; in mlx4_make_profile()
202 dev->caps.num_eqs = roundup_pow_of_two(min_t(unsigned, dev_cap->max_eqs, in mlx4_make_profile()
205 init_hca->log_num_eqs = ilog2(dev->caps.num_eqs); in mlx4_make_profile()
208 dev->caps.num_mpts = profile[i].num; in mlx4_make_profile()
217 dev->caps.num_mtts = profile[i].num; in mlx4_make_profile()
226 if (dev->caps.steering_mode == in mlx4_make_profile()
228 dev->caps.num_mgms = profile[i].num; in mlx4_make_profile()
[all …]
HDfw.c270 field = dev->caps.num_ports; in mlx4_QUERY_FUNC_CAP_wrapper()
273 size = dev->caps.function_caps; /* set PF behaviours */ in mlx4_QUERY_FUNC_CAP_wrapper()
281 size = dev->caps.num_qps; in mlx4_QUERY_FUNC_CAP_wrapper()
286 size = dev->caps.num_srqs; in mlx4_QUERY_FUNC_CAP_wrapper()
291 size = dev->caps.num_cqs; in mlx4_QUERY_FUNC_CAP_wrapper()
294 size = dev->caps.num_eqs; in mlx4_QUERY_FUNC_CAP_wrapper()
297 size = dev->caps.reserved_eqs; in mlx4_QUERY_FUNC_CAP_wrapper()
302 size = dev->caps.num_mpts; in mlx4_QUERY_FUNC_CAP_wrapper()
307 size = dev->caps.num_mtts; in mlx4_QUERY_FUNC_CAP_wrapper()
310 size = dev->caps.num_mgms + dev->caps.num_amgms; in mlx4_QUERY_FUNC_CAP_wrapper()
[all …]
HDsense.c72 for (i = 1; i <= dev->caps.num_ports; i++) { in mlx4_do_sense_ports()
75 dev->caps.possible_type[i] == MLX4_PORT_TYPE_AUTO) { in mlx4_do_sense_ports()
86 for (i = 0; i < dev->caps.num_ports; i++) in mlx4_do_sense_ports()
101 mlx4_do_sense_ports(dev, stype, &dev->caps.port_type[1]); in mlx4_sense_port()
120 if (!(dev->caps.flags & MLX4_DEV_CAP_FLAG_DPDP)) in mlx4_start_sense()
139 for (port = 1; port <= dev->caps.num_ports; port++) in mlx4_sense_init()
HDmcg.c130 if (port < 1 || port > dev->caps.num_ports) in get_promisc_qp()
161 if (port < 1 || port > dev->caps.num_ports) in new_steering_entry()
211 if (members_count == dev->caps.num_qp_per_mgm) { in new_steering_entry()
248 if (port < 1 || port > dev->caps.num_ports) in existing_steering_entry()
296 if (port < 1 || port > dev->caps.num_ports) in check_duplicate_entry()
341 if (port < 1 || port > dev->caps.num_ports) in promisc_steering_entry()
380 if (port < 1 || port > dev->caps.num_ports) in can_remove_steering_entry()
436 if (port < 1 || port > dev->caps.num_ports) in add_promisc_qp()
489 if (members_count == dev->caps.num_qp_per_mgm) { in add_promisc_qp()
509 if (members_count == dev->caps.num_qp_per_mgm) { in add_promisc_qp()
[all …]
/NextBSD/sys/dev/acpica/
HDacpi_hpet.c89 uint32_t caps; member
104 uint32_t caps; member
189 t->caps |= HPET_TCNF_INT_ENB; in hpet_start()
193 if (t->mode == 1 && (t->caps & HPET_TCAP_PER_INT)) { in hpet_start()
194 t->caps |= HPET_TCNF_TYPE; in hpet_start()
196 t->caps | HPET_TCNF_VAL_SET); in hpet_start()
202 t->caps &= ~HPET_TCNF_TYPE; in hpet_start()
204 t->caps); in hpet_start()
225 t->caps &= ~(HPET_TCNF_INT_ENB | HPET_TCNF_TYPE); in hpet_stop()
226 bus_write_4(sc->mem_res, HPET_TIMER_CAP_CNF(t->num), t->caps); in hpet_stop()
[all …]
/NextBSD/sys/ofed/drivers/infiniband/hw/mlx4/
HDmain.c145 int dmfs = dev->caps.steering_mode == MLX4_STEERING_MODE_DEVICE_MANAGED; in check_flow_steering_support()
154 (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_DMFS_IPOIB)) && in check_flow_steering_support()
156 (dev->caps.flags2 & MLX4_DEV_CAP_FLAG2_FS_EN)); in check_flow_steering_support()
187 props->fw_ver = dev->dev->caps.fw_ver; in mlx4_ib_query_device()
195 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_BAD_PKEY_CNTR) in mlx4_ib_query_device()
197 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_BAD_QKEY_CNTR) in mlx4_ib_query_device()
199 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_APM) in mlx4_ib_query_device()
201 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_UD_AV_PORT) in mlx4_ib_query_device()
203 if (dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_IPOIB_CSUM) in mlx4_ib_query_device()
205 if (dev->dev->caps.max_gso_sz && dev->dev->caps.flags & MLX4_DEV_CAP_FLAG_BLH) in mlx4_ib_query_device()
[all …]
/NextBSD/tools/regression/security/cap_test/
HDcap_test_fcntl.c81 struct fd caps[] = { in test_fcntl() local
86 REQUIRE(caps[0].f_fd); in test_fcntl()
87 REQUIRE(caps[1].f_fd); in test_fcntl()
88 REQUIRE(caps[2].f_fd); in test_fcntl()
91 files[0], caps[0], in test_fcntl()
92 files[1], caps[1], in test_fcntl()
93 files[2], caps[2], in test_fcntl()
/NextBSD/sys/dev/rccgpio/
HDrccgpio.c56 uint32_t caps; member
60 { .pin = 11, .name = "reset switch", .caps = GPIO_PIN_INPUT },
61 { .pin = 15, .name = "red LED", .caps = GPIO_PIN_OUTPUT },
62 { .pin = 17, .name = "green LED", .caps = GPIO_PIN_OUTPUT },
64 { .pin = 16, .name = "HD1 LED", .caps = GPIO_PIN_OUTPUT },
65 { .pin = 18, .name = "HD2 LED", .caps = GPIO_PIN_OUTPUT },
124 rcc_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps) in rcc_gpio_pin_getcaps() argument
132 *caps = rcc_pins[pin].caps; in rcc_gpio_pin_getcaps()
147 *flags = rcc_pins[pin].caps; in rcc_gpio_pin_getflags()
189 if ((rcc_pins[pin].caps & GPIO_PIN_OUTPUT) == 0) in rcc_gpio_pin_set()
[all …]
/NextBSD/usr.sbin/ancontrol/
HDancontrol.c353 struct an_ltv_caps *caps; in an_dumpcaps() local
362 caps = (struct an_ltv_caps *)&areq; in an_dumpcaps()
365 an_printhex((char *)&caps->an_oui, 3); in an_dumpcaps()
367 an_printwords(&caps->an_prodnum, 1); in an_dumpcaps()
369 an_printstr((char *)&caps->an_manufname, 32); in an_dumpcaps()
371 an_printstr((char *)&caps->an_prodname, 16); in an_dumpcaps()
373 an_printstr((char *)&caps->an_prodvers, 1); in an_dumpcaps()
375 an_printhex((char *)&caps->an_oemaddr, ETHER_ADDR_LEN); in an_dumpcaps()
377 an_printhex((char *)&caps->an_aironetaddr, ETHER_ADDR_LEN); in an_dumpcaps()
379 if (caps->an_radiotype & AN_RADIOTYPE_80211_FH) in an_dumpcaps()
[all …]
/NextBSD/sys/dev/sound/pcm/
HDvchan.c55 struct pcmchan_caps caps; member
89 info->caps.fmtlist = info->fmtlist + in vchan_init()
117 if (!snd_fmtvalid(format, info->caps.fmtlist)) in vchan_setformat()
132 return (info->caps.maxspeed); in vchan_setspeed()
201 info->caps.fmtlist = info->fmtlist; in vchan_getcaps()
203 for (i = 0; info->caps.fmtlist[i] != 0; i++) { in vchan_getcaps()
204 if (info->caps.fmtlist[i] & AFMT_PASSTHROUGH) in vchan_getcaps()
208 info->caps.fmtlist[i] = pformat; in vchan_getcaps()
211 info->caps.minspeed = c->speed; in vchan_getcaps()
213 info->caps.minspeed = pspeed; in vchan_getcaps()
[all …]
/NextBSD/sys/dev/ahci/
HDahci.c158 ATA_OUTL(ctlr->r_mem, AHCI_CAP, ctlr->caps); in ahci_ctlr_reset()
195 ctlr->caps = ATA_INL(ctlr->r_mem, AHCI_CAP); in ahci_attach()
198 if (ctlr->caps & AHCI_CAP_EMS) in ahci_attach()
208 int nports = (ctlr->caps & AHCI_CAP_NPMASK) + 1; in ahci_attach()
220 (ctlr->caps & AHCI_CAP_SPM) == 0) in ahci_attach()
224 ctlr->caps &= ~AHCI_CAP_NPMASK; in ahci_attach()
228 ctlr->caps &= ~AHCI_CAP_NPMASK; in ahci_attach()
229 ctlr->caps |= 1; in ahci_attach()
233 ctlr->caps &= ~AHCI_CAP_NPMASK; in ahci_attach()
234 ctlr->caps |= 3; in ahci_attach()
[all …]
/NextBSD/sys/cam/ata/
HData_xpt.c147 u_int caps; member
431 (softc->caps & CTS_SATA_CAPS_H_PMREQ) ? 0x10 : 0x90, in probestart()
444 (softc->caps & CTS_SATA_CAPS_H_APST) ? 0x10 : 0x90, in probestart()
457 (softc->caps & CTS_SATA_CAPS_H_DMAAA) ? 0x10 : 0x90, in probestart()
462 if (softc->caps & CTS_SATA_CAPS_H_AN) in probestart()
476 (softc->caps & CTS_SATA_CAPS_H_AN) ? 0x10 : 0x90, in probestart()
690 u_int caps; in probedone() local
968 caps = cts.xport_specific.sata.caps & CTS_SATA_CAPS_H; in probedone()
971 caps = cts.xport_specific.ata.caps & CTS_ATA_CAPS_H; in probedone()
973 caps = 0; in probedone()
[all …]

123456789