/drivers/hwmon/ |
D | w83795.c | 131 #define IN_LSB_REG(index, type) \ argument 132 (((type) == 1) ? W83795_REG_IN_HL_LSB[(index)] \ 133 : (W83795_REG_IN_HL_LSB[(index)] + 1)) 163 #define W83795_REG_FAN(index) (0x2E + (index)) argument 164 #define W83795_REG_FAN_MIN_HL(index) (0xB6 + (index)) argument 165 #define W83795_REG_FAN_MIN_LSB(index) (0xC4 + (index) / 2) argument 166 #define W83795_REG_FAN_MIN_LSB_SHIFT(index) \ argument 167 (((index) & 1) ? 4 : 0) 173 #define W83795_REG_ALARM(index) (0x41 + (index)) argument 175 #define W83795_REG_BEEP(index) (0x50 + (index)) argument [all …]
|
D | w83793.c | 129 #define W83793_REG_BEEP(index) (0x53 + (index)) argument 130 #define W83793_REG_ALARM(index) (0x4b + (index)) argument 159 #define W83793_REG_FAN(index) (0x23 + 2 * (index)) /* High byte */ argument 160 #define W83793_REG_FAN_MIN(index) (0x90 + 2 * (index)) /* High byte */ argument 172 #define W83793_REG_PWM(index, nr) (((nr) == 0 ? 0xb3 : \ argument 173 (nr) == 1 ? 0x220 : 0x218) + (index)) 176 #define W83793_REG_TEMP_FAN_MAP(index) (0x201 + (index)) argument 177 #define W83793_REG_TEMP_TOL(index) (0x208 + (index)) argument 178 #define W83793_REG_TEMP_CRUISE(index) (0x210 + (index)) argument 179 #define W83793_REG_PWM_STOP_TIME(index) (0x228 + (index)) argument [all …]
|
D | adm1025.c | 179 int index = to_sensor_dev_attr(attr)->index; in show_in() local 181 return sprintf(buf, "%u\n", IN_FROM_REG(data->in[index], in show_in() 182 in_scale[index])); in show_in() 188 int index = to_sensor_dev_attr(attr)->index; in show_in_min() local 190 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[index], in show_in_min() 191 in_scale[index])); in show_in_min() 197 int index = to_sensor_dev_attr(attr)->index; in show_in_max() local 199 return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[index], in show_in_max() 200 in_scale[index])); in show_in_max() 206 int index = to_sensor_dev_attr(attr)->index; in show_temp() local [all …]
|
/drivers/extcon/ |
D | extcon.c | 292 static bool is_extcon_attached(struct extcon_dev *edev, unsigned int index) in is_extcon_attached() argument 294 return !!(edev->state & BIT(index)); in is_extcon_attached() 297 static bool is_extcon_changed(struct extcon_dev *edev, int index, in is_extcon_changed() argument 300 int state = !!(edev->state & BIT(index)); in is_extcon_changed() 318 unsigned int id, int index,unsigned int prop) in is_extcon_property_capability() argument 328 cable = &edev->cables[index]; in is_extcon_property_capability() 350 static void init_property(struct extcon_dev *edev, unsigned int id, int index) in init_property() argument 353 struct extcon_cable *cable = &edev->cables[index]; in init_property() 431 int index; in extcon_sync() local 438 index = find_cable_index_by_id(edev, id); in extcon_sync() [all …]
|
/drivers/acpi/acpica/ |
D | dsmthdat.c | 56 u32 index, struct acpi_walk_state *walk_state); 60 u32 index, 67 u32 index, struct acpi_walk_state *walk_state); 140 u32 index; in acpi_ds_method_data_delete_all() local 146 for (index = 0; index < ACPI_METHOD_NUM_LOCALS; index++) { in acpi_ds_method_data_delete_all() 147 if (walk_state->local_variables[index].object) { in acpi_ds_method_data_delete_all() 149 index, in acpi_ds_method_data_delete_all() 150 walk_state->local_variables[index]. in acpi_ds_method_data_delete_all() 156 local_variables[index]); in acpi_ds_method_data_delete_all() 162 for (index = 0; index < ACPI_METHOD_NUM_ARGS; index++) { in acpi_ds_method_data_delete_all() [all …]
|
/drivers/staging/octeon/ |
D | ethernet-spi.c | 31 static void cvm_oct_spxx_int_pr(union cvmx_spxx_int_reg spx_int_reg, int index) in cvm_oct_spxx_int_pr() argument 34 pr_err("SPI%d: SRX Spi4 interface down\n", index); in cvm_oct_spxx_int_pr() 36 pr_err("SPI%d: SRX Spi4 Calendar table parity error\n", index); in cvm_oct_spxx_int_pr() 39 index); in cvm_oct_spxx_int_pr() 41 pr_err("SPI%d: SRX Spi4 DIP4 error\n", index); in cvm_oct_spxx_int_pr() 44 index); in cvm_oct_spxx_int_pr() 47 index); in cvm_oct_spxx_int_pr() 50 index); in cvm_oct_spxx_int_pr() 53 index); in cvm_oct_spxx_int_pr() 55 pr_err("SPI%d: SRX Spi4 async FIFO overflow\n", index); in cvm_oct_spxx_int_pr() [all …]
|
/drivers/gpu/drm/rcar-du/ |
D | rcar_du_plane.c | 111 if (plane->group->index != 0) in rcar_du_plane_hwalloc() 117 fixed = plane->group->index == 0 ? 1 : 0; in rcar_du_plane_hwalloc() 150 unsigned int index; in rcar_du_atomic_check_planes() local 156 plane->group->index, plane - plane->group->planes); in rcar_du_atomic_check_planes() 165 index = plane - plane->group->planes; in rcar_du_atomic_check_planes() 166 group_freed_planes[plane->group->index] |= 1 << index; in rcar_du_atomic_check_planes() 177 groups |= 1 << plane->group->index; in rcar_du_atomic_check_planes() 180 index = plane - plane->group->planes; in rcar_du_atomic_check_planes() 181 group_freed_planes[plane->group->index] |= 1 << index; in rcar_du_atomic_check_planes() 198 unsigned int index = ffs(groups) - 1; in rcar_du_atomic_check_planes() local [all …]
|
/drivers/platform/x86/ |
D | intel_telemetry_debugfs.c | 85 if (evtlog[index].telem_evtid == (EVTID)) { \ 94 if (evtlog[index].telem_evtid == (EVTID)) { \ 95 (CTR) = evtlog[index].telem_evtlog; \ 365 int index, idx, ret, err = 0; in telem_pss_states_show() local 381 for (index = 0; index < ret; index++) { in telem_pss_states_show() 383 name[index], evtlog[index].telem_evtlog); in telem_pss_states_show() 386 if (evtlog[index].telem_evtid == conf->pss_idle_id) { in telem_pss_states_show() 388 (evtlog[index].telem_evtlog >> in telem_pss_states_show() 396 pss_idle, evtlog[index].telem_evtlog, in telem_pss_states_show() 402 evtlog[index].telem_evtlog, in telem_pss_states_show() [all …]
|
D | intel_telemetry_pltdrv.c | 233 static inline int telemetry_plt_config_ioss_event(u32 evt_id, int index) in telemetry_plt_config_ioss_event() argument 240 write_buf |= index; in telemetry_plt_config_ioss_event() 249 static inline int telemetry_plt_config_pss_event(u32 evt_id, int index) in telemetry_plt_config_pss_event() argument 256 index, 0, &write_buf, NULL); in telemetry_plt_config_pss_event() 265 int ret, index, idx; in telemetry_setup_iossevtconfig() local 342 for (index = 0; index < num_ioss_evts; index++) { in telemetry_setup_iossevtconfig() 343 telm_conf->ioss_config.telem_evts[index].evt_id = in telemetry_setup_iossevtconfig() 344 ioss_evtmap[index]; in telemetry_setup_iossevtconfig() 347 telm_conf->ioss_config.telem_evts[index].evt_id, in telemetry_setup_iossevtconfig() 348 index)) { in telemetry_setup_iossevtconfig() [all …]
|
/drivers/cpufreq/ |
D | blackfin-cpufreq.c | 63 int index; in bfin_init_tables() local 80 for (index = 0; (cclk >> index) >= min_cclk && csel <= 3 && index < 3; index++, csel++) { in bfin_init_tables() 81 bfin_freq_table[index].frequency = cclk >> index; in bfin_init_tables() 83 dpm_state_table[index].csel = csel << 4; /* Shift now into PLL_DIV bitpos */ in bfin_init_tables() 85 dpm_state_table[index].csel = csel; in bfin_init_tables() 87 dpm_state_table[index].tscale = (TIME_SCALE >> index) - 1; in bfin_init_tables() 90 bfin_freq_table[index].frequency, in bfin_init_tables() 91 dpm_state_table[index].csel, in bfin_init_tables() 92 dpm_state_table[index].tscale); in bfin_init_tables() 100 unsigned int index = *(unsigned int *)info; in bfin_adjust_core_timer() local [all …]
|
/drivers/staging/wilc1000/ |
D | coreconfigurator.c | 112 u32 index = MAC_HDR_LEN; in get_beacon_timestamp_lo() local 114 time_stamp |= data[index++]; in get_beacon_timestamp_lo() 115 time_stamp |= (data[index++] << 8); in get_beacon_timestamp_lo() 116 time_stamp |= (data[index++] << 16); in get_beacon_timestamp_lo() 117 time_stamp |= (data[index] << 24); in get_beacon_timestamp_lo() 125 u32 index = (MAC_HDR_LEN + 4); in get_beacon_timestamp_hi() local 127 time_stamp |= data[index++]; in get_beacon_timestamp_hi() 128 time_stamp |= (data[index++] << 8); in get_beacon_timestamp_hi() 129 time_stamp |= (data[index++] << 16); in get_beacon_timestamp_hi() 130 time_stamp |= (data[index] << 24); in get_beacon_timestamp_hi() [all …]
|
/drivers/scsi/ |
D | nsp32_io.h | 13 unsigned int index, in nsp32_write1() argument 16 outb(val, (base + index)); in nsp32_write1() 20 unsigned int index) in nsp32_read1() argument 22 return inb(base + index); in nsp32_read1() 26 unsigned int index, in nsp32_write2() argument 29 outw(val, (base + index)); in nsp32_write2() 33 unsigned int index) in nsp32_read2() argument 35 return inw(base + index); in nsp32_read2() 39 unsigned int index, in nsp32_write4() argument 42 outl(val, (base + index)); in nsp32_write4() [all …]
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | item.h | 58 __mlxsw_item_offset(struct mlxsw_item *item, unsigned short index, in __mlxsw_item_offset() argument 61 BUG_ON(index && !item->step); in __mlxsw_item_offset() 71 return ((item->offset + item->step * index + item->in_step_offset) / in __mlxsw_item_offset() 76 unsigned short index) in __mlxsw_item_get16() argument 78 unsigned int offset = __mlxsw_item_offset(item, index, sizeof(u16)); in __mlxsw_item_get16() 91 unsigned short index, u16 val) in __mlxsw_item_set16() argument 93 unsigned int offset = __mlxsw_item_offset(item, index, in __mlxsw_item_set16() 109 unsigned short index) in __mlxsw_item_get32() argument 111 unsigned int offset = __mlxsw_item_offset(item, index, sizeof(u32)); in __mlxsw_item_get32() 124 unsigned short index, u32 val) in __mlxsw_item_set32() argument [all …]
|
/drivers/gpu/drm/fsl-dcu/ |
D | fsl_dcu_drm_plane.c | 29 unsigned int index; in fsl_dcu_drm_plane_index() local 31 index = drm_plane_index(plane); in fsl_dcu_drm_plane_index() 32 if (index < total_layer) in fsl_dcu_drm_plane_index() 33 return total_layer - index - 1; in fsl_dcu_drm_plane_index() 68 int index; in fsl_dcu_drm_plane_atomic_disable() local 70 index = fsl_dcu_drm_plane_index(plane); in fsl_dcu_drm_plane_atomic_disable() 71 if (index < 0) in fsl_dcu_drm_plane_atomic_disable() 74 regmap_read(fsl_dev->regmap, DCU_CTRLDESCLN(index, 4), &value); in fsl_dcu_drm_plane_atomic_disable() 76 regmap_write(fsl_dev->regmap, DCU_CTRLDESCLN(index, 4), value); in fsl_dcu_drm_plane_atomic_disable() 88 int index; in fsl_dcu_drm_plane_atomic_update() local [all …]
|
/drivers/gpio/ |
D | gpio-xilinx.c | 118 int index = xgpio_index(chip, gpio); in xgpio_set() local 121 spin_lock_irqsave(&chip->gpio_lock[index], flags); in xgpio_set() 125 chip->gpio_state[index] |= BIT(offset); in xgpio_set() 127 chip->gpio_state[index] &= ~BIT(offset); in xgpio_set() 130 xgpio_regoffset(chip, gpio), chip->gpio_state[index]); in xgpio_set() 132 spin_unlock_irqrestore(&chip->gpio_lock[index], flags); in xgpio_set() 150 int index = xgpio_index(chip, 0); in xgpio_set_multiple() local 153 spin_lock_irqsave(&chip->gpio_lock[index], flags); in xgpio_set_multiple() 159 if (index != xgpio_index(chip, i)) { in xgpio_set_multiple() 162 chip->gpio_state[index]); in xgpio_set_multiple() [all …]
|
/drivers/media/pci/smipcie/ |
D | smipcie-ir.c | 54 u8 index, current_bit, bit_count; in smi_decode_rc5() local 61 for (index = 0; index < size; index++) { in smi_decode_rc5() 63 current_bit = (pData[index] & 0x80) ? 1 : 0; in smi_decode_rc5() 64 bit_count = pData[index] & 0x7f; in smi_decode_rc5() 94 for (index = 0; index < (BITS_PER_COMMAND*GROUPS_PER_BIT); in smi_decode_rc5() 95 index = index + 2) { in smi_decode_rc5() 96 if ((group_array[index] == 1) && in smi_decode_rc5() 97 (group_array[index+1] == 0)) { in smi_decode_rc5() 99 (index/2) - 1)); in smi_decode_rc5() 100 } else if ((group_array[index] == 0) && in smi_decode_rc5() [all …]
|
/drivers/staging/xgifb/ |
D | vb_util.h | 3 static inline void xgifb_reg_set(unsigned long port, u8 index, u8 data) in xgifb_reg_set() argument 5 outb(index, port); in xgifb_reg_set() 9 static inline u8 xgifb_reg_get(unsigned long port, u8 index) in xgifb_reg_get() argument 11 outb(index, port); in xgifb_reg_get() 15 static inline void xgifb_reg_and_or(unsigned long port, u8 index, in xgifb_reg_and_or() argument 20 temp = xgifb_reg_get(port, index); in xgifb_reg_and_or() 22 xgifb_reg_set(port, index, temp); in xgifb_reg_and_or() 25 static inline void xgifb_reg_and(unsigned long port, u8 index, in xgifb_reg_and() argument 30 temp = xgifb_reg_get(port, index); in xgifb_reg_and() 32 xgifb_reg_set(port, index, temp); in xgifb_reg_and() [all …]
|
/drivers/infiniband/hw/mthca/ |
D | mthca_mcg.c | 65 u16 *hash, int *prev, int *index) in find_mgm() argument 88 *index = *hash; in find_mgm() 92 err = mthca_READ_MGM(dev, *index, mgm_mailbox); in find_mgm() 99 if (*index != *hash) { in find_mgm() 109 *prev = *index; in find_mgm() 110 *index = be32_to_cpu(mgm->next_gid_index) >> 6; in find_mgm() 111 } while (*index); in find_mgm() 113 *index = -1; in find_mgm() 126 int index, prev; in mthca_multicast_attach() local 138 err = find_mgm(dev, gid->raw, mailbox, &hash, &prev, &index); in mthca_multicast_attach() [all …]
|
/drivers/clk/sunxi/ |
D | clk-sun8i-bus-gates.c | 42 int index; in sun8i_h3_bus_gates_init() local 69 of_property_for_each_u32(node, "clock-indices", prop, p, index) { in sun8i_h3_bus_gates_init() 73 if (index == 17 || (index >= 29 && index <= 31)) in sun8i_h3_bus_gates_init() 75 else if (index <= 63 || index >= 128) in sun8i_h3_bus_gates_init() 77 else if (index >= 64 && index <= 95) in sun8i_h3_bus_gates_init() 79 else if (index >= 96 && index <= 127) in sun8i_h3_bus_gates_init() 82 clk_reg = reg + 4 * (index / 32); in sun8i_h3_bus_gates_init() 83 clk_bit = index % 32; in sun8i_h3_bus_gates_init() 85 clk_data->clks[index] = clk_register_gate(NULL, clk_name, in sun8i_h3_bus_gates_init() 91 if (IS_ERR(clk_data->clks[index])) { in sun8i_h3_bus_gates_init()
|
/drivers/media/usb/dvb-usb/ |
D | dvb-usb-remote.c | 16 unsigned int index; in legacy_dvb_usb_get_keymap_index() local 20 index = ke->index; in legacy_dvb_usb_get_keymap_index() 26 for (index = 0; index < keymap_size; index++) in legacy_dvb_usb_get_keymap_index() 27 if (keymap[index].scancode == scancode) in legacy_dvb_usb_get_keymap_index() 31 if (index >= keymap_size) { in legacy_dvb_usb_get_keymap_index() 32 for (index = 0; index < keymap_size; index++) { in legacy_dvb_usb_get_keymap_index() 33 if (keymap[index].keycode == KEY_RESERVED || in legacy_dvb_usb_get_keymap_index() 34 keymap[index].keycode == KEY_UNKNOWN) { in legacy_dvb_usb_get_keymap_index() 41 return index; in legacy_dvb_usb_get_keymap_index() 50 unsigned int index; in legacy_dvb_usb_getkeycode() local [all …]
|
D | az6027.c | 302 u16 value, u16 index, u8 *b, int blen) in az6027_usb_in_op() argument 313 index, in az6027_usb_in_op() 324 deb_xfer("in: req. %02x, val: %04x, ind: %04x, buffer: ", req, value, index); in az6027_usb_in_op() 334 u16 index, in az6027_usb_out_op() argument 340 deb_xfer("out: req. %02x, val: %04x, ind: %04x, buffer: ", req, value, index); in az6027_usb_out_op() 351 index, in az6027_usb_out_op() 371 u16 index; in az6027_streaming_ctrl() local 378 index = 0; in az6027_streaming_ctrl() 381 ret = az6027_usb_out_op(adap->dev, req, value, index, NULL, blen); in az6027_streaming_ctrl() 418 u16 index; in az6027_ci_read_attribute_mem() local [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | vga.c | 69 nvkm_rdvgas(struct nvkm_device *device, int head, u8 index) in nvkm_rdvgas() argument 71 nvkm_wrport(device, head, 0x03c4, index); in nvkm_rdvgas() 76 nvkm_wrvgas(struct nvkm_device *device, int head, u8 index, u8 value) in nvkm_wrvgas() argument 78 nvkm_wrport(device, head, 0x03c4, index); in nvkm_wrvgas() 83 nvkm_rdvgag(struct nvkm_device *device, int head, u8 index) in nvkm_rdvgag() argument 85 nvkm_wrport(device, head, 0x03ce, index); in nvkm_rdvgag() 90 nvkm_wrvgag(struct nvkm_device *device, int head, u8 index, u8 value) in nvkm_wrvgag() argument 92 nvkm_wrport(device, head, 0x03ce, index); in nvkm_wrvgag() 97 nvkm_rdvgac(struct nvkm_device *device, int head, u8 index) in nvkm_rdvgac() argument 99 nvkm_wrport(device, head, 0x03d4, index); in nvkm_rdvgac() [all …]
|
/drivers/watchdog/ |
D | cpwd.c | 203 static void cpwd_toggleintr(struct cpwd *p, int index, int enable) in cpwd_toggleintr() argument 207 (index == -1) ? in cpwd_toggleintr() 209 (p->devs[index].intr_mask); in cpwd_toggleintr() 222 static void cpwd_resetbrokentimer(struct cpwd *p, int index) in cpwd_resetbrokentimer() argument 224 cpwd_toggleintr(p, index, WD_INTR_ON); in cpwd_resetbrokentimer() 225 cpwd_writew(WD_BLIMIT, p->devs[index].regs + WD_LIMIT); in cpwd_resetbrokentimer() 261 static void cpwd_pingtimer(struct cpwd *p, int index) in cpwd_pingtimer() argument 263 if (cpwd_readb(p->devs[index].regs + WD_STATUS) & WD_S_RUNNING) in cpwd_pingtimer() 264 cpwd_readw(p->devs[index].regs + WD_DCNTR); in cpwd_pingtimer() 271 static void cpwd_stoptimer(struct cpwd *p, int index) in cpwd_stoptimer() argument [all …]
|
/drivers/gpu/drm/i915/ |
D | intel_mocs.c | 207 static i915_reg_t mocs_register(enum intel_engine_id engine_id, int index) in mocs_register() argument 211 return GEN9_GFX_MOCS(index); in mocs_register() 213 return GEN9_MFX0_MOCS(index); in mocs_register() 215 return GEN9_BLT_MOCS(index); in mocs_register() 217 return GEN9_VEBOX_MOCS(index); in mocs_register() 219 return GEN9_MFX1_MOCS(index); in mocs_register() 239 unsigned int index; in intel_mocs_init_engine() local 247 for (index = 0; index < table.size; index++) in intel_mocs_init_engine() 248 I915_WRITE(mocs_register(engine->id, index), in intel_mocs_init_engine() 249 table.table[index].control_value); in intel_mocs_init_engine() [all …]
|
/drivers/vfio/platform/ |
D | vfio_platform_irq.c | 50 unsigned index, unsigned start, in vfio_platform_set_irq_mask() argument 57 if (!(vdev->irqs[index].flags & VFIO_IRQ_INFO_MASKABLE)) in vfio_platform_set_irq_mask() 64 return vfio_virqfd_enable((void *) &vdev->irqs[index], in vfio_platform_set_irq_mask() 67 &vdev->irqs[index].mask, fd); in vfio_platform_set_irq_mask() 69 vfio_virqfd_disable(&vdev->irqs[index].mask); in vfio_platform_set_irq_mask() 74 vfio_platform_mask(&vdev->irqs[index]); in vfio_platform_set_irq_mask() 80 vfio_platform_mask(&vdev->irqs[index]); in vfio_platform_set_irq_mask() 110 unsigned index, unsigned start, in vfio_platform_set_irq_unmask() argument 117 if (!(vdev->irqs[index].flags & VFIO_IRQ_INFO_MASKABLE)) in vfio_platform_set_irq_unmask() 124 return vfio_virqfd_enable((void *) &vdev->irqs[index], in vfio_platform_set_irq_unmask() [all …]
|