/drivers/tty/serial/ |
D | imx.c | 276 static void imx_uart_writel(struct imx_port *sport, u32 val, u32 offset) in imx_uart_writel() argument 280 sport->ucr1 = val; in imx_uart_writel() 283 sport->ucr2 = val; in imx_uart_writel() 286 sport->ucr3 = val; in imx_uart_writel() 289 sport->ucr4 = val; in imx_uart_writel() 292 sport->ufcr = val; in imx_uart_writel() 297 writel(val, sport->port.membase + offset); in imx_uart_writel() 300 static u32 imx_uart_readl(struct imx_port *sport, u32 offset) in imx_uart_readl() argument 304 return sport->ucr1; in imx_uart_readl() 313 if (!(sport->ucr2 & UCR2_SRST)) in imx_uart_readl() [all …]
|
D | fsl_lpuart.c | 340 static inline bool is_layerscape_lpuart(struct lpuart_port *sport) in is_layerscape_lpuart() argument 342 return (sport->devtype == LS1021A_LPUART || in is_layerscape_lpuart() 343 sport->devtype == LS1028A_LPUART); in is_layerscape_lpuart() 346 static inline bool is_imx7ulp_lpuart(struct lpuart_port *sport) in is_imx7ulp_lpuart() argument 348 return sport->devtype == IMX7ULP_LPUART; in is_imx7ulp_lpuart() 351 static inline bool is_imx8qxp_lpuart(struct lpuart_port *sport) in is_imx8qxp_lpuart() argument 353 return sport->devtype == IMX8QXP_LPUART; in is_imx8qxp_lpuart() 381 static int __lpuart_enable_clks(struct lpuart_port *sport, bool is_en) in __lpuart_enable_clks() argument 386 ret = clk_prepare_enable(sport->ipg_clk); in __lpuart_enable_clks() 390 ret = clk_prepare_enable(sport->baud_clk); in __lpuart_enable_clks() [all …]
|
D | sa1100.c | 45 #define UART_GET_UTCR0(sport) __raw_readl((sport)->port.membase + UTCR0) argument 46 #define UART_GET_UTCR1(sport) __raw_readl((sport)->port.membase + UTCR1) argument 47 #define UART_GET_UTCR2(sport) __raw_readl((sport)->port.membase + UTCR2) argument 48 #define UART_GET_UTCR3(sport) __raw_readl((sport)->port.membase + UTCR3) argument 49 #define UART_GET_UTSR0(sport) __raw_readl((sport)->port.membase + UTSR0) argument 50 #define UART_GET_UTSR1(sport) __raw_readl((sport)->port.membase + UTSR1) argument 51 #define UART_GET_CHAR(sport) __raw_readl((sport)->port.membase + UTDR) argument 53 #define UART_PUT_UTCR0(sport,v) __raw_writel((v),(sport)->port.membase + UTCR0) argument 54 #define UART_PUT_UTCR1(sport,v) __raw_writel((v),(sport)->port.membase + UTCR1) argument 55 #define UART_PUT_UTCR2(sport,v) __raw_writel((v),(sport)->port.membase + UTCR2) argument [all …]
|
D | sb1250-duart.c | 95 struct sbd_port sport[2]; member 116 static u64 __read_sbdchn(struct sbd_port *sport, int reg) in __read_sbdchn() argument 118 void __iomem *csr = sport->port.membase + reg; in __read_sbdchn() 123 static u64 __read_sbdshr(struct sbd_port *sport, int reg) in __read_sbdshr() argument 125 void __iomem *csr = sport->memctrl + reg; in __read_sbdshr() 130 static void __write_sbdchn(struct sbd_port *sport, int reg, u64 value) in __write_sbdchn() argument 132 void __iomem *csr = sport->port.membase + reg; in __write_sbdchn() 137 static void __write_sbdshr(struct sbd_port *sport, int reg, u64 value) in __write_sbdshr() argument 139 void __iomem *csr = sport->memctrl + reg; in __write_sbdshr() 148 static void __war_sbd1956(struct sbd_port *sport) in __war_sbd1956() argument [all …]
|
D | pic32_uart.c | 38 static inline void pic32_wait_deplete_txbuf(struct pic32_sport *sport) in pic32_wait_deplete_txbuf() argument 41 while (!(pic32_uart_readl(sport, PIC32_UART_STA) & PIC32_UART_STA_TRMT)) in pic32_wait_deplete_txbuf() 45 static inline int pic32_enable_clock(struct pic32_sport *sport) in pic32_enable_clock() argument 47 int ret = clk_prepare_enable(sport->clk); in pic32_enable_clock() 52 sport->ref_clk++; in pic32_enable_clock() 56 static inline void pic32_disable_clock(struct pic32_sport *sport) in pic32_disable_clock() argument 58 sport->ref_clk--; in pic32_disable_clock() 59 clk_disable_unprepare(sport->clk); in pic32_disable_clock() 65 struct pic32_sport *sport = to_pic32_sport(port); in pic32_uart_tx_empty() local 66 u32 val = pic32_uart_readl(sport, PIC32_UART_STA); in pic32_uart_tx_empty() [all …]
|
D | fsl_linflexuart.c | 160 static inline void linflex_transmit_buffer(struct uart_port *sport) in linflex_transmit_buffer() argument 162 struct circ_buf *xmit = &sport->state->xmit; in linflex_transmit_buffer() 168 writeb(c, sport->membase + BDRL); in linflex_transmit_buffer() 171 while (((status = readl(sport->membase + UARTSR)) & in linflex_transmit_buffer() 177 sport->icount.tx++; in linflex_transmit_buffer() 180 sport->membase + UARTSR); in linflex_transmit_buffer() 184 uart_write_wakeup(sport); in linflex_transmit_buffer() 187 linflex_stop_tx(sport); in linflex_transmit_buffer() 201 struct uart_port *sport = dev_id; in linflex_txint() local 202 struct circ_buf *xmit = &sport->state->xmit; in linflex_txint() [all …]
|
D | pxa.c | 794 struct uart_pxa_port *sport = dev_get_drvdata(dev); in serial_pxa_suspend() local 796 if (sport) in serial_pxa_suspend() 797 uart_suspend_port(&serial_pxa_reg, &sport->port); in serial_pxa_suspend() 804 struct uart_pxa_port *sport = dev_get_drvdata(dev); in serial_pxa_resume() local 806 if (sport) in serial_pxa_resume() 807 uart_resume_port(&serial_pxa_reg, &sport->port); in serial_pxa_resume() 825 struct uart_pxa_port *sport) in serial_pxa_probe_dt() argument 838 sport->port.line = ret; in serial_pxa_probe_dt() 844 struct uart_pxa_port *sport; in serial_pxa_probe() local 853 sport = kzalloc(sizeof(struct uart_pxa_port), GFP_KERNEL); in serial_pxa_probe() [all …]
|
D | pic32_uart.h | 70 #define pic32_get_port(sport) (&sport->port) argument 71 #define pic32_get_opt(sport) (&sport->opt) argument 72 #define tx_irq_enabled(sport) (sport->enable_tx_irq) argument 74 static inline void pic32_uart_writel(struct pic32_sport *sport, in pic32_uart_writel() argument 77 struct uart_port *port = pic32_get_port(sport); in pic32_uart_writel() 82 static inline u32 pic32_uart_readl(struct pic32_sport *sport, u32 reg) in pic32_uart_readl() argument 84 struct uart_port *port = pic32_get_port(sport); in pic32_uart_readl()
|
D | sprd_serial.c | 1179 struct sprd_uart_port *sport; in sprd_probe() local 1190 sport = devm_kzalloc(&pdev->dev, sizeof(*sport), GFP_KERNEL); in sprd_probe() 1191 if (!sport) in sprd_probe() 1194 up = &sport->port; in sprd_probe() 1225 ret = sprd_rx_alloc_buf(sport); in sprd_probe() 1238 sprd_port[index] = sport; in sprd_probe() 1253 sprd_rx_free_buf(sport); in sprd_probe()
|
D | sh-sci.c | 2667 struct sci_port *sport = to_sci_port(port); in sci_remap_port() local 2676 port->membase = ioremap(port->mapbase, sport->reg_size); in sci_remap_port() 2695 struct sci_port *sport = to_sci_port(port); in sci_release_port() local 2702 release_mem_region(port->mapbase, sport->reg_size); in sci_release_port() 2708 struct sci_port *sport = to_sci_port(port); in sci_request_port() local 2711 res = request_mem_region(port->mapbase, sport->reg_size, in sci_request_port() 2730 struct sci_port *sport = to_sci_port(port); in sci_config_port() local 2732 port->type = sport->cfg->type; in sci_config_port() 3379 struct sci_port *sport = dev_get_drvdata(dev); in sci_suspend() local 3381 if (sport) in sci_suspend() [all …]
|
/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.c | 144 struct srpt_port *sport; in srpt_event_handler() local 154 sport = &sdev->port[port_num]; in srpt_event_handler() 155 sport->lid = 0; in srpt_event_handler() 156 sport->sm_lid = 0; in srpt_event_handler() 172 sport = &sdev->port[port_num]; in srpt_event_handler() 173 if (!sport->lid && !sport->sm_lid) in srpt_event_handler() 174 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() 366 iocp->rdma_size = cpu_to_be32(min(sport->port_attrib.srp_max_rdma_size, in srpt_get_ioc() [all …]
|
D | ib_srpt.h | 312 struct srpt_port *sport; member
|
/drivers/infiniband/hw/hns/ |
D | hns_roce_ah.c | 42 u16 sport; in get_ah_udp_sport() local 45 sport = get_random_u32() % in get_ah_udp_sport() 50 sport = rdma_flow_label_to_udp_sport(fl); in get_ah_udp_sport() 52 return sport; in get_ah_udp_sport()
|
/drivers/infiniband/hw/mlx5/ |
D | ah.c | 39 __be16 sport; in mlx5_ah_get_udp_sport() local 44 sport = cpu_to_be16( in mlx5_ah_get_udp_sport() 47 sport = mlx5_get_roce_udp_sport_min(dev, in mlx5_ah_get_udp_sport() 50 return sport; in mlx5_ah_get_udp_sport()
|
/drivers/net/ |
D | geneve.c | 777 __be16 dport, __be16 sport, in geneve_get_v4_rt() argument 795 fl4->fl4_sport = sport; in geneve_get_v4_rt() 833 __be16 dport, __be16 sport) in geneve_get_v6_dst() argument 850 fl6->fl6_sport = sport; in geneve_get_v6_dst() 895 __be16 sport; in geneve_xmit_skb() local 901 sport = udp_flow_src_port(geneve->net, skb, 1, USHRT_MAX, true); in geneve_xmit_skb() 903 geneve->cfg.info.key.tp_dst, sport, &full_tos); in geneve_xmit_skb() 975 tos, ttl, df, sport, geneve->cfg.info.key.tp_dst, in geneve_xmit_skb() 992 __be16 sport; in geneve6_xmit_skb() local 998 sport = udp_flow_src_port(geneve->net, skb, 1, USHRT_MAX, true); in geneve6_xmit_skb() [all …]
|
D | bareudp.c | 293 __be16 sport, df; in bareudp_xmit_skb() local 311 sport = udp_flow_src_port(bareudp->net, skb, in bareudp_xmit_skb() 336 tos, ttl, df, sport, bareudp->port, in bareudp_xmit_skb() 359 __be16 sport; in bareudp6_xmit_skb() local 373 sport = udp_flow_src_port(bareudp->net, skb, in bareudp6_xmit_skb() 399 info->key.label, sport, bareudp->port, in bareudp6_xmit_skb()
|
/drivers/rapidio/ |
D | rio-scan.c | 892 u8 sport; in rio_update_route_tables() local 911 sport = RIO_GET_PORT_NUM(swrdev->swpinfo); in rio_update_route_tables() 914 destid, sport, 0); in rio_update_route_tables() 915 rswitch->route_table[destid] = sport; in rio_update_route_tables() 1029 u8 sport; in rio_build_route_tables() local 1040 i, &sport, 0) < 0) in rio_build_route_tables() 1042 rswitch->route_table[i] = sport; in rio_build_route_tables()
|
/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/marvell/octeontx2/af/ |
D | rvu_npc_fs.c | 840 NPC_WRITE_FLOW(NPC_SPORT_TCP, sport, ntohs(pkt->sport), 0, in npc_update_flow() 841 ntohs(mask->sport), 0); in npc_update_flow() 842 NPC_WRITE_FLOW(NPC_SPORT_UDP, sport, ntohs(pkt->sport), 0, in npc_update_flow() 843 ntohs(mask->sport), 0); in npc_update_flow() 848 NPC_WRITE_FLOW(NPC_SPORT_SCTP, sport, ntohs(pkt->sport), 0, in npc_update_flow() 849 ntohs(mask->sport), 0); in npc_update_flow()
|
/drivers/net/ethernet/mscc/ |
D | ocelot_vcap.c | 488 struct ocelot_vcap_udp_tcp *sport, *dport; in is2_entry_set() local 503 sport = &ipv4->sport; in is2_entry_set() 533 sport = &ipv6->sport; in is2_entry_set() 574 VCAP_IS2_HK_L4_SPORT, sport); in is2_entry_set() 717 struct ocelot_vcap_udp_tcp *sport = &ipv4->sport; in is1_entry_set() local 748 sport); in is1_entry_set()
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 574 memcpy(&pkt->sport, &ipv4_l4_hdr->psrc, in otx2_prepare_ipv4_flow() 575 sizeof(pkt->sport)); in otx2_prepare_ipv4_flow() 576 memcpy(&pmask->sport, &ipv4_l4_mask->psrc, in otx2_prepare_ipv4_flow() 577 sizeof(pmask->sport)); in otx2_prepare_ipv4_flow() 699 memcpy(&pkt->sport, &ipv6_l4_hdr->psrc, in otx2_prepare_ipv6_flow() 700 sizeof(pkt->sport)); in otx2_prepare_ipv6_flow() 701 memcpy(&pmask->sport, &ipv6_l4_mask->psrc, in otx2_prepare_ipv6_flow() 702 sizeof(pmask->sport)); in otx2_prepare_ipv6_flow()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_uld.h | 254 __be32 sip, __be16 sport, __be16 vlan, 257 const struct in6_addr *sip, __be16 sport, 262 __be32 sip, __be16 sport, __be16 vlan,
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_tc.c | 266 actions->nat.l4.ports.sport = htons(val); in bnxt_tc_parse_pedit() 270 actions->nat.l4.ports.sport, in bnxt_tc_parse_pedit() 450 flow->l4_key.ports.sport = match.key->src; in bnxt_tc_parse_flow() 451 flow->l4_mask.ports.sport = match.mask->src; in bnxt_tc_parse_flow() 626 if (actions->nat.l4.ports.sport) in bnxt_hwrm_cfa_flow_alloc() 628 actions->nat.l4.ports.sport; in bnxt_hwrm_cfa_flow_alloc() 653 if (actions->nat.l4.ports.sport) in bnxt_hwrm_cfa_flow_alloc() 655 actions->nat.l4.ports.sport; in bnxt_hwrm_cfa_flow_alloc() 728 req->l4_src_port = flow->l4_key.ports.sport; in bnxt_hwrm_cfa_flow_alloc() 729 req->l4_src_port_mask = flow->l4_mask.ports.sport; in bnxt_hwrm_cfa_flow_alloc()
|
/drivers/net/ethernet/chelsio/cxgb3/ |
D | cxgb3_ioctl.h | 158 uint16_t sport; member
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_selftests.c | 43 int sport; member 150 thdr->source = htons(attr->sport); in stmmac_test_get_udp_skb() 155 uhdr->source = htons(attr->sport); in stmmac_test_get_udp_skb() 829 attr.sport = 0x321; in stmmac_test_rss() 930 attr.sport = 9; in __stmmac_test_vlanfilt() 1024 attr.sport = 9; in __stmmac_test_dvlanfilt() 1523 attr.sport = src; in __stmmac_test_l4filt()
|