Home
last modified time | relevance | path

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

12

/linux/arch/powerpc/boot/
A Dcuboot-hotfoot.c47 void *devp; in hotfoot_fixups() local
52 if (!devp) in hotfoot_fixups()
57 if (!devp) in hotfoot_fixups()
68 if (!devp) in hotfoot_fixups()
82 if (!devp) in hotfoot_fixups()
89 if (!devp) in hotfoot_fixups()
96 if (!devp) in hotfoot_fixups()
103 if (!devp) in hotfoot_fixups()
110 if (!devp) in hotfoot_fixups()
117 if (!devp) in hotfoot_fixups()
[all …]
A Dserial.c87 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()
97 devp = finddevice(path); in serial_get_stdout_devp()
98 if (devp == NULL) in serial_get_stdout_devp()
103 return devp; in serial_get_stdout_devp()
114 void *devp; in serial_console_init() local
117 devp = serial_get_stdout_devp(); in serial_console_init()
118 if (devp == NULL) in serial_console_init()
121 if (dt_is_compatible(devp, "ns16550") || in serial_console_init()
[all …]
A 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
73 p = fdt_getprop(fdt, devp_offset(devp), name, &len); in fdt_wrapper_getprop()
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
108 offset = fdt_add_subnode(fdt, devp_offset(devp), name); in fdt_wrapper_create_node()
111 offset = fdt_add_subnode(fdt, devp_offset(devp), name); in fdt_wrapper_create_node()
[all …]
A Dops.h111 static inline int setprop(void *devp, const char *name, in setprop() argument
116 #define setprop_val(devp, name, val) \ argument
119 setprop((devp), (name), &x, sizeof(x)); \
125 return dt_ops.setprop(devp, name, buf, strlen(buf) + 1); in setprop_str()
130 static inline int del_node(const void *devp) in del_node() argument
132 return dt_ops.del_node ? dt_ops.del_node(devp) : -1; in del_node()
135 static inline void *get_parent(const char *devp) in get_parent() argument
137 return dt_ops.get_parent ? dt_ops.get_parent(devp) : NULL; in get_parent()
173 void *devp = finddevice("/aliases"); in find_node_by_alias() local
175 if (devp) { in find_node_by_alias()
[all …]
A 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()
A 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()
A 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()
A 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()
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()
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()
102 setprop(devp, "local-mac-address", addr, 6); in dt_fixup_mac_address_by_alias()
111 if (devp) { in dt_fixup_mac_address()
[all …]
A 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()
A 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()
A 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()
A 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()
A 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()
A 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()
A 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()
305 void *devp; in ibm4xx_fixup_ebc_ranges() local
323 devp = finddevice(ebc); in ibm4xx_fixup_ebc_ranges()
324 if (! devp) in ibm4xx_fixup_ebc_ranges()
327 setprop(devp, "ranges", ranges, (p - ranges) * sizeof(u32)); in ibm4xx_fixup_ebc_ranges()
A 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/drivers/char/
A Dhpet.c144 devp = data; in hpet_interrupt()
145 isr = 1 << (devp - devp->hd_hpets->hp_dev); in hpet_interrupt()
152 devp->hd_irqdata++; in hpet_interrupt()
278 if (!devp) { in hpet_open()
429 irq = devp->hd_irq; in hpet_release()
430 devp->hd_irq = 0; in hpet_release()
498 isr = 1 << (devp - devp->hd_hpets->hp_dev); in hpet_ioctl_ieon()
502 sprintf(devp->hd_name, "hpet%d", (int)(devp - hpetp->hp_dev)); in hpet_ioctl_ieon()
505 devp->hd_name, (void *)devp)) { in hpet_ioctl_ieon()
554 isr = 1 << (devp - devp->hd_hpets->hp_dev); in hpet_ioctl_ieon()
[all …]
/linux/drivers/infiniband/hw/cxgb4/
A Ddevice.c78 struct c4iw_dev *devp; member
970 struct c4iw_dev *devp; in c4iw_alloc() local
983 if (!devp) { in c4iw_alloc()
1015 devp->rdev.bar2_pa = pci_resource_start(devp->rdev.lldi.pdev, 2); in c4iw_alloc()
1017 devp->rdev.bar2_kva = ioremap_wc(devp->rdev.bar2_pa, in c4iw_alloc()
1029 devp->rdev.oc_mw_kva = ioremap_wc(devp->rdev.oc_mw_pa, in c4iw_alloc()
1039 devp->rdev.lldi.vr->ocq.start, devp->rdev.lldi.vr->ocq.size, in c4iw_alloc()
1040 devp->rdev.oc_mw_pa, devp->rdev.oc_mw_kva); in c4iw_alloc()
1059 devp->avail_ird = devp->rdev.lldi.max_ird_adapter; in c4iw_alloc()
1065 setup_debugfs(devp); in c4iw_alloc()
[all …]
/linux/drivers/infiniband/hw/hfi1/
A Ddevice.c20 struct cdev *cdev, struct device **devp, in hfi1_cdev_init() argument
53 *devp = device; in hfi1_cdev_init()
57 void hfi1_cdev_cleanup(struct cdev *cdev, struct device **devp) in hfi1_cdev_cleanup() argument
59 struct device *device = *devp; in hfi1_cdev_cleanup()
63 *devp = NULL; in hfi1_cdev_cleanup()
A Ddevice.h11 struct cdev *cdev, struct device **devp,
14 void hfi1_cdev_cleanup(struct cdev *cdev, struct device **devp);
/linux/include/linux/
A Dfsi.h46 #define to_fsi_dev(devp) container_of(devp, struct fsi_device, dev) argument
/linux/drivers/input/joystick/
A Dadc-joystick.c85 struct device *devp = &dev->dev; in adc_joystick_open() local
90 dev_err(devp, "Unable to start callback buffer: %d\n", ret); in adc_joystick_open()
/linux/drivers/scsi/
A Dvmw_pvscsi.c1178 static irqreturn_t pvscsi_isr(int irq, void *devp) in pvscsi_isr() argument
1180 struct pvscsi_adapter *adapter = devp; in pvscsi_isr()
1192 static irqreturn_t pvscsi_shared_isr(int irq, void *devp) in pvscsi_shared_isr() argument
1194 struct pvscsi_adapter *adapter = devp; in pvscsi_shared_isr()
1199 pvscsi_write_intr_status(devp, val); in pvscsi_shared_isr()
1200 return pvscsi_isr(irq, devp); in pvscsi_shared_isr()
/linux/net/mctp/test/
A Droute-test.c289 struct mctp_test_dev **devp, in __mctp_route_test_init() argument
316 *devp = dev; in __mctp_route_test_init()
/linux/drivers/infiniband/hw/qib/
A Dqib_file_ops.c2260 struct cdev **cdevp, struct device **devp) in qib_cdev_init() argument
2298 *devp = device; in qib_cdev_init()
2302 void qib_cdev_cleanup(struct cdev **cdevp, struct device **devp) in qib_cdev_cleanup() argument
2304 struct device *device = *devp; in qib_cdev_cleanup()
2308 *devp = NULL; in qib_cdev_cleanup()

Completed in 43 milliseconds

12