[go: nahoru, domu]

Searched defs:rw (Results 1 - 25 of 94) sorted by relevance

1234

/drivers/ata/
H A Dpata_ixp4xx_cf.c44 unsigned char *buf, unsigned int buflen, int rw)
60 if (rw == READ)
72 if (rw == READ) {
43 ixp4xx_mmio_data_xfer(struct ata_device *dev, unsigned char *buf, unsigned int buflen, int rw) argument
H A Dpata_pcmcia.c96 * @rw: read/write
105 unsigned char *buf, unsigned int buflen, int rw)
109 if (rw == READ)
104 ata_data_xfer_8bit(struct ata_device *dev, unsigned char *buf, unsigned int buflen, int rw) argument
H A Dpata_ns87415.c123 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); local
136 if (!rw)
H A Dpata_at91.c279 unsigned char *buf, unsigned int buflen, int rw)
293 consumed = ata_sff_data_xfer(dev, buf, buflen, rw);
278 pata_at91_data_xfer_noirq(struct ata_device *dev, unsigned char *buf, unsigned int buflen, int rw) argument
H A Dsata_svw.c253 unsigned int rw = (qc->tf.flags & ATA_TFLAG_WRITE); local
264 if (!rw)
/drivers/i2c/busses/
H A Di2c-cbus-gpio.c111 * @rw: read/write flag
114 * @data: if @rw == I2C_SBUS_WRITE data to send otherwise 0
116 static int cbus_transfer(struct cbus_host *host, char rw, unsigned dev, argument
134 /* Send the rw flag */
135 cbus_send_bit(host, rw == I2C_SMBUS_READ);
140 if (rw == I2C_SMBUS_WRITE) {
H A Di2c-ali1563.c188 union i2c_smbus_data *data, u8 rw)
196 if (rw == I2C_SMBUS_WRITE) {
210 if (rw == I2C_SMBUS_WRITE) {
235 unsigned short flags, char rw, u8 cmd,
274 outb_p(((addr & 0x7f) << 1) | (rw & 0x01), SMB_HST_ADD);
282 if (rw == I2C_SMBUS_WRITE)
288 if (rw == I2C_SMBUS_WRITE)
293 if (rw == I2C_SMBUS_WRITE) {
300 error = ali1563_block(a, data, rw);
308 if ((rw
187 ali1563_block(struct i2c_adapter *a, union i2c_smbus_data *data, u8 rw) argument
234 ali1563_access(struct i2c_adapter *a, u16 addr, unsigned short flags, char rw, u8 cmd, int size, union i2c_smbus_data *data) argument
[all...]
H A Dscx200_acb.c278 char rw, u8 command, int size,
295 buffer = rw ? &data->byte : &command;
322 size, address, command, len, rw);
324 if (!len && rw == I2C_SMBUS_READ) {
331 iface->address_byte = (address << 1) | rw;
355 if (rc == 0 && size == I2C_SMBUS_WORD_DATA && rw == I2C_SMBUS_READ)
276 scx200_acb_smbus_xfer(struct i2c_adapter *adapter, u16 address, unsigned short flags, char rw, u8 command, int size, union i2c_smbus_data *data) argument
/drivers/ide/
H A Dide-dma-sff.c191 u8 rw = (cmd->tf_flags & IDE_TFLAG_WRITE) ? 0 : ATA_DMA_WR; local
209 writeb(rw, (void __iomem *)(hwif->dma_base + ATA_DMA_CMD));
211 outb(rw, hwif->dma_base + ATA_DMA_CMD);
H A Dtrm290.c195 unsigned int count, rw = (cmd->tf_flags & IDE_TFLAG_WRITE) ? 1 : 2; local
202 outl(hwif->dmatable_dma | rw, hwif->dma_base);
H A Dide-taskfile.c431 int rw = !(cmd->tf_flags & IDE_TFLAG_WRITE) ? READ : WRITE; local
433 rq = blk_get_request(drive->queue, rw, __GFP_WAIT);
H A Dide-atapi.c344 int ireason, int rw)
348 debug_log("ireason: 0x%x, rw: 0x%x\n", ireason, rw);
350 if (ireason == (!rw << 1))
352 else if (ireason == (rw << 1)) {
357 ide_pad_transfer(drive, rw, len);
358 } else if (!rw && ireason == ATAPI_COD) {
343 ide_check_ireason(ide_drive_t *drive, struct request *rq, int len, int ireason, int rw) argument
/drivers/block/rsxx/
H A Ddev.c116 int rw = bio_data_dir(bio); local
122 part_inc_in_flight(part0, rw);
133 int rw = bio_data_dir(bio); local
138 part_stat_add(cpu, part0, sectors[rw], bio_sectors(bio));
139 part_stat_inc(cpu, part0, ios[rw]);
140 part_stat_add(cpu, part0, ticks[rw], duration);
143 part_dec_in_flight(part0, rw);
/drivers/gpu/drm/nouveau/core/subdev/bios/
H A Dbase.c322 const bool rw; member in struct:methods
359 mthd->score = nouveau_bios_score(bios, mthd->rw);
391 mthd->score = nouveau_bios_score(bios, mthd->rw);
/drivers/media/v4l2-core/
H A Dvideobuf-dma-sg.c159 int err, rw = 0; local
164 rw = READ;
167 rw = WRITE;
187 rw == READ, 1, /* force */
/drivers/block/
H A Dbrd.c300 unsigned int len, unsigned int off, int rw,
306 if (rw != READ) {
313 if (rw == READ) {
330 int rw; local
346 rw = bio_rw(bio);
347 if (rw == READA)
348 rw = READ;
353 bvec.bv_offset, rw, sector);
364 struct page *page, int rw)
367 int err = brd_do_bvec(brd, page, PAGE_CACHE_SIZE, 0, rw, secto
299 brd_do_bvec(struct brd_device *brd, struct page *page, unsigned int len, unsigned int off, int rw, sector_t sector) argument
363 brd_rw_page(struct block_device *bdev, sector_t sector, struct page *page, int rw) argument
[all...]
/drivers/md/
H A Ddm-io.c280 static void do_region(int rw, unsigned region, struct dm_io_region *where, argument
294 * where->count may be zero if rw holds a flush and we need to
301 if ((rw & REQ_DISCARD) || (rw & REQ_WRITE_SAME))
313 if (rw & REQ_DISCARD) {
317 } else if (rw & REQ_WRITE_SAME) {
344 submit_bio(rw, bio);
348 static void dispatch_io(int rw, unsigned int num_regions, argument
358 rw |= REQ_SYNC;
366 if (where[i].count || (rw
390 sync_io(struct dm_io_client *client, unsigned int num_regions, struct dm_io_region *where, int rw, struct dpages *dp, unsigned long *error_bits) argument
424 async_io(struct dm_io_client *client, unsigned int num_regions, struct dm_io_region *where, int rw, struct dpages *dp, io_notify_fn fn, void *context) argument
[all...]
/drivers/net/ethernet/seeq/
H A Dsgiseeq.h28 } rw; member in struct:sgiseeq_regs
/drivers/net/wireless/rsi/
H A Drsi_91x_sdio.c24 * @rw: Read/write
32 static u32 rsi_sdio_set_cmd52_arg(bool rw, argument
38 return ((rw & 1) << 31) | ((func & 0x7) << 28) |
/drivers/s390/block/
H A Ddasd_fba.c87 define_extent(struct ccw1 * ccw, struct DE_fba_data *data, int rw, argument
95 if (rw == WRITE)
97 else if (rw == READ)
107 locate_record(struct ccw1 * ccw, struct LO_fba_data *data, int rw, argument
115 if (rw == WRITE)
117 else if (rw == READ)
/drivers/staging/lustre/lustre/llite/
H A Drw26.c188 static inline int ll_get_user_pages(int rw, unsigned long user_addr, argument
206 (rw == READ), *pages);
229 int rw, struct inode *inode,
277 src_page = (rw == WRITE) ? pages[i] : vmpage;
278 dst_page = (rw == WRITE) ? vmpage : pages[i];
288 if (rw == WRITE)
291 if (rw == READ) {
320 rw == READ ? CRT_READ : CRT_WRITE,
334 int rw, struct inode *inode,
346 return ll_direct_rw_pages(env, io, rw, inod
228 ll_direct_rw_pages(const struct lu_env *env, struct cl_io *io, int rw, struct inode *inode, struct ll_dio_pages *pv) argument
333 ll_direct_IO_26_seg(const struct lu_env *env, struct cl_io *io, int rw, struct inode *inode, struct address_space *mapping, size_t size, loff_t file_offset, struct page **pages, int page_count) argument
362 ll_direct_IO_26(int rw, struct kiocb *iocb, struct iov_iter *iter, loff_t file_offset) argument
[all...]
/drivers/video/console/
H A Dbitblit.c210 unsigned int rw = info->var.xres - (vc->vc_cols*cw); local
212 unsigned int rs = info->var.xres - rw;
219 if (rw && !bottom_only) {
222 region.width = rw;
H A Dfbcon_ccw.c196 unsigned int rw = info->var.yres - (vc->vc_cols*cw); local
204 if (rw && !bottom_only) {
207 region.height = rw;
H A Dfbcon_cw.c179 unsigned int rw = info->var.yres - (vc->vc_cols*cw); local
181 unsigned int rs = info->var.yres - rw;
187 if (rw && !bottom_only) {
190 region.height = rw;
H A Dfbcon_ud.c227 unsigned int rw = info->var.xres - (vc->vc_cols*cw); local
234 if (rw && !bottom_only) {
237 region.width = rw;

Completed in 408 milliseconds

1234