Searched refs:pld (Results 1 - 40 of 40) sorted by relevance

/linux-4.4.14/drivers/gpio/
H A Dgpio-kempld.c35 struct kempld_device_data *pld; member in struct:kempld_gpio_data
42 static void kempld_gpio_bitop(struct kempld_device_data *pld, kempld_gpio_bitop() argument
47 status = kempld_read8(pld, reg); kempld_gpio_bitop()
52 kempld_write8(pld, reg, status); kempld_gpio_bitop()
55 static int kempld_gpio_get_bit(struct kempld_device_data *pld, u8 reg, u8 bit) kempld_gpio_get_bit() argument
59 kempld_get_mutex(pld); kempld_gpio_get_bit()
60 status = kempld_read8(pld, reg); kempld_gpio_get_bit()
61 kempld_release_mutex(pld); kempld_gpio_get_bit()
70 struct kempld_device_data *pld = gpio->pld; kempld_gpio_get() local
72 return kempld_gpio_get_bit(pld, KEMPLD_GPIO_LVL_NUM(offset), offset); kempld_gpio_get()
79 struct kempld_device_data *pld = gpio->pld; kempld_gpio_set() local
81 kempld_get_mutex(pld); kempld_gpio_set()
82 kempld_gpio_bitop(pld, KEMPLD_GPIO_LVL_NUM(offset), offset, value); kempld_gpio_set()
83 kempld_release_mutex(pld); kempld_gpio_set()
90 struct kempld_device_data *pld = gpio->pld; kempld_gpio_direction_input() local
92 kempld_get_mutex(pld); kempld_gpio_direction_input()
93 kempld_gpio_bitop(pld, KEMPLD_GPIO_DIR_NUM(offset), offset, 0); kempld_gpio_direction_input()
94 kempld_release_mutex(pld); kempld_gpio_direction_input()
104 struct kempld_device_data *pld = gpio->pld; kempld_gpio_direction_output() local
106 kempld_get_mutex(pld); kempld_gpio_direction_output()
107 kempld_gpio_bitop(pld, KEMPLD_GPIO_LVL_NUM(offset), offset, value); kempld_gpio_direction_output()
108 kempld_gpio_bitop(pld, KEMPLD_GPIO_DIR_NUM(offset), offset, 1); kempld_gpio_direction_output()
109 kempld_release_mutex(pld); kempld_gpio_direction_output()
118 struct kempld_device_data *pld = gpio->pld; kempld_gpio_get_direction() local
120 return !kempld_gpio_get_bit(pld, KEMPLD_GPIO_DIR_NUM(offset), offset); kempld_gpio_get_direction()
123 static int kempld_gpio_pincount(struct kempld_device_data *pld) kempld_gpio_pincount() argument
127 kempld_get_mutex(pld); kempld_gpio_pincount()
130 evt_back = kempld_read16(pld, KEMPLD_GPIO_EVT_LVL_EDGE); kempld_gpio_pincount()
132 kempld_write16(pld, KEMPLD_GPIO_EVT_LVL_EDGE, 0x0000); kempld_gpio_pincount()
134 evt = kempld_read16(pld, KEMPLD_GPIO_EVT_LVL_EDGE); kempld_gpio_pincount()
136 kempld_write16(pld, KEMPLD_GPIO_EVT_LVL_EDGE, evt_back); kempld_gpio_pincount()
138 kempld_release_mutex(pld); kempld_gpio_pincount()
146 struct kempld_device_data *pld = dev_get_drvdata(dev->parent); kempld_gpio_probe() local
147 struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); kempld_gpio_probe()
152 if (pld->info.spec_major < 2) { kempld_gpio_probe()
162 gpio->pld = pld; kempld_gpio_probe()
180 chip->ngpio = kempld_gpio_pincount(pld); kempld_gpio_probe()
/linux-4.4.14/drivers/i2c/busses/
H A Di2c-kempld.c65 struct kempld_device_data *pld; member in struct:kempld_i2c_data
92 struct kempld_device_data *pld = i2c->pld; kempld_i2c_process() local
93 u8 stat = kempld_read8(pld, KEMPLD_I2C_STAT); kempld_i2c_process()
103 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_IACK); kempld_i2c_process()
112 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_STOP); kempld_i2c_process()
136 kempld_write8(pld, KEMPLD_I2C_DATA, addr); kempld_i2c_process()
137 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_START); kempld_i2c_process()
144 kempld_write8(pld, KEMPLD_I2C_DATA, i2c->msg->addr & 0xff); kempld_i2c_process()
145 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_WRITE); kempld_i2c_process()
156 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_STOP); kempld_i2c_process()
160 msg->buf[i2c->pos++] = kempld_read8(pld, KEMPLD_I2C_DATA); kempld_i2c_process()
179 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_STOP); kempld_i2c_process()
185 kempld_write8(pld, KEMPLD_I2C_CMD, i2c->pos == (msg->len - 1) ? kempld_i2c_process()
188 kempld_write8(pld, KEMPLD_I2C_DATA, msg->buf[i2c->pos++]); kempld_i2c_process()
189 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_WRITE); kempld_i2c_process()
199 struct kempld_device_data *pld = i2c->pld; kempld_i2c_xfer() local
210 kempld_get_mutex(pld); kempld_i2c_xfer()
212 kempld_release_mutex(pld); kempld_i2c_xfer()
233 struct kempld_device_data *pld = i2c->pld; kempld_i2c_device_init() local
241 ctrl = kempld_read8(pld, KEMPLD_I2C_CTRL); kempld_i2c_device_init()
243 kempld_write8(pld, KEMPLD_I2C_CTRL, ctrl); kempld_i2c_device_init()
248 if (pld->info.spec_major == 1) kempld_i2c_device_init()
249 prescale = pld->pld_clock / (bus_frequency * 5) - 1000; kempld_i2c_device_init()
251 prescale = pld->pld_clock / (bus_frequency * 4) - 3000; kempld_i2c_device_init()
261 kempld_write8(pld, KEMPLD_I2C_PRELOW, prescale_corr & 0xff); kempld_i2c_device_init()
262 kempld_write8(pld, KEMPLD_I2C_PREHIGH, prescale_corr >> 8); kempld_i2c_device_init()
265 cfg = kempld_read8(pld, KEMPLD_CFG); kempld_i2c_device_init()
270 kempld_write8(pld, KEMPLD_CFG, cfg); kempld_i2c_device_init()
273 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_IACK); kempld_i2c_device_init()
275 kempld_write8(pld, KEMPLD_I2C_CTRL, ctrl); kempld_i2c_device_init()
277 stat = kempld_read8(pld, KEMPLD_I2C_STAT); kempld_i2c_device_init()
279 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_STOP); kempld_i2c_device_init()
301 struct kempld_device_data *pld = dev_get_drvdata(pdev->dev.parent); kempld_i2c_probe() local
310 i2c->pld = pld; kempld_i2c_probe()
317 kempld_get_mutex(pld); kempld_i2c_probe()
318 ctrl = kempld_read8(pld, KEMPLD_I2C_CTRL); kempld_i2c_probe()
324 kempld_release_mutex(pld); kempld_i2c_probe()
342 struct kempld_device_data *pld = i2c->pld; kempld_i2c_remove() local
345 kempld_get_mutex(pld); kempld_i2c_remove()
351 ctrl = kempld_read8(pld, KEMPLD_I2C_CTRL); kempld_i2c_remove()
353 kempld_write8(pld, KEMPLD_I2C_CTRL, ctrl); kempld_i2c_remove()
355 kempld_release_mutex(pld); kempld_i2c_remove()
366 struct kempld_device_data *pld = i2c->pld; kempld_i2c_suspend() local
369 kempld_get_mutex(pld); kempld_i2c_suspend()
370 ctrl = kempld_read8(pld, KEMPLD_I2C_CTRL); kempld_i2c_suspend()
372 kempld_write8(pld, KEMPLD_I2C_CTRL, ctrl); kempld_i2c_suspend()
373 kempld_release_mutex(pld); kempld_i2c_suspend()
381 struct kempld_device_data *pld = i2c->pld; kempld_i2c_resume() local
383 kempld_get_mutex(pld); kempld_i2c_resume()
385 kempld_release_mutex(pld); kempld_i2c_resume()
/linux-4.4.14/drivers/mfd/
H A Dkempld-core.c32 * Get hardware mutex to block firmware from accessing the pld.
36 static void kempld_get_hardware_mutex(struct kempld_device_data *pld) kempld_get_hardware_mutex() argument
39 while (ioread8(pld->io_index) & KEMPLD_MUTEX_KEY) kempld_get_hardware_mutex()
43 static void kempld_release_hardware_mutex(struct kempld_device_data *pld) kempld_release_hardware_mutex() argument
46 iowrite8(KEMPLD_MUTEX_KEY, pld->io_index); kempld_release_hardware_mutex()
49 static int kempld_get_info_generic(struct kempld_device_data *pld) kempld_get_info_generic() argument
54 kempld_get_mutex(pld); kempld_get_info_generic()
56 version = kempld_read16(pld, KEMPLD_VERSION); kempld_get_info_generic()
57 spec = kempld_read8(pld, KEMPLD_SPEC); kempld_get_info_generic()
58 pld->info.buildnr = kempld_read16(pld, KEMPLD_BUILDNR); kempld_get_info_generic()
60 pld->info.minor = KEMPLD_VERSION_GET_MINOR(version); kempld_get_info_generic()
61 pld->info.major = KEMPLD_VERSION_GET_MAJOR(version); kempld_get_info_generic()
62 pld->info.number = KEMPLD_VERSION_GET_NUMBER(version); kempld_get_info_generic()
63 pld->info.type = KEMPLD_VERSION_GET_TYPE(version); kempld_get_info_generic()
66 pld->info.spec_minor = 0; kempld_get_info_generic()
67 pld->info.spec_major = 1; kempld_get_info_generic()
69 pld->info.spec_minor = KEMPLD_SPEC_GET_MINOR(spec); kempld_get_info_generic()
70 pld->info.spec_major = KEMPLD_SPEC_GET_MAJOR(spec); kempld_get_info_generic()
73 if (pld->info.spec_major > 0) kempld_get_info_generic()
74 pld->feature_mask = kempld_read16(pld, KEMPLD_FEATURE); kempld_get_info_generic()
76 pld->feature_mask = 0; kempld_get_info_generic()
78 kempld_release_mutex(pld); kempld_get_info_generic()
107 static int kempld_register_cells_generic(struct kempld_device_data *pld) kempld_register_cells_generic() argument
112 if (pld->feature_mask & KEMPLD_FEATURE_BIT_I2C) kempld_register_cells_generic()
115 if (pld->feature_mask & KEMPLD_FEATURE_BIT_WATCHDOG) kempld_register_cells_generic()
118 if (pld->feature_mask & KEMPLD_FEATURE_BIT_GPIO) kempld_register_cells_generic()
121 if (pld->feature_mask & KEMPLD_FEATURE_MASK_UART) kempld_register_cells_generic()
124 return mfd_add_devices(pld->dev, -1, devs, i, NULL, 0, NULL); kempld_register_cells_generic()
173 * @pld: kempld_device_data structure describing the PLD
178 u8 kempld_read8(struct kempld_device_data *pld, u8 index) kempld_read8() argument
180 iowrite8(index, pld->io_index); kempld_read8()
181 return ioread8(pld->io_data); kempld_read8()
187 * @pld: kempld_device_data structure describing the PLD
193 void kempld_write8(struct kempld_device_data *pld, u8 index, u8 data) kempld_write8() argument
195 iowrite8(index, pld->io_index); kempld_write8()
196 iowrite8(data, pld->io_data); kempld_write8()
202 * @pld: kempld_device_data structure describing the PLD
207 u16 kempld_read16(struct kempld_device_data *pld, u8 index) kempld_read16() argument
209 return kempld_read8(pld, index) | kempld_read8(pld, index + 1) << 8; kempld_read16()
215 * @pld: kempld_device_data structure describing the PLD
221 void kempld_write16(struct kempld_device_data *pld, u8 index, u16 data) kempld_write16() argument
223 kempld_write8(pld, index, (u8)data); kempld_write16()
224 kempld_write8(pld, index + 1, (u8)(data >> 8)); kempld_write16()
230 * @pld: kempld_device_data structure describing the PLD
235 u32 kempld_read32(struct kempld_device_data *pld, u8 index) kempld_read32() argument
237 return kempld_read16(pld, index) | kempld_read16(pld, index + 2) << 16; kempld_read32()
243 * @pld: kempld_device_data structure describing the PLD
249 void kempld_write32(struct kempld_device_data *pld, u8 index, u32 data) kempld_write32() argument
251 kempld_write16(pld, index, (u16)data); kempld_write32()
252 kempld_write16(pld, index + 2, (u16)(data >> 16)); kempld_write32()
258 * @pld: kempld_device_data structure describing the PLD
260 void kempld_get_mutex(struct kempld_device_data *pld) kempld_get_mutex() argument
262 struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); kempld_get_mutex()
264 mutex_lock(&pld->lock); kempld_get_mutex()
265 pdata->get_hardware_mutex(pld); kempld_get_mutex()
271 * @pld: kempld_device_data structure describing the PLD
273 void kempld_release_mutex(struct kempld_device_data *pld) kempld_release_mutex() argument
275 struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); kempld_release_mutex()
277 pdata->release_hardware_mutex(pld); kempld_release_mutex()
278 mutex_unlock(&pld->lock); kempld_release_mutex()
284 * @pld: kempld_device_data structure describing the PLD
288 * hardware. The information is then stored within the pld structure.
290 static int kempld_get_info(struct kempld_device_data *pld) kempld_get_info() argument
293 struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); kempld_get_info()
296 ret = pdata->get_info(pld); kempld_get_info()
308 if (pld->info.major < 10) kempld_get_info()
309 major = pld->info.major + '0'; kempld_get_info()
311 major = (pld->info.major - 10) + 'A'; kempld_get_info()
312 if (pld->info.minor < 10) kempld_get_info()
313 minor = pld->info.minor + '0'; kempld_get_info()
315 minor = (pld->info.minor - 10) + 'A'; kempld_get_info()
317 ret = scnprintf(pld->info.version, sizeof(pld->info.version), kempld_get_info()
318 "P%X%c%c.%04X", pld->info.number, major, minor, kempld_get_info()
319 pld->info.buildnr); kempld_get_info()
333 static int kempld_register_cells(struct kempld_device_data *pld) kempld_register_cells() argument
335 struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); kempld_register_cells()
337 return pdata->register_cells(pld); kempld_register_cells()
340 static const char *kempld_get_type_string(struct kempld_device_data *pld) kempld_get_type_string() argument
344 switch (pld->info.type) { kempld_get_type_string()
365 struct kempld_device_data *pld = dev_get_drvdata(dev); kempld_version_show() local
367 return scnprintf(buf, PAGE_SIZE, "%s\n", pld->info.version); kempld_version_show()
373 struct kempld_device_data *pld = dev_get_drvdata(dev); kempld_specification_show() local
375 return scnprintf(buf, PAGE_SIZE, "%d.%d\n", pld->info.spec_major, kempld_specification_show()
376 pld->info.spec_minor); kempld_specification_show()
382 struct kempld_device_data *pld = dev_get_drvdata(dev); kempld_type_show() local
384 return scnprintf(buf, PAGE_SIZE, "%s\n", kempld_get_type_string(pld)); kempld_type_show()
403 static int kempld_detect_device(struct kempld_device_data *pld) kempld_detect_device() argument
408 mutex_lock(&pld->lock); kempld_detect_device()
411 index_reg = ioread8(pld->io_index); kempld_detect_device()
412 if (index_reg == 0xff && ioread8(pld->io_data) == 0xff) { kempld_detect_device()
413 mutex_unlock(&pld->lock); kempld_detect_device()
419 iowrite8(KEMPLD_MUTEX_KEY, pld->io_index); kempld_detect_device()
421 iowrite8(KEMPLD_MUTEX_KEY, pld->io_index); kempld_detect_device()
424 mutex_unlock(&pld->lock); kempld_detect_device()
426 ret = kempld_get_info(pld); kempld_detect_device()
430 dev_info(pld->dev, "Found Kontron PLD - %s (%s), spec %d.%d\n", kempld_detect_device()
431 pld->info.version, kempld_get_type_string(pld), kempld_detect_device()
432 pld->info.spec_major, pld->info.spec_minor); kempld_detect_device()
434 ret = sysfs_create_group(&pld->dev->kobj, &pld_attr_group); kempld_detect_device()
438 ret = kempld_register_cells(pld); kempld_detect_device()
440 sysfs_remove_group(&pld->dev->kobj, &pld_attr_group); kempld_detect_device()
449 struct kempld_device_data *pld; kempld_probe() local
452 pld = devm_kzalloc(dev, sizeof(*pld), GFP_KERNEL); kempld_probe()
453 if (!pld) kempld_probe()
460 pld->io_base = devm_ioport_map(dev, ioport->start, kempld_probe()
462 if (!pld->io_base) kempld_probe()
465 pld->io_index = pld->io_base; kempld_probe()
466 pld->io_data = pld->io_base + 1; kempld_probe()
467 pld->pld_clock = pdata->pld_clock; kempld_probe()
468 pld->dev = dev; kempld_probe()
470 mutex_init(&pld->lock); kempld_probe()
471 platform_set_drvdata(pdev, pld); kempld_probe()
473 return kempld_detect_device(pld); kempld_probe()
478 struct kempld_device_data *pld = platform_get_drvdata(pdev); kempld_remove() local
479 struct kempld_platform_data *pdata = dev_get_platdata(pld->dev); kempld_remove()
481 sysfs_remove_group(&pld->dev->kobj, &pld_attr_group); kempld_remove()
484 pdata->release_hardware_mutex(pld); kempld_remove()
/linux-4.4.14/drivers/watchdog/
H A Dkempld_wdt.c82 struct kempld_device_data *pld; member in struct:kempld_wdt_data
116 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_set_stage_action() local
122 kempld_get_mutex(pld); kempld_wdt_set_stage_action()
123 stage_cfg = kempld_read8(pld, KEMPLD_WDT_STAGE_CFG(stage->id)); kempld_wdt_set_stage_action()
132 kempld_write8(pld, KEMPLD_WDT_STAGE_CFG(stage->id), stage_cfg); kempld_wdt_set_stage_action()
133 kempld_release_mutex(pld); kempld_wdt_set_stage_action()
142 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_set_stage_timeout() local
152 stage_timeout64 = (u64)timeout * pld->pld_clock; kempld_wdt_set_stage_timeout()
162 kempld_get_mutex(pld); kempld_wdt_set_stage_timeout()
163 stage_cfg = kempld_read8(pld, KEMPLD_WDT_STAGE_CFG(stage->id)); kempld_wdt_set_stage_timeout()
166 kempld_write8(pld, KEMPLD_WDT_STAGE_CFG(stage->id), stage_cfg); kempld_wdt_set_stage_timeout()
167 kempld_write32(pld, KEMPLD_WDT_STAGE_TIMEOUT(stage->id), kempld_wdt_set_stage_timeout()
169 kempld_release_mutex(pld); kempld_wdt_set_stage_timeout()
180 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_get_timeout() local
190 stage_cfg = kempld_read8(pld, KEMPLD_WDT_STAGE_CFG(stage->id)); kempld_wdt_get_timeout()
191 stage_timeout = kempld_read32(pld, KEMPLD_WDT_STAGE_TIMEOUT(stage->id)); kempld_wdt_get_timeout()
195 remainder = do_div(stage_timeout, pld->pld_clock); kempld_wdt_get_timeout()
266 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_update_timeouts() local
274 kempld_get_mutex(pld); kempld_wdt_update_timeouts()
277 kempld_release_mutex(pld); kempld_wdt_update_timeouts()
290 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_start() local
298 kempld_get_mutex(pld); kempld_wdt_start()
299 status = kempld_read8(pld, KEMPLD_WDT_CFG); kempld_wdt_start()
301 kempld_write8(pld, KEMPLD_WDT_CFG, status); kempld_wdt_start()
302 status = kempld_read8(pld, KEMPLD_WDT_CFG); kempld_wdt_start()
303 kempld_release_mutex(pld); kempld_wdt_start()
315 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_stop() local
318 kempld_get_mutex(pld); kempld_wdt_stop()
319 status = kempld_read8(pld, KEMPLD_WDT_CFG); kempld_wdt_stop()
321 kempld_write8(pld, KEMPLD_WDT_CFG, status); kempld_wdt_stop()
322 status = kempld_read8(pld, KEMPLD_WDT_CFG); kempld_wdt_stop()
323 kempld_release_mutex(pld); kempld_wdt_stop()
335 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_keepalive() local
337 kempld_get_mutex(pld); kempld_wdt_keepalive()
338 kempld_write8(pld, KEMPLD_WDT_KICK, 'K'); kempld_wdt_keepalive()
339 kempld_release_mutex(pld); kempld_wdt_keepalive()
373 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_probe_stages() local
390 kempld_get_mutex(pld); kempld_wdt_probe_stages()
393 data_orig = kempld_read8(pld, index + j); kempld_wdt_probe_stages()
394 kempld_write8(pld, index + j, 0x00); kempld_wdt_probe_stages()
395 data = kempld_read8(pld, index + j); kempld_wdt_probe_stages()
399 kempld_write8(pld, index + j, data_orig); kempld_wdt_probe_stages()
402 kempld_release_mutex(pld); kempld_wdt_probe_stages()
409 if (pld->feature_mask & KEMPLD_FEATURE_BIT_NMI) { kempld_wdt_probe_stages()
444 struct kempld_device_data *pld = dev_get_drvdata(pdev->dev.parent); kempld_wdt_probe() local
455 wdt_data->pld = pld; kempld_wdt_probe()
459 kempld_get_mutex(pld); kempld_wdt_probe()
460 status = kempld_read8(pld, KEMPLD_WDT_CFG); kempld_wdt_probe()
461 kempld_release_mutex(pld); kempld_wdt_probe()
528 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_suspend() local
531 kempld_get_mutex(pld); kempld_wdt_suspend()
532 wdt_data->pm_status_store = kempld_read8(pld, KEMPLD_WDT_CFG); kempld_wdt_suspend()
533 kempld_release_mutex(pld); kempld_wdt_suspend()
/linux-4.4.14/arch/alpha/kernel/
H A Dirq_pyxis.c69 unsigned long pld; pyxis_device_interrupt() local
73 pld = *(vulp)PYXIS_INT_REQ; pyxis_device_interrupt()
74 pld &= cached_irq_mask; pyxis_device_interrupt()
80 while (pld) { pyxis_device_interrupt()
81 i = ffz(~pld); pyxis_device_interrupt()
82 pld &= pld - 1; /* clear least bit set */ pyxis_device_interrupt()
H A Dsys_rx164.c70 unsigned long pld; rx164_device_interrupt() local
77 pld = *dirr; rx164_device_interrupt()
83 while (pld) { rx164_device_interrupt()
84 i = ffz(~pld); rx164_device_interrupt()
85 pld &= pld - 1; /* clear least bit set */ rx164_device_interrupt()
H A Dsys_eb64p.c67 unsigned long pld; eb64p_device_interrupt() local
71 pld = inb(0x26) | (inb(0x27) << 8); eb64p_device_interrupt()
77 while (pld) { eb64p_device_interrupt()
78 i = ffz(~pld); eb64p_device_interrupt()
79 pld &= pld - 1; /* clear least bit set */ eb64p_device_interrupt()
H A Dsys_mikasa.c67 unsigned long pld; mikasa_device_interrupt() local
71 pld = (((~inw(0x534) & 0x0000ffffUL) << 16) mikasa_device_interrupt()
79 while (pld) { mikasa_device_interrupt()
80 i = ffz(~pld); mikasa_device_interrupt()
81 pld &= pld - 1; /* clear least bit set */ mikasa_device_interrupt()
H A Dsys_alcor.c87 unsigned long pld; alcor_device_interrupt() local
91 pld = (*(vuip)GRU_INT_REQ) & GRU_INT_REQ_BITS; alcor_device_interrupt()
97 while (pld) { alcor_device_interrupt()
98 i = ffz(~pld); alcor_device_interrupt()
99 pld &= pld - 1; /* clear least bit set */ alcor_device_interrupt()
H A Dsys_noritake.c72 unsigned long pld; noritake_device_interrupt() local
76 pld = (((unsigned long) inw(0x54c) << 32) noritake_device_interrupt()
85 while (pld) { noritake_device_interrupt()
86 i = ffz(~pld); noritake_device_interrupt()
87 pld &= pld - 1; /* clear least bit set */ noritake_device_interrupt()
H A Dsys_cabriolet.c69 unsigned long pld; cabriolet_device_interrupt() local
73 pld = inb(0x804) | (inb(0x805) << 8) | (inb(0x806) << 16); cabriolet_device_interrupt()
79 while (pld) { cabriolet_device_interrupt()
80 i = ffz(~pld); cabriolet_device_interrupt()
81 pld &= pld - 1; /* clear least bit set */ cabriolet_device_interrupt()
H A Dsys_dp264.c193 unsigned long pld; dp264_device_interrupt() local
197 pld = TSUNAMI_cchip->dir0.csr; dp264_device_interrupt()
203 while (pld) { dp264_device_interrupt()
204 i = ffz(~pld); dp264_device_interrupt()
205 pld &= pld - 1; /* clear least bit set */ dp264_device_interrupt()
/linux-4.4.14/arch/arm/mm/
H A Dcopypage-xscale.c49 pld [r0, #0] \n\ mc_copy_user_page()
50 pld [r0, #32] \n\ mc_copy_user_page()
51 pld [r1, #0] \n\ mc_copy_user_page()
52 pld [r1, #32] \n\ mc_copy_user_page()
53 1: pld [r0, #64] \n\ mc_copy_user_page()
54 pld [r0, #96] \n\ mc_copy_user_page()
55 pld [r1, #64] \n\ mc_copy_user_page()
56 pld [r1, #96] \n\ mc_copy_user_page()
H A Dcopypage-feroceon.c24 pld [lr, #32] \n\ feroceon_copy_user_page()
25 pld [lr, #64] \n\ feroceon_copy_user_page()
26 pld [lr, #96] \n\ feroceon_copy_user_page()
27 pld [lr, #128] \n\ feroceon_copy_user_page()
28 pld [lr, #160] \n\ feroceon_copy_user_page()
29 pld [lr, #192] \n\ feroceon_copy_user_page()
30 pld [lr, #224] \n\ feroceon_copy_user_page()
H A Dcopypage-xsc3.c39 pld [r1, #0] \n\ xsc3_mc_copy_user_page()
40 pld [r1, #32] \n\ xsc3_mc_copy_user_page()
41 1: pld [r1, #64] \n\ xsc3_mc_copy_user_page()
42 pld [r1, #96] \n\ xsc3_mc_copy_user_page()
/linux-4.4.14/include/linux/mfd/
H A Dkempld.h120 extern void kempld_get_mutex(struct kempld_device_data *pld);
121 extern void kempld_release_mutex(struct kempld_device_data *pld);
122 extern u8 kempld_read8(struct kempld_device_data *pld, u8 index);
123 extern void kempld_write8(struct kempld_device_data *pld, u8 index, u8 data);
124 extern u16 kempld_read16(struct kempld_device_data *pld, u8 index);
125 extern void kempld_write16(struct kempld_device_data *pld, u8 index, u16 data);
126 extern u32 kempld_read32(struct kempld_device_data *pld, u8 index);
127 extern void kempld_write32(struct kempld_device_data *pld, u8 index, u32 data);
/linux-4.4.14/arch/arm/lib/
H A Dcopy_page.S29 PLD( pld [r1, #0] )
30 PLD( pld [r1, #L1_CACHE_BYTES] )
33 1: PLD( pld [r1, #2 * L1_CACHE_BYTES])
34 PLD( pld [r1, #3 * L1_CACHE_BYTES])
/linux-4.4.14/drivers/usb/core/
H A Dusb-acpi.c89 struct acpi_pld_info *pld) usb_acpi_get_connect_type()
112 if (pld->user_visible) usb_acpi_get_connect_type()
116 else if (!pld->user_visible) usb_acpi_get_connect_type()
160 struct acpi_pld_info *pld; usb_acpi_find_companion() local
194 status = acpi_get_physical_device_location(handle, &pld); usb_acpi_find_companion()
195 if (ACPI_FAILURE(status) || !pld) usb_acpi_find_companion()
199 | pld->group_token << 8 | pld->group_position; usb_acpi_find_companion()
200 port_dev->connect_type = usb_acpi_get_connect_type(handle, pld); usb_acpi_find_companion()
201 ACPI_FREE(pld); usb_acpi_find_companion()
88 usb_acpi_get_connect_type(acpi_handle handle, struct acpi_pld_info *pld) usb_acpi_get_connect_type() argument
/linux-4.4.14/drivers/scsi/bfa/
H A Dbfa_fcbuild.h152 u16 fc_plogi_build(struct fchs_s *fchs, void *pld, u32 d_id,
167 u16 fc_rspnid_build(struct fchs_s *fchs, void *pld, u32 s_id,
169 u16 fc_rsnn_nn_build(struct fchs_s *fchs, void *pld, u32 s_id,
172 u16 fc_rftid_build(struct fchs_s *fchs, void *pld, u32 s_id,
185 u16 fc_gpnid_build(struct fchs_s *fchs, void *pld, u32 s_id,
195 u16 fc_plogi_acc_build(struct fchs_s *fchs, void *pld, u32 d_id,
204 enum fc_parse_status fc_adisc_parse(struct fchs_s *fchs, void *pld,
218 u16 fc_prli_build(struct fchs_s *fchs, void *pld, u32 d_id,
223 u16 fc_prli_acc_build(struct fchs_s *fchs, void *pld, u32 d_id,
244 u16 fc_gid_ft_build(struct fchs_s *fchs, void *pld, u32 s_id,
265 u16 fc_logo_acc_build(struct fchs_s *fchs, void *pld, u32 d_id,
H A Dbfa_fcbuild.c223 fc_plogi_x_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, fc_plogi_x_build() argument
227 struct fc_logi_s *plogi = (struct fc_logi_s *) (pld); fc_plogi_x_build()
329 fc_plogi_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, fc_plogi_build() argument
333 return fc_plogi_x_build(fchs, pld, d_id, s_id, ox_id, port_name, fc_plogi_build()
338 fc_plogi_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, fc_plogi_acc_build() argument
342 return fc_plogi_x_build(fchs, pld, d_id, s_id, ox_id, port_name, fc_plogi_acc_build()
397 fc_prli_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, fc_prli_build() argument
400 struct fc_prli_s *prli = (struct fc_prli_s *) (pld); fc_prli_build()
416 fc_prli_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, fc_prli_acc_build() argument
419 struct fc_prli_s *prli = (struct fc_prli_s *) (pld); fc_prli_acc_build()
538 fc_adisc_parse(struct fchs_s *fchs, void *pld, u32 host_dap, wwn_t node_name, fc_adisc_parse() argument
541 struct fc_adisc_s *adisc = (struct fc_adisc_s *) pld; fc_adisc_parse()
616 fc_logo_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, u32 s_id, fc_logo_acc_build() argument
619 struct fc_els_cmd_s *acc = pld; fc_logo_acc_build()
H A Dbfa_fcs_rport.c1896 void *pld = bfa_fcxp_get_rspbuf(fcxp); bfa_fcs_rport_adisc_response() local
1906 if (fc_adisc_rsp_parse((struct fc_adisc_s *)pld, rsp_len, rport->pwwn, bfa_fcs_rport_adisc_response()
1914 ls_rjt = pld; bfa_fcs_rport_adisc_response()
/linux-4.4.14/arch/arm/include/asm/
H A Dprocessor.h113 "pld\t%a0" prefetch()
125 WASM(pld) "\t%a0" prefetchw()
/linux-4.4.14/drivers/scsi/csiostor/
H A Dcsio_lnode.c285 uint8_t *pld; csio_ln_fdmi_rhba_cbfn() local
318 pld = (uint8_t *)csio_ct_get_pld(cmd); csio_ln_fdmi_rhba_cbfn()
319 port_name = (struct fc_fdmi_port_name *)pld; csio_ln_fdmi_rhba_cbfn()
321 pld += sizeof(*port_name); csio_ln_fdmi_rhba_cbfn()
324 attrib_blk = (struct fs_fdmi_attrs *)pld; csio_ln_fdmi_rhba_cbfn()
327 pld += sizeof(attrib_blk->numattrs); csio_ln_fdmi_rhba_cbfn()
333 csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_FC4TYPES, csio_ln_fdmi_rhba_cbfn()
337 csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_SUPPORTEDSPEED, csio_ln_fdmi_rhba_cbfn()
348 csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_CURRENTPORTSPEED, csio_ln_fdmi_rhba_cbfn()
354 csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_MAXFRAMESIZE, csio_ln_fdmi_rhba_cbfn()
359 csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_OSDEVICENAME, buf, csio_ln_fdmi_rhba_cbfn()
364 csio_append_attrib(&pld, FC_FDMI_PORT_ATTR_HOSTNAME, csio_ln_fdmi_rhba_cbfn()
369 len = (uint32_t)(pld - (uint8_t *)cmd); csio_ln_fdmi_rhba_cbfn()
390 uint8_t *pld; csio_ln_fdmi_dprt_cbfn() local
422 pld = (uint8_t *)csio_ct_get_pld(cmd); csio_ln_fdmi_dprt_cbfn()
423 hbaid = (struct fc_fdmi_hba_identifier *)pld; csio_ln_fdmi_dprt_cbfn()
425 pld += sizeof(*hbaid); csio_ln_fdmi_dprt_cbfn()
428 reg_pl = (struct fc_fdmi_rpl *)pld; csio_ln_fdmi_dprt_cbfn()
431 pld += sizeof(*reg_pl); csio_ln_fdmi_dprt_cbfn()
434 attrib_blk = (struct fs_fdmi_attrs *)pld; csio_ln_fdmi_dprt_cbfn()
437 pld += sizeof(attrib_blk->numattrs); csio_ln_fdmi_dprt_cbfn()
439 csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_NODENAME, csio_ln_wwnn(ln), csio_ln_fdmi_dprt_cbfn()
446 csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_MANUFACTURER, buf, csio_ln_fdmi_dprt_cbfn()
449 csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_SERIALNUMBER, csio_ln_fdmi_dprt_cbfn()
452 csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_MODEL, hw->vpd.id, csio_ln_fdmi_dprt_cbfn()
455 csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_MODELDESCRIPTION, csio_ln_fdmi_dprt_cbfn()
458 csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_HARDWAREVERSION, csio_ln_fdmi_dprt_cbfn()
461 csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_FIRMWAREVERSION, csio_ln_fdmi_dprt_cbfn()
466 csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_OSNAMEVERSION, csio_ln_fdmi_dprt_cbfn()
471 csio_append_attrib(&pld, FC_FDMI_HBA_ATTR_MAXCTPAYLOAD, csio_ln_fdmi_dprt_cbfn()
474 len = (uint32_t)(pld - (uint8_t *)cmd); csio_ln_fdmi_dprt_cbfn()
1701 * @pld - Dma Payload buffer
1708 uint8_t sub_op, struct csio_dma_buf *pld, csio_ln_mgmt_submit_wr()
1726 /* Send as immediate data if pld < 256 */ csio_ln_mgmt_submit_wr()
1757 csio_wr_copy_to_wrp(pld->vaddr, &wrp, wr_off, im_len); csio_ln_mgmt_submit_wr()
1763 dsgl.addr0 = cpu_to_be64(pld->paddr); csio_ln_mgmt_submit_wr()
1778 * @pld - Dma Payload buffer
1790 enum fcoe_cmn_type req_type, struct csio_dma_buf *pld, csio_ln_mgmt_submit_req()
1802 rv = csio_ln_mgmt_submit_wr(mgmtm, io_req, req_type, pld, pld_len); csio_ln_mgmt_submit_req()
1707 csio_ln_mgmt_submit_wr(struct csio_mgmtm *mgmtm, struct csio_ioreq *io_req, uint8_t sub_op, struct csio_dma_buf *pld, uint32_t pld_len) csio_ln_mgmt_submit_wr() argument
1788 csio_ln_mgmt_submit_req(struct csio_ioreq *io_req, void (*io_cbfn) (struct csio_hw *, struct csio_ioreq *), enum fcoe_cmn_type req_type, struct csio_dma_buf *pld, uint32_t pld_len) csio_ln_mgmt_submit_req() argument
/linux-4.4.14/arch/arm/mach-omap2/
H A Dprm_common.c597 * @pld: low-level per-SoC OMAP PRM data & function pointers to register
601 * pointed to by @pld valid until it calls prm_unregister() and
602 * it returns successfully. Returns 0 upon success, -EINVAL if @pld
606 int prm_register(struct prm_ll_data *pld) prm_register() argument
608 if (!pld) prm_register()
614 prm_ll_data = pld; prm_register()
621 * @pld: low-level per-SoC OMAP PRM data & function pointers to unregister
625 * caller may not destroy any of the data pointed to by @pld until
627 * -EINVAL if @pld is NULL or if @pld does not match the struct
630 int prm_unregister(struct prm_ll_data *pld) prm_unregister() argument
632 if (!pld || prm_ll_data != pld) prm_unregister()
H A Dprm.h157 extern int prm_register(struct prm_ll_data *pld);
158 extern int prm_unregister(struct prm_ll_data *pld);
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
H A Dar9003_mci.c468 u32 pld[4] = {0, 0, 0, 0}; ar9003_mci_send_coex_bt_flags() local
470 MCI_GPM_SET_TYPE_OPCODE(pld, MCI_GPM_COEX_AGENT, ar9003_mci_send_coex_bt_flags()
473 *(((u8 *)pld) + MCI_GPM_COEX_B_BT_FLAGS_OP) = opcode; ar9003_mci_send_coex_bt_flags()
474 *(((u8 *)pld) + MCI_GPM_COEX_W_BT_FLAGS + 0) = bt_flags & 0xFF; ar9003_mci_send_coex_bt_flags()
475 *(((u8 *)pld) + MCI_GPM_COEX_W_BT_FLAGS + 1) = (bt_flags >> 8) & 0xFF; ar9003_mci_send_coex_bt_flags()
476 *(((u8 *)pld) + MCI_GPM_COEX_W_BT_FLAGS + 2) = (bt_flags >> 16) & 0xFF; ar9003_mci_send_coex_bt_flags()
477 *(((u8 *)pld) + MCI_GPM_COEX_W_BT_FLAGS + 3) = (bt_flags >> 24) & 0xFF; ar9003_mci_send_coex_bt_flags()
479 return ar9003_mci_send_message(ah, MCI_GPM, 0, pld, 16, ar9003_mci_send_coex_bt_flags()
1224 u32 pld[4] = {0, 0, 0, 0}; ar9003_mci_init_cal_req() local
1230 MCI_GPM_SET_CAL_TYPE(pld, MCI_GPM_WLAN_CAL_REQ); ar9003_mci_init_cal_req()
1231 pld[MCI_GPM_WLAN_CAL_W_SEQUENCE] = mci_hw->wlan_cal_seq++; ar9003_mci_init_cal_req()
1233 ar9003_mci_send_message(ah, MCI_GPM, 0, pld, 16, true, false); ar9003_mci_init_cal_req()
1246 u32 pld[4] = {0, 0, 0, 0}; ar9003_mci_init_cal_done() local
1252 MCI_GPM_SET_CAL_TYPE(pld, MCI_GPM_WLAN_CAL_DONE); ar9003_mci_init_cal_done()
1253 pld[MCI_GPM_WLAN_CAL_W_SEQUENCE] = mci_hw->wlan_cal_done++; ar9003_mci_init_cal_done()
1254 ar9003_mci_send_message(ah, MCI_GPM, 0, pld, 16, true, false); ar9003_mci_init_cal_done()
/linux-4.4.14/net/netfilter/
H A Dxt_LOG.c110 MODULE_AUTHOR("Jan Rekorajski <baggins@pld.org.pl>");
/linux-4.4.14/drivers/net/wimax/i2400m/
H A Drx.c1088 * @pld: payload descriptor
1098 unsigned single_last, const struct i2400m_pld *pld, i2400m_rx_payload()
1102 size_t pl_size = i2400m_pld_size(pld); i2400m_rx_payload()
1103 enum i2400m_pt pl_type = i2400m_pld_type(pld); i2400m_rx_payload()
1179 * @pld: payload descriptor
1189 const struct i2400m_pld *pld, i2400m_rx_pl_descr_check()
1194 size_t pl_size = i2400m_pld_size(pld); i2400m_rx_pl_descr_check()
1195 enum i2400m_pt pl_type = i2400m_pld_type(pld); i2400m_rx_pl_descr_check()
1264 num_pls * sizeof(msg_hdr->pld[0]); i2400m_rx()
1269 skb_len, num_pls, sizeof(msg_hdr->pld[0]), pl_itr); i2400m_rx()
1275 pl_size = i2400m_pld_size(&msg_hdr->pld[i]); i2400m_rx()
1276 result = i2400m_rx_pl_descr_check(i2400m, &msg_hdr->pld[i], i2400m_rx()
1281 i2400m_rx_payload(i2400m, skb, single_last, &msg_hdr->pld[i], i2400m_rx()
1097 i2400m_rx_payload(struct i2400m *i2400m, struct sk_buff *skb_rx, unsigned single_last, const struct i2400m_pld *pld, const void *payload) i2400m_rx_payload() argument
1188 i2400m_rx_pl_descr_check(struct i2400m *i2400m, const struct i2400m_pld *pld, size_t pl_itr, size_t buf_size) i2400m_rx_pl_descr_check() argument
H A Dtx.c178 * | pld 1 32 bytes (2 * 16) | | |
179 * | pld 0 | | | |
215 * | pld 11 /|\ |
217 * | pld 1 64 bytes (2 * 16) |
218 * | pld 0 | |
644 + le16_to_cpu(tx_msg->num_pls) * sizeof(tx_msg->pld[0]); i2400m_tx_close()
784 i2400m_pld_set(&tx_msg->pld[num_pls], buf_len, pl_type); i2400m_tx()
785 d_printf(3, dev, "pld 0x%08x (type 0x%1x len 0x%04zx\n", i2400m_tx()
786 le32_to_cpu(tx_msg->pld[num_pls].val), i2400m_tx()
H A Di2400m.h835 size_t i2400m_pld_size(const struct i2400m_pld *pld) i2400m_pld_size() argument
837 return I2400M_PLD_SIZE_MASK & le32_to_cpu(pld->val); i2400m_pld_size()
841 enum i2400m_pt i2400m_pld_type(const struct i2400m_pld *pld) i2400m_pld_type() argument
843 return (I2400M_PLD_TYPE_MASK & le32_to_cpu(pld->val)) i2400m_pld_type()
848 void i2400m_pld_set(struct i2400m_pld *pld, size_t size, i2400m_pld_set() argument
851 pld->val = cpu_to_le32( i2400m_pld_set()
/linux-4.4.14/arch/arm/probes/kprobes/
H A Dtest-thumb.c914 TEST( "pld [pc, #4]") kprobe_thumb32_test_cases()
915 TEST( "pld [pc, #-4]") kprobe_thumb32_test_cases()
917 TEST_P( "pld [r",0,-1024,", #1024]") kprobe_thumb32_test_cases()
920 TEST_P( "pld [r",7, 120,", #-120]") kprobe_thumb32_test_cases()
923 TEST( "pld [sp, #0]") kprobe_thumb32_test_cases()
925 TEST_PR("pld [r",7, 24, ", r",0, 16,"]") kprobe_thumb32_test_cases()
926 TEST_PR("pld [r",8, 24, ", r",12,16,", lsl #3]") kprobe_thumb32_test_cases()
931 TEST_R( "pld [sp, r",1, 16,"]") kprobe_thumb32_test_cases()
932 TEST_UNSUPPORTED(__inst_thumb32(0xf817f00d) " @pld [r7, sp]") kprobe_thumb32_test_cases()
933 TEST_UNSUPPORTED(__inst_thumb32(0xf817f00f) " @pld [r7, pc]") kprobe_thumb32_test_cases()
H A Dtest-arm.c1345 TEST_P("pld [r",0,32,", #-16]") kprobe_arm_test_cases()
1346 TEST( "pld [pc, #0]") kprobe_arm_test_cases()
1347 TEST_PR("pld [r",7, 24, ", r",0, 16,"]") kprobe_arm_test_cases()
1348 TEST_PR("pld [r",8, 24, ", -r",12,16,", lsl #4]") kprobe_arm_test_cases()
/linux-4.4.14/drivers/acpi/
H A Dutils.c403 acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld) acpi_get_physical_device_location() argument
427 pld); acpi_get_physical_device_location()
/linux-4.4.14/drivers/media/i2c/
H A Dir-kbd-i2c.c7 * Michal Kochanowicz <mkochano@pld.org.pl>
/linux-4.4.14/include/uapi/linux/wimax/
H A Di2400m.h322 struct i2400m_pld pld[0]; member in struct:i2400m_msg_hdr
/linux-4.4.14/include/acpi/
H A Dacpi_bus.h53 acpi_get_physical_device_location(acpi_handle handle, struct acpi_pld_info **pld);
/linux-4.4.14/arch/s390/kernel/
H A Dcompat_wrapper.c138 COMPAT_SYSCALL_WRAP5(add_key, const char __user *, tp, const char __user *, dsc, const void __user *, pld, size_t, len, key_serial_t, id);
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
H A Dampdu.c88 * accum_txfunfl: num of underflows since we modified pld params
89 * accum_txampdu: num of tx ampdu since we modified pld params
/linux-4.4.14/arch/x86/kernel/cpu/
H A Dperf_event_intel_uncore_nhmex.c873 DEFINE_UNCORE_FORMAT_ATTR(pld, pld, "config1:32-63");
/linux-4.4.14/drivers/staging/media/lirc/
H A Dlirc_zilog.c6 * Michal Kochanowicz <mkochano@pld.org.pl>

Completed in 1188 milliseconds