Searched refs:kpc (Results 1 – 4 of 4) sorted by relevance
/drivers/pinctrl/ |
D | pinctrl-keembay.c | 888 static void keembay_gpio_invert(struct keembay_pinctrl *kpc, unsigned int pin) in keembay_gpio_invert() argument 890 unsigned int val = keembay_read_reg(kpc->base1 + KEEMBAY_GPIO_MODE, pin); in keembay_gpio_invert() 899 keembay_write_reg(val, kpc->base1 + KEEMBAY_GPIO_MODE, pin); in keembay_gpio_invert() 902 static void keembay_gpio_restore_default(struct keembay_pinctrl *kpc, unsigned int pin) in keembay_gpio_restore_default() argument 904 unsigned int val = keembay_read_reg(kpc->base1 + KEEMBAY_GPIO_MODE, pin); in keembay_gpio_restore_default() 907 keembay_write_reg(val, kpc->base1 + KEEMBAY_GPIO_MODE, pin); in keembay_gpio_restore_default() 913 struct keembay_pinctrl *kpc = pinctrl_dev_get_drvdata(pctldev); in keembay_request_gpio() local 916 if (pin >= kpc->npins) in keembay_request_gpio() 919 val = keembay_read_reg(kpc->base1 + KEEMBAY_GPIO_MODE, pin); in keembay_request_gpio() 932 struct keembay_pinctrl *kpc = pinctrl_dev_get_drvdata(pctldev); in keembay_set_mux() local [all …]
|
/drivers/input/keyboard/ |
D | pxa27x_keypad.c | 578 unsigned long kpc = keypad_readl(KPC); in pxa27x_keypad_irq_handler() local 582 if (kpc & KPC_DI) in pxa27x_keypad_irq_handler() 585 if (kpc & KPC_MI) in pxa27x_keypad_irq_handler() 595 unsigned long kpc = 0; in pxa27x_keypad_config() local 602 kpc |= KPC_ASACT | KPC_MIE | KPC_ME | KPC_MS_ALL; in pxa27x_keypad_config() 603 kpc |= KPC_MKRN(pdata->matrix_key_rows) | in pxa27x_keypad_config() 611 kpc |= KPC_REE0; in pxa27x_keypad_config() 617 kpc |= KPC_REE1; in pxa27x_keypad_config() 634 kpc |= KPC_DE | KPC_DIE | KPC_DKN(direct_key_num); in pxa27x_keypad_config() 636 keypad_writel(KPC, kpc | KPC_RE_ZERO_DEB); in pxa27x_keypad_config()
|
/drivers/scsi/sym53c8xx_2/ |
D | sym_hipd.c | 475 u32 kpc; /* (per * clk) */ local 488 kpc = per * clk; 490 kpc <<= 1; 507 if (kpc > (div_10M[div] << 2)) { 527 if (kpc >= (div_10M[div] << 2)) break; 536 fak = (kpc - 1) / (div_10M[div] << 1) + 1 - 2; 539 fak = (kpc - 1) / div_10M[div] + 1 - 4;
|
/drivers/scsi/ |
D | ncr53c8xx.c | 5283 u_long kpc; /* (per * clk) */ in ncr_getsync() local 5297 kpc = per * clk; in ncr_getsync() 5299 if (kpc >= (div_10M[div] << 2)) break; in ncr_getsync() 5305 fak = (kpc - 1) / div_10M[div] + 1; in ncr_getsync()
|