Home
last modified time | relevance | path

Searched refs:tport (Results 1 – 25 of 58) sorted by relevance

123

/linux/drivers/target/tcm_fc/
H A Dtfc_sess.c44 struct ft_tport *tport; in ft_tport_get() local
47 tport = rcu_dereference_protected(lport->prov[FC_TYPE_FCP], in ft_tport_get()
49 if (tport && tport->tpg) in ft_tport_get()
50 return tport; in ft_tport_get()
56 if (tport) { in ft_tport_get()
57 tport->tpg = tpg; in ft_tport_get()
58 tpg->tport = tport; in ft_tport_get()
59 return tport; in ft_tport_get()
62 tport = kzalloc_obj(*tport); in ft_tport_get()
63 if (!tport) in ft_tport_get()
[all …]
H A Dtcm_fc.h33 struct ft_tport *tport; member
89 struct ft_tport *tport; /* active tport or NULL */ member
/linux/drivers/nvme/target/
H A Dfcloop.c244 struct fcloop_tport *tport; member
262 struct fcloop_tport *tport; member
274 struct fcloop_tport *tport; member
392 struct fcloop_tport *tport = targetport->private; in fcloop_h2t_xmt_ls_rsp() local
393 struct nvme_fc_remote_port *remoteport = tport->remoteport; in fcloop_h2t_xmt_ls_rsp()
419 struct fcloop_tport *tport = in fcloop_tport_lsrqst_work() local
423 spin_lock(&tport->lock); in fcloop_tport_lsrqst_work()
425 tls_req = list_first_entry_or_null(&tport->ls_list, in fcloop_tport_lsrqst_work()
431 spin_unlock(&tport->lock); in fcloop_tport_lsrqst_work()
440 spin_lock(&tport->lock); in fcloop_tport_lsrqst_work()
[all …]
/linux/drivers/tty/serial/
H A Dsunhv.c43 struct tty_port *tport) in transmit_chars_putchar() argument
47 while (kfifo_peek(&tport->xmit_fifo, &ch)) { in transmit_chars_putchar()
57 static void transmit_chars_write(struct uart_port *port, struct tty_port *tport) in transmit_chars_write() argument
59 while (!kfifo_is_empty(&tport->xmit_fifo)) { in transmit_chars_write()
63 len = kfifo_out_linear_ptr(&tport->xmit_fifo, &tail, in transmit_chars_write()
173 void (*transmit_chars)(struct uart_port *port, struct tty_port *tport);
191 struct tty_port *tport = NULL; in receive_chars() local
194 tport = &port->state->port; in receive_chars()
199 return tport; in receive_chars()
204 struct tty_port *tport; in transmit_chars() local
[all …]
H A Dtimbuart.c82 struct tty_port *tport = &port->state->port; in timbuart_rx_chars() local
87 tty_insert_flip_char(tport, ch, TTY_NORMAL); in timbuart_rx_chars()
90 tty_flip_buffer_push(tport); in timbuart_rx_chars()
117 struct tty_port *tport = &port->state->port; in timbuart_handle_tx_port() local
119 if (kfifo_is_empty(&tport->xmit_fifo) || uart_tx_stopped(port)) in timbuart_handle_tx_port()
130 if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS) in timbuart_handle_tx_port()
141 if (!kfifo_is_empty(&tport->xmit_fifo)) in timbuart_handle_tx_port()
H A Dlpc32xx_hs.c247 struct tty_port *tport = &port->state->port; in __serial_lpc32xx_rx() local
262 tty_insert_flip_char(tport, 0, TTY_FRAME); in __serial_lpc32xx_rx()
266 tty_insert_flip_char(tport, (tmp & 0xFF), flag); in __serial_lpc32xx_rx()
271 tty_flip_buffer_push(tport); in __serial_lpc32xx_rx()
293 struct tty_port *tport = &port->state->port; in serial_lpc32xx_interrupt() local
317 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in serial_lpc32xx_interrupt()
318 tty_flip_buffer_push(tport); in serial_lpc32xx_interrupt()
H A Ducc_uart.c337 struct tty_port *tport = &port->state->port; in qe_uart_tx_pump() local
361 if (kfifo_is_empty(&tport->xmit_fifo) || uart_tx_stopped(port)) { in qe_uart_tx_pump()
370 !kfifo_is_empty(&tport->xmit_fifo)) { in qe_uart_tx_pump()
385 if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS) in qe_uart_tx_pump()
388 if (kfifo_is_empty(&tport->xmit_fifo)) { in qe_uart_tx_pump()
456 struct tty_port *tport = &port->state->port; in qe_uart_int_rx() local
478 if (tty_buffer_request_room(tport, i) < i) { in qe_uart_int_rx()
499 tty_insert_flip_char(tport, ch, flg); in qe_uart_int_rx()
518 tty_flip_buffer_push(tport); in qe_uart_int_rx()
548 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in qe_uart_int_rx()
H A Dmeson_uart.c144 struct tty_port *tport = &port->state->port; in meson_uart_start_tx() local
167 if (!kfifo_is_empty(&tport->xmit_fifo)) { in meson_uart_start_tx()
173 if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS) in meson_uart_start_tx()
179 struct tty_port *tport = &port->state->port; in meson_receive_chars() local
225 tty_insert_flip_char(tport, ch, flag); in meson_receive_chars()
228 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in meson_receive_chars()
232 tty_flip_buffer_push(tport); in meson_receive_chars()
H A Dmps2-uart.c171 struct tty_port *tport = &port->state->port; in mps2_uart_rx_chars() local
180 tty_flip_buffer_push(tport); in mps2_uart_rx_chars()
228 struct tty_port *tport = &port->state->port; in mps2_uart_oerrirq() local
232 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in mps2_uart_oerrirq()
233 tty_flip_buffer_push(tport); in mps2_uart_oerrirq()
H A Duartlite.c142 struct tty_port *tport = &port->state->port; in ulite_receive() local
179 tty_insert_flip_char(tport, ch, flag); in ulite_receive()
182 tty_insert_flip_char(tport, 0, TTY_FRAME); in ulite_receive()
185 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in ulite_receive()
192 struct tty_port *tport = &port->state->port; in ulite_transmit() local
214 if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS) in ulite_transmit()
H A Dmux.c208 struct tty_port *tport = &port->state->port; in mux_read() local
232 tty_insert_flip_char(tport, data & 0xFF, TTY_NORMAL); in mux_read()
236 tty_flip_buffer_push(tport); in mux_read()
H A Dserial-tegra.c517 struct tty_port *tport = &tup->uport.state->port; in tegra_uart_tx_dma_complete() local
528 if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS) in tegra_uart_tx_dma_complete()
537 struct tty_port *tport = &tup->uport.state->port; in tegra_uart_start_tx_dma() local
542 WARN_ON_ONCE(kfifo_out_linear(&tport->xmit_fifo, &tail, in tegra_uart_start_tx_dma()
568 struct tty_port *tport = &tup->uport.state->port; in tegra_uart_start_next_tx() local
576 count = kfifo_out_linear_ptr(&tport->xmit_fifo, &tail_ptr, in tegra_uart_start_next_tx()
595 struct tty_port *tport = &u->state->port; in tegra_uart_start_tx() local
597 if (!kfifo_is_empty(&tport->xmit_fifo) && !tup->tx_in_progress) in tegra_uart_start_tx()
637 struct tty_port *tport = &tup->uport.state->port; in tegra_uart_handle_tx_pio() local
641 if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS) in tegra_uart_handle_tx_pio()
H A Dst-asc.c250 struct tty_port *tport = &port->state->port; in asc_receive_chars() local
266 pm_wakeup_event(tport->tty->dev, 0); in asc_receive_chars()
314 tty_flip_buffer_push(tport); in asc_receive_chars()
390 struct tty_port *tport = &port->state->port; in asc_start_tx() local
392 if (!kfifo_is_empty(&tport->xmit_fifo)) in asc_start_tx()
H A Dcpm_uart.c233 struct tty_port *tport = &port->state->port; in cpm_uart_int_rx() local
265 if (tty_buffer_request_room(tport, i) < i) { in cpm_uart_int_rx()
291 tty_insert_flip_char(tport, ch, flg); in cpm_uart_int_rx()
311 tty_flip_buffer_push(tport); in cpm_uart_int_rx()
651 struct tty_port *tport = &port->state->port; in cpm_uart_tx_pump() local
676 if (kfifo_is_empty(&tport->xmit_fifo) || uart_tx_stopped(port)) { in cpm_uart_tx_pump()
685 !kfifo_is_empty(&tport->xmit_fifo)) { in cpm_uart_tx_pump()
698 if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS) in cpm_uart_tx_pump()
701 if (kfifo_is_empty(&tport->xmit_fifo)) { in cpm_uart_tx_pump()
/linux/net/netfilter/
H A Dnft_tproxy.c30 __be16 tport = 0; in nft_tproxy_eval_v4() local
59 tport = nft_reg_load_be16(&regs->data[priv->sreg_port]); in nft_tproxy_eval_v4()
60 if (!tport) in nft_tproxy_eval_v4()
61 tport = hp->dest; in nft_tproxy_eval_v4()
66 sk = nf_tproxy_handle_time_wait4(nft_net(pkt), skb, taddr, tport, sk); in nft_tproxy_eval_v4()
73 hp->source, tport, in nft_tproxy_eval_v4()
94 __be16 tport = 0; in nft_tproxy_eval_v6() local
127 tport = nft_reg_load_be16(&regs->data[priv->sreg_port]); in nft_tproxy_eval_v6()
128 if (!tport) in nft_tproxy_eval_v6()
129 tport = hp->dest; in nft_tproxy_eval_v6()
[all …]
/linux/drivers/tty/serial/8250/
H A D8250_pci1xxxx.c442 struct tty_port *tport = &port->state->port; in pci1xxxx_process_write_data() local
456 if (kfifo_len(&tport->xmit_fifo) < UART_BURST_SIZE) in pci1xxxx_process_write_data()
458 if (WARN_ON(kfifo_out(&tport->xmit_fifo, (u8 *)&c, sizeof(c)) != in pci1xxxx_process_write_data()
470 if (!kfifo_get(&tport->xmit_fifo, &c)) in pci1xxxx_process_write_data()
481 kfifo_len(&tport->xmit_fifo) >= UART_BURST_SIZE) in pci1xxxx_process_write_data()
489 struct tty_port *tport = &port->state->port; in pci1xxxx_tx_burst() local
500 if ((uart_tx_stopped(port)) || kfifo_is_empty(&tport->xmit_fifo)) { in pci1xxxx_tx_burst()
506 valid_byte_count = kfifo_len(&tport->xmit_fifo); in pci1xxxx_tx_burst()
513 if (kfifo_is_empty(&tport->xmit_fifo)) in pci1xxxx_tx_burst()
518 if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS) in pci1xxxx_tx_burst()
[all …]
H A D8250_dma.c18 struct tty_port *tport = &p->port.state->port; in __dma_tx_complete() local
31 if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS) in __dma_tx_complete()
89 struct tty_port *tport = &p->port.state->port; in serial8250_tx_dma() local
108 if (uart_tx_stopped(&p->port) || kfifo_is_empty(&tport->xmit_fifo)) { in serial8250_tx_dma()
117 ret = kfifo_dma_out_prepare_mapped(&tport->xmit_fifo, sgl, ARRAY_SIZE(sgl), in serial8250_tx_dma()
/linux/drivers/scsi/
H A Dscsi_netlink.c37 int err, tport; in scsi_nl_rcv_msg() local
80 tport = hdr->transport; in scsi_nl_rcv_msg()
81 if (tport == SCSI_NL_TRANSPORT) { in scsi_nl_rcv_msg()
/linux/drivers/usb/serial/
H A Dusb-serial.c254 static int serial_port_activate(struct tty_port *tport, struct tty_struct *tty) in serial_port_activate() argument
257 container_of(tport, struct usb_serial_port, port); in serial_port_activate()
302 static void serial_port_shutdown(struct tty_port *tport) in serial_port_shutdown() argument
305 container_of(tport, struct usb_serial_port, port); in serial_port_shutdown()
442 struct tty_port *tport = &port->port; in serial_get_serial() local
445 mutex_lock(&tport->mutex); in serial_get_serial()
447 close_delay = jiffies_to_msecs(tport->close_delay) / 10; in serial_get_serial()
448 closing_wait = tport->closing_wait; in serial_get_serial()
459 mutex_unlock(&tport->mutex); in serial_get_serial()
467 struct tty_port *tport = &port->port; in serial_set_serial() local
[all …]
/linux/drivers/mmc/core/
H A Dsdio_uart.c525 static bool uart_carrier_raised(struct tty_port *tport) in uart_carrier_raised() argument
528 container_of(tport, struct sdio_uart_port, port); in uart_carrier_raised()
547 static void uart_dtr_rts(struct tty_port *tport, bool active) in uart_dtr_rts() argument
550 container_of(tport, struct sdio_uart_port, port); in uart_dtr_rts()
576 static int sdio_uart_activate(struct tty_port *tport, struct tty_struct *tty) in sdio_uart_activate() argument
579 container_of(tport, struct sdio_uart_port, port); in sdio_uart_activate()
659 static void sdio_uart_shutdown(struct tty_port *tport) in sdio_uart_shutdown() argument
662 container_of(tport, struct sdio_uart_port, port); in sdio_uart_shutdown()
691 static void sdio_uart_port_destroy(struct tty_port *tport) in sdio_uart_port_destroy() argument
694 container_of(tport, struct sdio_uart_port, port); in sdio_uart_port_destroy()
/linux/drivers/scsi/fnic/
H A Dfnic_trace.c468 struct fnic_tport_s *tport, *next; in fnic_get_debug_info() local
506 list_for_each_entry_safe(tport, next, &iport->tport_list, links) { in fnic_get_debug_info()
509 tport->fcid, tport->state, tport->flags, in fnic_get_debug_info()
510 atomic_read(&tport->in_flight), in fnic_get_debug_info()
511 tport->retry_counter); in fnic_get_debug_info()
/linux/drivers/char/
H A Dttyprintk.c141 static void tpk_port_shutdown(struct tty_port *tport) in tpk_port_shutdown() argument
144 container_of(tport, struct ttyprintk_port, port); in tpk_port_shutdown()
/linux/drivers/pnp/
H A Dresource.c172 resource_size_t *port, *end, *tport, *tend; in pnp_check_port() local
200 tport = &tres->start; in pnp_check_port()
202 if (ranged_conflict(port, end, tport, tend)) in pnp_check_port()
219 tport = &tres->start; in pnp_check_port()
221 if (ranged_conflict(port, end, tport, tend)) in pnp_check_port()
/linux/drivers/target/sbp/
H A Dsbp_target.h159 struct sbp_tport *tport; member
226 struct sbp_tport *tport; member
/linux/drivers/usb/gadget/function/
H A Df_tcm.c1579 struct usbg_tport *tport = tpg->tport; in usbg_get_fabric_wwn() local
1581 return &tport->tport_name[0]; in usbg_get_fabric_wwn()
1656 struct usbg_tport *tport = container_of(wwn, struct usbg_tport, in usbg_make_tpg() local
1704 tpg->tport = tport; in usbg_make_tpg()
1777 struct usbg_tport *tport; in usbg_make_tport() local
1785 tport = kzalloc_obj(struct usbg_tport); in usbg_make_tport()
1786 if (!(tport)) in usbg_make_tport()
1789 tport->tport_wwpn = wwpn; in usbg_make_tport()
1790 snprintf(tport->tport_name, sizeof(tport->tport_name), "%s", wnn_name); in usbg_make_tport()
1791 return &tport->tport_wwn; in usbg_make_tport()
[all …]

123