Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 42) sorted by relevance

12

/hardware/broadcom/wlan/bcm4329/src/include/
Dbcmendian.h37 #define BCMSWAP16(val) \ argument
38 ((uint16)((((uint16)(val) & (uint16)0x00ffU) << 8) | \
39 (((uint16)(val) & (uint16)0xff00U) >> 8)))
42 #define BCMSWAP32(val) \ argument
43 ((uint32)((((uint32)(val) & (uint32)0x000000ffU) << 24) | \
44 (((uint32)(val) & (uint32)0x0000ff00U) << 8) | \
45 (((uint32)(val) & (uint32)0x00ff0000U) >> 8) | \
46 (((uint32)(val) & (uint32)0xff000000U) >> 24)))
49 #define BCMSWAP32BY16(val) \ argument
50 ((uint32)((((uint32)(val) & (uint32)0x0000ffffU) << 16) | \
[all …]
Dsiutils.h133 extern uint si_corereg(si_t *sih, uint coreidx, uint regoff, uint mask, uint val);
135 extern void si_write_wrapperreg(si_t *sih, uint32 offset, uint32 val);
136 extern uint32 si_core_cflags(si_t *sih, uint32 mask, uint32 val);
137 extern void si_core_cflags_wo(si_t *sih, uint32 mask, uint32 val);
138 extern uint32 si_core_sflags(si_t *sih, uint32 mask, uint32 val);
168 extern uint32 si_gpiotimerval(si_t *sih, uint32 mask, uint32 val);
177 extern uint32 si_gpiocontrol(si_t *sih, uint32 mask, uint32 val, uint8 priority);
178 extern uint32 si_gpioouten(si_t *sih, uint32 mask, uint32 val, uint8 priority);
179 extern uint32 si_gpioout(si_t *sih, uint32 mask, uint32 val, uint8 priority);
181 extern uint32 si_gpiointpolarity(si_t *sih, uint32 mask, uint32 val, uint8 priority);
[all …]
Dbcmsdpcm.h196 #define SDIODREV_IS(var, val) ((var) == (val)) argument
197 #define SDIODREV_GE(var, val) ((var) >= (val)) argument
198 #define SDIODREV_GT(var, val) ((var) > (val)) argument
199 #define SDIODREV_LT(var, val) ((var) < (val)) argument
200 #define SDIODREV_LE(var, val) ((var) <= (val)) argument
Dbcmdefs.h94 #define GFIELD(val, field) \ argument
95 (((val) >> field ## _S) & field ## _M)
96 #define SFIELD(val, field, bits) \ argument
97 (((val) & (~(field ## _M << field ## _S))) | \
Dosl.h44 #define SET_REG(osh, r, mask, val) W_REG((osh), (r), ((R_REG((osh), r) & ~(mask)) | (val))) argument
Dlinux_osl.h63 #define OSL_PCI_WRITE_CONFIG(osh, offset, size, val) \ argument
64 osl_pci_write_config((osh), (offset), (size), (val))
66 extern void osl_pci_write_config(osl_t *osh, uint offset, uint size, uint val);
218 #define BUSPROBE(val, addr) ({ (val) = R_REG(NULL, (addr)); 0; }) argument
Dminiopt.h62 int val; /* strtol translation of valstr */ member
/hardware/ti/wlan/wl1271/utils/
Dtidef.h270 #define SET_WLAN_WORD(dst,val) ((TI_UINT8 *)(dst))[1] = (val) & 0xff; \ argument
271 ((TI_UINT8 *)(dst))[0] = ((val) >> 8) & 0xff
273 #define SET_WLAN_LONG(dst,val) ((TI_UINT8 *)(dst))[3] = (val) & 0xff; \ argument
274 ((TI_UINT8 *)(dst))[2] = ((val) >> 8) & 0xff; \
275 ((TI_UINT8 *)(dst))[1] = ((val) >> 16) & 0xff; \
276 ((TI_UINT8 *)(dst))[0] = ((val) >> 24) & 0xff
344 #define SET_WLAN_WORD(dst,val) ((TI_UINT8 *)(dst))[0] = (val) & 0xff; \ argument
345 ((TI_UINT8 *)(dst))[1] = ((val) >> 8) & 0xff
350 #define SET_WLAN_LONG(dst,val) ((TI_UINT8 *)(dst))[0] = (val) & 0xff; \ argument
351 ((TI_UINT8 *)(dst))[1] = ((val) >> 8) & 0xff; \
[all …]
/hardware/ti/wlan/lib/
Dshlist.h14 typedef int (*shListPrint)( void *val );
15 typedef void (*shListFree)( void *val );
16 typedef int (*shListEqual)( void *val, void *idata );
19 SHLIST *shListFindItem( SHLIST *head, void *val, shListEqual func );
26 void shListInsFirstItem( SHLIST *head, void *val );
27 void shListInsBeforeItem( SHLIST *head, void *val, void *etalon,
29 void shListInsLastItem( SHLIST *head, void *val );
Dshlist.c17 SHLIST *shListFindItem( SHLIST *head, void *val, shListEqual func ) in shListFindItem() argument
23 if( func( val, item->data ) ) { in shListFindItem()
28 if( item->data == val ) { in shListFindItem()
94 void shListInsFirstItem( SHLIST *head, void *val ) in shListInsFirstItem() argument
101 item->data = val; in shListInsFirstItem()
112 void shListInsLastItem( SHLIST *head, void *val ) in shListInsLastItem() argument
119 item->data = val; in shListInsLastItem()
130 void shListInsBeforeItem( SHLIST *head, void *val, void *etal, in shListInsBeforeItem() argument
136 shListInsFirstItem( head, val ); in shListInsBeforeItem()
141 item->data = val; in shListInsBeforeItem()
[all …]
/hardware/msm7k/librpc/
Dsvc_clnt_common.c122 uint32 val = *value; in xdr_std_send_int8() local
123 return xdr_std_send_uint32(xdr, &val); in xdr_std_send_int8()
128 uint32 val = *value; in xdr_std_send_uint8() local
129 return xdr_std_send_uint32(xdr, &val); in xdr_std_send_uint8()
134 uint32 val = *value; in xdr_std_send_int16() local
135 return xdr_std_send_uint32(xdr, &val); in xdr_std_send_int16()
140 uint32 val = *value; in xdr_std_send_uint16() local
141 return xdr_std_send_uint32(xdr, &val); in xdr_std_send_uint16()
210 uint32 val; \
211 if (xdr_std_recv_uint32(xdr, &val)) { \
[all …]
/hardware/broadcom/wlan/bcm4329/src/shared/
Dsiutils.c758 si_core_cflags(si_t *sih, uint32 mask, uint32 val) in si_core_cflags() argument
761 return sb_core_cflags(sih, mask, val); in si_core_cflags()
763 return ai_core_cflags(sih, mask, val); in si_core_cflags()
771 si_core_cflags_wo(si_t *sih, uint32 mask, uint32 val) in si_core_cflags_wo() argument
774 sb_core_cflags_wo(sih, mask, val); in si_core_cflags_wo()
776 ai_core_cflags_wo(sih, mask, val); in si_core_cflags_wo()
782 si_core_sflags(si_t *sih, uint32 mask, uint32 val) in si_core_sflags() argument
785 return sb_core_sflags(sih, mask, val); in si_core_sflags()
787 return ai_core_sflags(sih, mask, val); in si_core_sflags()
808 si_write_wrapperreg(si_t *sih, uint32 offset, uint32 val) in si_write_wrapperreg() argument
[all …]
Daiutils.c431 ai_write_wrap_reg(si_t *sih, uint32 offset, uint32 val) in ai_write_wrap_reg() argument
435 W_REG(sii->osh, (uint32 *)((uint8 *)ai+offset), val); in ai_write_wrap_reg()
484 ai_corereg(si_t *sih, uint coreidx, uint regoff, uint mask, uint val) in ai_corereg() argument
497 ASSERT((val & ~mask) == 0); in ai_corereg()
548 if (mask || val) { in ai_corereg()
549 w = (R_REG(sii->osh, r) & ~mask) | val; in ai_corereg()
627 ai_core_cflags_wo(si_t *sih, uint32 mask, uint32 val) in ai_core_cflags_wo() argument
637 ASSERT((val & ~mask) == 0); in ai_core_cflags_wo()
639 if (mask || val) { in ai_core_cflags_wo()
640 w = ((R_REG(sii->osh, &ai->ioctrl) & ~mask) | val); in ai_core_cflags_wo()
[all …]
Dsiutils_priv.h160 extern uint sb_corereg(si_t *sih, uint coreidx, uint regoff, uint mask, uint val);
163 extern uint32 sb_core_cflags(si_t *sih, uint32 mask, uint32 val);
164 extern void sb_core_cflags_wo(si_t *sih, uint32 mask, uint32 val);
165 extern uint32 sb_core_sflags(si_t *sih, uint32 mask, uint32 val);
201 extern uint32 ai_core_cflags(si_t *sih, uint32 mask, uint32 val);
202 extern void ai_core_cflags_wo(si_t *sih, uint32 mask, uint32 val);
203 extern uint32 ai_core_sflags(si_t *sih, uint32 mask, uint32 val);
204 extern uint ai_corereg(si_t *sih, uint coreidx, uint regoff, uint mask, uint val);
210 extern void ai_write_wrap_reg(si_t *sih, uint32 offset, uint32 val);
Dsbutils.c48 #define SET_SBREG(sii, r, mask, val) \ argument
49 W_SBREG((sii), (r), ((R_SBREG((sii), (r)) & ~(mask)) | (val)))
65 uint32 val, intr_val = 0; in sb_read_sbreg() local
81 val = R_REG(sii->osh, sbr); in sb_read_sbreg()
89 return (val); in sb_read_sbreg()
259 sb_core_cflags_wo(si_t *sih, uint32 mask, uint32 val) in sb_core_cflags_wo() argument
268 ASSERT((val & ~mask) == 0); in sb_core_cflags_wo()
272 (val << SBTML_SICF_SHIFT); in sb_core_cflags_wo()
278 sb_core_cflags(si_t *sih, uint32 mask, uint32 val) in sb_core_cflags() argument
287 ASSERT((val & ~mask) == 0); in sb_core_cflags()
[all …]
Dlinux_osl.c379 uint val = 0; in osl_pci_read_config() local
388 pci_read_config_dword(osh->pdev, offset, &val); in osl_pci_read_config()
389 if (val != 0xffffffff) in osl_pci_read_config()
394 return (val); in osl_pci_read_config()
398 osl_pci_write_config(osl_t *osh, uint offset, uint size, uint val) in osl_pci_write_config() argument
408 pci_write_config_dword(osh->pdev, offset, val); in osl_pci_write_config()
411 if (osl_pci_read_config(osh, offset, size) == val) in osl_pci_write_config()
/hardware/ril/mock-ril/src/cpp/
Dnode_util.cpp74 ssize_t DecodeBytes(v8::Handle<v8::Value> val, enum encoding encoding) { in DecodeBytes() argument
77 if (val->IsArray()) { in DecodeBytes()
84 v8::Local<v8::String> str = val->ToString(); in DecodeBytes()
98 v8::Handle<v8::Value> val, in DecodeWrite() argument
108 if (val->IsArray()) { in DecodeWrite()
115 v8::Local<v8::String> str = val->ToString(); in DecodeWrite()
Dnode_buffer.h61 static inline bool HasInstance(v8::Handle<v8::Value> val) { in HasInstance() argument
62 if (!val->IsObject()) return false; in HasInstance()
63 v8::Local<v8::Object> obj = val->ToObject(); in HasInstance()
/hardware/ti/wlan/wl1271/TWD/FW_Transfer/
DHwInit.c1349 TI_UINT32 val = (pHwInit->pEEPROMCurPtr[0] | in hwInit_EepromlessStartBurstSm() local
1354 …t->hReport, REPORT_SEVERITY_INIT , "NVS::BurstRead: *(%08x) = %x\n", pHwInit->uEEPROMRegAddr, val); in hwInit_EepromlessStartBurstSm()
1356 … BUILD_HW_INIT_TXN_DATA(pHwInit, pTxn, (REGISTERS_BASE+pHwInit->uEEPROMRegAddr), val, in hwInit_EepromlessStartBurstSm()
1638 TI_UINT32 val= 0, value; in hwInit_ReadRadioParamsSm() local
1667 val = (pHwInit->aHwInitTxn[pHwInit->uTxnIndex].uData); in hwInit_ReadRadioParamsSm()
1668 val &= 0xFFFDFFFF; /*clear bit 17*/ in hwInit_ReadRadioParamsSm()
1672 BUILD_HW_INIT_TXN_DATA(pHwInit, pTxn, GPIO_SELECT, val, in hwInit_ReadRadioParamsSm()
1691 val = (retAddress & 0x7FF); in hwInit_ReadRadioParamsSm()
1692 val |= BIT_16 | BIT_17; in hwInit_ReadRadioParamsSm()
1694 BUILD_HW_INIT_TXN_DATA(pHwInit, pTxn, OCP_POR_CTR, val, in hwInit_ReadRadioParamsSm()
[all …]
/hardware/broadcom/wlan/bcm4329/src/dhd/exe/
Ddhdu.c460 int val; in dhd_check() local
462 if ((ret = dhd_get(dhd, DHD_GET_MAGIC, &val, sizeof(int)) < 0)) in dhd_check()
464 if (val != DHD_IOCTL_MAGIC) in dhd_check()
466 if ((ret = dhd_get(dhd, DHD_GET_VERSION, &val, sizeof(int)) < 0)) in dhd_check()
468 if (val > DHD_IOCTL_VERSION) { in dhd_check()
476 dhd_printint(int val) in dhd_printint() argument
480 printf("%u\n", val); in dhd_printint()
483 printf("0x%x\n", val); in dhd_printint()
487 printf("%d\n", val); in dhd_printint()
1969 uint val, last_val = 0, msglevel = 0, msglevel_add = 0, msglevel_del = 0; in dhd_do_msglevel() local
[all …]
Ddhdu.h45 extern void dhd_printint(int val);
/hardware/broadcom/wlan/bcm4329/src/wl/sys/
Dwl_iw.c122 int dev_iw_write_cfg1_bss_var(struct net_device *dev, int val);
374 int val; in dev_wlc_intvar_get_reg() member
383 *retval = dtoh32(var.val); in dev_wlc_intvar_get_reg()
393 char * val) in dev_wlc_intvar_set_reg() argument
399 memcpy((char *)&reg_addr[4], (char *)val, 4); in dev_wlc_intvar_set_reg()
409 int val) in dev_wlc_intvar_set() argument
414 val = htod32(val); in dev_wlc_intvar_set()
415 len = bcm_mkiovar(name, (char *)(&val), sizeof(val), buf, sizeof(buf)); in dev_wlc_intvar_set()
508 int val; in dev_wlc_intvar_get() member
519 *retval = dtoh32(var.val); in dev_wlc_intvar_get()
[all …]
Dwl_cfg80211.c159 static int32 wl_dev_intvar_set(struct net_device *dev, int8 *name, int32 val);
878 wl_dev_intvar_set(struct net_device *dev, int8 *name, int32 val) in wl_dev_intvar_set() argument
884 val = htod32(val); in wl_dev_intvar_set()
885 len = bcm_mkiovar(name, (char *)(&val), sizeof(val), buf, sizeof(buf)); in wl_dev_intvar_set()
900 int32 val; in wl_dev_intvar_get() member
911 *retval = dtoh32(var.val); in wl_dev_intvar_get()
1107 int32 val = 0; in wl_set_wpa_version() local
1114 val = WPA_AUTH_PSK | WPA_AUTH_UNSPECIFIED; in wl_set_wpa_version()
1116 val = WPA2_AUTH_PSK | WPA2_AUTH_UNSPECIFIED; in wl_set_wpa_version()
1118 val = WPA_AUTH_DISABLED; in wl_set_wpa_version()
[all …]
Dwl_iw.h195 extern int net_os_set_suspend_disable(struct net_device *dev, int val);
196 extern int net_os_set_suspend(struct net_device *dev, int val);
197 extern int net_os_set_dtim_skip(struct net_device *dev, int val);
198 extern int net_os_set_packet_filter(struct net_device *dev, int val);
/hardware/msm7k/dspcrashd/
Ddspcrashd.c80 char val[PROPERTY_VALUE_MAX]; in dump_info() local
85 property_get(*p,val,""); in dump_info()
86 sprintf(buf,"%s: %s\n", *p, val); in dump_info()

12