Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/usb/serial/
Dti_usb_3410_5052.c329 static void ti_send(struct ti_port *tport);
330 static int ti_set_mcr(struct ti_port *tport, unsigned int mcr);
331 static int ti_get_lsr(struct ti_port *tport, u8 *lsr);
336 static void ti_handle_new_msr(struct ti_port *tport, u8 msr);
338 static void ti_stop_read(struct ti_port *tport, struct tty_struct *tty);
339 static int ti_restart_read(struct ti_port *tport, struct tty_struct *tty);
608 struct ti_port *tport; in ti_port_probe() local
610 tport = kzalloc(sizeof(*tport), GFP_KERNEL); in ti_port_probe()
611 if (!tport) in ti_port_probe()
614 spin_lock_init(&tport->tp_lock); in ti_port_probe()
[all …]
/kernel/linux/linux-5.10/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()
1590 if (!agent->tport->enable) in sbp_mgt_agent_rw()
1638 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
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/net/netfilter/
Dnft_tproxy.c30 __be16 tport = 0; in nft_tproxy_eval_v4() local
59 tport = nft_reg_load16(&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_load16(&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 …]
/kernel/linux/linux-5.10/drivers/tty/
Damiserial.c38 tty->name, (info->tport.flags), serial_driver->refcount,info->count,tty->count,s)
85 struct tty_port tport; member
277 if (info->tport.flags & ASYNC_SAK) in receive_chars()
278 do_SAK(info->tport.tty); in receive_chars()
292 tty_insert_flip_char(&info->tport, ch, flag); in receive_chars()
294 tty_insert_flip_char(&info->tport, 0, TTY_OVERRUN); in receive_chars()
295 tty_flip_buffer_push(&info->tport); in receive_chars()
312 || info->tport.tty->stopped in transmit_chars()
313 || info->tport.tty->hw_stopped) { in transmit_chars()
328 tty_wakeup(info->tport.tty); in transmit_chars()
[all …]
Disicom.c797 static int isicom_activate(struct tty_port *tport, struct tty_struct *tty) in isicom_activate() argument
799 struct isi_port *port = container_of(tport, struct isi_port, port); in isicom_activate()
803 if (tty_port_alloc_xmit_buf(tport) < 0) in isicom_activate()
857 struct tty_port *tport; in isicom_open() local
859 tport = isicom_find_port(tty); in isicom_open()
860 if (tport == NULL) in isicom_open()
862 port = container_of(tport, struct isi_port, port); in isicom_open()
865 return tty_port_open(tport, tty, filp); in isicom_open()
1577 struct tty_port *tport = &board->ports[index].port; in isicom_probe() local
1578 tty_port_init(tport); in isicom_probe()
[all …]
/kernel/linux/linux-5.10/drivers/xen/
Dxen-scsiback.c174 struct scsiback_tport *tport; member
226 tpg->tport->tport_name, pending_req->v2p->lun, in scsiback_print_status()
890 if (!strcmp(phy, tpg_entry->tport->tport_name) || in scsiback_add_translation_entry()
1254 static char *scsiback_dump_proto_id(struct scsiback_tport *tport) in scsiback_dump_proto_id() argument
1256 switch (tport->tport_proto_id) { in scsiback_dump_proto_id()
1274 struct scsiback_tport *tport = tpg->tport; in scsiback_get_fabric_wwn() local
1276 return &tport->tport_name[0]; in scsiback_get_fabric_wwn()
1291 struct scsiback_tport *tport; in scsiback_make_tport() local
1296 tport = kzalloc(sizeof(struct scsiback_tport), GFP_KERNEL); in scsiback_make_tport()
1297 if (!tport) in scsiback_make_tport()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.c1343 if (vscsi->tport.enabled) in ibmvscsis_adapter_idle()
2207 static int ibmvscsis_make_nexus(struct ibmvscsis_tport *tport) in ibmvscsis_make_nexus() argument
2209 char *name = tport->tport_name; in ibmvscsis_make_nexus()
2211 struct scsi_info *vscsi = container_of(tport, struct scsi_info, tport); in ibmvscsis_make_nexus()
2214 if (tport->ibmv_nexus) { in ibmvscsis_make_nexus()
2225 nexus->se_sess = target_setup_session(&tport->se_tpg, 0, 0, in ibmvscsis_make_nexus()
2233 tport->ibmv_nexus = nexus; in ibmvscsis_make_nexus()
2242 static int ibmvscsis_drop_nexus(struct ibmvscsis_tport *tport) in ibmvscsis_drop_nexus() argument
2247 nexus = tport->ibmv_nexus; in ibmvscsis_drop_nexus()
2259 tport->ibmv_nexus = NULL; in ibmvscsis_drop_nexus()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/vhost/
Dscsi.c137 struct vhost_scsi_tport *tport; member
316 struct vhost_scsi_tport *tport = tpg->tport; in vhost_scsi_get_fabric_wwn() local
318 return &tport->tport_name[0]; in vhost_scsi_get_fabric_wwn()
1608 tv_tport = tpg->tport; in vhost_scsi_set_endpoint()
1726 tv_tport = tpg->tport; in vhost_scsi_clear_endpoint()
1967 static char *vhost_scsi_dump_proto_id(struct vhost_scsi_tport *tport) in vhost_scsi_dump_proto_id() argument
1969 switch (tport->tport_proto_id) { in vhost_scsi_dump_proto_id()
2181 " %s Initiator Port: %s\n", vhost_scsi_dump_proto_id(tpg->tport), in vhost_scsi_drop_nexus()
2222 struct vhost_scsi_tport *tport_wwn = tpg->tport; in vhost_scsi_tpg_nexus_store()
2304 struct vhost_scsi_tport *tport = container_of(wwn, in vhost_scsi_make_tpg() local
[all …]
/kernel/linux/linux-5.10/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.c254 struct tty_port *tport = &port->state->port; in __serial_lpc32xx_rx() local
269 tty_insert_flip_char(tport, 0, TTY_FRAME); in __serial_lpc32xx_rx()
272 tty_insert_flip_char(tport, (tmp & 0xFF), flag); in __serial_lpc32xx_rx()
278 tty_flip_buffer_push(tport); in __serial_lpc32xx_rx()
322 struct tty_port *tport = &port->state->port; in serial_lpc32xx_interrupt() local
346 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in serial_lpc32xx_interrupt()
347 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()
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()
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()
704 struct tty_port *tport = &port->state->port; in msm_handle_rx_dm() local
711 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in msm_handle_rx_dm()
759 tty_insert_flip_char(tport, buf[i], flag); in msm_handle_rx_dm()
765 tty_flip_buffer_push(tport); in msm_handle_rx_dm()
780 struct tty_port *tport = &port->state->port; in msm_handle_rx() local
789 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in msm_handle_rx()
[all …]
Dqcom_geni_serial.c531 struct tty_port *tport; in handle_rx_console() local
534 tport = &uport->state->port; in handle_rx_console()
557 tty_insert_flip_char(tport, buf[c], TTY_NORMAL); in handle_rx_console()
561 tty_flip_buffer_push(tport); in handle_rx_console()
574 struct tty_port *tport; in handle_rx_uart() local
580 tport = &uport->state->port; in handle_rx_uart()
585 ret = tty_insert_flip_string(tport, port->rx_fifo, bytes); in handle_rx_uart()
592 tty_flip_buffer_push(tport); in handle_rx_uart()
824 struct tty_port *tport = &uport->state->port; in qcom_geni_serial_isr() local
843 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in qcom_geni_serial_isr()
Dsh-sci.c857 struct tty_port *tport = &port->state->port; in sci_receive_chars() local
868 count = tty_buffer_request_room(tport, sci_rxfill(port)); in sci_receive_chars()
879 tty_insert_flip_char(tport, c, TTY_NORMAL); in sci_receive_chars()
909 tty_insert_flip_char(tport, c, flag); in sci_receive_chars()
922 tty_flip_buffer_push(tport); in sci_receive_chars()
935 struct tty_port *tport = &port->state->port; in sci_handle_errors() local
943 if (tty_insert_flip_char(tport, 0, TTY_OVERRUN)) in sci_handle_errors()
953 if (tty_insert_flip_char(tport, 0, TTY_FRAME)) in sci_handle_errors()
963 if (tty_insert_flip_char(tport, 0, TTY_PARITY)) in sci_handle_errors()
970 tty_flip_buffer_push(tport); in sci_handle_errors()
[all …]
Dvt8500_serial.c154 struct tty_port *tport = &port->state->port; in handle_rx() local
161 tty_insert_flip_char(tport, 0, TTY_OVERRUN); in handle_rx()
184 tty_insert_flip_char(tport, c, flag); in handle_rx()
188 tty_flip_buffer_push(tport); in handle_rx()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
Df_tcm.c1269 struct usbg_tport *tport = tpg->tport; in usbg_get_fabric_wwn() local
1271 return &tport->tport_name[0]; in usbg_get_fabric_wwn()
1343 struct usbg_tport *tport = container_of(wwn, struct usbg_tport, in usbg_make_tpg() local
1390 tpg->tport = tport; in usbg_make_tpg()
1463 struct usbg_tport *tport; in usbg_make_tport() local
1471 tport = kzalloc(sizeof(struct usbg_tport), GFP_KERNEL); in usbg_make_tport()
1472 if (!(tport)) in usbg_make_tport()
1475 tport->tport_wwpn = wwpn; in usbg_make_tport()
1476 snprintf(tport->tport_name, sizeof(tport->tport_name), "%s", wnn_name); in usbg_make_tport()
1477 return &tport->tport_wwn; in usbg_make_tport()
[all …]

123