| /OK3568_Linux_fs/kernel/drivers/pwm/ |
| H A D | pwm-ab8500.c | 24 struct pwm_chip chip; member 27 static int ab8500_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in ab8500_pwm_config() 57 static int ab8500_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in ab8500_pwm_enable() 70 static void ab8500_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm) in ab8500_pwm_disable()
|
| H A D | pwm-stmpe.c | 30 struct pwm_chip chip; member 34 static inline struct stmpe_pwm *to_stmpe_pwm(struct pwm_chip *chip) in to_stmpe_pwm() 39 static int stmpe_24xx_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) in stmpe_24xx_pwm_enable() 64 static void stmpe_24xx_pwm_disable(struct pwm_chip *chip, in stmpe_24xx_pwm_disable() 99 static int stmpe_24xx_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, in stmpe_24xx_pwm_config()
|
| /OK3568_Linux_fs/kernel/arch/sh/boards/mach-x3proto/ |
| H A D | gpio.c | 29 static int x3proto_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in x3proto_gpio_direction_input() 43 static int x3proto_gpio_get(struct gpio_chip *chip, unsigned gpio) in x3proto_gpio_get() 48 static int x3proto_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) in x3proto_gpio_to_irq() 63 struct irq_chip *chip = irq_data_get_irq_chip(data); in x3proto_gpio_irq_handler() local
|
| /OK3568_Linux_fs/kernel/drivers/input/misc/ |
| H A D | 88pm860x_onkey.c | 38 struct pm860x_chip *chip; member 62 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); in pm860x_onkey_probe() local 116 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); in pm860x_onkey_suspend() local 125 struct pm860x_chip *chip = dev_get_drvdata(pdev->dev.parent); in pm860x_onkey_resume() local
|
| /OK3568_Linux_fs/kernel/drivers/rtc/ |
| H A D | rtc-ac100.c | 306 static int ac100_rtc_register_clks(struct ac100_rtc_dev *chip) in ac100_rtc_register_clks() 375 static void ac100_rtc_unregister_clks(struct ac100_rtc_dev *chip) in ac100_rtc_unregister_clks() 386 struct ac100_rtc_dev *chip = dev_get_drvdata(dev); in ac100_rtc_get_time() local 409 struct ac100_rtc_dev *chip = dev_get_drvdata(dev); in ac100_rtc_set_time() local 442 struct ac100_rtc_dev *chip = dev_get_drvdata(dev); in ac100_rtc_alarm_irq_enable() local 453 struct ac100_rtc_dev *chip = dev_get_drvdata(dev); in ac100_rtc_get_alarm() local 484 struct ac100_rtc_dev *chip = dev_get_drvdata(dev); in ac100_rtc_set_alarm() local 526 struct ac100_rtc_dev *chip = data; in ac100_rtc_irq() local 569 struct ac100_rtc_dev *chip; in ac100_rtc_probe() local 618 struct ac100_rtc_dev *chip = platform_get_drvdata(pdev); in ac100_rtc_remove() local
|
| H A D | rtc-sunxi.c | 148 struct sunxi_rtc_dev *chip = (struct sunxi_rtc_dev *) id; in sunxi_rtc_alarmirq() local 165 static void sunxi_rtc_setaie(unsigned int to, struct sunxi_rtc_dev *chip) in sunxi_rtc_setaie() 187 struct sunxi_rtc_dev *chip = dev_get_drvdata(dev); in sunxi_rtc_getalarm() local 222 struct sunxi_rtc_dev *chip = dev_get_drvdata(dev); in sunxi_rtc_gettime() local 256 struct sunxi_rtc_dev *chip = dev_get_drvdata(dev); in sunxi_rtc_setalarm() local 310 static int sunxi_rtc_wait(struct sunxi_rtc_dev *chip, int offset, in sunxi_rtc_wait() 330 struct sunxi_rtc_dev *chip = dev_get_drvdata(dev); in sunxi_rtc_settime() local 399 struct sunxi_rtc_dev *chip = dev_get_drvdata(dev); in sunxi_rtc_alarm_irq_enable() local 424 struct sunxi_rtc_dev *chip; in sunxi_rtc_probe() local
|
| H A D | rtc-sun6i.c | 413 struct sun6i_rtc_dev *chip = (struct sun6i_rtc_dev *) id; in sun6i_rtc_alarmirq() local 433 static void sun6i_rtc_setaie(int to, struct sun6i_rtc_dev *chip) in sun6i_rtc_setaie() 458 struct sun6i_rtc_dev *chip = dev_get_drvdata(dev); in sun6i_rtc_gettime() local 491 struct sun6i_rtc_dev *chip = dev_get_drvdata(dev); in sun6i_rtc_getalarm() local 510 struct sun6i_rtc_dev *chip = dev_get_drvdata(dev); in sun6i_rtc_setalarm() local 546 static int sun6i_rtc_wait(struct sun6i_rtc_dev *chip, int offset, in sun6i_rtc_wait() 566 struct sun6i_rtc_dev *chip = dev_get_drvdata(dev); in sun6i_rtc_settime() local 624 struct sun6i_rtc_dev *chip = dev_get_drvdata(dev); in sun6i_rtc_alarm_irq_enable() local 644 struct sun6i_rtc_dev *chip = dev_get_drvdata(dev); in sun6i_rtc_suspend() local 655 struct sun6i_rtc_dev *chip = dev_get_drvdata(dev); in sun6i_rtc_resume() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/ |
| H A D | qcom_nandc.c | 195 #define nandc_reg_phys(chip, offset) ((chip)->base_phys + (offset)) argument 198 #define reg_buf_dma_addr(chip, vaddr) \ argument 434 struct nand_chip chip; member 561 static inline struct qcom_nand_host *to_qcom_nand_host(struct nand_chip *chip) in to_qcom_nand_host() 567 get_qcom_nand_controller(struct nand_chip *chip) in get_qcom_nand_controller() 663 struct nand_chip *chip = &host->chip; in set_address() local 682 struct nand_chip *chip = &host->chip; in update_rw_regs() local 1158 struct nand_chip *chip = &host->chip; in nandc_param() local 1216 struct nand_chip *chip = &host->chip; in erase_block() local 1245 struct nand_chip *chip = &host->chip; in read_id() local [all …]
|
| H A D | orion_nand.c | 26 struct nand_chip chip; member 52 static void orion_nand_read_buf(struct nand_chip *chip, uint8_t *buf, int len) in orion_nand_read_buf() 86 static int orion_nand_attach_chip(struct nand_chip *chip) in orion_nand_attach_chip() 220 struct nand_chip *chip = &info->chip; in orion_nand_remove() local
|
| /OK3568_Linux_fs/kernel/drivers/power/supply/ |
| H A D | sbs-battery.c | 214 static void sbs_disable_charger_broadcasts(struct sbs_info *chip) in sbs_disable_charger_broadcasts() 232 static int sbs_update_presence(struct sbs_info *chip, bool is_present) in sbs_update_presence() 301 struct sbs_info *chip = i2c_get_clientdata(client); in sbs_read_word_data() local 324 struct sbs_info *chip = i2c_get_clientdata(client); in sbs_read_string_data_fallback() local 392 struct sbs_info *chip = i2c_get_clientdata(client); in sbs_read_string_data() local 425 struct sbs_info *chip = i2c_get_clientdata(client); in sbs_write_word_data() local 544 struct sbs_info *chip = i2c_get_clientdata(client); in sbs_get_battery_presence_and_health() local 579 struct sbs_info *chip = i2c_get_clientdata(client); in sbs_get_battery_property() local 858 struct sbs_info *chip = power_supply_get_drvdata(psy); in sbs_get_property() local 994 static void sbs_supply_changed(struct sbs_info *chip) in sbs_supply_changed() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/i2c/ |
| H A D | davinci_i2c.c | 126 static int _davinci_i2c_read(struct i2c_regs *i2c_base, uint8_t chip, in _davinci_i2c_read() 224 static int _davinci_i2c_write(struct i2c_regs *i2c_base, uint8_t chip, in _davinci_i2c_write() 306 static int _davinci_i2c_probe_chip(struct i2c_regs *i2c_base, uint8_t chip) in _davinci_i2c_probe_chip() 386 static int davinci_i2c_read(struct i2c_adapter *adap, uint8_t chip, in davinci_i2c_read() 393 static int davinci_i2c_write(struct i2c_adapter *adap, uint8_t chip, in davinci_i2c_write() 401 static int davinci_i2c_probe_chip(struct i2c_adapter *adap, uint8_t chip) in davinci_i2c_probe_chip()
|
| /OK3568_Linux_fs/kernel/drivers/gpio/ |
| H A D | gpio-bcm-kona.c | 122 static int bcm_kona_gpio_get_dir(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_get_dir() 132 static void bcm_kona_gpio_set(struct gpio_chip *chip, unsigned gpio, int value) in bcm_kona_gpio_set() 159 static int bcm_kona_gpio_get(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_get() 186 static int bcm_kona_gpio_request(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_request() 194 static void bcm_kona_gpio_free(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_free() 201 static int bcm_kona_gpio_direction_input(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_direction_input() 222 static int bcm_kona_gpio_direction_output(struct gpio_chip *chip, in bcm_kona_gpio_direction_output() 251 static int bcm_kona_gpio_to_irq(struct gpio_chip *chip, unsigned gpio) in bcm_kona_gpio_to_irq() 261 static int bcm_kona_gpio_set_debounce(struct gpio_chip *chip, unsigned gpio, in bcm_kona_gpio_set_debounce() 310 static int bcm_kona_gpio_set_config(struct gpio_chip *chip, unsigned gpio, in bcm_kona_gpio_set_config() [all …]
|
| H A D | gpio-sa1100.c | 17 struct gpio_chip chip; member 39 static int sa1100_gpio_get(struct gpio_chip *chip, unsigned offset) in sa1100_gpio_get() 45 static void sa1100_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in sa1100_gpio_set() 52 static int sa1100_get_direction(struct gpio_chip *chip, unsigned offset) in sa1100_get_direction() 62 static int sa1100_direction_input(struct gpio_chip *chip, unsigned offset) in sa1100_direction_input() 74 static int sa1100_direction_output(struct gpio_chip *chip, unsigned offset, int value) in sa1100_direction_output() 87 static int sa1100_to_irq(struct gpio_chip *chip, unsigned offset) in sa1100_to_irq()
|
| H A D | gpio-mvebu.c | 99 struct pwm_chip chip; member 110 struct gpio_chip chip; member 298 static void mvebu_gpio_set(struct gpio_chip *chip, unsigned int pin, int value) in mvebu_gpio_set() 306 static int mvebu_gpio_get(struct gpio_chip *chip, unsigned int pin) in mvebu_gpio_get() 328 static void mvebu_gpio_blink(struct gpio_chip *chip, unsigned int pin, in mvebu_gpio_blink() 337 static int mvebu_gpio_direction_input(struct gpio_chip *chip, unsigned int pin) in mvebu_gpio_direction_input() 356 static int mvebu_gpio_direction_output(struct gpio_chip *chip, unsigned int pin, in mvebu_gpio_direction_output() 379 static int mvebu_gpio_get_direction(struct gpio_chip *chip, unsigned int pin) in mvebu_gpio_get_direction() 392 static int mvebu_gpio_to_irq(struct gpio_chip *chip, unsigned int pin) in mvebu_gpio_to_irq() 559 struct irq_chip *chip = irq_desc_get_chip(desc); in mvebu_gpio_irq_handler() local [all …]
|
| H A D | gpio-pca9570.c | 25 struct gpio_chip chip; member 50 static int pca9570_get_direction(struct gpio_chip *chip, in pca9570_get_direction() 57 static int pca9570_get(struct gpio_chip *chip, unsigned offset) in pca9570_get() 70 static void pca9570_set(struct gpio_chip *chip, unsigned offset, int value) in pca9570_set()
|
| H A D | gpio-adp5520.c | 23 static int adp5520_gpio_get_value(struct gpio_chip *chip, unsigned off) in adp5520_gpio_get_value() 43 static void adp5520_gpio_set_value(struct gpio_chip *chip, in adp5520_gpio_set_value() 55 static int adp5520_gpio_direction_input(struct gpio_chip *chip, unsigned off) in adp5520_gpio_direction_input() 66 static int adp5520_gpio_direction_output(struct gpio_chip *chip, in adp5520_gpio_direction_output()
|
| /OK3568_Linux_fs/kernel/drivers/char/tpm/ |
| H A D | tpm_crb.c | 166 static int crb_go_idle(struct tpm_chip *chip) in crb_go_idle() 208 static int crb_cmd_ready(struct tpm_chip *chip) in crb_cmd_ready() 235 static int crb_request_locality(struct tpm_chip *chip, int loc) in crb_request_locality() 262 static int crb_relinquish_locality(struct tpm_chip *chip, int loc) in crb_relinquish_locality() 269 static u8 crb_status(struct tpm_chip *chip) in crb_status() 281 static int crb_recv(struct tpm_chip *chip, u8 *buf, size_t count) in crb_recv() 313 static int crb_do_acpi_start(struct tpm_chip *chip) in crb_do_acpi_start() 358 static int crb_send(struct tpm_chip *chip, u8 *buf, size_t len) in crb_send() 400 static void crb_cancel(struct tpm_chip *chip) in crb_cancel() 412 static bool crb_req_canceled(struct tpm_chip *chip, u8 status) in crb_req_canceled() [all …]
|
| /OK3568_Linux_fs/kernel/sound/drivers/ |
| H A D | mtpav.c | 166 static int translate_subdevice_to_hwport(struct mtpav *chip, int subdev) in translate_subdevice_to_hwport() 181 static int translate_hwport_to_subdevice(struct mtpav *chip, int hwport) in translate_hwport_to_subdevice() 206 static u8 snd_mtpav_getreg(struct mtpav *chip, u16 reg) in snd_mtpav_getreg() 224 static inline void snd_mtpav_mputreg(struct mtpav *chip, u16 reg, u8 val) in snd_mtpav_mputreg() 233 static void snd_mtpav_wait_rfdhi(struct mtpav *chip) in snd_mtpav_wait_rfdhi() 245 static void snd_mtpav_send_byte(struct mtpav *chip, u8 byte) in snd_mtpav_send_byte() 323 static void snd_mtpav_portscan(struct mtpav *chip) // put mtp into smart routing mode in snd_mtpav_portscan() 396 struct mtpav *chip = from_timer(chip, t, timer); in snd_mtpav_output_timer() local 412 static void snd_mtpav_add_output_timer(struct mtpav *chip) in snd_mtpav_add_output_timer() 418 static void snd_mtpav_remove_output_timer(struct mtpav *chip) in snd_mtpav_remove_output_timer() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/media/i2c/nvp6158_drv/ |
| H A D | nvp6158_video.c | 113 static __maybe_unused void nvp6158_datareverse(unsigned char chip, unsigned char port) in nvp6158_datareverse() 124 static __maybe_unused void nvp6158_pll_bypass(unsigned char chip, int flag) in nvp6158_pll_bypass() 138 static void nvp6158_system_init(unsigned char chip) in nvp6158_system_init() 166 void nvp6158_common_init(unsigned char chip) in nvp6158_common_init() 257 int chip; in nvp6158_set_colorpattern() local 279 int chip; in nvp6158_set_colorpattern2() local 306 int chip; in nvp6158_set_colorpattern3() local 1128 int nvp6158_set_portmode(const unsigned char chip, const unsigned char portsel, in nvp6158_set_portmode() 1570 void nvp6158_set_portcontrol(const unsigned char chip, const unsigned char portsel, in nvp6158_set_portcontrol() 1618 void nvp6158_additional_for3MoverDef(unsigned char chip) in nvp6158_additional_for3MoverDef() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/pinctrl/ |
| H A D | pinctrl-coh901.c | 70 struct gpio_chip chip; member 211 static int u300_gpio_get(struct gpio_chip *chip, unsigned offset) in u300_gpio_get() 218 static void u300_gpio_set(struct gpio_chip *chip, unsigned offset, int value) in u300_gpio_set() 235 static int u300_gpio_direction_input(struct gpio_chip *chip, unsigned offset) in u300_gpio_direction_input() 250 static int u300_gpio_direction_output(struct gpio_chip *chip, unsigned offset, in u300_gpio_direction_output() 280 int u300_gpio_config_get(struct gpio_chip *chip, in u300_gpio_config_get() 339 int u300_gpio_config_set(struct gpio_chip *chip, unsigned offset, in u300_gpio_config_set() 422 struct gpio_chip *chip = irq_data_get_irq_chip_data(d); in u300_gpio_irq_type() local 459 struct gpio_chip *chip = irq_data_get_irq_chip_data(d); in u300_gpio_irq_enable() local 476 struct gpio_chip *chip = irq_data_get_irq_chip_data(d); in u300_gpio_irq_disable() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/cpufreq/ |
| H A D | powernv-cpufreq.c | 131 static struct chip { struct 144 static DEFINE_PER_CPU(struct chip *, chip_info); argument 557 struct chip *chip; in powernv_cpufreq_throttle_check() local 909 struct chip *chip = container_of(work, struct chip, throttle); in powernv_cpufreq_work_fn() local 1052 unsigned int *chip; in init_chip_info() local
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/nand/raw/ |
| H A D | rockchip_nand.c | 116 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_select_chip() local 145 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_cmd_ctrl() local 166 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_read_buf() local 180 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_write_buf() local 201 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_dev_ready() local 214 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_hw_ecc_setup() local 285 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_read_extra_oob() local 300 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_write_extra_oob() local 314 struct nand_chip *chip, in rockchip_nand_hw_syndrome_pio_read_page() 389 struct nand_chip *chip, in rockchip_nand_hw_syndrome_pio_write_page() [all …]
|
| H A D | rockchip_nand_v9.c | 122 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_select_chip() local 151 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_cmd_ctrl() local 172 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_read_buf() local 186 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_write_buf() local 207 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_dev_ready() local 220 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_hw_ecc_setup() local 286 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_read_extra_oob() local 301 struct nand_chip *chip = mtd_to_nand(mtd); in rockchip_nand_write_extra_oob() local 315 struct nand_chip *chip, in rockchip_nand_hw_syndrome_pio_read_page() 390 struct nand_chip *chip, in rockchip_nand_hw_syndrome_pio_write_page() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/leds/ |
| H A D | leds-lm36274.c | 46 struct lm36274 *chip = container_of(led_cdev, struct lm36274, led_dev); in lm36274_brightness_set() local 51 static int lm36274_init(struct lm36274 *chip) in lm36274_init() 69 static int lm36274_parse_dt(struct lm36274 *chip, in lm36274_parse_dt() 110 struct lm36274 *chip; in lm36274_probe() local
|
| /OK3568_Linux_fs/kernel/sound/pcmcia/pdaudiocf/ |
| H A D | pdaudiocf.c | 73 struct snd_pdacf *chip = device->device_data; in snd_pdacf_dev_free() local 186 struct snd_pdacf *chip = link->priv; in snd_pdacf_detach() local 242 struct snd_pdacf *chip = link->priv; in pdacf_suspend() local 255 struct snd_pdacf *chip = link->priv; in pdacf_resume() local
|