Home
last modified time | relevance | path

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

123

/drivers/target/tcm_fc/
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(sizeof(*tport), GFP_KERNEL); in ft_tport_get()
63 if (!tport) in ft_tport_get()
[all …]
Dtcm_fc.h33 struct ft_tport *tport; member
89 struct ft_tport *tport; /* active tport or NULL */ member
Dtfc_conf.c289 if (tpg->tport) { in ft_del_tpg()
290 tpg->tport->tpg = NULL; in ft_del_tpg()
291 tpg->tport = NULL; in ft_del_tpg()
/drivers/usb/serial/
Dti_usb_3410_5052.c328 static void ti_send(struct ti_port *tport);
329 static int ti_set_mcr(struct ti_port *tport, unsigned int mcr);
330 static int ti_get_lsr(struct ti_port *tport, u8 *lsr);
332 static void ti_handle_new_msr(struct ti_port *tport, u8 msr);
334 static void ti_stop_read(struct ti_port *tport, struct tty_struct *tty);
335 static int ti_restart_read(struct ti_port *tport, struct tty_struct *tty);
600 struct ti_port *tport; in ti_port_probe() local
602 tport = kzalloc(sizeof(*tport), GFP_KERNEL); in ti_port_probe()
603 if (!tport) in ti_port_probe()
606 spin_lock_init(&tport->tp_lock); in ti_port_probe()
[all …]
Dusb-serial.c260 static int serial_port_activate(struct tty_port *tport, struct tty_struct *tty) in serial_port_activate() argument
263 container_of(tport, struct usb_serial_port, port); in serial_port_activate()
299 static void serial_port_shutdown(struct tty_port *tport) in serial_port_shutdown() argument
302 container_of(tport, struct usb_serial_port, port); in serial_port_shutdown()
440 struct tty_port *tport = &port->port; in serial_get_serial() local
443 mutex_lock(&tport->mutex); in serial_get_serial()
445 close_delay = jiffies_to_msecs(tport->close_delay) / 10; in serial_get_serial()
446 closing_wait = tport->closing_wait; in serial_get_serial()
457 mutex_unlock(&tport->mutex); in serial_get_serial()
465 struct tty_port *tport = &port->port; in serial_set_serial() local
[all …]
/drivers/target/sbp/
Dsbp_target.c262 struct sbp_tport *tport = agent->tport; in sbp_management_request_login() local
263 struct sbp_tpg *tpg = tport->tpg; in sbp_management_request_login()
353 tport->max_logins_per_lun) { in sbp_management_request_login()
393 tport->max_reconnect_timeout) - 1; in sbp_management_request_login()
493 struct sbp_tport *tport = agent->tport; in sbp_management_request_reconnect() local
494 struct sbp_tpg *tpg = tport->tpg; in sbp_management_request_reconnect()
552 struct sbp_tport *tport = agent->tport; in sbp_management_request_logout() local
553 struct sbp_tpg *tpg = tport->tpg; in sbp_management_request_logout()
1587 if (!agent->tport->enable) in sbp_mgt_agent_rw()
1635 struct sbp_tport *tport) in sbp_management_agent_register() argument
[all …]
Dsbp_target.h159 struct sbp_tport *tport; member
226 struct sbp_tport *tport; member
/drivers/nvme/target/
Dfcloop.c239 struct fcloop_tport *tport; member
258 struct fcloop_tport *tport; member
270 struct fcloop_tport *tport; member
381 struct fcloop_tport *tport = targetport->private; in fcloop_h2t_xmt_ls_rsp() local
382 struct nvme_fc_remote_port *remoteport = tport->remoteport; in fcloop_h2t_xmt_ls_rsp()
405 struct fcloop_tport *tport = in fcloop_tport_lsrqst_work() local
409 spin_lock(&tport->lock); in fcloop_tport_lsrqst_work()
411 tls_req = list_first_entry_or_null(&tport->ls_list, in fcloop_tport_lsrqst_work()
417 spin_unlock(&tport->lock); in fcloop_tport_lsrqst_work()
425 spin_lock(&tport->lock); in fcloop_tport_lsrqst_work()
[all …]
/drivers/tty/
Damiserial.c70 struct tty_port tport; member
241 if (info->tport.flags & ASYNC_SAK) in receive_chars()
242 do_SAK(info->tport.tty); in receive_chars()
256 tty_insert_flip_char(&info->tport, ch, flag); in receive_chars()
258 tty_insert_flip_char(&info->tport, 0, TTY_OVERRUN); in receive_chars()
259 tty_flip_buffer_push(&info->tport); in receive_chars()
276 || info->tport.tty->flow.stopped in transmit_chars()
277 || info->tport.tty->hw_stopped) { in transmit_chars()
292 tty_wakeup(info->tport.tty); in transmit_chars()
306 struct tty_port *port = &info->tport; in check_modem_status()
[all …]
/drivers/xen/
Dxen-scsiback.c172 struct scsiback_tport *tport; member
224 tpg->tport->tport_name, pending_req->v2p->lun, in scsiback_print_status()
885 if (!strcmp(phy, tpg_entry->tport->tport_name) || in scsiback_add_translation_entry()
1249 static char *scsiback_dump_proto_id(struct scsiback_tport *tport) in scsiback_dump_proto_id() argument
1251 switch (tport->tport_proto_id) { in scsiback_dump_proto_id()
1269 struct scsiback_tport *tport = tpg->tport; in scsiback_get_fabric_wwn() local
1271 return &tport->tport_name[0]; in scsiback_get_fabric_wwn()
1286 struct scsiback_tport *tport; in scsiback_make_tport() local
1291 tport = kzalloc(sizeof(struct scsiback_tport), GFP_KERNEL); in scsiback_make_tport()
1292 if (!tport) in scsiback_make_tport()
[all …]
/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.c1344 if (vscsi->tport.enabled) in ibmvscsis_adapter_idle()
2208 static int ibmvscsis_make_nexus(struct ibmvscsis_tport *tport) in ibmvscsis_make_nexus() argument
2210 char *name = tport->tport_name; in ibmvscsis_make_nexus()
2212 struct scsi_info *vscsi = container_of(tport, struct scsi_info, tport); in ibmvscsis_make_nexus()
2215 if (tport->ibmv_nexus) { in ibmvscsis_make_nexus()
2226 nexus->se_sess = target_setup_session(&tport->se_tpg, 0, 0, in ibmvscsis_make_nexus()
2234 tport->ibmv_nexus = nexus; in ibmvscsis_make_nexus()
2243 static int ibmvscsis_drop_nexus(struct ibmvscsis_tport *tport) in ibmvscsis_drop_nexus() argument
2248 nexus = tport->ibmv_nexus; in ibmvscsis_drop_nexus()
2260 tport->ibmv_nexus = NULL; in ibmvscsis_drop_nexus()
[all …]
/drivers/vhost/
Dscsi.c123 struct vhost_scsi_tport *tport; member
300 struct vhost_scsi_tport *tport = tpg->tport; in vhost_scsi_get_fabric_wwn() local
302 return &tport->tport_name[0]; in vhost_scsi_get_fabric_wwn()
1573 tv_tport = tpg->tport; in vhost_scsi_set_endpoint()
1691 tv_tport = tpg->tport; in vhost_scsi_clear_endpoint()
1930 static char *vhost_scsi_dump_proto_id(struct vhost_scsi_tport *tport) in vhost_scsi_dump_proto_id() argument
1932 switch (tport->tport_proto_id) { in vhost_scsi_dump_proto_id()
2144 " %s Initiator Port: %s\n", vhost_scsi_dump_proto_id(tpg->tport), in vhost_scsi_drop_nexus()
2185 struct vhost_scsi_tport *tport_wwn = tpg->tport; in vhost_scsi_tpg_nexus_store()
2267 struct vhost_scsi_tport *tport = container_of(wwn, in vhost_scsi_make_tpg() local
[all …]
/drivers/scsi/
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()
/drivers/tty/serial/
Dsunhv.c188 struct tty_port *tport = NULL; in receive_chars() local
191 tport = &port->state->port; in receive_chars()
196 return tport; in receive_chars()
219 struct tty_port *tport; in sunhv_interrupt() local
223 tport = receive_chars(port); in sunhv_interrupt()
227 if (tport) in sunhv_interrupt()
228 tty_flip_buffer_push(tport); in sunhv_interrupt()
Dlpc32xx_hs.c253 struct tty_port *tport = &port->state->port; in __serial_lpc32xx_rx() local
268 tty_insert_flip_char(tport, 0, TTY_FRAME); in __serial_lpc32xx_rx()
271 tty_insert_flip_char(tport, (tmp & 0xFF), flag); in __serial_lpc32xx_rx()
276 tty_flip_buffer_push(tport); in __serial_lpc32xx_rx()
319 struct tty_port *tport = &port->state->port; in serial_lpc32xx_interrupt() local
343 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in serial_lpc32xx_interrupt()
344 tty_flip_buffer_push(tport); in serial_lpc32xx_interrupt()
Dmps2-uart.c190 struct tty_port *tport = &port->state->port; in mps2_uart_rx_chars() local
199 tty_flip_buffer_push(tport); in mps2_uart_rx_chars()
247 struct tty_port *tport = &port->state->port; in mps2_uart_oerrirq() local
251 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in mps2_uart_oerrirq()
252 tty_flip_buffer_push(tport); in mps2_uart_oerrirq()
Dmsm_serial.c535 struct tty_port *tport = &port->state->port; in msm_complete_rx_dma() local
553 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in msm_complete_rx_dma()
583 tty_insert_flip_char(tport, dma->virt[i], flag); in msm_complete_rx_dma()
591 tty_flip_buffer_push(tport); in msm_complete_rx_dma()
703 struct tty_port *tport = &port->state->port; in msm_handle_rx_dm() local
710 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in msm_handle_rx_dm()
758 tty_insert_flip_char(tport, buf[i], flag); in msm_handle_rx_dm()
763 tty_flip_buffer_push(tport); in msm_handle_rx_dm()
777 struct tty_port *tport = &port->state->port; in msm_handle_rx() local
786 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in msm_handle_rx()
[all …]
Dmux.c227 struct tty_port *tport = &port->state->port; in mux_read() local
251 tty_insert_flip_char(tport, data & 0xFF, TTY_NORMAL); in mux_read()
255 tty_flip_buffer_push(tport); in mux_read()
Dqcom_geni_serial.c543 struct tty_port *tport; in handle_rx_console() local
546 tport = &uport->state->port; in handle_rx_console()
569 tty_insert_flip_char(tport, buf[c], TTY_NORMAL); in handle_rx_console()
573 tty_flip_buffer_push(tport); in handle_rx_console()
586 struct tty_port *tport; in handle_rx_uart() local
592 tport = &uport->state->port; in handle_rx_uart()
597 ret = tty_insert_flip_string(tport, port->rx_fifo, bytes); in handle_rx_uart()
604 tty_flip_buffer_push(tport); in handle_rx_uart()
835 struct tty_port *tport = &uport->state->port; in qcom_geni_serial_isr() local
855 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in qcom_geni_serial_isr()
Dsh-sci.c855 struct tty_port *tport = &port->state->port; in sci_receive_chars() local
866 count = tty_buffer_request_room(tport, sci_rxfill(port)); in sci_receive_chars()
877 tty_insert_flip_char(tport, c, TTY_NORMAL); in sci_receive_chars()
907 tty_insert_flip_char(tport, c, flag); in sci_receive_chars()
920 tty_flip_buffer_push(tport); in sci_receive_chars()
933 struct tty_port *tport = &port->state->port; in sci_handle_errors() local
941 if (tty_insert_flip_char(tport, 0, TTY_OVERRUN)) in sci_handle_errors()
951 if (tty_insert_flip_char(tport, 0, TTY_FRAME)) in sci_handle_errors()
961 if (tty_insert_flip_char(tport, 0, TTY_PARITY)) in sci_handle_errors()
968 tty_flip_buffer_push(tport); in sci_handle_errors()
[all …]
Dmvebu-uart.c237 struct tty_port *tport = &port->state->port; in mvebu_uart_rx_chars() local
290 tty_insert_flip_char(tport, ch, flag); in mvebu_uart_rx_chars()
293 tty_insert_flip_char(tport, 0, TTY_BREAK); in mvebu_uart_rx_chars()
296 tty_insert_flip_char(tport, 0, TTY_FRAME); in mvebu_uart_rx_chars()
299 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in mvebu_uart_rx_chars()
305 tty_flip_buffer_push(tport); in mvebu_uart_rx_chars()
/drivers/mmc/core/
Dsdio_uart.c542 static int uart_carrier_raised(struct tty_port *tport) in uart_carrier_raised() argument
545 container_of(tport, struct sdio_uart_port, port); in uart_carrier_raised()
565 static void uart_dtr_rts(struct tty_port *tport, int onoff) in uart_dtr_rts() argument
568 container_of(tport, struct sdio_uart_port, port); in uart_dtr_rts()
594 static int sdio_uart_activate(struct tty_port *tport, struct tty_struct *tty) in sdio_uart_activate() argument
597 container_of(tport, struct sdio_uart_port, port); in sdio_uart_activate()
677 static void sdio_uart_shutdown(struct tty_port *tport) in sdio_uart_shutdown() argument
680 container_of(tport, struct sdio_uart_port, port); in sdio_uart_shutdown()
709 static void sdio_uart_port_destroy(struct tty_port *tport) in sdio_uart_port_destroy() argument
712 container_of(tport, struct sdio_uart_port, port); in sdio_uart_port_destroy()
/drivers/char/
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()
/drivers/pnp/
Dresource.c171 resource_size_t *port, *end, *tport, *tend; in pnp_check_port() local
199 tport = &tres->start; in pnp_check_port()
201 if (ranged_conflict(port, end, tport, tend)) in pnp_check_port()
218 tport = &tres->start; in pnp_check_port()
220 if (ranged_conflict(port, end, tport, tend)) in pnp_check_port()
/drivers/usb/gadget/function/
Df_tcm.c1265 struct usbg_tport *tport = tpg->tport; in usbg_get_fabric_wwn() local
1267 return &tport->tport_name[0]; in usbg_get_fabric_wwn()
1339 struct usbg_tport *tport = container_of(wwn, struct usbg_tport, in usbg_make_tpg() local
1386 tpg->tport = tport; in usbg_make_tpg()
1459 struct usbg_tport *tport; in usbg_make_tport() local
1467 tport = kzalloc(sizeof(struct usbg_tport), GFP_KERNEL); in usbg_make_tport()
1468 if (!(tport)) in usbg_make_tport()
1471 tport->tport_wwpn = wwpn; in usbg_make_tport()
1472 snprintf(tport->tport_name, sizeof(tport->tport_name), "%s", wnn_name); in usbg_make_tport()
1473 return &tport->tport_wwn; in usbg_make_tport()
[all …]

123