/freebsd/sys/arm/allwinner/ |
H A D | aw_nmi.c | 73 enum intr_polarity pol; member 162 enum intr_polarity pol; in aw_nmi_map_fdt() local 181 pol = INTR_POLARITY_HIGH; in aw_nmi_map_fdt() 185 pol = INTR_POLARITY_LOW; in aw_nmi_map_fdt() 189 pol = INTR_POLARITY_HIGH; in aw_nmi_map_fdt() 193 pol = INTR_POLARITY_LOW; in aw_nmi_map_fdt() 203 *polp = pol; in aw_nmi_map_fdt() 241 enum intr_polarity pol; in aw_nmi_setup_intr() local 251 error = aw_nmi_map_fdt(dev, daf->ncells, daf->cells, &irq, &pol, &trig); in aw_nmi_setup_intr() 259 if (pol != nmi_intr->pol || trig != nmi_intr->tri) in aw_nmi_setup_intr() [all …]
|
H A D | a33_codec.c | 312 int fmt, pol, clk; in sun8i_codec_dai_init() local 318 pol = AUDIO_DAI_FORMAT_POLARITY(format); in sun8i_codec_dai_init() 344 if (!AUDIO_DAI_POLARITY_INVERTED_FRAME(pol)) in sun8i_codec_dai_init() 346 if (AUDIO_DAI_POLARITY_INVERTED_BCLK(pol)) in sun8i_codec_dai_init()
|
H A D | aw_i2s.c | 421 int fmt, pol; in aw_i2s_dai_init() local 428 pol = AUDIO_DAI_FORMAT_POLARITY(format); in aw_i2s_dai_init() 489 if (AUDIO_DAI_POLARITY_INVERTED_BCLK(pol)) in aw_i2s_dai_init() 491 if (AUDIO_DAI_POLARITY_INVERTED_FRAME(pol)) in aw_i2s_dai_init() 494 if (AUDIO_DAI_POLARITY_INVERTED_BCLK(pol)) in aw_i2s_dai_init() 496 if (!AUDIO_DAI_POLARITY_INVERTED_FRAME(pol)) in aw_i2s_dai_init()
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | v3_cpols.c | 23 static int i2r_certpol(X509V3_EXT_METHOD *method, STACK_OF(POLICYINFO) *pol, 94 POLICYINFO *pol; variable 133 pol = policy_section(ctx, polsect, ia5org); 135 if (pol == NULL) 144 pol = POLICYINFO_new(); 145 if (pol == NULL) { 150 pol->policyid = pobj; 152 if (!sk_POLICYINFO_push(pols, pol)) { 153 POLICYINFO_free(pol); 171 POLICYINFO *pol; in policy_section() local [all …]
|
/freebsd/usr.sbin/ip6addrctl/ |
H A D | ip6addrctl.c | 163 struct in6_addrpolicy *pol, *ep; in dump_policy() 183 for (pol = buf; pol + 1 <= ep; pol++) { 188 new->pc_policy = *pol; 200 struct in6_addrpolicy *pol; in make_policy_fromfile() 206 pol = &ent->pc_policy; in make_policy_fromfile() 213 if ((getnameinfo((struct sockaddr *)&pol->addr, in make_policy_fromfile() 214 sizeof(pol->addr), addrbuf, sizeof(addrbuf), in make_policy_fromfile() 219 if ((plen = mask2plen(&pol in make_policy_fromfile() 110 struct in6_addrpolicy *pol, *ep; get_policy() local 147 struct in6_addrpolicy *pol; dump_policy() local 254 parse_prefix(const char * prefix0,struct in6_addrpolicy * pol) parse_prefix() argument [all...] |
/freebsd/sys/powerpc/ofw/ |
H A D | openpic_ofw.c | 65 enum intr_trigger *trig, enum intr_polarity *pol); 149 enum intr_trigger *trig, enum intr_polarity *pol) in openpic_ofw_translate_code() argument 155 *pol = INTR_POLARITY_HIGH; in openpic_ofw_translate_code() 160 *pol = INTR_POLARITY_LOW; in openpic_ofw_translate_code() 165 *pol = INTR_POLARITY_HIGH; in openpic_ofw_translate_code() 170 *pol = INTR_POLARITY_LOW; in openpic_ofw_translate_code() 174 *pol = INTR_POLARITY_CONFORM; in openpic_ofw_translate_code()
|
/freebsd/sys/netinet6/ |
H A D | in6_src.c | 982 struct addrsel_policyent *new, *pol; in add_addrsel_policyent() local 990 TAILQ_FOREACH(pol, &V_addrsel_policytab, ape_entry) { in add_addrsel_policyent() 992 &pol->ape_policy.addr.sin6_addr) && in add_addrsel_policyent() 994 &pol->ape_policy.addrmask.sin6_addr)) { in add_addrsel_policyent() 1017 struct addrsel_policyent *pol; in delete_addrsel_policyent() local 1023 TAILQ_FOREACH(pol, &V_addrsel_policytab, ape_entry) { in delete_addrsel_policyent() 1025 &pol->ape_policy.addr.sin6_addr) && in delete_addrsel_policyent() 1027 &pol->ape_policy.addrmask.sin6_addr)) { in delete_addrsel_policyent() 1031 if (pol == NULL) { in delete_addrsel_policyent() 1037 TAILQ_REMOVE(&V_addrsel_policytab, pol, ape_entry); in delete_addrsel_policyent() [all …]
|
/freebsd/contrib/netbsd-tests/lib/librt/ |
H A 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/sys/dev/acpica/ |
H A D | acpi_resource.c | 65 int pol; member 75 u_int irqnum, trig, pol; in acpi_lookup_irq_handler() local 92 pol = res->Data.Irq.Polarity; in acpi_lookup_irq_handler() 104 pol = res->Data.ExtendedIrq.Polarity; in acpi_lookup_irq_handler() 118 req->pol = pol; in acpi_lookup_irq_handler() 149 int pol, trig; in acpi_config_intr() local 157 pol = res->Data.Irq.Polarity; in acpi_config_intr() 164 pol = res->Data.ExtendedIrq.Polarity; in acpi_config_intr() 171 if (irq < 16 && trig == ACPI_EDGE_SENSITIVE && pol == ACPI_ACTIVE_LOW && in acpi_config_intr() 174 pol = ACPI_ACTIVE_HIGH; in acpi_config_intr() [all …]
|
H A D | acpi_bus_if.m | 40 int trig, int pol) 47 return (ACPI_BUS_MAP_INTR(parent, dev, irq, trig, pol)); 64 int pol;
|
/freebsd/sys/powerpc/powerpc/ |
H A D | intr_machdep.c | 103 enum intr_polarity pol; member 250 i->pol = INTR_POLARITY_CONFORM; in intr_lookup() 494 &i->trig, &i->pol); in powerpc_enable_intr() 496 i->pol != INTR_POLARITY_CONFORM) in powerpc_enable_intr() 497 PIC_CONFIG(i->pic, i->intline, i->trig, i->pol); in powerpc_enable_intr() 560 i->fwcode, &i->trig, &i->pol); in powerpc_setup_intr_int() 563 i->pol != INTR_POLARITY_CONFORM) in powerpc_setup_intr_int() 564 PIC_CONFIG(i->pic, i->intline, i->trig, i->pol); in powerpc_setup_intr_int() 608 i->pol = INTR_POLARITY_CONFORM; in powerpc_fw_config_intr() 613 &i->pol); in powerpc_fw_config_intr() [all …]
|
H A D | pic_if.m | 39 int code, enum intr_trigger *trig, enum intr_polarity *pol) 42 *pol = INTR_POLARITY_CONFORM; 58 enum intr_polarity *pol; 65 enum intr_polarity pol;
|
/freebsd/sys/powerpc/mpc85xx/ |
H A D | atpic.c | 82 enum intr_trigger *trig, enum intr_polarity *pol); 246 enum intr_polarity pol) in atpic_config() argument 333 enum intr_trigger *trig, enum intr_polarity *pol) in atpic_ofw_translate_code() argument 339 *pol = INTR_POLARITY_LOW; in atpic_ofw_translate_code() 344 *pol = INTR_POLARITY_HIGH; in atpic_ofw_translate_code() 349 *pol = INTR_POLARITY_LOW; in atpic_ofw_translate_code() 354 *pol = INTR_POLARITY_HIGH; in atpic_ofw_translate_code() 358 *pol = INTR_POLARITY_CONFORM; in atpic_ofw_translate_code()
|
/freebsd/sys/arm/arm/ |
H A D | gic.c | 616 enum intr_polarity pol) in gic_config() argument 629 if (pol == INTR_POLARITY_LOW) { in gic_config() 632 } else if (pol == INTR_POLARITY_HIGH) { in gic_config() 764 enum intr_polarity pol; in gic_map_intr() local 780 if (gic_map_fdt(dev, daf->ncells, daf->cells, &irq, &pol, in gic_map_intr() 793 pol = daa->pol; in gic_map_intr() 800 if (gic_map_msi(dev, dam, &irq, &pol, &trig) != 0) in gic_map_intr() 809 if (pol != INTR_POLARITY_CONFORM && pol != INTR_POLARITY_LOW && in gic_map_intr() 810 pol != INTR_POLARITY_HIGH) in gic_map_intr() 818 *polp = pol; in gic_map_intr() [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | pkits-test.pl | 819 my $pol = -1; 841 $pol = 1; 850 $pol = 2; 854 if ( $pol == 1 ) { 858 elsif ( $pol == 2 ) {
|
/freebsd/sys/x86/acpica/ |
H A D | madt.c | 551 enum intr_trigger *trig, enum intr_polarity *pol) in madt_parse_interrupt_values() argument 568 *pol = interrupt_polarity(intr->IntiFlags, intr->SourceIrq); in madt_parse_interrupt_values() 591 *pol = INTR_POLARITY_HIGH; in madt_parse_interrupt_values() 593 *pol = INTR_POLARITY_LOW; in madt_parse_interrupt_values() 599 *pol == INTR_POLARITY_HIGH ? "high" : "low"); in madt_parse_interrupt_values() 613 enum intr_polarity pol; in madt_parse_interrupt_override() local 628 madt_parse_interrupt_values(intr, &trig, &pol); in madt_parse_interrupt_override() 654 ioapic_set_polarity(new_ioapic, new_pin, pol); in madt_parse_interrupt_override()
|
/freebsd/sys/dev/sound/fdt/ |
H A D | audio_soc.c | 110 int fmt, pol, clk; in audio_soc_reverse_clocks() local 113 pol = AUDIO_DAI_FORMAT_POLARITY(format); in audio_soc_reverse_clocks() 131 return AUDIO_DAI_FORMAT(fmt, pol, clk); in audio_soc_reverse_clocks() 429 unsigned int fmt, pol, clk; in audio_soc_attach() local 487 pol = frame_inversion ? in audio_soc_attach() 490 pol = frame_inversion ? in audio_soc_attach() 494 sc->format = AUDIO_DAI_FORMAT(fmt, pol, clk); in audio_soc_attach()
|
H A D | audio_dai.h | 64 #define AUDIO_DAI_FORMAT(fmt, pol, clk) (((fmt) << 16) | ((pol) << 8) | (clk)) argument
|
/freebsd/sys/x86/isa/ |
H A D | atpic.c | 151 enum intr_polarity pol); 347 enum intr_polarity pol) in atpic_config_intr() argument 355 if (pol == INTR_POLARITY_CONFORM) in atpic_config_intr() 356 pol = INTR_POLARITY_HIGH; in atpic_config_intr() 358 if ((trig == INTR_TRIGGER_EDGE && pol == INTR_POLARITY_LOW) || in atpic_config_intr() 359 (trig == INTR_TRIGGER_LEVEL && pol == INTR_POLARITY_HIGH)) { in atpic_config_intr() 363 pol == INTR_POLARITY_HIGH ? "high" : "low"); in atpic_config_intr()
|
/freebsd/sys/dev/mlx5/mlx5_accel/ |
H A D | mlx5_ipsec_fs.c | 100 struct mlx5_flow_table *pol; member 121 struct mlx5e_ipsec_miss pol; member 151 struct mlx5e_ipsec_miss pol; member 692 mlx5_del_flow_rules(&tx->pol.rule); in tx_destroy() 693 mlx5_destroy_flow_group(tx->pol.group); in tx_destroy() 694 mlx5_destroy_flow_table(tx->ft.pol); in tx_destroy() 716 dst.ft = tx->ft.pol; in ipsec_tx_roce_rule_setup() 877 &tx->ft.pol); in tx_create() 888 tx->ft.pol = ft; in tx_create() 891 err = ipsec_miss_create(mdev, tx->ft.pol, &tx->pol, &dest); in tx_create() [all …]
|
/freebsd/sys/x86/x86/ |
H A D | io_apic.c | 123 enum intr_polarity pol); 552 enum intr_polarity pol) in ioapic_config_intr() argument 558 KASSERT(!(trig == INTR_TRIGGER_CONFORM || pol == INTR_POLARITY_CONFORM), in ioapic_config_intr() 570 pol = INTR_POLARITY_HIGH; in ioapic_config_intr() 580 if (intpin->io_activehi != (pol == INTR_POLARITY_HIGH)) { in ioapic_config_intr() 584 pol == INTR_POLARITY_HIGH ? "high" : "low"); in ioapic_config_intr() 585 intpin->io_activehi = (pol == INTR_POLARITY_HIGH); in ioapic_config_intr() 853 ioapic_set_polarity(ioapic_drv_t io, u_int pin, enum intr_polarity pol) in ioapic_set_polarity() argument 857 if (pin >= io->io_numintr || pol == INTR_POLARITY_CONFORM) in ioapic_set_polarity() 861 activehi = (pol == INTR_POLARITY_HIGH); in ioapic_set_polarity() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/phy/ |
H A D | phy-miphy365x.txt | 36 - st,pcie-tx-pol-inv : Bool property to invert the polarity PCIe Tx (Txn/Txp) 37 - st,sata-tx-pol-inv : Bool property to invert the polarity SATA Tx (Txn/Txp) 59 st,pcie-tx-pol-inv;
|
/freebsd/sys/arm64/arm64/ |
H A D | nexus.c | 264 enum intr_polarity pol) in nexus_config_intr() argument 521 static int nexus_acpi_map_intr(device_t dev, device_t child, u_int irq, int trig, int pol); 562 nexus_acpi_map_intr(device_t dev, device_t child, u_int irq, int trig, int pol) in nexus_acpi_map_intr() argument 571 acpi_data->pol = pol; in nexus_acpi_map_intr()
|
/freebsd/lib/libc/net/ |
H A D | name6.c | 737 struct in6_addrpolicy *pol, *ep; in get_addrselectpolicy() local 749 for (pol = (struct in6_addrpolicy *)buf; pol + 1 <= ep; pol++) { in get_addrselectpolicy() 756 new->pc_policy = *pol; in get_addrselectpolicy() 784 struct in6_addrpolicy *pol; in match_addrselectpolicy() local 807 pol = &ent->pc_policy; in match_addrselectpolicy() 810 mp = (u_char *)&pol->addrmask.sin6_addr; in match_addrselectpolicy() 813 p = (u_char *)&pol->addr.sin6_addr; in match_addrselectpolicy()
|
/freebsd/sys/arm/broadcom/bcm2835/ |
H A D | bcm2835_firmware.h | 178 uint32_t pol; member 188 uint32_t pol; member
|