Home
last modified time | relevance | path

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

/Linux-v6.6/tools/testing/selftests/kvm/aarch64/
Darch_timer.c90 guest_configure_timer_action(struct test_vcpu_shared_data *shared_data) in guest_configure_timer_action() argument
92 switch (shared_data->guest_stage) { in guest_configure_timer_action()
95 shared_data->xcnt = timer_get_cntct(VIRTUAL); in guest_configure_timer_action()
100 shared_data->xcnt = timer_get_cntct(VIRTUAL); in guest_configure_timer_action()
105 shared_data->xcnt = timer_get_cntct(PHYSICAL); in guest_configure_timer_action()
110 shared_data->xcnt = timer_get_cntct(PHYSICAL); in guest_configure_timer_action()
119 struct test_vcpu_shared_data *shared_data) in guest_validate_irq() argument
121 enum guest_stage stage = shared_data->guest_stage; in guest_validate_irq()
154 xcnt_diff_us = cycles_to_usec(xcnt - shared_data->xcnt); in guest_validate_irq()
165 WRITE_ONCE(shared_data->nr_iter, shared_data->nr_iter + 1); in guest_validate_irq()
[all …]
/Linux-v6.6/Documentation/translations/zh_CN/process/
Dvolatile-considered-harmful.rst40 do_something_on(&shared_data);
41 do_something_else_with(&shared_data);
44 如果所有的代码都遵循加锁规则,当持有the_lock的时候,不可能意外的改变shared_data
47 它知道在shared_data里面将有什么,但是因为spin_lock()调用跟内存屏障一样,会强制编
50 如果shared_data被声名为volatile,锁操作将仍然是必须的。就算我们知道没有其他人正在
51 使用它,编译器也将被阻止优化对临界区内shared_data的访问。在锁有效的同时,
52 shared_data不是volatile的。在处理共享数据的时候,适当的锁操作可以不再需要
/Linux-v6.6/Documentation/translations/zh_TW/process/
Dvolatile-considered-harmful.rst43 do_something_on(&shared_data);
44 do_something_else_with(&shared_data);
47 如果所有的代碼都遵循加鎖規則,當持有the_lock的時候,不可能意外的改變shared_data
50 它知道在shared_data裡面將有什麼,但是因爲spin_lock()調用跟內存屏障一樣,會強制編
53 如果shared_data被聲名爲volatile,鎖操作將仍然是必須的。就算我們知道沒有其他人正在
54 使用它,編譯器也將被阻止優化對臨界區內shared_data的訪問。在鎖有效的同時,
55 shared_data不是volatile的。在處理共享數據的時候,適當的鎖操作可以不再需要
/Linux-v6.6/tools/testing/selftests/futex/functional/
Dfutex_wait.c51 u_int32_t f_private = 0, *shared_data; in main() local
103 shared_data = shmat(shm_id, NULL, 0); in main()
105 *shared_data = 0; in main()
106 futex = shared_data; in main()
164 shmdt(shared_data); in main()
Dfutex_waitv.c121 unsigned int *shared_data = shmat(shm_id, NULL, 0); in main() local
123 *shared_data = 0; in main()
124 waitv[i].uaddr = (uintptr_t)shared_data; in main()
/Linux-v6.6/Documentation/process/
Dvolatile-considered-harmful.rst31 do_something_on(&shared_data);
32 do_something_else_with(&shared_data);
35 If all the code follows the locking rules, the value of shared_data cannot
40 compiler might think it knows what will be in shared_data, but the
45 If shared_data were declared volatile, the locking would still be
47 to shared_data _within_ the critical section, when we know that nobody else
48 can be working with it. While the lock is held, shared_data is not
/Linux-v6.6/drivers/block/
Dxen-blkfront.c644 void *shared_data; in blkif_setup_rw_req_grant() local
646 shared_data = kmap_atomic(gnt_list_entry->page); in blkif_setup_rw_req_grant()
656 memcpy(shared_data + offset, in blkif_setup_rw_req_grant()
660 kunmap_atomic(shared_data); in blkif_setup_rw_req_grant()
1332 char *shared_data; in blkif_copy_from_grant() local
1336 shared_data = kmap_atomic(s->grants_used[info->grant_idx]->page); in blkif_copy_from_grant()
1339 shared_data + offset, len); in blkif_copy_from_grant()
1344 kunmap_atomic(shared_data); in blkif_copy_from_grant()
/Linux-v6.6/Documentation/translations/it_IT/process/
Dvolatile-considered-harmful.rst38 do_something_on(&shared_data);
39 do_something_else_with(&shared_data);
/Linux-v6.6/drivers/scsi/aic7xxx/
Daic7xxx.h416 } shared_data; member
Daic79xx.h449 } shared_data; member
Daic7xxx_core.c588 q_hscb->shared_data.cdb_ptr = in ahc_swap_with_next_hscb()
1042 ahc_set_scsi_status(scb, hscb->shared_data.status.scsi_status); in ahc_handle_seqint()
1043 switch (hscb->shared_data.status.scsi_status) { in ahc_handle_seqint()
1074 sc = (struct scsi_sense *)(&hscb->shared_data.cdb); in ahc_handle_seqint()
2090 for (i = 0; i < sizeof(hscb->shared_data.cdb); i++)
2091 printk("%#02x", hscb->shared_data.cdb[i]);
6623 spkt = &hscb->shared_data.status; in ahc_calc_residual()
Daic79xx_core.c446 scb->hscb->shared_data.idata.cdb_plus_saddr.sense_addr = in ahd_setup_scb_common()
3578 for (i = 0; i < sizeof(hscb->shared_data.idata.cdb); i++)
3579 printk("%#02x", hscb->shared_data.idata.cdb[i]);
7341 shared_data.idata.cdb)); in ahd_chip_init()
8865 ahd_set_scsi_status(scb, hscb->shared_data.istatus.scsi_status); in ahd_handle_scsi_status()
8866 switch (hscb->shared_data.istatus.scsi_status) { in ahd_handle_scsi_status()
8960 sc = (struct scsi_sense *)hscb->shared_data.idata.cdb; in ahd_handle_scsi_status()
9032 if (scb->hscb->shared_data.istatus.scsi_status != 0) { in ahd_handle_scb_status()
9085 spkt = &hscb->shared_data.istatus; in ahd_calc_residual()
Daic7xxx_osm.c1491 memcpy(hscb->shared_data.cdb, cmd->cmnd, hscb->cdb_len); in ahc_linux_run_command()
Daic79xx_osm.c1607 memcpy(hscb->shared_data.idata.cdb, cmd->cmnd, hscb->cdb_len); in ahd_linux_run_command()
/Linux-v6.6/drivers/net/wireless/intel/iwlegacy/
D3945.c2201 struct il3945_shared *shared_data = il->_3945.shared_virt; in il3945_hw_tx_queue_init() local
2203 shared_data->tx_base_ptr[txq_id] = cpu_to_le32((u32) txq->q.dma_addr); in il3945_hw_tx_queue_init()