Home
last modified time | relevance | path

Searched refs:u (Results 1 – 25 of 545) sorted by relevance

12345678910>>...22

/device/soc/hpmicro/sdk/hpm_sdk/utils/
Dhpm_swap.c10 uint32_t __bswapsi2 (uint32_t u) in __bswapsi2() argument
12 return ((((u) & 0xff000000) >> 24) in __bswapsi2()
13 | (((u) & 0x00ff0000) >> 8) in __bswapsi2()
14 | (((u) & 0x0000ff00) << 8) in __bswapsi2()
15 | (((u) & 0x000000ff) << 24)); in __bswapsi2()
18 uint64_t __bswapdi2 (uint64_t u) in __bswapdi2() argument
20 return ((((u) & 0xff00000000000000ull) >> 56) in __bswapdi2()
21 | (((u) & 0x00ff000000000000ull) >> 40) in __bswapdi2()
22 | (((u) & 0x0000ff0000000000ull) >> 24) in __bswapdi2()
23 | (((u) & 0x000000ff00000000ull) >> 8) in __bswapdi2()
[all …]
/device/soc/winnermicro/wm800/board/platform/common/crypto/
Dwm_crypto_hard.c784 tls_reg_write32(HR_CRYPTO_SRC_ADDR, (unsigned int)md->u.sha1.buf); in hd_sha1_compress()
788 tls_reg_write32(HR_CRYPTO_SHA1_DIGEST0, md->u.sha1.state[0]); in hd_sha1_compress()
789 tls_reg_write32(HR_CRYPTO_SHA1_DIGEST1, md->u.sha1.state[1]); in hd_sha1_compress()
790 tls_reg_write32(HR_CRYPTO_SHA1_DIGEST2, md->u.sha1.state[2]); in hd_sha1_compress()
791 tls_reg_write32(HR_CRYPTO_SHA1_DIGEST3, md->u.sha1.state[3]); in hd_sha1_compress()
792 tls_reg_write32(HR_CRYPTO_SHA1_DIGEST4, md->u.sha1.state[4]); in hd_sha1_compress()
806 md->u.sha1.state[i] = tls_reg_read32(HR_CRYPTO_SHA1_DIGEST0 + (4 * i)); in hd_sha1_compress()
825 md->u.sha1.state[0] = 0x67452301UL; in tls_crypto_sha1_init()
826 md->u.sha1.state[1] = 0xefcdab89UL; in tls_crypto_sha1_init()
827 md->u.sha1.state[2] = 0x98badcfeUL; in tls_crypto_sha1_init()
[all …]
/device/soc/esp/esp32/components/newlib/platform_include/
Dendian.h156 be16enc(void *pp, uint16_t u) in be16enc() argument
160 p[0] = (u >> 8) & 0xff; in be16enc()
161 p[1] = u & 0xff; in be16enc()
165 be32enc(void *pp, uint32_t u) in be32enc() argument
169 p[0] = (u >> 24) & 0xff; in be32enc()
170 p[1] = (u >> 16) & 0xff; in be32enc()
171 p[2] = (u >> 8) & 0xff; in be32enc()
172 p[3] = u & 0xff; in be32enc()
176 be64enc(void *pp, uint64_t u) in be64enc() argument
180 be32enc(p, (uint32_t)(u >> 32)); in be64enc()
[all …]
/device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/host/include/host/
Dble_uuid.h59 ble_uuid_t u; member
65 ble_uuid_t u; member
71 ble_uuid_t u; member
77 ble_uuid_t u; member
85 .u.type = BLE_UUID_TYPE_16, \
91 .u.type = BLE_UUID_TYPE_32, \
97 .u.type = BLE_UUID_TYPE_128, \
110 #define BLE_UUID16(u) \ argument
111 ((ble_uuid16_t *) (u))
113 #define BLE_UUID32(u) \ argument
[all …]
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/umac/
Dspectmgmt.c208 skb_put(skb, 1 + sizeof(msr_report->u.action.u.measurement)); in ieee80211_send_refuse_measurement_request()
209 msr_report->u.action.category = WLAN_CATEGORY_SPECTRUM_MGMT; in ieee80211_send_refuse_measurement_request()
210 msr_report->u.action.u.measurement.action_code = in ieee80211_send_refuse_measurement_request()
212 msr_report->u.action.u.measurement.dialog_token = dialog_token; in ieee80211_send_refuse_measurement_request()
214 msr_report->u.action.u.measurement.element_id = WLAN_EID_MEASURE_REPORT; in ieee80211_send_refuse_measurement_request()
215 msr_report->u.action.u.measurement.length = in ieee80211_send_refuse_measurement_request()
218 memset(&msr_report->u.action.u.measurement.msr_elem, 0, in ieee80211_send_refuse_measurement_request()
220 msr_report->u.action.u.measurement.msr_elem.token = request_ie->token; in ieee80211_send_refuse_measurement_request()
221 msr_report->u.action.u.measurement.msr_elem.mode |= in ieee80211_send_refuse_measurement_request()
223 msr_report->u.action.u.measurement.msr_elem.type = request_ie->type; in ieee80211_send_refuse_measurement_request()
[all …]
Dht.c56 ht_capa = &sdata->u.mgd.ht_capa; in ieee80211_apply_htcap_overrides()
57 ht_capa_mask = &sdata->u.mgd.ht_capa_mask; in ieee80211_apply_htcap_overrides()
60 ht_capa = &sdata->u.ibss.ht_capa; in ieee80211_apply_htcap_overrides()
61 ht_capa_mask = &sdata->u.ibss.ht_capa_mask; in ieee80211_apply_htcap_overrides()
430 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_send_delba()
432 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_delba()
437 skb_put(skb, 1 + sizeof(mgmt->u.action.u.delba)); in ieee80211_send_delba()
439 mgmt->u.action.category = WLAN_CATEGORY_BACK; in ieee80211_send_delba()
440 mgmt->u.action.u.delba.action_code = WLAN_ACTION_DELBA; in ieee80211_send_delba()
444 mgmt->u.action.u.delba.params = cpu_to_le16(params); in ieee80211_send_delba()
[all …]
Ddebugfs_netdev.c237 IEEE80211_IF_FILE(bssid, u.mgd.bssid, MAC);
238 IEEE80211_IF_FILE(aid, u.mgd.aid, DEC);
239 IEEE80211_IF_FILE(beacon_timeout, u.mgd.beacon_timeout, JIFFIES_TO_MS);
283 smps_modes[sdata->u.mgd.req_smps], in ieee80211_if_fmt_smps()
287 smps_modes[sdata->u.ap.req_smps], in ieee80211_if_fmt_smps()
345 if (!sdata->u.mgd.associated) { in ieee80211_if_parse_tkip_mic_test()
350 memcpy(hdr->addr1, sdata->u.mgd.associated->bssid, ETH_ALEN); in ieee80211_if_parse_tkip_mic_test()
391 const struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_if_fmt_uapsd_queues()
399 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_if_parse_uapsd_queues()
419 const struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_if_fmt_uapsd_max_sp_len()
[all …]
Dibss.c45 struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; in ieee80211_ibss_build_presp()
82 mgmt->u.beacon.beacon_int = cpu_to_le16(beacon_int); in ieee80211_ibss_build_presp()
83 mgmt->u.beacon.timestamp = cpu_to_le64(tsf); in ieee80211_ibss_build_presp()
84 mgmt->u.beacon.capab_info = cpu_to_le16(capability); in ieee80211_ibss_build_presp()
86 pos = (u8 *)mgmt + offsetof(struct ieee80211_mgmt, u.beacon.variable); in ieee80211_ibss_build_presp()
225 struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; in __ieee80211_sta_join_ibss()
418 switch (sdata->u.ibss.chandef.width) { in ieee80211_sta_join_ibss()
422 chan_type = cfg80211_get_chandef_type(&sdata->u.ibss.chandef); in ieee80211_sta_join_ibss()
429 chandef.width = sdata->u.ibss.chandef.width; in ieee80211_sta_join_ibss()
434 chandef = sdata->u.ibss.chandef; in ieee80211_sta_join_ibss()
[all …]
Dmesh.c20 return (mgmt->u.action.u.mesh_action.action_code == in mesh_action_is_path_sel()
41 from_timer(sdata, t, u.mesh.housekeeping_timer); in ieee80211_mesh_housekeeping_timer()
43 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_housekeeping_timer()
62 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_matches_local()
141 if (free_plinks != sdata->u.mesh.accepting_plinks) { in mesh_accept_plinks_update()
142 sdata->u.mesh.accepting_plinks = free_plinks; in mesh_accept_plinks_update()
167 sdata->u.mesh.rmc = kmalloc(sizeof(struct mesh_rmc), GFP_KERNEL); in mesh_rmc_init()
168 if (!sdata->u.mesh.rmc) in mesh_rmc_init()
170 sdata->u.mesh.rmc->idx_mask = RMC_BUCKETS - 1; in mesh_rmc_init()
172 INIT_HLIST_HEAD(&sdata->u.mesh.rmc->bucket[i]); in mesh_rmc_init()
[all …]
Dkey.c74 list_for_each_entry_rcu(vlan, &sdata->u.ap.vlans, u.vlan.list) in update_vlan_tailroom_need_count()
535 key->u.tkip.rx[i].iv32 = in ieee80211_key_alloc()
537 key->u.tkip.rx[i].iv16 = in ieee80211_key_alloc()
541 spin_lock_init(&key->u.tkip.txlock); in ieee80211_key_alloc()
549 key->u.ccmp.rx_pn[i][j] = in ieee80211_key_alloc()
556 key->u.ccmp.tfm = ieee80211_aes_key_setup_encrypt( in ieee80211_key_alloc()
558 if (IS_ERR(key->u.ccmp.tfm)) { in ieee80211_key_alloc()
559 err = PTR_ERR(key->u.ccmp.tfm); in ieee80211_key_alloc()
569 key->u.ccmp.rx_pn[i][j] = in ieee80211_key_alloc()
574 key->u.ccmp.tfm = ieee80211_aes_key_setup_encrypt( in ieee80211_key_alloc()
[all …]
Dmesh_pathtbl.c239 return mpath_lookup(sdata->u.mesh.mesh_paths, dst, sdata); in mesh_path_lookup()
245 return mpath_lookup(sdata->u.mesh.mpp_paths, dst, sdata); in mpp_path_lookup()
282 return __mesh_path_lookup_by_idx(sdata->u.mesh.mesh_paths, idx); in mesh_path_lookup_by_idx()
297 return __mesh_path_lookup_by_idx(sdata->u.mesh.mpp_paths, idx); in mpp_path_lookup_by_idx()
310 tbl = mpath->sdata->u.mesh.mesh_paths; in mesh_path_add_gate()
319 mpath->sdata->u.mesh.num_gates++; in mesh_path_add_gate()
329 mpath->dst, mpath->sdata->u.mesh.num_gates); in mesh_path_add_gate()
350 mpath->sdata->u.mesh.num_gates--; in mesh_gate_del()
355 mpath->dst, mpath->sdata->u.mesh.num_gates); in mesh_gate_del()
364 return sdata->u.mesh.num_gates; in mesh_gate_num()
[all …]
Dagg-rx.c239 memcpy(mgmt->bssid, sdata->u.mgd.bssid, ETH_ALEN); in ieee80211_send_addba_resp()
241 memcpy(mgmt->bssid, sdata->u.ibss.bssid, ETH_ALEN); in ieee80211_send_addba_resp()
246 skb_put(skb, 1 + sizeof(mgmt->u.action.u.addba_resp)); in ieee80211_send_addba_resp()
247 mgmt->u.action.category = WLAN_CATEGORY_BACK; in ieee80211_send_addba_resp()
248 mgmt->u.action.u.addba_resp.action_code = WLAN_ACTION_ADDBA_RESP; in ieee80211_send_addba_resp()
249 mgmt->u.action.u.addba_resp.dialog_token = dialog_token; in ieee80211_send_addba_resp()
256 mgmt->u.action.u.addba_resp.capab = cpu_to_le16(capab); in ieee80211_send_addba_resp()
257 mgmt->u.action.u.addba_resp.timeout = cpu_to_le16(timeout); in ieee80211_send_addba_resp()
258 mgmt->u.action.u.addba_resp.status = cpu_to_le16(status); in ieee80211_send_addba_resp()
482 dialog_token = mgmt->u.action.u.addba_req.dialog_token; in ieee80211_process_addba_request()
[all …]
/device/soc/rockchip/rk3588/kernel/drivers/net/ethernet/realtek/r8168/
Dr8168_asf.c75 rtl8168_asf_hbperiod(tp, asf_usrdata.arg, asf_usrdata.u.data); in rtl8168_asf_ioctl()
80 rtl8168_asf_wd16rst(tp, asf_usrdata.arg, asf_usrdata.u.data); in rtl8168_asf_ioctl()
83 rtl8168_asf_time_period(tp, asf_usrdata.arg, WD8Rst, asf_usrdata.u.data); in rtl8168_asf_ioctl()
86 rtl8168_asf_time_period(tp, asf_usrdata.arg, LSnsrPollCycle, asf_usrdata.u.data); in rtl8168_asf_ioctl()
89 rtl8168_asf_time_period(tp, asf_usrdata.arg, ASFSnsrPollPrd, asf_usrdata.u.data); in rtl8168_asf_ioctl()
92 rtl8168_asf_time_period(tp, asf_usrdata.arg, AlertReSendItvl, asf_usrdata.u.data); in rtl8168_asf_ioctl()
95 … rtl8168_asf_rw_hexadecimal(tp, asf_usrdata.arg, SMBAddr, RW_ONE_BYTE, asf_usrdata.u.data); in rtl8168_asf_ioctl()
98 rtl8168_asf_config_regs(tp, asf_usrdata.arg, ASFConfigR0, asf_usrdata.u.data); in rtl8168_asf_ioctl()
101 rtl8168_asf_config_regs(tp, asf_usrdata.arg, ASFConfigR1, asf_usrdata.u.data); in rtl8168_asf_ioctl()
104 rtl8168_asf_console_mac(tp, asf_usrdata.arg, asf_usrdata.u.data); in rtl8168_asf_ioctl()
[all …]
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/os_dep/linux/
Drecv_linux.c45 pcloneframe->u.hdr.pkt = pkt_copy; in rtw_os_recvframe_duplicate_skb()
46 pcloneframe->u.hdr.rx_head = pkt_copy->head; in rtw_os_recvframe_duplicate_skb()
47 pcloneframe->u.hdr.rx_data = pkt_copy->data; in rtw_os_recvframe_duplicate_skb()
48 pcloneframe->u.hdr.rx_end = skb_end_pointer(pkt_copy); in rtw_os_recvframe_duplicate_skb()
49 pcloneframe->u.hdr.rx_tail = skb_tail_pointer(pkt_copy); in rtw_os_recvframe_duplicate_skb()
50 pcloneframe->u.hdr.len = pkt_copy->len; in rtw_os_recvframe_duplicate_skb()
61 struct rx_pkt_attrib *pattrib = &precvframe->u.hdr.attrib; in rtw_os_alloc_recvframe()
65 precvframe->u.hdr.pkt = NULL; in rtw_os_alloc_recvframe()
94 precvframe->u.hdr.pkt = pkt_copy; in rtw_os_alloc_recvframe()
95 precvframe->u.hdr.rx_head = pkt_copy->head; in rtw_os_alloc_recvframe()
[all …]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/linux/
Dmali_osk_atomics.c23 atomic_dec((atomic_t *)&atom->u.val); in mali_osk_atomic_dec()
28 return atomic_dec_return((atomic_t *)&atom->u.val); in mali_osk_atomic_dec_return()
33 atomic_inc((atomic_t *)&atom->u.val); in mali_osk_atomic_inc()
38 return atomic_inc_return((atomic_t *)&atom->u.val); in mali_osk_atomic_inc_return()
44 atomic_set((atomic_t *)&atom->u.val, val); in mali_osk_atomic_init()
49 return atomic_read((atomic_t *)&atom->u.val); in mali_osk_atomic_read()
59 return atomic_xchg((atomic_t *)&atom->u.val, val); in mali_osk_atomic_xchg()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/linux/
Dmali_osk_atomics.c22 atomic_dec((atomic_t *)&atom->u.val); in _mali_osk_atomic_dec()
27 return atomic_dec_return((atomic_t *)&atom->u.val); in _mali_osk_atomic_dec_return()
32 atomic_inc((atomic_t *)&atom->u.val); in _mali_osk_atomic_inc()
37 return atomic_inc_return((atomic_t *)&atom->u.val); in _mali_osk_atomic_inc_return()
43 atomic_set((atomic_t *)&atom->u.val, val); in _mali_osk_atomic_init()
48 return atomic_read((atomic_t *)&atom->u.val); in _mali_osk_atomic_read()
58 return atomic_xchg((atomic_t *)&atom->u.val, val); in _mali_osk_atomic_xchg()
/device/soc/esp/esp32/components/bt/host/bluedroid/stack/rfcomm/
Drfc_port_fsm.c526 PORT_ParNegInd (p_mcb, dlci, p_frame->u.pn.mtu, in rfc_process_pn()
527 p_frame->u.pn.conv_layer, p_frame->u.pn.k); in rfc_process_pn()
545 PORT_ParNegCnf (p_mcb, dlci, p_frame->u.pn.mtu, in rfc_process_pn()
546 p_frame->u.pn.conv_layer, p_frame->u.pn.k); in rfc_process_pn()
571 PORT_PortNegInd(p_mcb, p_frame->dlci, &port_pars, p_frame->u.rpn.param_mask); in rfc_process_rpn()
588 PORT_PortNegInd (p_mcb, p_frame->dlci, &port_pars, p_frame->u.rpn.param_mask); in rfc_process_rpn()
610 p_frame->u.rpn.param_mask = RFCOMM_RPN_PM_MASK; in rfc_process_rpn()
626 if (((p_frame->u.rpn.param_mask & (RFCOMM_RPN_PM_RTR_ON_INPUT | RFCOMM_RPN_PM_RTR_ON_OUTPUT)) == in rfc_process_rpn()
628 … || ((p_frame->u.rpn.param_mask & (RFCOMM_RPN_PM_RTC_ON_INPUT | RFCOMM_RPN_PM_RTC_ON_OUTPUT)) == in rfc_process_rpn()
669 UINT8 modem_signals = p_frame->u.msc.signals; in rfc_process_msc()
[all …]
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/include/
Drtw_recv.h707 } u; member
766 return precvframe->u.hdr.rx_head; in get_rxmem()
783 return precvframe->u.hdr.rx_data; in get_recvframe_data()
801 precvframe->u.hdr.rx_data -= sz ; in recvframe_push()
802 if (precvframe->u.hdr.rx_data < precvframe->u.hdr.rx_head) { in recvframe_push()
803 precvframe->u.hdr.rx_data += sz ; in recvframe_push()
807 precvframe->u.hdr.len += sz; in recvframe_push()
809 return precvframe->u.hdr.rx_data; in recvframe_push()
825 precvframe->u.hdr.rx_data += sz; in recvframe_pull()
827 if (precvframe->u.hdr.rx_data > precvframe->u.hdr.rx_tail) { in recvframe_pull()
[all …]
/device/board/unionman/unionpi_tiger/kernel/drivers/rtl88x2cs/hal/rtl8822c/sdio/
Drtl8822cs_recv.c173 attrib = &recvframe->u.hdr.attrib;
181 copyframe->u.hdr.adapter = adapter;
182 _rtw_memcpy(&copyframe->u.hdr.attrib, attrib, sizeof(struct rx_pkt_attrib));
188 skb_put(recvframe->u.hdr.pkt, attrib->pkt_len);
191 FUNC_ADPT_ARG(adapter), recvframe->u.hdr.pkt->len);
194 copypkt = rtw_skb_copy(recvframe->u.hdr.pkt);
203 copypkt = rtw_skb_clone(recvframe->u.hdr.pkt);
213 copyframe->u.hdr.pkt = copypkt;
214 copyframe->u.hdr.len = copypkt->len;
215 copyframe->u.hdr.rx_head = copypkt->head;
[all …]
/device/board/hihope/dayu210/uboot/
Dmake.sh210 cp $2 ${REP_DIR}/u-boot-nodtb.bin
212 cp $2 ${REP_DIR}/u-boot.dtb
402 ELF=`find -name u-boot-${ARG_TSPL}`
403 MAP=`find -name u-boot-${ARG_TSPL}.map`
404 SYM=`find -name u-boot-${ARG_TSPL}.sym`
406 ELF=u-boot
407 MAP=u-boot.map
408 SYM=u-boot.sym
638 cp ${SPL_FIT_SOURCE} u-boot.its
643 ${SPL_FIT_GENERATOR} u-boot.dtb > u-boot.its
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/include/adapt/
Dhi_math_adapt.h156 #define yuv(y, u, v) ((((y) & 0x03ff) << 20) | (((u) & 0x03ff) << 10) | ((v) & 0x03ff)) argument
167 #define yuv_8bit(y, u, v) ((((y) & 0xff) << 16) | (((u) & 0xff) << 8) | ((v) & 0xff)) argument
189 hi_u16 y, u, v; in rgb2_yuv() local
191 rgb2_yc(rgb_r(rgb), rgb_g(rgb), rgb_b(rgb), &y, &u, &v); in rgb2_yuv()
193 return yuv(y, u, v); in rgb2_yuv()
211 hi_u16 y, u, v; in rgb2_yuv_full() local
213 rgb2_yc_full(rgb_r(rgb), rgb_g(rgb), rgb_b(rgb), &y, &u, &v); in rgb2_yuv_full()
215 return yuv(y, u, v); in rgb2_yuv_full()
236 hi_u8 y, u, v; in rgb2_yuv_8_bit() local
238 rgb2_yc_8_bit(rgb_r(rgb), rgb_g(rgb), rgb_b(rgb), &y, &u, &v); in rgb2_yuv_8_bit()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/mpp/cbb/include/
Dhi_math.h159 #define YUV(y, u, v) ((((y) & 0x03ff) << 20) | (((u) & 0x03ff) << 10) | ((v) & 0x03ff)) argument
170 #define YUV_8BIT(y, u, v) ((((y) & 0xff) << 16) | (((u) & 0xff) << 8) | ((v) & 0xff)) argument
193 HI_U16 y, u, v; in Rgb2Yuv() local
195 Rgb2Yc(RGB_R(u32Rgb), RGB_G(u32Rgb), RGB_B(u32Rgb), &y, &u, &v); in Rgb2Yuv()
197 return YUV(y, u, v); in Rgb2Yuv()
215 HI_U16 y, u, v; in Rgb2Yuv_full() local
217 Rgb2Yc_full(RGB_R(u32Rgb), RGB_G(u32Rgb), RGB_B(u32Rgb), &y, &u, &v); in Rgb2Yuv_full()
219 return YUV(y, u, v); in Rgb2Yuv_full()
240 HI_U8 y, u, v; in Rgb2Yuv_8BIT() local
242 Rgb2Yc_8BIT(RGB_R(u32Rgb), RGB_G(u32Rgb), RGB_B(u32Rgb), &y, &u, &v); in Rgb2Yuv_8BIT()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/
Dhi_math.h156 #define YUV(y, u, v) ((((y) & 0x03ff) << 20) | (((u) & 0x03ff) << 10) | ((v) & 0x03ff)) argument
167 #define YUV_8BIT(y, u, v) ((((y) & 0xff) << 16) | (((u) & 0xff) << 8) | ((v) & 0xff)) argument
190 HI_U16 y, u, v; in Rgb2Yuv() local
192 Rgb2Yc(RGB_R(u32Rgb), RGB_G(u32Rgb), RGB_B(u32Rgb), &y, &u, &v); in Rgb2Yuv()
194 return YUV(y, u, v); in Rgb2Yuv()
212 HI_U16 y, u, v; in Rgb2Yuv_full() local
214 Rgb2Yc_full(RGB_R(u32Rgb), RGB_G(u32Rgb), RGB_B(u32Rgb), &y, &u, &v); in Rgb2Yuv_full()
216 return YUV(y, u, v); in Rgb2Yuv_full()
237 HI_U8 y, u, v; in Rgb2Yuv_8BIT() local
239 Rgb2Yc_8BIT(RGB_R(u32Rgb), RGB_G(u32Rgb), RGB_B(u32Rgb), &y, &u, &v); in Rgb2Yuv_8BIT()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_liteos/include/adapt/
Dhi_math_adapt.h153 #define yuv(y, u, v) ((((y) & 0x03ff) << 20) | (((u) & 0x03ff) << 10) | ((v) & 0x03ff)) argument
164 #define yuv_8bit(y, u, v) ((((y) & 0xff) << 16) | (((u) & 0xff) << 8) | ((v) & 0xff)) argument
186 hi_u16 y, u, v; in rgb2_yuv() local
188 rgb2_yc(rgb_r(rgb), rgb_g(rgb), rgb_b(rgb), &y, &u, &v); in rgb2_yuv()
190 return yuv(y, u, v); in rgb2_yuv()
208 hi_u16 y, u, v; in rgb2_yuv_full() local
210 rgb2_yc_full(rgb_r(rgb), rgb_g(rgb), rgb_b(rgb), &y, &u, &v); in rgb2_yuv_full()
212 return yuv(y, u, v); in rgb2_yuv_full()
233 hi_u8 y, u, v; in rgb2_yuv_8_bit() local
235 rgb2_yc_8_bit(rgb_r(rgb), rgb_g(rgb), rgb_b(rgb), &y, &u, &v); in rgb2_yuv_8_bit()
[all …]
/device/soc/hisilicon/hi3516dv300/sdk_linux/include/adapt/
Dhi_math_adapt.h153 #define yuv(y, u, v) ((((y) & 0x03ff) << 20) | (((u) & 0x03ff) << 10) | ((v) & 0x03ff)) argument
164 #define yuv_8bit(y, u, v) ((((y) & 0xff) << 16) | (((u) & 0xff) << 8) | ((v) & 0xff)) argument
186 hi_u16 y, u, v; in rgb2_yuv() local
188 rgb2_yc(rgb_r(rgb), rgb_g(rgb), rgb_b(rgb), &y, &u, &v); in rgb2_yuv()
190 return yuv(y, u, v); in rgb2_yuv()
208 hi_u16 y, u, v; in rgb2_yuv_full() local
210 rgb2_yc_full(rgb_r(rgb), rgb_g(rgb), rgb_b(rgb), &y, &u, &v); in rgb2_yuv_full()
212 return yuv(y, u, v); in rgb2_yuv_full()
233 hi_u8 y, u, v; in rgb2_yuv_8_bit() local
235 rgb2_yc_8_bit(rgb_r(rgb), rgb_g(rgb), rgb_b(rgb), &y, &u, &v); in rgb2_yuv_8_bit()
[all …]

12345678910>>...22