/drivers/hwmon/ |
D | dme1737.c | 74 #define DME1737_REG_IN(ix) ((ix) < 5 ? 0x20 + (ix) : \ argument 75 (ix) < 7 ? 0x94 + (ix) : \ 77 #define DME1737_REG_IN_MIN(ix) ((ix) < 5 ? 0x44 + (ix) * 2 \ argument 78 : 0x91 + (ix) * 2) 79 #define DME1737_REG_IN_MAX(ix) ((ix) < 5 ? 0x45 + (ix) * 2 \ argument 80 : 0x92 + (ix) * 2) 83 #define DME1737_REG_TEMP(ix) (0x25 + (ix)) argument 84 #define DME1737_REG_TEMP_MIN(ix) (0x4e + (ix) * 2) argument 85 #define DME1737_REG_TEMP_MAX(ix) (0x4f + (ix) * 2) argument 86 #define DME1737_REG_TEMP_OFFSET(ix) ((ix) == 0 ? 0x1f \ argument [all …]
|
D | vt1211.c | 62 #define VT1211_REG_IN(ix) (0x21 + (ix)) argument 63 #define VT1211_REG_IN_MIN(ix) ((ix) == 0 ? 0x3e : 0x2a + 2 * (ix)) argument 64 #define VT1211_REG_IN_MAX(ix) ((ix) == 0 ? 0x3d : 0x29 + 2 * (ix)) argument 72 #define VT1211_REG_FAN(ix) (0x29 + (ix)) argument 73 #define VT1211_REG_FAN_MIN(ix) (0x3b + (ix)) argument 78 #define VT1211_REG_PWM(ix) (0x60 + (ix)) argument 82 #define VT1211_REG_PWM_AUTO_PWM(ix, ap) (0x58 + 2 * (ix) - (ap)) argument 134 #define ISVOLT(ix, uch_config) ((ix) > 4 ? 1 : \ argument 135 !(((uch_config) >> ((ix) + 2)) & 1)) 138 #define ISTEMP(ix, uch_config) ((ix) < 2 ? 1 : \ argument [all …]
|
D | amc6821.c | 271 int ix = to_sensor_dev_attr(devattr)->index; in temp_show() local 273 return sprintf(buf, "%d\n", data->temp[ix] * 1000); in temp_show() 281 int ix = to_sensor_dev_attr(attr)->index; in temp_store() local 290 data->temp[ix] = val; in temp_store() 291 if (i2c_smbus_write_byte_data(client, temp_reg[ix], data->temp[ix])) { in temp_store() 303 int ix = to_sensor_dev_attr(devattr)->index; in temp_alarm_show() local 306 switch (ix) { in temp_alarm_show() 326 dev_dbg(dev, "Unknown attr->index (%d).\n", ix); in temp_alarm_show() 436 int ix = to_sensor_dev_attr_2(devattr)->index; in temp_auto_point_temp_show() local 442 data->temp1_auto_point_temp[ix] * 1000); in temp_auto_point_temp_show() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en/xsk/ |
D | pool.c | 46 static int mlx5e_xsk_add_pool(struct mlx5e_xsk *xsk, struct xsk_buff_pool *pool, u16 ix) in mlx5e_xsk_add_pool() argument 54 xsk->pools[ix] = pool; in mlx5e_xsk_add_pool() 58 static void mlx5e_xsk_remove_pool(struct mlx5e_xsk *xsk, u16 ix) in mlx5e_xsk_remove_pool() argument 60 xsk->pools[ix] = NULL; in mlx5e_xsk_remove_pool() 78 struct xsk_buff_pool *pool, u16 ix) in mlx5e_xsk_enable_locked() argument 85 if (unlikely(mlx5e_xsk_get_pool(&priv->channels.params, &priv->xsk, ix))) in mlx5e_xsk_enable_locked() 95 err = mlx5e_xsk_add_pool(&priv->xsk, pool, ix); in mlx5e_xsk_enable_locked() 113 c = priv->channels.c[ix]; in mlx5e_xsk_enable_locked() 125 err = mlx5e_xsk_redirect_rqt_to_channel(priv, priv->channels.c[ix]); in mlx5e_xsk_enable_locked() 136 mlx5e_xsk_remove_pool(&priv->xsk, ix); in mlx5e_xsk_enable_locked() [all …]
|
D | pool.h | 10 struct mlx5e_xsk *xsk, u16 ix) in mlx5e_xsk_get_pool() argument 15 if (unlikely(ix >= params->num_channels)) in mlx5e_xsk_get_pool() 18 return xsk->pools[ix]; in mlx5e_xsk_get_pool()
|
D | setup.c | 136 static int mlx5e_redirect_xsk_rqt(struct mlx5e_priv *priv, u16 ix, u32 rqn) in mlx5e_redirect_xsk_rqt() argument 145 u32 rqtn = priv->xsk_tir[ix].rqt.rqtn; in mlx5e_redirect_xsk_rqt() 152 return mlx5e_redirect_xsk_rqt(priv, c->ix, c->xskrq.rqn); in mlx5e_xsk_redirect_rqt_to_channel() 155 int mlx5e_xsk_redirect_rqt_to_drop(struct mlx5e_priv *priv, u16 ix) in mlx5e_xsk_redirect_rqt_to_drop() argument 157 return mlx5e_redirect_xsk_rqt(priv, ix, priv->drop_rq.rqn); in mlx5e_xsk_redirect_rqt_to_drop()
|
D | tx.c | 15 u16 ix; in mlx5e_xsk_wakeup() local 20 if (unlikely(!mlx5e_qid_get_ch_if_in_group(params, qid, MLX5E_RQ_GROUP_XSK, &ix))) in mlx5e_xsk_wakeup() 23 c = priv->channels.c[ix]; in mlx5e_xsk_wakeup()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | wq.h | 82 void mlx5_wq_cyc_wqe_dump(struct mlx5_wq_cyc *wq, u16 ix, u8 nstrides); 157 static inline void *mlx5_wq_cyc_get_wqe(struct mlx5_wq_cyc *wq, u16 ix) in mlx5_wq_cyc_get_wqe() argument 159 return mlx5_frag_buf_get_wqe(&wq->fbc, ix); in mlx5_wq_cyc_get_wqe() 162 static inline u16 mlx5_wq_cyc_get_contig_wqebbs(struct mlx5_wq_cyc *wq, u16 ix) in mlx5_wq_cyc_get_contig_wqebbs() argument 164 return mlx5_frag_buf_get_idx_last_contig_stride(&wq->fbc, ix) - ix + 1; in mlx5_wq_cyc_get_contig_wqebbs() 200 static inline struct mlx5_cqe64 *mlx5_cqwq_get_wqe(struct mlx5_cqwq *wq, u32 ix) in mlx5_cqwq_get_wqe() argument 202 struct mlx5_cqe64 *cqe = mlx5_frag_buf_get_wqe(&wq->fbc, ix); in mlx5_cqwq_get_wqe() 266 static inline void *mlx5_wq_ll_get_wqe(struct mlx5_wq_ll *wq, u16 ix) in mlx5_wq_ll_get_wqe() argument 268 return mlx5_frag_buf_get_wqe(&wq->fbc, ix); in mlx5_wq_ll_get_wqe() 271 static inline u16 mlx5_wq_ll_get_wqe_next_ix(struct mlx5_wq_ll *wq, u16 ix) in mlx5_wq_ll_get_wqe_next_ix() argument [all …]
|
D | en_fs.c | 81 int ix = mlx5e_hash_l2(addr); in mlx5e_add_l2_to_hash() local 84 hlist_for_each_entry(hn, &hash[ix], hlist) in mlx5e_add_l2_to_hash() 102 hlist_add_head(&hn->hlist, &hash[ix]); in mlx5e_add_l2_to_hash() 928 int ix = 0; in mlx5e_create_ttc_table_groups() local 952 MLX5_SET_CFG(in, start_flow_index, ix); in mlx5e_create_ttc_table_groups() 953 ix += MLX5E_TTC_GROUP1_SIZE; in mlx5e_create_ttc_table_groups() 954 MLX5_SET_CFG(in, end_flow_index, ix - 1); in mlx5e_create_ttc_table_groups() 962 MLX5_SET_CFG(in, start_flow_index, ix); in mlx5e_create_ttc_table_groups() 963 ix += MLX5E_TTC_GROUP2_SIZE; in mlx5e_create_ttc_table_groups() 964 MLX5_SET_CFG(in, end_flow_index, ix - 1); in mlx5e_create_ttc_table_groups() [all …]
|
D | en_main.c | 418 rq->ix = c->ix; in mlx5e_alloc_rq() 425 rq->stats = &c->priv->channel_stats[c->ix].xskrq; in mlx5e_alloc_rq() 427 rq->stats = &c->priv->channel_stats[c->ix].rq; in mlx5e_alloc_rq() 434 rq_xdp_ix = rq->ix; in mlx5e_alloc_rq() 801 c->ix, rq->rqn, mlx5e_rqwq_get_cur_sz(rq), min_wqes); in mlx5e_wait_for_min_rx_wqes() 999 &c->priv->channel_stats[c->ix].xsksq : in mlx5e_alloc_xdpsq() 1001 &c->priv->channel_stats[c->ix].xdpsq : in mlx5e_alloc_xdpsq() 1002 &c->priv->channel_stats[c->ix].rq_xdpsq; in mlx5e_alloc_xdpsq() 1175 sq->ch_ix = c->ix; in mlx5e_alloc_txqsq() 1180 sq->stats = &c->priv->channel_stats[c->ix].sq[tc]; in mlx5e_alloc_txqsq() [all …]
|
/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | smu_helper.h | 142 PHM_GET_FIELD(cgs_read_ind_register(device, port, ix##reg), \ 146 PHM_GET_FIELD(cgs_read_ind_register(device, port, ix##reg), \ 154 cgs_write_ind_register(device, port, ix##reg, \ 155 PHM_SET_FIELD(cgs_read_ind_register(device, port, ix##reg), \ 159 cgs_write_ind_register(device, port, ix##reg, \ 160 PHM_SET_FIELD(cgs_read_ind_register(device, port, ix##reg), \ 168 PHM_WAIT_INDIRECT_REGISTER_GIVEN_INDEX(hwmgr, port, ix##reg, value, mask) 179 PHM_WAIT_INDIRECT_REGISTER_UNEQUAL_GIVEN_INDEX(hwmgr, port, ix##reg, value, mask) 193 PHM_WAIT_VFPF_INDIRECT_REGISTER_UNEQUAL_GIVEN_INDEX(hwmgr, port, ix##reg, value, mask) 207 PHM_WAIT_VFPF_INDIRECT_REGISTER_GIVEN_INDEX(hwmgr, port, ix##reg, value, mask)
|
D | ppatomfwctrl.c | 498 uint32_t ix; in pp_atomfwctrl_get_clk_information_by_clkid() local 505 ix = GetIndexIntoMasterCmdTable(getsmuclockinfo); in pp_atomfwctrl_get_clk_information_by_clkid() 508 adev->mode_info.atom_context, ix, (uint32_t *)¶meters)) in pp_atomfwctrl_get_clk_information_by_clkid() 592 uint16_t ix; in pp_atomfwctrl_get_vbios_bootup_values() local 594 ix = GetIndexIntoMasterDataTable(firmwareinfo); in pp_atomfwctrl_get_vbios_bootup_values() 597 ix, NULL, NULL, NULL); in pp_atomfwctrl_get_vbios_bootup_values() 624 uint16_t ix; in pp_atomfwctrl_get_smc_dpm_information() local 626 ix = GetIndexIntoMasterDataTable(smc_dpm_info); in pp_atomfwctrl_get_smc_dpm_information() 629 ix, NULL, NULL, NULL); in pp_atomfwctrl_get_smc_dpm_information()
|
/drivers/input/misc/ |
D | yealink.c | 282 int ix, len; in yealink_set_ringtone() local 298 ix = 0; in yealink_set_ringtone() 299 while (size != ix) { in yealink_set_ringtone() 300 len = size - ix; in yealink_set_ringtone() 304 p->offset = cpu_to_be16(ix); in yealink_set_ringtone() 305 memcpy(p->data, &buf[ix], len); in yealink_set_ringtone() 307 ix += len; in yealink_set_ringtone() 317 int i, ix, len; in yealink_do_idle_tasks() local 319 ix = yld->stat_ix; in yealink_do_idle_tasks() 327 if (ix >= sizeof(yld->master)) { in yealink_do_idle_tasks() [all …]
|
/drivers/net/wireless/marvell/mwifiex/ |
D | util.c | 723 int ix; in mwifiex_hist_data_reset() local 727 for (ix = 0; ix < MWIFIEX_MAX_AC_RX_RATES; ix++) in mwifiex_hist_data_reset() 728 atomic_set(&phist_data->rx_rate[ix], 0); in mwifiex_hist_data_reset() 729 for (ix = 0; ix < MWIFIEX_MAX_SNR; ix++) in mwifiex_hist_data_reset() 730 atomic_set(&phist_data->snr[ix], 0); in mwifiex_hist_data_reset() 731 for (ix = 0; ix < MWIFIEX_MAX_NOISE_FLR; ix++) in mwifiex_hist_data_reset() 732 atomic_set(&phist_data->noise_flr[ix], 0); in mwifiex_hist_data_reset() 733 for (ix = 0; ix < MWIFIEX_MAX_SIG_STRENGTH; ix++) in mwifiex_hist_data_reset() 734 atomic_set(&phist_data->sig_str[ix], 0); in mwifiex_hist_data_reset()
|
/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | conn.c | 103 unsigned int ix; in mlx5_fpga_conn_post_recv() local 115 ix = conn->qp.rq.pc & (conn->qp.rq.size - 1); in mlx5_fpga_conn_post_recv() 116 data = mlx5_wq_cyc_get_wqe(&conn->qp.wq.rq, ix); in mlx5_fpga_conn_post_recv() 122 conn->qp.rq.bufs[ix] = buf; in mlx5_fpga_conn_post_recv() 146 unsigned int ix, sgi; in mlx5_fpga_conn_post_send() local 149 ix = conn->qp.sq.pc & (conn->qp.sq.size - 1); in mlx5_fpga_conn_post_send() 151 ctrl = mlx5_wq_cyc_get_wqe(&conn->qp.wq.sq, ix); in mlx5_fpga_conn_post_send() 171 conn->qp.sq.bufs[ix] = buf; in mlx5_fpga_conn_post_send() 254 int ix, err; in mlx5_fpga_conn_rq_cqe() local 256 ix = be16_to_cpu(cqe->wqe_counter) & (conn->qp.rq.size - 1); in mlx5_fpga_conn_rq_cqe() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
D | mpfs.c | 79 static int alloc_l2table_index(struct mlx5_mpfs *l2table, u32 *ix) in alloc_l2table_index() argument 83 *ix = find_first_zero_bit(l2table->bitmap, l2table->size); in alloc_l2table_index() 84 if (*ix >= l2table->size) in alloc_l2table_index() 87 __set_bit(*ix, l2table->bitmap); in alloc_l2table_index() 92 static void free_l2table_index(struct mlx5_mpfs *l2table, u32 ix) in free_l2table_index() argument 94 __clear_bit(ix, l2table->bitmap); in free_l2table_index()
|
D | mpfs.h | 53 int ix = MLX5_L2_ADDR_HASH(mac); \ 57 hlist_for_each_entry(ptr, &(hash)[ix], node.hlist) \ 68 int ix = MLX5_L2_ADDR_HASH(mac); \ 74 hlist_add_head(&ptr->node.hlist, &(hash)[ix]);\
|
/drivers/s390/char/ |
D | con3215.c | 175 int len, count, ix, lines; in raw3215_mk_write_req() local 200 ix = req->start; in raw3215_mk_write_req() 201 while (lines < RAW3215_MAX_NEWLINE && ix != raw->head) { in raw3215_mk_write_req() 202 if (raw->buffer[ix] == 0x15) in raw3215_mk_write_req() 204 ix = (ix + 1) & (RAW3215_BUFFER_SIZE - 1); in raw3215_mk_write_req() 206 len = ((ix - 1 - req->start) & (RAW3215_BUFFER_SIZE - 1)) + 1; in raw3215_mk_write_req() 213 req->delayable = (ix == raw->head) && (len < RAW3215_MIN_WRITE); in raw3215_mk_write_req() 215 ix = req->start; in raw3215_mk_write_req() 222 (__u32) __pa(raw->buffer + ix); in raw3215_mk_write_req() 224 if (ix + count > RAW3215_BUFFER_SIZE) in raw3215_mk_write_req() [all …]
|
/drivers/gpu/drm/radeon/ |
D | trinity_dpm.c | 589 u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE; in trinity_set_divider_value() local 596 value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_0 + ix); in trinity_set_divider_value() 599 WREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_0 + ix, value); in trinity_set_divider_value() 606 value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_PG_CNTL + ix); in trinity_set_divider_value() 609 WREG32_SMC(SMU_SCLK_DPM_STATE_0_PG_CNTL + ix, value); in trinity_set_divider_value() 616 u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE; in trinity_set_ds_dividers() local 618 value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_1 + ix); in trinity_set_ds_dividers() 621 WREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_1 + ix, value); in trinity_set_ds_dividers() 628 u32 ix = index * TRINITY_SIZEOF_DPM_STATE_TABLE; in trinity_set_ss_dividers() local 630 value = RREG32_SMC(SMU_SCLK_DPM_STATE_0_CNTL_1 + ix); in trinity_set_ss_dividers() [all …]
|
/drivers/infiniband/core/ |
D | cache.c | 383 struct ib_gid_table *table, int ix) in del_gid() argument 391 ix, table->data_vec[ix]->attr.gid.raw); in del_gid() 394 entry = table->data_vec[ix]; in del_gid() 400 table->data_vec[ix] = NULL; in del_gid() 553 int ix; in __ib_cache_gid_add() local 566 ix = find_gid(table, gid, attr, default_gid, mask, &empty); in __ib_cache_gid_add() 567 if (ix >= 0) in __ib_cache_gid_add() 607 int ix; in _ib_cache_gid_del() local 613 ix = find_gid(table, gid, attr, default_gid, mask, NULL); in _ib_cache_gid_del() 614 if (ix < 0) { in _ib_cache_gid_del() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | params.h | 46 u16 *ix) in mlx5e_qid_get_ch_if_in_group() argument 54 *ix = ch; in mlx5e_qid_get_ch_if_in_group() 60 u16 *ix, in mlx5e_qid_get_ch_and_group() argument 65 *ix = qid % nch; in mlx5e_qid_get_ch_and_group()
|
/drivers/net/ethernet/mscc/ |
D | ocelot_vcap.c | 56 u16 ix, int cmd, int sel) in vcap_cmd() argument 59 VCAP_CORE_UPDATE_CTRL_UPDATE_ADDR(ix) | in vcap_cmd() 62 if ((sel & VCAP_SEL_ENTRY) && ix >= vcap->entry_count) in vcap_cmd() 174 struct vcap_data *data, int ix) in vcap_data_offset_get() argument 194 col = (ix % num_entries_per_row); in vcap_data_offset_get() 344 static void is2_entry_set(struct ocelot *ocelot, int ix, in is2_entry_set() argument 352 int row = (ix / 2); in is2_entry_set() 363 vcap_data_offset_get(vcap, &data, ix); in is2_entry_set() 668 static void is1_entry_set(struct ocelot *ocelot, int ix, in is1_entry_set() argument 675 int row = ix / 2; in is1_entry_set() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | fs_tcp.c | 188 int ix = 0; in accel_fs_tcp_create_groups() local 239 MLX5_SET_CFG(in, start_flow_index, ix); in accel_fs_tcp_create_groups() 240 ix += MLX5E_ACCEL_FS_TCP_GROUP1_SIZE; in accel_fs_tcp_create_groups() 241 MLX5_SET_CFG(in, end_flow_index, ix - 1); in accel_fs_tcp_create_groups() 249 MLX5_SET_CFG(in, start_flow_index, ix); in accel_fs_tcp_create_groups() 250 ix += MLX5E_ACCEL_FS_TCP_GROUP2_SIZE; in accel_fs_tcp_create_groups() 251 MLX5_SET_CFG(in, end_flow_index, ix - 1); in accel_fs_tcp_create_groups()
|
/drivers/iio/chemical/ |
D | sgp30.c | 415 u16 ix, num_fs; in sgp_check_compat() local 455 for (ix = 0; ix < num_fs; ix++) { in sgp_check_compat() 456 if (major == supported_versions[ix].major && in sgp_check_compat() 457 minor >= supported_versions[ix].minor) in sgp_check_compat()
|
/drivers/usb/core/ |
D | devices.c | 134 int ix; in class_decode() local 136 for (ix = 0; clas_info[ix].class != -1; ix++) in class_decode() 137 if (clas_info[ix].class == class) in class_decode() 139 return clas_info[ix].class_name; in class_decode()
|