Lines Matching defs:val
579 u32 val;
587 val = nla_get_u32(tb[QCA_WLAN_VENDOR_ATTR_TEST]);
588 wiphy_dbg(wiphy, "%s: test=%u\n", __func__, val);
604 nla_put_u32(skb, QCA_WLAN_VENDOR_ATTR_TEST, val + 1);
618 nla_put_u32(skb, QCA_WLAN_VENDOR_ATTR_TEST, val + 2);
1089 static int hwsim_fops_ps_read(void *dat, u64 *val)
1092 *val = data->ps;
1096 static int hwsim_fops_ps_write(void *dat, u64 val)
1101 if (val != PS_DISABLED && val != PS_ENABLED && val != PS_AUTO_POLL &&
1102 val != PS_MANUAL_POLL)
1105 if (val == PS_MANUAL_POLL) {
1116 data->ps = val;
1119 if (old_ps == PS_DISABLED && val != PS_DISABLED) {
1123 } else if (old_ps != PS_DISABLED && val == PS_DISABLED) {
1136 static int hwsim_write_simulate_radar(void *dat, u64 val)
1148 static int hwsim_fops_group_read(void *dat, u64 *val)
1151 *val = data->group;
1155 static int hwsim_fops_group_write(void *dat, u64 val)
1158 data->group = val;
1166 static int hwsim_fops_rx_rssi_read(void *dat, u64 *val)
1169 *val = data->rx_rssi;
1173 static int hwsim_fops_rx_rssi_write(void *dat, u64 val)
1176 int rssi = (int)val;