/linux-3.4.99/net/nfc/llcp/ |
D | commands.c | 46 static u8 llcp_tlv8(u8 *tlv, u8 type) in llcp_tlv8() argument 48 if (tlv[0] != type || tlv[1] != llcp_tlv_length[tlv[0]]) in llcp_tlv8() 51 return tlv[2]; in llcp_tlv8() 54 static u8 llcp_tlv16(u8 *tlv, u8 type) in llcp_tlv16() argument 56 if (tlv[0] != type || tlv[1] != llcp_tlv_length[tlv[0]]) in llcp_tlv16() 59 return be16_to_cpu(*((__be16 *)(tlv + 2))); in llcp_tlv16() 63 static u8 llcp_tlv_version(u8 *tlv) in llcp_tlv_version() argument 65 return llcp_tlv8(tlv, LLCP_TLV_VERSION); in llcp_tlv_version() 68 static u16 llcp_tlv_miux(u8 *tlv) in llcp_tlv_miux() argument 70 return llcp_tlv16(tlv, LLCP_TLV_MIUX) & 0x7f; in llcp_tlv_miux() [all …]
|
/linux-3.4.99/drivers/net/ethernet/cisco/enic/ |
D | vnic_vic.c | 53 struct vic_provinfo_tlv *tlv; in vic_provinfo_add_tlv() local 62 tlv = (struct vic_provinfo_tlv *)((u8 *)vp->tlv + in vic_provinfo_add_tlv() 65 tlv->type = htons(type); in vic_provinfo_add_tlv() 66 tlv->length = htons(length); in vic_provinfo_add_tlv() 67 memcpy(tlv->value, value, length); in vic_provinfo_add_tlv()
|
D | vnic_vic.h | 62 } tlv[0]; member
|
/linux-3.4.99/drivers/net/wimax/i2400m/ |
D | control.c | 124 ssize_t i2400m_tlv_match(const struct i2400m_tlv_hdr *tlv, in i2400m_tlv_match() argument 127 if (le16_to_cpu(tlv->type) != tlv_type) /* Not our type? skip */ in i2400m_tlv_match() 130 && le16_to_cpu(tlv->length) + sizeof(*tlv) != tlv_size) { in i2400m_tlv_match() 131 size_t size = le16_to_cpu(tlv->length) + sizeof(*tlv); in i2400m_tlv_match() 231 const struct i2400m_tlv_hdr *tlv = NULL; in i2400m_tlv_find() local 232 while ((tlv = i2400m_tlv_buffer_walk(i2400m, tlv_hdr, size, tlv))) { in i2400m_tlv_find() 233 match = i2400m_tlv_match(tlv, tlv_type, tlv_size); in i2400m_tlv_find() 241 return tlv; in i2400m_tlv_find() 433 const struct i2400m_tlv_hdr *tlv, in i2400m_report_state_parse_tlv() argument 441 if (0 == i2400m_tlv_match(tlv, I2400M_TLV_SYSTEM_STATE, sizeof(*ss))) { in i2400m_report_state_parse_tlv() [all …]
|
/linux-3.4.99/include/linux/ |
D | tipc_config.h | 260 #define TLV_DATA(tlv) ((void *)((char *)(tlv) + TLV_LENGTH(0))) argument 262 static inline int TLV_OK(const void *tlv, __u16 space) in TLV_OK() argument 274 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK() 277 static inline int TLV_CHECK(const void *tlv, __u16 space, __u16 exp_type) in TLV_CHECK() argument 279 return TLV_OK(tlv, space) && in TLV_CHECK() 280 (ntohs(((struct tlv_desc *)tlv)->tlv_type) == exp_type); in TLV_CHECK() 283 static inline int TLV_SET(void *tlv, __u16 type, void *data, __u16 len) in TLV_SET() argument 289 tlv_ptr = (struct tlv_desc *)tlv; in TLV_SET()
|
/linux-3.4.99/sound/core/ |
D | vmaster.c | 39 unsigned int tlv[4]; member 224 unsigned int __user *tlv) in slave_tlv_cmd() argument 228 return slave->slave.tlv.c(&slave->slave, op_flag, size, tlv); in slave_tlv_cmd() 274 slave->tlv.c = slave_tlv_cmd; in _snd_ctl_add_slave() 380 const unsigned int *tlv) in snd_ctl_make_virtual_master() argument 408 if (tlv && in snd_ctl_make_virtual_master() 409 (tlv[0] == SNDRV_CTL_TLVT_DB_SCALE || in snd_ctl_make_virtual_master() 410 tlv[0] == SNDRV_CTL_TLVT_DB_MINMAX || in snd_ctl_make_virtual_master() 411 tlv[0] == SNDRV_CTL_TLVT_DB_MINMAX_MUTE)) { in snd_ctl_make_virtual_master() 413 memcpy(master->tlv, tlv, sizeof(master->tlv)); in snd_ctl_make_virtual_master() [all …]
|
D | control.c | 259 kctl.tlv.p = ncontrol->tlv.p; in snd_ctl_new1() 1069 unsigned int __user *tlv) in snd_ctl_elem_user_tlv() argument 1079 new_data = memdup_user(tlv, size); in snd_ctl_elem_user_tlv() 1102 if (copy_to_user(tlv, ue->tlv_data, ue->tlv_data_size)) in snd_ctl_elem_user_tlv() 1195 kctl.tlv.c = snd_ctl_elem_user_tlv; in snd_ctl_elem_add() 1310 struct snd_ctl_tlv tlv; in snd_ctl_tlv_ioctl() local 1316 if (copy_from_user(&tlv, _tlv, sizeof(tlv))) in snd_ctl_tlv_ioctl() 1318 if (tlv.length < sizeof(unsigned int) * 2) in snd_ctl_tlv_ioctl() 1321 kctl = snd_ctl_find_numid(card, tlv.numid); in snd_ctl_tlv_ioctl() 1326 if (kctl->tlv.p == NULL) { in snd_ctl_tlv_ioctl() [all …]
|
/linux-3.4.99/drivers/net/wireless/libertas/ |
D | cfg.c | 164 static int lbs_add_ssid_tlv(u8 *tlv, const u8 *ssid, int ssid_len) in lbs_add_ssid_tlv() argument 166 struct mrvl_ie_ssid_param_set *ssid_tlv = (void *)tlv; in lbs_add_ssid_tlv() 189 static int lbs_add_channel_list_tlv(struct lbs_private *priv, u8 *tlv, in lbs_add_channel_list_tlv() argument 195 struct mrvl_ie_header *header = (void *) tlv; in lbs_add_channel_list_tlv() 212 tlv += sizeof(struct mrvl_ie_header); in lbs_add_channel_list_tlv() 216 memset(tlv, 0, chanscanparamsize); in lbs_add_channel_list_tlv() 219 struct chanscanparamset *param = (void *) tlv; in lbs_add_channel_list_tlv() 230 tlv += sizeof(struct chanscanparamset); in lbs_add_channel_list_tlv() 250 static int lbs_add_supported_rates_tlv(u8 *tlv) in lbs_add_supported_rates_tlv() argument 253 struct mrvl_ie_rates_param_set *rate_tlv = (void *)tlv; in lbs_add_supported_rates_tlv() [all …]
|
D | debugfs.c | 204 static void *lbs_tlv_find(uint16_t tlv_type, const uint8_t *tlv, uint16_t size) in lbs_tlv_find() argument 211 tlv_h = (struct mrvl_ie_header *) tlv; in lbs_tlv_find() 218 tlv += length; in lbs_tlv_find() 255 got = lbs_tlv_find(tlv_type, subscribed->tlv, sizeof(subscribed->tlv)); in lbs_threshold_read() 282 struct mrvl_ie_thresholds *tlv; in lbs_threshold_write() local 326 tlv = (void *)events->tlv; in lbs_threshold_write() 330 tlv->header.type = cpu_to_le16(tlv_type); in lbs_threshold_write() 331 tlv->header.len = cpu_to_le16(sizeof(*tlv) - sizeof(tlv->header)); in lbs_threshold_write() 332 tlv->value = value; in lbs_threshold_write() 334 tlv->freq = freq; in lbs_threshold_write() [all …]
|
/linux-3.4.99/include/sound/ |
D | control.h | 36 unsigned int __user *tlv); 53 } tlv; member 72 } tlv; member 179 const unsigned int *tlv);
|
D | soc.h | 54 .tlv.p = (tlv_array), \ 74 .tlv.p = (tlv_array), \ 83 .tlv.p = (tlv_array), \ 92 .tlv.p = (tlv_array), \ 139 .tlv.p = (tlv_array), \ 148 .tlv.p = (tlv_array), \ 158 .tlv.p = (tlv_array), \ 179 .tlv.p = (tlv_array), \
|
D | wss.h | 212 .tlv = { .p = (xtlv) } } 225 .tlv = { .p = (xtlv) } }
|
/linux-3.4.99/sound/pci/hda/ |
D | hda_local.h | 54 .tlv = { .c = snd_hda_mixer_amp_tlv }, \ 116 unsigned int size, unsigned int __user *tlv); 139 unsigned int *tlv); 143 unsigned int *tlv, const char * const *slaves, 146 #define snd_hda_add_vmaster(codec, name, tlv, slaves, suffix) \ argument 147 __snd_hda_add_vmaster(codec, name, tlv, slaves, suffix, true, NULL) 199 snd_kcontrol_tlv_rw_t *tlv; member 217 unsigned int size, unsigned int __user *tlv); 228 .tlv = { .c = snd_hda_mixer_bind_tlv },\
|
/linux-3.4.99/drivers/net/wireless/iwlwifi/ |
D | iwl-drv.c | 414 struct iwl_ucode_tlv *tlv; in iwl_parse_tlv_firmware() local 477 while (len >= sizeof(*tlv)) { in iwl_parse_tlv_firmware() 480 len -= sizeof(*tlv); in iwl_parse_tlv_firmware() 481 tlv = (void *)data; in iwl_parse_tlv_firmware() 483 tlv_len = le32_to_cpu(tlv->length); in iwl_parse_tlv_firmware() 484 tlv_type = le16_to_cpu(tlv->type); in iwl_parse_tlv_firmware() 485 tlv_alt = le16_to_cpu(tlv->alternative); in iwl_parse_tlv_firmware() 486 tlv_data = tlv->data; in iwl_parse_tlv_firmware() 494 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_parse_tlv_firmware()
|
/linux-3.4.99/net/tipc/ |
D | config.c | 64 struct tlv_desc *tlv = (struct tlv_desc *)skb_tail_pointer(buf); in tipc_cfg_append_tlv() local 70 tlv->tlv_type = htons(tlv_type); in tipc_cfg_append_tlv() 71 tlv->tlv_len = htons(TLV_LENGTH(tlv_data_size)); in tipc_cfg_append_tlv() 73 memcpy(TLV_DATA(tlv), tlv_data, tlv_data_size); in tipc_cfg_append_tlv()
|
/linux-3.4.99/sound/pci/ice1712/ |
D | aureon.c | 1452 .tlv = { .p = db_scale_wm_dac } 1471 .tlv = { .p = db_scale_wm_dac } 1490 .tlv = { .p = db_scale_wm_dac } 1509 .tlv = { .p = db_scale_wm_dac } 1528 .tlv = { .p = db_scale_wm_dac } 1547 .tlv = { .p = db_scale_wm_dac } 1567 .tlv = { .p = db_scale_wm_pcm } 1584 .tlv = { .p = db_scale_wm_adc } 1635 .tlv = { .p = db_scale_ac97_master } 1654 .tlv = { .p = db_scale_ac97_gain } [all …]
|
D | phase.c | 789 .tlv = { .p = db_scale_wm_dac } 808 .tlv = { .p = db_scale_wm_dac } 827 .tlv = { .p = db_scale_wm_dac } 846 .tlv = { .p = db_scale_wm_dac } 865 .tlv = { .p = db_scale_wm_dac } 884 .tlv = { .p = db_scale_wm_dac } 904 .tlv = { .p = db_scale_wm_pcm }
|
D | prodigy_hifi.c | 311 .tlv = { .p = ak4396_db_scale }, 794 .tlv = { .p = db_scale_wm_dac } 804 .tlv = { .p = db_scale_wm_dac }, 815 .tlv = { .p = db_scale_wm_dac }, 826 .tlv = { .p = db_scale_wm_dac } 837 .tlv = { .p = db_scale_wm_dac } 848 .tlv = { .p = db_scale_wm_dac }, 858 .tlv = { .p = db_scale_wm_dac },
|
/linux-3.4.99/sound/i2c/other/ |
D | ak4xxx-adda.c | 688 knew.tlv.p = db_scale_vol_datt; in build_dac_controls() 695 knew.tlv.p = db_scale_vol_datt; in build_dac_controls() 702 knew.tlv.p = db_scale_8bit; in build_dac_controls() 708 knew.tlv.p = db_scale_8bit; in build_dac_controls() 715 knew.tlv.p = db_scale_7bit; in build_dac_controls() 722 knew.tlv.p = db_scale_linear; in build_dac_controls() 728 knew.tlv.p = db_scale_linear; in build_dac_controls() 783 knew.tlv.p = db_scale_vol_datt; in build_adc_controls()
|
/linux-3.4.99/net/atm/ |
D | mpc.c | 1343 uint8_t tlv[4 + 1 + 1 + 1 + ATM_ESA_LEN]; in set_mpc_ctrl_addr_rcvd() local 1345 tlv[0] = 00; tlv[1] = 0xa0; tlv[2] = 0x3e; tlv[3] = 0x2a; /* type */ in set_mpc_ctrl_addr_rcvd() 1346 tlv[4] = 1 + 1 + ATM_ESA_LEN; /* length */ in set_mpc_ctrl_addr_rcvd() 1347 tlv[5] = 0x02; /* MPOA client */ in set_mpc_ctrl_addr_rcvd() 1348 tlv[6] = 0x00; /* number of MPS MAC addresses */ in set_mpc_ctrl_addr_rcvd() 1350 memcpy(&tlv[7], mesg->MPS_ctrl, ATM_ESA_LEN); /* MPC ctrl ATM addr */ in set_mpc_ctrl_addr_rcvd() 1355 for (i = 7; i < sizeof(tlv); i++) in set_mpc_ctrl_addr_rcvd() 1356 dprintk_cont(" %02x", tlv[i]); in set_mpc_ctrl_addr_rcvd() 1363 tlv, sizeof(tlv)); in set_mpc_ctrl_addr_rcvd()
|
D | lec_arpc.h | 57 struct tlv { struct
|
/linux-3.4.99/sound/pci/lola/ |
D | lola_mixer.c | 555 unsigned int size, unsigned int __user *tlv) in lola_analog_vol_tlv() argument 571 if (put_user(SNDRV_CTL_TLVT_DB_SCALE, tlv)) in lola_analog_vol_tlv() 573 if (put_user(2 * sizeof(unsigned int), tlv + 1)) in lola_analog_vol_tlv() 575 if (put_user(val1, tlv + 2)) in lola_analog_vol_tlv() 577 if (put_user(val2, tlv + 3)) in lola_analog_vol_tlv() 590 .tlv.c = lola_analog_vol_tlv, 736 .tlv.p = lola_src_gain_tlv, 823 .tlv.p = lola_dest_gain_tlv,
|
/linux-3.4.99/net/sched/ |
D | em_meta.c | 586 static int meta_var_dump(struct sk_buff *skb, struct meta_value *v, int tlv) in meta_var_dump() argument 589 NLA_PUT(skb, tlv, v->len, (void *) v->val); in meta_var_dump() 637 static int meta_int_dump(struct sk_buff *skb, struct meta_value *v, int tlv) in meta_int_dump() argument 640 NLA_PUT(skb, tlv, sizeof(unsigned long), &v->val); in meta_int_dump() 642 NLA_PUT_U32(skb, tlv, v->val); in meta_int_dump()
|
/linux-3.4.99/sound/usb/6fire/ |
D | control.c | 425 .tlv = { .p = tlv_output } 437 .tlv = { .p = tlv_output } 449 .tlv = { .p = tlv_output } 525 .tlv = { .p = tlv_input }
|
/linux-3.4.99/drivers/net/wireless/mwifiex/ |
D | sta_cmdresp.c | 285 u16 tlv, tlv_buf_len; in mwifiex_ret_tx_rate_cfg() local 295 tlv = (*tlv_buf); in mwifiex_ret_tx_rate_cfg() 296 tlv = tlv | (*(tlv_buf + 1) << 8); in mwifiex_ret_tx_rate_cfg() 298 switch (tlv) { in mwifiex_ret_tx_rate_cfg()
|