/* * Copyright (C) ST-Ericsson AB 2010 * Author: Sjur Brendeland * License terms: GNU General Public License (GPL) version 2 */ #ifndef CFSRVL_H_ #define CFSRVL_H_ #include #include #include #include #include struct cfsrvl { struct cflayer layer; bool open; bool phy_flow_on; bool modem_flow_on; bool supports_flowctrl; void (*release)(struct cflayer *layer); struct dev_info dev_info; void (*hold)(struct cflayer *lyr); void (*put)(struct cflayer *lyr); struct rcu_head rcu; }; struct cflayer *cfvei_create(u8 linkid, struct dev_info *dev_info); struct cflayer *cfdgml_create(u8 linkid, struct dev_info *dev_info); struct cflayer *cfutill_create(u8 linkid, struct dev_info *dev_info); struct cflayer *cfvidl_create(u8 linkid, struct dev_info *dev_info); struct cflayer *cfrfml_create(u8 linkid, struct dev_info *dev_info, int mtu_size); struct cflayer *cfdbgl_create(u8 linkid, struct dev_info *dev_info); void cfsrvl_ctrlcmd(struct cflayer *layr, enum caif_ctrlcmd ctrl, int phyid); bool cfsrvl_phyid_match(struct cflayer *layer, int phyid); void cfsrvl_init(struct cfsrvl *service, u8 channel_id, struct dev_info *dev_info, bool supports_flowctrl); bool cfsrvl_ready(struct cfsrvl *service, int *err); u8 cfsrvl_getphyid(struct cflayer *layer); static inline void cfsrvl_get(struct cflayer *layr) { struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); if (layr == NULL || layr->up == NULL || s->hold == NULL) return; s->hold(layr->up); } static inline void cfsrvl_put(struct cflayer *layr) { struct cfsrvl *s = container_of(layr, struct cfsrvl, layer); if (layr == NULL || layr->up == NULL || s->hold == NULL) return; s->put(layr->up); } #endif /* CFSRVL_H_ */ xt.git/log/net/ipv4/tcp_westwood.c?h=nds-private-remove'>logtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2017-01-26 09:56:15 -0700
committerJens Axboe <axboe@fb.com>2017-01-26 09:56:15 -0700
commit0d4ee015d5ea50febb882d00520d62c6de3f725c (patch)
tree6bd2e032e00c34590a8d39d5a43b6a7518d1384d /net/ipv4/tcp_westwood.c
parent690e5325b8c7d5db05fc569c0f7b888bb4248272 (diff)
parent19e420bb4076ace670addc55300e3b8c4a02dfc6 (diff)
Merge branch 'nvme-4.10-fixes' of git://git.infradead.org/nvme into for-linus
Pull nvme target fixes from Sagi: Given that its -rc6, I removed anything that is not bug fix. - nvmet-fc discard fix from Christoph - queue disconnect fix from James - nvmet-rdma dma sync fix from Parav - Some more nvmet fixes
Diffstat (limited to 'net/ipv4/tcp_westwood.c')