pld 70 arch/alpha/kernel/irq_pyxis.c unsigned long pld; pld 74 arch/alpha/kernel/irq_pyxis.c pld = *(vulp)PYXIS_INT_REQ; pld 75 arch/alpha/kernel/irq_pyxis.c pld &= cached_irq_mask; pld 81 arch/alpha/kernel/irq_pyxis.c while (pld) { pld 82 arch/alpha/kernel/irq_pyxis.c i = ffz(~pld); pld 83 arch/alpha/kernel/irq_pyxis.c pld &= pld - 1; /* clear least bit set */ pld 88 arch/alpha/kernel/sys_alcor.c unsigned long pld; pld 92 arch/alpha/kernel/sys_alcor.c pld = (*(vuip)GRU_INT_REQ) & GRU_INT_REQ_BITS; pld 98 arch/alpha/kernel/sys_alcor.c while (pld) { pld 99 arch/alpha/kernel/sys_alcor.c i = ffz(~pld); pld 100 arch/alpha/kernel/sys_alcor.c pld &= pld - 1; /* clear least bit set */ pld 70 arch/alpha/kernel/sys_cabriolet.c unsigned long pld; pld 74 arch/alpha/kernel/sys_cabriolet.c pld = inb(0x804) | (inb(0x805) << 8) | (inb(0x806) << 16); pld 80 arch/alpha/kernel/sys_cabriolet.c while (pld) { pld 81 arch/alpha/kernel/sys_cabriolet.c i = ffz(~pld); pld 82 arch/alpha/kernel/sys_cabriolet.c pld &= pld - 1; /* clear least bit set */ pld 194 arch/alpha/kernel/sys_dp264.c unsigned long pld; pld 198 arch/alpha/kernel/sys_dp264.c pld = TSUNAMI_cchip->dir0.csr; pld 204 arch/alpha/kernel/sys_dp264.c while (pld) { pld 205 arch/alpha/kernel/sys_dp264.c i = ffz(~pld); pld 206 arch/alpha/kernel/sys_dp264.c pld &= pld - 1; /* clear least bit set */ pld 68 arch/alpha/kernel/sys_eb64p.c unsigned long pld; pld 72 arch/alpha/kernel/sys_eb64p.c pld = inb(0x26) | (inb(0x27) << 8); pld 78 arch/alpha/kernel/sys_eb64p.c while (pld) { pld 79 arch/alpha/kernel/sys_eb64p.c i = ffz(~pld); pld 80 arch/alpha/kernel/sys_eb64p.c pld &= pld - 1; /* clear least bit set */ pld 68 arch/alpha/kernel/sys_mikasa.c unsigned long pld; pld 72 arch/alpha/kernel/sys_mikasa.c pld = (((~inw(0x534) & 0x0000ffffUL) << 16) pld 80 arch/alpha/kernel/sys_mikasa.c while (pld) { pld 81 arch/alpha/kernel/sys_mikasa.c i = ffz(~pld); pld 82 arch/alpha/kernel/sys_mikasa.c pld &= pld - 1; /* clear least bit set */ pld 73 arch/alpha/kernel/sys_noritake.c unsigned long pld; pld 77 arch/alpha/kernel/sys_noritake.c pld = (((unsigned long) inw(0x54c) << 32) pld 86 arch/alpha/kernel/sys_noritake.c while (pld) { pld 87 arch/alpha/kernel/sys_noritake.c i = ffz(~pld); pld 88 arch/alpha/kernel/sys_noritake.c pld &= pld - 1; /* clear least bit set */ pld 71 arch/alpha/kernel/sys_rx164.c unsigned long pld; pld 78 arch/alpha/kernel/sys_rx164.c pld = *dirr; pld 84 arch/alpha/kernel/sys_rx164.c while (pld) { pld 85 arch/alpha/kernel/sys_rx164.c i = ffz(~pld); pld 86 arch/alpha/kernel/sys_rx164.c pld &= pld - 1; /* clear least bit set */ pld 152 arch/arm/mach-omap2/prm.h extern int prm_register(struct prm_ll_data *pld); pld 153 arch/arm/mach-omap2/prm.h extern int prm_unregister(struct prm_ll_data *pld); pld 594 arch/arm/mach-omap2/prm_common.c int prm_register(struct prm_ll_data *pld) pld 596 arch/arm/mach-omap2/prm_common.c if (!pld) pld 602 arch/arm/mach-omap2/prm_common.c prm_ll_data = pld; pld 618 arch/arm/mach-omap2/prm_common.c int prm_unregister(struct prm_ll_data *pld) pld 620 arch/arm/mach-omap2/prm_common.c if (!pld || prm_ll_data != pld) pld 880 arch/x86/events/intel/uncore_nhmex.c DEFINE_UNCORE_FORMAT_ATTR(pld, pld, "config1:32-63"); pld 388 drivers/acpi/utils.c acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld) pld 412 drivers/acpi/utils.c pld); pld 27 drivers/gpio/gpio-kempld.c struct kempld_device_data *pld; pld 34 drivers/gpio/gpio-kempld.c static void kempld_gpio_bitop(struct kempld_device_data *pld, pld 39 drivers/gpio/gpio-kempld.c status = kempld_read8(pld, reg); pld 44 drivers/gpio/gpio-kempld.c kempld_write8(pld, reg, status); pld 47 drivers/gpio/gpio-kempld.c static int kempld_gpio_get_bit(struct kempld_device_data *pld, u8 reg, u8 bit) pld 51 drivers/gpio/gpio-kempld.c kempld_get_mutex(pld); pld 52 drivers/gpio/gpio-kempld.c status = kempld_read8(pld, reg); pld 53 drivers/gpio/gpio-kempld.c kempld_release_mutex(pld); pld 61 drivers/gpio/gpio-kempld.c struct kempld_device_data *pld = gpio->pld; pld 63 drivers/gpio/gpio-kempld.c return !!kempld_gpio_get_bit(pld, KEMPLD_GPIO_LVL_NUM(offset), offset); pld 69 drivers/gpio/gpio-kempld.c struct kempld_device_data *pld = gpio->pld; pld 71 drivers/gpio/gpio-kempld.c kempld_get_mutex(pld); pld 72 drivers/gpio/gpio-kempld.c kempld_gpio_bitop(pld, KEMPLD_GPIO_LVL_NUM(offset), offset, value); pld 73 drivers/gpio/gpio-kempld.c kempld_release_mutex(pld); pld 79 drivers/gpio/gpio-kempld.c struct kempld_device_data *pld = gpio->pld; pld 81 drivers/gpio/gpio-kempld.c kempld_get_mutex(pld); pld 82 drivers/gpio/gpio-kempld.c kempld_gpio_bitop(pld, KEMPLD_GPIO_DIR_NUM(offset), offset, 0); pld 83 drivers/gpio/gpio-kempld.c kempld_release_mutex(pld); pld 92 drivers/gpio/gpio-kempld.c struct kempld_device_data *pld = gpio->pld; pld 94 drivers/gpio/gpio-kempld.c kempld_get_mutex(pld); pld 95 drivers/gpio/gpio-kempld.c kempld_gpio_bitop(pld, KEMPLD_GPIO_LVL_NUM(offset), offset, value); pld 96 drivers/gpio/gpio-kempld.c kempld_gpio_bitop(pld, KEMPLD_GPIO_DIR_NUM(offset), offset, 1); pld 97 drivers/gpio/gpio-kempld.c kempld_release_mutex(pld); pld 105 drivers/gpio/gpio-kempld.c struct kempld_device_data *pld = gpio->pld; pld 107 drivers/gpio/gpio-kempld.c return !kempld_gpio_get_bit(pld, KEMPLD_GPIO_DIR_NUM(offset), offset); pld 110 drivers/gpio/gpio-kempld.c static int kempld_gpio_pincount(struct kempld_device_data *pld) pld 114 drivers/gpio/gpio-kempld.c kempld_get_mutex(pld); pld 117 drivers/gpio/gpio-kempld.c evt_back = kempld_read16(pld, KEMPLD_GPIO_EVT_LVL_EDGE); pld 119 drivers/gpio/gpio-kempld.c kempld_write16(pld, KEMPLD_GPIO_EVT_LVL_EDGE, 0x0000); pld 121 drivers/gpio/gpio-kempld.c evt = kempld_read16(pld, KEMPLD_GPIO_EVT_LVL_EDGE); pld 123 drivers/gpio/gpio-kempld.c kempld_write16(pld, KEMPLD_GPIO_EVT_LVL_EDGE, evt_back); pld 125 drivers/gpio/gpio-kempld.c kempld_release_mutex(pld); pld 133 drivers/gpio/gpio-kempld.c struct kempld_device_data *pld = dev_get_drvdata(dev->parent); pld 134 drivers/gpio/gpio-kempld.c struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); pld 139 drivers/gpio/gpio-kempld.c if (pld->info.spec_major < 2) { pld 149 drivers/gpio/gpio-kempld.c gpio->pld = pld; pld 167 drivers/gpio/gpio-kempld.c chip->ngpio = kempld_gpio_pincount(pld); pld 57 drivers/i2c/busses/i2c-kempld.c struct kempld_device_data *pld; pld 84 drivers/i2c/busses/i2c-kempld.c struct kempld_device_data *pld = i2c->pld; pld 85 drivers/i2c/busses/i2c-kempld.c u8 stat = kempld_read8(pld, KEMPLD_I2C_STAT); pld 95 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_IACK); pld 104 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_STOP); pld 127 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_DATA, addr); pld 128 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_START); pld 135 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_DATA, i2c->msg->addr & 0xff); pld 136 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_WRITE); pld 147 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_STOP); pld 151 drivers/i2c/busses/i2c-kempld.c msg->buf[i2c->pos++] = kempld_read8(pld, KEMPLD_I2C_DATA); pld 170 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_STOP); pld 176 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CMD, i2c->pos == (msg->len - 1) ? pld 179 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_DATA, msg->buf[i2c->pos++]); pld 180 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_WRITE); pld 190 drivers/i2c/busses/i2c-kempld.c struct kempld_device_data *pld = i2c->pld; pld 201 drivers/i2c/busses/i2c-kempld.c kempld_get_mutex(pld); pld 203 drivers/i2c/busses/i2c-kempld.c kempld_release_mutex(pld); pld 224 drivers/i2c/busses/i2c-kempld.c struct kempld_device_data *pld = i2c->pld; pld 232 drivers/i2c/busses/i2c-kempld.c ctrl = kempld_read8(pld, KEMPLD_I2C_CTRL); pld 234 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CTRL, ctrl); pld 239 drivers/i2c/busses/i2c-kempld.c if (pld->info.spec_major == 1) pld 240 drivers/i2c/busses/i2c-kempld.c prescale = pld->pld_clock / (bus_frequency * 5) - 1000; pld 242 drivers/i2c/busses/i2c-kempld.c prescale = pld->pld_clock / (bus_frequency * 4) - 3000; pld 252 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_PRELOW, prescale_corr & 0xff); pld 253 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_PREHIGH, prescale_corr >> 8); pld 256 drivers/i2c/busses/i2c-kempld.c cfg = kempld_read8(pld, KEMPLD_CFG); pld 261 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_CFG, cfg); pld 264 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_IACK); pld 266 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CTRL, ctrl); pld 268 drivers/i2c/busses/i2c-kempld.c stat = kempld_read8(pld, KEMPLD_I2C_STAT); pld 270 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_STOP); pld 292 drivers/i2c/busses/i2c-kempld.c struct kempld_device_data *pld = dev_get_drvdata(pdev->dev.parent); pld 301 drivers/i2c/busses/i2c-kempld.c i2c->pld = pld; pld 308 drivers/i2c/busses/i2c-kempld.c kempld_get_mutex(pld); pld 309 drivers/i2c/busses/i2c-kempld.c ctrl = kempld_read8(pld, KEMPLD_I2C_CTRL); pld 315 drivers/i2c/busses/i2c-kempld.c kempld_release_mutex(pld); pld 333 drivers/i2c/busses/i2c-kempld.c struct kempld_device_data *pld = i2c->pld; pld 336 drivers/i2c/busses/i2c-kempld.c kempld_get_mutex(pld); pld 342 drivers/i2c/busses/i2c-kempld.c ctrl = kempld_read8(pld, KEMPLD_I2C_CTRL); pld 344 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CTRL, ctrl); pld 346 drivers/i2c/busses/i2c-kempld.c kempld_release_mutex(pld); pld 357 drivers/i2c/busses/i2c-kempld.c struct kempld_device_data *pld = i2c->pld; pld 360 drivers/i2c/busses/i2c-kempld.c kempld_get_mutex(pld); pld 361 drivers/i2c/busses/i2c-kempld.c ctrl = kempld_read8(pld, KEMPLD_I2C_CTRL); pld 363 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CTRL, ctrl); pld 364 drivers/i2c/busses/i2c-kempld.c kempld_release_mutex(pld); pld 372 drivers/i2c/busses/i2c-kempld.c struct kempld_device_data *pld = i2c->pld; pld 374 drivers/i2c/busses/i2c-kempld.c kempld_get_mutex(pld); pld 376 drivers/i2c/busses/i2c-kempld.c kempld_release_mutex(pld); pld 28 drivers/mfd/kempld-core.c static void kempld_get_hardware_mutex(struct kempld_device_data *pld) pld 31 drivers/mfd/kempld-core.c while (ioread8(pld->io_index) & KEMPLD_MUTEX_KEY) pld 35 drivers/mfd/kempld-core.c static void kempld_release_hardware_mutex(struct kempld_device_data *pld) pld 38 drivers/mfd/kempld-core.c iowrite8(KEMPLD_MUTEX_KEY, pld->io_index); pld 41 drivers/mfd/kempld-core.c static int kempld_get_info_generic(struct kempld_device_data *pld) pld 46 drivers/mfd/kempld-core.c kempld_get_mutex(pld); pld 48 drivers/mfd/kempld-core.c version = kempld_read16(pld, KEMPLD_VERSION); pld 49 drivers/mfd/kempld-core.c spec = kempld_read8(pld, KEMPLD_SPEC); pld 50 drivers/mfd/kempld-core.c pld->info.buildnr = kempld_read16(pld, KEMPLD_BUILDNR); pld 52 drivers/mfd/kempld-core.c pld->info.minor = KEMPLD_VERSION_GET_MINOR(version); pld 53 drivers/mfd/kempld-core.c pld->info.major = KEMPLD_VERSION_GET_MAJOR(version); pld 54 drivers/mfd/kempld-core.c pld->info.number = KEMPLD_VERSION_GET_NUMBER(version); pld 55 drivers/mfd/kempld-core.c pld->info.type = KEMPLD_VERSION_GET_TYPE(version); pld 58 drivers/mfd/kempld-core.c pld->info.spec_minor = 0; pld 59 drivers/mfd/kempld-core.c pld->info.spec_major = 1; pld 61 drivers/mfd/kempld-core.c pld->info.spec_minor = KEMPLD_SPEC_GET_MINOR(spec); pld 62 drivers/mfd/kempld-core.c pld->info.spec_major = KEMPLD_SPEC_GET_MAJOR(spec); pld 65 drivers/mfd/kempld-core.c if (pld->info.spec_major > 0) pld 66 drivers/mfd/kempld-core.c pld->feature_mask = kempld_read16(pld, KEMPLD_FEATURE); pld 68 drivers/mfd/kempld-core.c pld->feature_mask = 0; pld 70 drivers/mfd/kempld-core.c kempld_release_mutex(pld); pld 99 drivers/mfd/kempld-core.c static int kempld_register_cells_generic(struct kempld_device_data *pld) pld 104 drivers/mfd/kempld-core.c if (pld->feature_mask & KEMPLD_FEATURE_BIT_I2C) pld 107 drivers/mfd/kempld-core.c if (pld->feature_mask & KEMPLD_FEATURE_BIT_WATCHDOG) pld 110 drivers/mfd/kempld-core.c if (pld->feature_mask & KEMPLD_FEATURE_BIT_GPIO) pld 113 drivers/mfd/kempld-core.c if (pld->feature_mask & KEMPLD_FEATURE_MASK_UART) pld 116 drivers/mfd/kempld-core.c return mfd_add_devices(pld->dev, -1, devs, i, NULL, 0, NULL); pld 170 drivers/mfd/kempld-core.c u8 kempld_read8(struct kempld_device_data *pld, u8 index) pld 172 drivers/mfd/kempld-core.c iowrite8(index, pld->io_index); pld 173 drivers/mfd/kempld-core.c return ioread8(pld->io_data); pld 185 drivers/mfd/kempld-core.c void kempld_write8(struct kempld_device_data *pld, u8 index, u8 data) pld 187 drivers/mfd/kempld-core.c iowrite8(index, pld->io_index); pld 188 drivers/mfd/kempld-core.c iowrite8(data, pld->io_data); pld 199 drivers/mfd/kempld-core.c u16 kempld_read16(struct kempld_device_data *pld, u8 index) pld 201 drivers/mfd/kempld-core.c return kempld_read8(pld, index) | kempld_read8(pld, index + 1) << 8; pld 213 drivers/mfd/kempld-core.c void kempld_write16(struct kempld_device_data *pld, u8 index, u16 data) pld 215 drivers/mfd/kempld-core.c kempld_write8(pld, index, (u8)data); pld 216 drivers/mfd/kempld-core.c kempld_write8(pld, index + 1, (u8)(data >> 8)); pld 227 drivers/mfd/kempld-core.c u32 kempld_read32(struct kempld_device_data *pld, u8 index) pld 229 drivers/mfd/kempld-core.c return kempld_read16(pld, index) | kempld_read16(pld, index + 2) << 16; pld 241 drivers/mfd/kempld-core.c void kempld_write32(struct kempld_device_data *pld, u8 index, u32 data) pld 243 drivers/mfd/kempld-core.c kempld_write16(pld, index, (u16)data); pld 244 drivers/mfd/kempld-core.c kempld_write16(pld, index + 2, (u16)(data >> 16)); pld 252 drivers/mfd/kempld-core.c void kempld_get_mutex(struct kempld_device_data *pld) pld 254 drivers/mfd/kempld-core.c const struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); pld 256 drivers/mfd/kempld-core.c mutex_lock(&pld->lock); pld 257 drivers/mfd/kempld-core.c pdata->get_hardware_mutex(pld); pld 265 drivers/mfd/kempld-core.c void kempld_release_mutex(struct kempld_device_data *pld) pld 267 drivers/mfd/kempld-core.c const struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); pld 269 drivers/mfd/kempld-core.c pdata->release_hardware_mutex(pld); pld 270 drivers/mfd/kempld-core.c mutex_unlock(&pld->lock); pld 282 drivers/mfd/kempld-core.c static int kempld_get_info(struct kempld_device_data *pld) pld 285 drivers/mfd/kempld-core.c const struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); pld 288 drivers/mfd/kempld-core.c ret = pdata->get_info(pld); pld 300 drivers/mfd/kempld-core.c if (pld->info.major < 10) pld 301 drivers/mfd/kempld-core.c major = pld->info.major + '0'; pld 303 drivers/mfd/kempld-core.c major = (pld->info.major - 10) + 'A'; pld 304 drivers/mfd/kempld-core.c if (pld->info.minor < 10) pld 305 drivers/mfd/kempld-core.c minor = pld->info.minor + '0'; pld 307 drivers/mfd/kempld-core.c minor = (pld->info.minor - 10) + 'A'; pld 309 drivers/mfd/kempld-core.c ret = scnprintf(pld->info.version, sizeof(pld->info.version), pld 310 drivers/mfd/kempld-core.c "P%X%c%c.%04X", pld->info.number, major, minor, pld 311 drivers/mfd/kempld-core.c pld->info.buildnr); pld 325 drivers/mfd/kempld-core.c static int kempld_register_cells(struct kempld_device_data *pld) pld 327 drivers/mfd/kempld-core.c const struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); pld 329 drivers/mfd/kempld-core.c return pdata->register_cells(pld); pld 332 drivers/mfd/kempld-core.c static const char *kempld_get_type_string(struct kempld_device_data *pld) pld 336 drivers/mfd/kempld-core.c switch (pld->info.type) { pld 357 drivers/mfd/kempld-core.c struct kempld_device_data *pld = dev_get_drvdata(dev); pld 359 drivers/mfd/kempld-core.c return scnprintf(buf, PAGE_SIZE, "%s\n", pld->info.version); pld 365 drivers/mfd/kempld-core.c struct kempld_device_data *pld = dev_get_drvdata(dev); pld 367 drivers/mfd/kempld-core.c return scnprintf(buf, PAGE_SIZE, "%d.%d\n", pld->info.spec_major, pld 368 drivers/mfd/kempld-core.c pld->info.spec_minor); pld 374 drivers/mfd/kempld-core.c struct kempld_device_data *pld = dev_get_drvdata(dev); pld 376 drivers/mfd/kempld-core.c return scnprintf(buf, PAGE_SIZE, "%s\n", kempld_get_type_string(pld)); pld 395 drivers/mfd/kempld-core.c static int kempld_detect_device(struct kempld_device_data *pld) pld 400 drivers/mfd/kempld-core.c mutex_lock(&pld->lock); pld 403 drivers/mfd/kempld-core.c index_reg = ioread8(pld->io_index); pld 404 drivers/mfd/kempld-core.c if (index_reg == 0xff && ioread8(pld->io_data) == 0xff) { pld 405 drivers/mfd/kempld-core.c mutex_unlock(&pld->lock); pld 411 drivers/mfd/kempld-core.c iowrite8(KEMPLD_MUTEX_KEY, pld->io_index); pld 413 drivers/mfd/kempld-core.c iowrite8(KEMPLD_MUTEX_KEY, pld->io_index); pld 416 drivers/mfd/kempld-core.c mutex_unlock(&pld->lock); pld 418 drivers/mfd/kempld-core.c ret = kempld_get_info(pld); pld 422 drivers/mfd/kempld-core.c dev_info(pld->dev, "Found Kontron PLD - %s (%s), spec %d.%d\n", pld 423 drivers/mfd/kempld-core.c pld->info.version, kempld_get_type_string(pld), pld 424 drivers/mfd/kempld-core.c pld->info.spec_major, pld->info.spec_minor); pld 426 drivers/mfd/kempld-core.c ret = sysfs_create_group(&pld->dev->kobj, &pld_attr_group); pld 430 drivers/mfd/kempld-core.c ret = kempld_register_cells(pld); pld 432 drivers/mfd/kempld-core.c sysfs_remove_group(&pld->dev->kobj, &pld_attr_group); pld 442 drivers/mfd/kempld-core.c struct kempld_device_data *pld; pld 445 drivers/mfd/kempld-core.c pld = devm_kzalloc(dev, sizeof(*pld), GFP_KERNEL); pld 446 drivers/mfd/kempld-core.c if (!pld) pld 453 drivers/mfd/kempld-core.c pld->io_base = devm_ioport_map(dev, ioport->start, pld 455 drivers/mfd/kempld-core.c if (!pld->io_base) pld 458 drivers/mfd/kempld-core.c pld->io_index = pld->io_base; pld 459 drivers/mfd/kempld-core.c pld->io_data = pld->io_base + 1; pld 460 drivers/mfd/kempld-core.c pld->pld_clock = pdata->pld_clock; pld 461 drivers/mfd/kempld-core.c pld->dev = dev; pld 463 drivers/mfd/kempld-core.c mutex_init(&pld->lock); pld 464 drivers/mfd/kempld-core.c platform_set_drvdata(pdev, pld); pld 466 drivers/mfd/kempld-core.c return kempld_detect_device(pld); pld 471 drivers/mfd/kempld-core.c struct kempld_device_data *pld = platform_get_drvdata(pdev); pld 472 drivers/mfd/kempld-core.c const struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); pld 474 drivers/mfd/kempld-core.c sysfs_remove_group(&pld->dev->kobj, &pld_attr_group); pld 477 drivers/mfd/kempld-core.c pdata->release_hardware_mutex(pld); pld 832 drivers/net/wimax/i2400m/i2400m.h size_t i2400m_pld_size(const struct i2400m_pld *pld) pld 834 drivers/net/wimax/i2400m/i2400m.h return I2400M_PLD_SIZE_MASK & le32_to_cpu(pld->val); pld 838 drivers/net/wimax/i2400m/i2400m.h enum i2400m_pt i2400m_pld_type(const struct i2400m_pld *pld) pld 840 drivers/net/wimax/i2400m/i2400m.h return (I2400M_PLD_TYPE_MASK & le32_to_cpu(pld->val)) pld 845 drivers/net/wimax/i2400m/i2400m.h void i2400m_pld_set(struct i2400m_pld *pld, size_t size, pld 848 drivers/net/wimax/i2400m/i2400m.h pld->val = cpu_to_le32( pld 1098 drivers/net/wimax/i2400m/rx.c unsigned single_last, const struct i2400m_pld *pld, pld 1102 drivers/net/wimax/i2400m/rx.c size_t pl_size = i2400m_pld_size(pld); pld 1103 drivers/net/wimax/i2400m/rx.c enum i2400m_pt pl_type = i2400m_pld_type(pld); pld 1189 drivers/net/wimax/i2400m/rx.c const struct i2400m_pld *pld, pld 1194 drivers/net/wimax/i2400m/rx.c size_t pl_size = i2400m_pld_size(pld); pld 1195 drivers/net/wimax/i2400m/rx.c enum i2400m_pt pl_type = i2400m_pld_type(pld); pld 1263 drivers/net/wimax/i2400m/rx.c pl_itr = struct_size(msg_hdr, pld, num_pls); pld 1268 drivers/net/wimax/i2400m/rx.c skb_len, num_pls, sizeof(msg_hdr->pld[0]), pl_itr); pld 1274 drivers/net/wimax/i2400m/rx.c pl_size = i2400m_pld_size(&msg_hdr->pld[i]); pld 1275 drivers/net/wimax/i2400m/rx.c result = i2400m_rx_pl_descr_check(i2400m, &msg_hdr->pld[i], pld 1280 drivers/net/wimax/i2400m/rx.c i2400m_rx_payload(i2400m, skb, single_last, &msg_hdr->pld[i], pld 643 drivers/net/wimax/i2400m/tx.c hdr_size = struct_size(tx_msg, pld, le16_to_cpu(tx_msg->num_pls)); pld 782 drivers/net/wimax/i2400m/tx.c i2400m_pld_set(&tx_msg->pld[num_pls], buf_len, pl_type); pld 784 drivers/net/wimax/i2400m/tx.c le32_to_cpu(tx_msg->pld[num_pls].val), pld 481 drivers/net/wireless/ath/ath9k/ar9003_mci.c u32 pld[4] = {0, 0, 0, 0}; pld 483 drivers/net/wireless/ath/ath9k/ar9003_mci.c MCI_GPM_SET_TYPE_OPCODE(pld, MCI_GPM_COEX_AGENT, pld 486 drivers/net/wireless/ath/ath9k/ar9003_mci.c *(((u8 *)pld) + MCI_GPM_COEX_B_BT_FLAGS_OP) = opcode; pld 487 drivers/net/wireless/ath/ath9k/ar9003_mci.c *(((u8 *)pld) + MCI_GPM_COEX_W_BT_FLAGS + 0) = bt_flags & 0xFF; pld 488 drivers/net/wireless/ath/ath9k/ar9003_mci.c *(((u8 *)pld) + MCI_GPM_COEX_W_BT_FLAGS + 1) = (bt_flags >> 8) & 0xFF; pld 489 drivers/net/wireless/ath/ath9k/ar9003_mci.c *(((u8 *)pld) + MCI_GPM_COEX_W_BT_FLAGS + 2) = (bt_flags >> 16) & 0xFF; pld 490 drivers/net/wireless/ath/ath9k/ar9003_mci.c *(((u8 *)pld) + MCI_GPM_COEX_W_BT_FLAGS + 3) = (bt_flags >> 24) & 0xFF; pld 492 drivers/net/wireless/ath/ath9k/ar9003_mci.c return ar9003_mci_send_message(ah, MCI_GPM, 0, pld, 16, pld 1235 drivers/net/wireless/ath/ath9k/ar9003_mci.c u32 pld[4] = {0, 0, 0, 0}; pld 1241 drivers/net/wireless/ath/ath9k/ar9003_mci.c MCI_GPM_SET_CAL_TYPE(pld, MCI_GPM_WLAN_CAL_REQ); pld 1242 drivers/net/wireless/ath/ath9k/ar9003_mci.c pld[MCI_GPM_WLAN_CAL_W_SEQUENCE] = mci_hw->wlan_cal_seq++; pld 1244 drivers/net/wireless/ath/ath9k/ar9003_mci.c ar9003_mci_send_message(ah, MCI_GPM, 0, pld, 16, true, false); pld 1257 drivers/net/wireless/ath/ath9k/ar9003_mci.c u32 pld[4] = {0, 0, 0, 0}; pld 1263 drivers/net/wireless/ath/ath9k/ar9003_mci.c MCI_GPM_SET_CAL_TYPE(pld, MCI_GPM_WLAN_CAL_DONE); pld 1264 drivers/net/wireless/ath/ath9k/ar9003_mci.c pld[MCI_GPM_WLAN_CAL_W_SEQUENCE] = mci_hw->wlan_cal_done++; pld 1265 drivers/net/wireless/ath/ath9k/ar9003_mci.c ar9003_mci_send_message(ah, MCI_GPM, 0, pld, 16, true, false); pld 195 drivers/scsi/bfa/bfa_fcbuild.c fc_plogi_x_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, pld 199 drivers/scsi/bfa/bfa_fcbuild.c struct fc_logi_s *plogi = (struct fc_logi_s *) (pld); pld 301 drivers/scsi/bfa/bfa_fcbuild.c fc_plogi_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, pld 305 drivers/scsi/bfa/bfa_fcbuild.c return fc_plogi_x_build(fchs, pld, d_id, s_id, ox_id, port_name, pld 310 drivers/scsi/bfa/bfa_fcbuild.c fc_plogi_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, pld 314 drivers/scsi/bfa/bfa_fcbuild.c return fc_plogi_x_build(fchs, pld, d_id, s_id, ox_id, port_name, pld 369 drivers/scsi/bfa/bfa_fcbuild.c fc_prli_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, pld 372 drivers/scsi/bfa/bfa_fcbuild.c struct fc_prli_s *prli = (struct fc_prli_s *) (pld); pld 388 drivers/scsi/bfa/bfa_fcbuild.c fc_prli_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, pld 391 drivers/scsi/bfa/bfa_fcbuild.c struct fc_prli_s *prli = (struct fc_prli_s *) (pld); pld 510 drivers/scsi/bfa/bfa_fcbuild.c fc_adisc_parse(struct fchs_s *fchs, void *pld, u32 host_dap, wwn_t node_name, pld 513 drivers/scsi/bfa/bfa_fcbuild.c struct fc_adisc_s *adisc = (struct fc_adisc_s *) pld; pld 588 drivers/scsi/bfa/bfa_fcbuild.c fc_logo_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, pld 591 drivers/scsi/bfa/bfa_fcbuild.c struct fc_els_cmd_s *acc = pld; pld 145 drivers/scsi/bfa/bfa_fcbuild.h u16 fc_plogi_build(struct fchs_s *fchs, void *pld, u32 d_id, pld 159 drivers/scsi/bfa/bfa_fcbuild.h u16 fc_rspnid_build(struct fchs_s *fchs, void *pld, u32 s_id, pld 161 drivers/scsi/bfa/bfa_fcbuild.h u16 fc_rsnn_nn_build(struct fchs_s *fchs, void *pld, u32 s_id, pld 164 drivers/scsi/bfa/bfa_fcbuild.h u16 fc_rftid_build(struct fchs_s *fchs, void *pld, u32 s_id, pld 177 drivers/scsi/bfa/bfa_fcbuild.h u16 fc_gpnid_build(struct fchs_s *fchs, void *pld, u32 s_id, pld 187 drivers/scsi/bfa/bfa_fcbuild.h u16 fc_plogi_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, pld 196 drivers/scsi/bfa/bfa_fcbuild.h enum fc_parse_status fc_adisc_parse(struct fchs_s *fchs, void *pld, pld 210 drivers/scsi/bfa/bfa_fcbuild.h u16 fc_prli_build(struct fchs_s *fchs, void *pld, u32 d_id, pld 215 drivers/scsi/bfa/bfa_fcbuild.h u16 fc_prli_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, pld 236 drivers/scsi/bfa/bfa_fcbuild.h u16 fc_gid_ft_build(struct fchs_s *fchs, void *pld, u32 s_id, pld 257 drivers/scsi/bfa/bfa_fcbuild.h u16 fc_logo_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, pld 1884 drivers/scsi/bfa/bfa_fcs_rport.c void *pld = bfa_fcxp_get_rspbuf(fcxp); pld 1894 drivers/scsi/bfa/bfa_fcs_rport.c if (fc_adisc_rsp_parse((struct fc_adisc_s *)pld, rsp_len, rport->pwwn, pld 1902 drivers/scsi/bfa/bfa_fcs_rport.c ls_rjt = pld; pld 294 drivers/scsi/csiostor/csio_lnode.c uint8_t *pld; pld 328 drivers/scsi/csiostor/csio_lnode.c pld = (uint8_t *)csio_ct_get_pld(cmd); pld 329 drivers/scsi/csiostor/csio_lnode.c port_name = (struct fc_fdmi_port_name *)pld; pld 331 drivers/scsi/csiostor/csio_lnode.c pld += sizeof(*port_name); pld 334 drivers/scsi/csiostor/csio_lnode.c attrib_blk = (struct fs_fdmi_attrs *)pld; pld 337 drivers/scsi/csiostor/csio_lnode.c pld += sizeof(attrib_blk->numattrs); pld 343 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_FC4TYPES, pld 347 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_SUPPORTEDSPEED, pld 366 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_CURRENTPORTSPEED, pld 371 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_MAXFRAMESIZE, pld 376 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_OSDEVICENAME, buf, pld 381 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_HOSTNAME, pld 386 drivers/scsi/csiostor/csio_lnode.c len = (uint32_t)(pld - (uint8_t *)cmd); pld 407 drivers/scsi/csiostor/csio_lnode.c uint8_t *pld; pld 440 drivers/scsi/csiostor/csio_lnode.c pld = (uint8_t *)csio_ct_get_pld(cmd); pld 441 drivers/scsi/csiostor/csio_lnode.c hbaid = (struct fc_fdmi_hba_identifier *)pld; pld 443 drivers/scsi/csiostor/csio_lnode.c pld += sizeof(*hbaid); pld 446 drivers/scsi/csiostor/csio_lnode.c reg_pl = (struct fc_fdmi_rpl *)pld; pld 449 drivers/scsi/csiostor/csio_lnode.c pld += sizeof(*reg_pl); pld 452 drivers/scsi/csiostor/csio_lnode.c attrib_blk = (struct fs_fdmi_attrs *)pld; pld 455 drivers/scsi/csiostor/csio_lnode.c pld += sizeof(attrib_blk->numattrs); pld 457 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_NODENAME, csio_ln_wwnn(ln), pld 464 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_MANUFACTURER, buf, pld 467 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_SERIALNUMBER, pld 470 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_MODEL, hw->vpd.id, pld 473 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_MODELDESCRIPTION, pld 476 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_HARDWAREVERSION, pld 479 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_FIRMWAREVERSION, pld 484 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_OSNAMEVERSION, pld 489 drivers/scsi/csiostor/csio_lnode.c csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_MAXCTPAYLOAD, pld 491 drivers/scsi/csiostor/csio_lnode.c len = (uint32_t)(pld - (uint8_t *)cmd); pld 1726 drivers/scsi/csiostor/csio_lnode.c uint8_t sub_op, struct csio_dma_buf *pld, pld 1775 drivers/scsi/csiostor/csio_lnode.c csio_wr_copy_to_wrp(pld->vaddr, &wrp, wr_off, im_len); pld 1781 drivers/scsi/csiostor/csio_lnode.c dsgl.addr0 = cpu_to_be64(pld->paddr); pld 1808 drivers/scsi/csiostor/csio_lnode.c enum fcoe_cmn_type req_type, struct csio_dma_buf *pld, pld 1815 drivers/scsi/csiostor/csio_lnode.c BUG_ON(pld_len > pld->len); pld 1822 drivers/scsi/csiostor/csio_lnode.c rv = csio_ln_mgmt_submit_wr(mgmtm, io_req, req_type, pld, pld_len); pld 85 drivers/usb/core/usb-acpi.c struct acpi_pld_info *pld) pld 108 drivers/usb/core/usb-acpi.c if (pld->user_visible) pld 112 drivers/usb/core/usb-acpi.c else if (!pld->user_visible) pld 179 drivers/usb/core/usb-acpi.c struct acpi_pld_info *pld; pld 188 drivers/usb/core/usb-acpi.c status = acpi_get_physical_device_location(handle, &pld); pld 189 drivers/usb/core/usb-acpi.c if (!ACPI_FAILURE(status) && pld) { pld 191 drivers/usb/core/usb-acpi.c | pld->group_token << 8 | pld->group_position; pld 192 drivers/usb/core/usb-acpi.c port_dev->connect_type = usb_acpi_get_connect_type(handle, pld); pld 193 drivers/usb/core/usb-acpi.c ACPI_FREE(pld); pld 74 drivers/watchdog/kempld_wdt.c struct kempld_device_data *pld; pld 108 drivers/watchdog/kempld_wdt.c struct kempld_device_data *pld = wdt_data->pld; pld 114 drivers/watchdog/kempld_wdt.c kempld_get_mutex(pld); pld 115 drivers/watchdog/kempld_wdt.c stage_cfg = kempld_read8(pld, KEMPLD_WDT_STAGE_CFG(stage->id)); pld 124 drivers/watchdog/kempld_wdt.c kempld_write8(pld, KEMPLD_WDT_STAGE_CFG(stage->id), stage_cfg); pld 125 drivers/watchdog/kempld_wdt.c kempld_release_mutex(pld); pld 134 drivers/watchdog/kempld_wdt.c struct kempld_device_data *pld = wdt_data->pld; pld 146 drivers/watchdog/kempld_wdt.c stage_timeout64 = (u64)timeout * pld->pld_clock; pld 156 drivers/watchdog/kempld_wdt.c kempld_get_mutex(pld); pld 157 drivers/watchdog/kempld_wdt.c stage_cfg = kempld_read8(pld, KEMPLD_WDT_STAGE_CFG(stage->id)); pld 160 drivers/watchdog/kempld_wdt.c kempld_write8(pld, KEMPLD_WDT_STAGE_CFG(stage->id), stage_cfg); pld 161 drivers/watchdog/kempld_wdt.c kempld_write32(pld, KEMPLD_WDT_STAGE_TIMEOUT(stage->id), pld 163 drivers/watchdog/kempld_wdt.c kempld_release_mutex(pld); pld 174 drivers/watchdog/kempld_wdt.c struct kempld_device_data *pld = wdt_data->pld; pld 184 drivers/watchdog/kempld_wdt.c stage_cfg = kempld_read8(pld, KEMPLD_WDT_STAGE_CFG(stage->id)); pld 185 drivers/watchdog/kempld_wdt.c stage_timeout = kempld_read32(pld, KEMPLD_WDT_STAGE_TIMEOUT(stage->id)); pld 189 drivers/watchdog/kempld_wdt.c remainder = do_div(stage_timeout, pld->pld_clock); pld 260 drivers/watchdog/kempld_wdt.c struct kempld_device_data *pld = wdt_data->pld; pld 268 drivers/watchdog/kempld_wdt.c kempld_get_mutex(pld); pld 271 drivers/watchdog/kempld_wdt.c kempld_release_mutex(pld); pld 284 drivers/watchdog/kempld_wdt.c struct kempld_device_data *pld = wdt_data->pld; pld 292 drivers/watchdog/kempld_wdt.c kempld_get_mutex(pld); pld 293 drivers/watchdog/kempld_wdt.c status = kempld_read8(pld, KEMPLD_WDT_CFG); pld 295 drivers/watchdog/kempld_wdt.c kempld_write8(pld, KEMPLD_WDT_CFG, status); pld 296 drivers/watchdog/kempld_wdt.c status = kempld_read8(pld, KEMPLD_WDT_CFG); pld 297 drivers/watchdog/kempld_wdt.c kempld_release_mutex(pld); pld 309 drivers/watchdog/kempld_wdt.c struct kempld_device_data *pld = wdt_data->pld; pld 312 drivers/watchdog/kempld_wdt.c kempld_get_mutex(pld); pld 313 drivers/watchdog/kempld_wdt.c status = kempld_read8(pld, KEMPLD_WDT_CFG); pld 315 drivers/watchdog/kempld_wdt.c kempld_write8(pld, KEMPLD_WDT_CFG, status); pld 316 drivers/watchdog/kempld_wdt.c status = kempld_read8(pld, KEMPLD_WDT_CFG); pld 317 drivers/watchdog/kempld_wdt.c kempld_release_mutex(pld); pld 329 drivers/watchdog/kempld_wdt.c struct kempld_device_data *pld = wdt_data->pld; pld 331 drivers/watchdog/kempld_wdt.c kempld_get_mutex(pld); pld 332 drivers/watchdog/kempld_wdt.c kempld_write8(pld, KEMPLD_WDT_KICK, 'K'); pld 333 drivers/watchdog/kempld_wdt.c kempld_release_mutex(pld); pld 367 drivers/watchdog/kempld_wdt.c struct kempld_device_data *pld = wdt_data->pld; pld 384 drivers/watchdog/kempld_wdt.c kempld_get_mutex(pld); pld 387 drivers/watchdog/kempld_wdt.c data_orig = kempld_read8(pld, index + j); pld 388 drivers/watchdog/kempld_wdt.c kempld_write8(pld, index + j, 0x00); pld 389 drivers/watchdog/kempld_wdt.c data = kempld_read8(pld, index + j); pld 393 drivers/watchdog/kempld_wdt.c kempld_write8(pld, index + j, data_orig); pld 396 drivers/watchdog/kempld_wdt.c kempld_release_mutex(pld); pld 403 drivers/watchdog/kempld_wdt.c if (pld->feature_mask & KEMPLD_FEATURE_BIT_NMI) { pld 438 drivers/watchdog/kempld_wdt.c struct kempld_device_data *pld = dev_get_drvdata(pdev->dev.parent); pld 449 drivers/watchdog/kempld_wdt.c wdt_data->pld = pld; pld 453 drivers/watchdog/kempld_wdt.c kempld_get_mutex(pld); pld 454 drivers/watchdog/kempld_wdt.c status = kempld_read8(pld, KEMPLD_WDT_CFG); pld 455 drivers/watchdog/kempld_wdt.c kempld_release_mutex(pld); pld 504 drivers/watchdog/kempld_wdt.c struct kempld_device_data *pld = wdt_data->pld; pld 507 drivers/watchdog/kempld_wdt.c kempld_get_mutex(pld); pld 508 drivers/watchdog/kempld_wdt.c wdt_data->pm_status_store = kempld_read8(pld, KEMPLD_WDT_CFG); pld 509 drivers/watchdog/kempld_wdt.c kempld_release_mutex(pld); pld 40 include/acpi/acpi_bus.h acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld); pld 117 include/linux/mfd/kempld.h extern void kempld_get_mutex(struct kempld_device_data *pld); pld 118 include/linux/mfd/kempld.h extern void kempld_release_mutex(struct kempld_device_data *pld); pld 119 include/linux/mfd/kempld.h extern u8 kempld_read8(struct kempld_device_data *pld, u8 index); pld 120 include/linux/mfd/kempld.h extern void kempld_write8(struct kempld_device_data *pld, u8 index, u8 data); pld 121 include/linux/mfd/kempld.h extern u16 kempld_read16(struct kempld_device_data *pld, u8 index); pld 122 include/linux/mfd/kempld.h extern void kempld_write16(struct kempld_device_data *pld, u8 index, u16 data); pld 123 include/linux/mfd/kempld.h extern u32 kempld_read32(struct kempld_device_data *pld, u8 index); pld 124 include/linux/mfd/kempld.h extern void kempld_write32(struct kempld_device_data *pld, u8 index, u32 data); pld 322 include/uapi/linux/wimax/i2400m.h struct i2400m_pld pld[0];