Lines Matching refs:nc
59 struct ncsi_channel *nc)
66 nla_put_u32(skb, NCSI_CHANNEL_ATTR_ID, nc->id);
67 m = &nc->modes[NCSI_MODE_LINK];
69 if (nc->state == NCSI_CHANNEL_ACTIVE)
71 if (nc == nc->package->preferred_channel)
74 nla_put_u32(skb, NCSI_CHANNEL_ATTR_VERSION_MAJOR, nc->version.major);
75 nla_put_u32(skb, NCSI_CHANNEL_ATTR_VERSION_MINOR, nc->version.minor);
76 nla_put_string(skb, NCSI_CHANNEL_ATTR_VERSION_STR, nc->version.fw_name);
81 ncf = &nc->vlan_filter;
99 struct ncsi_channel *nc;
127 NCSI_FOR_EACH_CHANNEL(np, nc) {
134 rc = ncsi_write_channel_info(skb, ndp, nc);
278 struct ncsi_channel *nc, *channel;
311 NCSI_FOR_EACH_CHANNEL(package, nc)
312 if (nc->id == channel_id) {
313 channel = nc;
484 struct ncsi_channel *nc)
507 if (nc)
508 nla_put_u32(skb, NCSI_ATTR_CHANNEL_ID, nc->id);
526 struct ncsi_channel *nc)
554 if (nc)
555 nla_put_u32(skb, NCSI_ATTR_CHANNEL_ID, nc->id);
645 struct ncsi_channel *nc, *channel;
682 NCSI_FOR_EACH_CHANNEL(np, nc)
683 if (nc->id == channel_id) {
684 channel = nc;