Home
last modified time | relevance | path

Searched refs:ncm (Results 1 – 6 of 6) sorted by relevance

/net/ncsi/
Dncsi-rsp.c166 struct ncsi_channel_mode *ncm; in ncsi_rsp_handler_ec() local
175 ncm = &nc->modes[NCSI_MODE_ENABLE]; in ncsi_rsp_handler_ec()
176 if (ncm->enable) in ncsi_rsp_handler_ec()
179 ncm->enable = 1; in ncsi_rsp_handler_ec()
188 struct ncsi_channel_mode *ncm; in ncsi_rsp_handler_dc() local
202 ncm = &nc->modes[NCSI_MODE_ENABLE]; in ncsi_rsp_handler_dc()
203 if (!ncm->enable) in ncsi_rsp_handler_dc()
206 ncm->enable = 0; in ncsi_rsp_handler_dc()
237 struct ncsi_channel_mode *ncm; in ncsi_rsp_handler_ecnt() local
246 ncm = &nc->modes[NCSI_MODE_TX_ENABLE]; in ncsi_rsp_handler_ecnt()
[all …]
Dncsi-aen.c50 struct ncsi_channel_mode *ncm; in ncsi_aen_handler_lsc() local
68 ncm = &nc->modes[NCSI_MODE_LINK]; in ncsi_aen_handler_lsc()
69 old_data = ncm->data[2]; in ncsi_aen_handler_lsc()
71 ncm->data[2] = data; in ncsi_aen_handler_lsc()
72 ncm->data[4] = ntohl(lsc->oem_status); in ncsi_aen_handler_lsc()
106 ncm = &nc->modes[NCSI_MODE_TX_ENABLE]; in ncsi_aen_handler_lsc()
110 } else if (ncm->enable) { in ncsi_aen_handler_lsc()
123 ncm = &tmp->modes[NCSI_MODE_TX_ENABLE]; in ncsi_aen_handler_lsc()
124 if (ncm->enable && in ncsi_aen_handler_lsc()
177 struct ncsi_channel_mode *ncm; in ncsi_aen_handler_hncdsc() local
[all …]
Dncsi-manage.c94 struct ncsi_channel_mode *ncm; in ncsi_channel_monitor() local
146 ncm = &nc->modes[NCSI_MODE_LINK]; in ncsi_channel_monitor()
150 ncm->data[2] &= ~0x1; in ncsi_channel_monitor()
813 struct ncsi_channel_mode *ncm; in ncsi_channel_is_tx() local
824 ncm = &channel->modes[NCSI_MODE_TX_ENABLE]; in ncsi_channel_is_tx()
825 if (ncm->enable) in ncsi_channel_is_tx()
1179 struct ncsi_channel_mode *ncm; in ncsi_choose_active_channel() local
1216 ncm = &nc->modes[NCSI_MODE_LINK]; in ncsi_choose_active_channel()
1217 if (ncm->data[2] & 0x1) { in ncsi_choose_active_channel()
1235 ncm->data[2] & 0x1 ? "up" : "down"); in ncsi_choose_active_channel()
/net/mpls/
Daf_mpls.c1136 struct netconfmsg *ncm; in mpls_netconf_fill_devconf() local
1147 ncm = nlmsg_data(nlh); in mpls_netconf_fill_devconf()
1148 ncm->ncm_family = AF_MPLS; in mpls_netconf_fill_devconf()
1312 struct netconfmsg *ncm; in mpls_netconf_dump_devconf() local
1314 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ncm))) { in mpls_netconf_dump_devconf()
1319 if (nlmsg_attrlen(nlh, sizeof(*ncm))) { in mpls_netconf_dump_devconf()
/net/ipv4/
Ddevinet.c2047 struct netconfmsg *ncm; in inet_netconf_fill_devconf() local
2058 ncm = nlmsg_data(nlh); in inet_netconf_fill_devconf()
2059 ncm->ncm_family = AF_INET; in inet_netconf_fill_devconf()
2246 struct netconfmsg *ncm; in inet_netconf_dump_devconf() local
2248 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ncm))) { in inet_netconf_dump_devconf()
2253 if (nlmsg_attrlen(nlh, sizeof(*ncm))) { in inet_netconf_dump_devconf()
/net/ipv6/
Daddrconf.c524 struct netconfmsg *ncm; in inet6_netconf_fill_devconf() local
535 ncm = nlmsg_data(nlh); in inet6_netconf_fill_devconf()
536 ncm->ncm_family = AF_INET6; in inet6_netconf_fill_devconf()
734 struct netconfmsg *ncm; in inet6_netconf_dump_devconf() local
736 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ncm))) { in inet6_netconf_dump_devconf()
741 if (nlmsg_attrlen(nlh, sizeof(*ncm))) { in inet6_netconf_dump_devconf()