Lines Matching refs:port
47 struct scif_port *port = kzalloc(sizeof(*port), GFP_ATOMIC); in __scif_get_port() local
49 if (!port) in __scif_get_port()
52 id = idr_alloc(&scif_ports, port, start, end, GFP_ATOMIC); in __scif_get_port()
54 port->ref_cnt++; in __scif_get_port()
66 int scif_rsrv_port(u16 port) in scif_rsrv_port() argument
68 return __scif_get_port(port, port + 1); in scif_rsrv_port()
91 struct scif_port *port; in scif_get_port() local
96 port = idr_find(&scif_ports, id); in scif_get_port()
97 if (port) in scif_get_port()
98 port->ref_cnt++; in scif_get_port()
110 struct scif_port *port; in scif_put_port() local
115 port = idr_find(&scif_ports, id); in scif_put_port()
116 if (port) { in scif_put_port()
117 port->ref_cnt--; in scif_put_port()
118 if (!port->ref_cnt) { in scif_put_port()
120 kfree(port); in scif_put_port()