/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/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/extcon/ |
D | extcon.c | 283 static bool is_extcon_attached(struct extcon_dev *edev, unsigned int index) in is_extcon_attached() argument 285 return !!(edev->state & BIT(index)); in is_extcon_attached() 288 static bool is_extcon_changed(struct extcon_dev *edev, int index, in is_extcon_changed() argument 291 int state = !!(edev->state & BIT(index)); in is_extcon_changed() 309 unsigned int id, int index,unsigned int prop) in is_extcon_property_capability() argument 319 cable = &edev->cables[index]; in is_extcon_property_capability() 341 static void init_property(struct extcon_dev *edev, unsigned int id, int index) in init_property() argument 344 struct extcon_cable *cable = &edev->cables[index]; in init_property() 424 int index; in extcon_sync() local 431 index = find_cable_index_by_id(edev, id); in extcon_sync() [all …]
|
/drivers/gpu/drm/rcar-du/ |
D | rcar_du_plane.c | 109 if (plane->group->index != 0) in rcar_du_plane_hwalloc() 115 fixed = plane->group->index == 0 ? 1 : 0; in rcar_du_plane_hwalloc() 151 unsigned int index; in rcar_du_atomic_check_planes() local 158 plane->group->index, plane - plane->group->planes); in rcar_du_atomic_check_planes() 168 index = plane - plane->group->planes; in rcar_du_atomic_check_planes() 169 group_freed_planes[plane->group->index] |= 1 << index; in rcar_du_atomic_check_planes() 181 groups |= 1 << plane->group->index; in rcar_du_atomic_check_planes() 184 index = plane - plane->group->planes; in rcar_du_atomic_check_planes() 185 group_freed_planes[plane->group->index] |= 1 << index; in rcar_du_atomic_check_planes() 203 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; \ 364 int index, idx, ret, err = 0; in telem_pss_states_show() local 380 for (index = 0; index < ret; index++) { in telem_pss_states_show() 382 name[index], evtlog[index].telem_evtlog); in telem_pss_states_show() 385 if (evtlog[index].telem_evtid == conf->pss_idle_id) { in telem_pss_states_show() 387 (evtlog[index].telem_evtlog >> in telem_pss_states_show() 395 pss_idle, evtlog[index].telem_evtlog, in telem_pss_states_show() 401 evtlog[index].telem_evtlog, in telem_pss_states_show() [all …]
|
D | intel_telemetry_pltdrv.c | 267 static inline int telemetry_plt_config_ioss_event(u32 evt_id, int index) in telemetry_plt_config_ioss_event() argument 274 write_buf |= index; in telemetry_plt_config_ioss_event() 283 static inline int telemetry_plt_config_pss_event(u32 evt_id, int index) in telemetry_plt_config_pss_event() argument 290 index, 0, &write_buf, NULL); in telemetry_plt_config_pss_event() 299 int ret, index, idx; in telemetry_setup_iossevtconfig() local 376 for (index = 0; index < num_ioss_evts; index++) { in telemetry_setup_iossevtconfig() 377 telm_conf->ioss_config.telem_evts[index].evt_id = in telemetry_setup_iossevtconfig() 378 ioss_evtmap[index]; in telemetry_setup_iossevtconfig() 381 telm_conf->ioss_config.telem_evts[index].evt_id, in telemetry_setup_iossevtconfig() 382 index)) { in telemetry_setup_iossevtconfig() [all …]
|
D | intel_pmc_core.c | 204 static void pmc_core_display_map(struct seq_file *s, int index, in pmc_core_display_map() argument 208 index, pf_map[index].name, in pmc_core_display_map() 209 pf_map[index].bit_mask & pf_reg ? "Off" : "On"); in pmc_core_display_map() 217 int index, iter; in pmc_core_ppfear_sts_show() local 221 for (index = 0; index < pmcdev->map->ppfear_buckets && in pmc_core_ppfear_sts_show() 222 index < PPFEAR_MAX_NUM_ENTRIES; index++, iter++) in pmc_core_ppfear_sts_show() 223 pf_regs[index] = pmc_core_reg_read_byte(pmcdev, iter); in pmc_core_ppfear_sts_show() 225 for (index = 0; map[index].name && in pmc_core_ppfear_sts_show() 226 index < pmcdev->map->ppfear_buckets * 8; index++) in pmc_core_ppfear_sts_show() 227 pmc_core_display_map(s, index, pf_regs[index / 8], map); in pmc_core_ppfear_sts_show() [all …]
|
/drivers/block/zram/ |
D | zram_drv.c | 54 static void zram_free_page(struct zram *zram, size_t index); 56 u32 index, int offset, struct bio *bio); 59 static int zram_slot_trylock(struct zram *zram, u32 index) in zram_slot_trylock() argument 61 return bit_spin_trylock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_trylock() 64 static void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock() argument 66 bit_spin_lock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_lock() 69 static void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock() argument 71 bit_spin_unlock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_unlock() 84 static unsigned long zram_get_handle(struct zram *zram, u32 index) in zram_get_handle() argument 86 return zram->table[index].handle; in zram_get_handle() [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/net/ethernet/mellanox/mlxsw/ |
D | item.h | 58 __mlxsw_item_offset(const 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() 77 unsigned short index) in __mlxsw_item_get8() argument 79 unsigned int offset = __mlxsw_item_offset(item, index, sizeof(u8)); in __mlxsw_item_get8() 92 unsigned short index, u8 val) in __mlxsw_item_set8() argument 94 unsigned int offset = __mlxsw_item_offset(item, index, in __mlxsw_item_set8() 111 unsigned short index) in __mlxsw_item_get16() argument 113 unsigned int offset = __mlxsw_item_offset(item, index, sizeof(u16)); in __mlxsw_item_get16() 126 unsigned short index, u16 val) in __mlxsw_item_set16() argument [all …]
|
/drivers/staging/wilc1000/ |
D | coreconfigurator.c | 113 u32 index = MAC_HDR_LEN; in get_beacon_timestamp_lo() local 115 time_stamp |= data[index++]; in get_beacon_timestamp_lo() 116 time_stamp |= (data[index++] << 8); in get_beacon_timestamp_lo() 117 time_stamp |= (data[index++] << 16); in get_beacon_timestamp_lo() 118 time_stamp |= (data[index] << 24); in get_beacon_timestamp_lo() 126 u32 index = (MAC_HDR_LEN + 4); in get_beacon_timestamp_hi() local 128 time_stamp |= data[index++]; in get_beacon_timestamp_hi() 129 time_stamp |= (data[index++] << 8); in get_beacon_timestamp_hi() 130 time_stamp |= (data[index++] << 16); in get_beacon_timestamp_hi() 131 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/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 | 4 static inline void xgifb_reg_set(unsigned long port, u8 index, u8 data) in xgifb_reg_set() argument 6 outb(index, port); in xgifb_reg_set() 10 static inline u8 xgifb_reg_get(unsigned long port, u8 index) in xgifb_reg_get() argument 12 outb(index, port); in xgifb_reg_get() 16 static inline void xgifb_reg_and_or(unsigned long port, u8 index, in xgifb_reg_and_or() argument 21 temp = xgifb_reg_get(port, index); in xgifb_reg_and_or() 23 xgifb_reg_set(port, index, temp); in xgifb_reg_and_or() 26 static inline void xgifb_reg_and(unsigned long port, u8 index, in xgifb_reg_and() argument 31 temp = xgifb_reg_get(port, index); in xgifb_reg_and() 33 xgifb_reg_set(port, index, temp); in xgifb_reg_and() [all …]
|
/drivers/pci/dwc/ |
D | pcie-designware.c | 95 static u32 dw_pcie_readl_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg) in dw_pcie_readl_ob_unroll() argument 97 u32 offset = PCIE_GET_ATU_OUTB_UNR_REG_OFFSET(index); in dw_pcie_readl_ob_unroll() 102 static void dw_pcie_writel_ob_unroll(struct dw_pcie *pci, u32 index, u32 reg, in dw_pcie_writel_ob_unroll() argument 105 u32 offset = PCIE_GET_ATU_OUTB_UNR_REG_OFFSET(index); in dw_pcie_writel_ob_unroll() 110 static void dw_pcie_prog_outbound_atu_unroll(struct dw_pcie *pci, int index, in dw_pcie_prog_outbound_atu_unroll() argument 116 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_LOWER_BASE, in dw_pcie_prog_outbound_atu_unroll() 118 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_UPPER_BASE, in dw_pcie_prog_outbound_atu_unroll() 120 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_LIMIT, in dw_pcie_prog_outbound_atu_unroll() 122 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_LOWER_TARGET, in dw_pcie_prog_outbound_atu_unroll() 124 dw_pcie_writel_ob_unroll(pci, index, PCIE_ATU_UNR_UPPER_TARGET, in dw_pcie_prog_outbound_atu_unroll() [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() 86 clk_reg = reg + 4 * (index / 32); in sun8i_h3_bus_gates_init() 87 clk_bit = index % 32; in sun8i_h3_bus_gates_init() 89 clk_data->clks[index] = clk_register_gate(NULL, clk_name, in sun8i_h3_bus_gates_init() 95 if (IS_ERR(clk_data->clks[index])) { in sun8i_h3_bus_gates_init()
|
/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/media/usb/dvb-usb/ |
D | dvb-usb-remote.c | 17 unsigned int index; in legacy_dvb_usb_get_keymap_index() local 21 index = ke->index; in legacy_dvb_usb_get_keymap_index() 27 for (index = 0; index < keymap_size; index++) in legacy_dvb_usb_get_keymap_index() 28 if (keymap[index].scancode == scancode) in legacy_dvb_usb_get_keymap_index() 32 if (index >= keymap_size) { in legacy_dvb_usb_get_keymap_index() 33 for (index = 0; index < keymap_size; index++) { in legacy_dvb_usb_get_keymap_index() 34 if (keymap[index].keycode == KEY_RESERVED || in legacy_dvb_usb_get_keymap_index() 35 keymap[index].keycode == KEY_UNKNOWN) { in legacy_dvb_usb_get_keymap_index() 42 return index; in legacy_dvb_usb_get_keymap_index() 51 unsigned int index; in legacy_dvb_usb_getkeycode() local [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | mpfs.c | 41 static int set_l2table_entry_cmd(struct mlx5_core_dev *dev, u32 index, u8 *mac) in set_l2table_entry_cmd() argument 48 MLX5_SET(set_l2_table_entry_in, in, table_index, index); in set_l2table_entry_cmd() 56 static int del_l2table_entry_cmd(struct mlx5_core_dev *dev, u32 index) in del_l2table_entry_cmd() argument 62 MLX5_SET(delete_l2_table_entry_in, in, table_index, index); in del_l2table_entry_cmd() 69 u32 index; /* index in HW l2 table */ member 138 u32 index; in mlx5_mpfs_add_mac() local 152 err = alloc_l2table_index(mpfs, &index); in mlx5_mpfs_add_mac() 158 free_l2table_index(mpfs, index); in mlx5_mpfs_add_mac() 163 l2addr->index = index; in mlx5_mpfs_add_mac() 164 err = set_l2table_entry_cmd(dev, index, mac); in mlx5_mpfs_add_mac() [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 …]
|