Home
last modified time | relevance | path

Searched refs:coord (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.15/lib/math/
H A Dcordic.c48 struct cordic_iq coord; in cordic_calc_iq() local
54 coord.i = CORDIC_ANGLE_GEN; in cordic_calc_iq()
55 coord.q = 0; in cordic_calc_iq()
73 valtmp = coord.i - (coord.q >> iter); in cordic_calc_iq()
74 coord.q += (coord.i >> iter); in cordic_calc_iq()
77 valtmp = coord.i + (coord.q >> iter); in cordic_calc_iq()
78 coord.q -= (coord.i >> iter); in cordic_calc_iq()
81 coord.i = valtmp; in cordic_calc_iq()
84 coord.i *= signx; in cordic_calc_iq()
85 coord.q *= signx; in cordic_calc_iq()
[all …]
/linux-6.15/drivers/input/touchscreen/
H A Dwacom_w8001.c109 memset(coord, 0, sizeof(*coord)); in parse_pen_data()
111 coord->rdy = data[0] & 0x20; in parse_pen_data()
113 coord->f1 = data[0] & 0x02; in parse_pen_data()
114 coord->f2 = data[0] & 0x04; in parse_pen_data()
230 if (!coord->f2) { in report_pen_events()
259 if (!coord->rdy) in report_pen_events()
266 unsigned int x = coord->x; in report_single_touch()
267 unsigned int y = coord->y; in report_single_touch()
285 struct w8001_coord coord; in w8001_interrupt() local
424 struct w8001_coord coord; in w8001_setup_pen() local
[all …]
H A Djornada720_ts.c55 int coord, high_bits = coords[3]; in jornada720_ts_average() local
57 coord = coords[0] | ((high_bits & 0x03) << 8); in jornada720_ts_average()
58 coord += coords[1] | ((high_bits & 0x0c) << 6); in jornada720_ts_average()
59 coord += coords[2] | ((high_bits & 0x30) << 4); in jornada720_ts_average()
61 return coord / 3; in jornada720_ts_average()
H A Dwm9712.c112 static int coord; variable
113 module_param(coord, int, 0);
114 MODULE_PARM_DESC(coord, "Polling coordinate mode");
209 if (coord) in wm9712_phy_init()
383 if (coord) { in wm9712_poll_touch()
H A Dwm9713.c112 static int coord; variable
113 module_param(coord, int, 0);
114 MODULE_PARM_DESC(coord, "Polling coordinate mode");
203 if (coord) in wm9713_phy_init()
394 if (coord) { in wm9713_poll_touch()
H A Dsilead.c205 u8 *coord = buf + SILEAD_POINT_DATA_LEN; in silead_ts_handle_pen_data() local
222 get_unaligned_le16(&coord[SILEAD_POINT_X_OFF]) & 0xfff, in silead_ts_handle_pen_data()
223 get_unaligned_le16(&coord[SILEAD_POINT_Y_OFF]) & 0xfff); in silead_ts_handle_pen_data()
/linux-6.15/drivers/cxl/core/
H A Dcdat.c244 dpa_perf->coord[i] = dent->coord[i]; in update_perf_entry()
721 cxl_bandwidth_add(perf_ctx->coord, perf_ctx->coord, ep_coord); in cxl_endpoint_gather_bandwidth()
842 cxl_bandwidth_add(us_ctx->coord, us_ctx->coord, coords); in DEFINE_FREE()
896 cxl_bandwidth_add(hb_ctx->coord, hb_ctx->coord, ctx->coord); in cxl_rp_gather_bandwidth()
945 cxl_coordinates_combine(ctx->coord, ctx->coord, dport->coord); in cxl_hb_gather_bandwidth()
946 cxl_bandwidth_add(mw_ctx->coord, mw_ctx->coord, ctx->coord); in cxl_hb_gather_bandwidth()
964 memset(coord, 0, sizeof(coord)); in cxl_region_update_bandwidth()
966 cxl_bandwidth_add(coord, coord, ctx->coord); in cxl_region_update_bandwidth()
969 cxlr->coord[i].read_bandwidth = coord[i].read_bandwidth; in cxl_region_update_bandwidth()
970 cxlr->coord[i].write_bandwidth = coord[i].write_bandwidth; in cxl_region_update_bandwidth()
[all …]
H A Dport.c2179 struct access_coordinate *coord) in cxl_endpoint_get_perf_coordinates() argument
2225 if (!coordinates_valid(dport->coord)) in cxl_endpoint_get_perf_coordinates()
2227 cxl_coordinates_combine(c, c, dport->coord); in cxl_endpoint_get_perf_coordinates()
2234 if (!coordinates_valid(dport->coord)) in cxl_endpoint_get_perf_coordinates()
2236 cxl_coordinates_combine(c, c, dport->coord); in cxl_endpoint_get_perf_coordinates()
2250 set_access_coordinates(coord, c); in cxl_endpoint_get_perf_coordinates()
2265 if (!coordinates_valid(dport->coord)) in cxl_port_get_switch_dport_bandwidth()
2269 c[i].read_bandwidth = dport->coord[i].read_bandwidth; in cxl_port_get_switch_dport_bandwidth()
2270 c[i].write_bandwidth = dport->coord[i].write_bandwidth; in cxl_port_get_switch_dport_bandwidth()
H A Dregion.c50 if (cxlr->coord[level].attrib == 0) \
53 return sysfs_emit(buf, "%u\n", cxlr->coord[level].attrib); \
94 cxlr->coord[level].read_latency == 0) \
98 cxlr->coord[level].write_latency == 0) \
102 cxlr->coord[level].read_bandwidth == 0) \
106 cxlr->coord[level].write_bandwidth == 0) \
2405 if (cxlr->coord[i].read_bandwidth) { in cxl_region_update_coordinates()
2408 node_set_perf_attrs(nid, &cxlr->coord[i], i); in cxl_region_update_coordinates()
2474 perf = &cxlr->coord[ACCESS_COORDINATE_CPU]; in cxl_region_calculate_adistance()
/linux-6.15/drivers/acpi/numa/
H A Dhmat.c177 struct access_coordinate *coord) in acpi_get_genport_coordinates() argument
186 coord[ACCESS_COORDINATE_LOCAL] = in acpi_get_genport_coordinates()
188 coord[ACCESS_COORDINATE_CPU] = in acpi_get_genport_coordinates()
347 target->coord[access].read_latency = value; in hmat_update_target_access()
348 target->coord[access].write_latency = value; in hmat_update_target_access()
351 target->coord[access].read_latency = value; in hmat_update_target_access()
354 target->coord[access].write_latency = value; in hmat_update_target_access()
387 coord->read_latency, access); in hmat_update_target_coordinates()
389 coord->write_latency, access); in hmat_update_target_coordinates()
391 coord->read_bandwidth, access); in hmat_update_target_coordinates()
[all …]
/linux-6.15/net/mac802154/
H A Dcfg.c320 struct ieee802154_addr *coord) in mac802154_associate() argument
323 u64 ceaddr = swab64((__force u64)coord->extended_addr); in mac802154_associate()
339 if (coord->mode == IEEE802154_SHORT_ADDRESSING) in mac802154_associate()
346 parent->pan_id = coord->pan_id; in mac802154_associate()
347 parent->mode = coord->mode; in mac802154_associate()
348 parent->extended_addr = coord->extended_addr; in mac802154_associate()
356 ret = drv_set_pan_id(local, coord->pan_id); in mac802154_associate()
371 wpan_dev->pan_id = coord->pan_id; in mac802154_associate()
H A Dscan.c517 struct ieee802154_pan_device *coord, in mac802154_perform_association() argument
520 u64 ceaddr = swab64((__force u64)coord->extended_addr); in mac802154_perform_association()
532 frame.mhr.fc.dest_addr_mode = (coord->mode == IEEE802154_ADDR_LONG) ? in mac802154_perform_association()
539 frame.mhr.dest.mode = coord->mode; in mac802154_perform_association()
540 frame.mhr.dest.pan_id = coord->pan_id; in mac802154_perform_association()
541 if (coord->mode == IEEE802154_ADDR_LONG) in mac802154_perform_association()
542 frame.mhr.dest.extended_addr = coord->extended_addr; in mac802154_perform_association()
544 frame.mhr.dest.short_addr = coord->short_addr; in mac802154_perform_association()
566 local->assoc_dev = coord; in mac802154_perform_association()
H A Dieee802154_i.h305 struct ieee802154_pan_device *coord,
/linux-6.15/include/linux/
H A Dnode.h86 void node_set_perf_attrs(unsigned int nid, struct access_coordinate *coord,
95 struct access_coordinate *coord, in node_set_perf_attrs() argument
H A Dacpi.h437 int acpi_get_genport_coordinates(u32 uid, struct access_coordinate *coord);
440 struct access_coordinate *coord) in acpi_get_genport_coordinates() argument
1580 int hmat_update_target_coordinates(int nid, struct access_coordinate *coord,
1584 struct access_coordinate *coord, in hmat_update_target_coordinates() argument
/linux-6.15/drivers/cxl/
H A Dacpi.c203 cxl_acpi_evaluate_qtg_dsm(acpi_handle handle, struct access_coordinate *coord, in cxl_acpi_evaluate_qtg_dsm() argument
208 [0].integer = { ACPI_TYPE_INTEGER, coord->read_latency }, in cxl_acpi_evaluate_qtg_dsm()
209 [1].integer = { ACPI_TYPE_INTEGER, coord->write_latency }, in cxl_acpi_evaluate_qtg_dsm()
210 [2].integer = { ACPI_TYPE_INTEGER, coord->read_bandwidth }, in cxl_acpi_evaluate_qtg_dsm()
211 [3].integer = { ACPI_TYPE_INTEGER, coord->write_bandwidth }, in cxl_acpi_evaluate_qtg_dsm()
285 struct access_coordinate *coord, int entries, in cxl_acpi_qos_class() argument
298 return cxl_acpi_evaluate_qtg_dsm(handle, coord, entries, qos_class); in cxl_acpi_qos_class()
551 return acpi_get_genport_coordinates(uid, dport->coord); in get_genport_coordinates()
H A Dcxl.h528 struct access_coordinate coord[ACCESS_COORDINATE_MAX]; member
639 struct access_coordinate *coord, int entries,
675 struct access_coordinate coord[ACCESS_COORDINATE_MAX]; member
892 struct access_coordinate *coord);
/linux-6.15/sound/pci/au88x0/
H A Dau88x0_a3d.c693 static void vortex_a3d_coord2hrtf(a3d_Hrtf_t hrtf, int *coord) in vortex_a3d_coord2hrtf() argument
698 static void vortex_a3d_coord2itd(a3d_Itd_t itd, int *coord) in vortex_a3d_coord2itd() argument
769 int coord[6]; in snd_vortex_a3d_hrtf_put() local
771 coord[i] = ucontrol->value.integer.value[i]; in snd_vortex_a3d_hrtf_put()
773 vortex_a3d_coord2hrtf(a->hrtf[0], coord); in snd_vortex_a3d_hrtf_put()
774 vortex_a3d_coord2hrtf(a->hrtf[1], coord); in snd_vortex_a3d_hrtf_put()
785 int coord[6]; in snd_vortex_a3d_itd_put() local
788 coord[i] = ucontrol->value.integer.value[i]; in snd_vortex_a3d_itd_put()
790 vortex_a3d_coord2itd(a->hrtf[0], coord); in snd_vortex_a3d_itd_put()
791 vortex_a3d_coord2itd(a->hrtf[1], coord); in snd_vortex_a3d_itd_put()
/linux-6.15/mm/
H A Dmemory-tiers.c728 static void dump_hmem_attrs(struct access_coordinate *coord, const char *prefix) in dump_hmem_attrs() argument
732 prefix, coord->read_latency, coord->write_latency, in dump_hmem_attrs()
733 coord->read_bandwidth, coord->write_bandwidth); in dump_hmem_attrs()
/linux-6.15/net/ieee802154/
H A Dtrace.h362 struct ieee802154_addr *coord),
363 TP_ARGS(wpan_phy, wpan_dev, coord),
372 __entry->addr = coord->extended_addr;
H A Drdev-ops.h270 struct ieee802154_addr *coord) in rdev_associate() argument
277 trace_802154_rdev_associate(&rdev->wpan_phy, wpan_dev, coord); in rdev_associate()
278 ret = rdev->ops->associate(&rdev->wpan_phy, wpan_dev, coord); in rdev_associate()
H A Dnl802154.c1637 struct ieee802154_addr coord; in nl802154_associate() local
1652 coord.pan_id = nla_get_le16(info->attrs[NL802154_ATTR_PAN_ID]); in nl802154_associate()
1653 coord.mode = IEEE802154_ADDR_LONG; in nl802154_associate()
1654 coord.extended_addr = nla_get_le64(info->attrs[NL802154_ATTR_EXTENDED_ADDR]); in nl802154_associate()
1657 err = rdev_associate(rdev, wpan_dev, &coord); in nl802154_associate()
1661 le16_to_cpu(coord.pan_id), err); in nl802154_associate()
/linux-6.15/drivers/base/
H A Dnode.c84 struct access_coordinate coord; member
170 to_access_nodes(dev)->coord.property); \
193 void node_set_perf_attrs(unsigned int nid, struct access_coordinate *coord, in node_set_perf_attrs() argument
208 c->coord = *coord; in node_set_perf_attrs()
/linux-6.15/tools/testing/cxl/test/
H A Dcxl.c990 dpa_perf->coord[i].read_latency = 500; in dpa_perf_setup()
991 dpa_perf->coord[i].write_latency = 500; in dpa_perf_setup()
992 dpa_perf->coord[i].read_bandwidth = 1000; in dpa_perf_setup()
993 dpa_perf->coord[i].write_bandwidth = 1000; in dpa_perf_setup()
/linux-6.15/include/net/
H A Dcfg802154.h83 struct ieee802154_addr *coord);

12