| /freebsd-12-stable/sys/arm/allwinner/ |
| D | aw_nmi.c | 76 enum intr_polarity pol; member 165 enum intr_polarity pol; in aw_nmi_map_fdt() local 184 pol = INTR_POLARITY_HIGH; in aw_nmi_map_fdt() 188 pol = INTR_POLARITY_LOW; in aw_nmi_map_fdt() 192 pol = INTR_POLARITY_HIGH; in aw_nmi_map_fdt() 196 pol = INTR_POLARITY_LOW; in aw_nmi_map_fdt() 206 *polp = pol; in aw_nmi_map_fdt() 244 enum intr_polarity pol; in aw_nmi_setup_intr() local 254 error = aw_nmi_map_fdt(dev, daf->ncells, daf->cells, &irq, &pol, &trig); in aw_nmi_setup_intr() 262 if (pol != nmi_intr->pol || trig != nmi_intr->tri) in aw_nmi_setup_intr() [all …]
|
| /freebsd-12-stable/crypto/openssl/crypto/x509v3/ |
| D | v3_cpols.c | 22 static int i2r_certpol(X509V3_EXT_METHOD *method, STACK_OF(POLICYINFO) *pol, 93 POLICYINFO *pol; variable 134 pol = policy_section(ctx, polsect, ia5org); 136 if (pol == NULL) 145 pol = POLICYINFO_new(); 146 if (pol == NULL) { 151 pol->policyid = pobj; 153 if (!sk_POLICYINFO_push(pols, pol)) { 154 POLICYINFO_free(pol); 172 POLICYINFO *pol; in policy_section() local [all …]
|
| /freebsd-12-stable/usr.sbin/ip6addrctl/ |
| D | ip6addrctl.c | 114 struct in6_addrpolicy *pol, *ep; in get_policy() local 134 for (pol = buf; pol + 1 <= ep; pol++) { in get_policy() 139 new->pc_policy = *pol; in get_policy() 151 struct in6_addrpolicy *pol; in dump_policy() local 157 pol = &ent->pc_policy; in dump_policy() 164 if ((getnameinfo((struct sockaddr *)&pol->addr, in dump_policy() 165 sizeof(pol->addr), addrbuf, sizeof(addrbuf), in dump_policy() 170 if ((plen = mask2plen(&pol->addrmask)) < 0) { in dump_policy() 182 printf(" %5d %5d %8llu\n", pol->preced, pol->label, in dump_policy() 183 (unsigned long long)pol->use); in dump_policy() [all …]
|
| /freebsd-12-stable/sys/powerpc/ofw/ |
| D | openpic_ofw.c | 68 enum intr_trigger *trig, enum intr_polarity *pol); 142 enum intr_trigger *trig, enum intr_polarity *pol) in openpic_ofw_translate_code() argument 148 *pol = INTR_POLARITY_HIGH; in openpic_ofw_translate_code() 153 *pol = INTR_POLARITY_LOW; in openpic_ofw_translate_code() 158 *pol = INTR_POLARITY_HIGH; in openpic_ofw_translate_code() 163 *pol = INTR_POLARITY_LOW; in openpic_ofw_translate_code() 167 *pol = INTR_POLARITY_CONFORM; in openpic_ofw_translate_code()
|
| /freebsd-12-stable/sys/arm/amlogic/aml8726/ |
| D | aml8726_usb_phy-m6.c | 62 uint32_t pol; member 104 #define PIN_ON_FLAG(pol) ((pol) == 0 ? \ argument 106 #define PIN_OFF_FLAG(pol) ((pol) == 0 ? \ argument 181 sc->pwr_en[i].pol = prop[i * 3 + 2]; in aml8726_usb_phy_attach() 196 sc->hub_rst.pol = prop[2]; in aml8726_usb_phy_attach() 212 PIN_ON_FLAG(sc->pwr_en[i].pol)) != 0 || in aml8726_usb_phy_attach() 328 PIN_ON_FLAG(sc->hub_rst.pol)) != 0 || in aml8726_usb_phy_attach() 336 PIN_OFF_FLAG(sc->hub_rst.pol)) != 0) in aml8726_usb_phy_attach() 355 PIN_OFF_FLAG(sc->pwr_en[i].pol)); in aml8726_usb_phy_attach() 389 PIN_OFF_FLAG(sc->pwr_en[i].pol)); in aml8726_usb_phy_detach()
|
| D | aml8726_usb_phy-m3.c | 61 uint32_t pol; member 108 #define PIN_ON_FLAG(pol) ((pol) == 0 ? \ argument 110 #define PIN_OFF_FLAG(pol) ((pol) == 0 ? \ argument 209 sc->pwr_en[i].pol = prop[i * 3 + 2]; in aml8726_usb_phy_attach() 227 PIN_ON_FLAG(sc->pwr_en[i].pol)) != 0 || in aml8726_usb_phy_attach() 365 PIN_OFF_FLAG(sc->pwr_en[i].pol)); in aml8726_usb_phy_attach() 399 PIN_OFF_FLAG(sc->pwr_en[i].pol)); in aml8726_usb_phy_detach()
|
| D | aml8726_sdxc-m8.c | 111 uint32_t pol; member 156 #define PIN_ON_FLAG(pol) ((pol) == 0 ? \ argument 158 #define PIN_OFF_FLAG(pol) ((pol) == 0 ? \ argument 187 PIN_OFF_FLAG(sc->pwr_en.pol))); in aml8726_sdxc_power_off() 198 PIN_ON_FLAG(sc->pwr_en.pol))); in aml8726_sdxc_power_on() 779 sc->pwr_en.pol = prop[2]; in aml8726_sdxc_attach() 848 sc->vselect.pol = 1; in aml8726_sdxc_attach() 888 sc->card_rst.pol = prop[2]; in aml8726_sdxc_attach() 1154 PIN_ON_FLAG(sc->card_rst.pol)) != 0 || in aml8726_sdxc_update_ios() 1163 PIN_OFF_FLAG(sc->card_rst.pol)) != 0) in aml8726_sdxc_update_ios()
|
| /freebsd-12-stable/sys/powerpc/powerpc/ |
| D | intr_machdep.c | 106 enum intr_polarity pol; member 212 i->pol = INTR_POLARITY_CONFORM; in intr_lookup() 462 &i->trig, &i->pol); in powerpc_enable_intr() 464 i->pol != INTR_POLARITY_CONFORM) in powerpc_enable_intr() 465 PIC_CONFIG(i->pic, i->intline, i->trig, i->pol); in powerpc_enable_intr() 508 i->fwcode, &i->trig, &i->pol); in powerpc_setup_intr() 511 i->pol != INTR_POLARITY_CONFORM) in powerpc_setup_intr() 512 PIC_CONFIG(i->pic, i->intline, i->trig, i->pol); in powerpc_setup_intr() 555 i->pol = INTR_POLARITY_CONFORM; in powerpc_fw_config_intr() 560 &i->pol); in powerpc_fw_config_intr() [all …]
|
| D | pic_if.m | 40 int code, enum intr_trigger *trig, enum intr_polarity *pol) 43 *pol = INTR_POLARITY_CONFORM; 58 enum intr_polarity *pol; 65 enum intr_polarity pol;
|
| /freebsd-12-stable/contrib/netbsd-tests/lib/librt/ |
| D | t_sched.c | 77 static const int pol[3] = { SCHED_OTHER, SCHED_FIFO, SCHED_RR }; in ATF_TC_BODY() local 93 for (i = 0; i < __arraycount(pol); i++) { in ATF_TC_BODY() 95 pmax = sched_get_priority_max(pol[i]); in ATF_TC_BODY() 96 pmin = sched_get_priority_min(pol[i]); in ATF_TC_BODY() 105 sched_priority_set(int pri, int pol) in sched_priority_set() argument 112 ATF_REQUIRE(sched_setscheduler(0, pol, &sched) == 0); in sched_priority_set() 117 ATF_CHECK_EQ(sched_getscheduler(0), pol); in sched_priority_set()
|
| /freebsd-12-stable/sys/arm/annapurna/alpine/ |
| D | alpine_common.c | 48 int *interrupt, int *trig, int *pol); 52 int *trig, int *pol) in alpine_pic_decode_fdt() argument 56 rv = gic_decode_fdt(iparent, intr, interrupt, trig, pol); in alpine_pic_decode_fdt() 63 (*arm_config_irq)(*interrupt, *trig, *pol); in alpine_pic_decode_fdt()
|
| /freebsd-12-stable/sys/dev/acpica/ |
| D | acpi_resource.c | 64 int pol; member 72 u_int irqnum, irq, trig, pol; in acpi_lookup_irq_handler() local 80 pol = res->Data.Irq.Polarity; in acpi_lookup_irq_handler() 87 pol = res->Data.ExtendedIrq.Polarity; in acpi_lookup_irq_handler() 106 req->pol = pol; in acpi_lookup_irq_handler() 137 int pol, trig; in acpi_config_intr() local 145 pol = res->Data.Irq.Polarity; in acpi_config_intr() 152 pol = res->Data.ExtendedIrq.Polarity; in acpi_config_intr() 165 if (irq < 16 && trig == ACPI_EDGE_SENSITIVE && pol == ACPI_ACTIVE_LOW) in acpi_config_intr() 166 pol = ACPI_ACTIVE_HIGH; in acpi_config_intr() [all …]
|
| /freebsd-12-stable/sys/netinet6/ |
| D | in6_src.c | 1114 struct addrsel_policyent *new, *pol; in add_addrsel_policyent() local 1122 TAILQ_FOREACH(pol, &V_addrsel_policytab, ape_entry) { in add_addrsel_policyent() 1124 &pol->ape_policy.addr.sin6_addr) && in add_addrsel_policyent() 1126 &pol->ape_policy.addrmask.sin6_addr)) { in add_addrsel_policyent() 1149 struct addrsel_policyent *pol; in delete_addrsel_policyent() local 1155 TAILQ_FOREACH(pol, &V_addrsel_policytab, ape_entry) { in delete_addrsel_policyent() 1157 &pol->ape_policy.addr.sin6_addr) && in delete_addrsel_policyent() 1159 &pol->ape_policy.addrmask.sin6_addr)) { in delete_addrsel_policyent() 1163 if (pol == NULL) { in delete_addrsel_policyent() 1169 TAILQ_REMOVE(&V_addrsel_policytab, pol, ape_entry); in delete_addrsel_policyent() [all …]
|
| /freebsd-12-stable/sys/arm/arm/ |
| D | gic.c | 599 enum intr_polarity pol) in gic_config() argument 612 if (pol == INTR_POLARITY_LOW) { in gic_config() 615 } else if (pol == INTR_POLARITY_HIGH) { in gic_config() 747 enum intr_polarity pol; in gic_map_intr() local 763 if (gic_map_fdt(dev, daf->ncells, daf->cells, &irq, &pol, in gic_map_intr() 776 pol = daa->pol; in gic_map_intr() 783 if (gic_map_msi(dev, dam, &irq, &pol, &trig) != 0) in gic_map_intr() 792 if (pol != INTR_POLARITY_CONFORM && pol != INTR_POLARITY_LOW && in gic_map_intr() 793 pol != INTR_POLARITY_HIGH) in gic_map_intr() 801 *polp = pol; in gic_map_intr() [all …]
|
| D | intr.c | 80 enum intr_polarity pol) = NULL; 114 int i, rv, interrupt, trig, pol; in intr_fdt_map_irq() local 122 rv = intr_decode(intr_parent, intr, &interrupt, &trig, &pol); in intr_fdt_map_irq()
|
| /freebsd-12-stable/sys/powerpc/mpc85xx/ |
| D | atpic.c | 85 enum intr_trigger *trig, enum intr_polarity *pol); 252 enum intr_polarity pol) in atpic_config() argument 339 enum intr_trigger *trig, enum intr_polarity *pol) in atpic_ofw_translate_code() argument 345 *pol = INTR_POLARITY_LOW; in atpic_ofw_translate_code() 350 *pol = INTR_POLARITY_HIGH; in atpic_ofw_translate_code() 355 *pol = INTR_POLARITY_LOW; in atpic_ofw_translate_code() 360 *pol = INTR_POLARITY_HIGH; in atpic_ofw_translate_code() 364 *pol = INTR_POLARITY_CONFORM; in atpic_ofw_translate_code()
|
| /freebsd-12-stable/sys/x86/acpica/ |
| D | madt.c | 534 enum intr_trigger *trig, enum intr_polarity *pol) in madt_parse_interrupt_values() argument 551 *pol = interrupt_polarity(intr->IntiFlags, intr->SourceIrq); in madt_parse_interrupt_values() 574 *pol = INTR_POLARITY_HIGH; in madt_parse_interrupt_values() 576 *pol = INTR_POLARITY_LOW; in madt_parse_interrupt_values() 582 *pol == INTR_POLARITY_HIGH ? "high" : "low"); in madt_parse_interrupt_values() 596 enum intr_polarity pol; in madt_parse_interrupt_override() local 611 madt_parse_interrupt_values(intr, &trig, &pol); in madt_parse_interrupt_override() 637 ioapic_set_polarity(new_ioapic, new_pin, pol); in madt_parse_interrupt_override()
|
| /freebsd-12-stable/sys/mips/ingenic/ |
| D | jz4780_gpio.c | 612 enum intr_polarity pol; in jz_gpio_map_intr() local 620 if (jz_gpio_map_intr_fdt(dev, data, &irq, &pol, &trig) != 0) in jz_gpio_map_intr() 633 *polp = pol; in jz_gpio_map_intr() 661 enum intr_polarity pol; in jz4780_gpio_pic_setup_intr() local 669 if (jz_gpio_map_intr(dev, data, &irq, &pol, &trig)) in jz4780_gpio_pic_setup_intr() 678 if ((pol != INTR_POLARITY_CONFORM && pol != pin->intr_polarity) || in jz4780_gpio_pic_setup_intr() 685 if (pol == INTR_POLARITY_CONFORM) in jz4780_gpio_pic_setup_intr() 686 pol = INTR_POLARITY_LOW; /* just pick some */ in jz4780_gpio_pic_setup_intr() 702 if (pol == INTR_POLARITY_LOW) in jz4780_gpio_pic_setup_intr() 709 pin->intr_polarity = pol; in jz4780_gpio_pic_setup_intr()
|
| /freebsd-12-stable/sys/x86/xen/ |
| D | xen_nexus.c | 94 enum intr_polarity pol) in nexus_xen_config_intr() argument 103 ret = xen_register_pirq(irq, trig, pol); in nexus_xen_config_intr() 108 return (intr_config_intr(irq, trig, pol)); in nexus_xen_config_intr()
|
| D | pvcpu_enum.c | 87 enum intr_polarity pol; in madt_parse_interrupt_override() local 97 madt_parse_interrupt_values(intr, &trig, &pol); in madt_parse_interrupt_override() 109 ret = xen_register_pirq(intr->GlobalIrq, trig, pol); in madt_parse_interrupt_override()
|
| /freebsd-12-stable/sys/arm/freescale/imx/ |
| D | imx_common.c | 58 int *pol) in fdt_intc_decode_ic() argument 63 *pol = INTR_POLARITY_CONFORM; in fdt_intc_decode_ic()
|
| /freebsd-12-stable/sys/arm/versatile/ |
| D | versatile_common.c | 55 int *pol) in fdt_intc_decode_ic() argument 63 *pol = INTR_POLARITY_CONFORM; in fdt_intc_decode_ic()
|
| /freebsd-12-stable/sys/x86/isa/ |
| D | atpic.c | 147 enum intr_polarity pol); 344 enum intr_polarity pol) in atpic_config_intr() argument 352 if (pol == INTR_POLARITY_CONFORM) in atpic_config_intr() 353 pol = INTR_POLARITY_HIGH; in atpic_config_intr() 355 if ((trig == INTR_TRIGGER_EDGE && pol == INTR_POLARITY_LOW) || in atpic_config_intr() 356 (trig == INTR_TRIGGER_LEVEL && pol == INTR_POLARITY_HIGH)) { in atpic_config_intr() 360 pol == INTR_POLARITY_HIGH ? "high" : "low"); in atpic_config_intr()
|
| /freebsd-12-stable/sys/arm64/arm64/ |
| D | gic_v3.c | 584 enum intr_polarity pol; in do_gic_v3_map_intr() local 601 if (gic_map_fdt(dev, daf->ncells, daf->cells, &irq, &pol, in do_gic_v3_map_intr() 610 pol = daa->pol; in do_gic_v3_map_intr() 617 if (gic_map_msi(dev, dam, &irq, &pol, &trig) != 0) in do_gic_v3_map_intr() 626 switch (pol) { in do_gic_v3_map_intr() 645 *polp = pol; in do_gic_v3_map_intr() 674 enum intr_polarity pol; in gic_v3_setup_intr() local 682 error = do_gic_v3_map_intr(dev, data, &irq, &pol, &trig); in gic_v3_setup_intr() 686 if (gi->gi_irq != irq || pol == INTR_POLARITY_CONFORM || in gic_v3_setup_intr() 692 if (pol != gi->gi_pol || trig != gi->gi_trig) in gic_v3_setup_intr() [all …]
|
| D | nexus.c | 110 enum intr_polarity pol); 292 enum intr_polarity pol) in nexus_config_intr() argument 484 static int nexus_acpi_map_intr(device_t dev, device_t child, u_int irq, int trig, int pol); 526 nexus_acpi_map_intr(device_t dev, device_t child, u_int irq, int trig, int pol) in nexus_acpi_map_intr() argument 535 acpi_data->pol = pol; in nexus_acpi_map_intr()
|