Lines Matching refs:infobuf
863 struct ndis_config_param *infobuf; in rndis_set_config_parameter() local
876 info_len = sizeof(*infobuf) + param_len + value_len; in rndis_set_config_parameter()
881 infobuf = kmalloc(info_len, GFP_KERNEL); in rndis_set_config_parameter()
882 if (!infobuf) in rndis_set_config_parameter()
888 memset(infobuf, 0xCC, info_len + 12); in rndis_set_config_parameter()
898 infobuf->name_offs = cpu_to_le32(sizeof(*infobuf)); in rndis_set_config_parameter()
899 infobuf->name_length = cpu_to_le32(param_len); in rndis_set_config_parameter()
900 infobuf->type = cpu_to_le32(value_type); in rndis_set_config_parameter()
901 infobuf->value_offs = cpu_to_le32(sizeof(*infobuf) + param_len); in rndis_set_config_parameter()
902 infobuf->value_length = cpu_to_le32(value_len); in rndis_set_config_parameter()
905 unibuf = (void *)infobuf + sizeof(*infobuf); in rndis_set_config_parameter()
910 unibuf = (void *)infobuf + sizeof(*infobuf) + param_len; in rndis_set_config_parameter()
914 dst_value = (void *)infobuf + sizeof(*infobuf) + param_len; in rndis_set_config_parameter()
921 u32 *tmp = (u32 *)((u8 *)infobuf + i); in rndis_set_config_parameter()
930 infobuf, info_len); in rndis_set_config_parameter()
935 kfree(infobuf); in rndis_set_config_parameter()