Home
last modified time | relevance | path

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

/linux/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/drivers/input/touchscreen/
H A Dwacom_w8001.c107 static void parse_pen_data(u8 *data, struct w8001_coord *coord) in parse_pen_data() argument
109 memset(coord, 0, sizeof(*coord)); in parse_pen_data()
111 coord->rdy = data[0] & 0x20; in parse_pen_data()
112 coord->tsw = data[0] & 0x01; in parse_pen_data()
113 coord->f1 = data[0] & 0x02; in parse_pen_data()
114 coord->f2 = data[0] & 0x04; in parse_pen_data()
116 coord->x = (data[1] & 0x7F) << 9; in parse_pen_data()
117 coord->x |= (data[2] & 0x7F) << 2; in parse_pen_data()
118 coord->x |= (data[6] & 0x60) >> 5; in parse_pen_data()
120 coord->y = (data[3] & 0x7F) << 9; in parse_pen_data()
[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 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/drivers/cxl/core/
H A Dcdat.c16 struct access_coordinate coord[ACCESS_COORDINATE_MAX]; member
90 static void __cxl_access_coordinate_set(struct access_coordinate *coord, in __cxl_access_coordinate_set() argument
95 coord->read_latency = val; in __cxl_access_coordinate_set()
96 coord->write_latency = val; in __cxl_access_coordinate_set()
99 coord->read_latency = val; in __cxl_access_coordinate_set()
102 coord->write_latency = val; in __cxl_access_coordinate_set()
105 coord->read_bandwidth = val; in __cxl_access_coordinate_set()
106 coord->write_bandwidth = val; in __cxl_access_coordinate_set()
109 coord->read_bandwidth = val; in __cxl_access_coordinate_set()
112 coord->write_bandwidth = val; in __cxl_access_coordinate_set()
[all …]
H A Dport.c2329 struct access_coordinate *coord) in cxl_endpoint_get_perf_coordinates() argument
2375 if (!coordinates_valid(dport->coord)) in cxl_endpoint_get_perf_coordinates()
2377 cxl_coordinates_combine(c, c, dport->coord); in cxl_endpoint_get_perf_coordinates()
2384 if (!coordinates_valid(dport->coord)) in cxl_endpoint_get_perf_coordinates()
2386 cxl_coordinates_combine(c, c, dport->coord); in cxl_endpoint_get_perf_coordinates()
2400 set_access_coordinates(coord, c); in cxl_endpoint_get_perf_coordinates()
2415 if (!coordinates_valid(dport->coord)) in cxl_port_get_switch_dport_bandwidth()
2419 c[i].read_bandwidth = dport->coord[i].read_bandwidth; in cxl_port_get_switch_dport_bandwidth()
2420 c[i].write_bandwidth = dport->coord[i].write_bandwidth; in cxl_port_get_switch_dport_bandwidth()
H A Dregion.c58 if (cxlr->coord[level].attrib == 0) \
61 return sysfs_emit(buf, "%u\n", cxlr->coord[level].attrib); \
102 cxlr->coord[level].read_latency == 0) \
106 cxlr->coord[level].write_latency == 0) \
110 cxlr->coord[level].read_bandwidth == 0) \
114 cxlr->coord[level].write_bandwidth == 0) \
2498 if (cxlr->coord[i].read_bandwidth) { in cxl_region_update_coordinates()
2499 node_update_perf_attrs(nid, &cxlr->coord[i], i); in cxl_region_update_coordinates()
2565 perf = &cxlr->coord[ACCESS_COORDINATE_CPU]; in cxl_region_calculate_adistance()
/linux/drivers/acpi/numa/
H A Dhmat.c72 struct access_coordinate coord[NODE_ACCESS_CLASS_MAX]; member
176 struct access_coordinate *coord) in acpi_get_genport_coordinates() argument
185 coord[ACCESS_COORDINATE_LOCAL] = in acpi_get_genport_coordinates()
186 target->coord[NODE_ACCESS_CLASS_GENPORT_SINK_LOCAL]; in acpi_get_genport_coordinates()
187 coord[ACCESS_COORDINATE_CPU] = in acpi_get_genport_coordinates()
188 target->coord[NODE_ACCESS_CLASS_GENPORT_SINK_CPU]; in acpi_get_genport_coordinates()
346 target->coord[access].read_latency = value; in hmat_update_target_access()
347 target->coord[access].write_latency = value; in hmat_update_target_access()
350 target->coord[access].read_latency = value; in hmat_update_target_access()
353 target->coord[access].write_latency = value; in hmat_update_target_access()
[all …]
/linux/include/linux/
H A Dnode.h86 void node_set_perf_attrs(unsigned int nid, struct access_coordinate *coord,
88 void node_update_perf_attrs(unsigned int nid, struct access_coordinate *coord,
97 struct access_coordinate *coord, in node_set_perf_attrs() argument
103 struct access_coordinate *coord, in node_update_perf_attrs() argument
/linux/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()
/linux/drivers/base/
H A Dnode.c86 struct access_coordinate coord; member
193 to_access_nodes(dev)->coord.property); \
216 void node_set_perf_attrs(unsigned int nid, struct access_coordinate *coord, in node_set_perf_attrs() argument
231 c->coord = *coord; in node_set_perf_attrs()
243 if (mempolicy_set_node_perf(nid, coord)) { in node_set_perf_attrs()
257 void node_update_perf_attrs(unsigned int nid, struct access_coordinate *coord, in node_update_perf_attrs() argument
272 access_node->coord = *coord; in node_update_perf_attrs()
284 if (mempolicy_set_node_perf(nid, coord)) in node_update_perf_attrs()
/linux/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/drivers/cxl/
H A Dacpi.c223 cxl_acpi_evaluate_qtg_dsm(acpi_handle handle, struct access_coordinate *coord, in cxl_acpi_evaluate_qtg_dsm() argument
228 [0].integer = { ACPI_TYPE_INTEGER, coord->read_latency }, in cxl_acpi_evaluate_qtg_dsm()
229 [1].integer = { ACPI_TYPE_INTEGER, coord->write_latency }, in cxl_acpi_evaluate_qtg_dsm()
230 [2].integer = { ACPI_TYPE_INTEGER, coord->read_bandwidth }, in cxl_acpi_evaluate_qtg_dsm()
231 [3].integer = { ACPI_TYPE_INTEGER, coord->write_bandwidth }, in cxl_acpi_evaluate_qtg_dsm()
305 struct access_coordinate *coord, int entries, in cxl_acpi_qos_class() argument
318 return cxl_acpi_evaluate_qtg_dsm(handle, coord, entries, qos_class); in cxl_acpi_qos_class()
637 return acpi_get_genport_coordinates(uid, dport->coord); in get_genport_coordinates()
H A Dcxl.h551 struct access_coordinate coord[ACCESS_COORDINATE_MAX]; member
664 struct access_coordinate *coord, int entries,
700 struct access_coordinate coord[ACCESS_COORDINATE_MAX]; member
935 struct access_coordinate *coord);
/linux/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/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()
/linux/tools/testing/cxl/test/
H A Dcxl.c1079 dpa_perf->coord[i].read_latency = 500; in dpa_perf_setup()
1080 dpa_perf->coord[i].write_latency = 500; in dpa_perf_setup()
1081 dpa_perf->coord[i].read_bandwidth = 1000; in dpa_perf_setup()
1082 dpa_perf->coord[i].write_bandwidth = 1000; in dpa_perf_setup()
/linux/include/net/
H A Dcfg802154.h83 struct ieee802154_addr *coord);
/linux/Documentation/driver-api/media/drivers/
H A Dcx2341x-devel.rst3463 osd x coord for left edge
3466 osd y coord for top edge
3470 osd x coord for right edge
3473 osd y coord for bottom edge