Home
last modified time | relevance | path

Searched refs:MP_STREAM_POLL_WR (Results 1 – 18 of 18) sorted by relevance

/dports/lang/micropython/micropython-1.17/extmod/
H A Dmoduselect.c98 if (ret & MP_STREAM_POLL_WR) { in poll_map_poll()
101 if ((ret & ~(MP_STREAM_POLL_RD | MP_STREAM_POLL_WR)) != 0) { in poll_map_poll()
139 poll_map_add(&poll_map, w_array, rwx_len[1], MP_STREAM_POLL_WR, true); in select_select()
163 if (poll_obj->flags_ret & MP_STREAM_POLL_WR) { in select_select()
166 if ((poll_obj->flags_ret & ~(MP_STREAM_POLL_RD | MP_STREAM_POLL_WR)) != 0) { in select_select()
196 flags = MP_STREAM_POLL_RD | MP_STREAM_POLL_WR; in poll_register()
365 { MP_ROM_QSTR(MP_QSTR_POLLOUT), MP_ROM_INT(MP_STREAM_POLL_WR) },
H A Dmodlwip.c1463 if (flags & MP_STREAM_POLL_WR) { in lwip_socket_ioctl()
1466 ret |= MP_STREAM_POLL_WR; in lwip_socket_ioctl()
1470 ret |= MP_STREAM_POLL_WR; in lwip_socket_ioctl()
1475 ret |= MP_STREAM_POLL_WR; in lwip_socket_ioctl()
1486 ret |= flags & (MP_STREAM_POLL_RD | MP_STREAM_POLL_WR); in lwip_socket_ioctl()
1489 ret |= flags & MP_STREAM_POLL_WR; in lwip_socket_ioctl()
/dports/lang/micropython/micropython-1.17/ports/zephyr/
H A Dmachine_uart.c141 if (arg & MP_STREAM_POLL_WR) { in machine_uart_ioctl()
142 ret |= MP_STREAM_POLL_WR; in machine_uart_ioctl()
/dports/lang/micropython/micropython-1.17/ports/esp8266/
H A Dmachine_uart.c306 if ((flags & MP_STREAM_POLL_WR) && uart_tx_any_room(self->uart_id)) { in pyb_uart_ioctl()
307 ret |= MP_STREAM_POLL_WR; in pyb_uart_ioctl()
/dports/lang/micropython/micropython-1.17/py/
H A Dstream.h49 #define MP_STREAM_POLL_WR (0x0004) macro
/dports/lang/micropython/micropython-1.17/ports/stm32/
H A Dusb.c934 if ((flags & MP_STREAM_POLL_WR) && usbd_cdc_tx_half_empty(self->cdc_itf)) { in pyb_usb_vcp_ioctl()
935 ret |= MP_STREAM_POLL_WR; in pyb_usb_vcp_ioctl()
1077 … if ((flags & MP_STREAM_POLL_WR) && USBD_HID_CanSendReport(&self->usb_dev->usbd_hid_itf.base)) { in pyb_usb_hid_ioctl()
1078 ret |= MP_STREAM_POLL_WR; in pyb_usb_hid_ioctl()
H A Dmodnwwiznet5k.c321 if (arg & MP_STREAM_POLL_WR && getSn_TX_FSR(socket->u_param.fileno) != 0) { in wiznet5k_socket_ioctl()
322 ret |= MP_STREAM_POLL_WR; in wiznet5k_socket_ioctl()
H A Dmachine_uart.c617 if ((flags & MP_STREAM_POLL_WR) && uart_tx_avail(self)) { in pyb_uart_ioctl()
618 ret |= MP_STREAM_POLL_WR; in pyb_uart_ioctl()
H A Dmodnwcc3k.c384 if (flags & MP_STREAM_POLL_WR) { in cc3k_socket_ioctl()
408 ret |= MP_STREAM_POLL_WR; in cc3k_socket_ioctl()
H A Dpyb_can.c939 if ((flags & MP_STREAM_POLL_WR) && (self->can.Instance->IR & FDCAN_IR_TFE)) in can_ioctl()
941 if ((flags & MP_STREAM_POLL_WR) && (self->can.Instance->TSR & CAN_TSR_TME)) in can_ioctl()
944 ret |= MP_STREAM_POLL_WR; in can_ioctl()
H A Dmachine_i2s.c1089 if (flags & MP_STREAM_POLL_WR) { in machine_i2s_ioctl()
1096 ret |= MP_STREAM_POLL_WR; in machine_i2s_ioctl()
/dports/lang/micropython/micropython-1.17/ports/mimxrt/
H A Dmachine_uart.c439 if ((flags & MP_STREAM_POLL_WR)) { in machine_uart_ioctl()
440 ret |= MP_STREAM_POLL_WR; in machine_uart_ioctl()
/dports/lang/micropython/micropython-1.17/ports/rp2/
H A Dmachine_uart.c486 if ((flags & MP_STREAM_POLL_WR) && ringbuf_free(&self->write_buffer) > 0) { in machine_uart_ioctl()
487 ret |= MP_STREAM_POLL_WR; in machine_uart_ioctl()
/dports/lang/micropython/micropython-1.17/ports/esp32/
H A Dmachine_uart.c483 if ((flags & MP_STREAM_POLL_WR) && 1) { // FIXME: uart_tx_any_room(self->uart_num) in machine_uart_ioctl()
484 ret |= MP_STREAM_POLL_WR; in machine_uart_ioctl()
H A Dmodsocket.c698 if (arg & MP_STREAM_POLL_WR) { in socket_stream_ioctl()
716 ret |= MP_STREAM_POLL_WR; in socket_stream_ioctl()
724 ret |= (arg & MP_STREAM_POLL_WR) | MP_STREAM_POLL_HUP; in socket_stream_ioctl()
H A Dmachine_i2s.c768 if (flags & MP_STREAM_POLL_WR) { in machine_i2s_ioctl()
783 ret |= MP_STREAM_POLL_WR; in machine_i2s_ioctl()
/dports/lang/micropython/micropython-1.17/ports/cc3200/mods/
H A Dpybuart.c635 if ((flags & MP_STREAM_POLL_WR) && MAP_UARTSpaceAvail(self->reg)) { in pyb_uart_ioctl()
636 ret |= MP_STREAM_POLL_WR; in pyb_uart_ioctl()
H A Dmodusocket.c309 if (flags & MP_STREAM_POLL_WR) { in wlan_socket_ioctl()
333 ret |= MP_STREAM_POLL_WR; in wlan_socket_ioctl()