/linux-4.4.14/kernel/ |
H A D | exit.c | 915 static int eligible_pid(struct wait_opts *wo, struct task_struct *p) eligible_pid() argument 917 return wo->wo_type == PIDTYPE_MAX || eligible_pid() 918 task_pid_type(p, wo->wo_type) == wo->wo_pid; eligible_pid() 922 eligible_child(struct wait_opts *wo, bool ptrace, struct task_struct *p) eligible_child() argument 924 if (!eligible_pid(wo, p)) eligible_child() 931 if (ptrace || (wo->wo_flags & __WALL)) eligible_child() 942 if ((p->exit_signal != SIGCHLD) ^ !!(wo->wo_flags & __WCLONE)) eligible_child() 948 static int wait_noreap_copyout(struct wait_opts *wo, struct task_struct *p, wait_noreap_copyout() argument 952 int retval = wo->wo_rusage wait_noreap_copyout() 953 ? getrusage(p, RUSAGE_BOTH, wo->wo_rusage) : 0; wait_noreap_copyout() 956 infop = wo->wo_info; wait_noreap_copyout() 982 static int wait_task_zombie(struct wait_opts *wo, struct task_struct *p) wait_task_zombie() argument 989 if (!likely(wo->wo_flags & WEXITED)) wait_task_zombie() 992 if (unlikely(wo->wo_flags & WNOWAIT)) { wait_task_zombie() 1007 return wait_noreap_copyout(wo, p, pid, uid, why, status); wait_task_zombie() 1080 retval = wo->wo_rusage wait_task_zombie() 1081 ? getrusage(p, RUSAGE_BOTH, wo->wo_rusage) : 0; wait_task_zombie() 1084 if (!retval && wo->wo_stat) wait_task_zombie() 1085 retval = put_user(status, wo->wo_stat); wait_task_zombie() 1087 infop = wo->wo_info; wait_task_zombie() 1146 * @wo: wait options 1162 static int wait_task_stopped(struct wait_opts *wo, wait_task_stopped() argument 1173 if (!ptrace && !(wo->wo_flags & WUNTRACED)) wait_task_stopped() 1190 if (!unlikely(wo->wo_flags & WNOWAIT)) wait_task_stopped() 1212 if (unlikely(wo->wo_flags & WNOWAIT)) wait_task_stopped() 1213 return wait_noreap_copyout(wo, p, pid, uid, why, exit_code); wait_task_stopped() 1215 retval = wo->wo_rusage wait_task_stopped() 1216 ? getrusage(p, RUSAGE_BOTH, wo->wo_rusage) : 0; wait_task_stopped() 1217 if (!retval && wo->wo_stat) wait_task_stopped() 1218 retval = put_user((exit_code << 8) | 0x7f, wo->wo_stat); wait_task_stopped() 1220 infop = wo->wo_info; wait_task_stopped() 1247 static int wait_task_continued(struct wait_opts *wo, struct task_struct *p) wait_task_continued() argument 1253 if (!unlikely(wo->wo_flags & WCONTINUED)) wait_task_continued() 1265 if (!unlikely(wo->wo_flags & WNOWAIT)) wait_task_continued() 1275 if (!wo->wo_info) { wait_task_continued() 1276 retval = wo->wo_rusage wait_task_continued() 1277 ? getrusage(p, RUSAGE_BOTH, wo->wo_rusage) : 0; wait_task_continued() 1279 if (!retval && wo->wo_stat) wait_task_continued() 1280 retval = put_user(0xffff, wo->wo_stat); wait_task_continued() 1284 retval = wait_noreap_copyout(wo, p, pid, uid, wait_task_continued() 1301 static int wait_consider_task(struct wait_opts *wo, int ptrace, wait_consider_task() argument 1315 ret = eligible_child(wo, ptrace, p); wait_consider_task() 1328 if (wo->notask_error) wait_consider_task() 1329 wo->notask_error = ret; wait_consider_task() 1339 wo->notask_error = 0; wait_consider_task() 1369 return wait_task_zombie(wo, p); wait_consider_task() 1392 if (likely(!ptrace) || (wo->wo_flags & (WCONTINUED | WEXITED))) wait_consider_task() 1393 wo->notask_error = 0; wait_consider_task() 1399 wo->notask_error = 0; wait_consider_task() 1406 ret = wait_task_stopped(wo, ptrace, p); wait_consider_task() 1415 return wait_task_continued(wo, p); wait_consider_task() 1427 static int do_wait_thread(struct wait_opts *wo, struct task_struct *tsk) do_wait_thread() argument 1432 int ret = wait_consider_task(wo, 0, p); do_wait_thread() 1441 static int ptrace_do_wait(struct wait_opts *wo, struct task_struct *tsk) ptrace_do_wait() argument 1446 int ret = wait_consider_task(wo, 1, p); ptrace_do_wait() 1458 struct wait_opts *wo = container_of(wait, struct wait_opts, child_wait_callback() local 1462 if (!eligible_pid(wo, p)) child_wait_callback() 1465 if ((wo->wo_flags & __WNOTHREAD) && wait->private != p->parent) child_wait_callback() 1477 static long do_wait(struct wait_opts *wo) do_wait() argument 1482 trace_sched_process_wait(wo->wo_pid); do_wait() 1484 init_waitqueue_func_entry(&wo->child_wait, child_wait_callback); do_wait() 1485 wo->child_wait.private = current; do_wait() 1486 add_wait_queue(¤t->signal->wait_chldexit, &wo->child_wait); do_wait() 1494 wo->notask_error = -ECHILD; do_wait() 1495 if ((wo->wo_type < PIDTYPE_MAX) && do_wait() 1496 (!wo->wo_pid || hlist_empty(&wo->wo_pid->tasks[wo->wo_type]))) do_wait() 1503 retval = do_wait_thread(wo, tsk); do_wait() 1507 retval = ptrace_do_wait(wo, tsk); do_wait() 1511 if (wo->wo_flags & __WNOTHREAD) do_wait() 1517 retval = wo->notask_error; do_wait() 1518 if (!retval && !(wo->wo_flags & WNOHANG)) { do_wait() 1527 remove_wait_queue(¤t->signal->wait_chldexit, &wo->child_wait); do_wait() 1534 struct wait_opts wo; SYSCALL_DEFINE5() local 1565 wo.wo_type = type; SYSCALL_DEFINE5() 1566 wo.wo_pid = pid; SYSCALL_DEFINE5() 1567 wo.wo_flags = options; SYSCALL_DEFINE5() 1568 wo.wo_info = infop; SYSCALL_DEFINE5() 1569 wo.wo_stat = NULL; SYSCALL_DEFINE5() 1570 wo.wo_rusage = ru; SYSCALL_DEFINE5() 1571 ret = do_wait(&wo); SYSCALL_DEFINE5() 1602 struct wait_opts wo; SYSCALL_DEFINE4() local 1624 wo.wo_type = type; SYSCALL_DEFINE4() 1625 wo.wo_pid = pid; SYSCALL_DEFINE4() 1626 wo.wo_flags = options | WEXITED; SYSCALL_DEFINE4() 1627 wo.wo_info = NULL; SYSCALL_DEFINE4() 1628 wo.wo_stat = stat_addr; SYSCALL_DEFINE4() 1629 wo.wo_rusage = ru; SYSCALL_DEFINE4() 1630 ret = do_wait(&wo); SYSCALL_DEFINE4()
|
/linux-4.4.14/arch/sparc/include/uapi/asm/ |
H A D | asi.h | 37 /* wo = Write Only, rw = Read Write; */ 62 #define ASI_M_FLUSH_PAGE 0x10 /* Flush I&D Cache Line (page); wo, ss */ 63 #define ASI_M_FLUSH_SEG 0x11 /* Flush I&D Cache Line (seg); wo, ss */ 64 #define ASI_M_FLUSH_REGION 0x12 /* Flush I&D Cache Line (region); wo, ss */ 65 #define ASI_M_FLUSH_CTX 0x13 /* Flush I&D Cache Line (context); wo, ss */ 66 #define ASI_M_FLUSH_USER 0x14 /* Flush I&D Cache Line (user); wo, ss */ 72 #define ASI_M_IFLUSH_PAGE 0x18 /* Flush I Cache Line (page); wo, ss */ 73 #define ASI_M_IFLUSH_SEG 0x19 /* Flush I Cache Line (seg); wo, ss */ 74 #define ASI_M_IFLUSH_REGION 0x1A /* Flush I Cache Line (region); wo, ss */ 75 #define ASI_M_IFLUSH_CTX 0x1B /* Flush I Cache Line (context); wo, ss */ 76 #define ASI_M_IFLUSH_USER 0x1C /* Flush I Cache Line (user); wo, ss */ 97 #define ASI_M_FLUSH_IWHOLE 0x31 /* Flush entire ICACHE; wo, ss */
|
/linux-4.4.14/drivers/staging/comedi/drivers/ |
H A D | ni_atmio16d.c | 40 #define COM_REG_1 0x00 /* wo 16 */ 42 #define COM_REG_2 0x02 /* wo 16 */ 44 #define START_CONVERT_REG 0x08 /* wo 16 */ 45 #define START_DAQ_REG 0x0A /* wo 16 */ 46 #define AD_CLEAR_REG 0x0C /* wo 16 */ 47 #define EXT_STROBE_REG 0x0E /* wo 16 */ 49 #define DAC0_REG 0x10 /* wo 16 */ 50 #define DAC1_REG 0x12 /* wo 16 */ 51 #define INT2CLR_REG 0x14 /* wo 16 */ 53 #define MUX_CNTR_REG 0x04 /* wo 16 */ 54 #define MUX_GAIN_REG 0x06 /* wo 16 */ 56 #define DMA_TC_INT_CLR_REG 0x16 /* wo 16 */ 59 #define AM9513A_COM_REG 0x1A /* wo 16 */ 63 #define MIO_16_DIG_OUT_REG 0x1C /* wo 16 */ 65 #define RTSI_SW_SHIFT_REG 0x1E /* wo 8 */ 66 #define RTSI_SW_STROBE_REG 0x1F /* wo 8 */ 71 #define DIO_24_CNFG_REG 0x03 /* wo 8 */
|
H A D | cb_das16_cs.c | 74 #define DAS16CS_MISC1_DAC1CS BIT(3) /* wo - DAC1 chip select */ 75 #define DAS16CS_MISC1_DACCLK BIT(2) /* wo - Serial DAC clock */ 76 #define DAS16CS_MISC1_DACSD BIT(1) /* wo - Serial DAC data */ 77 #define DAS16CS_MISC1_DAC0CS BIT(0) /* wo - DAC0 chip select */ 92 #define DAS16CS_MISC2_TRGCLR BIT(3) /* wo - 1=clr (monstable) */
|
/linux-4.4.14/drivers/clocksource/ |
H A D | timer-sp.h | 27 #define TIMER_INTCLR 0x0c /* ACVR wo */
|
/linux-4.4.14/drivers/scsi/ |
H A D | NCR5380.h | 64 #define OUTPUT_DATA_REG 0 /* wo DATA lines on SCSI bus */ 70 #define ICR_TRI_STATE 0x40 /* wo Set to tri-state drivers */ 72 #define ICR_DIFF_ENABLE 0x20 /* wo Set to enable diff. drivers */ 131 #define SELECT_ENABLE_REG 4 /* wo */ 144 #define START_DMA_SEND_REG 5 /* wo */ 153 #define START_DMA_TARGET_RECEIVE_REG 6 /* wo */ 159 #define START_DMA_INITIATOR_RECEIVE_REG 7 /* wo */ 163 #define CSR_RESET 0x80 /* wo Resets 53c400 */ 183 #define C400_RESUME_TRANSFER_REG NCR53C400_register_offset-6 /* wo */
|
H A D | esp_scsi.h | 15 #define ESP_BUSID ESP_STATUS /* wo BusID for sel/resel 0x10 */ 17 #define ESP_TIMEO ESP_INTRPT /* wo Timeout for sel/resel 0x14 */ 19 #define ESP_STP ESP_SSTEP /* wo Transfer period/sync 0x18 */ 21 #define ESP_SOFF ESP_FFLAGS /* wo Sync offset 0x1c */ 23 #define ESP_CFACT 0x09UL /* wo Clock conv factor 0x24 */ 25 #define ESP_CTEST 0x0aUL /* wo Chip test register 0x28 */
|
H A D | pas16.c | 140 0x3c00, /* STATUS_REG ro, SELECT_ENABLE_REG wo */ 141 0x3c01, /* BUS_AND_STATUS_REG ro, START_DMA_SEND_REG wo */ 143 * START_DMA_TARGET_RECEIVE_REG wo 146 * START_DMA_INITIATOR_RECEIVE_REG wo
|
H A D | dtc.c | 78 #define CSR_RESET 0x80 /* wo Resets 53c400 */ 97 #define DTC_RESUME_XFER 0x3982 /* wo - resume data xfer
|
/linux-4.4.14/drivers/media/usb/dvb-usb-v2/ |
H A D | gl861.c | 21 int wo = (rbuf == NULL || rlen == 0); /* write-only */ gl861_i2c_msg() local 24 if (wo) { gl861_i2c_msg()
|
H A D | au6610.c | 83 u8 wo = (rbuf == NULL || rlen == 0); /* write-only */ au6610_i2c_msg() local 85 if (wo) { au6610_i2c_msg()
|
H A D | mxl111sf.c | 61 int wo = (rbuf == NULL || rlen == 0); /* write-only */ mxl111sf_ctrl_msg() local 77 ret = (wo) ? dvb_usbv2_generic_write(d, sndbuf, 1+wlen) : mxl111sf_ctrl_msg()
|
/linux-4.4.14/drivers/media/usb/dvb-usb/ |
H A D | dibusb-common.c | 113 int wo = (rbuf == NULL || rlen == 0), dibusb_i2c_msg() local 114 len = 2 + wlen + (wo ? 0 : 2); dibusb_i2c_msg() 121 sndbuf[0] = wo ? DIBUSB_REQ_I2C_WRITE : DIBUSB_REQ_I2C_READ; dibusb_i2c_msg() 122 sndbuf[1] = (addr << 1) | (wo ? 0 : 1); dibusb_i2c_msg() 126 if (!wo) { dibusb_i2c_msg()
|
H A D | friio.c | 38 int wo = (rbuf == NULL || rlen == 0); /* write only */ gl861_i2c_ctrlmsg_data() local 44 if (wo && wlen >= 2) { gl861_i2c_ctrlmsg_data() 67 int wo = (rbuf == NULL || rlen == 0); /* write-only */ gl861_i2c_msg() local 76 if (wo) { gl861_i2c_msg()
|
H A D | digitv.c | 31 int wo = (rbuf == NULL || rlen == 0); /* write-only */ digitv_ctrl_msg() local 37 sndbuf[2] = wo ? wlen : rlen; digitv_ctrl_msg() 39 if (wo) { digitv_ctrl_msg()
|
H A D | cxusb.c | 64 int wo = (rbuf == NULL || rlen == 0); /* write-only */ cxusb_ctrl_msg() local 77 if (wo) cxusb_ctrl_msg()
|
/linux-4.4.14/arch/powerpc/include/uapi/asm/ |
H A D | ioctls.h | 16 #define TIOCSETN _IOW('t', 10, struct sgttyb) /* TIOCSETP wo flush */
|
/linux-4.4.14/include/linux/ |
H A D | isdn_ppp.h | 53 unsigned char id; /* wo Send CCP ResetReq with this id */ 56 unsigned char *data; /* wo Data for ResetReq info field */
|
/linux-4.4.14/drivers/scsi/aic94xx/ |
H A D | aic94xx_reg_def.h | 169 #define RESETOVLYDMA 0x00000008 /* wo */ 171 #define STOPOVLYDMA 0x00000002 /* wo */ 330 #define ARP2RESET 0x00000001 /* wo */ 604 #define RESETCSDMA 0x08 /* wo */ 606 #define STOPCSDMA 0x02 /* wo */ 1064 #define LmMnFLUSH 0x40 /* wo */ 1065 #define LmMnRLSRTRY 0x20 /* wo */ 1066 #define LmMnDISCARD 0x10 /* wo */ 1067 #define LmMnRESETDAT 0x08 /* wo */ 1068 #define LmMnSUSDAT 0x04 /* wo */ 1069 #define LmMnSTOPDAT 0x02 /* wo */ 1070 #define LmMnSTARTDAT 0x01 /* wo */
|
/linux-4.4.14/arch/alpha/include/uapi/asm/ |
H A D | ioctls.h | 16 #define TIOCSETN _IOW('t', 10, struct sgttyb) /* TIOCSETP wo flush */
|
/linux-4.4.14/arch/mips/include/uapi/asm/ |
H A D | ioctls.h | 68 #define TIOCSETN 0x740a /* TIOCSETP wo flush */
|
/linux-4.4.14/drivers/block/drbd/ |
H A D | drbd_proc.c | 272 wo .. write ordering mode currently in use drbd_seq_show() 298 "lo:%d pe:%d ua:%d ap:%d ep:%d wo:%c", drbd_seq_show()
|
H A D | drbd_receiver.c | 1296 max_allowed_wo(struct drbd_backing_dev *bdev, enum write_ordering_e wo) max_allowed_wo() argument 1302 if (wo == WO_bdev_flush && !dc->disk_flushes) max_allowed_wo() 1303 wo = WO_drain_io; max_allowed_wo() 1304 if (wo == WO_drain_io && !dc->disk_drain) max_allowed_wo() 1305 wo = WO_none; max_allowed_wo() 1307 return wo; max_allowed_wo() 1313 * @wo: Write ordering method to try. 1316 enum write_ordering_e wo) drbd_bump_write_ordering() 1328 if (wo != WO_bdev_flush) drbd_bump_write_ordering() 1329 wo = min(pwo, wo); drbd_bump_write_ordering() 1333 wo = max_allowed_wo(device->ldev, wo); drbd_bump_write_ordering() 1341 wo = max_allowed_wo(bdev, wo); drbd_bump_write_ordering() 1345 resource->write_ordering = wo; drbd_bump_write_ordering() 1346 if (pwo != resource->write_ordering || wo == WO_bdev_flush) drbd_bump_write_ordering() 1315 drbd_bump_write_ordering(struct drbd_resource *resource, struct drbd_backing_dev *bdev, enum write_ordering_e wo) drbd_bump_write_ordering() argument
|
H A D | drbd_int.h | 1618 enum write_ordering_e wo);
|
/linux-4.4.14/sound/isa/ |
H A D | sc6000.c | 104 * (wo) == Write Only 109 #define DSP_RESET 0x06 /* offset of DSP RESET (wo) */
|
/linux-4.4.14/sound/oss/ |
H A D | aedsp16.c | 308 * (wo) == Write Only 313 #define DSP_RESET 0x06 /* offset of DSP RESET (wo) */
|
/linux-4.4.14/arch/parisc/kernel/ |
H A D | hardware.c | 688 {HPHW_FIO, 0x053, 0x00073, 0x0, "Raven+ Hi Power Backplane wo/EISA Wax HIL"}, 690 {HPHW_FIO, 0x055, 0x00073, 0x0, "Raven+ Lo Power Backplane wo/EISA Wax HIL"}, 693 {HPHW_FIO, 0x05B, 0x00073, 0x0, "Raven+ L2 Backplane wo/EISA Wax HIL"},
|
/linux-4.4.14/sound/pci/ |
H A D | cs4281.c | 294 #define BA0_MIDCMD 0x0494 /* MIDI Command (wo) */ 318 #define BA0_B0AP 0x0730 /* FM Bank 0 Address Port (wo) */
|
/linux-4.4.14/drivers/net/irda/ |
H A D | vlsi_ir.h | 180 VLSI_PIO_PROMPT = 0x08, /* triggers ring processing (u16, wo) */
|
/linux-4.4.14/drivers/md/ |
H A D | raid1.c | 1503 printk(KERN_DEBUG " disk %d, wo:%d, o:%d, dev:%s\n", print_conf()
|
H A D | raid10.c | 1621 printk(KERN_DEBUG " disk %d, wo:%d, o:%d, dev:%s\n", print_conf()
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
H A D | intel_lrc.c | 351 /* ELSP is a wo register, use another nearby reg for posting */ execlists_elsp_write()
|