Home
last modified time | relevance | path

Searched refs:rw (Results 1 – 25 of 126) sorted by relevance

123456

/drivers/net/wireless/zd1211rw/
Dzd_rf_rf2959.c44 static int bits(u32 rw, int from, int to)
46 rw &= ~(0xffffffffU << (to+1));
47 rw >>= from;
48 return rw;
51 static int bit(u32 rw, int bit)
53 return bits(rw, bit, bit);
56 static void dump_regwrite(u32 rw)
58 int reg = bits(rw, 18, 22);
59 int rw_flag = bits(rw, 23, 23);
60 PDEBUG("rf2959 %#010x reg %d rw %d", rw, reg, rw_flag);
[all …]
/drivers/block/xen-blkback/
Dcommon.h123 struct blkif_x86_32_request_rw rw; member
179 struct blkif_x86_64_request_rw rw; member
402 dst->u.rw.nr_segments = src->u.rw.nr_segments; in blkif_get_x86_32_req()
403 dst->u.rw.handle = src->u.rw.handle; in blkif_get_x86_32_req()
404 dst->u.rw.id = src->u.rw.id; in blkif_get_x86_32_req()
405 dst->u.rw.sector_number = src->u.rw.sector_number; in blkif_get_x86_32_req()
407 if (n > dst->u.rw.nr_segments) in blkif_get_x86_32_req()
408 n = dst->u.rw.nr_segments; in blkif_get_x86_32_req()
410 dst->u.rw.seg[i] = src->u.rw.seg[i]; in blkif_get_x86_32_req()
450 dst->u.rw.nr_segments = src->u.rw.nr_segments; in blkif_get_x86_64_req()
[all …]
/drivers/md/
Ddm-io.c281 static void do_region(int rw, unsigned region, struct dm_io_region *where, in do_region() argument
298 if (rw & REQ_DISCARD) in do_region()
300 else if (rw & REQ_WRITE_SAME) in do_region()
302 if ((rw & (REQ_DISCARD | REQ_WRITE_SAME)) && special_cmd_max_sectors == 0) { in do_region()
316 if ((rw & REQ_DISCARD) || (rw & REQ_WRITE_SAME)) in do_region()
328 if (rw & REQ_DISCARD) { in do_region()
332 } else if (rw & REQ_WRITE_SAME) { in do_region()
359 submit_bio(rw, bio); in do_region()
363 static void dispatch_io(int rw, unsigned int num_regions, in dispatch_io() argument
373 rw |= REQ_SYNC; in dispatch_io()
[all …]
Ddm-verity-avb.c28 int rw, int access_last_sector, in invalidate_vbmeta_submit() argument
36 bio->bi_rw = rw; in invalidate_vbmeta_submit()
50 submit_bio(rw, bio); in invalidate_vbmeta_submit()
67 int rw = REQ_SYNC | REQ_SOFTBARRIER | REQ_NOIDLE; in invalidate_vbmeta() local
97 ret = invalidate_vbmeta_submit(bio, bdev, rw, access_last_sector, page); in invalidate_vbmeta()
116 ret = invalidate_vbmeta_submit(bio, bdev, rw, in invalidate_vbmeta()
151 rw |= REQ_WRITE; in invalidate_vbmeta()
152 ret = invalidate_vbmeta_submit(bio, bdev, rw, access_last_sector, page); in invalidate_vbmeta()
Ddm-kcopyd.c336 int rw; member
472 if (job->rw & WRITE) in complete_io()
484 if (job->rw & WRITE) in complete_io()
488 job->rw = WRITE; in complete_io()
503 .bi_rw = job->rw, in run_io_job()
514 if (job->rw == READ) in run_io_job()
557 if (job->rw & WRITE) in process_jobs()
737 job->rw = READ; in dm_kcopyd_copy()
746 job->rw = WRITE | REQ_WRITE_SAME; in dm_kcopyd_copy()
749 job->rw = WRITE; in dm_kcopyd_copy()
/drivers/gpu/drm/ttm/
Dttm_lock.c49 lock->rw = 0; in ttm_lock_init()
59 if (--lock->rw == 0) in ttm_read_unlock()
75 if (lock->rw >= 0 && lock->flags == 0) { in __ttm_read_lock()
76 ++lock->rw; in __ttm_read_lock()
108 if (lock->rw >= 0 && lock->flags == 0) { in __ttm_read_trylock()
109 ++lock->rw; in __ttm_read_trylock()
142 lock->rw = 0; in ttm_write_unlock()
158 if (lock->rw == 0 && ((lock->flags & ~TTM_WRITE_LOCK_PENDING) == 0)) { in __ttm_write_lock()
159 lock->rw = -1; in __ttm_write_lock()
219 if (lock->rw == 0) { in __ttm_vt_lock()
[all …]
/drivers/nvdimm/
Dblk.c65 int rw) in nd_blk_rw_integrity() argument
95 cur_len, rw); in nd_blk_rw_integrity()
111 int rw) in nd_blk_rw_integrity() argument
119 unsigned int len, unsigned int off, int rw, in nd_blk_do_bvec() argument
146 err = ndbr->do_io(ndbr, dev_offset, iobuf + off, cur_len, rw); in nd_blk_do_bvec()
152 err = nd_blk_rw_integrity(blk_dev, bip, lba, rw); in nd_blk_do_bvec()
173 int err = 0, rw; in nd_blk_make_request() local
189 rw = bio_data_dir(bio); in nd_blk_make_request()
196 bvec.bv_offset, rw, iter.bi_sector); in nd_blk_make_request()
200 (rw == READ) ? "READ" : "WRITE", in nd_blk_make_request()
[all …]
Dpmem.c49 unsigned int len, unsigned int off, int rw, in pmem_do_bvec() argument
56 if (rw == READ) { in pmem_do_bvec()
91 struct page *page, int rw) in pmem_rw_page() argument
95 pmem_do_bvec(pmem, page, PAGE_CACHE_SIZE, 0, rw, sector); in pmem_rw_page()
96 if (rw & WRITE) in pmem_rw_page()
98 page_endio(page, rw & WRITE, 0); in pmem_rw_page()
206 resource_size_t offset, void *buf, size_t size, int rw) in pmem_rw_bytes() argument
215 if (rw == READ) in pmem_rw_bytes()
Dcore.c220 const int rw = bio_data_dir(bio); in __nd_iostat_start() local
225 part_stat_inc(cpu, &disk->part0, ios[rw]); in __nd_iostat_start()
226 part_stat_add(cpu, &disk->part0, sectors[rw], bio_sectors(bio)); in __nd_iostat_start()
227 part_inc_in_flight(&disk->part0, rw); in __nd_iostat_start()
236 const int rw = bio_data_dir(bio); in nd_iostat_end() local
239 part_stat_add(cpu, &disk->part0, ticks[rw], duration); in nd_iostat_end()
241 part_dec_in_flight(&disk->part0, rw); in nd_iostat_end()
Dbtt.c905 struct arena_info *arena, u32 postmap, int rw) in btt_rw_integrity() argument
930 if (rw) in btt_rw_integrity()
951 struct arena_info *arena, u32 postmap, int rw) in btt_rw_integrity() argument
1134 int rw, sector_t sector) in btt_do_bvec() argument
1138 if (rw == READ) { in btt_do_bvec()
1156 int err = 0, rw; in btt_make_request() local
1171 rw = bio_data_dir(bio); in btt_make_request()
1182 rw, iter.bi_sector); in btt_make_request()
1186 (rw == READ) ? "READ" : "WRITE", in btt_make_request()
1201 struct page *page, int rw) in btt_rw_page() argument
[all …]
/drivers/i2c/busses/
Di2c-ali1563.c188 union i2c_smbus_data *data, u8 rw) in ali1563_block() argument
196 if (rw == I2C_SMBUS_WRITE) { in ali1563_block()
210 if (rw == I2C_SMBUS_WRITE) { in ali1563_block()
235 unsigned short flags, char rw, u8 cmd, in ali1563_access() argument
274 outb_p(((addr & 0x7f) << 1) | (rw & 0x01), SMB_HST_ADD); in ali1563_access()
282 if (rw == I2C_SMBUS_WRITE) in ali1563_access()
288 if (rw == I2C_SMBUS_WRITE) in ali1563_access()
293 if (rw == I2C_SMBUS_WRITE) { in ali1563_access()
300 error = ali1563_block(a, data, rw); in ali1563_access()
308 if ((rw == I2C_SMBUS_WRITE) || (size == HST_CNTL2_QUICK)) in ali1563_access()
Dscx200_acb.c278 char rw, u8 command, int size, in scx200_acb_smbus_xfer() argument
295 buffer = rw ? &data->byte : &command; in scx200_acb_smbus_xfer()
322 size, address, command, len, rw); in scx200_acb_smbus_xfer()
324 if (!len && rw == I2C_SMBUS_READ) { in scx200_acb_smbus_xfer()
331 iface->address_byte = (address << 1) | rw; in scx200_acb_smbus_xfer()
355 if (rc == 0 && size == I2C_SMBUS_WORD_DATA && rw == I2C_SMBUS_READ) in scx200_acb_smbus_xfer()
Di2c-cbus-gpio.c116 static int cbus_transfer(struct cbus_host *host, char rw, unsigned dev, in cbus_transfer() argument
135 cbus_send_bit(host, rw == I2C_SMBUS_READ); in cbus_transfer()
140 if (rw == I2C_SMBUS_WRITE) { in cbus_transfer()
/drivers/staging/lustre/lustre/llite/
Drw26.c188 static inline int ll_get_user_pages(int rw, unsigned long user_addr, in ll_get_user_pages() argument
206 (rw == READ), *pages); in ll_get_user_pages()
229 int rw, struct inode *inode, in ll_direct_rw_pages() argument
277 src_page = (rw == WRITE) ? pages[i] : vmpage; in ll_direct_rw_pages()
278 dst_page = (rw == WRITE) ? vmpage : pages[i]; in ll_direct_rw_pages()
288 if (rw == WRITE) in ll_direct_rw_pages()
291 if (rw == READ) { in ll_direct_rw_pages()
320 rw == READ ? CRT_READ : CRT_WRITE, in ll_direct_rw_pages()
334 int rw, struct inode *inode, in ll_direct_IO_26_seg() argument
346 return ll_direct_rw_pages(env, io, rw, inode, &pvec); in ll_direct_IO_26_seg()
Dlloop.c193 int rw; in do_bio_lustrebacked() local
215 rw = head->bi_rw; in do_bio_lustrebacked()
217 LASSERT(rw == bio->bi_rw); in do_bio_lustrebacked()
233 (rw == WRITE) ? LPROC_LL_BRW_WRITE : LPROC_LL_BRW_READ, in do_bio_lustrebacked()
261 bytes = ll_direct_rw_pages(env, io, rw, inode, pvec); in do_bio_lustrebacked()
296 int rw; in loop_get_bio() local
308 rw = first->bi_rw; in loop_get_bio()
310 while (*bio && (*bio)->bi_rw == rw) { in loop_get_bio()
339 int rw = bio_rw(old_bio); in loop_make_request() local
357 if (rw == WRITE) { in loop_make_request()
[all …]
/drivers/block/
Dbrd.c299 unsigned int len, unsigned int off, int rw, in brd_do_bvec() argument
305 if (rw != READ) { in brd_do_bvec()
312 if (rw == READ) { in brd_do_bvec()
329 int rw; in brd_make_request() local
346 rw = bio_rw(bio); in brd_make_request()
347 if (rw == READA) in brd_make_request()
348 rw = READ; in brd_make_request()
355 bvec.bv_offset, rw, sector); in brd_make_request()
370 struct page *page, int rw) in brd_rw_page() argument
373 int err = brd_do_bvec(brd, page, PAGE_CACHE_SIZE, 0, rw, sector); in brd_rw_page()
[all …]
/drivers/block/drbd/
Ddrbd_req.c221 int rw; in drbd_req_complete() local
245 rw = bio_rw(req->master_bio); in drbd_req_complete()
270 if (rw == WRITE && in drbd_req_complete()
291 if (!ok && rw == READ && !list_empty(&req->tl_requests)) in drbd_req_complete()
1142 const int rw = bio_rw(bio); in drbd_submit_req_private_bio() local
1154 rw == WRITE ? DRBD_FAULT_DT_WR in drbd_submit_req_private_bio()
1155 : rw == READ ? DRBD_FAULT_DT_RD in drbd_submit_req_private_bio()
1185 const int rw = bio_data_dir(bio); in drbd_request_prepare() local
1209 if (rw == WRITE && req->private_bio && req->i.size in drbd_request_prepare()
1226 const int rw = bio_rw(req->master_bio); in drbd_send_and_submit() local
[all …]
Ddrbd_actlog.c140 sector_t sector, int rw) in _drbd_md_sync_page_io() argument
150 if ((rw & WRITE) && !test_bit(MD_NO_FUA, &device->flags)) in _drbd_md_sync_page_io()
151 rw |= REQ_FUA | REQ_FLUSH; in _drbd_md_sync_page_io()
152 rw |= REQ_SYNC | REQ_NOIDLE; in _drbd_md_sync_page_io()
162 bio->bi_rw = rw; in _drbd_md_sync_page_io()
164 if (!(rw & WRITE) && device->state.disk == D_DISKLESS && device->ldev == NULL) in _drbd_md_sync_page_io()
177 if (drbd_insert_fault(device, (rw & WRITE) ? DRBD_FAULT_MD_WR : DRBD_FAULT_MD_RD)) in _drbd_md_sync_page_io()
180 submit_bio(rw, bio); in _drbd_md_sync_page_io()
191 sector_t sector, int rw) in drbd_md_sync_page_io() argument
200 (unsigned long long)sector, (rw & WRITE) ? "WRITE" : "READ", in drbd_md_sync_page_io()
[all …]
/drivers/target/
Dtarget_core_iblock.c340 static void iblock_submit_bios(struct bio_list *list, int rw) in iblock_submit_bios() argument
347 submit_bio(rw, bio); in iblock_submit_bios()
645 int rw = 0; in iblock_execute_rw() local
657 rw = WRITE_FUA; in iblock_execute_rw()
659 rw = WRITE_FUA; in iblock_execute_rw()
661 rw = WRITE; in iblock_execute_rw()
663 rw = WRITE; in iblock_execute_rw()
666 rw = READ; in iblock_execute_rw()
700 iblock_submit_bios(&list, rw); in iblock_execute_rw()
724 iblock_submit_bios(&list, rw); in iblock_execute_rw()
/drivers/staging/lustre/lustre/obdecho/
Decho_client.c168 static int cl_echo_object_brw(struct echo_object *eco, int rw, u64 offset,
1174 static int cl_echo_object_brw(struct echo_object *eco, int rw, u64 offset, in cl_echo_object_brw() argument
1210 rw == READ ? LCK_PR : LCK_PW, &lh.cookie, in cl_echo_object_brw()
1243 enum cl_req_type typ = rw == READ ? CRT_READ : CRT_WRITE; in cl_echo_object_brw()
1483 struct page *page, int rw, u64 id, in echo_client_page_debug_setup() argument
1497 if (rw == OBD_BRW_WRITE) { in echo_client_page_debug_setup()
1546 static int echo_client_kbrw(struct echo_device *ed, int rw, struct obdo *oa, in echo_client_kbrw() argument
1569 LASSERT(rw == OBD_BRW_WRITE || rw == OBD_BRW_READ); in echo_client_kbrw()
1580 if (rw == OBD_BRW_WRITE) in echo_client_kbrw()
1610 echo_client_page_debug_setup(lsm, pgp->pg, rw, in echo_client_kbrw()
[all …]
/drivers/tty/serial/
Dsunsab.c424 writeb(up->cached_mode, &up->regs->rw.mode); in sunsab_tx_idle()
425 writeb(up->cached_pvr, &up->regs->rw.pvr); in sunsab_tx_idle()
429 tmp = readb(&up->regs->rw.ccr2); in sunsab_tx_idle()
432 writeb(tmp, &up->regs->rw.ccr2); in sunsab_tx_idle()
571 tmp = readb(&up->regs->rw.ccr0); in sunsab_startup()
573 writeb(tmp, &up->regs->rw.ccr0); in sunsab_startup()
610 up->cached_dafo = readb(&up->regs->rw.dafo); in sunsab_shutdown()
612 writeb(up->cached_dafo, &up->regs->rw.dafo); in sunsab_shutdown()
616 writeb(up->cached_mode, &up->regs->rw.mode); in sunsab_shutdown()
630 tmp = readb(&up->regs->rw.ccr0); in sunsab_shutdown()
[all …]
/drivers/ata/
Dpata_ixp4xx_cf.c44 unsigned char *buf, unsigned int buflen, int rw) in ixp4xx_mmio_data_xfer() argument
60 if (rw == READ) in ixp4xx_mmio_data_xfer()
72 if (rw == READ) { in ixp4xx_mmio_data_xfer()
/drivers/block/zram/
Dzram_drv.c813 int offset, int rw) in zram_bvec_rw() argument
818 generic_start_io_acct(rw, bvec->bv_len >> SECTOR_SHIFT, in zram_bvec_rw()
821 if (rw == READ) { in zram_bvec_rw()
829 generic_end_io_acct(rw, &zram->disk->part0, start_time); in zram_bvec_rw()
832 if (rw == READ) in zram_bvec_rw()
843 int offset, rw; in __zram_make_request() local
858 rw = bio_data_dir(bio); in __zram_make_request()
873 if (zram_bvec_rw(zram, &bv, index, offset, rw) < 0) in __zram_make_request()
878 if (zram_bvec_rw(zram, &bv, index + 1, 0, rw) < 0) in __zram_make_request()
881 if (zram_bvec_rw(zram, &bvec, index, offset, rw) < 0) in __zram_make_request()
[all …]
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dshadowacpi.c101 .rw = false,
110 .rw = false,
/drivers/staging/panel/
Dpanel.c267 int rw; member
657 unsigned char rw; /* parallel LCD R/W (0 = W, 1 = R) */ member
676 | lcd_bits[LCD_PORT_D][LCD_BIT_RW][bits.rw] in set_data_bits()
696 | lcd_bits[LCD_PORT_C][LCD_BIT_RW][bits.rw] in set_ctrl_bits()
853 bits.rw = BIT_CLR; in lcd_write_cmd_p8()
875 bits.rw = BIT_CLR; in lcd_write_data_p8()
974 bits.rw = BIT_CLR; in lcd_clear_fast_p8()
1529 lcd.pins.rw = PIN_INITP; in lcd_init()
1575 lcd.pins.rw = lcd_rw_pin; in lcd_init()
1612 if (lcd.pins.rw == PIN_NOT_SET) in lcd_init()
[all …]

123456