/linux/arch/powerpc/boot/ |
A D | cuboot-hotfoot.c | 47 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 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() 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 D | libfdt-wrapper.c | 37 #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 D | ops.h | 111 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 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()
|
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()
|
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()
|
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() 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 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()
|
A D | cpm-serial.c | 199 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 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()
|
A D | ugecon.c | 109 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 D | ofconsole.c | 21 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 D | opal.c | 80 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 D | 4xx.c | 170 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 D | mpc52xx-psc.c | 53 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 D | hpet.c | 144 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 D | device.c | 78 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 D | device.c | 20 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 D | device.h | 11 struct cdev *cdev, struct device **devp, 14 void hfi1_cdev_cleanup(struct cdev *cdev, struct device **devp);
|
/linux/include/linux/ |
A D | fsi.h | 46 #define to_fsi_dev(devp) container_of(devp, struct fsi_device, dev) argument
|
/linux/drivers/input/joystick/ |
A D | adc-joystick.c | 85 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 D | vmw_pvscsi.c | 1178 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 D | route-test.c | 289 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 D | qib_file_ops.c | 2260 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()
|