Home
last modified time | relevance | path

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

/linux-4.4.14/Documentation/zh_CN/
Dvolatile-considered-harmful.txt47 do_something_on(&shared_data);
48 do_something_else_with(&shared_data);
51 如果所有的代码都遵循加锁规则,当持有the_lock的时候,不可能意外的改变shared_data
54 它知道在shared_data里面将有什么,但是因为spin_lock()调用跟内存屏障一样,会强制编
57 如果shared_data被声名为volatile,锁操作将仍然是必须的。就算我们知道没有其他人正在
58 使用它,编译器也将被阻止优化对临界区内shared_data的访问。在锁有效的同时,
59 shared_data不是volatile的。在处理共享数据的时候,适当的锁操作可以不再需要
/linux-4.4.14/Documentation/
Dvolatile-considered-harmful.txt28 do_something_on(&shared_data);
29 do_something_else_with(&shared_data);
32 If all the code follows the locking rules, the value of shared_data cannot
37 compiler might think it knows what will be in shared_data, but the
42 If shared_data were declared volatile, the locking would still be
44 to shared_data _within_ the critical section, when we know that nobody else
45 can be working with it. While the lock is held, shared_data is not
/linux-4.4.14/drivers/block/
Dxen-blkfront.c530 void *shared_data; in blkif_setup_rw_req_grant() local
532 shared_data = kmap_atomic(gnt_list_entry->page); in blkif_setup_rw_req_grant()
542 memcpy(shared_data + offset, in blkif_setup_rw_req_grant()
546 kunmap_atomic(shared_data); in blkif_setup_rw_req_grant()
1197 char *shared_data; in blkif_copy_from_grant() local
1201 shared_data = kmap_atomic(s->grants_used[info->grant_idx]->page); in blkif_copy_from_grant()
1204 shared_data + offset, len); in blkif_copy_from_grant()
1209 kunmap_atomic(shared_data); in blkif_copy_from_grant()
/linux-4.4.14/drivers/scsi/aic7xxx/
Daic7xxx.h416 } shared_data; member
Daic79xx.h449 } shared_data; member
Daic7xxx_core.c595 q_hscb->shared_data.cdb_ptr = in ahc_swap_with_next_hscb()
1049 ahc_set_scsi_status(scb, hscb->shared_data.status.scsi_status); in ahc_handle_seqint()
1050 switch (hscb->shared_data.status.scsi_status) { in ahc_handle_seqint()
1081 sc = (struct scsi_sense *)(&hscb->shared_data.cdb); in ahc_handle_seqint()
2114 for (i = 0; i < sizeof(hscb->shared_data.cdb); i++)
2115 printk("%#02x", hscb->shared_data.cdb[i]);
6689 spkt = &hscb->shared_data.status; in ahc_calc_residual()
Daic79xx_core.c454 scb->hscb->shared_data.idata.cdb_plus_saddr.sense_addr = in ahd_setup_scb_common()
3611 for (i = 0; i < sizeof(hscb->shared_data.idata.cdb); i++)
3612 printk("%#02x", hscb->shared_data.idata.cdb[i]);
7434 shared_data.idata.cdb)); in ahd_chip_init()
8962 ahd_set_scsi_status(scb, hscb->shared_data.istatus.scsi_status); in ahd_handle_scsi_status()
8963 switch (hscb->shared_data.istatus.scsi_status) { in ahd_handle_scsi_status()
9056 sc = (struct scsi_sense *)hscb->shared_data.idata.cdb; in ahd_handle_scsi_status()
9128 if (scb->hscb->shared_data.istatus.scsi_status != 0) { in ahd_handle_scb_status()
9181 spkt = &hscb->shared_data.istatus; in ahd_calc_residual()
Daic7xxx_osm.c1511 memcpy(hscb->shared_data.cdb, cmd->cmnd, hscb->cdb_len); in ahc_linux_run_command()
Daic79xx_osm.c1628 memcpy(hscb->shared_data.idata.cdb, cmd->cmnd, hscb->cdb_len); in ahd_linux_run_command()
/linux-4.4.14/drivers/net/wireless/iwlegacy/
D3945.c2217 struct il3945_shared *shared_data = il->_3945.shared_virt; in il3945_hw_tx_queue_init() local
2219 shared_data->tx_base_ptr[txq_id] = cpu_to_le32((u32) txq->q.dma_addr); in il3945_hw_tx_queue_init()