Home
last modified time | relevance | path

Searched refs:sport (Results 1 – 25 of 29) sorted by relevance

12

/drivers/tty/serial/
Dimx.c218 #define USE_IRDA(sport) ((sport)->use_irda) argument
220 #define USE_IRDA(sport) (0) argument
254 static inline unsigned uts_reg(struct imx_port *sport) in uts_reg() argument
256 return sport->devdata->uts_reg; in uts_reg()
259 static inline int is_imx1_uart(struct imx_port *sport) in is_imx1_uart() argument
261 return sport->devdata->devtype == IMX1_UART; in is_imx1_uart()
264 static inline int is_imx21_uart(struct imx_port *sport) in is_imx21_uart() argument
266 return sport->devdata->devtype == IMX21_UART; in is_imx21_uart()
293 static void imx_mctrl_check(struct imx_port *sport) in imx_mctrl_check() argument
297 status = sport->port.ops->get_mctrl(&sport->port); in imx_mctrl_check()
[all …]
Dsa1100.c60 #define UART_GET_UTCR0(sport) __raw_readl((sport)->port.membase + UTCR0) argument
61 #define UART_GET_UTCR1(sport) __raw_readl((sport)->port.membase + UTCR1) argument
62 #define UART_GET_UTCR2(sport) __raw_readl((sport)->port.membase + UTCR2) argument
63 #define UART_GET_UTCR3(sport) __raw_readl((sport)->port.membase + UTCR3) argument
64 #define UART_GET_UTSR0(sport) __raw_readl((sport)->port.membase + UTSR0) argument
65 #define UART_GET_UTSR1(sport) __raw_readl((sport)->port.membase + UTSR1) argument
66 #define UART_GET_CHAR(sport) __raw_readl((sport)->port.membase + UTDR) argument
68 #define UART_PUT_UTCR0(sport,v) __raw_writel((v),(sport)->port.membase + UTCR0) argument
69 #define UART_PUT_UTCR1(sport,v) __raw_writel((v),(sport)->port.membase + UTCR1) argument
70 #define UART_PUT_UTCR2(sport,v) __raw_writel((v),(sport)->port.membase + UTCR2) argument
[all …]
Dpnx8xxx_uart.c69 static inline int serial_in(struct pnx8xxx_port *sport, int offset) in serial_in() argument
71 return (__raw_readl(sport->port.membase + offset)); in serial_in()
74 static inline void serial_out(struct pnx8xxx_port *sport, int offset, int value) in serial_out() argument
76 __raw_writel(value, sport->port.membase + offset); in serial_out()
82 static void pnx8xxx_mctrl_check(struct pnx8xxx_port *sport) in pnx8xxx_mctrl_check() argument
86 status = sport->port.ops->get_mctrl(&sport->port); in pnx8xxx_mctrl_check()
87 changed = status ^ sport->old_status; in pnx8xxx_mctrl_check()
92 sport->old_status = status; in pnx8xxx_mctrl_check()
95 sport->port.icount.rng++; in pnx8xxx_mctrl_check()
97 sport->port.icount.dsr++; in pnx8xxx_mctrl_check()
[all …]
Dsb1250-duart.c103 struct sbd_port sport[2]; member
124 static u64 __read_sbdchn(struct sbd_port *sport, int reg) in __read_sbdchn() argument
126 void __iomem *csr = sport->port.membase + reg; in __read_sbdchn()
131 static u64 __read_sbdshr(struct sbd_port *sport, int reg) in __read_sbdshr() argument
133 void __iomem *csr = sport->memctrl + reg; in __read_sbdshr()
138 static void __write_sbdchn(struct sbd_port *sport, int reg, u64 value) in __write_sbdchn() argument
140 void __iomem *csr = sport->port.membase + reg; in __write_sbdchn()
145 static void __write_sbdshr(struct sbd_port *sport, int reg, u64 value) in __write_sbdshr() argument
147 void __iomem *csr = sport->memctrl + reg; in __write_sbdshr()
156 static void __war_sbd1956(struct sbd_port *sport) in __war_sbd1956() argument
[all …]
Dbfin_sport_uart.h34 #define SPORT_GET_TCR1(sport) bfin_read16(((sport)->port.membase + OFFSET_TCR1)) argument
35 #define SPORT_GET_TCR2(sport) bfin_read16(((sport)->port.membase + OFFSET_TCR2)) argument
36 #define SPORT_GET_TCLKDIV(sport) bfin_read16(((sport)->port.membase + OFFSET_TCLKDIV)) argument
37 #define SPORT_GET_TFSDIV(sport) bfin_read16(((sport)->port.membase + OFFSET_TFSDIV)) argument
38 #define SPORT_GET_TX(sport) bfin_read16(((sport)->port.membase + OFFSET_TX)) argument
39 #define SPORT_GET_RX(sport) bfin_read16(((sport)->port.membase + OFFSET_RX)) argument
45 #define SPORT_GET_RX32(sport) \ argument
51 __ret = bfin_read32((sport)->port.membase + OFFSET_RX); \
56 #define SPORT_GET_RCR1(sport) bfin_read16(((sport)->port.membase + OFFSET_RCR1)) argument
57 #define SPORT_GET_RCR2(sport) bfin_read16(((sport)->port.membase + OFFSET_RCR2)) argument
[all …]
Dpxa.c763 struct uart_pxa_port *sport = dev_get_drvdata(dev); in serial_pxa_suspend() local
765 if (sport) in serial_pxa_suspend()
766 uart_suspend_port(&serial_pxa_reg, &sport->port); in serial_pxa_suspend()
773 struct uart_pxa_port *sport = dev_get_drvdata(dev); in serial_pxa_resume() local
775 if (sport) in serial_pxa_resume()
776 uart_resume_port(&serial_pxa_reg, &sport->port); in serial_pxa_resume()
795 struct uart_pxa_port *sport) in serial_pxa_probe_dt() argument
808 sport->port.line = ret; in serial_pxa_probe_dt()
814 struct uart_pxa_port *sport; in serial_pxa_probe() local
823 sport = kzalloc(sizeof(struct uart_pxa_port), GFP_KERNEL); in serial_pxa_probe()
[all …]
Dbfin_sport_uart.c717 struct sport_uart_port *sport = dev_get_drvdata(dev); in sport_uart_suspend() local
720 if (sport) in sport_uart_suspend()
721 uart_suspend_port(&sport_uart_reg, &sport->port); in sport_uart_suspend()
728 struct sport_uart_port *sport = dev_get_drvdata(dev); in sport_uart_resume() local
731 if (sport) in sport_uart_resume()
732 uart_resume_port(&sport_uart_reg, &sport->port); in sport_uart_resume()
746 struct sport_uart_port *sport; in sport_uart_probe() local
759 sport = bfin_sport_uart_ports[pdev->id]; in sport_uart_probe()
760 if (!sport) { in sport_uart_probe()
774 spin_lock_init(&sport->port.lock); in sport_uart_probe()
[all …]
Dnetx-serial.c595 struct netx_port *sport; in netx_console_setup() local
608 sport = &netx_ports[co->index]; in netx_console_setup()
616 if (readl(sport->port.membase + UART_CR) & CR_UART_EN) { in netx_console_setup()
617 netx_console_get_options(&sport->port, &baud, in netx_console_setup()
623 return uart_set_options(&sport->port, co, baud, parity, bits, flow); in netx_console_setup()
661 struct netx_port *sport = platform_get_drvdata(pdev); in serial_netx_suspend() local
663 if (sport) in serial_netx_suspend()
664 uart_suspend_port(&netx_reg, &sport->port); in serial_netx_suspend()
671 struct netx_port *sport = platform_get_drvdata(pdev); in serial_netx_resume() local
673 if (sport) in serial_netx_resume()
[all …]
Dsh-sci.c1983 struct sci_port *sport = to_sci_port(port); in sci_config_port() local
1985 port->type = sport->cfg->type; in sci_config_port()
2399 struct sci_port *sport = dev_get_drvdata(dev); in sci_suspend() local
2401 if (sport) in sci_suspend()
2402 uart_suspend_port(&sci_uart_driver, &sport->port); in sci_suspend()
2409 struct sci_port *sport = dev_get_drvdata(dev); in sci_resume() local
2411 if (sport) in sci_resume()
2412 uart_resume_port(&sci_uart_driver, &sport->port); in sci_resume()
/drivers/infiniband/ulp/srpt/
Dib_srpt.c179 struct srpt_port *sport; in srpt_event_handler() local
191 sport = &sdev->port[event->element.port_num - 1]; in srpt_event_handler()
192 sport->lid = 0; in srpt_event_handler()
193 sport->sm_lid = 0; in srpt_event_handler()
203 sport = &sdev->port[event->element.port_num - 1]; in srpt_event_handler()
204 if (!sport->lid && !sport->sm_lid) in srpt_event_handler()
205 schedule_work(&sport->work); in srpt_event_handler()
324 static void srpt_get_ioc(struct srpt_port *sport, u32 slot, in srpt_get_ioc() argument
327 struct srpt_device *sdev = sport->sdev; in srpt_get_ioc()
359 iocp->rdma_size = cpu_to_be32(min(sport->port_attrib.srp_max_rdma_size, in srpt_get_ioc()
[all …]
Dib_srpt.h312 struct srpt_port *sport; member
420 struct srpt_port *sport; member
/drivers/infiniband/hw/ehca/
Dehca_sqp.c73 shca->sport[port - 1].port_state = IB_PORT_DOWN; in ehca_define_sqp()
92 shca->sport[port - 1].pma_qp_nr = pma_qp_nr; in ehca_define_sqp()
106 shca->sport[port - 1].port_state != IB_PORT_ACTIVE && in ehca_define_sqp()
154 struct ehca_sport *sport = &shca->sport[port_num - 1]; in ehca_process_perf() local
181 sport->saved_attr.lid | in_wc->dlid_path_bits; in ehca_process_perf()
182 poi->redirect_qp = sport->pma_qp_nr; in ehca_process_perf()
202 sport->saved_attr.lid, sport->pma_qp_nr); in ehca_process_perf()
Dehca_irq.c341 struct ehca_sma_attr *old_attr = &shca->sport[port_num - 1].saved_attr; in notify_port_conf_change()
365 static int replay_modify_qp(struct ehca_sport *sport) in replay_modify_qp() argument
370 spin_lock_irqsave(&sport->mod_sqp_lock, flags); in replay_modify_qp()
372 aqp1_destroyed = !sport->ibqp_sqp[IB_QPT_GSI]; in replay_modify_qp()
374 if (sport->ibqp_sqp[IB_QPT_SMI]) in replay_modify_qp()
375 ehca_recover_sqp(sport->ibqp_sqp[IB_QPT_SMI]); in replay_modify_qp()
377 ehca_recover_sqp(sport->ibqp_sqp[IB_QPT_GSI]); in replay_modify_qp()
379 spin_unlock_irqrestore(&sport->mod_sqp_lock, flags); in replay_modify_qp()
389 struct ehca_sport *sport = &shca->sport[port - 1]; in parse_ec() local
399 if (replay_modify_qp(sport)) in parse_ec()
[all …]
Dehca_main.c532 struct ehca_sport *sport = &shca->sport[port - 1]; in ehca_create_aqp1() local
538 if (sport->ibcq_aqp1) { in ehca_create_aqp1()
548 sport->ibcq_aqp1 = ibcq; in ehca_create_aqp1()
550 if (sport->ibqp_sqp[IB_QPT_GSI]) { in ehca_create_aqp1()
576 sport->ibqp_sqp[IB_QPT_GSI] = ibqp; in ehca_create_aqp1()
581 ib_destroy_cq(sport->ibcq_aqp1); in ehca_create_aqp1()
585 static int ehca_destroy_aqp1(struct ehca_sport *sport) in ehca_destroy_aqp1() argument
589 ret = ib_destroy_qp(sport->ibqp_sqp[IB_QPT_GSI]); in ehca_destroy_aqp1()
595 ret = ib_destroy_cq(sport->ibcq_aqp1); in ehca_destroy_aqp1()
750 for (i = 0; i < ARRAY_SIZE(shca->sport); i++) in ehca_probe()
[all …]
Dehca_qp.c850 shca->sport[init_attr->port_num - 1].ibqp_sqp[qp_type] = in internal_create_qp()
875 shca->sport[init_attr->port_num - 1].ibqp_sqp[qp_type] = in internal_create_qp()
1450 struct ehca_sport *sport; in internal_modify_qp() local
1460 sport = &shca->sport[attr->port_num - 1]; in internal_modify_qp()
1461 if (!sport->ibqp_sqp[IB_QPT_GSI]) { in internal_modify_qp()
1468 aqp1 = container_of(sport->ibqp_sqp[IB_QPT_GSI], in internal_modify_qp()
1808 struct ehca_sport *sport = &shca->sport[port - 1]; in ehca_modify_qp() local
1810 spin_lock_irqsave(&sport->mod_sqp_lock, flags); in ehca_modify_qp()
1820 spin_unlock_irqrestore(&sport->mod_sqp_lock, in ehca_modify_qp()
1832 spin_unlock_irqrestore(&sport->mod_sqp_lock, flags); in ehca_modify_qp()
[all …]
Dehca_classes.h120 struct ehca_sport sport[2]; member
/drivers/rapidio/
Drio-scan.c539 rio_sport_is_active(struct rio_mport *port, u16 destid, u8 hopcount, int sport) in rio_sport_is_active() argument
562 RIO_PORT_N_ERR_STS_CSR(sport), in rio_sport_is_active()
1084 u8 sport; in rio_update_route_tables() local
1103 sport = RIO_GET_PORT_NUM(swrdev->swpinfo); in rio_update_route_tables()
1108 sport, 0); in rio_update_route_tables()
1109 rswitch->route_table[destid] = sport; in rio_update_route_tables()
1214 u8 sport; in rio_build_route_tables() local
1224 RIO_GLOBAL_TABLE, i, &sport, 0) < 0) in rio_build_route_tables()
1226 rdev->rswitch->route_table[i] = sport; in rio_build_route_tables()
/drivers/infiniband/hw/ipath/
Dipath_user_sdma.h37 ipath_user_sdma_queue_create(struct device *dev, int unit, int port, int sport);
Dipath_user_sdma.c101 ipath_user_sdma_queue_create(struct device *dev, int unit, int port, int sport) in ipath_user_sdma_queue_create() argument
116 "ipath-user-sdma-pkts-%u-%02u.%02u", unit, port, sport); in ipath_user_sdma_queue_create()
125 "ipath-user-sdma-headers-%u-%02u.%02u", unit, port, sport); in ipath_user_sdma_queue_create()
/drivers/infiniband/hw/qib/
Dqib_user_sdma.h37 qib_user_sdma_queue_create(struct device *dev, int unit, int port, int sport);
/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_ioctl.h158 uint16_t sport; member
Dcommon.h416 u16 sport; member
/drivers/spi/
DMakefile19 obj-$(CONFIG_SPI_BFIN_SPORT) += spi-bfin-sport.o
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_uld.h146 __be32 sip, __be16 sport, unsigned int queue);
/drivers/scsi/cxgbi/
Dlibcxgbi.c456 __be16 sport, __be16 dport, u8 tos) in find_route_ipv4() argument
461 dport, sport, IPPROTO_TCP, tos, 0); in find_route_ipv4()

12