/net/irda/ |
D | irias_object.c | 100 irias_delete_value(attrib->value); in __irias_delete_attrib() 251 attrib->value->owner = owner; in irias_add_attrib() 289 if ( attrib->value->type != new_value->type) { in irias_object_change_attribute() 297 irias_delete_value(attrib->value); in irias_object_change_attribute() 300 attrib->value = new_value; in irias_object_change_attribute() 314 void irias_add_integer_attrib(struct ias_object *obj, char *name, int value, in irias_add_integer_attrib() argument 334 attrib->value = irias_new_integer_value(value); in irias_add_integer_attrib() 335 if (!attrib->name || !attrib->value) { in irias_add_integer_attrib() 338 if (attrib->value) in irias_add_integer_attrib() 339 irias_delete_value(attrib->value); in irias_add_integer_attrib() [all …]
|
D | qos.c | 165 static inline int value_index(__u32 value, __u32 *array, int size) in value_index() argument 170 if (array[i] == value) in value_index() 223 static inline int value_lower_bits(__u32 value, __u32 *array, int size, __u16 *field) in value_lower_bits() argument 234 if (array[i] >= value) in value_lower_bits() 249 static inline int value_highest_bit(__u32 value, __u32 *array, int size, __u16 *field) in value_highest_bit() argument 257 if (array[i] <= value) in value_highest_bit() 351 if (sysctl_min_tx_turn_time > qos->min_turn_time.value) { in irlap_adjust_qos_settings() 361 qos->min_turn_time.value = sysctl_min_tx_turn_time; in irlap_adjust_qos_settings() 368 if ((qos->baud_rate.value < 115200) && in irlap_adjust_qos_settings() 369 (qos->max_turn_time.value < 500)) in irlap_adjust_qos_settings() [all …]
|
D | irlap.c | 820 speed = qos->baud_rate.value; in irlap_wait_min_turn_around() 821 min_turn_time = qos->min_turn_time.value; in irlap_wait_min_turn_around() 976 self->qos_tx.baud_rate.value = 9600; in irlap_apply_default_connection_parameters() 977 self->qos_rx.baud_rate.value = 9600; in irlap_apply_default_connection_parameters() 978 self->qos_tx.max_turn_time.value = 0; in irlap_apply_default_connection_parameters() 979 self->qos_rx.max_turn_time.value = 0; in irlap_apply_default_connection_parameters() 980 self->qos_tx.min_turn_time.value = 0; in irlap_apply_default_connection_parameters() 981 self->qos_rx.min_turn_time.value = 0; in irlap_apply_default_connection_parameters() 982 self->qos_tx.data_size.value = 64; in irlap_apply_default_connection_parameters() 983 self->qos_rx.data_size.value = 64; in irlap_apply_default_connection_parameters() [all …]
|
D | iriap.c | 442 struct ias_value *value; in iriap_getvaluebyclass_confirm() local 477 value = irias_new_integer_value(tmp_cpu32); in iriap_getvaluebyclass_confirm() 480 IRDA_DEBUG(4, "%s(), lsap=%d\n", __func__, value->t.integer); in iriap_getvaluebyclass_confirm() 519 value = irias_new_string_value(fp+n); in iriap_getvaluebyclass_confirm() 526 value = irias_new_octseq_value(fp+n, value_len); in iriap_getvaluebyclass_confirm() 529 value = irias_new_missing_value(); in iriap_getvaluebyclass_confirm() 540 self->confirm(IAS_SUCCESS, obj_id, value, self->priv); in iriap_getvaluebyclass_confirm() 543 irias_delete_value(value); in iriap_getvaluebyclass_confirm() 556 struct ias_value *value) in iriap_getvaluebyclass_response() argument 568 IRDA_ASSERT(value != NULL, return;); in iriap_getvaluebyclass_response() [all …]
|
D | wrapper.c | 90 __u16 value; in async_wrap_skb() member 95 fcs.value = INIT_FCS; in async_wrap_skb() 143 fcs.value = irda_fcs(fcs.value, skb->data[i]); in async_wrap_skb() 147 fcs.value = ~fcs.value; in async_wrap_skb()
|
/net/sched/ |
D | em_meta.c | 77 unsigned long value; member 112 get_random_bytes(&dst->value, sizeof(dst->value)); in META_COLLECTOR() 125 dst->value = fixed_loadavg(avenrun[0]); in META_COLLECTOR() 130 dst->value = fixed_loadavg(avenrun[1]); in META_COLLECTOR() 135 dst->value = fixed_loadavg(avenrun[2]); in META_COLLECTOR() 147 dst->value = dev->ifindex; in int_dev() 156 dst->value = (unsigned long) dev->name; in var_dev() 183 dst->value = tag; in META_COLLECTOR() 194 dst->value = skb->priority; in META_COLLECTOR() 200 dst->value = skb->protocol; in META_COLLECTOR() [all …]
|
D | sch_dsmark.c | 42 u8 *value; member 134 p->value[*arg - 1] = nla_get_u8(tb[TCA_DSMARK_VALUE]); in dsmark_change() 153 p->value[arg - 1] = 0; in dsmark_delete() 170 if (p->mask[i] == 0xff && !p->value[i]) in dsmark_walk() 291 p->value[index]); in dsmark_dequeue() 295 p->value[index]); in dsmark_dequeue() 303 if (p->mask[index] != 0xff || p->value[index]) in dsmark_dequeue() 374 p->value = p->mask + indices; in dsmark_init() 375 memset(p->value, 0, indices); in dsmark_init() 431 nla_put_u8(skb, TCA_DSMARK_VALUE, p->value[cl - 1])) in dsmark_dump_class()
|
/net/irda/irlan/ |
D | irlan_client.c | 68 char *value, int val_len); 373 char *value; in irlan_client_parse_response() local 399 value = kmalloc(1016, GFP_ATOMIC); in irlan_client_parse_response() 400 if (!value) { in irlan_client_parse_response() 414 ret = irlan_extract_param(ptr, name, value, &val_len); in irlan_client_parse_response() 420 irlan_check_response_param(self, name, value, val_len); in irlan_client_parse_response() 424 kfree(value); in irlan_client_parse_response() 434 char *value, int val_len) in irlan_check_response_param() argument 447 if (strcmp(value, "802.3") == 0) in irlan_check_response_param() 454 if (strcmp(value, "DIRECTED") == 0) in irlan_check_response_param() [all …]
|
D | irlan_filter.c | 144 void irlan_check_command_param(struct irlan_cb *self, char *param, char *value) in irlan_check_command_param() argument 151 IRDA_DEBUG(4, "%s, %s\n", param, value); in irlan_check_command_param() 166 if (strcmp(value, "DIRECTED") == 0) { in irlan_check_command_param() 170 if (strcmp(value, "MULTICAST") == 0) { in irlan_check_command_param() 174 if (strcmp(value, "BROADCAST") == 0) { in irlan_check_command_param() 183 if (strcmp(value, "ALL") == 0) { in irlan_check_command_param() 187 if (strcmp(value, "FILTER") == 0) { in irlan_check_command_param() 191 if (strcmp(value, "NONE") == 0) { in irlan_check_command_param() 200 if (strcmp(value, "DYNAMIC") == 0) { in irlan_check_command_param() 204 if (strcmp(value, "GET") == 0) { in irlan_check_command_param()
|
D | irlan_provider.c | 231 char *value; in irlan_provider_parse_command() local 249 value = kmalloc(1016, GFP_ATOMIC); in irlan_provider_parse_command() 250 if (!value) { in irlan_provider_parse_command() 264 ret = irlan_extract_param(ptr, name, value, &val_len); in irlan_provider_parse_command() 271 irlan_check_command_param(self, name, value); in irlan_provider_parse_command() 275 kfree(value); in irlan_provider_parse_command()
|
/net/dccp/ |
D | options.c | 28 u64 value = 0; in dccp_decode_value_var() local 31 value += ((u64)*bf++) << 40; in dccp_decode_value_var() 33 value += ((u64)*bf++) << 32; in dccp_decode_value_var() 35 value += ((u64)*bf++) << 24; in dccp_decode_value_var() 37 value += ((u64)*bf++) << 16; in dccp_decode_value_var() 39 value += ((u64)*bf++) << 8; in dccp_decode_value_var() 41 value += *bf; in dccp_decode_value_var() 43 return value; in dccp_decode_value_var() 63 unsigned char *uninitialized_var(value); in dccp_parse_options() 75 value = NULL; in dccp_parse_options() [all …]
|
/net/tipc/ |
D | config.c | 75 static struct sk_buff *tipc_cfg_reply_unsigned_type(u16 tlv_type, u32 value) in tipc_cfg_reply_unsigned_type() argument 80 buf = tipc_cfg_reply_alloc(TLV_SPACE(sizeof(value))); in tipc_cfg_reply_unsigned_type() 82 value_net = htonl(value); in tipc_cfg_reply_unsigned_type() 89 static struct sk_buff *tipc_cfg_reply_unsigned(u32 value) in tipc_cfg_reply_unsigned() argument 91 return tipc_cfg_reply_unsigned_type(TIPC_TLV_UNSIGNED, value); in tipc_cfg_reply_unsigned() 112 u32 value; in tipc_show_stats() local 117 value = ntohl(*(u32 *)TLV_DATA(req_tlv_area)); in tipc_show_stats() 118 if (value != 0) in tipc_show_stats() 188 u32 value; in cfg_set_max_ports() local 192 value = ntohl(*(__be32 *)TLV_DATA(req_tlv_area)); in cfg_set_max_ports() [all …]
|
D | ib_media.c | 52 sprintf(str_buf, "%20phC", a->value); in tipc_ib_addr2str() 61 memcpy(msg, addr->value, INFINIBAND_ALEN); in tipc_ib_addr2msg() 71 memcpy(addr->value, msg, INFINIBAND_ALEN); in tipc_ib_raw2addr() 73 addr->broadcast = !memcmp(msg, b->bcast_addr.value, in tipc_ib_raw2addr()
|
D | eth_media.c | 49 sprintf(strbuf, "%pM", addr->value); in tipc_eth_addr2str() 58 memcpy(msg + ETH_ADDR_OFFSET, addr->value, ETH_ALEN); in tipc_eth_addr2msg() 70 ether_addr_copy(addr->value, msg); in tipc_eth_raw2addr() 72 addr->broadcast = !memcmp(addr->value, bcast_mac, ETH_ALEN); in tipc_eth_raw2addr()
|
/net/core/ |
D | pktgen.c | 742 int value; in hex32_arg() local 747 value = hex_to_bin(c); in hex32_arg() 748 if (value >= 0) in hex32_arg() 749 *num |= value; in hex32_arg() 860 unsigned long value = 0; in pktgen_if_write() local 909 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write() 914 if (value < 14 + 20 + 8) in pktgen_if_write() 915 value = 14 + 20 + 8; in pktgen_if_write() 916 if (value != pkt_dev->min_pkt_size) { in pktgen_if_write() 917 pkt_dev->min_pkt_size = value; in pktgen_if_write() [all …]
|
/net/wireless/ |
D | wext-compat.c | 295 else if (rts->value < 0) in cfg80211_wext_siwrts() 298 wdev->wiphy->rts_threshold = rts->value; in cfg80211_wext_siwrts() 314 rts->value = wdev->wiphy->rts_threshold; in cfg80211_wext_giwrts() 315 rts->disabled = rts->value == (u32) -1; in cfg80211_wext_giwrts() 333 else if (frag->value < 256) in cfg80211_wext_siwfrag() 337 wdev->wiphy->frag_threshold = frag->value & ~0x1; in cfg80211_wext_siwfrag() 354 frag->value = wdev->wiphy->frag_threshold; in cfg80211_wext_giwfrag() 355 frag->disabled = frag->value == (u32) -1; in cfg80211_wext_giwfrag() 373 if (retry->disabled || retry->value < 1 || retry->value > 255 || in cfg80211_wext_siwretry() 378 wdev->wiphy->retry_long = retry->value; in cfg80211_wext_siwretry() [all …]
|
/net/sunrpc/ |
D | sysctl.c | 81 unsigned int value; in proc_dodebug() local 106 for (s = tmpbuf, value = 0; '0' <= *s && *s <= '9'; s++, left--) in proc_dodebug() 107 value = 10 * value + (*s - '0'); in proc_dodebug() 112 *(unsigned int *) table->data = value; in proc_dodebug()
|
/net/dcb/ |
D | dcbnl.c | 237 u8 value; in dcbnl_getpfccfg() local 266 &value); in dcbnl_getpfccfg() 267 ret = nla_put_u8(skb, i, value); in dcbnl_getpfccfg() 296 u8 value; in dcbnl_getcap() local 323 if (!netdev->dcbnl_ops->getcap(netdev, i, &value)) { in dcbnl_getcap() 324 ret = nla_put_u8(skb, i, value); in dcbnl_getcap() 340 u8 value; in dcbnl_getnumtcs() local 367 ret = netdev->dcbnl_ops->getnumtcs(netdev, i, &value); in dcbnl_getnumtcs() 369 ret = nla_put_u8(skb, i, value); in dcbnl_getnumtcs() 387 u8 value; in dcbnl_setnumtcs() local [all …]
|
/net/802/ |
D | mrp.c | 218 static void mrp_attrvalue_inc(void *value, u8 len) in mrp_attrvalue_inc() argument 220 u8 *v = (u8 *)value; in mrp_attrvalue_inc() 230 const void *value, u8 len, u8 type) in mrp_attr_cmp() argument 236 return memcmp(attr->value, value, len); in mrp_attr_cmp() 240 const void *value, u8 len, u8 type) in mrp_attr_lookup() argument 248 d = mrp_attr_cmp(attr, value, len, type); in mrp_attr_lookup() 260 const void *value, u8 len, u8 type) in mrp_attr_create() argument 269 d = mrp_attr_cmp(attr, value, len, type); in mrp_attr_create() 285 memcpy(attr->value, value, len); in mrp_attr_create() 424 memcmp(mrp_cb(app->pdu)->attrvalue, attr->value, attr->len)) { in mrp_pdu_append_vecattr_event() [all …]
|
/net/netfilter/ipset/ |
D | ip_set_hash_gen.h | 67 void *value; /* the array of the values */ member 135 memcpy(tmp, n->value, n->size * dsize); in hbucket_elem_add() 136 kfree(n->value); in hbucket_elem_add() 138 n->value = tmp; in hbucket_elem_add() 359 ((struct mtype_elem *)((n)->value + ((i) * (dsize)))) 387 kfree(n->value); in mtype_flush() 409 kfree(n->value); in mtype_ahash_destroy() 510 memcpy(tmp, n->value, n->size * dsize); in mtype_expire() 511 kfree(n->value); in mtype_expire() 512 n->value = tmp; in mtype_expire() [all …]
|
D | ip_set_bitmap_gen.h | 116 mtype_test(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_test() argument 120 const struct mtype_adt_elem *e = value; in mtype_test() 137 mtype_add(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_add() argument 141 const struct mtype_adt_elem *e = value; in mtype_add() 172 mtype_del(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_del() argument 176 const struct mtype_adt_elem *e = value; in mtype_del()
|
/net/sunrpc/auth_gss/ |
D | gss_rpc_xdr.c | 116 err = gssx_enc_buffer(xdr, &opt->value); in gssx_enc_option() 128 err = gssx_dec_buffer(xdr, &opt->value); in gssx_dec_option() 271 oa->data[0].value.data = (void *)creds; in gssx_dec_option_array() 272 oa->data[0].value.len = 0; in gssx_dec_option_array() 294 oa->data[0].value.len = 1; /* presence */ in gssx_dec_option_array() 375 opt.value.data = LUCID_VALUE; in gssx_enc_call_ctx() 376 opt.value.len = sizeof(LUCID_VALUE); in gssx_enc_call_ctx() 382 opt.value.data = CREDS_VALUE; in gssx_enc_call_ctx() 383 opt.value.len = sizeof(CREDS_VALUE); in gssx_enc_call_ctx() 400 err = gssx_dec_buffer(xdr, &attr->value); in gssx_dec_name_attr()
|
D | gss_rpc_upcall.c | 306 gssx_buffer *value = &res.options.data[0].value; in gssp_accept_sec_context_upcall() local 310 if (value->len == 1) { in gssp_accept_sec_context_upcall() 312 data->creds = *(struct svc_cred *)value->data; in gssp_accept_sec_context_upcall() 316 kfree(value->data); in gssp_accept_sec_context_upcall()
|
/net/irda/ircomm/ |
D | ircomm_tty_attach.c | 52 struct ias_value *value, void *priv); 434 struct ias_value *value, in ircomm_tty_getvalue_confirm() argument 454 switch (value->type) { in ircomm_tty_getvalue_confirm() 458 irda_param_extract_all(self, value->t.oct_seq, value->len, in ircomm_tty_getvalue_confirm() 467 value->t.integer); in ircomm_tty_getvalue_confirm() 469 if (value->t.integer == -1) { in ircomm_tty_getvalue_confirm() 472 self->dlsap_sel = value->t.integer; in ircomm_tty_getvalue_confirm() 483 irias_delete_value(value); in ircomm_tty_getvalue_confirm()
|
/net/irda/irnet/ |
D | irnet_irda.c | 175 struct ias_value * value) in irnet_ias_to_tsap() argument 206 if(value != NULL) in irnet_ias_to_tsap() 209 switch(value->type) in irnet_ias_to_tsap() 212 DEBUG(IRDA_SR_INFO, "result=%d\n", value->t.integer); in irnet_ias_to_tsap() 213 if(value->t.integer != -1) in irnet_ias_to_tsap() 215 dtsap_sel = value->t.integer; in irnet_ias_to_tsap() 221 DERROR(IRDA_SR_ERROR, "bad type ! (0x%X)\n", value->type); in irnet_ias_to_tsap() 226 irias_delete_value(value); in irnet_ias_to_tsap() 1484 struct ias_value *value, in irnet_getvalue_confirm() argument 1505 self->dtsap_sel = irnet_ias_to_tsap(self, result, value); in irnet_getvalue_confirm() [all …]
|