/device/soc/rockchip/common/sdk_linux/drivers/gpio/ |
H A D | gpiolib-of.c | 33 * established "cs-gpios" for chip selects but instead rely on 34 * "gpios" for the chip select lines. If we detect this, we redirect 87 static int of_gpiochip_match_node_and_xlate(struct gpio_chip *chip, void *data) in of_gpiochip_match_node_and_xlate() argument 91 return chip->gpiodev->dev.of_node == gpiospec->np && chip->of_xlate && chip->of_xlate(chip, gpiospec, NULL) >= 0; in of_gpiochip_match_node_and_xlate() 99 static struct gpio_desc *of_xlate_and_get_gpiod_flags(struct gpio_chip *chip, struct of_phandle_args *gpiospec, in of_xlate_and_get_gpiod_flags() argument 104 if (chip->of_gpio_n_cells != gpiospec->args_count) { in of_xlate_and_get_gpiod_flags() 108 ret = chip in of_xlate_and_get_gpiod_flags() 237 struct gpio_chip *chip; of_get_named_gpiod_flags() local 580 of_parse_own_gpio(struct device_node *np, struct gpio_chip *chip, unsigned int idx, const char **name, unsigned long *lflags, enum gpiod_flags *dflags) of_parse_own_gpio() argument 658 of_gpiochip_add_hog(struct gpio_chip *chip, struct device_node *hog) of_gpiochip_add_hog() argument 694 of_gpiochip_scan_gpios(struct gpio_chip *chip) of_gpiochip_scan_gpios() argument 723 of_gpiochip_remove_hog(struct gpio_chip *chip, struct device_node *hog) of_gpiochip_remove_hog() argument 735 of_gpiochip_match_node(struct gpio_chip *chip, void *data) of_gpiochip_match_node() argument 748 struct gpio_chip *chip; of_gpio_notify() local 914 of_gpiochip_init_valid_mask(struct gpio_chip *chip) of_gpiochip_init_valid_mask() argument 937 of_gpiochip_add_pin_range(struct gpio_chip *chip) of_gpiochip_add_pin_range() argument 1017 of_gpiochip_add_pin_range(struct gpio_chip *chip) of_gpiochip_add_pin_range() argument 1023 of_gpiochip_add(struct gpio_chip *chip) of_gpiochip_add() argument 1057 of_gpiochip_remove(struct gpio_chip *chip) of_gpiochip_remove() argument [all...] |
H A D | gpio-rockchip.c | 157 static int rockchip_gpio_get_direction(struct gpio_chip *chip, unsigned int offset) in rockchip_gpio_get_direction() argument 159 struct rockchip_pin_bank *bank = gpiochip_get_data(chip); in rockchip_gpio_get_direction() 167 static int rockchip_gpio_set_direction(struct gpio_chip *chip, unsigned int offset, bool input) in rockchip_gpio_set_direction() argument 169 struct rockchip_pin_bank *bank = gpiochip_get_data(chip); in rockchip_gpio_set_direction() 319 struct irq_chip *chip = irq_desc_get_chip(desc); in rockchip_irq_demux() local 326 chained_irq_enter(chip, desc); in rockchip_irq_demux() 373 chained_irq_exit(chip, desc); in rockchip_irq_demux() 504 gc->chip_types[0].chip.irq_ack = irq_gc_ack_set_bit; in rockchip_interrupts_register() 505 gc->chip_types[0].chip.irq_mask = irq_gc_mask_set_bit; in rockchip_interrupts_register() 506 gc->chip_types[0].chip in rockchip_interrupts_register() [all...] |
/device/soc/rockchip/rk2206/hardware/ |
H A D | build.py | 19 def __init__(self, chip, board): 20 self.chip = chip 39 head += "import(\"//device/rockchip/%s/sdk_liteos/board.gni\")\n" % self.chip 48 inc += " \"./lib/CMSIS/Device/%s/Include\",\n" % self.chip.upper() 50 inc += " \"./lib/bsp/%s\",\n" % self.chip.upper() 51 inc += " \"./project/%s/src\",\n" % self.chip 76 for chip in chips: 77 if src.find(chip) >= 0 and chip ! [all...] |
/device/soc/rockchip/common/sdk_linux/include/linux/ |
H A D | pwm.h | 72 * @hwpwm: per-chip relative index of the PWM device 74 * @chip: PWM chip providing this PWM device 75 * @chip_data: chip-private data associated with the PWM device 85 struct pwm_chip *chip; member 248 * called once per PWM device when the PWM chip is 257 int (*request)(struct pwm_chip *chip, struct pwm_device *pwm); 258 void (*free)(struct pwm_chip *chip, struct pwm_device *pwm); 259 int (*capture)(struct pwm_chip *chip, struct pwm_device *pwm, struct pwm_capture *result, unsigned long timeout); 260 int (*apply)(struct pwm_chip *chip, struc 456 pwmchip_add(struct pwm_chip *chip) pwmchip_add() argument 461 pwmchip_add_inversed(struct pwm_chip *chip) pwmchip_add_inversed() argument 466 pwmchip_remove(struct pwm_chip *chip) pwmchip_remove() argument 471 pwm_request_from_chip(struct pwm_chip *chip, unsigned int index, const char *label) pwm_request_from_chip() argument 580 pwmchip_sysfs_export(struct pwm_chip *chip) pwmchip_sysfs_export() argument 584 pwmchip_sysfs_unexport(struct pwm_chip *chip) pwmchip_sysfs_unexport() argument [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/pwm/ |
H A D | sysfs.c | 337 struct pwm_chip *chip = dev_get_drvdata(parent); in export_store() local 347 if (hwpwm >= chip->npwm) { in export_store() 351 pwm = pwm_request_from_chip(chip, hwpwm, "sysfs"); in export_store() 367 struct pwm_chip *chip = dev_get_drvdata(parent); in unexport_store() local 376 if (hwpwm >= chip->npwm) { in unexport_store() 380 ret = pwm_unexport_child(parent, &chip->pwms[hwpwm]); in unexport_store() 388 const struct pwm_chip *chip = dev_get_drvdata(parent); in npwm_show() local 390 return sprintf(buf, "%u\n", chip->npwm); in npwm_show() 438 struct pwm_chip *chip = dev_get_drvdata(parent); in pwm_class_resume_npwm() local 443 struct pwm_device *pwm = &chip in pwm_class_resume_npwm() 464 struct pwm_chip *chip = dev_get_drvdata(parent); pwm_class_suspend() local 496 struct pwm_chip *chip = dev_get_drvdata(parent); pwm_class_resume() local 515 pwmchip_sysfs_export(struct pwm_chip *chip) pwmchip_sysfs_export() argument 529 pwmchip_sysfs_unexport(struct pwm_chip *chip) pwmchip_sysfs_unexport() argument [all...] |
H A D | pwm-rockchip.c | 40 struct pwm_chip chip;
member 72 return container_of(c, struct rockchip_pwm_chip, chip);
in to_rockchip_pwm_chip() 75 static void rockchip_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, struct pwm_state *state)
in rockchip_pwm_get_state() argument 77 struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip);
in rockchip_pwm_get_state() 108 static void rockchip_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, const struct pwm_state *state)
in rockchip_pwm_config() argument 110 struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip);
in rockchip_pwm_config() 144 dev_err(chip->dev, "Oneshot_count value overflow.\n");
in rockchip_pwm_config() 184 static int rockchip_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm, bool enable)
in rockchip_pwm_enable() argument 186 struct rockchip_pwm_chip *pc = to_rockchip_pwm_chip(chip);
in rockchip_pwm_enable() 228 static int rockchip_pwm_apply(struct pwm_chip *chip, struc argument [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/thermal/ |
H A D | rockchip_thermal.c | 39 * the resulting TSHUT gave CRU module,let it reset the entire chip,
85 * struct chip_tsadc_table - hold information about chip-specific differences
104 * struct rockchip_tsadc_chip - hold the private data of tsadc chip
105 * @chn_id: array of sensor ids of chip corresponding to the channel
106 * @chn_num: the channel number of tsadc chip
119 * @table: the chip-specific conversion table
122 /* The sensor id of chip correspond to the ADC channel */
162 * @chip: pointer to the platform/configuration data
180 const struct rockchip_tsadc_chip *chip;
member 832 const struct chip_tsadc_table *table = &thermal->chip in rk_tsadcv1_get_trim_code() [all...] |
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
H A D | dhd_config.c | 98 uint chip; member 163 uint chip; member 207 uint chip; member 263 if (CHIPID(sih->chip) == BCM43362_CHIP_ID) { in dhd_conf_set_hw_oob_intr() 569 uint chip, chiprev; in dhd_conf_get_otp() local 572 chip = dhd->conf->chip; in dhd_conf_get_otp() 577 if (row->chip == chip && row->chiprev == chiprev) { in dhd_conf_get_otp() 584 CONFIG_TRACE("no matched chip\ in dhd_conf_get_otp() 676 uint chip, chiprev; dhd_conf_match_chip() local 698 uint devid, chip, chiprev; dhd_conf_match_module() local 746 uint chip, chiprev; dhd_conf_set_fw_name_by_chip() local 863 uint chip, chiprev; dhd_conf_set_clm_name_by_chip() local 912 uint chip, chiprev; dhd_conf_set_nv_name_by_chip() local 1025 uint chip, chiprev; dhd_conf_set_conf_name_by_chip() local 2794 uint chip = 0, rev = 0; dhd_conf_read_chiprev() local 4169 dhd_conf_set_chiprev(dhd_pub_t *dhd, uint chip, uint chiprev) dhd_conf_set_chiprev() argument [all...] |
H A D | dhd_ccode.c | 204 uint chip;
member 246 uint chip = dhd->conf->chip, chiprev = dhd->conf->chiprev;
in dhd_ccode_map_country_list() local 252 if (row->chip == chip && row->chiprev == chiprev) {
in dhd_ccode_map_country_list()
|
H A D | dbus_usb.c | 685 id.chip = 0xDEAD; /* Get the ID */ in dbus_usb_resetcfg() 687 id.chip = ltoh32(id.chip); in dbus_usb_resetcfg() 692 if (id.chip == POSTBOOT_ID) in dbus_usb_resetcfg() 696 if (id.chip == POSTBOOT_ID) { in dbus_usb_resetcfg() 697 DBUSERR(("%s: download done. Bootup time = %d ms postboot chip 0x%x/rev 0x%x\n", in dbus_usb_resetcfg() 698 __FUNCTION__, waittime, id.chip, id.chiprev)); in dbus_usb_resetcfg() 779 /* Get chip id and rev */ in dbus_usb_dl_writeimage() 780 id.chip = usbinfo->pub->attrib.devid; in dbus_usb_dl_writeimage() 819 if ((id.chip in dbus_usb_dl_writeimage() 885 dbus_usb_update_chipinfo(usb_info_t *usbinfo, uint32 chip) dbus_usb_update_chipinfo() argument [all...] |
H A D | siutils.c | 3 * Misc utility routines for accessing chip-specific features 162 * devid - pci device id (used to determine chip#) 205 /** Returns the backplane address of the chipcommon core for a particular chip */ 517 /* Make sure any on-chip ARM is off (in case strapping is wrong), or downloaded code was in si_buscore_setup() 538 return (sii->chipnew) ? sii->chipnew : sih->chip; in si_chipid() 548 switch (sih->chip) { in si_chipid_fixup() 550 sii->chipnew = sih->chip; /* save it */ in si_chipid_fixup() 551 sii->pub.chip = BCM43570_CHIP_ID; /* chip class */ in si_chipid_fixup() 556 sii->chipnew = sih->chip; /* sav in si_chipid_fixup() [all...] |
H A D | hndpmu.c | 34 * Note: this file contains PLL/FLL related functions. A chip can contain multiple PLLs/FLLs. 75 /** contains resource bit positions for a specific chip */ 110 * but the bit definitions are chip-specific. We are keeping this function available in si_sdiod_drive_strength_init() 149 if (CHIPID(sih->chip) == BCM4364_CHIP_ID) { in si_switch_pmu_dependency() 174 if (CHIPID(sih->chip) == BCM4364_CHIP_ID) { in si_switch_pmu_dependency() 206 if (CHIPID(sih->chip) == BCM4364_CHIP_ID) { in si_switch_pmu_dependency() 291 if (CHIPID(sih->chip) == BCM43012_CHIP_ID) { in si_pmu_ulp_chipconfig() 344 switch (CHIPID(sih->chip)) { in si_pmu_ds1_res_init() 377 switch (CHIPID(sih->chip)) { in si_pmu_wake_bit_offset()
|
H A D | wl_android_ext.c | 667 uint chip; in wl_ext_bss_iovar_war() local 670 chip = dhd_conf_get_chip(dhd); in wl_ext_bss_iovar_war() 672 if (chip == BCM43362_CHIP_ID || chip == BCM4330_CHIP_ID || in wl_ext_bss_iovar_war() 673 chip == BCM4354_CHIP_ID || chip == BCM4356_CHIP_ID || in wl_ext_bss_iovar_war() 674 chip == BCM4371_CHIP_ID || in wl_ext_bss_iovar_war() 675 chip == BCM43430_CHIP_ID || in wl_ext_bss_iovar_war() 676 chip == BCM4345_CHIP_ID || chip in wl_ext_bss_iovar_war() 4566 uint chip; wl_legacy_chip_check() local 4590 uint chip; wl_extsae_chip() local 4611 uint chip; wl_new_chip_check() local [all...] |
H A D | dhd_config.h | 55 uint chip; member 166 uint chip; member 353 int dhd_conf_set_chiprev(dhd_pub_t *dhd, uint chip, uint chiprev);
|
H A D | hndlhl.c | 57 if (CHIPID(sih->chip) == BCM43012_CHIP_ID) { in si_lhl_setup() 67 } else if (BCM4347_CHIP(sih->chip)) { in si_lhl_setup() 350 if (CHIPID(sih->chip) == BCM43012_CHIP_ID) { in si_lhl_ilp_config() 376 if (CHIPID(sih->chip) == BCM43012_CHIP_ID) { in si_lhl_enable_sdio_wakeup()
|
H A D | dhd_sdio.c | 719 if (bus->sih->chip == BCM43430_CHIP_ID || in dhdsdio_sr_cap() 720 bus->sih->chip == BCM43018_CHIP_ID) { in dhdsdio_sr_cap() 731 } else if ((bus->sih->chip == BCM4330_CHIP_ID) || in dhdsdio_sr_cap() 732 (bus->sih->chip == BCM43362_CHIP_ID) || in dhdsdio_sr_cap() 733 (BCM4347_CHIP(bus->sih->chip))) { in dhdsdio_sr_cap() 735 } else if ((bus->sih->chip == BCM4335_CHIP_ID) || in dhdsdio_sr_cap() 736 (bus->sih->chip == BCM4339_CHIP_ID) || in dhdsdio_sr_cap() 737 BCM4345_CHIP(bus->sih->chip) || in dhdsdio_sr_cap() 738 (bus->sih->chip == BCM4354_CHIP_ID) || in dhdsdio_sr_cap() 739 (bus->sih->chip in dhdsdio_sr_cap() [all...] |
/device/soc/hisilicon/hi3751v350/sdk_linux/source/msp/drv/gpio/ |
H A D | drv_gpio.c | 126 gpio_drv_chip chip = GPIO_DRV_CHIP_V350; in gpio_drv_get_chip_version() local 135 chip = GPIO_DRV_CHIP_V350; in gpio_drv_get_chip_version() 140 chip = GPIO_DRV_CHIP_V350; in gpio_drv_get_chip_version() 147 HI_LOG_DBG("get chip version:0x%x\n", chip); in gpio_drv_get_chip_version() 148 return chip; in gpio_drv_get_chip_version() 152 static hi_u32 gpio_get_vir_no(hi_u32 chip, hi_u32 gpio_grp, hi_u32 gpio_bit) in gpio_get_vir_no() argument 158 if (chip == GPIO_DRV_CHIP_V350) { in gpio_get_vir_no() 455 static hi_void gpio_set_bit_irq_disable(hi_u32 chip, hi_u32 gpio_no, hi_u32 group_no, hi_u32 bit_no) in gpio_set_bit_irq_disable() argument 468 static hi_s32 gpio_set_bit_irq_enable(hi_u32 chip, hi_u3 argument 486 hi_u32 chip; hi_drv_gpio_set_bit_int_enable() local 527 hi_u32 gpio_value, chip; hi_drv_gpio_set_group_int_enable() local 913 gpio_usr_addr_remap(hi_u32 chip) gpio_usr_addr_remap() argument 996 hi_u32 i, chip; hi_drv_gpio_init() local 1041 hi_u32 i, chip, gpio_grp; hi_drv_gpio_de_init() local [all...] |
/device/soc/rockchip/common/vendor/drivers/gpio/ |
H A D | gpio-rockchip.c | 157 static int rockchip_gpio_get_direction(struct gpio_chip *chip, unsigned int offset) in rockchip_gpio_get_direction() argument 159 struct rockchip_pin_bank *bank = gpiochip_get_data(chip); in rockchip_gpio_get_direction() 167 static int rockchip_gpio_set_direction(struct gpio_chip *chip, unsigned int offset, bool input) in rockchip_gpio_set_direction() argument 169 struct rockchip_pin_bank *bank = gpiochip_get_data(chip); in rockchip_gpio_set_direction() 316 struct irq_chip *chip = irq_desc_get_chip(desc); in rockchip_irq_demux() local 323 chained_irq_enter(chip, desc); in rockchip_irq_demux() 370 chained_irq_exit(chip, desc); in rockchip_irq_demux() 501 gc->chip_types[0].chip.irq_ack = irq_gc_ack_set_bit; in rockchip_interrupts_register() 502 gc->chip_types[0].chip.irq_mask = irq_gc_mask_set_bit; in rockchip_interrupts_register() 503 gc->chip_types[0].chip in rockchip_interrupts_register() [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/pinctrl/ |
H A D | pinctrl-rk806.c | 194 /* generic gpio chip */ 195 static int rk806_gpio_get(struct gpio_chip *chip, unsigned int offset) in rk806_gpio_get() argument 197 struct rk806_pctrl_info *pci = gpiochip_get_data(chip); in rk806_gpio_get() 215 static void rk806_gpio_set(struct gpio_chip *chip, in rk806_gpio_set() argument 219 struct rk806_pctrl_info *pci = gpiochip_get_data(chip); in rk806_gpio_set() 234 static int rk806_gpio_direction_input(struct gpio_chip *chip, in rk806_gpio_direction_input() argument 237 return pinctrl_gpio_direction_input(chip->base + offset); in rk806_gpio_direction_input() 240 static int rk806_gpio_direction_output(struct gpio_chip *chip, in rk806_gpio_direction_output() argument 244 rk806_gpio_set(chip, offset, value); in rk806_gpio_direction_output() 245 return pinctrl_gpio_direction_output(chip in rk806_gpio_direction_output() 248 rk806_gpio_get_direction(struct gpio_chip *chip, unsigned int offset) rk806_gpio_get_direction() argument [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/gpio/ |
H A D | gpio-rockchip.c | 138 static int rockchip_gpio_get_direction(struct gpio_chip *chip, in rockchip_gpio_get_direction() argument 141 struct rockchip_pin_bank *bank = gpiochip_get_data(chip); in rockchip_gpio_get_direction() 151 static int rockchip_gpio_set_direction(struct gpio_chip *chip, in rockchip_gpio_set_direction() argument 154 struct rockchip_pin_bank *bank = gpiochip_get_data(chip); in rockchip_gpio_set_direction() 331 struct irq_chip *chip = irq_desc_get_chip(desc); in rockchip_irq_demux() local 337 chained_irq_enter(chip, desc); in rockchip_irq_demux() 389 chained_irq_exit(chip, desc); in rockchip_irq_demux() 537 gc->chip_types[0].chip.irq_ack = irq_gc_ack_set_bit; in rockchip_interrupts_register() 538 gc->chip_types[0].chip.irq_mask = irq_gc_mask_set_bit; in rockchip_interrupts_register() 539 gc->chip_types[0].chip in rockchip_interrupts_register() [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/pinctrl/ |
H A D | pinctrl-rk805.c | 266 /* generic gpio chip */
267 static int rk805_gpio_get(struct gpio_chip *chip, unsigned int offset)
in rk805_gpio_get() argument 269 struct rk805_pctrl_info *pci = gpiochip_get_data(chip);
in rk805_gpio_get() 286 static void rk805_gpio_set(struct gpio_chip *chip, unsigned int offset, int value)
in rk805_gpio_set() argument 288 struct rk805_pctrl_info *pci = gpiochip_get_data(chip);
in rk805_gpio_set() 300 static int rk805_gpio_direction_input(struct gpio_chip *chip, unsigned int offset)
in rk805_gpio_direction_input() argument 302 return pinctrl_gpio_direction_input(chip->base + offset);
in rk805_gpio_direction_input() 305 static int rk805_gpio_direction_output(struct gpio_chip *chip, unsigned int offset, int value)
in rk805_gpio_direction_output() argument 307 rk805_gpio_set(chip, offset, value);
in rk805_gpio_direction_output() 308 return pinctrl_gpio_direction_output(chip in rk805_gpio_direction_output() 311 rk805_gpio_get_direction(struct gpio_chip *chip, unsigned int offset) rk805_gpio_get_direction() argument [all...] |
/device/board/hihope/rk3568/audio_drivers/codec/rk809_codec/src/ |
H A D | rk809_codec_impl.c | 116 struct Rk809ChipData *chip = GetCodecDevice(); in Rk809DeviceRegRead() local 117 if (chip == NULL) { in Rk809DeviceRegRead() 122 if (regmap_read(chip->regmap, reg, val)) { in Rk809DeviceRegRead() 131 struct Rk809ChipData *chip = GetCodecDevice(); in Rk809DeviceRegWrite() local 132 if (chip == NULL) { in Rk809DeviceRegWrite() 137 if (regmap_write(chip->regmap, reg, value)) { in Rk809DeviceRegWrite()
|
/device/soc/hisilicon/hi3751v350/sdk_linux/source/msp/drv/i2c/std_i2c/ |
H A D | drv_i2c.c | 109 hi_u32 value, sclh, scll, chip; in i2c_drv_set_rate() local 117 chip = hi_drv_i2c_get_chip_version(); in i2c_drv_set_rate() 956 hi_u32 chip; in hi_drv_std_i2c_write() local 984 chip = hi_drv_i2c_get_chip_version(); in hi_drv_std_i2c_write() 1031 hi_u32 chip; in hi_drv_std_i2c_read() local 1062 chip = hi_drv_i2c_get_chip_version(); in hi_drv_std_i2c_read() 1228 i2c_drv_chip chip; in hi_drv_i2c_de_init() local 1233 chip = hi_drv_i2c_get_chip_version(); in hi_drv_i2c_de_init() 1317 hi_u32 chip; in hi_drv_i2c_write() local 1347 chip in hi_drv_i2c_write() 1407 hi_u32 chip; hi_drv_i2c_read() local [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/drivers/core/include/ |
H A D | drv_osal_chip.h | 44 #error You need to define a configuration file for chip !
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/ |
H A D | hndlhl.h | 58 #define HIB_EXT_WAKEUP_CAP(sih) (BCM4347_CHIP(sih->chip))
|