/kernel/linux/linux-6.6/drivers/usb/gadget/function/ |
H A D | f_ncm.c | 508 static inline void ncm_reset_values(struct f_ncm *ncm) in ncm_reset_values() argument 510 ncm->parser_opts = &ndp16_opts; in ncm_reset_values() 511 ncm->is_crc = false; in ncm_reset_values() 512 ncm->ndp_sign = ncm->parser_opts->ndp_sign; in ncm_reset_values() 513 ncm->port.cdc_filter = DEFAULT_FILTER; in ncm_reset_values() 515 /* doesn't make sense for ncm, fixed size used */ in ncm_reset_values() 516 ncm->port.header_len = 0; in ncm_reset_values() 518 ncm->port.fixed_out_len = le32_to_cpu(ntb_parameters.dwNtbOutMaxSize); in ncm_reset_values() 519 ncm in ncm_reset_values() 525 ncm_do_notify(struct f_ncm *ncm) ncm_do_notify() argument 593 ncm_notify(struct f_ncm *ncm) ncm_notify() argument 611 struct f_ncm *ncm = req->context; ncm_notify_complete() local 642 struct f_ncm *ncm = func_to_ncm(f); ncm_ep0out_complete() local 669 struct f_ncm *ncm = func_to_ncm(f); ncm_setup() local 849 struct f_ncm *ncm = func_to_ncm(f); ncm_set_alt() local 930 struct f_ncm *ncm = func_to_ncm(f); ncm_get_alt() local 937 package_for_tx(struct f_ncm *ncm) package_for_tx() argument 997 struct f_ncm *ncm = func_to_ncm(&port->func); ncm_wrap_ntb() local 1137 struct f_ncm *ncm = container_of(data, struct f_ncm, task_timer); ncm_tx_timeout() local 1158 struct f_ncm *ncm = func_to_ncm(&port->func); ncm_unwrap_ntb() local 1352 struct f_ncm *ncm = func_to_ncm(f); ncm_disable() local 1390 struct f_ncm *ncm = func_to_ncm(&geth->func); ncm_open() local 1402 struct f_ncm *ncm = func_to_ncm(&geth->func); ncm_close() local 1419 struct f_ncm *ncm = func_to_ncm(f); ncm_bind() local 1573 USB_ETHERNET_CONFIGFS_ITEM(ncm); global() variable 1576 USB_ETHERNET_CONFIGFS_ITEM_ATTR_DEV_ADDR(ncm); global() variable 1579 USB_ETHERNET_CONFIGFS_ITEM_ATTR_HOST_ADDR(ncm); global() variable 1582 USB_ETHERNET_CONFIGFS_ITEM_ATTR_QMULT(ncm); global() variable 1585 USB_ETHERNET_CONFIGFS_ITEM_ATTR_IFNAME(ncm); global() variable 1654 struct f_ncm *ncm; ncm_free() local 1667 struct f_ncm *ncm = func_to_ncm(f); ncm_unbind() local 1690 struct f_ncm *ncm; ncm_alloc() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
H A D | f_ncm.c | 529 static inline void ncm_reset_values(struct f_ncm *ncm) in ncm_reset_values() argument 531 ncm->parser_opts = &ndp16_opts; in ncm_reset_values() 532 ncm->is_crc = false; in ncm_reset_values() 533 ncm->ndp_sign = ncm->parser_opts->ndp_sign; in ncm_reset_values() 534 ncm->port.cdc_filter = DEFAULT_FILTER; in ncm_reset_values() 536 /* doesn't make sense for ncm, fixed size used */ in ncm_reset_values() 537 ncm->port.header_len = 0; in ncm_reset_values() 539 ncm->port.fixed_out_len = le32_to_cpu(ntb_parameters.dwNtbOutMaxSize); in ncm_reset_values() 540 ncm in ncm_reset_values() 546 ncm_do_notify(struct f_ncm *ncm) ncm_do_notify() argument 614 ncm_notify(struct f_ncm *ncm) ncm_notify() argument 632 struct f_ncm *ncm = req->context; ncm_notify_complete() local 663 struct f_ncm *ncm = func_to_ncm(f); ncm_ep0out_complete() local 690 struct f_ncm *ncm = func_to_ncm(f); ncm_setup() local 870 struct f_ncm *ncm = func_to_ncm(f); ncm_set_alt() local 953 struct f_ncm *ncm = func_to_ncm(f); ncm_get_alt() local 960 package_for_tx(struct f_ncm *ncm) package_for_tx() argument 1020 struct f_ncm *ncm = func_to_ncm(&port->func); ncm_wrap_ntb() local 1159 struct f_ncm *ncm = container_of(data, struct f_ncm, task_timer); ncm_tx_timeout() local 1182 struct f_ncm *ncm = func_to_ncm(&port->func); ncm_unwrap_ntb() local 1368 struct f_ncm *ncm = func_to_ncm(f); ncm_disable() local 1407 struct f_ncm *ncm = func_to_ncm(&geth->func); ncm_open() local 1419 struct f_ncm *ncm = func_to_ncm(&geth->func); ncm_close() local 1436 struct f_ncm *ncm = func_to_ncm(f); ncm_bind() local 1592 USB_ETHERNET_CONFIGFS_ITEM(ncm); global() variable 1595 USB_ETHERNET_CONFIGFS_ITEM_ATTR_DEV_ADDR(ncm); global() variable 1598 USB_ETHERNET_CONFIGFS_ITEM_ATTR_HOST_ADDR(ncm); global() variable 1601 USB_ETHERNET_CONFIGFS_ITEM_ATTR_QMULT(ncm); global() variable 1604 USB_ETHERNET_CONFIGFS_ITEM_ATTR_IFNAME(ncm); global() variable 1673 struct f_ncm *ncm; ncm_free() local 1686 struct f_ncm *ncm = func_to_ncm(f); ncm_unbind() local 1709 struct f_ncm *ncm; ncm_alloc() local [all...] |
/kernel/linux/linux-5.10/net/ncsi/ |
H A D | ncsi-rsp.c | 166 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 in ncsi_rsp_handler_ecnt() 259 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_dcnt() local 282 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_ae() local 311 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_sl() local 333 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_gls() local 402 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_ev() local 429 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_dv() local 500 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_ebf() local 526 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_dbf() local 552 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_egmf() local 579 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_dgmf() local 605 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_snfc() local [all...] |
H A D | ncsi-aen.c | 50 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...] |
H A D | ncsi-manage.c | 94 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 in ncsi_choose_active_channel() [all...] |
/kernel/linux/linux-6.6/net/ncsi/ |
H A D | ncsi-rsp.c | 166 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 in ncsi_rsp_handler_ecnt() 259 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_dcnt() local 282 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_ae() local 311 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_sl() local 333 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_gls() local 402 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_ev() local 429 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_dv() local 500 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_ebf() local 526 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_dbf() local 552 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_egmf() local 579 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_dgmf() local 605 struct ncsi_channel_mode *ncm; ncsi_rsp_handler_snfc() local [all...] |
H A D | ncsi-aen.c | 50 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...] |
H A D | ncsi-manage.c | 94 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() 865 struct ncsi_channel_mode *ncm; in ncsi_channel_is_tx() local 876 ncm = &channel->modes[NCSI_MODE_TX_ENABLE]; in ncsi_channel_is_tx() 877 if (ncm->enable) in ncsi_channel_is_tx() 1231 struct ncsi_channel_mode *ncm; in ncsi_choose_active_channel() local 1268 ncm = &nc->modes[NCSI_MODE_LINK]; in ncsi_choose_active_channel() 1269 if (ncm->data[2] & 0x1) { in ncsi_choose_active_channel() 1287 ncm in ncsi_choose_active_channel() [all...] |
/kernel/linux/linux-5.10/drivers/usb/gadget/legacy/ |
H A D | Makefile | 24 g_ncm-y := ncm.o
|
/kernel/linux/linux-6.6/drivers/usb/gadget/legacy/ |
H A D | Makefile | 24 g_ncm-y := ncm.o
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | devinet.c | 2033 struct netconfmsg *ncm; in inet_netconf_fill_devconf() local 2044 ncm = nlmsg_data(nlh); in inet_netconf_fill_devconf() 2045 ncm->ncm_family = AF_INET; in inet_netconf_fill_devconf() 2232 struct netconfmsg *ncm; in inet_netconf_dump_devconf() local 2234 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ncm))) { in inet_netconf_dump_devconf() 2239 if (nlmsg_attrlen(nlh, sizeof(*ncm))) { in inet_netconf_dump_devconf()
|
/kernel/linux/linux-5.10/net/mpls/ |
H A D | af_mpls.c | 1136 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()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | devinet.c | 2076 struct netconfmsg *ncm; in inet_netconf_fill_devconf() local 2087 ncm = nlmsg_data(nlh); in inet_netconf_fill_devconf() 2088 ncm->ncm_family = AF_INET; in inet_netconf_fill_devconf() 2275 struct netconfmsg *ncm; in inet_netconf_dump_devconf() local 2277 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ncm))) { in inet_netconf_dump_devconf() 2282 if (nlmsg_attrlen(nlh, sizeof(*ncm))) { in inet_netconf_dump_devconf()
|
/kernel/linux/linux-6.6/net/mpls/ |
H A D | af_mpls.c | 1138 struct netconfmsg *ncm; in mpls_netconf_fill_devconf() local 1149 ncm = nlmsg_data(nlh); in mpls_netconf_fill_devconf() 1150 ncm->ncm_family = AF_MPLS; in mpls_netconf_fill_devconf() 1314 struct netconfmsg *ncm; in mpls_netconf_dump_devconf() local 1316 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ncm))) { in mpls_netconf_dump_devconf() 1321 if (nlmsg_attrlen(nlh, sizeof(*ncm))) { in mpls_netconf_dump_devconf()
|
/kernel/linux/linux-5.10/net/ipv6/ |
H A D | addrconf.c | 520 struct netconfmsg *ncm; in inet6_netconf_fill_devconf() local 531 ncm = nlmsg_data(nlh); in inet6_netconf_fill_devconf() 532 ncm->ncm_family = AF_INET6; in inet6_netconf_fill_devconf() 714 struct netconfmsg *ncm; in inet6_netconf_dump_devconf() local 716 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ncm))) { in inet6_netconf_dump_devconf() 721 if (nlmsg_attrlen(nlh, sizeof(*ncm))) { in inet6_netconf_dump_devconf()
|
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | addrconf.c | 529 struct netconfmsg *ncm; in inet6_netconf_fill_devconf() local 540 ncm = nlmsg_data(nlh); in inet6_netconf_fill_devconf() 541 ncm->ncm_family = AF_INET6; in inet6_netconf_fill_devconf() 738 struct netconfmsg *ncm; in inet6_netconf_dump_devconf() local 740 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*ncm))) { in inet6_netconf_dump_devconf() 745 if (nlmsg_attrlen(nlh, sizeof(*ncm))) { in inet6_netconf_dump_devconf()
|