Home
last modified time | relevance | path

Searched refs:tport (Results 1 – 25 of 54) 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 Dmsm_serial.c455 struct tty_port *tport = &port->state->port; in msm_complete_tx_dma() local
489 if (kfifo_len(&tport->xmit_fifo) < WAKEUP_CHARS) in msm_complete_tx_dma()
500 struct tty_port *tport = &port->state->port; in msm_handle_tx_dma() local
507 kfifo_dma_out_prepare(&tport->xmit_fifo, &dma->tx_sg, 1, count); in msm_handle_tx_dma()
563 struct tty_port *tport = &port->state->port; in msm_complete_rx_dma() local
581 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in msm_complete_rx_dma()
609 tty_insert_flip_char(tport, dma->rx.virt[i], flag); in msm_complete_rx_dma()
617 tty_flip_buffer_push(tport); in msm_complete_rx_dma()
729 struct tty_port *tport = &port->state->port; in msm_handle_rx_dm() local
736 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in msm_handle_rx_dm()
[all …]
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 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 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()
/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/xen/
H A Dxen-scsiback.c172 struct scsiback_tport *tport; member
224 tpg->tport->tport_name, pending_req->v2p->lun, in scsiback_print_status()
964 if (!strcmp(phy, tpg_entry->tport->tport_name) || in scsiback_add_translation_entry()
1327 static char *scsiback_dump_proto_id(struct scsiback_tport *tport) in scsiback_dump_proto_id() argument
1329 switch (tport->tport_proto_id) { in scsiback_dump_proto_id()
1347 struct scsiback_tport *tport = tpg->tport; in scsiback_get_fabric_wwn() local
1349 return &tport->tport_name[0]; in scsiback_get_fabric_wwn()
1364 struct scsiback_tport *tport; in scsiback_make_tport() local
1369 tport = kzalloc_obj(struct scsiback_tport); in scsiback_make_tport()
1370 if (!tport) in scsiback_make_tport()
[all …]
/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/vhost/
H A Dscsi.c168 struct vhost_scsi_tport *tport; member
359 struct vhost_scsi_tport *tport = tpg->tport; in vhost_scsi_get_fabric_wwn() local
361 return &tport->tport_name[0]; in vhost_scsi_get_fabric_wwn()
2036 tv_tport = tpg->tport; in vhost_scsi_set_endpoint()
2152 tv_tport = tpg->tport; in vhost_scsi_clear_endpoint()
2480 static char *vhost_scsi_dump_proto_id(struct vhost_scsi_tport *tport) in vhost_scsi_dump_proto_id() argument
2482 switch (tport->tport_proto_id) { in vhost_scsi_dump_proto_id()
2676 " %s Initiator Port: %s\n", vhost_scsi_dump_proto_id(tpg->tport), in vhost_scsi_drop_nexus()
2717 struct vhost_scsi_tport *tport_wwn = tpg->tport; in vhost_scsi_tpg_nexus_store()
2799 struct vhost_scsi_tport *tport = container_of(wwn, in vhost_scsi_make_tpg() 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/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/target/sbp/
H A Dsbp_target.h159 struct sbp_tport *tport; member
226 struct sbp_tport *tport; member
/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/include/linux/
H A Dtty_port.h290 static inline class_tty_port_tty_t class_tty_port_tty_constructor(struct tty_port *tport) in class_tty_port_tty_constructor() argument
293 .lock = tty_port_tty_get(tport), in class_tty_port_tty_constructor()

123