/drivers/net/ethernet/mellanox/mlx5/core/ |
D | port.c | 44 u32 *in = NULL; in mlx5_core_access_reg() local 47 in = kvzalloc(inlen, GFP_KERNEL); in mlx5_core_access_reg() 49 if (!in || !out) in mlx5_core_access_reg() 52 data = MLX5_ADDR_OF(access_register_in, in, register_data); in mlx5_core_access_reg() 55 MLX5_SET(access_register_in, in, opcode, MLX5_CMD_OP_ACCESS_REG); in mlx5_core_access_reg() 56 MLX5_SET(access_register_in, in, op_mod, !write); in mlx5_core_access_reg() 57 MLX5_SET(access_register_in, in, argument, arg); in mlx5_core_access_reg() 58 MLX5_SET(access_register_in, in, register_id, reg_id); in mlx5_core_access_reg() 60 err = mlx5_cmd_exec(dev, in, inlen, out, outlen); in mlx5_core_access_reg() 69 kvfree(in); in mlx5_core_access_reg() [all …]
|
D | vport.c | 47 u32 in[MLX5_ST_SZ_DW(query_vport_state_in)] = {}; in mlx5_query_vport_state() local 50 MLX5_SET(query_vport_state_in, in, opcode, in mlx5_query_vport_state() 52 MLX5_SET(query_vport_state_in, in, op_mod, opmod); in mlx5_query_vport_state() 53 MLX5_SET(query_vport_state_in, in, vport_number, vport); in mlx5_query_vport_state() 55 MLX5_SET(query_vport_state_in, in, other_vport, 1); in mlx5_query_vport_state() 57 err = mlx5_cmd_exec_inout(mdev, query_vport_state, in, out); in mlx5_query_vport_state() 67 u32 in[MLX5_ST_SZ_DW(modify_vport_state_in)] = {}; in mlx5_modify_vport_admin_state() local 69 MLX5_SET(modify_vport_state_in, in, opcode, in mlx5_modify_vport_admin_state() 71 MLX5_SET(modify_vport_state_in, in, op_mod, opmod); in mlx5_modify_vport_admin_state() 72 MLX5_SET(modify_vport_state_in, in, vport_number, vport); in mlx5_modify_vport_admin_state() [all …]
|
D | fs_cmd.c | 76 u32 *in, in mlx5_cmd_stub_create_flow_group() argument 161 u32 in[MLX5_ST_SZ_DW(set_flow_table_root_in)] = {}; in mlx5_cmd_set_slave_root_fdb() local 165 MLX5_SET(set_flow_table_root_in, in, opcode, in mlx5_cmd_set_slave_root_fdb() 167 MLX5_SET(set_flow_table_root_in, in, table_type, in mlx5_cmd_set_slave_root_fdb() 170 MLX5_SET(set_flow_table_root_in, in, in mlx5_cmd_set_slave_root_fdb() 172 MLX5_SET(set_flow_table_root_in, in, in mlx5_cmd_set_slave_root_fdb() 175 MLX5_SET(set_flow_table_root_in, in, table_id, in mlx5_cmd_set_slave_root_fdb() 181 MLX5_SET(set_flow_table_root_in, in, table_id, in mlx5_cmd_set_slave_root_fdb() 185 return mlx5_cmd_exec(slave, in, sizeof(in), out, sizeof(out)); in mlx5_cmd_set_slave_root_fdb() 192 u32 in[MLX5_ST_SZ_DW(set_flow_table_root_in)] = {}; in mlx5_cmd_update_root_ft() local [all …]
|
D | transobj.c | 40 u32 in[MLX5_ST_SZ_DW(alloc_transport_domain_in)] = {}; in mlx5_core_alloc_transport_domain() local 43 MLX5_SET(alloc_transport_domain_in, in, opcode, in mlx5_core_alloc_transport_domain() 46 err = mlx5_cmd_exec_inout(dev, alloc_transport_domain, in, out); in mlx5_core_alloc_transport_domain() 57 u32 in[MLX5_ST_SZ_DW(dealloc_transport_domain_in)] = {}; in mlx5_core_dealloc_transport_domain() local 59 MLX5_SET(dealloc_transport_domain_in, in, opcode, in mlx5_core_dealloc_transport_domain() 61 MLX5_SET(dealloc_transport_domain_in, in, transport_domain, tdn); in mlx5_core_dealloc_transport_domain() 62 mlx5_cmd_exec_in(dev, dealloc_transport_domain, in); in mlx5_core_dealloc_transport_domain() 66 int mlx5_core_create_rq(struct mlx5_core_dev *dev, u32 *in, int inlen, u32 *rqn) in mlx5_core_create_rq() argument 71 MLX5_SET(create_rq_in, in, opcode, MLX5_CMD_OP_CREATE_RQ); in mlx5_core_create_rq() 72 err = mlx5_cmd_exec(dev, in, inlen, out, sizeof(out)); in mlx5_core_create_rq() [all …]
|
/drivers/infiniband/hw/mlx5/ |
D | srq_cmd.c | 12 static int get_pas_size(struct mlx5_srq_attr *in) in get_pas_size() argument 14 u32 log_page_size = in->log_page_size + 12; in get_pas_size() 15 u32 log_srq_size = in->log_size; in get_pas_size() 16 u32 log_rq_stride = in->wqe_shift; in get_pas_size() 17 u32 page_offset = in->page_offset; in get_pas_size() 27 static void set_wq(void *wq, struct mlx5_srq_attr *in) in set_wq() argument 29 MLX5_SET(wq, wq, wq_signature, !!(in->flags in set_wq() 31 MLX5_SET(wq, wq, log_wq_pg_sz, in->log_page_size); in set_wq() 32 MLX5_SET(wq, wq, log_wq_stride, in->wqe_shift + 4); in set_wq() 33 MLX5_SET(wq, wq, log_wq_sz, in->log_size); in set_wq() [all …]
|
D | cmd.c | 11 u32 in[MLX5_ST_SZ_DW(query_special_contexts_in)] = {}; in mlx5_cmd_dump_fill_mkey() local 14 MLX5_SET(query_special_contexts_in, in, opcode, in mlx5_cmd_dump_fill_mkey() 16 err = mlx5_cmd_exec_inout(dev, query_special_contexts, in, out); in mlx5_cmd_dump_fill_mkey() 26 u32 in[MLX5_ST_SZ_DW(query_special_contexts_in)] = {}; in mlx5_cmd_null_mkey() local 29 MLX5_SET(query_special_contexts_in, in, opcode, in mlx5_cmd_null_mkey() 31 err = mlx5_cmd_exec_inout(dev, query_special_contexts, in, out); in mlx5_cmd_null_mkey() 41 u32 in[MLX5_ST_SZ_DW(query_cong_params_in)] = {}; in mlx5_cmd_query_cong_params() local 43 MLX5_SET(query_cong_params_in, in, opcode, in mlx5_cmd_query_cong_params() 45 MLX5_SET(query_cong_params_in, in, cong_protocol, cong_point); in mlx5_cmd_query_cong_params() 47 return mlx5_cmd_exec_inout(dev, query_cong_params, in, out); in mlx5_cmd_query_cong_params() [all …]
|
D | qpc.c | 192 u32 in[MLX5_ST_SZ_DW(destroy_dct_in)] = {}; in _mlx5_core_destroy_dct() local 207 MLX5_SET(destroy_dct_in, in, opcode, MLX5_CMD_OP_DESTROY_DCT); in _mlx5_core_destroy_dct() 208 MLX5_SET(destroy_dct_in, in, dctn, qp->qpn); in _mlx5_core_destroy_dct() 209 MLX5_SET(destroy_dct_in, in, uid, qp->uid); in _mlx5_core_destroy_dct() 210 err = mlx5_cmd_exec_in(dev->mdev, destroy_dct, in); in _mlx5_core_destroy_dct() 215 u32 *in, int inlen, u32 *out, int outlen) in mlx5_core_create_dct() argument 221 MLX5_SET(create_dct_in, in, opcode, MLX5_CMD_OP_CREATE_DCT); in mlx5_core_create_dct() 223 err = mlx5_cmd_exec(dev->mdev, in, inlen, out, outlen); in mlx5_core_create_dct() 228 qp->uid = MLX5_GET(create_dct_in, in, uid); in mlx5_core_create_dct() 240 u32 *in, int inlen, u32 *out) in mlx5_qpc_create_qp() argument [all …]
|
/drivers/gpu/drm/selftests/ |
D | test-drm_dp_mst_helper.c | 46 sideband_msg_req_equal(const struct drm_dp_sideband_msg_req_body *in, in sideband_msg_req_equal() argument 52 if (in->req_type != out->req_type) in sideband_msg_req_equal() 55 switch (in->req_type) { in sideband_msg_req_equal() 62 #define IN in->u.i2c_read in sideband_msg_req_equal() 90 #define IN in->u.dpcd_write in sideband_msg_req_equal() 102 #define IN in->u.i2c_write in sideband_msg_req_equal() 114 return memcmp(in, out, sizeof(*in)) == 0; in sideband_msg_req_equal() 121 sideband_msg_req_encode_decode(struct drm_dp_sideband_msg_req_body *in) in sideband_msg_req_encode_decode() argument 139 drm_dp_encode_sideband_req(in, txmsg); in sideband_msg_req_encode_decode() 148 if (!sideband_msg_req_equal(in, out)) { in sideband_msg_req_encode_decode() [all …]
|
/drivers/video/fbdev/omap2/omapfb/displays/ |
D | panel-dsi-cm.c | 40 struct omap_dss_device *in; member 108 struct omap_dss_device *in = ddata->in; in dsicm_dcs_read_1() local 112 r = in->ops.dsi->dcs_read(in, ddata->channel, dcs_cmd, buf, 1); in dsicm_dcs_read_1() 124 struct omap_dss_device *in = ddata->in; in dsicm_dcs_write_0() local 125 return in->ops.dsi->dcs_write(in, ddata->channel, &dcs_cmd, 1); in dsicm_dcs_write_0() 130 struct omap_dss_device *in = ddata->in; in dsicm_dcs_write_1() local 133 return in->ops.dsi->dcs_write(in, ddata->channel, buf, 2); in dsicm_dcs_write_1() 139 struct omap_dss_device *in = ddata->in; in dsicm_sleep_in() local 146 r = in->ops.dsi->dcs_write_nosync(in, ddata->channel, &cmd, 1); in dsicm_sleep_in() 194 struct omap_dss_device *in = ddata->in; in dsicm_set_update_window() local [all …]
|
D | connector-analog-tv.c | 19 struct omap_dss_device *in; member 49 struct omap_dss_device *in = ddata->in; in tvc_connect() local 56 return in->ops.atv->connect(in, dssdev); in tvc_connect() 62 struct omap_dss_device *in = ddata->in; in tvc_disconnect() local 69 in->ops.atv->disconnect(in, dssdev); in tvc_disconnect() 75 struct omap_dss_device *in = ddata->in; in tvc_enable() local 86 in->ops.atv->set_timings(in, &ddata->timings); in tvc_enable() 89 in->ops.atv->set_type(in, OMAP_DSS_VENC_TYPE_COMPOSITE); in tvc_enable() 91 in->ops.atv->invert_vid_out_polarity(in, in tvc_enable() 95 r = in->ops.atv->enable(in); in tvc_enable() [all …]
|
D | connector-hdmi.c | 38 struct omap_dss_device *in; member 52 struct omap_dss_device *in = ddata->in; in hdmic_connect() local 59 return in->ops.hdmi->connect(in, dssdev); in hdmic_connect() 65 struct omap_dss_device *in = ddata->in; in hdmic_disconnect() local 72 in->ops.hdmi->disconnect(in, dssdev); in hdmic_disconnect() 78 struct omap_dss_device *in = ddata->in; in hdmic_enable() local 89 in->ops.hdmi->set_timings(in, &ddata->timings); in hdmic_enable() 91 r = in->ops.hdmi->enable(in); in hdmic_enable() 103 struct omap_dss_device *in = ddata->in; in hdmic_disable() local 110 in->ops.hdmi->disable(in); in hdmic_disable() [all …]
|
D | encoder-tpd12s015.c | 21 struct omap_dss_device *in; member 36 struct omap_dss_device *in = ddata->in; in tpd_connect() local 39 r = in->ops.hdmi->connect(in, dssdev); in tpd_connect() 59 struct omap_dss_device *in = ddata->in; in tpd_disconnect() local 71 in->ops.hdmi->disconnect(in, &ddata->dssdev); in tpd_disconnect() 77 struct omap_dss_device *in = ddata->in; in tpd_enable() local 83 in->ops.hdmi->set_timings(in, &ddata->timings); in tpd_enable() 85 r = in->ops.hdmi->enable(in); in tpd_enable() 97 struct omap_dss_device *in = ddata->in; in tpd_disable() local 102 in->ops.hdmi->disable(in); in tpd_disable() [all …]
|
D | panel-dpi.c | 22 struct omap_dss_device *in; member 39 struct omap_dss_device *in = ddata->in; in panel_dpi_connect() local 44 return in->ops.dpi->connect(in, dssdev); in panel_dpi_connect() 50 struct omap_dss_device *in = ddata->in; in panel_dpi_disconnect() local 55 in->ops.dpi->disconnect(in, dssdev); in panel_dpi_disconnect() 61 struct omap_dss_device *in = ddata->in; in panel_dpi_enable() local 71 in->ops.dpi->set_data_lines(in, ddata->data_lines); in panel_dpi_enable() 72 in->ops.dpi->set_timings(in, &ddata->videomode); in panel_dpi_enable() 74 r = in->ops.dpi->enable(in); in panel_dpi_enable() 91 struct omap_dss_device *in = ddata->in; in panel_dpi_disable() local [all …]
|
D | encoder-tfp410.c | 19 struct omap_dss_device *in; member 33 struct omap_dss_device *in = ddata->in; in tfp410_connect() local 39 r = in->ops.dpi->connect(in, dssdev); in tfp410_connect() 53 struct omap_dss_device *in = ddata->in; in tfp410_disconnect() local 66 in->ops.dpi->disconnect(in, &ddata->dssdev); in tfp410_disconnect() 72 struct omap_dss_device *in = ddata->in; in tfp410_enable() local 81 in->ops.dpi->set_timings(in, &ddata->timings); in tfp410_enable() 83 in->ops.dpi->set_data_lines(in, ddata->data_lines); in tfp410_enable() 85 r = in->ops.dpi->enable(in); in tfp410_enable() 100 struct omap_dss_device *in = ddata->in; in tfp410_disable() local [all …]
|
D | encoder-opa362.c | 24 struct omap_dss_device *in; member 37 struct omap_dss_device *in = ddata->in; in opa362_connect() local 45 r = in->ops.atv->connect(in, dssdev); in opa362_connect() 59 struct omap_dss_device *in = ddata->in; in opa362_disconnect() local 74 in->ops.atv->disconnect(in, &ddata->dssdev); in opa362_disconnect() 80 struct omap_dss_device *in = ddata->in; in opa362_enable() local 91 in->ops.atv->set_timings(in, &ddata->timings); in opa362_enable() 93 r = in->ops.atv->enable(in); in opa362_enable() 108 struct omap_dss_device *in = ddata->in; in opa362_disable() local 118 in->ops.atv->disable(in); in opa362_disable() [all …]
|
D | panel-sharp-ls037v7dw01.c | 21 struct omap_dss_device *in; member 61 struct omap_dss_device *in = ddata->in; in sharp_ls_connect() local 66 return in->ops.dpi->connect(in, dssdev); in sharp_ls_connect() 72 struct omap_dss_device *in = ddata->in; in sharp_ls_disconnect() local 77 in->ops.dpi->disconnect(in, dssdev); in sharp_ls_disconnect() 83 struct omap_dss_device *in = ddata->in; in sharp_ls_enable() local 93 in->ops.dpi->set_data_lines(in, ddata->data_lines); in sharp_ls_enable() 94 in->ops.dpi->set_timings(in, &ddata->videomode); in sharp_ls_enable() 102 r = in->ops.dpi->enable(in); in sharp_ls_enable() 125 struct omap_dss_device *in = ddata->in; in sharp_ls_disable() local [all …]
|
D | connector-dvi.c | 41 struct omap_dss_device *in; member 53 struct omap_dss_device *in = ddata->in; in dvic_connect() local 58 return in->ops.dvi->connect(in, dssdev); in dvic_connect() 64 struct omap_dss_device *in = ddata->in; in dvic_disconnect() local 69 in->ops.dvi->disconnect(in, dssdev); in dvic_disconnect() 75 struct omap_dss_device *in = ddata->in; in dvic_enable() local 84 in->ops.dvi->set_timings(in, &ddata->timings); in dvic_enable() 86 r = in->ops.dvi->enable(in); in dvic_enable() 98 struct omap_dss_device *in = ddata->in; in dvic_disable() local 103 in->ops.dvi->disable(in); in dvic_disable() [all …]
|
D | panel-lgphilips-lb035q02.c | 41 struct omap_dss_device *in; member 120 struct omap_dss_device *in = ddata->in; in lb035q02_connect() local 126 r = in->ops.dpi->connect(in, dssdev); in lb035q02_connect() 138 struct omap_dss_device *in = ddata->in; in lb035q02_disconnect() local 143 in->ops.dpi->disconnect(in, dssdev); in lb035q02_disconnect() 149 struct omap_dss_device *in = ddata->in; in lb035q02_enable() local 159 in->ops.dpi->set_data_lines(in, ddata->data_lines); in lb035q02_enable() 160 in->ops.dpi->set_timings(in, &ddata->videomode); in lb035q02_enable() 162 r = in->ops.dpi->enable(in); in lb035q02_enable() 180 struct omap_dss_device *in = ddata->in; in lb035q02_disable() local [all …]
|
D | panel-nec-nl8048hl11.c | 21 struct omap_dss_device *in; member 119 struct omap_dss_device *in = ddata->in; in nec_8048_connect() local 125 r = in->ops.dpi->connect(in, dssdev); in nec_8048_connect() 135 struct omap_dss_device *in = ddata->in; in nec_8048_disconnect() local 140 in->ops.dpi->disconnect(in, dssdev); in nec_8048_disconnect() 146 struct omap_dss_device *in = ddata->in; in nec_8048_enable() local 156 in->ops.dpi->set_data_lines(in, ddata->data_lines); in nec_8048_enable() 157 in->ops.dpi->set_timings(in, &ddata->videomode); in nec_8048_enable() 159 r = in->ops.dpi->enable(in); in nec_8048_enable() 174 struct omap_dss_device *in = ddata->in; in nec_8048_disable() local [all …]
|
/drivers/media/platform/qcom/venus/ |
D | hfi_cmds.c | 420 struct hfi_framerate *in = pdata, *frate = prop_data; in pkt_session_set_property_1x() local 422 frate->buffer_type = in->buffer_type; in pkt_session_set_property_1x() 423 frate->framerate = in->framerate; in pkt_session_set_property_1x() 428 struct hfi_uncompressed_format_select *in = pdata; in pkt_session_set_property_1x() local 431 hfi->buffer_type = in->buffer_type; in pkt_session_set_property_1x() 432 hfi->format = in->format; in pkt_session_set_property_1x() 437 struct hfi_framesize *in = pdata, *fsize = prop_data; in pkt_session_set_property_1x() local 439 fsize->buffer_type = in->buffer_type; in pkt_session_set_property_1x() 440 fsize->height = in->height; in pkt_session_set_property_1x() 441 fsize->width = in->width; in pkt_session_set_property_1x() [all …]
|
/drivers/vdpa/mlx5/core/ |
D | resources.c | 13 u32 in[MLX5_ST_SZ_DW(alloc_pd_in)] = {}; in alloc_pd() local 16 MLX5_SET(alloc_pd_in, in, opcode, MLX5_CMD_OP_ALLOC_PD); in alloc_pd() 17 MLX5_SET(alloc_pd_in, in, uid, uid); in alloc_pd() 19 err = mlx5_cmd_exec_inout(mdev, alloc_pd, in, out); in alloc_pd() 28 u32 in[MLX5_ST_SZ_DW(dealloc_pd_in)] = {}; in dealloc_pd() local 31 MLX5_SET(dealloc_pd_in, in, opcode, MLX5_CMD_OP_DEALLOC_PD); in dealloc_pd() 32 MLX5_SET(dealloc_pd_in, in, pd, pdn); in dealloc_pd() 33 MLX5_SET(dealloc_pd_in, in, uid, uid); in dealloc_pd() 34 return mlx5_cmd_exec_in(mdev, dealloc_pd, in); in dealloc_pd() 40 u32 in[MLX5_ST_SZ_DW(query_special_contexts_in)] = {}; in get_null_mkey() local [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_cmd.c | 13 u32 in[MLX5_ST_SZ_DW(query_esw_vport_context_in)] = {}; in mlx5dr_cmd_query_esw_vport_context() local 16 MLX5_SET(query_esw_vport_context_in, in, opcode, in mlx5dr_cmd_query_esw_vport_context() 18 MLX5_SET(query_esw_vport_context_in, in, other_vport, other_vport); in mlx5dr_cmd_query_esw_vport_context() 19 MLX5_SET(query_esw_vport_context_in, in, vport_number, vport_number); in mlx5dr_cmd_query_esw_vport_context() 21 err = mlx5_cmd_exec_inout(mdev, query_esw_vport_context, in, out); in mlx5dr_cmd_query_esw_vport_context() 37 u32 in[MLX5_ST_SZ_DW(query_hca_cap_in)] = {}; in mlx5dr_cmd_query_gvmi() local 47 MLX5_SET(query_hca_cap_in, in, opcode, MLX5_CMD_OP_QUERY_HCA_CAP); in mlx5dr_cmd_query_gvmi() 48 MLX5_SET(query_hca_cap_in, in, other_function, other_vport); in mlx5dr_cmd_query_gvmi() 49 MLX5_SET(query_hca_cap_in, in, function_id, vport_number); in mlx5dr_cmd_query_gvmi() 50 MLX5_SET(query_hca_cap_in, in, op_mod, in mlx5dr_cmd_query_gvmi() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | cmd.c | 46 u32 in[MLX5_FPGA_ACCESS_REG_SZ] = {0}; in mlx5_fpga_access_reg() local 57 MLX5_SET(fpga_access_reg, in, size, size); in mlx5_fpga_access_reg() 58 MLX5_SET64(fpga_access_reg, in, address, addr); in mlx5_fpga_access_reg() 60 memcpy(MLX5_ADDR_OF(fpga_access_reg, in, data), buf, size); in mlx5_fpga_access_reg() 62 err = mlx5_core_access_reg(dev, in, sizeof(in), out, sizeof(out), in mlx5_fpga_access_reg() 75 u32 in[MLX5_ST_SZ_DW(fpga_cap)] = {0}; in mlx5_fpga_caps() local 77 return mlx5_core_access_reg(dev, in, sizeof(in), dev->caps.fpga, in mlx5_fpga_caps() 84 u32 in[MLX5_ST_SZ_DW(fpga_ctrl)] = {0}; in mlx5_fpga_ctrl_op() local 87 MLX5_SET(fpga_ctrl, in, operation, op); in mlx5_fpga_ctrl_op() 89 return mlx5_core_access_reg(dev, in, sizeof(in), out, sizeof(out), in mlx5_fpga_ctrl_op() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
D | cmd.c | 10 u32 in[MLX5_ST_SZ_DW(alloc_sf_in)] = {}; in mlx5_cmd_alloc_sf() local 12 MLX5_SET(alloc_sf_in, in, opcode, MLX5_CMD_OP_ALLOC_SF); in mlx5_cmd_alloc_sf() 13 MLX5_SET(alloc_sf_in, in, function_id, function_id); in mlx5_cmd_alloc_sf() 15 return mlx5_cmd_exec(dev, in, sizeof(in), out, sizeof(out)); in mlx5_cmd_alloc_sf() 21 u32 in[MLX5_ST_SZ_DW(dealloc_sf_in)] = {}; in mlx5_cmd_dealloc_sf() local 23 MLX5_SET(dealloc_sf_in, in, opcode, MLX5_CMD_OP_DEALLOC_SF); in mlx5_cmd_dealloc_sf() 24 MLX5_SET(dealloc_sf_in, in, function_id, function_id); in mlx5_cmd_dealloc_sf() 26 return mlx5_cmd_exec(dev, in, sizeof(in), out, sizeof(out)); in mlx5_cmd_dealloc_sf() 32 u32 in[MLX5_ST_SZ_DW(enable_hca_in)] = {}; in mlx5_cmd_sf_enable_hca() local 34 MLX5_SET(enable_hca_in, in, opcode, MLX5_CMD_OP_ENABLE_HCA); in mlx5_cmd_sf_enable_hca() [all …]
|
/drivers/media/rc/img-ir/ |
D | img-ir-nec.c | 53 static int img_ir_nec_filter(const struct rc_scancode_filter *in, in img_ir_nec_filter() argument 59 data = in->data & 0xff; in img_ir_nec_filter() 60 data_m = in->mask & 0xff; in img_ir_nec_filter() 70 if ((in->data | in->mask) & 0xff000000) in img_ir_nec_filter() 72 else if ((in->data | in->mask) & 0x00ff0000) in img_ir_nec_filter() 81 addr = bitrev8(in->data >> 24); in img_ir_nec_filter() 82 addr_m = bitrev8(in->mask >> 24); in img_ir_nec_filter() 83 addr_inv = bitrev8(in->data >> 16); in img_ir_nec_filter() 84 addr_inv_m = bitrev8(in->mask >> 16); in img_ir_nec_filter() 85 data = bitrev8(in->data >> 8); in img_ir_nec_filter() [all …]
|