/kernel/linux/linux-5.10/drivers/mfd/ |
H A D | kempld-core.c | 25 * Get hardware mutex to block firmware from accessing the pld. 29 static void kempld_get_hardware_mutex(struct kempld_device_data *pld) in kempld_get_hardware_mutex() argument 32 while (ioread8(pld->io_index) & KEMPLD_MUTEX_KEY) in kempld_get_hardware_mutex() 36 static void kempld_release_hardware_mutex(struct kempld_device_data *pld) in kempld_release_hardware_mutex() argument 39 iowrite8(KEMPLD_MUTEX_KEY, pld->io_index); in kempld_release_hardware_mutex() 42 static int kempld_get_info_generic(struct kempld_device_data *pld) in kempld_get_info_generic() argument 47 kempld_get_mutex(pld); in kempld_get_info_generic() 49 version = kempld_read16(pld, KEMPLD_VERSION); in kempld_get_info_generic() 50 spec = kempld_read8(pld, KEMPLD_SPEC); in kempld_get_info_generic() 51 pld in kempld_get_info_generic() 92 kempld_register_cells_generic(struct kempld_device_data *pld) kempld_register_cells_generic() argument 164 kempld_read8(struct kempld_device_data *pld, u8 index) kempld_read8() argument 179 kempld_write8(struct kempld_device_data *pld, u8 index, u8 data) kempld_write8() argument 193 kempld_read16(struct kempld_device_data *pld, u8 index) kempld_read16() argument 207 kempld_write16(struct kempld_device_data *pld, u8 index, u16 data) kempld_write16() argument 221 kempld_read32(struct kempld_device_data *pld, u8 index) kempld_read32() argument 235 kempld_write32(struct kempld_device_data *pld, u8 index, u32 data) kempld_write32() argument 246 kempld_get_mutex(struct kempld_device_data *pld) kempld_get_mutex() argument 259 kempld_release_mutex(struct kempld_device_data *pld) kempld_release_mutex() argument 276 kempld_get_info(struct kempld_device_data *pld) kempld_get_info() argument 319 kempld_register_cells(struct kempld_device_data *pld) kempld_register_cells() argument 326 kempld_get_type_string(struct kempld_device_data *pld) kempld_get_type_string() argument 351 struct kempld_device_data *pld = dev_get_drvdata(dev); kempld_version_show() local 359 struct kempld_device_data *pld = dev_get_drvdata(dev); kempld_specification_show() local 368 struct kempld_device_data *pld = dev_get_drvdata(dev); kempld_type_show() local 389 kempld_detect_device(struct kempld_device_data *pld) kempld_detect_device() argument 492 struct kempld_device_data *pld; kempld_probe() local 545 struct kempld_device_data *pld = platform_get_drvdata(pdev); kempld_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/mfd/ |
H A D | kempld-core.c | 25 * Get hardware mutex to block firmware from accessing the pld. 29 static void kempld_get_hardware_mutex(struct kempld_device_data *pld) in kempld_get_hardware_mutex() argument 32 while (ioread8(pld->io_index) & KEMPLD_MUTEX_KEY) in kempld_get_hardware_mutex() 36 static void kempld_release_hardware_mutex(struct kempld_device_data *pld) in kempld_release_hardware_mutex() argument 39 iowrite8(KEMPLD_MUTEX_KEY, pld->io_index); in kempld_release_hardware_mutex() 42 static int kempld_get_info_generic(struct kempld_device_data *pld) in kempld_get_info_generic() argument 47 kempld_get_mutex(pld); in kempld_get_info_generic() 49 version = kempld_read16(pld, KEMPLD_VERSION); in kempld_get_info_generic() 50 spec = kempld_read8(pld, KEMPLD_SPEC); in kempld_get_info_generic() 51 pld in kempld_get_info_generic() 92 kempld_register_cells_generic(struct kempld_device_data *pld) kempld_register_cells_generic() argument 163 kempld_read8(struct kempld_device_data *pld, u8 index) kempld_read8() argument 178 kempld_write8(struct kempld_device_data *pld, u8 index, u8 data) kempld_write8() argument 192 kempld_read16(struct kempld_device_data *pld, u8 index) kempld_read16() argument 206 kempld_write16(struct kempld_device_data *pld, u8 index, u16 data) kempld_write16() argument 220 kempld_read32(struct kempld_device_data *pld, u8 index) kempld_read32() argument 234 kempld_write32(struct kempld_device_data *pld, u8 index, u32 data) kempld_write32() argument 245 kempld_get_mutex(struct kempld_device_data *pld) kempld_get_mutex() argument 258 kempld_release_mutex(struct kempld_device_data *pld) kempld_release_mutex() argument 275 kempld_get_info(struct kempld_device_data *pld) kempld_get_info() argument 318 kempld_register_cells(struct kempld_device_data *pld) kempld_register_cells() argument 325 kempld_get_type_string(struct kempld_device_data *pld) kempld_get_type_string() argument 350 struct kempld_device_data *pld = dev_get_drvdata(dev); pld_version_show() local 358 struct kempld_device_data *pld = dev_get_drvdata(dev); pld_specification_show() local 366 struct kempld_device_data *pld = dev_get_drvdata(dev); pld_type_show() local 386 kempld_detect_device(struct kempld_device_data *pld) kempld_detect_device() argument 489 struct kempld_device_data *pld; kempld_probe() local 540 struct kempld_device_data *pld = platform_get_drvdata(pdev); kempld_remove() local [all...] |
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
H A D | i2c-kempld.c | 57 struct kempld_device_data *pld; member 84 struct kempld_device_data *pld = i2c->pld; in kempld_i2c_process() local 85 u8 stat = kempld_read8(pld, KEMPLD_I2C_STAT); in kempld_i2c_process() 95 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_IACK); in kempld_i2c_process() 104 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_STOP); in kempld_i2c_process() 127 kempld_write8(pld, KEMPLD_I2C_DATA, addr); in kempld_i2c_process() 128 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_START); in kempld_i2c_process() 135 kempld_write8(pld, KEMPLD_I2C_DATA, i2c->msg->addr & 0xff); in kempld_i2c_process() 136 kempld_write8(pld, KEMPLD_I2C_CM in kempld_i2c_process() 190 struct kempld_device_data *pld = i2c->pld; kempld_i2c_xfer() local 224 struct kempld_device_data *pld = i2c->pld; kempld_i2c_device_init() local 292 struct kempld_device_data *pld = dev_get_drvdata(pdev->dev.parent); kempld_i2c_probe() local 333 struct kempld_device_data *pld = i2c->pld; kempld_i2c_remove() local 357 struct kempld_device_data *pld = i2c->pld; kempld_i2c_suspend() local 372 struct kempld_device_data *pld = i2c->pld; kempld_i2c_resume() local [all...] |
/kernel/linux/linux-6.6/drivers/i2c/busses/ |
H A D | i2c-kempld.c | 57 struct kempld_device_data *pld; member 84 struct kempld_device_data *pld = i2c->pld; in kempld_i2c_process() local 85 u8 stat = kempld_read8(pld, KEMPLD_I2C_STAT); in kempld_i2c_process() 95 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_IACK); in kempld_i2c_process() 104 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_STOP); in kempld_i2c_process() 127 kempld_write8(pld, KEMPLD_I2C_DATA, addr); in kempld_i2c_process() 128 kempld_write8(pld, KEMPLD_I2C_CMD, I2C_CMD_START); in kempld_i2c_process() 135 kempld_write8(pld, KEMPLD_I2C_DATA, i2c->msg->addr & 0xff); in kempld_i2c_process() 136 kempld_write8(pld, KEMPLD_I2C_CM in kempld_i2c_process() 190 struct kempld_device_data *pld = i2c->pld; kempld_i2c_xfer() local 224 struct kempld_device_data *pld = i2c->pld; kempld_i2c_device_init() local 293 struct kempld_device_data *pld = dev_get_drvdata(pdev->dev.parent); kempld_i2c_probe() local 335 struct kempld_device_data *pld = i2c->pld; kempld_i2c_remove() local 356 struct kempld_device_data *pld = i2c->pld; kempld_i2c_suspend() local 371 struct kempld_device_data *pld = i2c->pld; kempld_i2c_resume() local [all...] |
/kernel/linux/linux-5.10/drivers/gpio/ |
H A D | gpio-kempld.c | 27 struct kempld_device_data *pld; member 34 static void kempld_gpio_bitop(struct kempld_device_data *pld, in kempld_gpio_bitop() argument 39 status = kempld_read8(pld, reg); in kempld_gpio_bitop() 44 kempld_write8(pld, reg, status); in kempld_gpio_bitop() 47 static int kempld_gpio_get_bit(struct kempld_device_data *pld, u8 reg, u8 bit) in kempld_gpio_get_bit() argument 51 kempld_get_mutex(pld); in kempld_gpio_get_bit() 52 status = kempld_read8(pld, reg); in kempld_gpio_get_bit() 53 kempld_release_mutex(pld); in kempld_gpio_get_bit() 61 struct kempld_device_data *pld = gpio->pld; in kempld_gpio_get() local 69 struct kempld_device_data *pld = gpio->pld; kempld_gpio_set() local 79 struct kempld_device_data *pld = gpio->pld; kempld_gpio_direction_input() local 92 struct kempld_device_data *pld = gpio->pld; kempld_gpio_direction_output() local 105 struct kempld_device_data *pld = gpio->pld; kempld_gpio_get_direction() local 113 kempld_gpio_pincount(struct kempld_device_data *pld) kempld_gpio_pincount() argument 136 struct kempld_device_data *pld = dev_get_drvdata(dev->parent); kempld_gpio_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/gpio/ |
H A D | gpio-kempld.c | 27 struct kempld_device_data *pld; member 34 static void kempld_gpio_bitop(struct kempld_device_data *pld, in kempld_gpio_bitop() argument 39 status = kempld_read8(pld, reg); in kempld_gpio_bitop() 44 kempld_write8(pld, reg, status); in kempld_gpio_bitop() 47 static int kempld_gpio_get_bit(struct kempld_device_data *pld, u8 reg, u8 bit) in kempld_gpio_get_bit() argument 51 kempld_get_mutex(pld); in kempld_gpio_get_bit() 52 status = kempld_read8(pld, reg); in kempld_gpio_get_bit() 53 kempld_release_mutex(pld); in kempld_gpio_get_bit() 61 struct kempld_device_data *pld = gpio->pld; in kempld_gpio_get() local 69 struct kempld_device_data *pld = gpio->pld; kempld_gpio_set() local 79 struct kempld_device_data *pld = gpio->pld; kempld_gpio_direction_input() local 92 struct kempld_device_data *pld = gpio->pld; kempld_gpio_direction_output() local 105 struct kempld_device_data *pld = gpio->pld; kempld_gpio_get_direction() local 113 kempld_gpio_pincount(struct kempld_device_data *pld) kempld_gpio_pincount() argument 136 struct kempld_device_data *pld = dev_get_drvdata(dev->parent); kempld_gpio_probe() local [all...] |
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | kempld_wdt.c | 74 struct kempld_device_data *pld; member 108 struct kempld_device_data *pld = wdt_data->pld; in kempld_wdt_set_stage_action() local 114 kempld_get_mutex(pld); in kempld_wdt_set_stage_action() 115 stage_cfg = kempld_read8(pld, KEMPLD_WDT_STAGE_CFG(stage->id)); in kempld_wdt_set_stage_action() 124 kempld_write8(pld, KEMPLD_WDT_STAGE_CFG(stage->id), stage_cfg); in kempld_wdt_set_stage_action() 125 kempld_release_mutex(pld); in kempld_wdt_set_stage_action() 134 struct kempld_device_data *pld = wdt_data->pld; in kempld_wdt_set_stage_timeout() local 146 stage_timeout64 = (u64)timeout * pld in kempld_wdt_set_stage_timeout() 174 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_get_timeout() local 260 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_update_timeouts() local 284 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_start() local 309 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_stop() local 329 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_keepalive() local 367 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_probe_stages() local 438 struct kempld_device_data *pld = dev_get_drvdata(pdev->dev.parent); kempld_wdt_probe() local 504 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_suspend() local [all...] |
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | kempld_wdt.c | 74 struct kempld_device_data *pld; member 106 struct kempld_device_data *pld = wdt_data->pld; in kempld_wdt_set_stage_action() local 112 kempld_get_mutex(pld); in kempld_wdt_set_stage_action() 113 stage_cfg = kempld_read8(pld, KEMPLD_WDT_STAGE_CFG(stage->id)); in kempld_wdt_set_stage_action() 122 kempld_write8(pld, KEMPLD_WDT_STAGE_CFG(stage->id), stage_cfg); in kempld_wdt_set_stage_action() 123 kempld_release_mutex(pld); in kempld_wdt_set_stage_action() 132 struct kempld_device_data *pld = wdt_data->pld; in kempld_wdt_set_stage_timeout() local 144 stage_timeout64 = (u64)timeout * pld in kempld_wdt_set_stage_timeout() 172 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_get_timeout() local 258 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_update_timeouts() local 282 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_start() local 307 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_stop() local 327 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_keepalive() local 365 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_probe_stages() local 436 struct kempld_device_data *pld = dev_get_drvdata(pdev->dev.parent); kempld_wdt_probe() local 501 struct kempld_device_data *pld = wdt_data->pld; kempld_wdt_suspend() local [all...] |
/kernel/linux/linux-5.10/include/linux/mfd/ |
H A D | kempld.h | 117 extern void kempld_get_mutex(struct kempld_device_data *pld); 118 extern void kempld_release_mutex(struct kempld_device_data *pld); 119 extern u8 kempld_read8(struct kempld_device_data *pld, u8 index); 120 extern void kempld_write8(struct kempld_device_data *pld, u8 index, u8 data); 121 extern u16 kempld_read16(struct kempld_device_data *pld, u8 index); 122 extern void kempld_write16(struct kempld_device_data *pld, u8 index, u16 data); 123 extern u32 kempld_read32(struct kempld_device_data *pld, u8 index); 124 extern void kempld_write32(struct kempld_device_data *pld, u8 index, u32 data);
|
/kernel/linux/linux-6.6/include/linux/mfd/ |
H A D | kempld.h | 117 extern void kempld_get_mutex(struct kempld_device_data *pld); 118 extern void kempld_release_mutex(struct kempld_device_data *pld); 119 extern u8 kempld_read8(struct kempld_device_data *pld, u8 index); 120 extern void kempld_write8(struct kempld_device_data *pld, u8 index, u8 data); 121 extern u16 kempld_read16(struct kempld_device_data *pld, u8 index); 122 extern void kempld_write16(struct kempld_device_data *pld, u8 index, u16 data); 123 extern u32 kempld_read32(struct kempld_device_data *pld, u8 index); 124 extern void kempld_write32(struct kempld_device_data *pld, u8 index, u32 data);
|
/kernel/linux/linux-6.6/drivers/base/ |
H A D | physical_location.c | 15 struct acpi_pld_info *pld; in dev_add_physical_location() local 21 status = acpi_get_physical_device_location(ACPI_HANDLE(dev), &pld); in dev_add_physical_location() 28 ACPI_FREE(pld); in dev_add_physical_location() 32 dev->physical_location->panel = pld->panel; in dev_add_physical_location() 33 dev->physical_location->vertical_position = pld->vertical_position; in dev_add_physical_location() 34 dev->physical_location->horizontal_position = pld->horizontal_position; in dev_add_physical_location() 35 dev->physical_location->dock = pld->dock; in dev_add_physical_location() 36 dev->physical_location->lid = pld->lid; in dev_add_physical_location() 38 ACPI_FREE(pld); in dev_add_physical_location()
|
/kernel/linux/linux-5.10/arch/alpha/kernel/ |
H A D | irq_pyxis.c | 70 unsigned long pld; in pyxis_device_interrupt() local 74 pld = *(vulp)PYXIS_INT_REQ; in pyxis_device_interrupt() 75 pld &= cached_irq_mask; in pyxis_device_interrupt() 81 while (pld) { in pyxis_device_interrupt() 82 i = ffz(~pld); in pyxis_device_interrupt() 83 pld &= pld - 1; /* clear least bit set */ in pyxis_device_interrupt()
|
H A D | sys_rx164.c | 70 unsigned long pld; in rx164_device_interrupt() local 77 pld = *dirr; in rx164_device_interrupt() 83 while (pld) { in rx164_device_interrupt() 84 i = ffz(~pld); in rx164_device_interrupt() 85 pld &= pld - 1; /* clear least bit set */ in rx164_device_interrupt()
|
H A D | sys_eb64p.c | 67 unsigned long pld; in eb64p_device_interrupt() local 71 pld = inb(0x26) | (inb(0x27) << 8); in eb64p_device_interrupt() 77 while (pld) { in eb64p_device_interrupt() 78 i = ffz(~pld); in eb64p_device_interrupt() 79 pld &= pld - 1; /* clear least bit set */ in eb64p_device_interrupt()
|
H A D | sys_mikasa.c | 67 unsigned long pld; in mikasa_device_interrupt() local 71 pld = (((~inw(0x534) & 0x0000ffffUL) << 16) in mikasa_device_interrupt() 79 while (pld) { in mikasa_device_interrupt() 80 i = ffz(~pld); in mikasa_device_interrupt() 81 pld &= pld - 1; /* clear least bit set */ in mikasa_device_interrupt()
|
H A D | sys_alcor.c | 87 unsigned long pld; in alcor_device_interrupt() local 91 pld = (*(vuip)GRU_INT_REQ) & GRU_INT_REQ_BITS; in alcor_device_interrupt() 97 while (pld) { in alcor_device_interrupt() 98 i = ffz(~pld); in alcor_device_interrupt() 99 pld &= pld - 1; /* clear least bit set */ in alcor_device_interrupt()
|
/kernel/linux/linux-6.6/arch/alpha/kernel/ |
H A D | irq_pyxis.c | 70 unsigned long pld; in pyxis_device_interrupt() local 74 pld = *(vulp)PYXIS_INT_REQ; in pyxis_device_interrupt() 75 pld &= cached_irq_mask; in pyxis_device_interrupt() 81 while (pld) { in pyxis_device_interrupt() 82 i = ffz(~pld); in pyxis_device_interrupt() 83 pld &= pld - 1; /* clear least bit set */ in pyxis_device_interrupt()
|
H A D | sys_rx164.c | 70 unsigned long pld; in rx164_device_interrupt() local 77 pld = *dirr; in rx164_device_interrupt() 83 while (pld) { in rx164_device_interrupt() 84 i = ffz(~pld); in rx164_device_interrupt() 85 pld &= pld - 1; /* clear least bit set */ in rx164_device_interrupt()
|
H A D | sys_mikasa.c | 67 unsigned long pld; in mikasa_device_interrupt() local 71 pld = (((~inw(0x534) & 0x0000ffffUL) << 16) in mikasa_device_interrupt() 79 while (pld) { in mikasa_device_interrupt() 80 i = ffz(~pld); in mikasa_device_interrupt() 81 pld &= pld - 1; /* clear least bit set */ in mikasa_device_interrupt()
|
H A D | sys_eb64p.c | 67 unsigned long pld; in eb64p_device_interrupt() local 71 pld = inb(0x26) | (inb(0x27) << 8); in eb64p_device_interrupt() 77 while (pld) { in eb64p_device_interrupt() 78 i = ffz(~pld); in eb64p_device_interrupt() 79 pld &= pld - 1; /* clear least bit set */ in eb64p_device_interrupt()
|
/kernel/linux/linux-5.10/drivers/usb/core/ |
H A D | usb-acpi.c | 150 struct acpi_pld_info *pld) in usb_acpi_get_connect_type() 174 if (pld->user_visible) in usb_acpi_get_connect_type() 178 else if (!pld->user_visible) in usb_acpi_get_connect_type() 245 struct acpi_pld_info *pld; in usb_acpi_find_companion_for_port() local 254 status = acpi_get_physical_device_location(handle, &pld); in usb_acpi_find_companion_for_port() 255 if (ACPI_SUCCESS(status) && pld) { in usb_acpi_find_companion_for_port() 257 | pld->group_token << 8 | pld->group_position; in usb_acpi_find_companion_for_port() 258 port_dev->connect_type = usb_acpi_get_connect_type(handle, pld); in usb_acpi_find_companion_for_port() 259 ACPI_FREE(pld); in usb_acpi_find_companion_for_port() 149 usb_acpi_get_connect_type(acpi_handle handle, struct acpi_pld_info *pld) usb_acpi_get_connect_type() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/core/ |
H A D | usb-acpi.c | 146 struct acpi_pld_info *pld) in usb_acpi_get_connect_type() 170 if (pld->user_visible) in usb_acpi_get_connect_type() 174 else if (!pld->user_visible) in usb_acpi_get_connect_type() 225 struct acpi_pld_info *pld; in usb_acpi_find_companion_for_port() local 234 status = acpi_get_physical_device_location(handle, &pld); in usb_acpi_find_companion_for_port() 235 if (ACPI_SUCCESS(status) && pld) { in usb_acpi_find_companion_for_port() 237 | pld->group_token << 8 | pld->group_position; in usb_acpi_find_companion_for_port() 238 port_dev->connect_type = usb_acpi_get_connect_type(handle, pld); in usb_acpi_find_companion_for_port() 239 ACPI_FREE(pld); in usb_acpi_find_companion_for_port() 145 usb_acpi_get_connect_type(acpi_handle handle, struct acpi_pld_info *pld) usb_acpi_get_connect_type() argument [all...] |
/kernel/liteos_a/lib/libc/musl/src/arch/arm/ |
H A D | memcmp.S | 44 pld [r0, #0] 45 pld [r1, #0] 57 pld [r0, #64] 58 pld [r1, #64] 74 pld [r0, #64] 75 pld [r1, #64] 146 pld [r0, #64] 147 pld [r1, #64]
|
/kernel/linux/linux-5.10/arch/arm/lib/ |
H A D | copy_page.S | 26 PLD( pld [r1, #0] ) 27 PLD( pld [r1, #L1_CACHE_BYTES] ) 30 1: PLD( pld [r1, #2 * L1_CACHE_BYTES]) 31 PLD( pld [r1, #3 * L1_CACHE_BYTES])
|
/kernel/linux/linux-6.6/arch/arm/lib/ |
H A D | copy_page.S | 26 PLD( pld [r1, #0] ) 27 PLD( pld [r1, #L1_CACHE_BYTES] ) 30 1: PLD( pld [r1, #2 * L1_CACHE_BYTES]) 31 PLD( pld [r1, #3 * L1_CACHE_BYTES])
|