/net/irda/ |
D | irias_object.c | 98 irias_delete_value(attrib->value); in __irias_delete_attrib() 249 attrib->value->owner = owner; in irias_add_attrib() 287 if ( attrib->value->type != new_value->type) { in irias_object_change_attribute() 295 irias_delete_value(attrib->value); in irias_object_change_attribute() 298 attrib->value = new_value; in irias_object_change_attribute() 312 void irias_add_integer_attrib(struct ias_object *obj, char *name, int value, in irias_add_integer_attrib() argument 332 attrib->value = irias_new_integer_value(value); in irias_add_integer_attrib() 333 if (!attrib->name || !attrib->value) { in irias_add_integer_attrib() 336 if (attrib->value) in irias_add_integer_attrib() 337 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() 349 if (sysctl_min_tx_turn_time > qos->min_turn_time.value) { in irlap_adjust_qos_settings() 359 qos->min_turn_time.value = sysctl_min_tx_turn_time; in irlap_adjust_qos_settings() 366 if ((qos->baud_rate.value < 115200) && in irlap_adjust_qos_settings() 367 (qos->max_turn_time.value < 500)) in irlap_adjust_qos_settings() [all …]
|
D | irlap.c | 794 speed = qos->baud_rate.value; in irlap_wait_min_turn_around() 795 min_turn_time = qos->min_turn_time.value; in irlap_wait_min_turn_around() 948 self->qos_tx.baud_rate.value = 9600; in irlap_apply_default_connection_parameters() 949 self->qos_rx.baud_rate.value = 9600; in irlap_apply_default_connection_parameters() 950 self->qos_tx.max_turn_time.value = 0; in irlap_apply_default_connection_parameters() 951 self->qos_rx.max_turn_time.value = 0; in irlap_apply_default_connection_parameters() 952 self->qos_tx.min_turn_time.value = 0; in irlap_apply_default_connection_parameters() 953 self->qos_rx.min_turn_time.value = 0; in irlap_apply_default_connection_parameters() 954 self->qos_tx.data_size.value = 64; in irlap_apply_default_connection_parameters() 955 self->qos_rx.data_size.value = 64; in irlap_apply_default_connection_parameters() [all …]
|
D | iriap.c | 432 struct ias_value *value; in iriap_getvaluebyclass_confirm() local 467 value = irias_new_integer_value(tmp_cpu32); in iriap_getvaluebyclass_confirm() 470 pr_debug("%s(), lsap=%d\n", __func__, value->t.integer); in iriap_getvaluebyclass_confirm() 509 value = irias_new_string_value(fp+n); in iriap_getvaluebyclass_confirm() 516 value = irias_new_octseq_value(fp+n, value_len); in iriap_getvaluebyclass_confirm() 519 value = irias_new_missing_value(); in iriap_getvaluebyclass_confirm() 530 self->confirm(IAS_SUCCESS, obj_id, value, self->priv); in iriap_getvaluebyclass_confirm() 533 irias_delete_value(value); in iriap_getvaluebyclass_confirm() 546 struct ias_value *value) in iriap_getvaluebyclass_response() argument 556 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 = tc_skb_protocol(skb); in META_COLLECTOR() [all …]
|
D | sch_dsmark.c | 40 u8 value; member 136 p->mv[*arg - 1].value = nla_get_u8(tb[TCA_DSMARK_VALUE]); in dsmark_change() 155 p->mv[arg - 1].value = 0; in dsmark_delete() 172 if (p->mv[i].mask == 0xff && !p->mv[i].value) in dsmark_walk() 300 p->mv[index].value); in dsmark_dequeue() 304 p->mv[index].value); in dsmark_dequeue() 312 if (p->mv[index].mask != 0xff || p->mv[index].value) in dsmark_dequeue() 367 p->mv[i].value = 0; in dsmark_init() 424 nla_put_u8(skb, TCA_DSMARK_VALUE, p->mv[cl - 1].value)) in dsmark_dump_class()
|
/net/irda/irlan/ |
D | irlan_client.c | 68 char *value, int val_len); 359 char *value; in irlan_client_parse_response() local 385 value = kmalloc(1016, GFP_ATOMIC); in irlan_client_parse_response() 386 if (!value) { in irlan_client_parse_response() 400 ret = irlan_extract_param(ptr, name, value, &val_len); in irlan_client_parse_response() 406 irlan_check_response_param(self, name, value, val_len); in irlan_client_parse_response() 410 kfree(value); in irlan_client_parse_response() 420 char *value, int val_len) in irlan_check_response_param() argument 433 if (strcmp(value, "802.3") == 0) in irlan_check_response_param() 440 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 149 pr_debug("%s, %s\n", param, value); in irlan_check_command_param() 163 if (strcmp(value, "DIRECTED") == 0) { in irlan_check_command_param() 167 if (strcmp(value, "MULTICAST") == 0) { in irlan_check_command_param() 171 if (strcmp(value, "BROADCAST") == 0) { in irlan_check_command_param() 180 if (strcmp(value, "ALL") == 0) { in irlan_check_command_param() 184 if (strcmp(value, "FILTER") == 0) { in irlan_check_command_param() 188 if (strcmp(value, "NONE") == 0) { in irlan_check_command_param() 197 if (strcmp(value, "DYNAMIC") == 0) { in irlan_check_command_param() 201 if (strcmp(value, "GET") == 0) { in irlan_check_command_param()
|
D | irlan_provider.c | 227 char *value; in irlan_provider_parse_command() local 245 value = kmalloc(1016, GFP_ATOMIC); in irlan_provider_parse_command() 246 if (!value) { in irlan_provider_parse_command() 260 ret = irlan_extract_param(ptr, name, value, &val_len); in irlan_provider_parse_command() 267 irlan_check_command_param(self, name, value); in irlan_provider_parse_command() 271 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/core/ |
D | pktgen.c | 752 int value; in hex32_arg() local 757 value = hex_to_bin(c); in hex32_arg() 758 if (value >= 0) in hex32_arg() 759 *num |= value; in hex32_arg() 870 unsigned long value = 0; in pktgen_if_write() local 919 len = num_arg(&user_buffer[i], 10, &value); in pktgen_if_write() 924 if (value < 14 + 20 + 8) in pktgen_if_write() 925 value = 14 + 20 + 8; in pktgen_if_write() 926 if (value != pkt_dev->min_pkt_size) { in pktgen_if_write() 927 pkt_dev->min_pkt_size = value; in pktgen_if_write() [all …]
|
/net/wireless/ |
D | wext-compat.c | 260 else if (rts->value < 0) in cfg80211_wext_siwrts() 263 wdev->wiphy->rts_threshold = rts->value; in cfg80211_wext_siwrts() 279 rts->value = wdev->wiphy->rts_threshold; in cfg80211_wext_giwrts() 280 rts->disabled = rts->value == (u32) -1; in cfg80211_wext_giwrts() 298 else if (frag->value < 256) in cfg80211_wext_siwfrag() 302 wdev->wiphy->frag_threshold = frag->value & ~0x1; in cfg80211_wext_siwfrag() 319 frag->value = wdev->wiphy->frag_threshold; in cfg80211_wext_giwfrag() 320 frag->disabled = frag->value == (u32) -1; in cfg80211_wext_giwfrag() 338 if (retry->disabled || retry->value < 1 || retry->value > 255 || in cfg80211_wext_siwretry() 343 wdev->wiphy->retry_long = retry->value; in cfg80211_wext_siwretry() [all …]
|
/net/tipc/ |
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 | 47 sprintf(strbuf, "%pM", addr->value); in tipc_eth_addr2str() 56 memcpy(msg + TIPC_MEDIA_ADDR_OFFSET, addr->value, ETH_ALEN); in tipc_eth_addr2msg() 68 ether_addr_copy(addr->value, msg); in tipc_eth_raw2addr() 70 addr->broadcast = !memcmp(addr->value, bcast_mac, ETH_ALEN); in tipc_eth_raw2addr()
|
D | udp_media.c | 113 memcpy(addr->value, ua, sizeof(struct udp_media_addr)); in tipc_udp_media_addr_set() 122 struct udp_media_addr *ua = (struct udp_media_addr *)&a->value; in tipc_udp_addr2str() 151 memcpy(msg + TIPC_MEDIA_ADDR_OFFSET, a->value, in tipc_udp_addr2msg() 213 struct udp_media_addr *src = (struct udp_media_addr *)&b->addr.value; in tipc_udp_send_msg() 214 struct udp_media_addr *dst = (struct udp_media_addr *)&addr->value; in tipc_udp_send_msg() 309 dst = (struct udp_media_addr *)&b->bcast_addr.value; in tipc_udp_rcast_disc() 521 struct udp_media_addr *src = (struct udp_media_addr *)&b->addr.value; in tipc_udp_nl_add_bearer_data() 537 dst = (struct udp_media_addr *)&b->bcast_addr.value; in tipc_udp_nl_add_bearer_data() 618 dst = (struct udp_media_addr *)&b->bcast_addr.value; in tipc_udp_nl_bearer_add() 729 memcpy(&b->bcast_addr.value, &remote, sizeof(remote)); in tipc_udp_enable()
|
/net/dcb/ |
D | dcbnl.c | 236 u8 value; in dcbnl_getpfccfg() local 265 &value); in dcbnl_getpfccfg() 266 ret = nla_put_u8(skb, i, value); in dcbnl_getpfccfg() 295 u8 value; in dcbnl_getcap() local 322 if (!netdev->dcbnl_ops->getcap(netdev, i, &value)) { in dcbnl_getcap() 323 ret = nla_put_u8(skb, i, value); in dcbnl_getcap() 339 u8 value; in dcbnl_getnumtcs() local 366 ret = netdev->dcbnl_ops->getnumtcs(netdev, i, &value); in dcbnl_getnumtcs() 368 ret = nla_put_u8(skb, i, value); in dcbnl_getnumtcs() 386 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/ |
D | nft_meta.c | 236 u32 value = regs->data[meta->sreg]; in nft_meta_set_eval() local 240 skb->mark = value; in nft_meta_set_eval() 243 skb->priority = value; in nft_meta_set_eval() 246 if (skb->pkt_type != value && in nft_meta_set_eval() 247 skb_pkt_type_ok(value) && skb_pkt_type_ok(skb->pkt_type)) in nft_meta_set_eval() 248 skb->pkt_type = value; in nft_meta_set_eval() 251 skb->nf_trace = !!value; in nft_meta_set_eval()
|
/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() 272 oa->data[0].value.data = (void *)creds; in gssx_dec_option_array() 273 oa->data[0].value.len = 0; in gssx_dec_option_array() 295 oa->data[0].value.len = 1; /* presence */ in gssx_dec_option_array() 376 opt.value.data = LUCID_VALUE; in gssx_enc_call_ctx() 377 opt.value.len = sizeof(LUCID_VALUE); in gssx_enc_call_ctx() 383 opt.value.data = CREDS_VALUE; in gssx_enc_call_ctx() 384 opt.value.len = sizeof(CREDS_VALUE); in gssx_enc_call_ctx() 401 err = gssx_dec_buffer(xdr, &attr->value); in gssx_dec_name_attr()
|
D | gss_rpc_upcall.c | 308 gssx_buffer *value = &res.options.data[0].value; in gssp_accept_sec_context_upcall() local 312 if (value->len == 1) { in gssp_accept_sec_context_upcall() 314 data->creds = *(struct svc_cred *)value->data; in gssp_accept_sec_context_upcall() 318 kfree(value->data); in gssp_accept_sec_context_upcall()
|
/net/netfilter/ipset/ |
D | ip_set_bitmap_gen.h | 111 mtype_test(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_test() argument 115 const struct mtype_adt_elem *e = value; in mtype_test() 132 mtype_add(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_add() argument 136 const struct mtype_adt_elem *e = value; in mtype_add() 173 mtype_del(struct ip_set *set, void *value, const struct ip_set_ext *ext, in mtype_del() argument 177 const struct mtype_adt_elem *e = value; in mtype_del()
|
/net/irda/ircomm/ |
D | ircomm_tty_attach.c | 52 struct ias_value *value, void *priv); 422 struct ias_value *value, in ircomm_tty_getvalue_confirm() argument 440 switch (value->type) { in ircomm_tty_getvalue_confirm() 444 irda_param_extract_all(self, value->t.oct_seq, value->len, in ircomm_tty_getvalue_confirm() 453 value->t.integer); in ircomm_tty_getvalue_confirm() 455 if (value->t.integer == -1) { in ircomm_tty_getvalue_confirm() 458 self->dlsap_sel = value->t.integer; in ircomm_tty_getvalue_confirm() 469 irias_delete_value(value); in ircomm_tty_getvalue_confirm()
|
/net/sunrpc/ |
D | sysctl.c | 81 unsigned int value; in proc_dodebug() local 106 value = simple_strtol(tmpbuf, &s, 0); in proc_dodebug() 115 *(unsigned int *) table->data = value; in proc_dodebug()
|
/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 …]
|