/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | vdec_drv_if.c | 26 ctx->hw_id = MTK_VDEC_CORE; in vdec_if_init() 29 ctx->hw_id = IS_VDEC_LAT_ARCH(hw_arch) ? MTK_VDEC_LAT0 : MTK_VDEC_CORE; in vdec_if_init() 34 ctx->hw_id = MTK_VDEC_CORE; in vdec_if_init() 38 ctx->hw_id = MTK_VDEC_CORE; in vdec_if_init() 42 ctx->hw_id = MTK_VDEC_CORE; in vdec_if_init() 46 ctx->hw_id = MTK_VDEC_CORE; in vdec_if_init() 50 ctx->hw_id = IS_VDEC_LAT_ARCH(hw_arch) ? MTK_VDEC_LAT0 : MTK_VDEC_CORE; in vdec_if_init() 54 ctx->hw_id = MTK_VDEC_LAT0; in vdec_if_init() 58 ctx->hw_id = MTK_VDEC_LAT0; in vdec_if_init() 64 mtk_vcodec_dec_enable_hardware(ctx, ctx->hw_id); in vdec_if_init() [all...] |
H A D | mtk_vcodec_dec_drv.h | 161 * @hw_id: hardware index used to identify different hardware. 206 int hw_id; member 306 wake_up_dec_ctx(struct mtk_vcodec_dec_ctx *ctx, unsigned int reason, unsigned int hw_id) in wake_up_dec_ctx() argument 308 ctx->int_cond[hw_id] = 1; in wake_up_dec_ctx() 309 ctx->int_type[hw_id] = reason; in wake_up_dec_ctx() 310 wake_up_interruptible(&ctx->queue[hw_id]); in wake_up_dec_ctx()
|
/kernel/linux/linux-5.10/drivers/thermal/qcom/ |
H A D | tsens.c | 195 static void tsens_set_interrupt_v1(struct tsens_priv *priv, u32 hw_id, in tsens_set_interrupt_v1() argument 202 index = UP_INT_CLEAR_0 + hw_id; in tsens_set_interrupt_v1() 205 index = LOW_INT_CLEAR_0 + hw_id; in tsens_set_interrupt_v1() 214 static void tsens_set_interrupt_v2(struct tsens_priv *priv, u32 hw_id, in tsens_set_interrupt_v2() argument 228 index_mask = UP_INT_MASK_0 + hw_id; in tsens_set_interrupt_v2() 229 index_clear = UP_INT_CLEAR_0 + hw_id; in tsens_set_interrupt_v2() 232 index_mask = LOW_INT_MASK_0 + hw_id; in tsens_set_interrupt_v2() 233 index_clear = LOW_INT_CLEAR_0 + hw_id; in tsens_set_interrupt_v2() 236 index_mask = CRIT_INT_MASK_0 + hw_id; in tsens_set_interrupt_v2() 237 index_clear = CRIT_INT_CLEAR_0 + hw_id; in tsens_set_interrupt_v2() 261 tsens_set_interrupt(struct tsens_priv *priv, u32 hw_id, enum tsens_irq_type irq_type, bool enable) tsens_set_interrupt() argument 282 tsens_threshold_violated(struct tsens_priv *priv, u32 hw_id, struct tsens_irq_data *d) tsens_threshold_violated() argument 307 tsens_read_irq_state(struct tsens_priv *priv, u32 hw_id, const struct tsens_sensor *s, struct tsens_irq_data *d) tsens_read_irq_state() argument 361 masked_irq(u32 hw_id, u32 mask, enum tsens_ver ver) masked_irq() argument 416 u32 hw_id = s->hw_id; tsens_critical_irq_thread() local 466 u32 hw_id = s->hw_id; tsens_irq_thread() local 531 u32 hw_id = s->hw_id; tsens_set_trips() local 581 int hw_id = s->hw_id; get_temp_tsens_valid() local 610 int hw_id = s->hw_id; get_temp_common() local [all...] |
/kernel/linux/linux-6.6/drivers/thermal/qcom/ |
H A D | tsens.c | 112 ret = snprintf(name, sizeof(name), "s%d_p1%s", priv->sensor[i].hw_id, in tsens_read_calibration() 121 ret = snprintf(name, sizeof(name), "s%d_p2%s", priv->sensor[i].hw_id, in tsens_read_calibration() 377 static void tsens_set_interrupt_v1(struct tsens_priv *priv, u32 hw_id, in tsens_set_interrupt_v1() argument 384 index = UP_INT_CLEAR_0 + hw_id; in tsens_set_interrupt_v1() 387 index = LOW_INT_CLEAR_0 + hw_id; in tsens_set_interrupt_v1() 396 static void tsens_set_interrupt_v2(struct tsens_priv *priv, u32 hw_id, in tsens_set_interrupt_v2() argument 410 index_mask = UP_INT_MASK_0 + hw_id; in tsens_set_interrupt_v2() 411 index_clear = UP_INT_CLEAR_0 + hw_id; in tsens_set_interrupt_v2() 414 index_mask = LOW_INT_MASK_0 + hw_id; in tsens_set_interrupt_v2() 415 index_clear = LOW_INT_CLEAR_0 + hw_id; in tsens_set_interrupt_v2() 443 tsens_set_interrupt(struct tsens_priv *priv, u32 hw_id, enum tsens_irq_type irq_type, bool enable) tsens_set_interrupt() argument 464 tsens_threshold_violated(struct tsens_priv *priv, u32 hw_id, struct tsens_irq_data *d) tsens_threshold_violated() argument 489 tsens_read_irq_state(struct tsens_priv *priv, u32 hw_id, const struct tsens_sensor *s, struct tsens_irq_data *d) tsens_read_irq_state() argument 543 masked_irq(u32 hw_id, u32 mask, enum tsens_ver ver) masked_irq() argument 598 u32 hw_id = s->hw_id; tsens_critical_irq_thread() local 645 u32 hw_id = s->hw_id; tsens_irq_thread() local 696 u32 hw_id = s->hw_id; tsens_set_trips() local 753 int hw_id = s->hw_id; get_temp_tsens_valid() local 784 int hw_id = s->hw_id; get_temp_common() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/common/ |
H A D | mtk_vcodec_intr.c | 15 unsigned int hw_id) in mtk_vcodec_wait_for_done_ctx() 47 ret = wait_event_interruptible_timeout(ctx_queue[hw_id], in mtk_vcodec_wait_for_done_ctx() 48 ctx_int_cond[hw_id], in mtk_vcodec_wait_for_done_ctx() 55 ctx_int_cond[hw_id], ctx_int_type[hw_id]); in mtk_vcodec_wait_for_done_ctx() 60 ctx_int_cond[hw_id], ctx_int_type[hw_id]); in mtk_vcodec_wait_for_done_ctx() 63 ctx_int_cond[hw_id] = 0; in mtk_vcodec_wait_for_done_ctx() 64 ctx_int_type[hw_id] = 0; in mtk_vcodec_wait_for_done_ctx() 14 mtk_vcodec_wait_for_done_ctx(void *priv, int command, unsigned int timeout_ms, unsigned int hw_id) mtk_vcodec_wait_for_done_ctx() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | htb.c | 15 u32 hw_id; member 42 err = callback(data, node->qid, node->hw_id); in mlx5e_htb_enumerate_leaves() 200 err = mlx5_qos_create_root_node(htb->mdev, &root->hw_id); in mlx5e_htb_root_add() 242 err = mlx5_qos_destroy_node(htb->mdev, root->hw_id); in mlx5e_htb_root_del() 245 root->hw_id, err); in mlx5e_htb_root_del() 316 err = mlx5_qos_create_leaf_node(htb->mdev, node->parent->hw_id, in mlx5e_htb_leaf_alloc_queue() 318 &node->hw_id); in mlx5e_htb_leaf_alloc_queue() 328 err = mlx5e_open_qos_sq(priv, &priv->channels, node->qid, node->hw_id); in mlx5e_htb_leaf_alloc_queue() 334 mlx5e_activate_qos_sq(priv, node->qid, node->hw_id); in mlx5e_htb_leaf_alloc_queue() 358 err = mlx5_qos_create_inner_node(htb->mdev, node->parent->hw_id, in mlx5e_htb_leaf_to_inner() [all...] |
H A D | qos.h | 22 u16 node_qid, u32 hw_id); 23 int mlx5e_activate_qos_sq(void *data, u16 node_qid, u32 hw_id); 50 int mlx5e_mqprio_rl_get_node_hw_id(struct mlx5e_mqprio_rl *rl, int tc, u32 *hw_id);
|
H A D | qos.c | 70 u16 node_qid, u32 hw_id) in mlx5e_open_qos_sq() 130 ¶m_sq, sq, 0, hw_id, in mlx5e_open_qos_sq() 146 static int mlx5e_open_qos_sq_cb_wrapper(void *data, u16 node_qid, u32 hw_id) in mlx5e_open_qos_sq_cb_wrapper() argument 150 return mlx5e_open_qos_sq(cb_params->priv, cb_params->chs, node_qid, hw_id); in mlx5e_open_qos_sq_cb_wrapper() 153 int mlx5e_activate_qos_sq(void *data, u16 node_qid, u32 hw_id) in mlx5e_activate_qos_sq() argument 516 int mlx5e_mqprio_rl_get_node_hw_id(struct mlx5e_mqprio_rl *rl, int tc, u32 *hw_id) in mlx5e_mqprio_rl_get_node_hw_id() argument 521 *hw_id = rl->leaves_id[tc]; in mlx5e_mqprio_rl_get_node_hw_id() 69 mlx5e_open_qos_sq(struct mlx5e_priv *priv, struct mlx5e_channels *chs, u16 node_qid, u32 hw_id) mlx5e_open_qos_sq() argument
|
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_hw.c | 235 u32 hw_id; member 481 u32 *dev_id, u32 *hw_id, u16 *fp_id) in prestera_hw_port_info_get() 495 *hw_id = resp.hw_id; in prestera_hw_port_info_get() 561 .port = port->hw_id, in prestera_hw_port_state_set() 576 .port = port->hw_id, in prestera_hw_port_mtu_set() 591 .port = port->hw_id, in prestera_hw_port_mac_set() 606 .port = port->hw_id, in prestera_hw_port_accept_frm_type() 622 .port = port->hw_id, in prestera_hw_port_cap_get() 646 .port = port->hw_id, in prestera_hw_port_remote_cap_get() 480 prestera_hw_port_info_get(const struct prestera_port *port, u32 *dev_id, u32 *hw_id, u16 *fp_id) prestera_hw_port_info_get() argument [all...] |
/kernel/linux/linux-6.6/drivers/iio/imu/st_lsm6dsx/ |
H A D | st_lsm6dsx_i2c.c | 26 int hw_id; in st_lsm6dsx_i2c_probe() local 29 hw_id = (kernel_ulong_t)device_get_match_data(&client->dev); in st_lsm6dsx_i2c_probe() 30 if (!hw_id) in st_lsm6dsx_i2c_probe() 31 hw_id = i2c_client_get_device_id(client)->driver_data; in st_lsm6dsx_i2c_probe() 32 if (!hw_id) in st_lsm6dsx_i2c_probe() 41 return st_lsm6dsx_probe(&client->dev, client->irq, hw_id, regmap); in st_lsm6dsx_i2c_probe()
|
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/jpeg/ |
H A D | mtk_jpeg_core.c | 1461 int hw_id = -1; in mtk_jpegenc_get_hw() local 1468 hw_id = i; in mtk_jpegenc_get_hw() 1475 return hw_id; in mtk_jpegenc_get_hw() 1479 int hw_id, in mtk_jpegenc_set_hw_param() 1483 struct mtk_jpegenc_comp_dev *jpeg = ctx->jpeg->enc_hw_dev[hw_id]; in mtk_jpegenc_set_hw_param() 1492 static int mtk_jpegenc_put_hw(struct mtk_jpeg_dev *jpeg, int hw_id) in mtk_jpegenc_put_hw() argument 1497 jpeg->enc_hw_dev[hw_id]->hw_state = MTK_JPEG_HW_IDLE; in mtk_jpegenc_put_hw() 1508 int hw_id = -1; in mtk_jpegdec_get_hw() local 1515 hw_id = i; in mtk_jpegdec_get_hw() 1522 return hw_id; in mtk_jpegdec_get_hw() 1478 mtk_jpegenc_set_hw_param(struct mtk_jpeg_ctx *ctx, int hw_id, struct vb2_v4l2_buffer *src_buf, struct vb2_v4l2_buffer *dst_buf) mtk_jpegenc_set_hw_param() argument 1525 mtk_jpegdec_put_hw(struct mtk_jpeg_dev *jpeg, int hw_id) mtk_jpegdec_put_hw() argument 1537 mtk_jpegdec_set_hw_param(struct mtk_jpeg_ctx *ctx, int hw_id, struct vb2_v4l2_buffer *src_buf, struct vb2_v4l2_buffer *dst_buf) mtk_jpegdec_set_hw_param() argument 1586 int ret, i, hw_id = 0; mtk_jpegenc_worker() local 1684 int ret, i, hw_id = 0; mtk_jpegdec_worker() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | mtk_vcodec_enc_drv.h | 230 wake_up_enc_ctx(struct mtk_vcodec_enc_ctx *ctx, unsigned int reason, unsigned int hw_id) in wake_up_enc_ctx() argument 232 ctx->int_cond[hw_id] = 1; in wake_up_enc_ctx() 233 ctx->int_type[hw_id] = reason; in wake_up_enc_ctx() 234 wake_up_interruptible(&ctx->queue[hw_id]); in wake_up_enc_ctx()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_hw.c | 363 __le32 hw_id; member 441 __le32 hw_id; member 554 __le32 hw_id; member 1022 u32 *dev_id, u32 *hw_id, u16 *fp_id) in prestera_hw_port_info_get() 1036 *hw_id = __le32_to_cpu(resp.hw_id); in prestera_hw_port_info_get() 1109 .port = __cpu_to_le32(port->hw_id), in prestera_hw_port_mac_mode_get() 1140 .port = __cpu_to_le32(port->hw_id), in prestera_hw_port_mac_mode_set() 1167 .port = __cpu_to_le32(port->hw_id), in prestera_hw_port_phy_mode_get() 1196 .port = __cpu_to_le32(port->hw_id), in prestera_hw_port_phy_mode_set() 1021 prestera_hw_port_info_get(const struct prestera_port *port, u32 *dev_id, u32 *hw_id, u16 *fp_id) prestera_hw_port_info_get() argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/sysdev/xics/ |
H A D | icp-native.c | 211 static int __init icp_native_map_one_cpu(int hw_id, unsigned long addr, in icp_native_map_one_cpu() argument 223 if (hw_id == get_hard_smp_processor_id(i)) { in icp_native_map_one_cpu() 236 cpu, hw_id); in icp_native_map_one_cpu() 240 cpu, hw_id); in icp_native_map_one_cpu() 248 cpu, hw_id, addr); in icp_native_map_one_cpu()
|
/kernel/linux/linux-6.6/arch/powerpc/sysdev/xics/ |
H A D | icp-native.c | 212 static int __init icp_native_map_one_cpu(int hw_id, unsigned long addr, in icp_native_map_one_cpu() argument 224 if (hw_id == get_hard_smp_processor_id(i)) { in icp_native_map_one_cpu() 237 cpu, hw_id); in icp_native_map_one_cpu() 241 cpu, hw_id); in icp_native_map_one_cpu() 249 cpu, hw_id, addr); in icp_native_map_one_cpu()
|
/kernel/linux/linux-5.10/arch/arm/mach-iop32x/ |
H A D | adma.c | 99 .hw_id = DMA0_ID, 104 .hw_id = DMA1_ID, 109 .hw_id = AAU_ID,
|
/kernel/linux/linux-5.10/drivers/thermal/ |
H A D | imx8mm_thermal.c | 50 u32 hw_id; member 89 ready = test_bit(probe_status_offset(sensor->hw_id), &val); in imx8mp_tmu_get_temp() 93 val = sensor->hw_id ? FIELD_GET(TRITSR_TEMP1_VAL_MASK, val) : in imx8mp_tmu_get_temp() 183 tmu->sensors[i].hw_id = i; in imx8mm_tmu_probe()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_discovery.c | 295 hw_id_names[le16_to_cpu(ip->hw_id)], in amdgpu_discovery_reg_base_init() 296 le16_to_cpu(ip->hw_id), in amdgpu_discovery_reg_base_init() 311 if (hw_id_map[hw_ip] == le16_to_cpu(ip->hw_id)) { in amdgpu_discovery_reg_base_init() 313 hw_id_names[le16_to_cpu(ip->hw_id)]); in amdgpu_discovery_reg_base_init() 327 int amdgpu_discovery_get_ip_version(struct amdgpu_device *adev, int hw_id, in amdgpu_discovery_get_ip_version() argument 359 if (le16_to_cpu(ip->hw_id) == hw_id) { in amdgpu_discovery_get_ip_version()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | rdma.c | 124 u8 hw_id[ETH_ALEN]; in mlx5_rdma_make_default_gid() local 126 mlx5_query_mac_address(dev, hw_id); in mlx5_rdma_make_default_gid() 128 addrconf_addr_eui48(&gid->raw[8], hw_id); in mlx5_rdma_make_default_gid()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | rdma.c | 112 u8 hw_id[ETH_ALEN]; in mlx5_rdma_make_default_gid() local 114 mlx5_query_mac_address(dev, hw_id); in mlx5_rdma_make_default_gid() 116 addrconf_addr_eui48(&gid->raw[8], hw_id); in mlx5_rdma_make_default_gid()
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | ibmpowernv.c | 571 u32 opal_index, hw_id; in create_device_attrs() local 607 hw_id = get_sensor_hwmon_index(&sdata[count], sdata, count); in create_device_attrs() 609 populate_sensor(&sdata[count], opal_index, hw_id, sensor_id, in create_device_attrs() 623 populate_sensor(&sdata[count], opal_index, hw_id, in create_device_attrs() 631 populate_sensor(&sdata[count], opal_index, hw_id, in create_device_attrs() 640 populate_sensor(&sdata[count], opal_index, hw_id, in create_device_attrs() 649 hw_id = ++group_attr_id[type]; in create_device_attrs() 650 populate_sensor(&sdata[count], opal_index, hw_id, in create_device_attrs()
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | ibmpowernv.c | 571 u32 opal_index, hw_id; in create_device_attrs() local 607 hw_id = get_sensor_hwmon_index(&sdata[count], sdata, count); in create_device_attrs() 609 populate_sensor(&sdata[count], opal_index, hw_id, sensor_id, in create_device_attrs() 623 populate_sensor(&sdata[count], opal_index, hw_id, in create_device_attrs() 631 populate_sensor(&sdata[count], opal_index, hw_id, in create_device_attrs() 640 populate_sensor(&sdata[count], opal_index, hw_id, in create_device_attrs() 649 hw_id = ++group_attr_id[type]; in create_device_attrs() 650 populate_sensor(&sdata[count], opal_index, hw_id, in create_device_attrs()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_trap.c | 17 u16 hw_id; member 1058 u16 hw_id; in mlxsw_sp_trap_cpu_policers_set() local 1063 hw_id = find_first_zero_bit(trap->policers_usage, trap->max_policers); in mlxsw_sp_trap_cpu_policers_set() 1064 if (WARN_ON(hw_id == trap->max_policers)) in mlxsw_sp_trap_cpu_policers_set() 1067 __set_bit(hw_id, trap->policers_usage); in mlxsw_sp_trap_cpu_policers_set() 1068 trap->thin_policer_hw_id = hw_id; in mlxsw_sp_trap_cpu_policers_set() 1069 mlxsw_reg_qpcr_pack(qpcr_pl, hw_id, MLXSW_REG_QPCR_IR_UNITS_M, in mlxsw_sp_trap_cpu_policers_set() 1509 hw_policer_id = policer_item->hw_id; in __mlxsw_sp_trap_group_init() 1540 u16 hw_id; in mlxsw_sp_trap_policer_item_init() local 1546 hw_id in mlxsw_sp_trap_policer_item_init() 1578 __mlxsw_sp_trap_policer_set(struct mlxsw_sp *mlxsw_sp, u16 hw_id, u64 rate, u64 burst, bool clear_counter, struct netlink_ext_ack *extack) __mlxsw_sp_trap_policer_set() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_trap.c | 17 u16 hw_id; member 1236 u16 hw_id; in mlxsw_sp_trap_cpu_policers_set() local 1241 hw_id = find_first_zero_bit(trap->policers_usage, trap->max_policers); in mlxsw_sp_trap_cpu_policers_set() 1242 if (WARN_ON(hw_id == trap->max_policers)) in mlxsw_sp_trap_cpu_policers_set() 1245 __set_bit(hw_id, trap->policers_usage); in mlxsw_sp_trap_cpu_policers_set() 1246 trap->thin_policer_hw_id = hw_id; in mlxsw_sp_trap_cpu_policers_set() 1247 mlxsw_reg_qpcr_pack(qpcr_pl, hw_id, MLXSW_REG_QPCR_IR_UNITS_M, in mlxsw_sp_trap_cpu_policers_set() 1686 hw_policer_id = policer_item->hw_id; in __mlxsw_sp_trap_group_init() 1717 u16 hw_id; in mlxsw_sp_trap_policer_item_init() local 1723 hw_id in mlxsw_sp_trap_policer_item_init() 1755 __mlxsw_sp_trap_policer_set(struct mlxsw_sp *mlxsw_sp, u16 hw_id, u64 rate, u64 burst, bool clear_counter, struct netlink_ext_ack *extack) __mlxsw_sp_trap_policer_set() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_discovery.c | 533 if (le16_to_cpu(ip->hw_id) >= HW_ID_MAX) { in amdgpu_discovery_validate_ip() 534 DRM_ERROR("Unexpected hw_id (%d) from ip discovery blob\n", in amdgpu_discovery_validate_ip() 535 le16_to_cpu(ip->hw_id)); in amdgpu_discovery_validate_ip() 571 switch (le16_to_cpu(ip->hw_id)) { in amdgpu_discovery_read_harvest_bit_per_ip() 625 if (le16_to_cpu(harvest_info->list[i].hw_id) == 0) in amdgpu_discovery_read_from_harvest_table() 628 switch (le16_to_cpu(harvest_info->list[i].hw_id)) { in amdgpu_discovery_read_from_harvest_table() 669 struct kobject kobj; /* ip_discovery/die/#die/#hw_id/#instance/<attrs...> */ 671 int hw_id; member 681 struct kset hw_id_kset; /* ip_discovery/die/#die/#hw_id/, contains ip_hw_instance */ 682 int hw_id; member 916 amdgpu_discovery_get_harvest_info(struct amdgpu_device *adev, uint16_t hw_id, uint8_t inst) amdgpu_discovery_get_harvest_info() argument [all...] |