Home
last modified time | relevance | path

Searched refs:cspec (Results 1 – 25 of 59) sorted by relevance

123

/OK3568_Linux_fs/kernel/drivers/infiniband/hw/qib/
H A Dqib_iba6120.c392 if (dd->cspec->cregbase && (dd->flags & QIB_PRESENT)) in write_6120_creg()
393 writeq(value, &dd->cspec->cregbase[regno]); in write_6120_creg()
398 if (!dd->cspec->cregbase || !(dd->flags & QIB_PRESENT)) in read_6120_creg()
400 return readq(&dd->cspec->cregbase[regno]); in read_6120_creg()
405 if (!dd->cspec->cregbase || !(dd->flags & QIB_PRESENT)) in read_6120_creg32()
407 return readl(&dd->cspec->cregbase[regno]); in read_6120_creg32()
730 qib_write_kreg(dd, kr_errmask, dd->cspec->errormask); in qib_6120_clear_freeze()
771 hwerrs &= dd->cspec->hwerrmask; in qib_handle_6120_hwerrors()
819 dd->cspec->hwerrmask &= ~HWE_MASK(PowerOnBISTFailed); in qib_handle_6120_hwerrors()
820 qib_write_kreg(dd, kr_hwerrmask, dd->cspec->hwerrmask); in qib_handle_6120_hwerrors()
[all …]
H A Dqib_iba7322.c902 if (!dd->cspec->cregbase || !(dd->flags & QIB_PRESENT)) in read_7322_creg()
904 return readq(&dd->cspec->cregbase[regno]); in read_7322_creg()
911 if (!dd->cspec->cregbase || !(dd->flags & QIB_PRESENT)) in read_7322_creg32()
913 return readl(&dd->cspec->cregbase[regno]); in read_7322_creg32()
1521 if ((op & QIB_SDMA_SENDCTRL_OP_DRAIN) && ppd->dd->cspec->r1) in qib_7322_sdma_sendctrl()
1666 errs &= dd->cspec->errormask; in handle_7322_errors()
1667 msg = dd->cspec->emsgbuf; in handle_7322_errors()
1672 qib_7322_handle_hwerrors(dd, msg, sizeof(dd->cspec->emsgbuf)); in handle_7322_errors()
1694 err_decode(msg, sizeof(dd->cspec->emsgbuf), errs & ~mask, in handle_7322_errors()
1741 qib_write_kreg(dd, kr_errmask, dd->cspec->errormask); in qib_error_tasklet()
[all …]
H A Dqib_iba7220.c292 if (dd->cspec->cregbase && (dd->flags & QIB_PRESENT)) in write_7220_creg()
293 writeq(value, &dd->cspec->cregbase[regno]); in write_7220_creg()
298 if (!dd->cspec->cregbase || !(dd->flags & QIB_PRESENT)) in read_7220_creg()
300 return readq(&dd->cspec->cregbase[regno]); in read_7220_creg()
305 if (!dd->cspec->cregbase || !(dd->flags & QIB_PRESENT)) in read_7220_creg32()
307 return readl(&dd->cspec->cregbase[regno]); in read_7220_creg32()
905 msg = dd->cspec->sdmamsgbuf; in sdma_7220_errors()
907 sizeof(dd->cspec->sdmamsgbuf)); in sdma_7220_errors()
1103 errs &= dd->cspec->errormask; in handle_7220_errors()
1104 msg = dd->cspec->emsgbuf; in handle_7220_errors()
[all …]
H A Dqib_sd7220.c128 if (!dd->cspec->serdes_first_init_done && in qib_ibsd_ucode_loaded()
130 dd->cspec->serdes_first_init_done = 1; in qib_ibsd_ucode_loaded()
131 return dd->cspec->serdes_first_init_done; in qib_ibsd_ucode_loaded()
239 spin_lock_irqsave(&dd->cspec->sdepb_lock, flags); in qib_ibsd_reset()
244 dd->cspec->hwerrmask & in qib_ibsd_reset()
252 spin_unlock_irqrestore(&dd->cspec->sdepb_lock, flags); in qib_ibsd_reset()
265 dd->cspec->hwerrmask & in qib_ibsd_reset()
292 dd->cspec->hwerrmask &= in qib_ibsd_reset()
296 dd->cspec->hwerrmask); in qib_ibsd_reset()
519 dd->cspec->serdes_first_init_done = 1; in qib_sd7220_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/
H A Ddhd_custom_gpio.c252 wl_country_t *cspec, u32 flags) in get_customized_country_code() argument
254 get_customized_country_code(void *adapter, char *country_iso_code, wl_country_t *cspec) in get_customized_country_code()
261 if (!cspec) in get_customized_country_code()
270 strlcpy(cspec->ccode, cloc_ptr->custom_locale, WLC_CNTRY_BUF_SZ); in get_customized_country_code()
271 cspec->rev = cloc_ptr->custom_locale_rev; in get_customized_country_code()
279 if (cspec == 0) in get_customized_country_code()
287 memcpy(cspec->ccode, in get_customized_country_code()
289 cspec->rev = translate_custom_table[i].custom_locale_rev; in get_customized_country_code()
295 memcpy(cspec->ccode, translate_custom_table[0].custom_locale, WLC_CNTRY_BUF_SZ); in get_customized_country_code()
296 cspec->rev = translate_custom_table[0].custom_locale_rev; in get_customized_country_code()
H A Ddhd_ccode.c204 dhd_ccode_map_country_list(dhd_pub_t *dhd, wl_country_t *cspec) in dhd_ccode_map_country_list() argument
221 pch = strstr(ccode_list, cspec->ccode); in dhd_ccode_map_country_list()
223 cspec->rev = (int)simple_strtol(pch+strlen(cspec->ccode)+1, NULL, 0); in dhd_ccode_map_country_list()
229 memcpy(cspec->ccode, ccode_ww, 2); in dhd_ccode_map_country_list()
230 cspec->rev = (int)simple_strtol(ccode_ww+3, NULL, 0); in dhd_ccode_map_country_list()
H A Dwldev_common.c480 wl_country_t cspec = {{0}, 0, {0}}; in wldev_set_country() local
499 cspec.rev = revinfo; in wldev_set_country()
500 memcpy(cspec.country_abbrev, country_code, WLC_CNTRY_BUF_SZ); in wldev_set_country()
501 memcpy(cspec.ccode, country_code, WLC_CNTRY_BUF_SZ); in wldev_set_country()
502 error = dhd_conf_map_country_list(dhd_get_pub(dev), &cspec); in wldev_set_country()
504 dhd_get_customized_country_code(dev, (char *)&cspec.country_abbrev, &cspec); in wldev_set_country()
511 (strncmp(cspec.ccode, cur_cspec.ccode, WLC_CNTRY_BUF_SZ) != 0)) { in wldev_set_country()
528 error = dhd_conf_set_country(dhd_get_pub(dev), &cspec); in wldev_set_country()
531 __FUNCTION__, country_code, cspec.ccode, cspec.rev)); in wldev_set_country()
535 dhd_conf_get_country(dhd_get_pub(dev), &cspec); in wldev_set_country()
[all …]
H A Ddhd_config.c387 CONFIG_TRACE("Free cspec %s\n", country->cspec.country_abbrev); in dhd_conf_free_country_list()
906 dhd_conf_get_country(dhd_pub_t *dhd, wl_country_t *cspec) in dhd_conf_get_country() argument
910 memset(cspec, 0, sizeof(wl_country_t)); in dhd_conf_get_country()
911 bcm_mkiovar("country", NULL, 0, (char*)cspec, sizeof(wl_country_t)); in dhd_conf_get_country()
912 if ((bcmerror = dhd_wl_ioctl_cmd(dhd, WLC_GET_VAR, cspec, sizeof(wl_country_t), in dhd_conf_get_country()
920 dhd_conf_map_country_list(dhd_pub_t *dhd, wl_country_t *cspec) in dhd_conf_map_country_list() argument
927 bcmerror = dhd_ccode_map_country_list(dhd, cspec); in dhd_conf_map_country_list()
931 if (!strncmp("**", country->cspec.country_abbrev, 2)) { in dhd_conf_map_country_list()
932 memcpy(cspec->ccode, country->cspec.ccode, WLC_CNTRY_BUF_SZ); in dhd_conf_map_country_list()
933 cspec->rev = country->cspec.rev; in dhd_conf_map_country_list()
[all …]
H A Ddhd_config.h92 wl_country_t cspec; member
177 wl_country_t cspec; member
307 int dhd_conf_set_country(dhd_pub_t *dhd, wl_country_t *cspec);
308 int dhd_conf_get_country(dhd_pub_t *dhd, wl_country_t *cspec);
309 int dhd_conf_map_country_list(dhd_pub_t *dhd, wl_country_t *cspec);
311 int dhd_ccode_map_country_list(dhd_pub_t *dhd, wl_country_t *cspec);
H A Dwldev_common.h102 wl_country_t *cspec);
103 extern void dhd_bus_country_set(struct net_device *dev, wl_country_t *cspec, bool notify);
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Ddhd_custom_gpio.c384 wl_country_t *cspec, u32 flags) in get_customized_country_code() argument
386 get_customized_country_code(void *adapter, char *country_iso_code, wl_country_t *cspec) in get_customized_country_code()
394 if (!cspec) in get_customized_country_code()
403 strlcpy(cspec->ccode, cloc_ptr->custom_locale, WLC_CNTRY_BUF_SZ); in get_customized_country_code()
404 cspec->rev = cloc_ptr->custom_locale_rev; in get_customized_country_code()
412 if (cspec == 0) in get_customized_country_code()
420 memcpy(cspec->ccode, in get_customized_country_code()
422 cspec->rev = translate_custom_table[i].custom_locale_rev; in get_customized_country_code()
428 memcpy(cspec->ccode, translate_custom_table[0].custom_locale, WLC_CNTRY_BUF_SZ); in get_customized_country_code()
429 cspec->rev = translate_custom_table[0].custom_locale_rev; in get_customized_country_code()
H A Ddhd_ccode.c243 dhd_ccode_map_country_list(dhd_pub_t *dhd, wl_country_t *cspec) in dhd_ccode_map_country_list() argument
260 pch = strstr(ccode_list, cspec->ccode); in dhd_ccode_map_country_list()
262 cspec->rev = (int)simple_strtol(pch+strlen(cspec->ccode)+1, NULL, 0); in dhd_ccode_map_country_list()
269 memcpy(cspec->ccode, ccode_ww, 2); in dhd_ccode_map_country_list()
270 cspec->rev = (int)simple_strtol(ccode_ww+3, NULL, 0); in dhd_ccode_map_country_list()
H A Ddhd_config.c745 CONFIG_TRACE("Free cspec %s\n", country->cspec.country_abbrev); in dhd_conf_free_country_list()
1581 dhd_conf_get_country(dhd_pub_t *dhd, wl_country_t *cspec) in dhd_conf_get_country() argument
1585 memset(cspec, 0, sizeof(wl_country_t)); in dhd_conf_get_country()
1586 bcm_mkiovar("country", NULL, 0, (char*)cspec, sizeof(wl_country_t)); in dhd_conf_get_country()
1587 if ((bcmerror = dhd_wl_ioctl_cmd(dhd, WLC_GET_VAR, cspec, sizeof(wl_country_t), in dhd_conf_get_country()
1595 dhd_conf_map_country_list(dhd_pub_t *dhd, wl_country_t *cspec) in dhd_conf_map_country_list() argument
1602 bcmerror = dhd_ccode_map_country_list(dhd, cspec); in dhd_conf_map_country_list()
1607 if (!strncmp("**", country->cspec.country_abbrev, 2)) { in dhd_conf_map_country_list()
1608 if (!strncmp("**", country->cspec.ccode, 2)) { in dhd_conf_map_country_list()
1609 cspec->rev = 0; in dhd_conf_map_country_list()
[all …]
H A Ddhd_config.h101 wl_country_t cspec; member
224 wl_country_t cspec; member
416 int dhd_conf_get_country(dhd_pub_t *dhd, wl_country_t *cspec);
418 int dhd_ccode_map_country_list(dhd_pub_t *dhd, wl_country_t *cspec);
/OK3568_Linux_fs/external/rkwifibt/drivers/infineon/
H A Ddhd_custom_gpio.c251 wl_country_t *cspec, u32 flags) in get_customized_country_code() argument
253 void get_customized_country_code(void *adapter, char *country_iso_code, wl_country_t *cspec) in get_customized_country_code()
262 if (!cspec) in get_customized_country_code()
271 strlcpy(cspec->ccode, cloc_ptr->custom_locale, WLC_CNTRY_BUF_SZ); in get_customized_country_code()
272 cspec->rev = cloc_ptr->custom_locale_rev; in get_customized_country_code()
280 if (cspec == 0) in get_customized_country_code()
288 memcpy(cspec->ccode, in get_customized_country_code()
290 cspec->rev = translate_custom_table[i].custom_locale_rev; in get_customized_country_code()
296 memcpy(cspec->ccode, translate_custom_table[0].custom_locale, WLC_CNTRY_BUF_SZ); in get_customized_country_code()
297 cspec->rev = translate_custom_table[0].custom_locale_rev; in get_customized_country_code()
H A Dwldev_common.c471 wl_country_t cspec = {{0}, 0, {0}}; local
484 error = wldev_iovar_getbuf(dev, "country", NULL, 0, &cspec, sizeof(cspec), NULL);
494 (strncmp(country_code, cspec.ccode, WLC_CNTRY_BUF_SZ) != 0)) {
513 cspec.rev = revinfo;
514 strlcpy(cspec.country_abbrev, country_code, WLC_CNTRY_BUF_SZ);
515 strlcpy(cspec.ccode, country_code, WLC_CNTRY_BUF_SZ);
516 dhd_get_customized_country_code(dev, (char *)&cspec.country_abbrev, &cspec);
517 error = wldev_iovar_setbuf(dev, "country", &cspec, sizeof(cspec),
521 __FUNCTION__, country_code, cspec.ccode, cspec.rev));
524 dhd_bus_country_set(dev, &cspec, notify);
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/
H A Ddhd_custom_gpio.c251 wl_country_t *cspec, u32 flags) in get_customized_country_code() argument
253 void get_customized_country_code(void *adapter, char *country_iso_code, wl_country_t *cspec) in get_customized_country_code()
262 if (!cspec) in get_customized_country_code()
271 strlcpy(cspec->ccode, cloc_ptr->custom_locale, WLC_CNTRY_BUF_SZ); in get_customized_country_code()
272 cspec->rev = cloc_ptr->custom_locale_rev; in get_customized_country_code()
280 if (cspec == 0) in get_customized_country_code()
288 memcpy(cspec->ccode, in get_customized_country_code()
290 cspec->rev = translate_custom_table[i].custom_locale_rev; in get_customized_country_code()
296 memcpy(cspec->ccode, translate_custom_table[0].custom_locale, WLC_CNTRY_BUF_SZ); in get_customized_country_code()
297 cspec->rev = translate_custom_table[0].custom_locale_rev; in get_customized_country_code()
H A Dwldev_common.c471 wl_country_t cspec = {{0}, 0, {0}}; local
484 error = wldev_iovar_getbuf(dev, "country", NULL, 0, &cspec, sizeof(cspec), NULL);
494 (strncmp(country_code, cspec.ccode, WLC_CNTRY_BUF_SZ) != 0)) {
513 cspec.rev = revinfo;
514 strlcpy(cspec.country_abbrev, country_code, WLC_CNTRY_BUF_SZ);
515 strlcpy(cspec.ccode, country_code, WLC_CNTRY_BUF_SZ);
516 dhd_get_customized_country_code(dev, (char *)&cspec.country_abbrev, &cspec);
517 error = wldev_iovar_setbuf(dev, "country", &cspec, sizeof(cspec),
521 __FUNCTION__, country_code, cspec.ccode, cspec.rev));
524 dhd_bus_country_set(dev, &cspec, notify);
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/
H A Ddhd_custom_gpio.c251 wl_country_t *cspec, u32 flags) in get_customized_country_code() argument
253 void get_customized_country_code(void *adapter, char *country_iso_code, wl_country_t *cspec) in get_customized_country_code()
262 if (!cspec) in get_customized_country_code()
271 strlcpy(cspec->ccode, cloc_ptr->custom_locale, WLC_CNTRY_BUF_SZ); in get_customized_country_code()
272 cspec->rev = cloc_ptr->custom_locale_rev; in get_customized_country_code()
280 if (cspec == 0) in get_customized_country_code()
288 memcpy(cspec->ccode, in get_customized_country_code()
290 cspec->rev = translate_custom_table[i].custom_locale_rev; in get_customized_country_code()
296 memcpy(cspec->ccode, translate_custom_table[0].custom_locale, WLC_CNTRY_BUF_SZ); in get_customized_country_code()
297 cspec->rev = translate_custom_table[0].custom_locale_rev; in get_customized_country_code()
H A Dwldev_common.c471 wl_country_t cspec = {{0}, 0, {0}}; local
484 error = wldev_iovar_getbuf(dev, "country", NULL, 0, &cspec, sizeof(cspec), NULL);
494 (strncmp(country_code, cspec.ccode, WLC_CNTRY_BUF_SZ) != 0)) {
513 cspec.rev = revinfo;
514 strlcpy(cspec.country_abbrev, country_code, WLC_CNTRY_BUF_SZ);
515 strlcpy(cspec.ccode, country_code, WLC_CNTRY_BUF_SZ);
516 dhd_get_customized_country_code(dev, (char *)&cspec.country_abbrev, &cspec);
517 error = wldev_iovar_setbuf(dev, "country", &cspec, sizeof(cspec),
521 __FUNCTION__, country_code, cspec.ccode, cspec.rev));
524 dhd_bus_country_set(dev, &cspec, notify);
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Ddhd_custom_gpio.c384 wl_country_t *cspec, u32 flags) in get_customized_country_code() argument
386 get_customized_country_code(void *adapter, char *country_iso_code, wl_country_t *cspec) in get_customized_country_code()
394 if (!cspec) in get_customized_country_code()
403 strlcpy(cspec->ccode, cloc_ptr->custom_locale, WLC_CNTRY_BUF_SZ); in get_customized_country_code()
404 cspec->rev = cloc_ptr->custom_locale_rev; in get_customized_country_code()
412 if (cspec == 0) in get_customized_country_code()
420 memcpy(cspec->ccode, in get_customized_country_code()
422 cspec->rev = translate_custom_table[i].custom_locale_rev; in get_customized_country_code()
428 memcpy(cspec->ccode, translate_custom_table[0].custom_locale, WLC_CNTRY_BUF_SZ); in get_customized_country_code()
429 cspec->rev = translate_custom_table[0].custom_locale_rev; in get_customized_country_code()
H A Ddhd_ccode.c243 dhd_ccode_map_country_list(dhd_pub_t *dhd, wl_country_t *cspec) in dhd_ccode_map_country_list() argument
260 pch = strstr(ccode_list, cspec->ccode); in dhd_ccode_map_country_list()
262 cspec->rev = (int)simple_strtol(pch+strlen(cspec->ccode)+1, NULL, 0); in dhd_ccode_map_country_list()
268 memcpy(cspec->ccode, ccode_ww, 2); in dhd_ccode_map_country_list()
269 cspec->rev = (int)simple_strtol(ccode_ww+3, NULL, 0); in dhd_ccode_map_country_list()
H A Dwldev_common.c513 wl_country_t cspec = {{0}, 0, {0}}; in wldev_set_country() local
518 cspec.rev = revinfo; in wldev_set_country()
519 strlcpy(cspec.country_abbrev, country_code, WL_CCODE_LEN + 1); in wldev_set_country()
520 strlcpy(cspec.ccode, country_code, WL_CCODE_LEN + 1); in wldev_set_country()
521 error = dhd_conf_map_country_list(dhd_get_pub(dev), &cspec); in wldev_set_country()
523 dhd_get_customized_country_code(dev, (char *)&cspec.country_abbrev, &cspec); in wldev_set_country()
524 error = dhd_conf_set_country(dhd_get_pub(dev), &cspec); in wldev_set_country()
527 __FUNCTION__, country_code, cspec.ccode, cspec.rev)); in wldev_set_country()
531 dhd_conf_get_country(dhd_get_pub(dev), &cspec); in wldev_set_country()
532 dhd_bus_country_set(dev, &cspec, notify); in wldev_set_country()
[all …]
H A Ddhd_config.h102 wl_country_t cspec; member
223 wl_country_t cspec; member
407 int dhd_conf_set_country(dhd_pub_t *dhd, wl_country_t *cspec);
408 int dhd_conf_get_country(dhd_pub_t *dhd, wl_country_t *cspec);
409 int dhd_conf_map_country_list(dhd_pub_t *dhd, wl_country_t *cspec);
411 int dhd_ccode_map_country_list(dhd_pub_t *dhd, wl_country_t *cspec);
H A Ddhd_config.c657 CONFIG_TRACE("Free cspec %s\n", country->cspec.country_abbrev); in dhd_conf_free_country_list()
1803 dhd_conf_get_country(dhd_pub_t *dhd, wl_country_t *cspec) in dhd_conf_get_country() argument
1807 memset(cspec, 0, sizeof(wl_country_t)); in dhd_conf_get_country()
1808 bcm_mkiovar("country", NULL, 0, (char*)cspec, sizeof(wl_country_t)); in dhd_conf_get_country()
1809 if ((bcmerror = dhd_wl_ioctl_cmd(dhd, WLC_GET_VAR, cspec, sizeof(wl_country_t), in dhd_conf_get_country()
1817 dhd_conf_map_country_list(dhd_pub_t *dhd, wl_country_t *cspec) in dhd_conf_map_country_list() argument
1824 bcmerror = dhd_ccode_map_country_list(dhd, cspec); in dhd_conf_map_country_list()
1829 if (!strncmp("**", country->cspec.country_abbrev, 2)) { in dhd_conf_map_country_list()
1830 if (!strncmp("**", country->cspec.ccode, 2)) { in dhd_conf_map_country_list()
1831 cspec->rev = 0; in dhd_conf_map_country_list()
[all …]

123