Home
last modified time | relevance | path

Searched refs:and_mask (Results 1 – 14 of 14) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Dsoc15.h41 u32 and_mask; member
67 #define SOC15_REG_GOLDEN_VALUE(ip, inst, reg, and_mask, or_mask) \ argument
68 { ip##_HWIP, inst, reg##_BASE_IDX, reg, and_mask, or_mask }
Dsoc15.c422 if (entry->and_mask == 0xffffffff) { in soc15_program_register_sequence()
426 tmp &= ~(entry->and_mask); in soc15_program_register_sequence()
427 tmp |= (entry->or_mask & entry->and_mask); in soc15_program_register_sequence()
Damdgpu_device.c540 u32 tmp, reg, and_mask, or_mask; in amdgpu_device_program_register_sequence() local
548 and_mask = registers[i + 1]; in amdgpu_device_program_register_sequence()
551 if (and_mask == 0xffffffff) { in amdgpu_device_program_register_sequence()
555 tmp &= ~and_mask; in amdgpu_device_program_register_sequence()
557 tmp |= (or_mask & and_mask); in amdgpu_device_program_register_sequence()
/Linux-v5.4/drivers/staging/comedi/drivers/
Ddt9812.c203 u8 and_mask; member
366 rmw->and_mask = 0xe0; in dt9812_configure_mux()
371 rmw->and_mask = 0xff; in dt9812_configure_mux()
387 rmw->and_mask = F020_MASK_ADC0CF_AMP0GN2 | in dt9812_configure_gain()
448 rmw[2].and_mask = 0xff; in dt9812_analog_in()
504 rmw[0].and_mask = 0xff; in dt9812_analog_out()
509 rmw[1].and_mask = 0xff; in dt9812_analog_out()
514 rmw[2].and_mask = 0xff; in dt9812_analog_out()
521 rmw[0].and_mask = 0xff; in dt9812_analog_out()
526 rmw[1].and_mask = 0xff; in dt9812_analog_out()
[all …]
/Linux-v5.4/drivers/media/pci/cx23885/
Dnetup-init.c90 static void i2c_av_and_or(struct i2c_adapter *i2c, u16 reg, unsigned and_mask, in i2c_av_and_or() argument
93 i2c_av_write(i2c, reg, (i2c_av_read(i2c, reg) & and_mask) | or_value); in i2c_av_and_or()
Dcx23888-ir.c154 u32 and_mask, u32 or_value) in cx23888_ir_and_or4() argument
156 cx_andor(addr, ~and_mask, or_value); in cx23888_ir_and_or4()
/Linux-v5.4/drivers/iio/adc/
Dmt6577_auxadc.c91 u32 or_mask, u32 and_mask) in mt6577_auxadc_mod_reg() argument
97 val &= ~and_mask; in mt6577_auxadc_mod_reg()
/Linux-v5.4/drivers/gpu/drm/radeon/
Dradeon_combios.c2892 uint32_t reg, val, and_mask, or_mask; in radeon_combios_external_tmds_setup() local
2918 and_mask = RBIOS32(index); in radeon_combios_external_tmds_setup()
2923 val = (val & and_mask) | or_mask; in radeon_combios_external_tmds_setup()
2972 and_mask = RBIOS32(index); in radeon_combios_external_tmds_setup()
2977 val = (val & and_mask) | or_mask; in radeon_combios_external_tmds_setup()
2987 and_mask = RBIOS32(index); in radeon_combios_external_tmds_setup()
2992 val = (val & and_mask) | or_mask; in radeon_combios_external_tmds_setup()
3023 uint32_t val, and_mask, or_mask; in combios_parse_mmio_table() local
3039 and_mask = RBIOS32(offset); in combios_parse_mmio_table()
3044 tmp &= and_mask; in combios_parse_mmio_table()
[all …]
Dradeon_device.c205 u32 tmp, reg, and_mask, or_mask; in radeon_program_register_sequence() local
213 and_mask = registers[i + 1]; in radeon_program_register_sequence()
216 if (and_mask == 0xffffffff) { in radeon_program_register_sequence()
220 tmp &= ~and_mask; in radeon_program_register_sequence()
/Linux-v5.4/drivers/media/i2c/cx25840/
Dcx25840-core.h161 int cx25840_and_or4(struct i2c_client *client, u16 addr, u32 and_mask,
Dcx25840-core.c150 int cx25840_and_or(struct i2c_client *client, u16 addr, unsigned int and_mask, in cx25840_and_or() argument
154 (cx25840_read(client, addr) & and_mask) | in cx25840_and_or()
158 int cx25840_and_or4(struct i2c_client *client, u16 addr, u32 and_mask, in cx25840_and_or4() argument
162 (cx25840_read4(client, addr) & and_mask) | in cx25840_and_or4()
/Linux-v5.4/drivers/media/pci/cx18/
Dcx18-av-core.c71 int cx18_av_and_or(struct cx18 *cx, u16 addr, unsigned and_mask, in cx18_av_and_or() argument
75 (cx18_av_read(cx, addr) & and_mask) | in cx18_av_and_or()
79 int cx18_av_and_or4(struct cx18 *cx, u16 addr, u32 and_mask, in cx18_av_and_or4() argument
83 (cx18_av_read4(cx, addr) & and_mask) | in cx18_av_and_or4()
/Linux-v5.4/drivers/media/usb/cpia2/
Dcpia2.h228 u8 and_mask; member
/Linux-v5.4/drivers/net/ethernet/natsemi/
Dns83820.c1674 u32 and_mask = 0xffffffff; local
1681 and_mask &= ~(RFCR_AAU | RFCR_AAM);
1686 and_mask &= ~RFCR_AAM;
1689 val = (readl(rfcr) & and_mask) | or_mask;