/openbmc/linux/drivers/irqchip/ |
H A D | irq-mvebu-pic.c | 36 static void mvebu_pic_reset(struct mvebu_pic *pic) in mvebu_pic_reset() argument 39 writel(0, pic->base + PIC_MASK); in mvebu_pic_reset() 40 writel(PIC_MAX_IRQ_MASK, pic->base + PIC_CAUSE); in mvebu_pic_reset() 45 struct mvebu_pic *pic = irq_data_get_irq_chip_data(d); in mvebu_pic_eoi_irq() local 47 writel(1 << d->hwirq, pic->base + PIC_CAUSE); in mvebu_pic_eoi_irq() 52 struct mvebu_pic *pic = irq_data_get_irq_chip_data(d); in mvebu_pic_mask_irq() local 55 reg = readl(pic->base + PIC_MASK); in mvebu_pic_mask_irq() 57 writel(reg, pic->base + PIC_MASK); in mvebu_pic_mask_irq() 62 struct mvebu_pic *pic = irq_data_get_irq_chip_data(d); in mvebu_pic_unmask_irq() local 65 reg = readl(pic->base + PIC_MASK); in mvebu_pic_unmask_irq() [all …]
|
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/ |
H A D | interrupts.c | 24 ccsr_pic_t __iomem *pic = (void *)CONFIG_SYS_MPC8xxx_PIC_ADDR; in interrupt_init_cpu() local 35 out_be32(&pic->gcr, MPC85xx_PICGCR_RST); in interrupt_init_cpu() 36 while (in_be32(&pic->gcr) & MPC85xx_PICGCR_RST) in interrupt_init_cpu() 38 out_be32(&pic->gcr, MPC85xx_PICGCR_M); in interrupt_init_cpu() 39 in_be32(&pic->gcr); in interrupt_init_cpu() 47 pic->iivpr1 = 0x810001; /* 50220 enable ecm interrupts */ in interrupt_init_cpu() 48 debug("iivpr1@%x = %x\n", (uint)&pic->iivpr1, pic->iivpr1); in interrupt_init_cpu() 50 pic->iivpr2 = 0x810002; /* 50240 enable ddr interrupts */ in interrupt_init_cpu() 51 debug("iivpr2@%x = %x\n", (uint)&pic->iivpr2, pic->iivpr2); in interrupt_init_cpu() 53 pic->iivpr3 = 0x810003; /* 50260 enable lbc interrupts */ in interrupt_init_cpu() [all …]
|
/openbmc/u-boot/arch/powerpc/cpu/mpc86xx/ |
H A D | interrupts.c | 28 volatile ccsr_pic_t *pic = &immr->im_pic; in interrupt_init_cpu() local 39 pic->gcr = MPC86xx_PICGCR_RST; in interrupt_init_cpu() 40 while (pic->gcr & MPC86xx_PICGCR_RST) in interrupt_init_cpu() 42 pic->gcr = MPC86xx_PICGCR_MODE; in interrupt_init_cpu() 51 pic->iivpr1 = 0x810001; /* 50220 enable mcm interrupts */ in interrupt_init_cpu() 52 debug("iivpr1@%p = %x\n", &pic->iivpr1, pic->iivpr1); in interrupt_init_cpu() 54 pic->iivpr2 = 0x810002; /* 50240 enable ddr interrupts */ in interrupt_init_cpu() 55 debug("iivpr2@%p = %x\n", &pic->iivpr2, pic->iivpr2); in interrupt_init_cpu() 57 pic->iivpr3 = 0x810003; /* 50260 enable lbc interrupts */ in interrupt_init_cpu() 58 debug("iivpr3@%p = %x\n", &pic->iivpr3, pic->iivpr3); in interrupt_init_cpu() [all …]
|
/openbmc/linux/arch/powerpc/platforms/cell/ |
H A D | spider-pic.c | 64 static void __iomem *spider_get_irq_config(struct spider_pic *pic, in spider_get_irq_config() argument 67 return pic->regs + TIR_CFGA + 8 * src; in spider_get_irq_config() 72 struct spider_pic *pic = spider_irq_data_to_pic(d); in spider_unmask_irq() local 73 void __iomem *cfg = spider_get_irq_config(pic, irqd_to_hwirq(d)); in spider_unmask_irq() 80 struct spider_pic *pic = spider_irq_data_to_pic(d); in spider_mask_irq() local 81 void __iomem *cfg = spider_get_irq_config(pic, irqd_to_hwirq(d)); in spider_mask_irq() 88 struct spider_pic *pic = spider_irq_data_to_pic(d); in spider_ack_irq() local 101 out_be32(pic->regs + TIR_EDC, 0x100 | (src & 0xf)); in spider_ack_irq() 107 struct spider_pic *pic = spider_irq_data_to_pic(d); in spider_set_irq_type() local 109 void __iomem *cfg = spider_get_irq_config(pic, hw); in spider_set_irq_type() [all …]
|
/openbmc/qemu/hw/intc/ |
H A D | heathrow_pic.c | 33 static inline int heathrow_check_irq(HeathrowPICState *pic) in heathrow_check_irq() argument 35 return (pic->events | (pic->levels & pic->level_triggered)) & pic->mask; in heathrow_check_irq() 53 HeathrowPICState *pic; in heathrow_write() local 60 pic = &s->pics[n]; in heathrow_write() 63 pic->mask = value; in heathrow_write() 68 value &= ~pic->level_triggered; in heathrow_write() 69 pic->events &= ~value; in heathrow_write() 81 HeathrowPICState *pic; in heathrow_read() local 89 pic = &s->pics[n]; in heathrow_read() 92 value = pic->events; in heathrow_read() [all …]
|
/openbmc/linux/drivers/media/platform/verisilicon/ |
H A D | rockchip_vpu2_hw_mpeg2_dec.c | 99 const struct v4l2_ctrl_mpeg2_picture *pic) in rockchip_vpu2_mpeg2_dec_set_buffers() argument 104 switch (pic->picture_coding_type) { in rockchip_vpu2_mpeg2_dec_set_buffers() 106 backward_addr = hantro_get_ref(ctx, pic->backward_ref_ts); in rockchip_vpu2_mpeg2_dec_set_buffers() 109 forward_addr = hantro_get_ref(ctx, pic->forward_ref_ts); in rockchip_vpu2_mpeg2_dec_set_buffers() 120 if (pic->picture_structure == V4L2_MPEG2_PIC_BOTTOM_FIELD) in rockchip_vpu2_mpeg2_dec_set_buffers() 130 if (pic->picture_structure == V4L2_MPEG2_PIC_FRAME || in rockchip_vpu2_mpeg2_dec_set_buffers() 131 pic->picture_coding_type == V4L2_MPEG2_PIC_CODING_TYPE_B || in rockchip_vpu2_mpeg2_dec_set_buffers() 132 (pic->picture_structure == V4L2_MPEG2_PIC_TOP_FIELD && in rockchip_vpu2_mpeg2_dec_set_buffers() 133 pic->flags & V4L2_MPEG2_PIC_TOP_FIELD) || in rockchip_vpu2_mpeg2_dec_set_buffers() 134 (pic->picture_structure == V4L2_MPEG2_PIC_BOTTOM_FIELD && in rockchip_vpu2_mpeg2_dec_set_buffers() [all …]
|
H A D | hantro_g1_mpeg2_dec.c | 96 const struct v4l2_ctrl_mpeg2_picture *pic) in hantro_g1_mpeg2_dec_set_buffers() argument 101 switch (pic->picture_coding_type) { in hantro_g1_mpeg2_dec_set_buffers() 103 backward_addr = hantro_get_ref(ctx, pic->backward_ref_ts); in hantro_g1_mpeg2_dec_set_buffers() 106 forward_addr = hantro_get_ref(ctx, pic->forward_ref_ts); in hantro_g1_mpeg2_dec_set_buffers() 117 if (pic->picture_structure == V4L2_MPEG2_PIC_BOTTOM_FIELD) in hantro_g1_mpeg2_dec_set_buffers() 127 if (pic->picture_structure == V4L2_MPEG2_PIC_FRAME || in hantro_g1_mpeg2_dec_set_buffers() 128 pic->picture_coding_type == V4L2_MPEG2_PIC_CODING_TYPE_B || in hantro_g1_mpeg2_dec_set_buffers() 129 (pic->picture_structure == V4L2_MPEG2_PIC_TOP_FIELD && in hantro_g1_mpeg2_dec_set_buffers() 130 pic->flags & V4L2_MPEG2_PIC_FLAG_TOP_FIELD_FIRST) || in hantro_g1_mpeg2_dec_set_buffers() 131 (pic->picture_structure == V4L2_MPEG2_PIC_BOTTOM_FIELD && in hantro_g1_mpeg2_dec_set_buffers() [all …]
|
/openbmc/linux/arch/mips/boot/dts/loongson/ |
H A D | ls7a-pch.dtsi | 13 pic: interrupt-controller@10000000 { label 14 compatible = "loongson,pch-pic-1.0"; 18 loongson,pic-base-vec = <0>; 25 interrupt-parent = <&pic>; 33 interrupt-parent = <&pic>; 43 interrupt-parent = <&pic>; 53 interrupt-parent = <&pic>; 63 interrupt-parent = <&pic>; 89 interrupt-parent = <&pic>; 100 interrupt-parent = <&pic>; [all …]
|
/openbmc/qemu/hw/arm/ |
H A D | realview.c | 86 qemu_irq pic[64]; in realview_init() local 205 pic[n] = qdev_get_gpio_in(dev, n); in realview_init() 215 sysbus_connect_irq(SYS_BUS_DEVICE(pl041), 0, pic[19]); in realview_init() 217 sysbus_create_simple("pl050_keyboard", 0x10006000, pic[20]); in realview_init() 218 sysbus_create_simple("pl050_mouse", 0x10007000, pic[21]); in realview_init() 220 pl011_create(0x10009000, pic[12], serial_hd(0)); in realview_init() 221 pl011_create(0x1000a000, pic[13], serial_hd(1)); in realview_init() 222 pl011_create(0x1000b000, pic[14], serial_hd(2)); in realview_init() 223 pl011_create(0x1000c000, pic[15], serial_hd(3)); in realview_init() 232 sysbus_connect_irq(busdev, 0, pic[24]); in realview_init() [all …]
|
H A D | xilinx_zynq.c | 210 qemu_irq pic[64]; in zynq_init() local 281 pic[n] = qdev_get_gpio_in(dev, n); in zynq_init() 284 n = zynq_init_spi_flashes(0xE0006000, pic[58 - IRQ_OFFSET], false, 0); in zynq_init() 285 n = zynq_init_spi_flashes(0xE0007000, pic[81 - IRQ_OFFSET], false, n); in zynq_init() 286 n = zynq_init_spi_flashes(0xE000D000, pic[51 - IRQ_OFFSET], true, n); in zynq_init() 288 sysbus_create_simple(TYPE_CHIPIDEA, 0xE0002000, pic[53 - IRQ_OFFSET]); in zynq_init() 289 sysbus_create_simple(TYPE_CHIPIDEA, 0xE0003000, pic[76 - IRQ_OFFSET]); in zynq_init() 298 sysbus_connect_irq(busdev, 0, pic[59 - IRQ_OFFSET]); in zynq_init() 306 sysbus_connect_irq(busdev, 0, pic[82 - IRQ_OFFSET]); in zynq_init() 309 pic[42-IRQ_OFFSET], pic[43-IRQ_OFFSET], pic[44-IRQ_OFFSET], NULL); in zynq_init() [all …]
|
H A D | highbank.c | 183 qemu_irq pic[128]; in calxeda_init() local 275 pic[n] = qdev_get_gpio_in(dev, n); in calxeda_init() 284 sysbus_connect_irq(busdev, 0, pic[18]); in calxeda_init() 285 pl011_create(0xfff36000, pic[20], serial_hd(0)); in calxeda_init() 292 sysbus_create_simple("pl061", 0xfff30000, pic[14]); in calxeda_init() 293 sysbus_create_simple("pl061", 0xfff31000, pic[15]); in calxeda_init() 294 sysbus_create_simple("pl061", 0xfff32000, pic[16]); in calxeda_init() 295 sysbus_create_simple("pl061", 0xfff33000, pic[17]); in calxeda_init() 296 sysbus_create_simple("pl031", 0xfff35000, pic[19]); in calxeda_init() 297 sysbus_create_simple("pl022", 0xfff39000, pic[23]); in calxeda_init() [all …]
|
H A D | vexpress.c | 194 qemu_irq *pic); 211 qemu_irq *pic, bool secure, bool virt) in init_cpus() argument 255 pic[n] = qdev_get_gpio_in(dev, n); in init_cpus() 275 qemu_irq *pic) in a9_daughterboard_init() argument 295 init_cpus(machine, cpu_type, TYPE_A9MPCORE_PRIV, 0x1e000000, pic, in a9_daughterboard_init() 306 sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, pic[44]); in a9_daughterboard_init() 313 sysbus_create_simple("sp804", 0x100e4000, pic[48]); in a9_daughterboard_init() 358 qemu_irq *pic) in a15_daughterboard_init() argument 380 0x2c000000, pic, vms->secure, vms->virt); in a15_daughterboard_init() 546 qemu_irq pic[64]; in vexpress_common_init() local [all …]
|
H A D | xlnx-versal.c | 67 static void versal_create_apu_gic(Versal *s, qemu_irq *pic) in versal_create_apu_gic() argument 136 pic[i] = qdev_get_gpio_in(gicdev, i); in versal_create_apu_gic() 169 static void versal_create_uarts(Versal *s, qemu_irq *pic) in versal_create_uarts() argument 189 sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, pic[irqs[i]]); in versal_create_uarts() 194 static void versal_create_canfds(Versal *s, qemu_irq *pic) in versal_create_canfds() argument 221 sysbus_connect_irq(sbd, 0, pic[irqs[i]]); in versal_create_canfds() 226 static void versal_create_usbs(Versal *s, qemu_irq *pic) in versal_create_usbs() argument 245 sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, pic[VERSAL_USB0_IRQ_0]); in versal_create_usbs() 251 static void versal_create_gems(Versal *s, qemu_irq *pic) in versal_create_gems() argument 276 qdev_connect_gpio_out(DEVICE(or_irq), 0, pic[irqs[i]]); in versal_create_gems() [all …]
|
H A D | versatilepb.c | 189 qemu_irq pic[32]; in versatile_init() local 237 pic[n] = qdev_get_gpio_in(dev, n); in versatile_init() 241 sysbus_connect_irq(SYS_BUS_DEVICE(dev), n, pic[n]); in versatile_init() 279 pl011_create(0x101f1000, pic[12], serial_hd(0)); in versatile_init() 280 pl011_create(0x101f2000, pic[13], serial_hd(1)); in versatile_init() 281 pl011_create(0x101f3000, pic[14], serial_hd(2)); in versatile_init() 290 sysbus_connect_irq(busdev, 0, pic[17]); in versatile_init() 292 sysbus_create_simple("sp804", 0x101e2000, pic[4]); in versatile_init() 293 sysbus_create_simple("sp804", 0x101e3000, pic[5]); in versatile_init() 295 sysbus_create_simple("pl061", 0x101e4000, pic[6]); in versatile_init() [all …]
|
/openbmc/linux/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus_mpeg2.c | 54 const struct v4l2_ctrl_mpeg2_picture *pic; in cedrus_mpeg2_setup() local 64 pic = run->mpeg2.picture; in cedrus_mpeg2_setup() 91 reg = VE_DEC_MPEG_MP12HDR_SLICE_TYPE(pic->picture_coding_type); in cedrus_mpeg2_setup() 92 reg |= VE_DEC_MPEG_MP12HDR_F_CODE(0, 0, pic->f_code[0][0]); in cedrus_mpeg2_setup() 93 reg |= VE_DEC_MPEG_MP12HDR_F_CODE(0, 1, pic->f_code[0][1]); in cedrus_mpeg2_setup() 94 reg |= VE_DEC_MPEG_MP12HDR_F_CODE(1, 0, pic->f_code[1][0]); in cedrus_mpeg2_setup() 95 reg |= VE_DEC_MPEG_MP12HDR_F_CODE(1, 1, pic->f_code[1][1]); in cedrus_mpeg2_setup() 96 reg |= VE_DEC_MPEG_MP12HDR_INTRA_DC_PRECISION(pic->intra_dc_precision); in cedrus_mpeg2_setup() 97 reg |= VE_DEC_MPEG_MP12HDR_INTRA_PICTURE_STRUCTURE(pic->picture_structure); in cedrus_mpeg2_setup() 98 reg |= VE_DEC_MPEG_MP12HDR_TOP_FIELD_FIRST(pic->flags & V4L2_MPEG2_PIC_FLAG_TOP_FIELD_FIRST); in cedrus_mpeg2_setup() [all …]
|
/openbmc/linux/arch/m68k/virt/ |
H A D | ints.c | 53 static u32 gfpic_read(int pic, int reg) in gfpic_read() argument 55 void __iomem *base = (void __iomem *)(virt_bi_data.pic.mmio + in gfpic_read() 56 pic * 0x1000); in gfpic_read() 61 static void gfpic_write(u32 value, int pic, int reg) in gfpic_write() argument 63 void __iomem *base = (void __iomem *)(virt_bi_data.pic.mmio + in gfpic_write() 64 pic * 0x1000); in gfpic_write() 117 unsigned int pic = desc->irq_data.irq - 1; in goldfish_pic_irq() local 119 irq_pending = gfpic_read(pic, GFPIC_REG_IRQ_PENDING); in goldfish_pic_irq() 120 irq_num = IRQ_USER + pic * 32; in goldfish_pic_irq() 140 DEFINE_RES_MEM_NAMED(virt_bi_data.pic.mmio + i * 0x1000, in virt_init_IRQ() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pci/ |
H A D | v3-v360epc-pci.txt | 39 interrupt-parent = <&pic>; 56 0x4800 0 0 1 &pic 13 /* INT A on slot 9 is irq 13 */ 57 0x4800 0 0 2 &pic 14 /* INT B on slot 9 is irq 14 */ 58 0x4800 0 0 3 &pic 15 /* INT C on slot 9 is irq 15 */ 59 0x4800 0 0 4 &pic 16 /* INT D on slot 9 is irq 16 */ 61 0x5000 0 0 1 &pic 14 /* INT A on slot 10 is irq 14 */ 62 0x5000 0 0 2 &pic 15 /* INT B on slot 10 is irq 15 */ 63 0x5000 0 0 3 &pic 16 /* INT C on slot 10 is irq 16 */ 64 0x5000 0 0 4 &pic 13 /* INT D on slot 10 is irq 13 */ 66 0x5800 0 0 1 &pic 15 /* INT A on slot 11 is irq 15 */ [all …]
|
/openbmc/linux/arch/xtensa/boot/dts/ |
H A D | virt.dts | 8 interrupt-parent = <&pic>; 37 pic: pic { label 38 compatible = "cdns,xtensa-pic"; 64 0x0000 0x0 0x0 0x1 &pic 0x0 0x1 65 0x0800 0x0 0x0 0x1 &pic 0x1 0x1 66 0x1000 0x0 0x0 0x1 &pic 0x2 0x1 67 0x1800 0x0 0x0 0x1 &pic 0x3 0x1
|
/openbmc/linux/arch/powerpc/platforms/52xx/ |
H A D | lite5200_pm.c | 15 static struct mpc52xx_intr __iomem *pic; variable 78 pic = mbar + 0x500; in lite5200_pm_prepare() 100 _memcpy_fromio(&spic, pic, sizeof(*pic)); in lite5200_save_regs() 189 out_be32(&pic->per_pri1, spic.per_pri1); in lite5200_restore_regs() 190 out_be32(&pic->per_pri2, spic.per_pri2); in lite5200_restore_regs() 191 out_be32(&pic->per_pri3, spic.per_pri3); in lite5200_restore_regs() 193 out_be32(&pic->main_pri1, spic.main_pri1); in lite5200_restore_regs() 194 out_be32(&pic->main_pri2, spic.main_pri2); in lite5200_restore_regs() 196 out_be32(&pic->enc_status, spic.enc_status); in lite5200_restore_regs() 199 out_be32(&pic->per_mask, spic.per_mask); in lite5200_restore_regs() [all …]
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | irq_i8259.c | 139 unsigned long pic; in isa_no_iack_sc_device_interrupt() local 154 pic = inb(0x20) | (inb(0xA0) << 8); /* read isr */ in isa_no_iack_sc_device_interrupt() 155 pic &= 0xFFFB; /* mask out cascade & hibits */ in isa_no_iack_sc_device_interrupt() 157 while (pic) { in isa_no_iack_sc_device_interrupt() 158 int j = ffz(~pic); in isa_no_iack_sc_device_interrupt() 159 pic &= pic - 1; in isa_no_iack_sc_device_interrupt()
|
/openbmc/linux/Documentation/devicetree/bindings/soc/fsl/cpm_qe/cpm/ |
H A D | pic.txt | 4 - fsl,cpm1-pic 6 - fsl,pq1-pic 7 - fsl,cpm2-pic 17 compatible = "mpc8272-pic", "fsl,cpm2-pic";
|
/openbmc/linux/Documentation/devicetree/bindings/interrupt-controller/ |
H A D | opencores,or1k-pic.txt | 5 - compatible : should be "opencores,or1k-pic-level" for variants with 6 level triggered interrupt lines, "opencores,or1k-pic-edge" for variants with 7 edge triggered interrupt lines or "opencores,or1200-pic" for machines 10 "opencores,or1k-pic" is also provided as an alias to "opencores,or1200-pic", 20 compatible = "opencores,or1k-pic-level";
|
/openbmc/linux/arch/arm/boot/dts/arm/ |
H A D | integratorap.dts | 157 pic: pic@14000000 { label 169 interrupt-parent = <&pic>; 186 0x4800 0 0 1 &pic 13 /* INT A on slot 9 is irq 13 */ 187 0x4800 0 0 2 &pic 14 /* INT B on slot 9 is irq 14 */ 188 0x4800 0 0 3 &pic 15 /* INT C on slot 9 is irq 15 */ 189 0x4800 0 0 4 &pic 16 /* INT D on slot 9 is irq 16 */ 191 0x5000 0 0 1 &pic 14 /* INT A on slot 10 is irq 14 */ 192 0x5000 0 0 2 &pic 15 /* INT B on slot 10 is irq 15 */ 193 0x5000 0 0 3 &pic 16 /* INT C on slot 10 is irq 16 */ 194 0x5000 0 0 4 &pic 13 /* INT D on slot 10 is irq 13 */ [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_h264_if.c | 112 struct vdec_pic_info pic; member 164 static int alloc_mv_buf(struct vdec_h264_inst *inst, struct vdec_pic_info *pic) in alloc_mv_buf() argument 169 unsigned int buf_sz = get_mv_buf_size(pic->buf_w, pic->buf_h); in alloc_mv_buf() 243 struct vdec_pic_info *pic) in get_pic_info() argument 245 *pic = inst->vsi->pic; in get_pic_info() 247 pic->pic_w, pic->pic_h, pic->buf_w, pic->buf_h); in get_pic_info() 248 mtk_vdec_debug(inst->ctx, "fb size: Y(%d), C(%d)", pic->fb_sz[0], pic->fb_sz[1]); in get_pic_info() 393 struct vdec_pic_info pic; in vdec_h264_decode() local 396 get_pic_info(inst, &pic); in vdec_h264_decode() 399 err = alloc_mv_buf(inst, &pic); in vdec_h264_decode()
|
/openbmc/openbmc/poky/meta/recipes-extended/groff/files/ |
H A D | 0001-build-Fix-Savannah-64681-webpage.ps-deps.patch | 25 @@ -346,6 +346,9 @@ doc/pic.ps: $(doc_srcdir)/pic.ms eqn pic tbl 27 && $(DOC_GROFF) -pet -Tps -ms $(doc_srcdir)/pic.ms >$@ 35 @@ -365,11 +368,12 @@ doc/pic.html: $(doc_srcdir)/pic.ms 37 $(doc_srcdir)/pic.ms > pic.html
|