Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/net/ieee802154/
Dmrf24j40.c100 static int write_short_reg(struct mrf24j40 *devrec, u8 reg, u8 value) in write_short_reg() argument
106 .tx_buf = devrec->buf, in write_short_reg()
107 .rx_buf = devrec->buf, in write_short_reg()
113 mutex_lock(&devrec->buffer_mutex); in write_short_reg()
114 devrec->buf[0] = MRF24J40_WRITESHORT(reg); in write_short_reg()
115 devrec->buf[1] = value; in write_short_reg()
117 ret = spi_sync(devrec->spi, &msg); in write_short_reg()
119 dev_err(printdev(devrec), in write_short_reg()
122 mutex_unlock(&devrec->buffer_mutex); in write_short_reg()
126 static int read_short_reg(struct mrf24j40 *devrec, u8 reg, u8 *val) in read_short_reg() argument
[all …]