Home
last modified time | relevance | path

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

/drivers/misc/eeprom/
Dat25.c35 unsigned addrlen; member
89 if (offset >= (1U << (at25->addrlen * 8))) in at25_ee_read()
94 switch (at25->addrlen) { in at25_ee_read()
108 t[0].len = at25->addrlen + 1; in at25_ee_read()
150 bounce = kmalloc(buf_size + at25->addrlen + 1, GFP_KERNEL); in at25_ee_write()
175 if (offset >= (1U << (at25->addrlen * 8))) in at25_ee_write()
180 switch (at25->addrlen) { in at25_ee_write()
196 segment + at25->addrlen + 1); in at25_ee_write()
306 int addrlen; in at25_probe() local
318 addrlen = 1; in at25_probe()
[all …]
Deeprom_93xx46.c47 int addrlen; member
83 u16 cmd_addr = OP_READ << edev->addrlen; in eeprom_93xx46_read()
87 if (edev->addrlen == 7) { in eeprom_93xx46_read()
144 cmd_addr = OP_START << edev->addrlen; in eeprom_93xx46_ew()
145 if (edev->addrlen == 7) { in eeprom_93xx46_ew()
197 cmd_addr = OP_WRITE << edev->addrlen; in eeprom_93xx46_write_word()
199 if (edev->addrlen == 7) { in eeprom_93xx46_write_word()
245 if (edev->addrlen == 6) { in eeprom_93xx46_write()
287 cmd_addr = OP_START << edev->addrlen; in eeprom_93xx46_eral()
288 if (edev->addrlen == 7) { in eeprom_93xx46_eral()
[all …]
/drivers/i2c/busses/
Di2c-xgene-slimpro.c83 #define SLIMPRO_IIC_ENCODE_MSG(dev, chip, op, proto, addrlen, datalen) \ argument
91 ((addrlen << SLIMPRO_IIC_ADDRLEN_SHIFT) & SLIMPRO_IIC_ADDRLEN_MASK) | \
252 u32 addr, u32 addrlen, u32 protocol, in slimpro_i2c_rd() argument
258 SLIMPRO_IIC_READ, protocol, addrlen, readlen); in slimpro_i2c_rd()
266 u32 addr, u32 addrlen, u32 protocol, u32 writelen, in slimpro_i2c_wr() argument
272 SLIMPRO_IIC_WRITE, protocol, addrlen, writelen); in slimpro_i2c_wr()
280 u32 addrlen, u32 protocol, u32 readlen, in slimpro_i2c_blkrd() argument
295 protocol, addrlen, readlen); in slimpro_i2c_blkrd()
312 u32 addr, u32 addrlen, u32 protocol, u32 writelen, in slimpro_i2c_blkwr() argument
329 protocol, addrlen, writelen); in slimpro_i2c_blkwr()
/drivers/spi/
Dspi-bcm-qspi.c166 unsigned int addrlen; member
358 int addrlen = msg->addr_width; in bcm_qspi_bspi_set_flex_mode() local
363 width, addrlen, hp); in bcm_qspi_bspi_set_flex_mode()
365 if (addrlen == BSPI_ADDRLEN_4BYTES) in bcm_qspi_bspi_set_flex_mode()
372 if (addrlen == BSPI_ADDRLEN_3BYTES) in bcm_qspi_bspi_set_flex_mode()
404 int addrlen = msg->addr_width; in bcm_qspi_bspi_set_override() local
408 width, addrlen, hp); in bcm_qspi_bspi_set_override()
430 if (addrlen == BSPI_ADDRLEN_4BYTES) in bcm_qspi_bspi_set_override()
450 int addrlen = msg->addr_width; in bcm_qspi_bspi_set_mode() local
473 width, addrlen, hp); in bcm_qspi_bspi_set_mode()
[all …]
/drivers/scsi/esas2r/
Desas2r_disc.c947 u16 addrlen; in esas2r_disc_passthru_dev_addr_cb() local
957 addrlen = le16_to_cpu(hi->data.get_dev_addr.addr_len); in esas2r_disc_passthru_dev_addr_cb()
960 if (addrlen == sizeof(u64)) in esas2r_disc_passthru_dev_addr_cb()
963 addrlen); in esas2r_disc_passthru_dev_addr_cb()
973 if (HIBYTE(addrlen) == 0) { in esas2r_disc_passthru_dev_addr_cb()
/drivers/mtd/spi-nor/
Dfsl-quadspi.c379 u8 addrlen = (nor->addr_width == 3) ? ADDR24BIT : ADDR32BIT; in fsl_qspi_init_lut() local
392 qspi_writel(q, LUT0(CMD, PAD1, read_op) | LUT1(ADDR, PAD1, addrlen), in fsl_qspi_init_lut()
407 LUT1(ADDR, PAD1, addrlen), in fsl_qspi_init_lut()
422 LUT1(ADDR, PAD1, addrlen), in fsl_qspi_init_lut()