Searched refs:chip (Results 1 - 25 of 647) sorted by relevance

1234567891011>>

/drivers/staging/rts5208/
H A Drtsx_card.c41 void do_remaining_work(struct rtsx_chip *chip) argument
43 struct sd_info *sd_card = &(chip->sd_card);
45 struct xd_info *xd_card = &(chip->xd_card);
47 struct ms_info *ms_card = &(chip->ms_card);
49 if (chip->card_ready & SD_CARD) {
51 rtsx_set_stat(chip, RTSX_STAT_RUN);
59 if (chip->card_ready & XD_CARD) {
61 rtsx_set_stat(chip, RTSX_STAT_RUN);
69 if (chip->card_ready & MS_CARD) {
72 rtsx_set_stat(chip, RTSX_STAT_RU
99 try_to_switch_sdio_ctrl(struct rtsx_chip *chip) argument
117 dynamic_configure_sdio_aspm(struct rtsx_chip *chip) argument
156 do_reset_sd_card(struct rtsx_chip *chip) argument
210 do_reset_xd_card(struct rtsx_chip *chip) argument
258 do_reset_ms_card(struct rtsx_chip *chip) argument
306 release_sdio(struct rtsx_chip *chip) argument
326 rtsx_power_off_card(struct rtsx_chip *chip) argument
344 rtsx_release_cards(struct rtsx_chip *chip) argument
367 rtsx_reset_cards(struct rtsx_chip *chip) argument
415 rtsx_reinit_cards(struct rtsx_chip *chip, int reset_chip) argument
458 card_cd_debounce(struct rtsx_chip *chip, unsigned long *need_reset, unsigned long *need_release) argument
532 rtsx_init_cards(struct rtsx_chip *chip) argument
643 switch_ssc_clock(struct rtsx_chip *chip, int clk) argument
711 switch_normal_clock(struct rtsx_chip *chip, int clk) argument
819 trans_dma_enable(enum dma_data_direction dir, struct rtsx_chip *chip, u32 byte_cnt, u8 pack_size) argument
845 enable_card_clock(struct rtsx_chip *chip, u8 card) argument
861 disable_card_clock(struct rtsx_chip *chip, u8 card) argument
877 card_power_on(struct rtsx_chip *chip, u8 card) argument
911 card_power_off(struct rtsx_chip *chip, u8 card) argument
928 card_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 sec_addr, u16 sec_cnt) argument
966 card_share_mode(struct rtsx_chip *chip, int card) argument
1002 select_card(struct rtsx_chip *chip, int card) argument
1031 toggle_gpio(struct rtsx_chip *chip, u8 gpio) argument
1040 turn_on_led(struct rtsx_chip *chip, u8 gpio) argument
1049 turn_off_led(struct rtsx_chip *chip, u8 gpio) argument
1058 detect_card_cd(struct rtsx_chip *chip, int card) argument
1080 check_card_exist(struct rtsx_chip *chip, unsigned int lun) argument
1088 check_card_ready(struct rtsx_chip *chip, unsigned int lun) argument
1096 check_card_wp(struct rtsx_chip *chip, unsigned int lun) argument
1104 check_card_fail(struct rtsx_chip *chip, unsigned int lun) argument
1112 check_card_ejected(struct rtsx_chip *chip, unsigned int lun) argument
1120 get_lun_card(struct rtsx_chip *chip, unsigned int lun) argument
1132 eject_card(struct rtsx_chip *chip, unsigned int lun) argument
[all...]
H A Drtsx_chip.c41 static void rtsx_calibration(struct rtsx_chip *chip) argument
43 rtsx_write_phy_register(chip, 0x1B, 0x135E);
45 rtsx_write_phy_register(chip, 0x00, 0x0280);
46 rtsx_write_phy_register(chip, 0x01, 0x7112);
47 rtsx_write_phy_register(chip, 0x01, 0x7110);
48 rtsx_write_phy_register(chip, 0x01, 0x7112);
49 rtsx_write_phy_register(chip, 0x01, 0x7113);
50 rtsx_write_phy_register(chip, 0x00, 0x0288);
53 void rtsx_disable_card_int(struct rtsx_chip *chip) argument
55 u32 reg = rtsx_readl(chip, RTSX_BIE
61 rtsx_enable_card_int(struct rtsx_chip *chip) argument
80 rtsx_enable_bus_int(struct rtsx_chip *chip) argument
119 rtsx_disable_bus_int(struct rtsx_chip *chip) argument
124 rtsx_pre_handle_sdio_old(struct rtsx_chip *chip) argument
152 rtsx_pre_handle_sdio_new(struct rtsx_chip *chip) argument
229 rtsx_reset_chip(struct rtsx_chip *chip) argument
535 rts5208_init(struct rtsx_chip *chip) argument
597 rts5288_init(struct rtsx_chip *chip) argument
661 rtsx_init_chip(struct rtsx_chip *chip) argument
796 rtsx_release_chip(struct rtsx_chip *chip) argument
805 rtsx_blink_led(struct rtsx_chip *chip) argument
818 rtsx_monitor_aspm_config(struct rtsx_chip *chip) argument
867 rtsx_polling_func(struct rtsx_chip *chip) argument
1128 rtsx_undo_delink(struct rtsx_chip *chip) argument
1142 rtsx_stop_cmd(struct rtsx_chip *chip, int card) argument
1170 rtsx_write_register(struct rtsx_chip *chip, u16 addr, u8 mask, u8 data) argument
1194 rtsx_read_register(struct rtsx_chip *chip, u16 addr, u8 *data) argument
1221 rtsx_write_cfg_dw(struct rtsx_chip *chip, u8 func_no, u16 addr, u32 mask, u32 val) argument
1254 rtsx_read_cfg_dw(struct rtsx_chip *chip, u8 func_no, u16 addr, u32 *val) argument
1281 rtsx_write_cfg_seq(struct rtsx_chip *chip, u8 func, u16 addr, u8 *buf, int len) argument
1341 rtsx_read_cfg_seq(struct rtsx_chip *chip, u8 func, u16 addr, u8 *buf, int len) argument
1387 rtsx_write_phy_register(struct rtsx_chip *chip, u8 addr, u16 val) argument
1411 rtsx_read_phy_register(struct rtsx_chip *chip, u8 addr, u16 *val) argument
1442 rtsx_read_efuse(struct rtsx_chip *chip, u8 addr, u8 *val) argument
1466 rtsx_write_efuse(struct rtsx_chip *chip, u8 addr, u8 val) argument
1497 rtsx_clr_phy_reg_bit(struct rtsx_chip *chip, u8 reg, u8 bit) argument
1516 rtsx_set_phy_reg_bit(struct rtsx_chip *chip, u8 reg, u8 bit) argument
1535 rtsx_check_link_ready(struct rtsx_chip *chip) argument
1551 rtsx_handle_pm_dstate(struct rtsx_chip *chip, u8 dstate) argument
1576 rtsx_enter_L1(struct rtsx_chip *chip) argument
1581 rtsx_exit_L1(struct rtsx_chip *chip) argument
1587 rtsx_enter_ss(struct rtsx_chip *chip) argument
1625 rtsx_exit_ss(struct rtsx_chip *chip) argument
1646 rtsx_pre_handle_interrupt(struct rtsx_chip *chip) argument
1738 rtsx_do_before_power_down(struct rtsx_chip *chip, int pm_stat) argument
1797 rtsx_enable_aspm(struct rtsx_chip *chip) argument
1828 rtsx_disable_aspm(struct rtsx_chip *chip) argument
1851 rtsx_read_ppbuf(struct rtsx_chip *chip, u8 *buf, int buf_len) argument
1893 rtsx_write_ppbuf(struct rtsx_chip *chip, u8 *buf, int buf_len) argument
1936 rtsx_check_chip_exist(struct rtsx_chip *chip) argument
1944 rtsx_force_power_on(struct rtsx_chip *chip, u8 ctl) argument
1972 rtsx_force_power_down(struct rtsx_chip *chip, u8 ctl) argument
[all...]
H A Dtrace.h49 #define TRACE_RET(chip, ret) \
52 dev_dbg(rtsx_dev(chip), "[%s][%s]:[%d]\n", _file, \
54 (chip)->trace_msg[(chip)->msg_idx].line = (u16)(__LINE__); \
55 strncpy((chip)->trace_msg[(chip)->msg_idx].func, __func__, MSG_FUNC_LEN-1); \
56 strncpy((chip)->trace_msg[(chip)->msg_idx].file, _file, MSG_FILE_LEN-1); \
57 get_current_time((chip)->trace_msg[(chip)
[all...]
H A Drtsx_sys.h33 static inline void rtsx_exclusive_enter_ss(struct rtsx_chip *chip) argument
35 struct rtsx_dev *dev = chip->rtsx;
38 rtsx_enter_ss(chip);
42 static inline void rtsx_reset_detected_cards(struct rtsx_chip *chip, int flag) argument
44 rtsx_reset_cards(chip);
H A Dspi.c33 static inline void spi_set_err_code(struct rtsx_chip *chip, u8 err_code) argument
35 struct spi_info *spi = &(chip->spi);
40 static int spi_init(struct rtsx_chip *chip) argument
42 RTSX_WRITE_REG(chip, SPI_CONTROL, 0xFF,
45 RTSX_WRITE_REG(chip, SPI_TCTL, EDO_TIMING_MASK, SAMPLE_DELAY_HALF);
50 static int spi_set_init_para(struct rtsx_chip *chip) argument
52 struct spi_info *spi = &(chip->spi);
55 RTSX_WRITE_REG(chip, SPI_CLK_DIVIDER1, 0xFF, (u8)(spi->clk_div >> 8));
56 RTSX_WRITE_REG(chip, SPI_CLK_DIVIDER0, 0xFF, (u8)(spi->clk_div));
58 retval = switch_clock(chip, sp
78 sf_polling_status(struct rtsx_chip *chip, int msec) argument
100 sf_enable_write(struct rtsx_chip *chip, u8 ins) argument
128 sf_disable_write(struct rtsx_chip *chip, u8 ins) argument
156 sf_program(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr, u16 len) argument
180 sf_erase(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr) argument
214 spi_init_eeprom(struct rtsx_chip *chip) argument
247 spi_eeprom_program_enable(struct rtsx_chip *chip) argument
267 spi_erase_eeprom_chip(struct rtsx_chip *chip) argument
299 spi_erase_eeprom_byte(struct rtsx_chip *chip, u16 addr) argument
334 spi_read_eeprom(struct rtsx_chip *chip, u16 addr, u8 *val) argument
372 spi_write_eeprom(struct rtsx_chip *chip, u16 addr, u8 val) argument
408 spi_get_status(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
421 spi_set_parameter(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
441 spi_read_flash_id(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
524 spi_read_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
617 spi_write_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
792 spi_erase_flash(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
835 spi_write_flash_status(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
[all...]
H A Dsd.c60 static inline void sd_set_err_code(struct rtsx_chip *chip, u8 err_code) argument
62 struct sd_info *sd_card = &(chip->sd_card);
67 static inline void sd_clr_err_code(struct rtsx_chip *chip) argument
69 struct sd_info *sd_card = &(chip->sd_card);
74 static inline int sd_check_err_code(struct rtsx_chip *chip, u8 err_code) argument
76 struct sd_info *sd_card = &(chip->sd_card);
81 static void sd_init_reg_addr(struct rtsx_chip *chip) argument
109 static int sd_check_data0_status(struct rtsx_chip *chip) argument
113 RTSX_READ_REG(chip, REG_SD_STAT1, &stat);
116 sd_set_err_code(chip, SD_BUS
123 sd_send_cmd_get_rsp(struct rtsx_chip *chip, u8 cmd_idx, u32 arg, u8 rsp_type, u8 *rsp, int rsp_len) argument
271 sd_read_data(struct rtsx_chip *chip, u8 trans_mode, u8 *cmd, int cmd_len, u16 byte_cnt, u16 blk_cnt, u8 bus_width, u8 *buf, int buf_len, int timeout) argument
338 sd_write_data(struct rtsx_chip *chip, u8 trans_mode, u8 *cmd, int cmd_len, u16 byte_cnt, u16 blk_cnt, u8 bus_width, u8 *buf, int buf_len, int timeout) argument
404 sd_check_csd(struct rtsx_chip *chip, char check_wp) argument
508 sd_set_sample_push_timing(struct rtsx_chip *chip) argument
544 sd_choose_proper_clock(struct rtsx_chip *chip) argument
586 sd_set_clock_divider(struct rtsx_chip *chip, u8 clk_div) argument
603 sd_set_init_para(struct rtsx_chip *chip) argument
621 sd_select_card(struct rtsx_chip *chip, int select) argument
646 sd_update_lock_status(struct rtsx_chip *chip) argument
672 sd_wait_state_data_ready(struct rtsx_chip *chip, u8 state, u8 data_ready, int polling_cnt) argument
694 sd_change_bank_voltage(struct rtsx_chip *chip, u8 voltage) argument
726 sd_voltage_switch(struct rtsx_chip *chip) argument
775 sd_reset_dcm(struct rtsx_chip *chip, u8 tune_dir) argument
788 sd_change_phase(struct rtsx_chip *chip, u8 sample_point, u8 tune_dir) argument
878 sd_check_spec(struct rtsx_chip *chip, u8 bus_width) argument
910 sd_query_switch_result(struct rtsx_chip *chip, u8 func_group, u8 func_to_switch, u8 *buf, int buf_len) argument
1023 sd_check_switch_mode(struct rtsx_chip *chip, u8 mode, u8 func_group, u8 func_to_switch, u8 bus_width) argument
1119 sd_check_switch(struct rtsx_chip *chip, u8 func_group, u8 func_to_switch, u8 bus_width) argument
1163 sd_switch_function(struct rtsx_chip *chip, u8 bus_width) argument
1326 sd_wait_data_idle(struct rtsx_chip *chip) argument
1345 sd_sdr_tuning_rx_cmd(struct rtsx_chip *chip, u8 sample_point) argument
1372 sd_ddr_tuning_rx_cmd(struct rtsx_chip *chip, u8 sample_point) argument
1407 mmc_ddr_tunning_rx_cmd(struct rtsx_chip *chip, u8 sample_point) argument
1444 sd_sdr_tuning_tx_cmd(struct rtsx_chip *chip, u8 sample_point) argument
1471 sd_ddr_tuning_tx_cmd(struct rtsx_chip *chip, u8 sample_point) argument
1521 sd_search_final_phase(struct rtsx_chip *chip, u32 phase_map, u8 tune_dir) argument
1639 sd_tuning_rx(struct rtsx_chip *chip) argument
1693 sd_ddr_pre_tuning_tx(struct rtsx_chip *chip) argument
1744 sd_tuning_tx(struct rtsx_chip *chip) argument
1800 sd_sdr_tuning(struct rtsx_chip *chip) argument
1815 sd_ddr_tuning(struct rtsx_chip *chip) argument
1843 mmc_ddr_tuning(struct rtsx_chip *chip) argument
1871 sd_switch_clock(struct rtsx_chip *chip) argument
1903 sd_prepare_reset(struct rtsx_chip *chip) argument
1942 sd_pull_ctl_disable(struct rtsx_chip *chip) argument
1968 sd_pull_ctl_enable(struct rtsx_chip *chip) argument
2007 sd_init_power(struct rtsx_chip *chip) argument
2052 sd_dummy_clock(struct rtsx_chip *chip) argument
2061 sd_read_lba0(struct rtsx_chip *chip) argument
2094 sd_check_wp_state(struct rtsx_chip *chip) argument
2141 reset_sd(struct rtsx_chip *chip) argument
2486 mmc_test_switch_bus(struct rtsx_chip *chip, u8 width) argument
2607 mmc_switch_timing_bus(struct rtsx_chip *chip, int switch_ddr) argument
2726 reset_mmc(struct rtsx_chip *chip) argument
2894 reset_sd_card(struct rtsx_chip *chip) argument
2976 reset_mmc_only(struct rtsx_chip *chip) argument
3027 wait_data_buf_ready(struct rtsx_chip *chip) argument
3056 sd_stop_seq_mode(struct rtsx_chip *chip) argument
3081 sd_auto_tune_clock(struct rtsx_chip *chip) argument
3127 sd_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 start_sector, u16 sector_cnt) argument
3414 soft_reset_sd_card(struct rtsx_chip *chip) argument
3419 ext_sd_send_cmd_get_rsp(struct rtsx_chip *chip, u8 cmd_idx, u32 arg, u8 rsp_type, u8 *rsp, int rsp_len, int special_check) argument
3547 ext_sd_get_rsp(struct rtsx_chip *chip, int len, u8 *rsp, u8 rsp_type) argument
3589 sd_pass_thru_mode(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
3699 sd_execute_no_data(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
3810 sd_execute_read_data(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
4039 sd_execute_write_data(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
4376 sd_get_cmd_rsp(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
4415 sd_hw_rst(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
4479 sd_cleanup_work(struct rtsx_chip *chip) argument
4490 sd_power_off_card3v3(struct rtsx_chip *chip) argument
4520 release_sd_card(struct rtsx_chip *chip) argument
[all...]
H A Dms.c34 static inline void ms_set_err_code(struct rtsx_chip *chip, u8 err_code) argument
36 struct ms_info *ms_card = &(chip->ms_card);
41 static inline int ms_check_err_code(struct rtsx_chip *chip, u8 err_code) argument
43 struct ms_info *ms_card = &(chip->ms_card);
48 static int ms_parse_err_code(struct rtsx_chip *chip) argument
50 TRACE_RET(chip, STATUS_FAIL);
53 static int ms_transfer_tpc(struct rtsx_chip *chip, u8 trans_mode, argument
56 struct ms_info *ms_card = &(chip->ms_card);
60 dev_dbg(rtsx_dev(chip), "%s: tpc = 0x%x\n", __func__, tpc);
62 rtsx_init_cmd(chip);
109 ms_transfer_data(struct rtsx_chip *chip, u8 trans_mode, u8 tpc, u16 sec_cnt, u8 cfg, int mode_2k, int use_sg, void *buf, int buf_len) argument
173 ms_write_bytes(struct rtsx_chip *chip, u8 tpc, u8 cnt, u8 cfg, u8 *data, int data_len) argument
238 ms_read_bytes(struct rtsx_chip *chip, u8 tpc, u8 cnt, u8 cfg, u8 *data, int data_len) argument
315 ms_set_rw_reg_addr(struct rtsx_chip *chip, u8 read_start, u8 read_cnt, u8 write_start, u8 write_cnt) argument
337 ms_send_cmd(struct rtsx_chip *chip, u8 cmd, u8 cfg) argument
347 ms_set_init_para(struct rtsx_chip *chip) argument
382 ms_switch_clock(struct rtsx_chip *chip) argument
398 ms_pull_ctl_disable(struct rtsx_chip *chip) argument
425 ms_pull_ctl_enable(struct rtsx_chip *chip) argument
464 ms_prepare_reset(struct rtsx_chip *chip) argument
541 ms_identify_media_type(struct rtsx_chip *chip, int switch_8bit_bus) argument
611 ms_confirm_cpu_startup(struct rtsx_chip *chip) argument
659 ms_switch_parallel_bus(struct rtsx_chip *chip) argument
678 ms_switch_8bit_bus(struct rtsx_chip *chip) argument
712 ms_pro_reset_flow(struct rtsx_chip *chip, int switch_8bit_bus) argument
766 msxc_change_power(struct rtsx_chip *chip, u8 mode) argument
800 ms_read_attribute_info(struct rtsx_chip *chip) argument
1080 reset_ms_pro(struct rtsx_chip *chip) argument
1163 ms_read_status_reg(struct rtsx_chip *chip) argument
1185 ms_read_extra_data(struct rtsx_chip *chip, u16 block_addr, u8 page_num, u8 *buf, int buf_len) argument
1265 ms_write_extra_data(struct rtsx_chip *chip, u16 block_addr, u8 page_num, u8 *buf, int buf_len) argument
1323 ms_read_page(struct rtsx_chip *chip, u16 block_addr, u8 page_num) argument
1393 ms_set_bad_block(struct rtsx_chip *chip, u16 phy_blk) argument
1452 ms_erase_block(struct rtsx_chip *chip, u16 phy_blk) argument
1531 ms_init_page(struct rtsx_chip *chip, u16 phy_blk, u16 log_blk, u8 start_page, u8 end_page) argument
1559 ms_copy_page(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, u16 log_blk, u8 start_page, u8 end_page) argument
1806 reset_ms(struct rtsx_chip *chip) argument
2010 ms_init_l2p_tbl(struct rtsx_chip *chip) argument
2071 ms_get_l2p_tbl(struct rtsx_chip *chip, int seg_no, u16 log_off) argument
2087 ms_set_l2p_tbl(struct rtsx_chip *chip, int seg_no, u16 log_off, u16 phy_blk) argument
2101 ms_set_unused_block(struct rtsx_chip *chip, u16 phy_blk) argument
2117 ms_get_unused_block(struct rtsx_chip *chip, int seg_no) argument
2143 ms_arbitrate_l2p(struct rtsx_chip *chip, u16 phy_blk, u16 log_off, u8 us1, u8 us2) argument
2186 ms_build_l2p_tbl(struct rtsx_chip *chip, int seg_no) argument
2406 reset_ms_card(struct rtsx_chip *chip) argument
2452 mspro_set_rw_cmd(struct rtsx_chip *chip, u32 start_sec, u16 sec_cnt, u8 cmd) argument
2480 mspro_stop_seq_mode(struct rtsx_chip *chip) argument
2498 ms_auto_tune_clock(struct rtsx_chip *chip) argument
2520 mspro_rw_multi_sector(struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 start_sector, u16 sector_cnt) argument
2652 mspro_read_format_progress(struct rtsx_chip *chip, const int short_data_len) argument
2765 mspro_polling_format_status(struct rtsx_chip *chip) argument
2782 mspro_format(struct scsi_cmnd *srb, struct rtsx_chip *chip, int short_data_len, int quick_format) argument
2857 ms_read_multiple_pages(struct rtsx_chip *chip, u16 phy_blk, u16 log_blk, u8 start_page, u8 end_page, u8 *buf, unsigned int *index, unsigned int *offset) argument
3019 ms_write_multiple_pages(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, u16 log_blk, u8 start_page, u8 end_page, u8 *buf, unsigned int *index, unsigned int *offset) argument
3212 ms_finish_write(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, u16 log_blk, u8 page_off) argument
3239 ms_prepare_write(struct rtsx_chip *chip, u16 old_blk, u16 new_blk, u16 log_blk, u8 start_page) argument
3255 ms_delay_write(struct rtsx_chip *chip) argument
3280 ms_rw_fail(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
3289 ms_rw_multi_sector(struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 start_sector, u16 sector_cnt) argument
3533 ms_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 start_sector, u16 sector_cnt) argument
3550 ms_free_l2p_tbl(struct rtsx_chip *chip) argument
3574 ms_poll_int(struct rtsx_chip *chip) argument
3596 check_ms_err(struct rtsx_chip *chip) argument
3617 check_ms_err(struct rtsx_chip *chip) argument
3632 mg_send_ex_cmd(struct rtsx_chip *chip, u8 cmd, u8 entry_num) argument
3663 mg_set_tpc_para_sub(struct rtsx_chip *chip, int type, u8 mg_entry_num) argument
3693 mg_set_leaf_id(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
3737 mg_get_local_EKB(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
3786 mg_chg(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
3861 mg_get_rsp_chg(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
3915 mg_rsp(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
3962 mg_get_ICV(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
4012 mg_set_ICV(struct scsi_cmnd *srb, struct rtsx_chip *chip) argument
4116 ms_cleanup_work(struct rtsx_chip *chip) argument
4140 ms_power_off_card3v3(struct rtsx_chip *chip) argument
4166 release_ms_card(struct rtsx_chip *chip) argument
[all...]
H A Dxd.c34 static int xd_build_l2p_tbl(struct rtsx_chip *chip, int zone_no);
35 static int xd_init_page(struct rtsx_chip *chip, u32 phy_blk, u16 logoff,
38 static inline void xd_set_err_code(struct rtsx_chip *chip, u8 err_code) argument
40 struct xd_info *xd_card = &(chip->xd_card);
45 static inline int xd_check_err_code(struct rtsx_chip *chip, u8 err_code) argument
47 struct xd_info *xd_card = &(chip->xd_card);
52 static int xd_set_init_para(struct rtsx_chip *chip) argument
54 struct xd_info *xd_card = &(chip->xd_card);
57 if (chip->asic_code)
62 retval = switch_clock(chip, xd_car
69 xd_switch_clock(struct rtsx_chip *chip) argument
85 xd_read_id(struct rtsx_chip *chip, u8 id_cmd, u8 *id_buf, u8 buf_len) argument
115 xd_assign_phy_addr(struct rtsx_chip *chip, u32 addr, u8 mode) argument
147 xd_read_redundant(struct rtsx_chip *chip, u32 page_addr, u8 *buf, int buf_len) argument
184 xd_read_data_from_ppb(struct rtsx_chip *chip, int offset, u8 *buf, int buf_len) argument
209 xd_read_cis(struct rtsx_chip *chip, u32 page_addr, u8 *buf, int buf_len) argument
296 xd_fill_pull_ctl_disable(struct rtsx_chip *chip) argument
325 xd_fill_pull_ctl_stage1_barossa(struct rtsx_chip *chip) argument
335 xd_fill_pull_ctl_enable(struct rtsx_chip *chip) argument
364 xd_pull_ctl_disable(struct rtsx_chip *chip) argument
390 reset_xd(struct rtsx_chip *chip) argument
734 xd_init_l2p_tbl(struct rtsx_chip *chip) argument
783 xd_set_unused_block(struct rtsx_chip *chip, u32 phy_blk) argument
818 xd_get_unused_block(struct rtsx_chip *chip, int zone_no) argument
856 xd_set_l2p_tbl(struct rtsx_chip *chip, int zone_no, u16 log_off, u16 phy_off) argument
866 xd_get_l2p_tbl(struct rtsx_chip *chip, int zone_no, u16 log_off) argument
914 reset_xd_card(struct rtsx_chip *chip) argument
944 xd_mark_bad_block(struct rtsx_chip *chip, u32 phy_blk) argument
995 xd_init_page(struct rtsx_chip *chip, u32 phy_blk, u16 logoff, u8 start_page, u8 end_page) argument
1049 xd_copy_page(struct rtsx_chip *chip, u32 old_blk, u32 new_blk, u8 start_page, u8 end_page) argument
1160 xd_reset_cmd(struct rtsx_chip *chip) argument
1185 xd_erase_block(struct rtsx_chip *chip, u32 phy_blk) argument
1241 xd_build_l2p_tbl(struct rtsx_chip *chip, int zone_no) argument
1430 xd_send_cmd(struct rtsx_chip *chip, u8 cmd) argument
1449 xd_read_multiple_pages(struct rtsx_chip *chip, u32 phy_blk, u32 log_blk, u8 start_page, u8 end_page, u8 *buf, unsigned int *index, unsigned int *offset) argument
1569 xd_finish_write(struct rtsx_chip *chip, u32 old_blk, u32 new_blk, u32 log_blk, u8 page_off) argument
1626 xd_prepare_write(struct rtsx_chip *chip, u32 old_blk, u32 new_blk, u32 log_blk, u8 page_off) argument
1644 xd_write_multiple_pages(struct rtsx_chip *chip, u32 old_blk, u32 new_blk, u32 log_blk, u8 start_page, u8 end_page, u8 *buf, unsigned int *index, unsigned int *offset) argument
1743 xd_delay_write(struct rtsx_chip *chip) argument
1768 xd_rw(struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 start_sector, u16 sector_cnt) argument
2013 xd_free_l2p_tbl(struct rtsx_chip *chip) argument
2034 xd_cleanup_work(struct rtsx_chip *chip) argument
2047 xd_power_off_card3v3(struct rtsx_chip *chip) argument
2076 release_xd_card(struct rtsx_chip *chip) argument
[all...]
/drivers/input/misc/
H A Dmax8997_haptic.c70 static int max8997_haptic_set_duty_cycle(struct max8997_haptic *chip) argument
74 if (chip->mode == MAX8997_EXTERNAL_MODE) {
75 unsigned int duty = chip->pwm_period * chip->level / 100;
76 ret = pwm_config(chip->pwm, duty, chip->pwm_period);
82 if (chip->level <= i * 100 / 64) {
87 switch (chip->internal_mode_pattern) {
89 max8997_write_reg(chip->client,
93 max8997_write_reg(chip
111 max8997_haptic_configure(struct max8997_haptic *chip) argument
171 max8997_haptic_enable(struct max8997_haptic *chip) argument
205 max8997_haptic_disable(struct max8997_haptic *chip) argument
222 struct max8997_haptic *chip = local
234 struct max8997_haptic *chip = input_get_drvdata(dev); local
247 struct max8997_haptic *chip = input_get_drvdata(dev); local
260 struct max8997_haptic *chip; local
368 struct max8997_haptic *chip = platform_get_drvdata(pdev); local
385 struct max8997_haptic *chip = platform_get_drvdata(pdev); local
[all...]
/drivers/gpio/
H A Dgpio-ml-ioh.c109 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); local
112 spin_lock_irqsave(&chip->spinlock, flags);
113 reg_val = ioread32(&chip->reg->regs[chip->ch].po);
119 iowrite32(reg_val, &chip->reg->regs[chip->ch].po);
120 spin_unlock_irqrestore(&chip->spinlock, flags);
125 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); local
127 return ioread32(&chip->reg->regs[chip
133 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); local
158 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); local
176 ioh_gpio_save_reg_conf(struct ioh_gpio *chip) argument
202 ioh_gpio_restore_reg_conf(struct ioh_gpio *chip) argument
228 struct ioh_gpio *chip = container_of(gpio, struct ioh_gpio, gpio); local
232 ioh_gpio_setup(struct ioh_gpio *chip, int num_port) argument
260 struct ioh_gpio *chip = gc->private; local
321 struct ioh_gpio *chip = gc->private; local
330 struct ioh_gpio *chip = gc->private; local
339 struct ioh_gpio *chip = gc->private; local
353 struct ioh_gpio *chip = gc->private; local
366 struct ioh_gpio *chip = dev_id; local
388 ioh_gpio_alloc_generic_chip(struct ioh_gpio *chip, unsigned int irq_start, unsigned int num) argument
414 struct ioh_gpio *chip; local
522 struct ioh_gpio *chip = pci_get_drvdata(pdev); local
545 struct ioh_gpio *chip = pci_get_drvdata(pdev); local
569 struct ioh_gpio *chip = pci_get_drvdata(pdev); local
[all...]
H A Dgpio-sx150x.c124 static inline bool offset_is_oscio(struct sx150x_chip *chip, unsigned offset) argument
126 return (chip->dev_cfg->ngpios == offset);
157 static s32 sx150x_write_cfg(struct sx150x_chip *chip, argument
166 err = sx150x_i2c_read(chip->client, reg, &data);
172 return sx150x_i2c_write(chip->client, reg, data);
175 static int sx150x_get_io(struct sx150x_chip *chip, unsigned offset) argument
177 u8 reg = chip->dev_cfg->reg_data;
184 err = sx150x_i2c_read(chip->client, reg, &data);
191 static void sx150x_set_oscio(struct sx150x_chip *chip, int val) argument
193 sx150x_i2c_write(chip
198 sx150x_set_io(struct sx150x_chip *chip, unsigned offset, int val) argument
207 sx150x_io_input(struct sx150x_chip *chip, unsigned offset) argument
216 sx150x_io_output(struct sx150x_chip *chip, unsigned offset, int val) argument
236 struct sx150x_chip *chip; local
252 struct sx150x_chip *chip; local
266 struct sx150x_chip *chip; local
283 struct sx150x_chip *chip; local
298 struct sx150x_chip *chip; local
313 struct sx150x_chip *chip = irq_data_get_irq_chip_data(d); local
323 struct sx150x_chip *chip = irq_data_get_irq_chip_data(d); local
333 struct sx150x_chip *chip = irq_data_get_irq_chip_data(d); local
354 struct sx150x_chip *chip = (struct sx150x_chip *)dev_id; local
386 struct sx150x_chip *chip = irq_data_get_irq_chip_data(d); local
393 struct sx150x_chip *chip = irq_data_get_irq_chip_data(d); local
422 sx150x_init_chip(struct sx150x_chip *chip, struct i2c_client *client, kernel_ulong_t driver_data, struct sx150x_platform_data *pdata) argument
458 sx150x_init_io(struct sx150x_chip *chip, u8 base, u16 cfg) argument
468 sx150x_reset(struct sx150x_chip *chip) argument
484 sx150x_init_hw(struct sx150x_chip *chip, struct sx150x_platform_data *pdata) argument
527 sx150x_install_irq_chip(struct sx150x_chip *chip, int irq_summary, int irq_base) argument
565 sx150x_remove_irq_chip(struct sx150x_chip *chip) argument
582 struct sx150x_chip *chip; local
624 struct sx150x_chip *chip; local
[all...]
H A Dgpio-74x164.c34 static int __gen_74x164_write_config(struct gen_74x164_chip *chip) argument
36 struct spi_device *spi = to_spi_device(chip->gpio_chip.dev);
41 msg_buf = kzalloc(chip->registers * sizeof(struct spi_transfer),
56 for (i = chip->registers - 1; i >= 0; i--) {
57 msg_buf[i].tx_buf = chip->buffer + i;
71 struct gen_74x164_chip *chip = gpio_to_74x164_chip(gc); local
76 mutex_lock(&chip->lock);
77 ret = (chip->buffer[bank] >> pin) & 0x1;
78 mutex_unlock(&chip->lock);
86 struct gen_74x164_chip *chip local
109 struct gen_74x164_chip *chip; local
169 struct gen_74x164_chip *chip = spi_get_drvdata(spi); local
[all...]
H A Dgpio-xilinx.c43 * struct of_mm_gpio_chip mmchip: OF GPIO chip for memory mapped banks
68 struct xgpio_instance *chip = local
71 void __iomem *regs = mm_gc->regs + chip->offset;
89 struct xgpio_instance *chip = local
93 spin_lock_irqsave(&chip->gpio_lock, flags);
97 chip->gpio_state |= BIT(gpio);
99 chip->gpio_state &= ~BIT(gpio);
101 xgpio_writereg(regs + chip->offset + XGPIO_DATA_OFFSET,
102 chip->gpio_state);
104 spin_unlock_irqrestore(&chip
120 struct xgpio_instance *chip = local
149 struct xgpio_instance *chip = local
178 struct xgpio_instance *chip = local
197 struct xgpio_instance *chip; local
[all...]
H A Dgpio-pca953x.c78 #define NBANK(chip) (chip->gpio_chip.ngpio / BANK_SZ)
105 static int pca953x_read_single(struct pca953x_chip *chip, int reg, u32 *val, argument
109 int bank_shift = fls((chip->gpio_chip.ngpio - 1) / BANK_SZ);
112 ret = i2c_smbus_read_byte_data(chip->client,
117 dev_err(&chip->client->dev, "failed reading register\n");
124 static int pca953x_write_single(struct pca953x_chip *chip, int reg, u32 val, argument
128 int bank_shift = fls((chip->gpio_chip.ngpio - 1) / BANK_SZ);
131 ret = i2c_smbus_write_byte_data(chip->client,
135 dev_err(&chip
142 pca953x_write_regs(struct pca953x_chip *chip, int reg, u8 *val) argument
179 pca953x_read_regs(struct pca953x_chip *chip, int reg, u8 *val) argument
207 struct pca953x_chip *chip = to_pca(gc); local
236 struct pca953x_chip *chip = to_pca(gc); local
286 struct pca953x_chip *chip = to_pca(gc); local
314 struct pca953x_chip *chip = to_pca(gc); local
343 pca953x_setup_gpio(struct pca953x_chip *chip, int gpios) argument
367 struct pca953x_chip *chip = to_pca(gc); local
375 struct pca953x_chip *chip = to_pca(gc); local
383 struct pca953x_chip *chip = to_pca(gc); local
391 struct pca953x_chip *chip = to_pca(gc); local
414 struct pca953x_chip *chip = to_pca(gc); local
446 pca953x_irq_pending(struct pca953x_chip *chip, u8 *pending) argument
494 struct pca953x_chip *chip = devid; local
516 pca953x_irq_setup(struct pca953x_chip *chip, const struct i2c_device_id *id, int irq_base) argument
576 pca953x_irq_setup(struct pca953x_chip *chip, const struct i2c_device_id *id, int irq_base) argument
589 device_pca953x_init(struct pca953x_chip *chip, u32 invert) argument
614 device_pca957x_init(struct pca953x_chip *chip, u32 invert) argument
646 struct pca953x_chip *chip; local
707 struct pca953x_chip *chip = i2c_get_clientdata(client); local
[all...]
H A Dgpio-max732x.c145 static int max732x_writeb(struct max732x_chip *chip, int group_a, uint8_t val) argument
150 client = group_a ? chip->client_group_a : chip->client_group_b;
160 static int max732x_readb(struct max732x_chip *chip, int group_a, uint8_t *val) argument
165 client = group_a ? chip->client_group_a : chip->client_group_b;
176 static inline int is_group_a(struct max732x_chip *chip, unsigned off) argument
178 return (1u << off) & chip->mask_group_a;
183 struct max732x_chip *chip; local
187 chip
198 struct max732x_chip *chip; local
224 struct max732x_chip *chip; local
248 struct max732x_chip *chip; local
264 max732x_writew(struct max732x_chip *chip, uint16_t val) argument
279 max732x_readw(struct max732x_chip *chip, uint16_t *val) argument
293 max732x_irq_update_mask(struct max732x_chip *chip) argument
324 struct max732x_chip *chip; local
332 struct max732x_chip *chip = irq_data_get_irq_chip_data(d); local
339 struct max732x_chip *chip = irq_data_get_irq_chip_data(d); local
346 struct max732x_chip *chip = irq_data_get_irq_chip_data(d); local
354 struct max732x_chip *chip = irq_data_get_irq_chip_data(d); local
362 struct max732x_chip *chip = irq_data_get_irq_chip_data(d); local
400 max732x_irq_pending(struct max732x_chip *chip) argument
433 struct max732x_chip *chip = devid; local
452 max732x_irq_setup(struct max732x_chip *chip, const struct i2c_device_id *id) argument
505 max732x_irq_teardown(struct max732x_chip *chip) argument
511 max732x_irq_setup(struct max732x_chip *chip, const struct i2c_device_id *id) argument
524 max732x_irq_teardown(struct max732x_chip *chip) argument
529 max732x_setup_gpio(struct max732x_chip *chip, const struct i2c_device_id *id, unsigned gpio_start) argument
581 struct max732x_chip *chip; local
666 struct max732x_chip *chip = i2c_get_clientdata(client); local
[all...]
H A Dgpio-cs5535.c46 struct gpio_chip chip; member in struct:cs5535_gpio_chip
59 static void errata_outl(struct cs5535_gpio_chip *chip, u32 val, argument
62 unsigned long addr = chip->base + 0x80 + reg;
82 static void __cs5535_gpio_set(struct cs5535_gpio_chip *chip, unsigned offset, argument
87 outl(1 << offset, chip->base + reg);
90 errata_outl(chip, 1 << (offset - 16), reg);
95 struct cs5535_gpio_chip *chip = &cs5535_gpio_chip; local
98 spin_lock_irqsave(&chip->lock, flags);
99 __cs5535_gpio_set(chip, offset, reg);
100 spin_unlock_irqrestore(&chip
104 __cs5535_gpio_clear(struct cs5535_gpio_chip *chip, unsigned offset, unsigned int reg) argument
117 struct cs5535_gpio_chip *chip = &cs5535_gpio_chip; local
128 struct cs5535_gpio_chip *chip = &cs5535_gpio_chip; local
166 struct cs5535_gpio_chip *chip = &cs5535_gpio_chip; local
204 struct cs5535_gpio_chip *chip = local
230 chip_gpio_get(struct gpio_chip *chip, unsigned offset) argument
235 chip_gpio_set(struct gpio_chip *chip, unsigned offset, int val) argument
245 struct cs5535_gpio_chip *chip = local
259 struct cs5535_gpio_chip *chip = local
[all...]
/drivers/mmc/host/
H A Dsdhci-pci-o2micro.c24 static void o2_pci_set_baseclk(struct sdhci_pci_chip *chip, u32 value) argument
27 pci_read_config_dword(chip->pdev,
33 pci_write_config_dword(chip->pdev,
37 static void o2_pci_led_enable(struct sdhci_pci_chip *chip) argument
43 ret = pci_read_config_dword(chip->pdev,
49 pci_write_config_dword(chip->pdev,
52 ret = pci_read_config_dword(chip->pdev,
58 pci_write_config_dword(chip->pdev,
63 void sdhci_pci_o2_fujin2_pci_init(struct sdhci_pci_chip *chip) argument
68 ret = pci_read_config_dword(chip
154 struct sdhci_pci_chip *chip; local
186 sdhci_pci_o2_probe(struct sdhci_pci_chip *chip) argument
392 sdhci_pci_o2_resume(struct sdhci_pci_chip *chip) argument
[all...]
/drivers/pinctrl/
H A Dpinctrl-coh901.h1 int u300_gpio_config_get(struct gpio_chip *chip,
4 int u300_gpio_config_set(struct gpio_chip *chip, unsigned offset,
/drivers/mfd/
H A D88pm80x.c21 /* 88pm80x chips have same definition for chip id register. */
32 /* 88PM800 chip id number */
34 /* 88PM805 chip id number */
41 * pm800 and pm805. would remove it after HW chip fixes the issue.
54 struct pm80x_chip *chip; local
59 chip =
61 if (!chip)
72 chip->client = client;
73 chip->regmap = map;
75 chip
137 struct pm80x_chip *chip = i2c_get_clientdata(client); local
149 struct pm80x_chip *chip = i2c_get_clientdata(client); local
[all...]
/drivers/input/keyboard/
H A Dtca6416-keypad.c57 static int tca6416_write_reg(struct tca6416_keypad_chip *chip, int reg, u16 val) argument
61 error = chip->io_size > 8 ?
62 i2c_smbus_write_word_data(chip->client, reg << 1, val) :
63 i2c_smbus_write_byte_data(chip->client, reg, val);
65 dev_err(&chip->client->dev,
74 static int tca6416_read_reg(struct tca6416_keypad_chip *chip, int reg, u16 *val) argument
78 retval = chip->io_size > 8 ?
79 i2c_smbus_read_word_data(chip->client, reg << 1) :
80 i2c_smbus_read_byte_data(chip->client, reg);
82 dev_err(&chip
91 tca6416_keys_scan(struct tca6416_keypad_chip *chip) argument
128 struct tca6416_keypad_chip *chip = dev_id; local
137 struct tca6416_keypad_chip *chip = local
146 struct tca6416_keypad_chip *chip = input_get_drvdata(dev); local
161 struct tca6416_keypad_chip *chip = input_get_drvdata(dev); local
169 tca6416_setup_registers(struct tca6416_keypad_chip *chip) argument
204 struct tca6416_keypad_chip *chip; local
318 struct tca6416_keypad_chip *chip = i2c_get_clientdata(client); local
335 struct tca6416_keypad_chip *chip = i2c_get_clientdata(client); local
346 struct tca6416_keypad_chip *chip = i2c_get_clientdata(client); local
[all...]
/drivers/misc/
H A Dapds990x.c117 /* Reverse chip factors for threshold calculation */
201 static int apds990x_read_byte(struct apds990x_chip *chip, u8 reg, u8 *data) argument
203 struct i2c_client *client = chip->client;
214 static int apds990x_read_word(struct apds990x_chip *chip, u8 reg, u16 *data) argument
216 struct i2c_client *client = chip->client;
227 static int apds990x_write_byte(struct apds990x_chip *chip, u8 reg, u8 data) argument
229 struct i2c_client *client = chip->client;
239 static int apds990x_write_word(struct apds990x_chip *chip, u8 reg, u16 data) argument
241 struct i2c_client *client = chip->client;
251 static int apds990x_mode_on(struct apds990x_chip *chip) argument
263 apds990x_lux_to_threshold(struct apds990x_chip *chip, u32 lux) argument
321 apds990x_set_atime(struct apds990x_chip *chip, u32 time_ms) argument
334 apds990x_refresh_pthres(struct apds990x_chip *chip, int data) argument
359 apds990x_refresh_athres(struct apds990x_chip *chip) argument
375 apds990x_force_a_refresh(struct apds990x_chip *chip) argument
383 apds990x_force_p_refresh(struct apds990x_chip *chip) argument
391 apds990x_calc_again(struct apds990x_chip *chip) argument
446 apds990x_get_lux(struct apds990x_chip *chip, int clear, int ir) argument
467 apds990x_ack_int(struct apds990x_chip *chip, u8 mode) argument
491 struct apds990x_chip *chip = data; local
551 apds990x_configure(struct apds990x_chip *chip) argument
581 apds990x_detect(struct apds990x_chip *chip) argument
613 apds990x_chip_on(struct apds990x_chip *chip) argument
630 apds990x_chip_off(struct apds990x_chip *chip) argument
640 struct apds990x_chip *chip = dev_get_drvdata(dev); local
688 struct apds990x_chip *chip = dev_get_drvdata(dev); local
697 struct apds990x_chip *chip = dev_get_drvdata(dev); local
727 struct apds990x_chip *chip = dev_get_drvdata(dev); local
731 apds990x_set_arate(struct apds990x_chip *chip, int rate) argument
760 struct apds990x_chip *chip = dev_get_drvdata(dev); local
786 struct apds990x_chip *chip = dev_get_drvdata(dev); local
809 struct apds990x_chip *chip = dev_get_drvdata(dev); local
817 struct apds990x_chip *chip = dev_get_drvdata(dev); local
849 struct apds990x_chip *chip = dev_get_drvdata(dev); local
858 struct apds990x_chip *chip = dev_get_drvdata(dev); local
886 struct apds990x_chip *chip = dev_get_drvdata(dev); local
893 struct apds990x_chip *chip = dev_get_drvdata(dev); local
897 apds990x_set_lux_thresh(struct apds990x_chip *chip, u32 *target, const char *buf) argument
927 struct apds990x_chip *chip = dev_get_drvdata(dev); local
938 struct apds990x_chip *chip = dev_get_drvdata(dev); local
956 struct apds990x_chip *chip = dev_get_drvdata(dev); local
964 struct apds990x_chip *chip = dev_get_drvdata(dev); local
999 struct apds990x_chip *chip = dev_get_drvdata(dev); local
1028 struct apds990x_chip *chip = dev_get_drvdata(dev); local
1061 struct apds990x_chip *chip; local
1194 struct apds990x_chip *chip = i2c_get_clientdata(client); local
1219 struct apds990x_chip *chip = i2c_get_clientdata(client); local
1228 struct apds990x_chip *chip = i2c_get_clientdata(client); local
1244 struct apds990x_chip *chip = i2c_get_clientdata(client); local
1253 struct apds990x_chip *chip = i2c_get_clientdata(client); local
[all...]
H A Dbh1770glc.c177 * Supported stand alone rates in ms from chip data sheet
187 * Supported stand alone rates in ms from chip data sheet
193 * interrupt control functions are called while keeping chip->mutex
196 static inline int bh1770_lux_interrupt_control(struct bh1770_chip *chip, argument
199 chip->int_mode_lux = lux;
201 return i2c_smbus_write_byte_data(chip->client,
203 (lux << 1) | chip->int_mode_prox);
206 static inline int bh1770_prox_interrupt_control(struct bh1770_chip *chip, argument
209 chip->int_mode_prox = ps;
210 return i2c_smbus_write_byte_data(chip
216 bh1770_lux_rate(struct bh1770_chip *chip, int rate_index) argument
231 bh1770_prox_rate(struct bh1770_chip *chip, int mode) argument
244 bh1770_led_cfg(struct bh1770_chip *chip) argument
260 bh1770_psraw_to_adjusted(struct bh1770_chip *chip, u8 psraw) argument
270 bh1770_psadjusted_to_raw(struct bh1770_chip *chip, u8 ps) argument
288 bh1770_prox_set_threshold(struct bh1770_chip *chip) argument
303 bh1770_lux_raw_to_adjusted(struct bh1770_chip *chip, u16 raw) argument
310 bh1770_lux_adjusted_to_raw(struct bh1770_chip *chip, u16 adjusted) argument
317 bh1770_lux_update_thresholds(struct bh1770_chip *chip, u16 threshold_hi, u16 threshold_lo) argument
357 bh1770_lux_get_result(struct bh1770_chip *chip) argument
377 bh1770_get_corr_value(struct bh1770_chip *chip) argument
389 bh1770_lux_read_result(struct bh1770_chip *chip) argument
399 bh1770_chip_on(struct bh1770_chip *chip) argument
430 bh1770_chip_off(struct bh1770_chip *chip) argument
442 bh1770_prox_mode_control(struct bh1770_chip *chip) argument
465 bh1770_prox_read_result(struct bh1770_chip *chip) argument
522 bh1770_detect(struct bh1770_chip *chip) argument
576 struct bh1770_chip *chip = local
587 struct bh1770_chip *chip = data; local
650 struct bh1770_chip *chip = dev_get_drvdata(dev); local
698 struct bh1770_chip *chip = dev_get_drvdata(dev); local
728 struct bh1770_chip *chip = dev_get_drvdata(dev); local
759 struct bh1770_chip *chip = dev_get_drvdata(dev); local
771 struct bh1770_chip *chip = dev_get_drvdata(dev); local
803 struct bh1770_chip *chip = dev_get_drvdata(dev); local
810 struct bh1770_chip *chip = dev_get_drvdata(dev); local
828 struct bh1770_chip *chip = dev_get_drvdata(dev); local
846 struct bh1770_chip *chip = dev_get_drvdata(dev); local
863 struct bh1770_chip *chip = dev_get_drvdata(dev); local
871 struct bh1770_chip *chip = dev_get_drvdata(dev); local
894 struct bh1770_chip *chip = dev_get_drvdata(dev); local
903 struct bh1770_chip *chip = dev_get_drvdata(dev); local
922 struct bh1770_chip *chip = dev_get_drvdata(dev); local
930 struct bh1770_chip *chip = dev_get_drvdata(dev); local
949 struct bh1770_chip *chip = dev_get_drvdata(dev); local
962 struct bh1770_chip *chip = dev_get_drvdata(dev); local
975 struct bh1770_chip *chip = dev_get_drvdata(dev); local
1018 struct bh1770_chip *chip = dev_get_drvdata(dev); local
1026 struct bh1770_chip *chip = dev_get_drvdata(dev); local
1052 struct bh1770_chip *chip = dev_get_drvdata(dev); local
1059 struct bh1770_chip *chip = dev_get_drvdata(dev); local
1063 bh1770_set_lux_thresh(struct bh1770_chip *chip, u16 *target, const char *buf) argument
1095 struct bh1770_chip *chip = dev_get_drvdata(dev); local
1106 struct bh1770_chip *chip = dev_get_drvdata(dev); local
1185 struct bh1770_chip *chip; local
1302 struct bh1770_chip *chip = i2c_get_clientdata(client); local
1327 struct bh1770_chip *chip = i2c_get_clientdata(client); local
1337 struct bh1770_chip *chip = i2c_get_clientdata(client); local
1365 struct bh1770_chip *chip = i2c_get_clientdata(client); local
1375 struct bh1770_chip *chip = i2c_get_clientdata(client); local
[all...]
/drivers/power/
H A Dmax17040_battery.c60 struct max17040_chip *chip = container_of(psy, local
65 val->intval = chip->status;
68 val->intval = chip->online;
71 val->intval = chip->vcell;
74 val->intval = chip->soc;
114 struct max17040_chip *chip = i2c_get_clientdata(client); local
121 chip->vcell = (msb << 4) + (lsb >> 4);
126 struct max17040_chip *chip = i2c_get_clientdata(client); local
133 chip->soc = msb;
149 struct max17040_chip *chip local
159 struct max17040_chip *chip = i2c_get_clientdata(client); local
182 struct max17040_chip *chip; local
205 struct max17040_chip *chip; local
243 struct max17040_chip *chip = i2c_get_clientdata(client); local
255 struct max17040_chip *chip = i2c_get_clientdata(client); local
264 struct max17040_chip *chip = i2c_get_clientdata(client); local
[all...]
/drivers/iio/light/
H A Dtsl2563.c140 static int tsl2563_set_power(struct tsl2563_chip *chip, int on) argument
142 struct i2c_client *client = chip->client;
154 static int tsl2563_get_power(struct tsl2563_chip *chip) argument
156 struct i2c_client *client = chip->client;
166 static int tsl2563_configure(struct tsl2563_chip *chip) argument
170 ret = i2c_smbus_write_byte_data(chip->client,
172 chip->gainlevel->gaintime);
175 ret = i2c_smbus_write_byte_data(chip->client,
177 chip->high_thres & 0xFF);
180 ret = i2c_smbus_write_byte_data(chip
203 struct tsl2563_chip *chip = local
208 tsl2563_detect(struct tsl2563_chip *chip) argument
223 tsl2563_read_id(struct tsl2563_chip *chip, u8 *id) argument
271 tsl2563_wait_adc(struct tsl2563_chip *chip) argument
292 tsl2563_adjust_gainlevel(struct tsl2563_chip *chip, u16 adc) argument
313 tsl2563_get_adc(struct tsl2563_chip *chip) argument
461 struct tsl2563_chip *chip = iio_priv(indio_dev); local
483 struct tsl2563_chip *chip = iio_priv(indio_dev); local
575 struct tsl2563_chip *chip = iio_priv(indio_dev); local
596 struct tsl2563_chip *chip = iio_priv(indio_dev); local
626 struct tsl2563_chip *chip = iio_priv(dev_info); local
644 struct tsl2563_chip *chip = iio_priv(indio_dev); local
686 struct tsl2563_chip *chip = iio_priv(indio_dev); local
719 struct tsl2563_chip *chip; local
816 struct tsl2563_chip *chip = i2c_get_clientdata(client); local
835 struct tsl2563_chip *chip = i2c_get_clientdata(to_i2c_client(dev)); local
853 struct tsl2563_chip *chip = i2c_get_clientdata(to_i2c_client(dev)); local
[all...]
/drivers/leds/
H A Dleds-lm3642.c2 * Simple driver for Texas Instruments LM3642 LED Flash driver chip
95 /* chip initialize */
96 static int lm3642_chip_init(struct lm3642_chip_data *chip) argument
99 struct lm3642_platform_data *pdata = chip->pdata;
102 ret = regmap_update_bits(chip->regmap, REG_ENABLE, EX_PIN_ENABLE_MASK,
105 dev_err(chip->dev, "Failed to update REG_ENABLE Register\n");
109 /* chip control */
110 static int lm3642_control(struct lm3642_chip_data *chip, argument
115 ret = regmap_read(chip->regmap, REG_FLAG, &chip
184 struct lm3642_chip_data *chip = local
214 struct lm3642_chip_data *chip = local
225 struct lm3642_chip_data *chip = local
241 struct lm3642_chip_data *chip = local
271 struct lm3642_chip_data *chip = local
282 struct lm3642_chip_data *chip = local
292 struct lm3642_chip_data *chip = local
303 struct lm3642_chip_data *chip = local
332 struct lm3642_chip_data *chip; local
427 struct lm3642_chip_data *chip = i2c_get_clientdata(client); local
[all...]

Completed in 537 milliseconds

1234567891011>>