Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/target/tcm_fc/
Dtfc_sess.c56 struct ft_tport *tport; in ft_tport_get() local
59 tport = rcu_dereference_protected(lport->prov[FC_TYPE_FCP], in ft_tport_get()
61 if (tport && tport->tpg) in ft_tport_get()
62 return tport; in ft_tport_get()
68 if (tport) { in ft_tport_get()
69 tport->tpg = tpg; in ft_tport_get()
70 tpg->tport = tport; in ft_tport_get()
71 return tport; in ft_tport_get()
74 tport = kzalloc(sizeof(*tport), GFP_KERNEL); in ft_tport_get()
75 if (!tport) in ft_tport_get()
[all …]
Dtcm_fc.h45 struct ft_tport *tport; member
101 struct ft_tport *tport; /* active tport or NULL */ member
Dtfc_conf.c297 if (tpg->tport) { in ft_del_tpg()
298 tpg->tport->tpg = NULL; in ft_del_tpg()
299 tpg->tport = NULL; in ft_del_tpg()
/Linux-v4.19/drivers/usb/serial/
Dti_usb_3410_5052.c330 static void ti_send(struct ti_port *tport);
331 static int ti_set_mcr(struct ti_port *tport, unsigned int mcr);
332 static int ti_get_lsr(struct ti_port *tport, u8 *lsr);
333 static int ti_get_serial_info(struct ti_port *tport,
335 static int ti_set_serial_info(struct tty_struct *tty, struct ti_port *tport,
337 static void ti_handle_new_msr(struct ti_port *tport, u8 msr);
339 static void ti_stop_read(struct ti_port *tport, struct tty_struct *tty);
340 static int ti_restart_read(struct ti_port *tport, struct tty_struct *tty);
605 struct ti_port *tport; in ti_port_probe() local
607 tport = kzalloc(sizeof(*tport), GFP_KERNEL); in ti_port_probe()
[all …]
/Linux-v4.19/drivers/target/sbp/
Dsbp_target.c275 struct sbp_tport *tport = agent->tport; in sbp_management_request_login() local
276 struct sbp_tpg *tpg = tport->tpg; in sbp_management_request_login()
366 tport->max_logins_per_lun) { in sbp_management_request_login()
406 tport->max_reconnect_timeout) - 1; in sbp_management_request_login()
506 struct sbp_tport *tport = agent->tport; in sbp_management_request_reconnect() local
507 struct sbp_tpg *tpg = tport->tpg; in sbp_management_request_reconnect()
565 struct sbp_tport *tport = agent->tport; in sbp_management_request_logout() local
566 struct sbp_tpg *tpg = tport->tpg; in sbp_management_request_logout()
1603 if (!agent->tport->enable) in sbp_mgt_agent_rw()
1651 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
/Linux-v4.19/drivers/nvme/target/
Dfcloop.c227 struct fcloop_tport *tport; member
238 struct fcloop_tport *tport; member
253 struct fcloop_tport *tport; member
311 struct fcloop_tport *tport = tls_req->tport; in fcloop_tgt_lsrqst_done_work() local
314 if (!tport || tport->remoteport) in fcloop_tgt_lsrqst_done_work()
332 tls_req->tport = NULL; in fcloop_ls_req()
338 tls_req->tport = rport->targetport->private; in fcloop_ls_req()
346 fcloop_xmt_ls_rsp(struct nvmet_fc_target_port *tport, in fcloop_xmt_ls_rsp() argument
430 ret = nvmet_fc_rcv_fcp_req(tfcp_req->tport->targetport, in fcloop_fcp_recv_work()
468 if (tfcp_req->tport->targetport) in fcloop_fcp_abort_recv_work()
[all …]
/Linux-v4.19/net/netfilter/
Dnft_tproxy.c30 __be16 tport = 0; in nft_tproxy_eval_v4() local
53 tport = regs->data[priv->sreg_port]; in nft_tproxy_eval_v4()
54 if (!tport) in nft_tproxy_eval_v4()
55 tport = hp->dest; in nft_tproxy_eval_v4()
60 sk = nf_tproxy_handle_time_wait4(nft_net(pkt), skb, taddr, tport, sk); in nft_tproxy_eval_v4()
67 hp->source, tport, in nft_tproxy_eval_v4()
88 __be16 tport = 0; in nft_tproxy_eval_v6() local
120 tport = regs->data[priv->sreg_port]; in nft_tproxy_eval_v6()
121 if (!tport) in nft_tproxy_eval_v6()
122 tport = hp->dest; in nft_tproxy_eval_v6()
[all …]
/Linux-v4.19/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.c798 static int isicom_activate(struct tty_port *tport, struct tty_struct *tty) in isicom_activate() argument
800 struct isi_port *port = container_of(tport, struct isi_port, port); in isicom_activate()
804 if (tty_port_alloc_xmit_buf(tport) < 0) in isicom_activate()
858 struct tty_port *tport; in isicom_open() local
860 tport = isicom_find_port(tty); in isicom_open()
861 if (tport == NULL) in isicom_open()
863 port = container_of(tport, struct isi_port, port); in isicom_open()
866 return tty_port_open(tport, tty, filp); in isicom_open()
1600 struct tty_port *tport = &board->ports[index].port; in isicom_probe() local
1601 tty_port_init(tport); in isicom_probe()
[all …]
/Linux-v4.19/drivers/xen/
Dxen-scsiback.c173 struct scsiback_tport *tport; member
264 tpg->tport->tport_name, pending_req->v2p->lun, in scsiback_print_status()
919 if (!strcmp(phy, tpg_entry->tport->tport_name) || in scsiback_add_translation_entry()
1281 static char *scsiback_dump_proto_id(struct scsiback_tport *tport) in scsiback_dump_proto_id() argument
1283 switch (tport->tport_proto_id) { in scsiback_dump_proto_id()
1301 struct scsiback_tport *tport = tpg->tport; in scsiback_get_fabric_wwn() local
1303 return &tport->tport_name[0]; in scsiback_get_fabric_wwn()
1318 struct scsiback_tport *tport; in scsiback_make_tport() local
1323 tport = kzalloc(sizeof(struct scsiback_tport), GFP_KERNEL); in scsiback_make_tport()
1324 if (!tport) in scsiback_make_tport()
[all …]
/Linux-v4.19/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.c1352 if (vscsi->tport.enabled) in ibmvscsis_adapter_idle()
2218 static int ibmvscsis_make_nexus(struct ibmvscsis_tport *tport) in ibmvscsis_make_nexus() argument
2220 char *name = tport->tport_name; in ibmvscsis_make_nexus()
2222 struct scsi_info *vscsi = container_of(tport, struct scsi_info, tport); in ibmvscsis_make_nexus()
2225 if (tport->ibmv_nexus) { in ibmvscsis_make_nexus()
2236 nexus->se_sess = target_setup_session(&tport->se_tpg, 0, 0, in ibmvscsis_make_nexus()
2244 tport->ibmv_nexus = nexus; in ibmvscsis_make_nexus()
2253 static int ibmvscsis_drop_nexus(struct ibmvscsis_tport *tport) in ibmvscsis_drop_nexus() argument
2258 nexus = tport->ibmv_nexus; in ibmvscsis_drop_nexus()
2271 tport->ibmv_nexus = NULL; in ibmvscsis_drop_nexus()
[all …]
/Linux-v4.19/drivers/vhost/
Dscsi.c132 struct vhost_scsi_tport *tport; member
284 struct vhost_scsi_tport *tport = tpg->tport; in vhost_scsi_get_fabric_wwn() local
286 return &tport->tport_name[0]; in vhost_scsi_get_fabric_wwn()
1194 tv_tport = tpg->tport; in vhost_scsi_set_endpoint()
1289 tv_tport = tpg->tport; in vhost_scsi_clear_endpoint()
1533 static char *vhost_scsi_dump_proto_id(struct vhost_scsi_tport *tport) in vhost_scsi_dump_proto_id() argument
1535 switch (tport->tport_proto_id) { in vhost_scsi_dump_proto_id()
1793 " %s Initiator Port: %s\n", vhost_scsi_dump_proto_id(tpg->tport), in vhost_scsi_drop_nexus()
1835 struct vhost_scsi_tport *tport_wwn = tpg->tport; in vhost_scsi_tpg_nexus_store()
1917 struct vhost_scsi_tport *tport = container_of(wwn, in vhost_scsi_make_tpg() local
[all …]
/Linux-v4.19/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-v4.19/drivers/tty/serial/
Dsunhv.c192 struct tty_port *tport = NULL; in receive_chars() local
195 tport = &port->state->port; in receive_chars()
200 return tport; in receive_chars()
223 struct tty_port *tport; in sunhv_interrupt() local
227 tport = receive_chars(port); in sunhv_interrupt()
231 if (tport) in sunhv_interrupt()
232 tty_flip_buffer_push(tport); in sunhv_interrupt()
Dsn_console.c431 struct tty_port *tport = NULL; in sn_receive_chars() local
446 tport = &port->sc_port.state->port; in sn_receive_chars()
486 if (tport) { in sn_receive_chars()
487 if (tty_insert_flip_char(tport, ch, TTY_NORMAL) == 0) in sn_receive_chars()
493 if (tport) in sn_receive_chars()
494 tty_flip_buffer_push(tport); in sn_receive_chars()
Dlpc32xx_hs.c251 struct tty_port *tport = &port->state->port; in __serial_lpc32xx_rx() local
266 tty_insert_flip_char(tport, 0, TTY_FRAME); in __serial_lpc32xx_rx()
269 tty_insert_flip_char(tport, (tmp & 0xFF), flag); in __serial_lpc32xx_rx()
275 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_schedule_flip(tport); in serial_lpc32xx_interrupt()
Dmps2-uart.c186 struct tty_port *tport = &port->state->port; in mps2_uart_rx_chars() local
195 tty_flip_buffer_push(tport); in mps2_uart_rx_chars()
243 struct tty_port *tport = &port->state->port; in mps2_uart_oerrirq() local
247 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in mps2_uart_oerrirq()
248 tty_flip_buffer_push(tport); in mps2_uart_oerrirq()
Dmux.c231 struct tty_port *tport = &port->state->port; in mux_read() local
255 tty_insert_flip_char(tport, data & 0xFF, TTY_NORMAL); in mux_read()
259 tty_flip_buffer_push(tport); in mux_read()
Dlantiq.c147 struct tty_port *tport = &port->state->port; in lqasc_rx_chars() local
156 tty_flip_buffer_push(tport); in lqasc_rx_chars()
188 tty_insert_flip_char(tport, ch, flag); in lqasc_rx_chars()
196 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in lqasc_rx_chars()
200 tty_flip_buffer_push(tport); in lqasc_rx_chars()
Dqcom_geni_serial.c475 struct tty_port *tport; in handle_rx_console() local
478 tport = &uport->state->port; in handle_rx_console()
500 tty_insert_flip_char(tport, buf[c], TTY_NORMAL); in handle_rx_console()
504 tty_flip_buffer_push(tport); in handle_rx_console()
518 struct tty_port *tport; in handle_rx_uart() local
524 tport = &uport->state->port; in handle_rx_uart()
530 ret = tty_insert_flip_string(tport, buf, bytes); in handle_rx_uart()
537 tty_flip_buffer_push(tport); in handle_rx_uart()
767 struct tty_port *tport = &uport->state->port; in qcom_geni_serial_isr() local
785 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in qcom_geni_serial_isr()
Dmsm_serial.c536 struct tty_port *tport = &port->state->port; in msm_complete_rx_dma() local
554 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in msm_complete_rx_dma()
584 tty_insert_flip_char(tport, dma->virt[i], flag); in msm_complete_rx_dma()
592 tty_flip_buffer_push(tport); in msm_complete_rx_dma()
684 struct tty_port *tport = &port->state->port; in msm_handle_rx_dm() local
691 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in msm_handle_rx_dm()
739 tty_insert_flip_char(tport, buf[i], flag); in msm_handle_rx_dm()
745 tty_flip_buffer_push(tport); in msm_handle_rx_dm()
759 struct tty_port *tport = &port->state->port; in msm_handle_rx() local
768 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in msm_handle_rx()
[all …]
/Linux-v4.19/drivers/mmc/core/
Dsdio_uart.c546 static int uart_carrier_raised(struct tty_port *tport) in uart_carrier_raised() argument
549 container_of(tport, struct sdio_uart_port, port); in uart_carrier_raised()
569 static void uart_dtr_rts(struct tty_port *tport, int onoff) in uart_dtr_rts() argument
572 container_of(tport, struct sdio_uart_port, port); in uart_dtr_rts()
598 static int sdio_uart_activate(struct tty_port *tport, struct tty_struct *tty) in sdio_uart_activate() argument
601 container_of(tport, struct sdio_uart_port, port); in sdio_uart_activate()
681 static void sdio_uart_shutdown(struct tty_port *tport) in sdio_uart_shutdown() argument
684 container_of(tport, struct sdio_uart_port, port); in sdio_uart_shutdown()
713 static void sdio_uart_port_destroy(struct tty_port *tport) in sdio_uart_port_destroy() argument
716 container_of(tport, struct sdio_uart_port, port); in sdio_uart_port_destroy()
/Linux-v4.19/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()
/Linux-v4.19/drivers/usb/gadget/function/
Df_tcm.c1268 struct usbg_tport *tport = tpg->tport; in usbg_get_fabric_wwn() local
1270 return &tport->tport_name[0]; in usbg_get_fabric_wwn()
1350 struct usbg_tport *tport = container_of(wwn, struct usbg_tport, in usbg_make_tpg() local
1397 tpg->tport = tport; in usbg_make_tpg()
1470 struct usbg_tport *tport; in usbg_make_tport() local
1478 tport = kzalloc(sizeof(struct usbg_tport), GFP_KERNEL); in usbg_make_tport()
1479 if (!(tport)) in usbg_make_tport()
1482 tport->tport_wwpn = wwpn; in usbg_make_tport()
1483 snprintf(tport->tport_name, sizeof(tport->tport_name), "%s", wnn_name); in usbg_make_tport()
1484 return &tport->tport_wwn; in usbg_make_tport()
[all …]

123