Home
last modified time | relevance | path

Searched defs:chip (Results 1 – 25 of 716) sorted by relevance

12345678910>>...29

/drivers/net/wireless/zydas/zd1211rw/
Dzd_chip.c34 void zd_chip_init(struct zd_chip *chip, in zd_chip_init()
44 void zd_chip_clear(struct zd_chip *chip) in zd_chip_clear()
53 static int scnprint_mac_oui(struct zd_chip *chip, char *buffer, size_t size) in scnprint_mac_oui()
61 static int scnprint_id(struct zd_chip *chip, char *buffer, size_t size) in scnprint_id()
81 static void print_id(struct zd_chip *chip) in print_id()
105 int zd_ioread32v_locked(struct zd_chip *chip, u32 *values, const zd_addr_t *addr, in zd_ioread32v_locked()
144 static int _zd_iowrite32v_async_locked(struct zd_chip *chip, in _zd_iowrite32v_async_locked()
183 int _zd_iowrite32v_locked(struct zd_chip *chip, const struct zd_ioreq32 *ioreqs, in _zd_iowrite32v_locked()
197 int zd_iowrite16a_locked(struct zd_chip *chip, in zd_iowrite16a_locked()
235 int zd_iowrite32a_locked(struct zd_chip *chip, in zd_iowrite32a_locked()
[all …]
/drivers/net/dsa/mv88e6xxx/
Dglobal2.c23 static int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g2_read()
28 static int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g2_write()
33 static int mv88e6xxx_g2_update(struct mv88e6xxx_chip *chip, int reg, u16 update) in mv88e6xxx_g2_update()
38 static int mv88e6xxx_g2_wait(struct mv88e6xxx_chip *chip, int reg, u16 mask) in mv88e6xxx_g2_wait()
45 static int mv88e6xxx_g2_int_source(struct mv88e6xxx_chip *chip, u16 *src) in mv88e6xxx_g2_int_source()
53 static int mv88e6xxx_g2_int_mask(struct mv88e6xxx_chip *chip, u16 mask) in mv88e6xxx_g2_int_mask()
60 static int mv88e6xxx_g2_mgmt_enable_2x(struct mv88e6xxx_chip *chip, u16 en2x) in mv88e6xxx_g2_mgmt_enable_2x()
67 static int mv88e6xxx_g2_mgmt_enable_0x(struct mv88e6xxx_chip *chip, u16 en0x) in mv88e6xxx_g2_mgmt_enable_0x()
74 static int mv88e6xxx_g2_switch_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip, in mv88e6xxx_g2_switch_mgmt_rsvd2cpu()
92 int mv88e6185_g2_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip) in mv88e6185_g2_mgmt_rsvd2cpu()
[all …]
Dchip.c43 static void assert_reg_lock(struct mv88e6xxx_chip *chip) in assert_reg_lock()
63 static int mv88e6xxx_smi_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_read()
72 static int mv88e6xxx_smi_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_write()
81 static int mv88e6xxx_smi_single_chip_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_single_chip_read()
95 static int mv88e6xxx_smi_single_chip_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_single_chip_write()
112 static int mv88e6xxx_smi_multi_chip_wait(struct mv88e6xxx_chip *chip) in mv88e6xxx_smi_multi_chip_wait()
129 static int mv88e6xxx_smi_multi_chip_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_multi_chip_read()
160 static int mv88e6xxx_smi_multi_chip_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_multi_chip_write()
194 int mv88e6xxx_read(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val) in mv88e6xxx_read()
210 int mv88e6xxx_write(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val) in mv88e6xxx_write()
[all …]
Dport.c22 int mv88e6xxx_port_read(struct mv88e6xxx_chip *chip, int port, int reg, in mv88e6xxx_port_read()
30 int mv88e6xxx_port_write(struct mv88e6xxx_chip *chip, int port, int reg, in mv88e6xxx_port_write()
47 static int mv88e6xxx_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_set_rgmii_delay()
88 int mv88e6352_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, in mv88e6352_port_set_rgmii_delay()
97 int mv88e6390_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, in mv88e6390_port_set_rgmii_delay()
106 int mv88e6xxx_port_set_link(struct mv88e6xxx_chip *chip, int port, int link) in mv88e6xxx_port_set_link()
144 int mv88e6xxx_port_set_duplex(struct mv88e6xxx_chip *chip, int port, int dup) in mv88e6xxx_port_set_duplex()
182 static int mv88e6xxx_port_set_speed(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_set_speed()
248 int mv88e6065_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed) in mv88e6065_port_set_speed()
261 int mv88e6185_port_set_speed(struct mv88e6xxx_chip *chip, int port, int speed) in mv88e6185_port_set_speed()
[all …]
Dglobal1.c20 int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g1_read()
27 int mv88e6xxx_g1_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g1_write()
34 int mv88e6xxx_g1_wait(struct mv88e6xxx_chip *chip, int reg, u16 mask) in mv88e6xxx_g1_wait()
41 static int mv88e6185_g1_wait_ppu_disabled(struct mv88e6xxx_chip *chip) in mv88e6185_g1_wait_ppu_disabled()
62 static int mv88e6185_g1_wait_ppu_polling(struct mv88e6xxx_chip *chip) in mv88e6185_g1_wait_ppu_polling()
83 static int mv88e6352_g1_wait_ppu_polling(struct mv88e6xxx_chip *chip) in mv88e6352_g1_wait_ppu_polling()
103 static int mv88e6xxx_g1_wait_init_ready(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_wait_init_ready()
134 int mv88e6xxx_g1_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr) in mv88e6xxx_g1_set_switch_mac()
159 int mv88e6185_g1_reset(struct mv88e6xxx_chip *chip) in mv88e6185_g1_reset()
185 int mv88e6352_g1_reset(struct mv88e6xxx_chip *chip) in mv88e6352_g1_reset()
[all …]
Dphy.c20 int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_read()
26 int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_write()
32 int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy, int reg, u16 *val) in mv88e6xxx_phy_read()
47 int mv88e6xxx_phy_write(struct mv88e6xxx_chip *chip, int phy, int reg, u16 val) in mv88e6xxx_phy_write()
62 static int mv88e6xxx_phy_page_get(struct mv88e6xxx_chip *chip, int phy, u8 page) in mv88e6xxx_phy_page_get()
67 static void mv88e6xxx_phy_page_put(struct mv88e6xxx_chip *chip, int phy) in mv88e6xxx_phy_page_put()
83 int mv88e6xxx_phy_page_read(struct mv88e6xxx_chip *chip, int phy, in mv88e6xxx_phy_page_read()
101 int mv88e6xxx_phy_page_write(struct mv88e6xxx_chip *chip, int phy, in mv88e6xxx_phy_page_write()
122 static int mv88e6xxx_phy_ppu_disable(struct mv88e6xxx_chip *chip) in mv88e6xxx_phy_ppu_disable()
130 static int mv88e6xxx_phy_ppu_enable(struct mv88e6xxx_chip *chip) in mv88e6xxx_phy_ppu_enable()
[all …]
Dglobal1_vtu.c19 static int mv88e6xxx_g1_vtu_fid_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_fid_read()
34 static int mv88e6xxx_g1_vtu_fid_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_fid_write()
44 static int mv88e6xxx_g1_vtu_sid_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_sid_read()
59 static int mv88e6xxx_g1_vtu_sid_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_sid_write()
69 static int mv88e6xxx_g1_vtu_op_wait(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_vtu_op_wait()
75 static int mv88e6xxx_g1_vtu_op(struct mv88e6xxx_chip *chip, u16 op) in mv88e6xxx_g1_vtu_op()
89 static int mv88e6xxx_g1_vtu_vid_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_vid_read()
109 static int mv88e6xxx_g1_vtu_vid_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_vid_write()
128 static int mv88e6185_g1_vtu_data_read(struct mv88e6xxx_chip *chip, in mv88e6185_g1_vtu_data_read()
156 static int mv88e6185_g1_vtu_data_write(struct mv88e6xxx_chip *chip, in mv88e6185_g1_vtu_data_write()
[all …]
Dglobal1_atu.c18 static int mv88e6xxx_g1_atu_fid_write(struct mv88e6xxx_chip *chip, u16 fid) in mv88e6xxx_g1_atu_fid_write()
25 int mv88e6xxx_g1_atu_set_learn2all(struct mv88e6xxx_chip *chip, bool learn2all) in mv88e6xxx_g1_atu_set_learn2all()
42 int mv88e6xxx_g1_atu_set_age_time(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_atu_set_age_time()
78 static int mv88e6xxx_g1_atu_op_wait(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_atu_op_wait()
84 static int mv88e6xxx_g1_atu_op(struct mv88e6xxx_chip *chip, u16 fid, u16 op) in mv88e6xxx_g1_atu_op()
123 static int mv88e6xxx_g1_atu_data_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_atu_data_read()
142 static int mv88e6xxx_g1_atu_data_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_atu_data_write()
162 static int mv88e6xxx_g1_atu_mac_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_atu_mac_read()
180 static int mv88e6xxx_g1_atu_mac_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_atu_mac_write()
198 int mv88e6xxx_g1_atu_getnext(struct mv88e6xxx_chip *chip, u16 fid, in mv88e6xxx_g1_atu_getnext()
[all …]
/drivers/staging/rts5208/
Drtsx_chip.c34 static void rtsx_calibration(struct rtsx_chip *chip) in rtsx_calibration()
46 void rtsx_enable_card_int(struct rtsx_chip *chip) in rtsx_enable_card_int()
65 void rtsx_enable_bus_int(struct rtsx_chip *chip) in rtsx_enable_bus_int()
104 void rtsx_disable_bus_int(struct rtsx_chip *chip) in rtsx_disable_bus_int()
109 static int rtsx_pre_handle_sdio_old(struct rtsx_chip *chip) in rtsx_pre_handle_sdio_old()
163 static int rtsx_pre_handle_sdio_new(struct rtsx_chip *chip) in rtsx_pre_handle_sdio_new()
293 static int rtsx_reset_aspm(struct rtsx_chip *chip) in rtsx_reset_aspm()
340 static int rtsx_enable_pcie_intr(struct rtsx_chip *chip) in rtsx_enable_pcie_intr()
397 int rtsx_reset_chip(struct rtsx_chip *chip) in rtsx_reset_chip()
776 static int rts5208_init(struct rtsx_chip *chip) in rts5208_init()
[all …]
Drtsx_card.c34 void do_remaining_work(struct rtsx_chip *chip) in do_remaining_work()
92 void try_to_switch_sdio_ctrl(struct rtsx_chip *chip) in try_to_switch_sdio_ctrl()
110 void dynamic_configure_sdio_aspm(struct rtsx_chip *chip) in dynamic_configure_sdio_aspm()
149 void do_reset_sd_card(struct rtsx_chip *chip) in do_reset_sd_card()
203 void do_reset_xd_card(struct rtsx_chip *chip) in do_reset_xd_card()
251 void do_reset_ms_card(struct rtsx_chip *chip) in do_reset_ms_card()
299 static void release_sdio(struct rtsx_chip *chip) in release_sdio()
319 void rtsx_power_off_card(struct rtsx_chip *chip) in rtsx_power_off_card()
337 void rtsx_release_cards(struct rtsx_chip *chip) in rtsx_release_cards()
360 void rtsx_reset_cards(struct rtsx_chip *chip) in rtsx_reset_cards()
[all …]
Dspi.c30 static inline void spi_set_err_code(struct rtsx_chip *chip, u8 err_code) in spi_set_err_code()
37 static int spi_init(struct rtsx_chip *chip) in spi_init()
58 static int spi_set_init_para(struct rtsx_chip *chip) in spi_set_init_para()
112 static int sf_polling_status(struct rtsx_chip *chip, int msec) in sf_polling_status()
135 static int sf_enable_write(struct rtsx_chip *chip, u8 ins) in sf_enable_write()
164 static int sf_disable_write(struct rtsx_chip *chip, u8 ins) in sf_disable_write()
193 static void sf_program(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr, in sf_program()
217 static int sf_erase(struct rtsx_chip *chip, u8 ins, u8 addr_mode, u32 addr) in sf_erase()
252 static int spi_init_eeprom(struct rtsx_chip *chip) in spi_init_eeprom()
316 static int spi_eeprom_program_enable(struct rtsx_chip *chip) in spi_eeprom_program_enable()
[all …]
Dsd.c57 static inline void sd_set_err_code(struct rtsx_chip *chip, u8 err_code) in sd_set_err_code()
64 static inline void sd_clr_err_code(struct rtsx_chip *chip) in sd_clr_err_code()
71 static inline int sd_check_err_code(struct rtsx_chip *chip, u8 err_code) in sd_check_err_code()
78 static void sd_init_reg_addr(struct rtsx_chip *chip) in sd_init_reg_addr()
106 static int sd_check_data0_status(struct rtsx_chip *chip) in sd_check_data0_status()
126 static int sd_send_cmd_get_rsp(struct rtsx_chip *chip, u8 cmd_idx,
284 static int sd_read_data(struct rtsx_chip *chip,
356 static int sd_write_data(struct rtsx_chip *chip, u8 trans_mode,
426 static int sd_check_csd(struct rtsx_chip *chip, char check_wp)
535 static int sd_set_sample_push_timing(struct rtsx_chip *chip)
[all …]
Dms.c31 static inline void ms_set_err_code(struct rtsx_chip *chip, u8 err_code) in ms_set_err_code()
38 static inline int ms_check_err_code(struct rtsx_chip *chip, u8 err_code) in ms_check_err_code()
45 static int ms_parse_err_code(struct rtsx_chip *chip) in ms_parse_err_code()
51 static int ms_transfer_tpc(struct rtsx_chip *chip, u8 trans_mode, in ms_transfer_tpc()
111 static int ms_transfer_data(struct rtsx_chip *chip, u8 trans_mode, in ms_transfer_data()
185 static int ms_write_bytes(struct rtsx_chip *chip, in ms_write_bytes()
255 static int ms_read_bytes(struct rtsx_chip *chip, in ms_read_bytes()
337 static int ms_set_rw_reg_addr(struct rtsx_chip *chip, u8 read_start, in ms_set_rw_reg_addr()
360 static int ms_send_cmd(struct rtsx_chip *chip, u8 cmd, u8 cfg) in ms_send_cmd()
370 static int ms_set_init_para(struct rtsx_chip *chip) in ms_set_init_para()
[all …]
Drtsx_scsi.c33 void scsi_show_command(struct rtsx_chip *chip) in scsi_show_command()
324 void set_sense_type(struct rtsx_chip *chip, unsigned int lun, int sense_type) in set_sense_type()
399 void set_sense_data(struct rtsx_chip *chip, unsigned int lun, u8 err_code, in set_sense_data()
422 static int test_unit_ready(struct scsi_cmnd *srb, struct rtsx_chip *chip) in test_unit_ready()
474 static int inquiry(struct scsi_cmnd *srb, struct rtsx_chip *chip) in inquiry()
561 static int start_stop_unit(struct scsi_cmnd *srb, struct rtsx_chip *chip) in start_stop_unit()
596 static int allow_medium_removal(struct scsi_cmnd *srb, struct rtsx_chip *chip) in allow_medium_removal()
614 static int request_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip) in request_sense()
661 static void ms_mode_sense(struct rtsx_chip *chip, u8 cmd, in ms_mode_sense()
754 static int mode_sense(struct scsi_cmnd *srb, struct rtsx_chip *chip) in mode_sense()
[all …]
Dxd.c38 static inline void xd_set_err_code(struct rtsx_chip *chip, u8 err_code) in xd_set_err_code()
45 static inline int xd_check_err_code(struct rtsx_chip *chip, u8 err_code) in xd_check_err_code()
52 static int xd_set_init_para(struct rtsx_chip *chip) in xd_set_init_para()
71 static int xd_switch_clock(struct rtsx_chip *chip) in xd_switch_clock()
91 static int xd_read_id(struct rtsx_chip *chip, u8 id_cmd, u8 *id_buf, u8 buf_len) in xd_read_id()
123 static void xd_assign_phy_addr(struct rtsx_chip *chip, u32 addr, u8 mode) in xd_assign_phy_addr()
157 static int xd_read_redundant(struct rtsx_chip *chip, u32 page_addr, in xd_read_redundant()
196 static int xd_read_data_from_ppb(struct rtsx_chip *chip, int offset, in xd_read_data_from_ppb()
224 static int xd_read_cis(struct rtsx_chip *chip, u32 page_addr, u8 *buf, in xd_read_cis()
348 static void xd_fill_pull_ctl_disable(struct rtsx_chip *chip) in xd_fill_pull_ctl_disable()
[all …]
/drivers/char/tpm/
Dtpm-chip.c50 int tpm_try_get_ops(struct tpm_chip *chip) in tpm_try_get_ops()
75 void tpm_put_ops(struct tpm_chip *chip) in tpm_put_ops()
91 struct tpm_chip *chip, *res = NULL; in tpm_chip_find_get() local
125 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); in tpm_dev_release() local
139 struct tpm_chip *chip = container_of(dev, struct tpm_chip, devs); in tpm_devs_release() local
159 struct tpm_chip *chip = container_of(dev, struct tpm_chip, dev); in tpm_class_shutdown() local
185 struct tpm_chip *chip; in tpm_chip_alloc() local
281 struct tpm_chip *chip; in tpmm_chip_alloc() local
300 static int tpm_add_char_device(struct tpm_chip *chip) in tpm_add_char_device()
332 static void tpm_del_char_device(struct tpm_chip *chip) in tpm_del_char_device()
[all …]
Dtpm_tis_core.c41 static int wait_startup(struct tpm_chip *chip, int l) in wait_startup()
61 static bool check_locality(struct tpm_chip *chip, int l) in check_locality()
80 static int release_locality(struct tpm_chip *chip, int l) in release_locality()
89 static int request_locality(struct tpm_chip *chip, int l) in request_locality()
130 static u8 tpm_tis_status(struct tpm_chip *chip) in tpm_tis_status()
143 static void tpm_tis_ready(struct tpm_chip *chip) in tpm_tis_ready()
151 static int get_burstcount(struct tpm_chip *chip) in get_burstcount()
176 static int recv_data(struct tpm_chip *chip, u8 *buf, size_t count) in recv_data()
205 static int tpm_tis_recv(struct tpm_chip *chip, u8 *buf, size_t count) in tpm_tis_recv()
260 static int tpm_tis_send_data(struct tpm_chip *chip, const u8 *buf, size_t len) in tpm_tis_send_data()
[all …]
Dtpm-interface.c309 unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, in tpm_calc_ordinal_duration()
331 static int tpm_validate_command(struct tpm_chip *chip, in tpm_validate_command()
372 static int tpm_request_locality(struct tpm_chip *chip, unsigned int flags) in tpm_request_locality()
391 static void tpm_relinquish_locality(struct tpm_chip *chip, unsigned int flags) in tpm_relinquish_locality()
408 static int tpm_cmd_ready(struct tpm_chip *chip, unsigned int flags) in tpm_cmd_ready()
419 static int tpm_go_idle(struct tpm_chip *chip, unsigned int flags) in tpm_go_idle()
430 static ssize_t tpm_try_transmit(struct tpm_chip *chip, in tpm_try_transmit()
598 ssize_t tpm_transmit(struct tpm_chip *chip, struct tpm_space *space, in tpm_transmit()
652 ssize_t tpm_transmit_cmd(struct tpm_chip *chip, struct tpm_space *space, in tpm_transmit_cmd()
693 int tpm_startup(struct tpm_chip *chip) in tpm_startup()
[all …]
/drivers/staging/typec/fusb302/
Dfusb302.c150 static bool fusb302_log_full(struct fusb302_chip *chip) in fusb302_log_full()
156 static void _fusb302_log(struct fusb302_chip *chip, const char *fmt, in _fusb302_log()
203 static void fusb302_log(struct fusb302_chip *chip, const char *fmt, ...) in fusb302_log()
214 struct fusb302_chip *chip = (struct fusb302_chip *)s->private; in fusb302_seq_show() local
244 static int fusb302_debugfs_init(struct fusb302_chip *chip) in fusb302_debugfs_init()
260 static void fusb302_debugfs_exit(struct fusb302_chip *chip) in fusb302_debugfs_exit()
267 static void fusb302_log(const struct fusb302_chip *chip, in fusb302_log()
269 static int fusb302_debugfs_init(const struct fusb302_chip *chip) { return 0; } in fusb302_debugfs_init()
270 static void fusb302_debugfs_exit(const struct fusb302_chip *chip) { } in fusb302_debugfs_exit()
277 static bool fusb302_is_suspended(struct fusb302_chip *chip) in fusb302_is_suspended()
[all …]
/drivers/mtd/nand/
Dnand_base.c60 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_ecc_sp() local
115 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_ecc_lp() local
130 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_free_lp() local
155 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_ecc_lp_hamming() local
182 struct nand_chip *chip = mtd_to_nand(mtd); in nand_ooblayout_free_lp_hamming() local
219 struct nand_chip *chip = mtd_to_nand(mtd); in check_offs_len() local
245 struct nand_chip *chip = mtd_to_nand(mtd); in nand_release_device() local
263 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_byte() local
276 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_byte16() local
288 struct nand_chip *chip = mtd_to_nand(mtd); in nand_read_word() local
[all …]
/drivers/misc/
Dbh1770glc.c196 static inline int bh1770_lux_interrupt_control(struct bh1770_chip *chip, in bh1770_lux_interrupt_control()
206 static inline int bh1770_prox_interrupt_control(struct bh1770_chip *chip, in bh1770_prox_interrupt_control()
216 static int bh1770_lux_rate(struct bh1770_chip *chip, int rate_index) in bh1770_lux_rate()
231 static int bh1770_prox_rate(struct bh1770_chip *chip, int mode) in bh1770_prox_rate()
244 static inline int bh1770_led_cfg(struct bh1770_chip *chip) in bh1770_led_cfg()
260 static inline u8 bh1770_psraw_to_adjusted(struct bh1770_chip *chip, u8 psraw) in bh1770_psraw_to_adjusted()
270 static inline u8 bh1770_psadjusted_to_raw(struct bh1770_chip *chip, u8 ps) in bh1770_psadjusted_to_raw()
288 static int bh1770_prox_set_threshold(struct bh1770_chip *chip) in bh1770_prox_set_threshold()
303 static inline u16 bh1770_lux_raw_to_adjusted(struct bh1770_chip *chip, u16 raw) in bh1770_lux_raw_to_adjusted()
310 static inline u16 bh1770_lux_adjusted_to_raw(struct bh1770_chip *chip, in bh1770_lux_adjusted_to_raw()
[all …]
/drivers/staging/iio/addac/
Dadt7316.c226 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_show_enabled() local
231 static ssize_t _adt7316_store_enabled(struct adt7316_chip_info *chip, in _adt7316_store_enabled()
257 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_store_enabled() local
281 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_show_select_ex_temp() local
295 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_store_select_ex_temp() local
325 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_show_mode() local
339 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_store_mode() local
375 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_show_ad_channel() local
414 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_store_ad_channel() local
459 struct adt7316_chip_info *chip = iio_priv(dev_info); in adt7316_show_all_ad_channels() local
[all …]
/drivers/usb/storage/
Drealtek_cr.c74 #define rts51x_set_stat(chip, stat) \ argument
76 #define rts51x_get_stat(chip) ((chip)->state) argument
78 #define SET_LUN_READY(chip, lun) ((chip)->lun_ready |= ((u8)1 << (lun))) argument
79 #define CLR_LUN_READY(chip, lun) ((chip)->lun_ready &= ~((u8)1 << (lun))) argument
80 #define TST_LUN_READY(chip, lun) ((chip)->lun_ready & ((u8)1 << (lun))) argument
135 #define SET_AUTO_DELINK(chip) ((chip)->flag |= FLIDX_AUTO_DELINK) argument
136 #define CLR_AUTO_DELINK(chip) ((chip)->flag &= ~FLIDX_AUTO_DELINK) argument
137 #define CHK_AUTO_DELINK(chip) ((chip)->flag & FLIDX_AUTO_DELINK) argument
139 #define RTS51X_GET_VID(chip) ((chip)->vendor_id) argument
140 #define RTS51X_GET_PID(chip) ((chip)->product_id) argument
[all …]
/drivers/rtc/
Drtc-v3020.c66 static int v3020_mmio_map(struct v3020 *chip, struct platform_device *pdev, in v3020_mmio_map()
83 static void v3020_mmio_unmap(struct v3020 *chip) in v3020_mmio_unmap()
88 static void v3020_mmio_write_bit(struct v3020 *chip, unsigned char bit) in v3020_mmio_write_bit()
93 static unsigned char v3020_mmio_read_bit(struct v3020 *chip) in v3020_mmio_read_bit()
112 static int v3020_gpio_map(struct v3020 *chip, struct platform_device *pdev, in v3020_gpio_map()
130 static void v3020_gpio_unmap(struct v3020 *chip) in v3020_gpio_unmap()
135 static void v3020_gpio_write_bit(struct v3020 *chip, unsigned char bit) in v3020_gpio_write_bit()
145 static unsigned char v3020_gpio_read_bit(struct v3020 *chip) in v3020_gpio_read_bit()
168 static void v3020_set_reg(struct v3020 *chip, unsigned char address, in v3020_set_reg()
191 static unsigned char v3020_get_reg(struct v3020 *chip, unsigned char address) in v3020_get_reg()
[all …]
/drivers/leds/
Dleds-lp55xx-common.c41 static void lp55xx_reset_device(struct lp55xx_chip *chip) in lp55xx_reset_device()
51 static int lp55xx_detect_device(struct lp55xx_chip *chip) in lp55xx_detect_device()
74 static int lp55xx_post_init_device(struct lp55xx_chip *chip) in lp55xx_post_init_device()
98 struct lp55xx_chip *chip = led->chip; in lp55xx_store_current() local
148 struct lp55xx_chip *chip, int chan) in lp55xx_init_led()
198 struct lp55xx_chip *chip = context; in lp55xx_firmware_loaded() local
222 static int lp55xx_request_firmware(struct lp55xx_chip *chip) in lp55xx_request_firmware()
236 struct lp55xx_chip *chip = led->chip; in lp55xx_show_engine_select() local
246 struct lp55xx_chip *chip = led->chip; in lp55xx_store_engine_select() local
277 static inline void lp55xx_run_engine(struct lp55xx_chip *chip, bool start) in lp55xx_run_engine()
[all …]

12345678910>>...29