Home
last modified time | relevance | path

Searched refs:ihp (Results 1 – 25 of 111) sorted by relevance

12345

/netbsd/src/external/bsd/ipf/dist/ipsd/
Dipsd.c79 int findhit(ihp, src, dport) in findhit() argument
80 ipsd_t *ihp; in findhit()
89 if (ihp->sd_sz == 4) {
90 for (i = 0, sh = ihp->sd_hit; i < ihp->sd_cnt; i++, sh++)
94 for (i = ihp->sd_cnt / 2, j = (i / 2) - 1; j >= 0; j--) {
95 k = ihp->sd_hit[i].sh_ip.s_addr - src.s_addr;
116 ipsd_t *ihp; local
123 ihp = iphits[i];
124 if (findhit(ihp, ip->ip_src, tcp->th_dport))
126 sh = ihp->sd_hit + ihp->sd_cnt;
[all …]
Dipsdr.c89 int findhit(ihp, src, dport) in findhit() argument
90 ipsd_t *ihp; in findhit()
99 if (ihp->sd_sz == 4) {
100 for (i = 0, sh = ihp->sd_hit; i < ihp->sd_cnt; i++, sh++)
104 for (i = ihp->sd_cnt / 2, j = (i / 2) - 1; j >= 0; j--) {
105 k = ihp->sd_hit[i].sh_ip.s_addr - src.s_addr;
127 ipsd_t *ihp; local
134 ihp = iphits[i];
135 if (findhit(ihp, srcip, dport))
137 sh = ihp->sd_hit + ihp->sd_cnt;
[all …]
/netbsd/src/sys/arch/sandpoint/pci/
Dpci_machdep.c238 pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) in pci_intr_map() argument
297 *ihp = 8; /* pin C only, indeed */ in pci_intr_map()
306 *ihp = 2 + line; in pci_intr_map()
321 *ihp = 2; in pci_intr_map()
330 *ihp = (line + pin) & 03; in pci_intr_map()
345 *ihp = 2; in pci_intr_map()
349 *ihp = (line == 13) ? 4 : line - 11; in pci_intr_map()
353 *ihp = line - 13; in pci_intr_map()
357 *ihp = (line == 12) ? 4 : line - 13; in pci_intr_map()
361 *ihp = (line < 15) ? line - 13 : line - 12; in pci_intr_map()
[all …]
/netbsd/src/sys/arch/powerpc/pci/
Dpci_machdep_common.c139 genppc_pci_intr_setattr(void *v, pci_intr_handle_t *ihp, int attr, in genppc_pci_intr_setattr() argument
157 pci_intr_handle_t *ihp; in genppc_pci_intr_alloc() local
162 ihp = kmem_alloc(sizeof(*ihp), KM_SLEEP); in genppc_pci_intr_alloc()
163 if (pci_intr_map(pa, ihp)) { in genppc_pci_intr_alloc()
164 kmem_free(ihp, sizeof(*ihp)); in genppc_pci_intr_alloc()
168 *ihps = ihp; in genppc_pci_intr_alloc()
215 genppc_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) in genppc_pci_intr_map() argument
263 *ihp = line; in genppc_pci_intr_map()
267 *ihp = -1; in genppc_pci_intr_map()
/netbsd/src/sys/arch/sparc/dev/
Dvme_machdep.c623 struct sparc_vme_intr_handle *ihp = (vme_intr_handle_t)arg; in vmeintr4() local
627 level = (ihp->pri << 1) | 1; in vmeintr4()
637 printf("vme: spurious interrupt at VME level %d\n", ihp->pri); in vmeintr4()
642 for (; ihp; ihp = ihp->next) in vmeintr4()
643 if (ihp->vec == vec && ihp->ih.ih_fun) { in vmeintr4()
644 splx(ihp->ih.ih_classipl); in vmeintr4()
645 rv |= (ihp->ih.ih_fun)(ihp->ih.ih_arg); in vmeintr4()
656 struct sparc_vme_intr_handle *ihp = (vme_intr_handle_t)arg; in vmeintr4m() local
660 level = (ihp->pri << 1) | 1; in vmeintr4m()
666 (*(volatile int *)&ihp->sc->sc_reg->vmebus_afsr); in vmeintr4m()
[all …]
/netbsd/src/sys/arch/evbarm/iq80310/
Diq80310_pci.c83 iq80310_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) in iq80310_pci_intr_map() argument
109 *ihp = XINT3_IRQ(2); in iq80310_pci_intr_map()
112 *ihp = XINT3_IRQ(1); in iq80310_pci_intr_map()
115 *ihp = XINT3_IRQ(4); in iq80310_pci_intr_map()
127 iq80310_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) in iq80310_pci_intr_map() argument
201 *ihp = XINT3_IRQ(XINT3_ETHERNET); in iq80310_pci_intr_map()
218 *ihp = XINT3_IRQ(XINT3_SINTD); in iq80310_pci_intr_map()
224 *ihp = XINT3_IRQ(XINT3_SINTD); in iq80310_pci_intr_map()
226 *ihp = XINT0_IRQ(pa->pa_intrpin - 1); in iq80310_pci_intr_map()
/netbsd/src/sys/arch/acorn32/podulebus/
Drapide.c199 irqhandler_t *ihp; in rapide_attach() local
295 ihp = &rcp->rc_ih; in rapide_attach()
296 ihp->ih_func = rapide_intr; in rapide_attach()
297 ihp->ih_arg = rcp; in rapide_attach()
298 ihp->ih_level = IPL_BIO; in rapide_attach()
299 ihp->ih_name = "rapide"; in rapide_attach()
300 ihp->ih_maskaddr = pa->pa_podule->irq_addr; in rapide_attach()
301 ihp->ih_maskbits = rcp->rc_irqmask; in rapide_attach()
302 if (irq_claim(sc->sc_podule->interrupt, ihp)) in rapide_attach()
341 irqhandler_t *ihp = &rcp->rc_ih; in rapide_intr() local
[all …]
Dsimide.c163 irqhandler_t *ihp; in simide_attach() local
285 ihp = &scp->sc_ih; in simide_attach()
286 ihp->ih_func = simide_intr; in simide_attach()
287 ihp->ih_arg = scp; in simide_attach()
288 ihp->ih_level = IPL_BIO; in simide_attach()
289 ihp->ih_name = "simide"; in simide_attach()
290 ihp->ih_maskaddr = pa->pa_podule->irq_addr; in simide_attach()
291 ihp->ih_maskbits = scp->sc_irqmask; in simide_attach()
292 if (irq_claim(sc->sc_podule->interrupt, ihp)) in simide_attach()
331 irqhandler_t *ihp = &scp->sc_ih; in simide_intr() local
[all …]
/netbsd/src/sys/arch/alpha/pci/
Dpci_machdep.c204 pci_intr_handle_t * const ihp) in alpha_pci_generic_intr_map() argument
239 alpha_pci_intr_handle_init(ihp, line, 0); in alpha_pci_generic_intr_map()
463 alpha_pci_intr_handle_init(pci_intr_handle_t * const ihp, u_int const irq, in alpha_pci_intr_handle_init() argument
466 ihp->value = __SHIFTIN(irq, ALPHA_PCI_INTR_HANDLE_IRQ) | in alpha_pci_intr_handle_init()
471 alpha_pci_intr_handle_set_irq(pci_intr_handle_t * const ihp, u_int const irq) in alpha_pci_intr_handle_set_irq() argument
473 ihp->value = (ihp->value & ALPHA_PCI_INTR_HANDLE_FLAGS) | in alpha_pci_intr_handle_set_irq()
478 alpha_pci_intr_handle_get_irq(const pci_intr_handle_t * const ihp) in alpha_pci_intr_handle_get_irq() argument
480 return __SHIFTOUT(ihp->value, ALPHA_PCI_INTR_HANDLE_IRQ); in alpha_pci_intr_handle_get_irq()
484 alpha_pci_intr_handle_set_flags(pci_intr_handle_t * const ihp, in alpha_pci_intr_handle_set_flags() argument
487 ihp->value = (ihp->value & ALPHA_PCI_INTR_HANDLE_IRQ) | in alpha_pci_intr_handle_set_flags()
[all …]
/netbsd/src/sys/arch/x86/pci/
Dpci_intr_machdep.c119 pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) in pci_intr_map() argument
132 return (*ipc->pc_ov->ov_intr_map)(ipc->pc_ctx, pa, ihp); in pci_intr_map()
140 *ihp = 0; in pci_intr_map()
157 (dev << 2) | (rawpin - PCI_INTERRUPT_PIN_A), ihp) == 0) { in pci_intr_map()
158 if (APIC_IRQ_LEGACY_IRQ(*ihp) == 0) in pci_intr_map()
159 *ihp |= line; in pci_intr_map()
199 if (intr_find_mpmapping(mp_isa_bus, line, ihp) == 0) { in pci_intr_map()
200 if ((*ihp & 0xff) == 0) in pci_intr_map()
201 *ihp |= line; in pci_intr_map()
205 if (intr_find_mpmapping(mp_eisa_bus, line, ihp) == 0) { in pci_intr_map()
[all …]
/netbsd/src/sys/arch/evbmips/alchemy/
Ddbau1500.c108 dbau1500_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) in dbau1500_pci_intr_map() argument
121 *ihp = 1; in dbau1500_pci_intr_map()
124 *ihp = 2; in dbau1500_pci_intr_map()
127 *ihp = 4; in dbau1500_pci_intr_map()
130 *ihp = 5; in dbau1500_pci_intr_map()
/netbsd/src/sys/arch/evbppc/pmppc/pci/
Dpci_machdep.c149 pmppc_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) in pmppc_pci_intr_map() argument
171 case 0: *ihp = PMPPC_I_BPMC_INTA; break; in pmppc_pci_intr_map()
172 case 1: *ihp = PMPPC_I_BPMC_INTB; break; in pmppc_pci_intr_map()
173 case 2: *ihp = PMPPC_I_BPMC_INTC; break; in pmppc_pci_intr_map()
174 case 3: *ihp = PMPPC_I_BPMC_INTD; break; in pmppc_pci_intr_map()
179 *ihp = -1; in pmppc_pci_intr_map()
/netbsd/src/sys/arch/i386/eisa/
Deisa_machdep.c132 eisa_intr_handle_t *ihp) in eisa_intr_map() argument
136 *ihp = -1; in eisa_intr_map()
146 if (intr_find_mpmapping(mp_eisa_bus, irq, ihp) == 0 || in eisa_intr_map()
147 intr_find_mpmapping(mp_isa_bus, irq, ihp) == 0) { in eisa_intr_map()
148 *ihp |= irq; in eisa_intr_map()
155 *ihp = irq; in eisa_intr_map()
/netbsd/src/sys/arch/xen/xen/
Devtchn.c831 struct intrhand **ihp, *ih = esh_args->ih; in event_set_handler_xcall() local
837 for (ihp = &evts->ev_handlers; *ihp != NULL; in event_set_handler_xcall()
838 ihp = &((*ihp)->ih_evt_next)) { in event_set_handler_xcall()
839 if ((*ihp)->ih_level < ih->ih_level) in event_set_handler_xcall()
843 ih->ih_evt_next = *ihp; in event_set_handler_xcall()
844 *ihp = ih; in event_set_handler_xcall()
1009 struct intrhand **ihp; in event_remove_handler_xcall() local
1023 for (ihp = &evts->ev_handlers; *ihp != NULL; in event_remove_handler_xcall()
1024 ihp = &(*ihp)->ih_evt_next) { in event_remove_handler_xcall()
1025 if ((*ihp) == ih) in event_remove_handler_xcall()
[all …]
/netbsd/src/sys/arch/evbarm/npwr_fc/
Dnpwr_fc_pci.c82 iq80321_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) in iq80321_pci_intr_map() argument
114 *ihp = ICU_INT_XINT(0); in iq80321_pci_intr_map()
118 *ihp = ICU_INT_XINT(1); in iq80321_pci_intr_map()
125 *ihp = ICU_INT_XINT(2); in iq80321_pci_intr_map()
132 *ihp = ICU_INT_XINT(3); in iq80321_pci_intr_map()
/netbsd/src/sys/arch/evbmips/loongson/
Dgdium_machdep.c177 gdium_intr_map(int dev, int fn, int pin, pci_intr_handle_t *ihp) in gdium_intr_map() argument
182 *ihp = BONITO_DIRECT_IRQ(LOONGSON_INTR_PCIA + (pin + 1) % 4); in gdium_intr_map()
186 *ihp = BONITO_DIRECT_IRQ(LOONGSON_INTR_PCIA); in gdium_intr_map()
191 *ihp = BONITO_DIRECT_IRQ(LOONGSON_INTR_PCIA + in gdium_intr_map()
194 *ihp = BONITO_DIRECT_IRQ(LOONGSON_INTR_PCIB); in gdium_intr_map()
198 *ihp = BONITO_DIRECT_IRQ(LOONGSON_INTR_PCID); in gdium_intr_map()
203 *ihp = BONITO_DIRECT_IRQ(LOONGSON_INTR_PCIC); in gdium_intr_map()
/netbsd/src/sys/arch/evbarm/cp3100/
Dcp3100_pci.c82 iq80321_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) in iq80321_pci_intr_map() argument
107 *ihp = ICU_INT_XINT(f); in iq80321_pci_intr_map()
111 *ihp = ICU_INT_XINT(2); in iq80321_pci_intr_map()
119 *ihp = ICU_INT_XINT(3); in iq80321_pci_intr_map()
/netbsd/src/sys/arch/evbarm/iq31244/
Diq31244_pci.c82 iq80321_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) in iq80321_pci_intr_map() argument
105 *ihp = ICU_INT_XINT(2); in iq80321_pci_intr_map()
110 *ihp = ICU_INT_XINT(3); in iq80321_pci_intr_map()
115 *ihp = ICU_INT_XINT(0); in iq80321_pci_intr_map()
/netbsd/src/sys/arch/evbarm/iq80321/
Diq80321_pci.c84 iq80321_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) in iq80321_pci_intr_map() argument
116 *ihp = ICU_INT_XINT(0); in iq80321_pci_intr_map()
123 *ihp = ICU_INT_XINT(2); in iq80321_pci_intr_map()
127 *ihp = ICU_INT_XINT(3); in iq80321_pci_intr_map()
/netbsd/src/sys/arch/evbarm/hdl_g/
Dhdlg_pci.c77 hdlg_pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) in hdlg_pci_intr_map() argument
109 *ihp = ICU_INT_XINT(0); in hdlg_pci_intr_map()
116 *ihp = ICU_INT_XINT(1); in hdlg_pci_intr_map()
126 *ihp = ICU_INT_XINT(2); in hdlg_pci_intr_map()
/netbsd/src/sys/arch/landisk/include/
Dpci_machdep.h84 #define pci_intr_map(pa, ihp) \ argument
85 landisk_pci_intr_map(pa, ihp)
86 #define pci_intr_setattr(pa, ihp, attr, data) \ argument
87 landisk_pci_intr_setattr(pa, ihp, attr, data)
/netbsd/src/sys/arch/arc/pci/
Dnecpb.c360 necpb_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) in necpb_intr_map() argument
369 *ihp = -1; in necpb_intr_map()
375 *ihp = -1; in necpb_intr_map()
382 *ihp = -1; in necpb_intr_map()
388 *ihp = 3; in necpb_intr_map()
391 *ihp = 2; in necpb_intr_map()
394 *ihp = 1; in necpb_intr_map()
397 *ihp = -1; in necpb_intr_map()
/netbsd/src/sys/arch/arc/include/
Dpci_machdep.h95 #define pci_intr_map(pa, ihp) \ argument
96 (*(pa)->pa_pc->pc_intr_map)((pa), (ihp))
109 pci_intr_setattr(pci_chipset_tag_t pc, pci_intr_handle_t *ihp, in pci_intr_setattr() argument
114 return pc->pc_intr_setattr(pc, ihp, attr, data); in pci_intr_setattr()
/netbsd/src/sys/arch/hppa/include/
Dpci_machdep.h81 #define pci_intr_map(p, ihp) \ argument
82 (*(p)->pa_pc->pc_intr_map)((p), (ihp))
92 pci_intr_setattr(pci_chipset_tag_t pc, pci_intr_handle_t *ihp, in pci_intr_setattr() argument
97 return pc->pc_intr_setattr(pc, ihp, attr, data); in pci_intr_setattr()
/netbsd/src/sys/arch/cobalt/pci/
Dpci_machdep.c141 pci_intr_map(const struct pci_attach_args *pa, pci_intr_handle_t *ihp) in pci_intr_map() argument
158 *ihp = NICU_INT + 2; in pci_intr_map()
164 *ihp = NICU_INT + 1; in pci_intr_map()
169 *ihp = NICU_INT + 2; in pci_intr_map()
178 *ihp = line; in pci_intr_map()

12345