Searched refs:nwrite (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/drivers/misc/c2port/ |
D | core.c | 741 u8 status, nwrite = 128; in __c2port_write_flash_data() local 744 if (nwrite > count) in __c2port_write_flash_data() 745 nwrite = count; in __c2port_write_flash_data() 746 if (ops->block_size * ops->blocks_num - offset < nwrite) in __c2port_write_flash_data() 747 nwrite = ops->block_size * ops->blocks_num - offset; in __c2port_write_flash_data() 792 c2port_write_dr(dev, nwrite); in __c2port_write_flash_data() 812 for (i = 0; i < nwrite; i++) { in __c2port_write_flash_data() 828 return nwrite; in __c2port_write_flash_data()
|
/linux-6.6.21/drivers/infiniband/hw/hfi1/ |
D | qsfp.c | 360 int nwrite; in qsfp_write() local 386 nwrite = len - count; in qsfp_write() 388 if (((addr % QSFP_RW_BOUNDARY) + nwrite) > QSFP_RW_BOUNDARY) in qsfp_write() 389 nwrite = QSFP_RW_BOUNDARY - (addr % QSFP_RW_BOUNDARY); in qsfp_write() 392 offset, bp + count, nwrite); in qsfp_write() 398 count += nwrite; in qsfp_write() 399 addr += nwrite; in qsfp_write()
|
/linux-6.6.21/drivers/i2c/busses/ |
D | i2c-npcm7xx.c | 788 static void npcm_i2c_set_fifo(struct npcm_i2c *bus, int nread, int nwrite) in npcm_i2c_set_fifo() argument 821 if (nwrite > 0) { in npcm_i2c_set_fifo() 822 if (nwrite > bus->data->fifo_size) in npcm_i2c_set_fifo() 826 iowrite8(nwrite, bus->reg + NPCM_I2CTXF_CTL); in npcm_i2c_set_fifo() 983 static void npcm_i2c_slave_xmit(struct npcm_i2c *bus, u16 nwrite, in npcm_i2c_slave_xmit() argument 986 if (nwrite == 0) in npcm_i2c_slave_xmit() 993 npcm_i2c_write_fifo_slave(bus, nwrite); in npcm_i2c_slave_xmit() 2039 u8 slave_addr, u16 nwrite, u16 nread, in npcm_i2c_master_start_xmit() argument 2049 bus->wr_size = nwrite; in npcm_i2c_master_start_xmit() 2061 if (nread && !nwrite) in npcm_i2c_master_start_xmit() [all …]
|
/linux-6.6.21/fs/vboxsf/ |
D | file.c | 278 u32 nwrite = PAGE_SIZE; in vboxsf_writepage() local 283 nwrite = size & ~PAGE_MASK; in vboxsf_writepage() 291 off, &nwrite, buf); in vboxsf_writepage()
|
/linux-6.6.21/drivers/crypto/ccp/ |
D | sev-dev.c | 249 ssize_t nwrite; in sev_write_init_ex_file() local 266 nwrite = kernel_write(fp, sev_init_ex_buffer, NV_LENGTH, &offset); in sev_write_init_ex_file() 270 if (nwrite != NV_LENGTH) { in sev_write_init_ex_file() 273 NV_LENGTH, nwrite); in sev_write_init_ex_file()
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | tc_redirect.c | 970 int direction, nread, nwrite; in tun_relay_loop() local 988 nwrite = write(direction == SRC_TO_TARGET ? target_fd : src_fd, buf, nread); in tun_relay_loop() 989 if (nwrite != nread) { in tun_relay_loop()
|
/linux-6.6.21/drivers/firmware/cirrus/ |
D | cs_dsp.c | 3253 int nwrite, i; in cs_dsp_chunk_write() local 3255 nwrite = min(CS_DSP_DATA_WORD_BITS - ch->cachebits, nbits); in cs_dsp_chunk_write() 3257 ch->cache <<= nwrite; in cs_dsp_chunk_write() 3258 ch->cache |= val >> (nbits - nwrite); in cs_dsp_chunk_write() 3259 ch->cachebits += nwrite; in cs_dsp_chunk_write() 3260 nbits -= nwrite; in cs_dsp_chunk_write()
|