/kernel/linux/linux-5.10/arch/powerpc/boot/ |
H A D | cuboot-hotfoot.c | 47 void *devp; in hotfoot_fixups() local 51 devp = finddevice("/plb/opb/serial@ef600300"); in hotfoot_fixups() 52 if (!devp) in hotfoot_fixups() 54 del_node(devp); in hotfoot_fixups() 56 devp = finddevice("/plb/opb/ethernet@ef600900"); in hotfoot_fixups() 57 if (!devp) in hotfoot_fixups() 59 del_node(devp); in hotfoot_fixups() 67 void *devp = finddevice("/plb/ebc/nor_flash@0"); in hotfoot_fixups() local 68 if (!devp) in hotfoot_fixups() 74 getprop(devp, "re in hotfoot_fixups() [all...] |
H A D | serial.c | 87 void *devp; in serial_get_stdout_devp() local 91 devp = finddevice("/chosen"); in serial_get_stdout_devp() 92 if (devp == NULL) in serial_get_stdout_devp() 95 if (getprop(devp, "linux,stdout-path", path, MAX_PATH_LEN) > 0 || in serial_get_stdout_devp() 96 getprop(devp, "stdout-path", path, MAX_PATH_LEN) > 0) { in serial_get_stdout_devp() 97 devp = finddevice(path); in serial_get_stdout_devp() 98 if (devp == NULL) in serial_get_stdout_devp() 101 if ((getprop(devp, "device_type", devtype, sizeof(devtype)) > 0) in serial_get_stdout_devp() 103 return devp; in serial_get_stdout_devp() 114 void *devp; in serial_console_init() local [all...] |
H A D | libfdt-wrapper.c | 37 #define devp_offset_find(devp) (((unsigned long)(devp))-1) 38 #define devp_offset(devp) (devp ? ((unsigned long)(devp))-1 : 0) 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), nam in fdt_wrapper_setprop() 94 fdt_wrapper_del_node(const void *devp) fdt_wrapper_del_node() argument 99 fdt_wrapper_get_parent(const void *devp) fdt_wrapper_get_parent() argument 104 fdt_wrapper_create_node(const void *devp, const char *name) fdt_wrapper_create_node() argument 135 fdt_wrapper_get_path(const void *devp, char *buf, int len) fdt_wrapper_get_path() argument [all...] |
H A D | ops.h | 88 int ns16550_console_init(void *devp, struct serial_console_data *scdp); 89 int cpm_console_init(void *devp, struct serial_console_data *scdp); 90 int mpc5200_psc_console_init(void *devp, struct serial_console_data *scdp); 91 int opal_console_init(void *devp, struct serial_console_data *scdp); 106 static inline int getprop(void *devp, const char *name, void *buf, int buflen) in getprop() argument 108 return (dt_ops.getprop) ? dt_ops.getprop(devp, name, buf, buflen) : -1; in getprop() 111 static inline int setprop(void *devp, const char *name, in setprop() argument 114 return (dt_ops.setprop) ? dt_ops.setprop(devp, name, buf, buflen) : -1; in setprop() 116 #define setprop_val(devp, name, val) \ 119 setprop((devp), (nam 122 setprop_str(void *devp, const char *name, const char *buf) setprop_str() argument 130 del_node(const void *devp) del_node() argument 135 get_parent(const char *devp) get_parent() argument 173 void *devp = finddevice("/aliases"); find_node_by_alias() local [all...] |
H A D | cuboot-85xx-cpm2.c | 22 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()
|
H A D | mvme7100.c | 26 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()
|
H A D | ebony.c | 36 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()
|
H A D | devtree.c | 65 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 in dt_fixup_mac_address_by_alias() local 108 void *devp = find_node_by_prop_value(NULL, "linux,network-index", dt_fixup_mac_address() local [all...] |
H A D | treeboot-currituck.c | 61 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()
|
H A D | ns16550.c | 57 int ns16550_console_init(void *devp, struct serial_console_data *scdp) in ns16550_console_init() argument 62 if (dt_get_virtual_reg(devp, (void **)®_base, 1) < 1) { in ns16550_console_init() 67 n = getprop(devp, "reg-offset", ®_offset, sizeof(reg_offset)); in ns16550_console_init() 71 n = getprop(devp, "reg-shift", ®_shift, sizeof(reg_shift)); in ns16550_console_init()
|
/kernel/linux/linux-6.6/arch/powerpc/boot/ |
H A D | cuboot-hotfoot.c | 47 void *devp; in hotfoot_fixups() local 51 devp = finddevice("/plb/opb/serial@ef600300"); in hotfoot_fixups() 52 if (!devp) in hotfoot_fixups() 54 del_node(devp); in hotfoot_fixups() 56 devp = finddevice("/plb/opb/ethernet@ef600900"); in hotfoot_fixups() 57 if (!devp) in hotfoot_fixups() 59 del_node(devp); in hotfoot_fixups() 67 void *devp = finddevice("/plb/ebc/nor_flash@0"); in hotfoot_fixups() local 68 if (!devp) in hotfoot_fixups() 74 getprop(devp, "re in hotfoot_fixups() [all...] |
H A D | serial.c | 85 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...] |
H A D | libfdt-wrapper.c | 37 #define devp_offset_find(devp) (((unsigned long)(devp))-1) 38 #define devp_offset(devp) (devp ? ((unsigned long)(devp))-1 : 0) 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), nam in fdt_wrapper_setprop() 94 fdt_wrapper_del_node(const void *devp) fdt_wrapper_del_node() argument 99 fdt_wrapper_get_parent(const void *devp) fdt_wrapper_get_parent() argument 104 fdt_wrapper_create_node(const void *devp, const char *name) fdt_wrapper_create_node() argument 135 fdt_wrapper_get_path(const void *devp, char *buf, int len) fdt_wrapper_get_path() argument [all...] |
H A D | ops.h | 86 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) \ 117 setprop((devp), (nam 120 setprop_str(void *devp, const char *name, const char *buf) setprop_str() argument 128 del_node(const void *devp) del_node() argument 133 get_parent(const char *devp) get_parent() argument 171 void *devp = finddevice("/aliases"); find_node_by_alias() local [all...] |
H A D | cuboot-85xx-cpm2.c | 22 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()
|
H A D | mvme7100.c | 26 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()
|
H A D | ebony.c | 36 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()
|
H A D | devtree.c | 65 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 in dt_fixup_mac_address_by_alias() local 108 void *devp = find_node_by_prop_value(NULL, "linux,network-index", dt_fixup_mac_address() local [all...] |
H A D | treeboot-currituck.c | 61 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()
|
/kernel/linux/linux-5.10/drivers/char/ |
H A D | hpet.c | 141 struct hpet_dev *devp; in hpet_interrupt() local 144 devp = data; in hpet_interrupt() 145 isr = 1 << (devp - devp->hd_hpets->hp_dev); in hpet_interrupt() 147 if ((devp->hd_flags & HPET_SHARED_IRQ) && in hpet_interrupt() 148 !(isr & readl(&devp->hd_hpet->hpet_isr))) in hpet_interrupt() 152 devp->hd_irqdata++; in hpet_interrupt() 158 if ((devp->hd_flags & (HPET_IE | HPET_PERIODIC)) == HPET_IE) { in hpet_interrupt() 160 struct hpet __iomem *hpet = devp->hd_hpet; in hpet_interrupt() 161 struct hpets *hpetp = devp in hpet_interrupt() 198 hpet_timer_set_irq(struct hpet_dev *devp) hpet_timer_set_irq() argument 259 struct hpet_dev *devp; hpet_open() local 301 struct hpet_dev *devp; hpet_read() local 345 struct hpet_dev *devp; hpet_poll() local 381 struct hpet_dev *devp; hpet_mmap() local 405 struct hpet_dev *devp; hpet_fasync() local 417 struct hpet_dev *devp; hpet_release() local 453 hpet_ioctl_ieon(struct hpet_dev *devp) hpet_ioctl_ieon() argument 574 hpet_ioctl_common(struct hpet_dev *devp, unsigned int cmd, unsigned long arg, struct hpet_info *info) hpet_ioctl_common() argument 782 struct hpet_dev *devp; __hpet_calibrate() local 838 struct hpet_dev *devp; hpet_alloc() local [all...] |
/kernel/linux/linux-6.6/drivers/char/ |
H A D | hpet.c | 126 struct hpet_dev *devp; in hpet_interrupt() local 129 devp = data; in hpet_interrupt() 130 isr = 1 << (devp - devp->hd_hpets->hp_dev); in hpet_interrupt() 132 if ((devp->hd_flags & HPET_SHARED_IRQ) && in hpet_interrupt() 133 !(isr & readl(&devp->hd_hpet->hpet_isr))) in hpet_interrupt() 137 devp->hd_irqdata++; in hpet_interrupt() 143 if ((devp->hd_flags & (HPET_IE | HPET_PERIODIC)) == HPET_IE) { in hpet_interrupt() 145 struct hpet __iomem *hpet = devp->hd_hpet; in hpet_interrupt() 146 struct hpets *hpetp = devp in hpet_interrupt() 183 hpet_timer_set_irq(struct hpet_dev *devp) hpet_timer_set_irq() argument 244 struct hpet_dev *devp; hpet_open() local 286 struct hpet_dev *devp; hpet_read() local 330 struct hpet_dev *devp; hpet_poll() local 366 struct hpet_dev *devp; hpet_mmap() local 390 struct hpet_dev *devp; hpet_fasync() local 402 struct hpet_dev *devp; hpet_release() local 438 hpet_ioctl_ieon(struct hpet_dev *devp) hpet_ioctl_ieon() argument 559 hpet_ioctl_common(struct hpet_dev *devp, unsigned int cmd, unsigned long arg, struct hpet_info *info) hpet_ioctl_common() argument 747 struct hpet_dev *devp; __hpet_calibrate() local 803 struct hpet_dev *devp; hpet_alloc() local [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/cxgb4/ |
H A D | device.c | 78 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 in stag_open() 728 setup_debugfs(struct c4iw_dev *devp) setup_debugfs() argument 970 struct c4iw_dev *devp; c4iw_alloc() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/cxgb4/ |
H A D | device.c | 78 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 in stag_open() 728 setup_debugfs(struct c4iw_dev *devp) setup_debugfs() argument 970 struct c4iw_dev *devp; c4iw_alloc() local [all...] |
/kernel/linux/linux-5.10/arch/loongarch/pci/ |
H A D | pci.c | 80 struct pci_dev *devp = NULL; in pci_fixup_vgadev() local 82 while ((devp = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, devp))) { in pci_fixup_vgadev() 83 if (devp->vendor != PCI_VENDOR_ID_LOONGSON) { in pci_fixup_vgadev() 84 vga_set_default_device(devp); in pci_fixup_vgadev() 87 devp->vendor, devp->device); in pci_fixup_vgadev()
|
/kernel/linux/linux-6.6/arch/loongarch/pci/ |
H A D | pci.c | 88 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()
|