/drivers/tty/serial/ |
D | imx.c | 289 static inline unsigned uts_reg(struct imx_port *sport) in uts_reg() argument 291 return sport->devdata->uts_reg; in uts_reg() 294 static inline int is_imx1_uart(struct imx_port *sport) in is_imx1_uart() argument 296 return sport->devdata->devtype == IMX1_UART; in is_imx1_uart() 299 static inline int is_imx21_uart(struct imx_port *sport) in is_imx21_uart() argument 301 return sport->devdata->devtype == IMX21_UART; in is_imx21_uart() 304 static inline int is_imx53_uart(struct imx_port *sport) in is_imx53_uart() argument 306 return sport->devdata->devtype == IMX53_UART; in is_imx53_uart() 309 static inline int is_imx6q_uart(struct imx_port *sport) in is_imx6q_uart() argument 311 return sport->devdata->devtype == IMX6Q_UART; in is_imx6q_uart() [all …]
|
D | fsl_lpuart.c | 319 static void lpuart_dma_tx(struct lpuart_port *sport) in lpuart_dma_tx() argument 321 struct circ_buf *xmit = &sport->port.state->xmit; in lpuart_dma_tx() 322 struct scatterlist *sgl = sport->tx_sgl; in lpuart_dma_tx() 323 struct device *dev = sport->port.dev; in lpuart_dma_tx() 326 if (sport->dma_tx_in_progress) in lpuart_dma_tx() 329 sport->dma_tx_bytes = uart_circ_chars_pending(xmit); in lpuart_dma_tx() 332 sport->dma_tx_nents = 1; in lpuart_dma_tx() 333 sg_init_one(sgl, xmit->buf + xmit->tail, sport->dma_tx_bytes); in lpuart_dma_tx() 335 sport->dma_tx_nents = 2; in lpuart_dma_tx() 342 ret = dma_map_sg(dev, sgl, sport->dma_tx_nents, DMA_TO_DEVICE); in lpuart_dma_tx() [all …]
|
D | pnx8xxx_uart.c | 69 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 …]
|
D | sa1100.c | 60 #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 …]
|
D | pic32_uart.c | 39 static inline void pic32_wait_deplete_txbuf(struct pic32_sport *sport) in pic32_wait_deplete_txbuf() argument 42 while (!(pic32_uart_readl(sport, PIC32_UART_STA) & PIC32_UART_STA_TRMT)) in pic32_wait_deplete_txbuf() 46 static inline int pic32_enable_clock(struct pic32_sport *sport) in pic32_enable_clock() argument 48 int ret = clk_prepare_enable(sport->clk); in pic32_enable_clock() 53 sport->ref_clk++; in pic32_enable_clock() 57 static inline void pic32_disable_clock(struct pic32_sport *sport) in pic32_disable_clock() argument 59 sport->ref_clk--; in pic32_disable_clock() 60 clk_disable_unprepare(sport->clk); in pic32_disable_clock() 66 struct pic32_sport *sport = to_pic32_sport(port); in pic32_uart_tx_empty() local 67 u32 val = pic32_uart_readl(sport, PIC32_UART_STA); in pic32_uart_tx_empty() [all …]
|
D | sb1250-duart.c | 104 struct sbd_port sport[2]; member 125 static u64 __read_sbdchn(struct sbd_port *sport, int reg) in __read_sbdchn() argument 127 void __iomem *csr = sport->port.membase + reg; in __read_sbdchn() 132 static u64 __read_sbdshr(struct sbd_port *sport, int reg) in __read_sbdshr() argument 134 void __iomem *csr = sport->memctrl + reg; in __read_sbdshr() 139 static void __write_sbdchn(struct sbd_port *sport, int reg, u64 value) in __write_sbdchn() argument 141 void __iomem *csr = sport->port.membase + reg; in __write_sbdchn() 146 static void __write_sbdshr(struct sbd_port *sport, int reg, u64 value) in __write_sbdshr() argument 148 void __iomem *csr = sport->memctrl + reg; in __write_sbdshr() 157 static void __war_sbd1956(struct sbd_port *sport) in __war_sbd1956() argument [all …]
|
D | bfin_sport_uart.h | 34 #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 …]
|
D | bfin_sport_uart.c | 723 struct sport_uart_port *sport = dev_get_drvdata(dev); in sport_uart_suspend() local 726 if (sport) in sport_uart_suspend() 727 uart_suspend_port(&sport_uart_reg, &sport->port); in sport_uart_suspend() 734 struct sport_uart_port *sport = dev_get_drvdata(dev); in sport_uart_resume() local 737 if (sport) in sport_uart_resume() 738 uart_resume_port(&sport_uart_reg, &sport->port); in sport_uart_resume() 752 struct sport_uart_port *sport; in sport_uart_probe() local 765 sport = bfin_sport_uart_ports[pdev->id]; in sport_uart_probe() 766 if (!sport) { in sport_uart_probe() 780 spin_lock_init(&sport->port.lock); in sport_uart_probe() [all …]
|
D | pic32_uart.h | 71 #define pic32_get_port(sport) (&sport->port) argument 72 #define pic32_get_opt(sport) (&sport->opt) argument 73 #define tx_irq_enabled(sport) (sport->enable_tx_irq) argument 75 static inline void pic32_uart_writel(struct pic32_sport *sport, in pic32_uart_writel() argument 78 struct uart_port *port = pic32_get_port(sport); in pic32_uart_writel() 83 static inline u32 pic32_uart_readl(struct pic32_sport *sport, u32 reg) in pic32_uart_readl() argument 85 struct uart_port *port = pic32_get_port(sport); in pic32_uart_readl()
|
D | pxa.c | 802 struct uart_pxa_port *sport = dev_get_drvdata(dev); in serial_pxa_suspend() local 804 if (sport) in serial_pxa_suspend() 805 uart_suspend_port(&serial_pxa_reg, &sport->port); in serial_pxa_suspend() 812 struct uart_pxa_port *sport = dev_get_drvdata(dev); in serial_pxa_resume() local 814 if (sport) in serial_pxa_resume() 815 uart_resume_port(&serial_pxa_reg, &sport->port); in serial_pxa_resume() 833 struct uart_pxa_port *sport) in serial_pxa_probe_dt() argument 846 sport->port.line = ret; in serial_pxa_probe_dt() 852 struct uart_pxa_port *sport; in serial_pxa_probe() local 861 sport = kzalloc(sizeof(struct uart_pxa_port), GFP_KERNEL); in serial_pxa_probe() [all …]
|
D | netx-serial.c | 595 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 …]
|
D | sh-sci.c | 2475 struct sci_port *sport = to_sci_port(port); in sci_remap_port() local 2484 port->membase = ioremap_nocache(port->mapbase, sport->reg_size); in sci_remap_port() 2503 struct sci_port *sport = to_sci_port(port); in sci_release_port() local 2510 release_mem_region(port->mapbase, sport->reg_size); in sci_release_port() 2516 struct sci_port *sport = to_sci_port(port); in sci_request_port() local 2519 res = request_mem_region(port->mapbase, sport->reg_size, in sci_request_port() 2538 struct sci_port *sport = to_sci_port(port); in sci_config_port() local 2540 port->type = sport->cfg->type; in sci_config_port() 3122 struct sci_port *sport = dev_get_drvdata(dev); in sci_suspend() local 3124 if (sport) in sci_suspend() [all …]
|
/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 134 struct srpt_port *sport; in srpt_event_handler() local 146 sport = &sdev->port[event->element.port_num - 1]; in srpt_event_handler() 147 sport->lid = 0; in srpt_event_handler() 148 sport->sm_lid = 0; in srpt_event_handler() 159 sport = &sdev->port[event->element.port_num - 1]; in srpt_event_handler() 160 if (!sport->lid && !sport->sm_lid) in srpt_event_handler() 161 schedule_work(&sport->work); in srpt_event_handler() 293 static void srpt_get_ioc(struct srpt_port *sport, u32 slot, in srpt_get_ioc() argument 296 struct srpt_device *sdev = sport->sdev; in srpt_get_ioc() 328 iocp->rdma_size = cpu_to_be32(min(sport->port_attrib.srp_max_rdma_size, in srpt_get_ioc() [all …]
|
D | ib_srpt.h | 273 struct srpt_port *sport; member
|
/drivers/rapidio/ |
D | rio-scan.c | 894 u8 sport; in rio_update_route_tables() local 913 sport = RIO_GET_PORT_NUM(swrdev->swpinfo); in rio_update_route_tables() 916 destid, sport, 0); in rio_update_route_tables() 917 rswitch->route_table[destid] = sport; in rio_update_route_tables() 1031 u8 sport; in rio_build_route_tables() local 1042 i, &sport, 0) < 0) in rio_build_route_tables() 1044 rswitch->route_table[i] = sport; in rio_build_route_tables()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_uld.h | 177 __be32 sip, __be16 sport, __be16 vlan, 180 const struct in6_addr *sip, __be16 sport, 185 __be32 sip, __be16 sport, __be16 vlan,
|
D | cxgb4_main.c | 1391 __be32 sip, __be16 sport, __be16 vlan, in cxgb4_create_server() argument 1408 req->local_port = sport; in cxgb4_create_server() 1432 const struct in6_addr *sip, __be16 sport, in cxgb4_create_server6() argument 1449 req->local_port = sport; in cxgb4_create_server6() 2301 __be32 sip, __be16 sport, __be16 vlan, in cxgb4_create_server_filter() argument 2331 f->fs.val.lport = cpu_to_be16(sport); in cxgb4_create_server_filter()
|
/drivers/infiniband/hw/qib/ |
D | qib_user_sdma.h | 37 qib_user_sdma_queue_create(struct device *dev, int unit, int port, int sport);
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | cxgb3_ioctl.h | 158 uint16_t sport; member
|
D | common.h | 414 u16 sport; member
|
/drivers/net/ |
D | geneve.c | 877 __be16 sport; in geneve_xmit_skb() local 901 sport = udp_flow_src_port(geneve->net, skb, 1, USHRT_MAX, true); in geneve_xmit_skb() 940 tos, ttl, df, sport, geneve->dst_port, in geneve_xmit_skb() 968 __be16 sport; in geneve6_xmit_skb() local 990 sport = udp_flow_src_port(geneve->net, skb, 1, USHRT_MAX, true); in geneve6_xmit_skb() 1033 sport, geneve->dst_port, in geneve6_xmit_skb()
|
D | vxlan.c | 2471 __be16 sport, dport; in vxlan_fill_metadata_dst() local 2473 sport = udp_flow_src_port(dev_net(dev), skb, vxlan->cfg.port_min, in vxlan_fill_metadata_dst() 2505 info->key.tp_src = sport; in vxlan_fill_metadata_dst()
|
/drivers/spi/ |
D | Makefile | 27 obj-$(CONFIG_SPI_BFIN_SPORT) += spi-bfin-sport.o
|
/drivers/infiniband/core/ |
D | ud_header.c | 168 { STRUCT_FIELD(udp, sport),
|
/drivers/infiniband/hw/qedr/ |
D | qedr_cm.c | 366 udh->udp.sport = htons(QEDR_ROCE_V2_UDP_SPORT); in qedr_gsi_build_header()
|