Home
last modified time | relevance | path

Searched refs:cmd_hd (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/hwmon/
H A Dnct6694-hwmon.c243 struct nct6694_cmd_header cmd_hd; in nct6694_in_read() local
256 cmd_hd = (struct nct6694_cmd_header) { in nct6694_in_read()
261 ret = nct6694_read_msg(data->nct6694, &cmd_hd, in nct6694_in_read()
270 cmd_hd = (struct nct6694_cmd_header) { in nct6694_in_read()
276 ret = nct6694_read_msg(data->nct6694, &cmd_hd, in nct6694_in_read()
285 cmd_hd = (struct nct6694_cmd_header) { in nct6694_in_read()
291 ret = nct6694_read_msg(data->nct6694, &cmd_hd, in nct6694_in_read()
300 cmd_hd = (struct nct6694_cmd_header) { in nct6694_in_read()
305 ret = nct6694_read_msg(data->nct6694, &cmd_hd, in nct6694_in_read()
322 struct nct6694_cmd_header cmd_hd; in nct6694_temp_read() local
[all …]
/linux/drivers/gpio/
H A Dgpio-nct6694.c56 const struct nct6694_cmd_header cmd_hd = { in nct6694_get_direction() local
65 ret = nct6694_read_msg(data->nct6694, &cmd_hd, &data->reg_val); in nct6694_get_direction()
75 const struct nct6694_cmd_header cmd_hd = { in nct6694_direction_input() local
84 ret = nct6694_read_msg(data->nct6694, &cmd_hd, &data->reg_val); in nct6694_direction_input()
90 return nct6694_write_msg(data->nct6694, &cmd_hd, &data->reg_val); in nct6694_direction_input()
97 struct nct6694_cmd_header cmd_hd = { in nct6694_direction_output() local
107 ret = nct6694_read_msg(data->nct6694, &cmd_hd, &data->reg_val); in nct6694_direction_output()
112 ret = nct6694_write_msg(data->nct6694, &cmd_hd, &data->reg_val); in nct6694_direction_output()
117 cmd_hd.offset = cpu_to_le16(NCT6694_GPO_DATA + data->group); in nct6694_direction_output()
118 ret = nct6694_read_msg(data->nct6694, &cmd_hd, &data->reg_val); in nct6694_direction_output()
[all …]
/linux/drivers/mfd/
H A Dnct6694.c97 int nct6694_read_msg(struct nct6694 *nct6694, const struct nct6694_cmd_header *cmd_hd, void *buf) in nct6694_read_msg() argument
105 memcpy(&msg->cmd_header, cmd_hd, sizeof(*cmd_hd)); in nct6694_read_msg()
122 le16_to_cpu(cmd_hd->len), &rx_len, NCT6694_URB_TIMEOUT); in nct6694_read_msg()
126 if (rx_len != le16_to_cpu(cmd_hd->len)) { in nct6694_read_msg()
128 le16_to_cpu(cmd_hd->len), rx_len); in nct6694_read_msg()
147 int nct6694_write_msg(struct nct6694 *nct6694, const struct nct6694_cmd_header *cmd_hd, void *buf) in nct6694_write_msg() argument
155 memcpy(&msg->cmd_header, cmd_hd, sizeof(*cmd_hd)); in nct6694_write_msg()
166 le16_to_cpu(cmd_hd->len), &tx_len, NCT6694_URB_TIMEOUT); in nct6694_write_msg()
178 le16_to_cpu(cmd_hd->len), &rx_len, NCT6694_URB_TIMEOUT); in nct6694_write_msg()
182 if (rx_len != le16_to_cpu(cmd_hd->len)) { in nct6694_write_msg()
[all …]
/linux/drivers/rtc/
H A Drtc-nct6694.c82 static const struct nct6694_cmd_header cmd_hd = { in nct6694_rtc_read_time() local
90 ret = nct6694_read_msg(data->nct6694, &cmd_hd, time); in nct6694_rtc_read_time()
109 static const struct nct6694_cmd_header cmd_hd = { in nct6694_rtc_set_time() local
124 return nct6694_write_msg(data->nct6694, &cmd_hd, time); in nct6694_rtc_set_time()
131 static const struct nct6694_cmd_header cmd_hd = { in nct6694_rtc_read_alarm() local
139 ret = nct6694_read_msg(data->nct6694, &cmd_hd, alarm); in nct6694_rtc_read_alarm()
156 static const struct nct6694_cmd_header cmd_hd = { in nct6694_rtc_set_alarm() local
169 return nct6694_write_msg(data->nct6694, &cmd_hd, alarm); in nct6694_rtc_set_alarm()
176 static const struct nct6694_cmd_header cmd_hd = { in nct6694_rtc_alarm_irq_enable() local
190 return nct6694_write_msg(data->nct6694, &cmd_hd, sts); in nct6694_rtc_alarm_irq_enable()
[all …]
/linux/drivers/watchdog/
H A Dnct6694_wdt.c95 const struct nct6694_cmd_header cmd_hd = { in nct6694_wdt_setting() local
113 return nct6694_write_msg(data->nct6694, &cmd_hd, setup); in nct6694_wdt_setting()
136 const struct nct6694_cmd_header cmd_hd = { in nct6694_wdt_stop() local
146 return nct6694_write_msg(data->nct6694, &cmd_hd, cmd); in nct6694_wdt_stop()
153 const struct nct6694_cmd_header cmd_hd = { in nct6694_wdt_ping() local
163 return nct6694_write_msg(data->nct6694, &cmd_hd, cmd); in nct6694_wdt_ping()
200 const struct nct6694_cmd_header cmd_hd = { in nct6694_wdt_get_time() local
209 ret = nct6694_read_msg(data->nct6694, &cmd_hd, setup); in nct6694_wdt_get_time()
/linux/drivers/net/can/usb/
H A Dnct6694_canfd.c213 const struct nct6694_cmd_header cmd_hd = { in nct6694_canfd_handle_rx() local
222 ret = nct6694_read_msg(priv->nct6694, &cmd_hd, frame); in nct6694_canfd_handle_rx()
385 const struct nct6694_cmd_header cmd_hd = { in nct6694_canfd_irq() local
394 ret = nct6694_read_msg(priv->nct6694, &cmd_hd, priv->event); in nct6694_canfd_irq()
442 static const struct nct6694_cmd_header cmd_hd = { in nct6694_canfd_tx_work() local
491 err = nct6694_write_msg(priv->nct6694, &cmd_hd, frame); in nct6694_canfd_tx_work()
521 const struct nct6694_cmd_header cmd_hd = { in nct6694_canfd_start() local
574 ret = nct6694_write_msg(priv->nct6694, &cmd_hd, setting); in nct6694_canfd_start()
587 const struct nct6694_cmd_header cmd_hd = { in nct6694_canfd_stop() local
603 nct6694_read_msg(priv->nct6694, &cmd_hd, setting); in nct6694_canfd_stop()
[all …]
/linux/drivers/i2c/busses/
H A Di2c-nct6694.c69 static const struct nct6694_cmd_header cmd_hd = { in nct6694_i2c_xfer() local
87 ret = nct6694_write_msg(data->nct6694, &cmd_hd, deliver); in nct6694_i2c_xfer()
95 ret = nct6694_write_msg(data->nct6694, &cmd_hd, deliver); in nct6694_i2c_xfer()
/linux/include/linux/mfd/
H A Dnct6694.h99 int nct6694_read_msg(struct nct6694 *nct6694, const struct nct6694_cmd_header *cmd_hd, void *buf);
100 int nct6694_write_msg(struct nct6694 *nct6694, const struct nct6694_cmd_header *cmd_hd, void *buf);