dell_smbios_get_buffer();
- dell_smbios_send_request(buffer, 17, 11);
+ dell_smbios_send_request(17, 11);
ret = buffer->output[0];
status = buffer->output[1];
dell_smbios_clear_buffer();
buffer->input[0] = 0x2;
- dell_smbios_send_request(buffer, 17, 11);
+ dell_smbios_send_request(17, 11);
ret = buffer->output[0];
hwswitch = buffer->output[1];
dell_smbios_clear_buffer();
buffer->input[0] = (1 | (radio<<8) | (disable << 16));
- dell_smbios_send_request(buffer, 17, 11);
+ dell_smbios_send_request(17, 11);
ret = buffer->output[0];
out:
int block = rfkill_blocked(rfkill);
dell_smbios_clear_buffer();
buffer->input[0] = (1 | (radio << 8) | (block << 16));
- dell_smbios_send_request(buffer, 17, 11);
+ dell_smbios_send_request(17, 11);
} else {
/* No hw-switch, sync BIOS state to sw_state */
rfkill_set_sw_state(rfkill, !!(status & BIT(radio + 16)));
dell_smbios_get_buffer();
- dell_smbios_send_request(buffer, 17, 11);
+ dell_smbios_send_request(17, 11);
ret = buffer->output[0];
status = buffer->output[1];
dell_smbios_clear_buffer();
buffer->input[0] = 0x2;
- dell_smbios_send_request(buffer, 17, 11);
+ dell_smbios_send_request(17, 11);
ret = buffer->output[0];
hwswitch = buffer->output[1];
dell_smbios_get_buffer();
- dell_smbios_send_request(buffer, 17, 11);
+ dell_smbios_send_request(17, 11);
ret = buffer->output[0];
status = buffer->output[1];
dell_smbios_clear_buffer();
buffer->input[0] = 0x2;
- dell_smbios_send_request(buffer, 17, 11);
+ dell_smbios_send_request(17, 11);
hwswitch_ret = buffer->output[0];
hwswitch_state = buffer->output[1];
dell_smbios_get_buffer();
- dell_smbios_send_request(buffer, 17, 11);
+ dell_smbios_send_request(17, 11);
ret = buffer->output[0];
status = buffer->output[1];
dell_smbios_clear_buffer();
buffer->input[0] = 0x2;
- dell_smbios_send_request(buffer, 17, 11);
+ dell_smbios_send_request(17, 11);
ret = buffer->output[0];
if (ret == 0 && (status & BIT(0)))
return 0;
dell_smbios_get_buffer();
- dell_smbios_send_request(buffer, 17, 11);
+ dell_smbios_send_request(17, 11);
ret = buffer->output[0];
status = buffer->output[1];
dell_smbios_release_buffer();
buffer->input[1] = bd->props.brightness;
if (power_supply_is_system_supplied() > 0)
- dell_smbios_send_request(buffer, 1, 2);
+ dell_smbios_send_request(1, 2);
else
- dell_smbios_send_request(buffer, 1, 1);
+ dell_smbios_send_request(1, 1);
ret = dell_smi_error(buffer->output[0]);
buffer->input[0] = token;
if (power_supply_is_system_supplied() > 0)
- dell_smbios_send_request(buffer, 0, 2);
+ dell_smbios_send_request(0, 2);
else
- dell_smbios_send_request(buffer, 0, 1);
+ dell_smbios_send_request(0, 1);
if (buffer->output[0])
ret = dell_smi_error(buffer->output[0]);
dell_smbios_get_buffer();
buffer->input[0] = 0x0;
- dell_smbios_send_request(buffer, 4, 11);
+ dell_smbios_send_request(4, 11);
ret = buffer->output[0];
if (ret) {
dell_smbios_get_buffer();
buffer->input[0] = 0x1;
- dell_smbios_send_request(buffer, 4, 11);
+ dell_smbios_send_request(4, 11);
ret = buffer->output[0];
if (ret) {
buffer->input[1] |= (state->timeout_unit & 0x3) << 30;
buffer->input[2] = state->als_setting & 0xFF;
buffer->input[2] |= (state->level & 0xFF) << 16;
- dell_smbios_send_request(buffer, 4, 11);
+ dell_smbios_send_request(4, 11);
ret = buffer->output[0];
dell_smbios_release_buffer();
dell_smbios_get_buffer();
buffer->input[0] = da_tokens[id].location;
buffer->input[1] = da_tokens[id].value;
- dell_smbios_send_request(buffer, 1, 0);
+ dell_smbios_send_request(1, 0);
ret = buffer->output[0];
dell_smbios_release_buffer();
dell_smbios_get_buffer();
buffer->input[0] = da_tokens[id].location;
- dell_smbios_send_request(buffer, 0, 0);
+ dell_smbios_send_request(0, 0);
ret = buffer->output[0];
val = buffer->output[1];
dell_smbios_release_buffer();
if (token != -1) {
dell_smbios_get_buffer();
buffer->input[0] = token;
- dell_smbios_send_request(buffer, 0, 2);
+ dell_smbios_send_request(0, 2);
if (buffer->output[0] == 0)
max_intensity = buffer->output[3];
dell_smbios_release_buffer();