Lines Matching refs:natoe_ioc
5368 wl_natoe_get_ioctl(struct net_device *dev, wl_natoe_ioc_t *natoe_ioc, in wl_natoe_get_ioctl() argument
5376 res = wldev_iovar_getbuf(dev, "natoe", natoe_ioc, iocsz, buf, in wl_natoe_get_ioctl()
5403 wl_natoe_ioc_t *natoe_ioc; in wl_android_natoe_subcmd_enable() local
5405 uint16 iocsz = sizeof(*natoe_ioc) + WL_NATOE_IOC_BUFSZ; in wl_android_natoe_subcmd_enable()
5418 natoe_ioc = (wl_natoe_ioc_t *)MALLOCZ(cfg->osh, iocsz); in wl_android_natoe_subcmd_enable()
5419 if (!natoe_ioc) { in wl_android_natoe_subcmd_enable()
5426 natoe_ioc->version = htod16(WL_NATOE_IOCTL_VERSION); in wl_android_natoe_subcmd_enable()
5427 natoe_ioc->id = htod16(cmd->id); in wl_android_natoe_subcmd_enable()
5428 natoe_ioc->len = htod16(WL_NATOE_IOC_BUFSZ); in wl_android_natoe_subcmd_enable()
5429 pxtlv = (bcm_xtlv_t *)natoe_ioc->data; in wl_android_natoe_subcmd_enable()
5432 iocsz = sizeof(*natoe_ioc) + sizeof(*pxtlv); in wl_android_natoe_subcmd_enable()
5433 ret = wl_natoe_get_ioctl(dev, natoe_ioc, iocsz, ioctl_buf, in wl_android_natoe_subcmd_enable()
5456 natoe_ioc->len = (buflen_at_start - buflen); in wl_android_natoe_subcmd_enable()
5457 iocsz = sizeof(*natoe_ioc) + natoe_ioc->len; in wl_android_natoe_subcmd_enable()
5460 natoe_ioc, iocsz, ioctl_buf, WLC_IOCTL_MEDLEN, NULL); in wl_android_natoe_subcmd_enable()
5469 MFREE(cfg->osh, natoe_ioc, iocsz); in wl_android_natoe_subcmd_enable()
5480 wl_natoe_ioc_t *natoe_ioc; in wl_android_natoe_subcmd_config_ips() local
5483 uint16 iocsz = sizeof(*natoe_ioc) + WL_NATOE_IOC_BUFSZ; in wl_android_natoe_subcmd_config_ips()
5496 natoe_ioc = (wl_natoe_ioc_t *)MALLOCZ(cfg->osh, iocsz); in wl_android_natoe_subcmd_config_ips()
5497 if (!natoe_ioc) { in wl_android_natoe_subcmd_config_ips()
5504 natoe_ioc->version = htod16(WL_NATOE_IOCTL_VERSION); in wl_android_natoe_subcmd_config_ips()
5505 natoe_ioc->id = htod16(cmd->id); in wl_android_natoe_subcmd_config_ips()
5506 natoe_ioc->len = htod16(WL_NATOE_IOC_BUFSZ); in wl_android_natoe_subcmd_config_ips()
5507 pxtlv = (bcm_xtlv_t *)natoe_ioc->data; in wl_android_natoe_subcmd_config_ips()
5510 iocsz = sizeof(*natoe_ioc) + sizeof(*pxtlv); in wl_android_natoe_subcmd_config_ips()
5511 ret = wl_natoe_get_ioctl(dev, natoe_ioc, iocsz, ioctl_buf, in wl_android_natoe_subcmd_config_ips()
5576 natoe_ioc->len = (buflen_at_start - buflen); in wl_android_natoe_subcmd_config_ips()
5577 iocsz = sizeof(*natoe_ioc) + natoe_ioc->len; in wl_android_natoe_subcmd_config_ips()
5580 natoe_ioc, iocsz, ioctl_buf, WLC_IOCTL_MEDLEN, NULL); in wl_android_natoe_subcmd_config_ips()
5589 MFREE(cfg->osh, natoe_ioc, sizeof(*natoe_ioc) + WL_NATOE_IOC_BUFSZ); in wl_android_natoe_subcmd_config_ips()
5600 wl_natoe_ioc_t *natoe_ioc; in wl_android_natoe_subcmd_config_ports() local
5603 uint16 iocsz = sizeof(*natoe_ioc) + WL_NATOE_IOC_BUFSZ; in wl_android_natoe_subcmd_config_ports()
5616 natoe_ioc = (wl_natoe_ioc_t *)MALLOCZ(cfg->osh, iocsz); in wl_android_natoe_subcmd_config_ports()
5617 if (!natoe_ioc) { in wl_android_natoe_subcmd_config_ports()
5624 natoe_ioc->version = htod16(WL_NATOE_IOCTL_VERSION); in wl_android_natoe_subcmd_config_ports()
5625 natoe_ioc->id = htod16(cmd->id); in wl_android_natoe_subcmd_config_ports()
5626 natoe_ioc->len = htod16(WL_NATOE_IOC_BUFSZ); in wl_android_natoe_subcmd_config_ports()
5627 pxtlv = (bcm_xtlv_t *)natoe_ioc->data; in wl_android_natoe_subcmd_config_ports()
5630 iocsz = sizeof(*natoe_ioc) + sizeof(*pxtlv); in wl_android_natoe_subcmd_config_ports()
5631 ret = wl_natoe_get_ioctl(dev, natoe_ioc, iocsz, ioctl_buf, in wl_android_natoe_subcmd_config_ports()
5676 natoe_ioc->len = (buflen_at_start - buflen); in wl_android_natoe_subcmd_config_ports()
5677 iocsz = sizeof(*natoe_ioc) + natoe_ioc->len; in wl_android_natoe_subcmd_config_ports()
5680 natoe_ioc, iocsz, ioctl_buf, WLC_IOCTL_MEDLEN, NULL); in wl_android_natoe_subcmd_config_ports()
5689 MFREE(cfg->osh, natoe_ioc, sizeof(*natoe_ioc) + WL_NATOE_IOC_BUFSZ); in wl_android_natoe_subcmd_config_ports()
5699 wl_natoe_ioc_t *natoe_ioc; in wl_android_natoe_subcmd_dbg_stats() local
5702 uint16 iocsz = sizeof(*natoe_ioc) + WL_NATOE_DBG_STATS_BUFSZ; in wl_android_natoe_subcmd_dbg_stats()
5715 natoe_ioc = (wl_natoe_ioc_t *)MALLOCZ(cfg->osh, iocsz); in wl_android_natoe_subcmd_dbg_stats()
5716 if (!natoe_ioc) { in wl_android_natoe_subcmd_dbg_stats()
5723 natoe_ioc->version = htod16(WL_NATOE_IOCTL_VERSION); in wl_android_natoe_subcmd_dbg_stats()
5724 natoe_ioc->id = htod16(cmd->id); in wl_android_natoe_subcmd_dbg_stats()
5725 natoe_ioc->len = htod16(WL_NATOE_DBG_STATS_BUFSZ); in wl_android_natoe_subcmd_dbg_stats()
5726 pxtlv = (bcm_xtlv_t *)natoe_ioc->data; in wl_android_natoe_subcmd_dbg_stats()
5729 iocsz = sizeof(*natoe_ioc) + sizeof(*pxtlv); in wl_android_natoe_subcmd_dbg_stats()
5730 ret = wl_natoe_get_ioctl(dev, natoe_ioc, iocsz, ioctl_buf, in wl_android_natoe_subcmd_dbg_stats()
5753 natoe_ioc->len = (buflen_at_start - buflen); in wl_android_natoe_subcmd_dbg_stats()
5754 iocsz = sizeof(*natoe_ioc) + natoe_ioc->len; in wl_android_natoe_subcmd_dbg_stats()
5757 natoe_ioc, iocsz, ioctl_buf, WLC_IOCTL_MAXLEN, NULL); in wl_android_natoe_subcmd_dbg_stats()
5766 MFREE(cfg->osh, natoe_ioc, sizeof(*natoe_ioc) + WL_NATOE_DBG_STATS_BUFSZ); in wl_android_natoe_subcmd_dbg_stats()
5776 wl_natoe_ioc_t *natoe_ioc; in wl_android_natoe_subcmd_tbl_cnt() local
5779 uint16 iocsz = sizeof(*natoe_ioc) + WL_NATOE_IOC_BUFSZ; in wl_android_natoe_subcmd_tbl_cnt()
5792 natoe_ioc = (wl_natoe_ioc_t *)MALLOCZ(cfg->osh, iocsz); in wl_android_natoe_subcmd_tbl_cnt()
5793 if (!natoe_ioc) { in wl_android_natoe_subcmd_tbl_cnt()
5800 natoe_ioc->version = htod16(WL_NATOE_IOCTL_VERSION); in wl_android_natoe_subcmd_tbl_cnt()
5801 natoe_ioc->id = htod16(cmd->id); in wl_android_natoe_subcmd_tbl_cnt()
5802 natoe_ioc->len = htod16(WL_NATOE_IOC_BUFSZ); in wl_android_natoe_subcmd_tbl_cnt()
5803 pxtlv = (bcm_xtlv_t *)natoe_ioc->data; in wl_android_natoe_subcmd_tbl_cnt()
5806 iocsz = sizeof(*natoe_ioc) + sizeof(*pxtlv); in wl_android_natoe_subcmd_tbl_cnt()
5807 ret = wl_natoe_get_ioctl(dev, natoe_ioc, iocsz, ioctl_buf, in wl_android_natoe_subcmd_tbl_cnt()
5830 natoe_ioc->len = (buflen_at_start - buflen); in wl_android_natoe_subcmd_tbl_cnt()
5831 iocsz = sizeof(*natoe_ioc) + natoe_ioc->len; in wl_android_natoe_subcmd_tbl_cnt()
5834 natoe_ioc, iocsz, ioctl_buf, WLC_IOCTL_MEDLEN, NULL); in wl_android_natoe_subcmd_tbl_cnt()
5843 MFREE(cfg->osh, natoe_ioc, sizeof(*natoe_ioc) + WL_NATOE_IOC_BUFSZ); in wl_android_natoe_subcmd_tbl_cnt()