Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/target/tcm_fc/
Dtfc_sess.c57 struct ft_tport *tport; in ft_tport_get() local
60 tport = rcu_dereference_protected(lport->prov[FC_TYPE_FCP], in ft_tport_get()
62 if (tport && tport->tpg) in ft_tport_get()
63 return tport; in ft_tport_get()
69 if (tport) { in ft_tport_get()
70 tport->tpg = tpg; in ft_tport_get()
71 tpg->tport = tport; in ft_tport_get()
72 return tport; in ft_tport_get()
75 tport = kzalloc(sizeof(*tport), GFP_KERNEL); in ft_tport_get()
76 if (!tport) in ft_tport_get()
[all …]
Dtcm_fc.h42 struct ft_tport *tport; member
98 struct ft_tport *tport; /* active tport or NULL */ member
Dtfc_conf.c371 if (tpg->tport) { in ft_del_tpg()
372 tpg->tport->tpg = NULL; in ft_del_tpg()
373 tpg->tport = NULL; in ft_del_tpg()
Dtfc_cmd.c349 ft_send_resp_status(cmd->sess->tport->lport, in ft_send_resp_code()
455 struct fc_lport *lport = sess->tport->lport; in ft_recv_cmd()
476 queue_work(sess->tport->tpg->workqueue, &cmd->work); in ft_recv_cmd()
Dtfc_io.c338 queue_work(cmd->sess->tport->tpg->workqueue, &cmd->work); in ft_recv_write_data()
/linux-4.1.27/drivers/usb/serial/
Dti_usb_3410_5052.c116 static void ti_send(struct ti_port *tport);
117 static int ti_set_mcr(struct ti_port *tport, unsigned int mcr);
118 static int ti_get_lsr(struct ti_port *tport, u8 *lsr);
119 static int ti_get_serial_info(struct ti_port *tport,
121 static int ti_set_serial_info(struct tty_struct *tty, struct ti_port *tport,
123 static void ti_handle_new_msr(struct ti_port *tport, __u8 msr);
125 static void ti_stop_read(struct ti_port *tport, struct tty_struct *tty);
126 static int ti_restart_read(struct ti_port *tport, struct tty_struct *tty);
360 struct ti_port *tport; in ti_port_probe() local
362 tport = kzalloc(sizeof(*tport), GFP_KERNEL); in ti_port_probe()
[all …]
Dusb-serial.c222 static int serial_port_activate(struct tty_port *tport, struct tty_struct *tty) in serial_port_activate() argument
225 container_of(tport, struct usb_serial_port, port); in serial_port_activate()
261 static void serial_port_shutdown(struct tty_port *tport) in serial_port_shutdown() argument
264 container_of(tport, struct usb_serial_port, port); in serial_port_shutdown()
Dmos7840.c772 struct tty_port *tport = &mos7840_port->port->port; in mos7840_bulk_in_callback() local
773 tty_insert_flip_string(tport, data, urb->actual_length); in mos7840_bulk_in_callback()
774 tty_flip_buffer_push(tport); in mos7840_bulk_in_callback()
/linux-4.1.27/drivers/target/sbp/
Dsbp_target.c296 struct sbp_tport *tport = agent->tport; in sbp_management_request_login() local
297 struct sbp_tpg *tpg = tport->tpg; in sbp_management_request_login()
388 tport->max_logins_per_lun) { in sbp_management_request_login()
428 tport->max_reconnect_timeout) - 1; in sbp_management_request_login()
528 struct sbp_tport *tport = agent->tport; in sbp_management_request_reconnect() local
529 struct sbp_tpg *tpg = tport->tpg; in sbp_management_request_reconnect()
587 struct sbp_tport *tport = agent->tport; in sbp_management_request_logout() local
588 struct sbp_tpg *tpg = tport->tpg; in sbp_management_request_logout()
1596 if (!agent->tport->enable) in sbp_mgt_agent_rw()
1645 struct sbp_tport *tport) in sbp_management_agent_register() argument
[all …]
Dsbp_target.h167 struct sbp_tport *tport; member
234 struct sbp_tport *tport; member
/linux-4.1.27/drivers/tty/serial/
D68328serial.c109 struct tty_port tport; member
303 tty_insert_flip_char(&info->tport, ch, flag); in receive_chars()
308 tty_schedule_flip(&info->tport); in receive_chars()
350 struct tty_struct *tty = tty_port_tty_get(&info->tport); in rs_interrupt()
378 if (info->tport.flags & ASYNC_INITIALIZED) in startup()
418 info->tport.flags |= ASYNC_INITIALIZED; in startup()
433 if (!(info->tport.flags & ASYNC_INITIALIZED)) in shutdown()
446 info->tport.flags &= ~ASYNC_INITIALIZED; in shutdown()
817 tmp.flags = info->tport.flags;
819 tmp.close_delay = info->tport.close_delay;
[all …]
Dmsm_smd_tty.c91 static int smd_tty_port_activate(struct tty_port *tport, struct tty_struct *tty) in smd_tty_port_activate() argument
93 struct smd_tty_info *info = container_of(tport, struct smd_tty_info, in smd_tty_port_activate()
118 static void smd_tty_port_shutdown(struct tty_port *tport) in smd_tty_port_shutdown() argument
120 struct smd_tty_info *info = container_of(tport, struct smd_tty_info, in smd_tty_port_shutdown()
Dsunhv.c186 struct tty_port *tport = NULL; in receive_chars() local
189 tport = &port->state->port; in receive_chars()
194 return tport; in receive_chars()
217 struct tty_port *tport; in sunhv_interrupt() local
221 tport = receive_chars(port); in sunhv_interrupt()
225 if (tport) in sunhv_interrupt()
226 tty_flip_buffer_push(tport); in sunhv_interrupt()
Dsn_console.c450 struct tty_port *tport = NULL; in sn_receive_chars() local
465 tport = &port->sc_port.state->port; in sn_receive_chars()
505 if (tport) { in sn_receive_chars()
506 if (tty_insert_flip_char(tport, ch, TTY_NORMAL) == 0) in sn_receive_chars()
512 if (tport) in sn_receive_chars()
513 tty_flip_buffer_push(tport); in sn_receive_chars()
Dlpc32xx_hs.c260 struct tty_port *tport = &port->state->port; in __serial_lpc32xx_rx() local
275 tty_insert_flip_char(tport, 0, TTY_FRAME); in __serial_lpc32xx_rx()
278 tty_insert_flip_char(tport, (tmp & 0xFF), flag); in __serial_lpc32xx_rx()
284 tty_flip_buffer_push(tport); in __serial_lpc32xx_rx()
328 struct tty_port *tport = &port->state->port; in serial_lpc32xx_interrupt() local
352 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in serial_lpc32xx_interrupt()
353 tty_schedule_flip(tport); in serial_lpc32xx_interrupt()
Dsh-sci.c660 struct tty_port *tport = &port->state->port; in sci_receive_chars() local
671 count = tty_buffer_request_room(tport, sci_rxfill(port)); in sci_receive_chars()
683 tty_insert_flip_char(tport, c, TTY_NORMAL); in sci_receive_chars()
725 tty_insert_flip_char(tport, c, flag); in sci_receive_chars()
738 tty_flip_buffer_push(tport); in sci_receive_chars()
780 struct tty_port *tport = &port->state->port; in sci_handle_errors() local
788 if (tty_insert_flip_char(tport, 0, TTY_OVERRUN)) in sci_handle_errors()
811 if (tty_insert_flip_char(tport, 0, TTY_BREAK)) in sci_handle_errors()
819 if (tty_insert_flip_char(tport, 0, TTY_FRAME)) in sci_handle_errors()
830 if (tty_insert_flip_char(tport, 0, TTY_PARITY)) in sci_handle_errors()
[all …]
Dmsm_serial.c104 struct tty_port *tport = &port->state->port; in handle_rx_dm() local
111 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in handle_rx_dm()
159 tty_insert_flip_char(tport, buf[i], flag); in handle_rx_dm()
165 tty_flip_buffer_push(tport); in handle_rx_dm()
176 struct tty_port *tport = &port->state->port; in handle_rx() local
185 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in handle_rx()
219 tty_insert_flip_char(tport, c, flag); in handle_rx()
223 tty_flip_buffer_push(tport); in handle_rx()
Dmux.c235 struct tty_port *tport = &port->state->port; in mux_read() local
259 tty_insert_flip_char(tport, data & 0xFF, TTY_NORMAL); in mux_read()
263 tty_flip_buffer_push(tport); in mux_read()
Dlantiq.c160 struct tty_port *tport = &port->state->port; in lqasc_rx_chars() local
169 tty_flip_buffer_push(tport); in lqasc_rx_chars()
201 tty_insert_flip_char(tport, ch, flag); in lqasc_rx_chars()
209 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in lqasc_rx_chars()
213 tty_flip_buffer_push(tport); in lqasc_rx_chars()
Duartlite.c117 struct tty_port *tport = &port->state->port; in ulite_receive() local
154 tty_insert_flip_char(tport, ch, flag); in ulite_receive()
157 tty_insert_flip_char(tport, 0, TTY_FRAME); in ulite_receive()
160 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in ulite_receive()
Dmeson_uart.c174 struct tty_port *tport = &port->state->port; in meson_receive_chars() local
210 tty_insert_flip_char(tport, ch, flag); in meson_receive_chars()
213 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in meson_receive_chars()
218 tty_flip_buffer_push(tport); in meson_receive_chars()
Dvt8500_serial.c167 struct tty_port *tport = &port->state->port; in handle_rx() local
174 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in handle_rx()
197 tty_insert_flip_char(tport, c, flag); in handle_rx()
201 tty_flip_buffer_push(tport); in handle_rx()
Dtimbuart.c94 struct tty_port *tport = &port->state->port; in timbuart_rx_chars() local
99 tty_insert_flip_char(tport, ch, TTY_NORMAL); in timbuart_rx_chars()
103 tty_flip_buffer_push(tport); in timbuart_rx_chars()
Dmen_z135_uart.c250 struct tty_port *tport = &port->state->port; in men_z135_handle_rx() local
266 room = tty_buffer_request_room(tport, size); in men_z135_handle_rx()
280 copied = tty_insert_flip_string(tport, uart->rxbuf, room); in men_z135_handle_rx()
288 tty_flip_buffer_push(tport); in men_z135_handle_rx()
Ducc_uart.c464 struct tty_port *tport = &port->state->port; in qe_uart_int_rx() local
486 if (tty_buffer_request_room(tport, i) < i) { in qe_uart_int_rx()
507 tty_insert_flip_char(tport, ch, flg); in qe_uart_int_rx()
525 tty_flip_buffer_push(tport); in qe_uart_int_rx()
555 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in qe_uart_int_rx()
Dst-asc.c289 struct tty_port *tport = &port->state->port; in asc_receive_chars() local
295 pm_wakeup_event(tport->tty->dev, 0); in asc_receive_chars()
343 tty_flip_buffer_push(tport); in asc_receive_chars()
Defm32-uart.c247 struct tty_port *tport = &port->state->port; in efm32_uart_rxirq() local
261 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in efm32_uart_rxirq()
268 tty_flip_buffer_push(tport); in efm32_uart_rxirq()
Dpch_uart.c646 struct tty_port *tport = &port->state->port; in push_rx() local
648 tty_insert_flip_string(tport, buf, size); in push_rx()
649 tty_flip_buffer_push(tport); in push_rx()
674 struct tty_port *tport = &port->state->port; in dma_push_rx() local
676 room = tty_buffer_request_room(tport, size); in dma_push_rx()
684 tty_insert_flip_string(tport, sg_virt(&priv->sg_rx), size); in dma_push_rx()
Datmel_serial.c928 struct tty_port *tport = &port->state->port; in atmel_rx_from_dma() local
979 tty_insert_flip_string(tport, ring->buf + ring->tail, count); in atmel_rx_from_dma()
988 tty_insert_flip_string(tport, ring->buf + ring->tail, count); in atmel_rx_from_dma()
1007 tty_flip_buffer_push(tport); in atmel_rx_from_dma()
1404 struct tty_port *tport = &port->state->port; in atmel_rx_from_pdc() local
1443 tty_insert_flip_string(tport, pdc->buf + pdc->ofs, in atmel_rx_from_pdc()
1472 tty_flip_buffer_push(tport); in atmel_rx_from_pdc()
Dserial_core.c2283 struct tty_port *tport = &state->port; in uart_poll_init() local
2286 mutex_lock(&tport->mutex); in uart_poll_init()
2291 if (!test_bit(ASYNCB_INITIALIZED, &tport->flags)) in uart_poll_init()
2293 mutex_unlock(&tport->mutex); in uart_poll_init()
2919 struct tty_port *tport = &port->state->port; in uart_insert_char() local
2922 if (tty_insert_flip_char(tport, ch, flag) == 0) in uart_insert_char()
2930 if (tty_insert_flip_char(tport, 0, TTY_OVERRUN) == 0) in uart_insert_char()
Dmpc52xx_uart.c1370 struct tty_port *tport = &port->state->port; in mpc52xx_uart_int_rx_chars() local
1415 tty_insert_flip_char(tport, ch, flag); in mpc52xx_uart_int_rx_chars()
1422 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in mpc52xx_uart_int_rx_chars()
1428 tty_flip_buffer_push(tport); in mpc52xx_uart_int_rx_chars()
Dsirfsoc_uart.c485 struct tty_port *tport = &port->state->port; in sirfsoc_uart_insert_rx_buf_to_tty() local
488 inserted = tty_insert_flip_string(tport, in sirfsoc_uart_insert_rx_buf_to_tty()
/linux-4.1.27/drivers/xen/
Dxen-scsiback.c179 struct scsiback_tport *tport; member
273 tpg->tport->tport_name, pending_req->v2p->lun, in scsiback_print_status()
887 if (!strcmp(phy, tpg_entry->tport->tport_name) || in scsiback_add_translation_entry()
1241 static char *scsiback_dump_proto_id(struct scsiback_tport *tport) in scsiback_dump_proto_id() argument
1243 switch (tport->tport_proto_id) { in scsiback_dump_proto_id()
1261 struct scsiback_tport *tport = tpg->tport; in scsiback_get_fabric_proto_ident() local
1263 switch (tport->tport_proto_id) { in scsiback_get_fabric_proto_ident()
1272 tport->tport_proto_id); in scsiback_get_fabric_proto_ident()
1283 struct scsiback_tport *tport = tpg->tport; in scsiback_get_fabric_wwn() local
1285 return &tport->tport_name[0]; in scsiback_get_fabric_wwn()
[all …]
/linux-4.1.27/drivers/tty/
Damiserial.c48 tty->name, (info->tport.flags), serial_driver->refcount,info->count,tty->count,s)
95 struct tty_port tport; member
315 if (info->tport.flags & ASYNC_SAK) in receive_chars()
316 do_SAK(info->tport.tty); in receive_chars()
330 tty_insert_flip_char(&info->tport, ch, flag); in receive_chars()
332 tty_insert_flip_char(&info->tport, 0, TTY_OVERRUN); in receive_chars()
333 tty_flip_buffer_push(&info->tport); in receive_chars()
350 || info->tport.tty->stopped in transmit_chars()
351 || info->tport.tty->hw_stopped) { in transmit_chars()
366 tty_wakeup(info->tport.tty); in transmit_chars()
[all …]
Disicom.c811 static int isicom_activate(struct tty_port *tport, struct tty_struct *tty) in isicom_activate() argument
813 struct isi_port *port = container_of(tport, struct isi_port, port); in isicom_activate()
817 if (tty_port_alloc_xmit_buf(tport) < 0) in isicom_activate()
871 struct tty_port *tport; in isicom_open() local
873 tport = isicom_find_port(tty); in isicom_open()
874 if (tport == NULL) in isicom_open()
876 port = container_of(tport, struct isi_port, port); in isicom_open()
879 return tty_port_open(tport, tty, filp); in isicom_open()
1614 struct tty_port *tport = &board->ports[index].port; in isicom_probe() local
1615 tty_port_init(tport); in isicom_probe()
[all …]
Dnozomi.c1606 static int ntty_activate(struct tty_port *tport, struct tty_struct *tty) in ntty_activate() argument
1608 struct port *port = container_of(tport, struct port, port); in ntty_activate()
1618 printk("noz: activated %d: %p\n", tty->index, tport); in ntty_activate()
1628 static void ntty_shutdown(struct tty_port *tport) in ntty_shutdown() argument
1630 struct port *port = container_of(tport, struct port, port); in ntty_shutdown()
1640 printk("noz: shutdown %p\n", tport); in ntty_shutdown()
/linux-4.1.27/drivers/vhost/
Dscsi.c143 struct vhost_scsi_tport *tport; member
304 struct vhost_scsi_tport *tport = tpg->tport; in vhost_scsi_get_fabric_proto_ident() local
306 switch (tport->tport_proto_id) { in vhost_scsi_get_fabric_proto_ident()
315 " SAS emulation\n", tport->tport_proto_id); in vhost_scsi_get_fabric_proto_ident()
326 struct vhost_scsi_tport *tport = tpg->tport; in vhost_scsi_get_fabric_wwn() local
328 return &tport->tport_name[0]; in vhost_scsi_get_fabric_wwn()
352 struct vhost_scsi_tport *tport = tpg->tport; in vhost_scsi_get_pr_transport_id() local
354 switch (tport->tport_proto_id) { in vhost_scsi_get_pr_transport_id()
366 " SAS emulation\n", tport->tport_proto_id); in vhost_scsi_get_pr_transport_id()
382 struct vhost_scsi_tport *tport = tpg->tport; in vhost_scsi_get_pr_transport_id_len() local
[all …]
/linux-4.1.27/drivers/scsi/
Dscsi_netlink.c51 int err, tport; in scsi_nl_rcv_msg() local
94 tport = hdr->transport; in scsi_nl_rcv_msg()
95 if (tport == SCSI_NL_TRANSPORT) { in scsi_nl_rcv_msg()
/linux-4.1.27/drivers/usb/gadget/legacy/
Dtcm_usb_gadget.c1281 struct usbg_tport *tport = tpg->tport; in usbg_get_fabric_proto_ident() local
1284 switch (tport->tport_proto_id) { in usbg_get_fabric_proto_ident()
1298 struct usbg_tport *tport = tpg->tport; in usbg_get_fabric_wwn() local
1300 return &tport->tport_name[0]; in usbg_get_fabric_wwn()
1324 struct usbg_tport *tport = tpg->tport; in usbg_get_pr_transport_id() local
1327 switch (tport->tport_proto_id) { in usbg_get_pr_transport_id()
1346 struct usbg_tport *tport = tpg->tport; in usbg_get_pr_transport_id_len() local
1349 switch (tport->tport_proto_id) { in usbg_get_pr_transport_id_len()
1368 struct usbg_tport *tport = tpg->tport; in usbg_parse_pr_out_transport_id() local
1371 switch (tport->tport_proto_id) { in usbg_parse_pr_out_transport_id()
[all …]
Dtcm_usb_gadget.h46 struct usbg_tport *tport; member
/linux-4.1.27/drivers/mmc/card/
Dsdio_uart.c548 static int uart_carrier_raised(struct tty_port *tport) in uart_carrier_raised() argument
551 container_of(tport, struct sdio_uart_port, port); in uart_carrier_raised()
571 static void uart_dtr_rts(struct tty_port *tport, int onoff) in uart_dtr_rts() argument
574 container_of(tport, struct sdio_uart_port, port); in uart_dtr_rts()
600 static int sdio_uart_activate(struct tty_port *tport, struct tty_struct *tty) in sdio_uart_activate() argument
603 container_of(tport, struct sdio_uart_port, port); in sdio_uart_activate()
683 static void sdio_uart_shutdown(struct tty_port *tport) in sdio_uart_shutdown() argument
686 container_of(tport, struct sdio_uart_port, port); in sdio_uart_shutdown()
715 static void sdio_uart_port_destroy(struct tty_port *tport) in sdio_uart_port_destroy() argument
718 container_of(tport, struct sdio_uart_port, port); in sdio_uart_port_destroy()
/linux-4.1.27/drivers/pnp/
Dresource.c170 resource_size_t *port, *end, *tport, *tend; in pnp_check_port() local
198 tport = &tres->start; in pnp_check_port()
200 if (ranged_conflict(port, end, tport, tend)) in pnp_check_port()
217 tport = &tres->start; in pnp_check_port()
219 if (ranged_conflict(port, end, tport, tend)) in pnp_check_port()
/linux-4.1.27/arch/mn10300/kernel/
Dmn10300-serial.c527 struct tty_port *tport = &port->uart.state->port; in mn10300_serial_receive_interrupt() local
537 count = tty_buffer_request_room(tport, count); in mn10300_serial_receive_interrupt()
539 if (!tport->low_latency) in mn10300_serial_receive_interrupt()
540 tty_flip_buffer_push(tport); in mn10300_serial_receive_interrupt()
548 if (push && !tport->low_latency) in mn10300_serial_receive_interrupt()
549 tty_flip_buffer_push(tport); in mn10300_serial_receive_interrupt()
669 tty_insert_flip_char(tport, ch, flag); in mn10300_serial_receive_interrupt()
676 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in mn10300_serial_receive_interrupt()
680 if (!tport->low_latency) in mn10300_serial_receive_interrupt()
681 tty_flip_buffer_push(tport); in mn10300_serial_receive_interrupt()
/linux-4.1.27/drivers/tty/serial/cpm_uart/
Dcpm_uart_core.c249 struct tty_port *tport = &port->state->port; in cpm_uart_int_rx() local
281 if (tty_buffer_request_room(tport, i) < i) { in cpm_uart_int_rx()
307 tty_insert_flip_char(tport, ch, flg); in cpm_uart_int_rx()
327 tty_flip_buffer_push(tport); in cpm_uart_int_rx()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_stats.h500 estats->s = le32_to_cpu(tport->s) + fwstats->s; \
Dbnx2x_stats.c916 struct tstorm_per_port_stats *tport = in bnx2x_storm_stats_update() local