Home
last modified time | relevance | path

Searched refs:devp (Results 1 – 25 of 38) sorted by relevance

12

/linux-6.12.1/drivers/char/
Dhpet.c106 struct hpet_dev *devp; in hpet_interrupt() local
109 devp = data; in hpet_interrupt()
110 isr = 1 << (devp - devp->hd_hpets->hp_dev); in hpet_interrupt()
112 if ((devp->hd_flags & HPET_SHARED_IRQ) && in hpet_interrupt()
113 !(isr & readl(&devp->hd_hpet->hpet_isr))) in hpet_interrupt()
117 devp->hd_irqdata++; in hpet_interrupt()
123 if ((devp->hd_flags & (HPET_IE | HPET_PERIODIC)) == HPET_IE) { in hpet_interrupt()
125 struct hpet __iomem *hpet = devp->hd_hpet; in hpet_interrupt()
126 struct hpets *hpetp = devp->hd_hpets; in hpet_interrupt()
128 t = devp->hd_ireqfreq; in hpet_interrupt()
[all …]
/linux-6.12.1/arch/powerpc/boot/
Dserial.c85 void *devp; in serial_get_stdout_devp() local
89 devp = finddevice("/chosen"); in serial_get_stdout_devp()
90 if (devp == NULL) in serial_get_stdout_devp()
93 if (getprop(devp, "linux,stdout-path", path, MAX_PATH_LEN) > 0 || in serial_get_stdout_devp()
94 getprop(devp, "stdout-path", path, MAX_PATH_LEN) > 0) { in serial_get_stdout_devp()
95 devp = finddevice(path); in serial_get_stdout_devp()
96 if (devp == NULL) in serial_get_stdout_devp()
99 if ((getprop(devp, "device_type", devtype, sizeof(devtype)) > 0) in serial_get_stdout_devp()
101 return devp; in serial_get_stdout_devp()
112 void *devp; in serial_console_init() local
[all …]
Dlibfdt-wrapper.c37 #define devp_offset_find(devp) (((unsigned long)(devp))-1) argument
38 #define devp_offset(devp) (devp ? ((unsigned long)(devp))-1 : 0) argument
67 static int fdt_wrapper_getprop(const void *devp, const char *name, in fdt_wrapper_getprop() argument
73 p = fdt_getprop(fdt, devp_offset(devp), name, &len); in fdt_wrapper_getprop()
80 static int fdt_wrapper_setprop(const void *devp, const char *name, in fdt_wrapper_setprop() argument
85 rc = fdt_setprop(fdt, devp_offset(devp), name, buf, len); in fdt_wrapper_setprop()
88 rc = fdt_setprop(fdt, devp_offset(devp), name, buf, len); in fdt_wrapper_setprop()
94 static int fdt_wrapper_del_node(const void *devp) in fdt_wrapper_del_node() argument
96 return fdt_del_node(fdt, devp_offset(devp)); in fdt_wrapper_del_node()
99 static void *fdt_wrapper_get_parent(const void *devp) in fdt_wrapper_get_parent() argument
[all …]
Dops.h86 int ns16550_console_init(void *devp, struct serial_console_data *scdp);
87 int cpm_console_init(void *devp, struct serial_console_data *scdp);
88 int mpc5200_psc_console_init(void *devp, struct serial_console_data *scdp);
89 int opal_console_init(void *devp, struct serial_console_data *scdp);
104 static inline int getprop(void *devp, const char *name, void *buf, int buflen) in getprop() argument
106 return (dt_ops.getprop) ? dt_ops.getprop(devp, name, buf, buflen) : -1; in getprop()
109 static inline int setprop(void *devp, const char *name, in setprop() argument
112 return (dt_ops.setprop) ? dt_ops.setprop(devp, name, buf, buflen) : -1; in setprop()
114 #define setprop_val(devp, name, val) \ argument
117 setprop((devp), (name), &x, sizeof(x)); \
[all …]
Dcuboot-85xx-cpm2.c22 void *devp; in platform_fixups() local
34 devp = find_node_by_devtype(NULL, "soc"); in platform_fixups()
35 if (devp) { in platform_fixups()
38 setprop(devp, "bus-frequency", &bd.bi_busfreq, in platform_fixups()
42 if (get_parent(serial) != devp) in platform_fixups()
50 devp = find_node_by_compatible(NULL, "fsl,cpm2-brg"); in platform_fixups()
51 if (devp) in platform_fixups()
52 setprop(devp, "clock-frequency", &bd.bi_brgfreq, in platform_fixups()
Debony.c36 void *devp; in ebony_flashsel_fixup() local
41 devp = finddevice(EBONY_FPGA_PATH); in ebony_flashsel_fixup()
42 if (!devp) in ebony_flashsel_fixup()
45 if (getprop(devp, "virtual-reg", &fpga, sizeof(fpga)) != sizeof(fpga)) in ebony_flashsel_fixup()
51 devp = finddevice(EBONY_SMALL_FLASH_PATH); in ebony_flashsel_fixup()
52 if (!devp) in ebony_flashsel_fixup()
56 if (getprop(devp, "reg", reg, sizeof(reg)) != sizeof(reg)) in ebony_flashsel_fixup()
64 setprop(devp, "reg", reg, sizeof(reg)); in ebony_flashsel_fixup()
Dmvme7100.c26 void *devp; in mvme7100_fixups() local
31 devp = finddevice("/soc@f1000000"); in mvme7100_fixups()
32 if (devp) in mvme7100_fixups()
33 setprop(devp, "bus-frequency", &busfreq, sizeof(busfreq)); in mvme7100_fixups()
35 devp = finddevice("/soc/serial@4500"); in mvme7100_fixups()
36 if (devp) in mvme7100_fixups()
37 setprop(devp, "clock-frequency", &busfreq, sizeof(busfreq)); in mvme7100_fixups()
Ddevtree.c65 void *devp = NULL; in dt_fixup_cpu_clocks() local
72 while ((devp = find_node_by_devtype(devp, "cpu"))) { in dt_fixup_cpu_clocks()
73 setprop_val(devp, "clock-frequency", cpu_to_be32(cpu)); in dt_fixup_cpu_clocks()
74 setprop_val(devp, "timebase-frequency", cpu_to_be32(tb)); in dt_fixup_cpu_clocks()
76 setprop_val(devp, "bus-frequency", cpu_to_be32(bus)); in dt_fixup_cpu_clocks()
84 void *devp = finddevice(path); in dt_fixup_clock() local
86 if (devp) { in dt_fixup_clock()
88 setprop_val(devp, "clock-frequency", cpu_to_be32(freq)); in dt_fixup_clock()
94 void *devp = find_node_by_alias(alias); in dt_fixup_mac_address_by_alias() local
96 if (devp) { in dt_fixup_mac_address_by_alias()
[all …]
Dtreeboot-currituck.c61 void *devp = finddevice("/"); in ibm_currituck_fixups() local
66 while ((devp = find_node_by_devtype(devp, "pci"))) { in ibm_currituck_fixups()
67 if (getprop(devp, "dma-ranges", dma_ranges, sizeof(dma_ranges)) < 0) { in ibm_currituck_fixups()
75 setprop(devp, "dma-ranges", dma_ranges, sizeof(dma_ranges)); in ibm_currituck_fixups()
Dns16550.c57 int ns16550_console_init(void *devp, struct serial_console_data *scdp) in ns16550_console_init() argument
62 if (dt_get_virtual_reg(devp, (void **)&reg_base, 1) < 1) { in ns16550_console_init()
67 n = getprop(devp, "reg-offset", &reg_offset, sizeof(reg_offset)); in ns16550_console_init()
71 n = getprop(devp, "reg-shift", &reg_shift, sizeof(reg_shift)); in ns16550_console_init()
Dcpm-serial.c199 int cpm_console_init(void *devp, struct serial_console_data *scdp) in cpm_console_init() argument
208 if (dt_is_compatible(devp, "fsl,cpm1-smc-uart")) { in cpm_console_init()
210 } else if (dt_is_compatible(devp, "fsl,cpm2-scc-uart")) { in cpm_console_init()
212 } else if (dt_is_compatible(devp, "fsl,cpm2-smc-uart")) { in cpm_console_init()
230 if (getprop(devp, "fsl,cpm-command", &cpm_cmd, 4) < 4) in cpm_console_init()
233 if (dt_get_virtual_reg(devp, vreg, 2) < 2) in cpm_console_init()
243 parent = get_parent(devp); in cpm_console_init()
Dofconsole.c21 void *devp; in of_console_open() local
23 if (((devp = of_finddevice("/chosen")) != NULL) in of_console_open()
24 && (of_getprop(devp, "stdout", &of_stdout_handle, in of_console_open()
Dugecon.c109 void *devp; in ug_grab_exi_io_base() local
111 devp = find_node_by_compatible(NULL, "nintendo,flipper-exi"); in ug_grab_exi_io_base()
112 if (devp == NULL) in ug_grab_exi_io_base()
114 if (getprop(devp, "virtual-reg", &v, sizeof(v)) != sizeof(v)) in ug_grab_exi_io_base()
D4xx.c170 void *devp; in ibm4xx_denali_get_cs() local
174 devp = finddevice("/"); in ibm4xx_denali_get_cs()
175 if (!devp) in ibm4xx_denali_get_cs()
178 if (getprop(devp, "model", model, sizeof(model)) <= 0) in ibm4xx_denali_get_cs()
292 void *devp; in ibm4xx_fixup_ebc_ranges() local
310 devp = finddevice(ebc); in ibm4xx_fixup_ebc_ranges()
311 if (! devp) in ibm4xx_fixup_ebc_ranges()
314 setprop(devp, "ranges", ranges, (p - ranges) * sizeof(u32)); in ibm4xx_fixup_ebc_ranges()
Dopal.c80 int opal_console_init(void *devp, struct serial_console_data *scdp) in opal_console_init() argument
84 if (devp) { in opal_console_init()
85 int n = getprop(devp, "reg", &opal_con_id, sizeof(u32)); in opal_console_init()
Dmpc52xx-psc.c53 int mpc5200_psc_console_init(void *devp, struct serial_console_data *scdp) in mpc5200_psc_console_init() argument
56 if (dt_get_virtual_reg(devp, &psc, 1) < 1) in mpc5200_psc_console_init()
/linux-6.12.1/drivers/infiniband/hw/cxgb4/
Ddevice.c78 struct c4iw_dev *devp; member
337 qpd->devp = inode->i_private; in qp_open()
344 xa_for_each(&qpd->devp->qps, index, qp) in qp_open()
354 xa_lock_irq(&qpd->devp->qps); in qp_open()
355 xa_for_each(&qpd->devp->qps, index, qp) in qp_open()
357 xa_unlock_irq(&qpd->devp->qps); in qp_open()
383 ret = cxgb4_read_tpte(stagd->devp->rdev.lldi.ports[0], (u32)id<<8, in dump_stag()
386 dev_err(&stagd->devp->rdev.lldi.pdev->dev, in dump_stag()
432 stagd->devp = inode->i_private; in stag_open()
435 xa_for_each(&stagd->devp->mrs, index, p) in stag_open()
[all …]
/linux-6.12.1/arch/loongarch/pci/
Dpci.c88 struct pci_dev *devp = NULL; in pci_fixup_vgadev() local
90 while ((devp = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, devp))) { in pci_fixup_vgadev()
91 if (devp->vendor != PCI_VENDOR_ID_LOONGSON) { in pci_fixup_vgadev()
92 vga_set_default_device(devp); in pci_fixup_vgadev()
95 devp->vendor, devp->device); in pci_fixup_vgadev()
/linux-6.12.1/drivers/infiniband/hw/hfi1/
Ddevice.c40 struct cdev *cdev, struct device **devp, in hfi1_cdev_init() argument
73 *devp = device; in hfi1_cdev_init()
77 void hfi1_cdev_cleanup(struct cdev *cdev, struct device **devp) in hfi1_cdev_cleanup() argument
79 struct device *device = *devp; in hfi1_cdev_cleanup()
83 *devp = NULL; in hfi1_cdev_cleanup()
Ddevice.h11 struct cdev *cdev, struct device **devp,
14 void hfi1_cdev_cleanup(struct cdev *cdev, struct device **devp);
/linux-6.12.1/include/linux/
Dfsi.h46 #define to_fsi_dev(devp) container_of(devp, struct fsi_device, dev) argument
/linux-6.12.1/drivers/input/joystick/
Dadc-joystick.c110 struct device *devp = &dev->dev; in adc_joystick_open() local
115 dev_err(devp, "Unable to start callback buffer: %d\n", ret); in adc_joystick_open()
/linux-6.12.1/drivers/scsi/
Dvmw_pvscsi.c1179 static irqreturn_t pvscsi_isr(int irq, void *devp) in pvscsi_isr() argument
1181 struct pvscsi_adapter *adapter = devp; in pvscsi_isr()
1193 static irqreturn_t pvscsi_shared_isr(int irq, void *devp) in pvscsi_shared_isr() argument
1195 struct pvscsi_adapter *adapter = devp; in pvscsi_shared_isr()
1200 pvscsi_write_intr_status(devp, val); in pvscsi_shared_isr()
1201 return pvscsi_isr(irq, devp); in pvscsi_shared_isr()
/linux-6.12.1/net/mctp/test/
Droute-test.c294 struct mctp_test_dev **devp, in __mctp_route_test_init() argument
324 *devp = dev; in __mctp_route_test_init()
843 struct mctp_test_dev **devp, in mctp_test_flow_init() argument
875 *devp = dev; in mctp_test_flow_init()
/linux-6.12.1/drivers/parisc/
Dsuperio.c94 superio_interrupt(int parent_irq, void *devp) in superio_interrupt() argument

12