Home
last modified time | relevance | path

Searched refs:coord (Results 1 – 24 of 24) 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/cxl/core/
H A Dcdat.c16 struct access_coordinate coord[ACCESS_COORDINATE_MAX]; member
98 static void __cxl_access_coordinate_set(struct access_coordinate *coord, in __cxl_access_coordinate_set()
103 coord->read_latency = val; in __cxl_access_coordinate_set()
104 coord->write_latency = val; in __cxl_access_coordinate_set()
107 coord->read_latency = val; in __cxl_access_coordinate_set()
110 coord->write_latency = val; in __cxl_access_coordinate_set()
113 coord->read_bandwidth = val; in __cxl_access_coordinate_set()
114 coord->write_bandwidth = val; in __cxl_access_coordinate_set()
117 coord->read_bandwidth = val; in cxl_access_coordinate_set() argument
120 coord in cxl_access_coordinate_set()
90 __cxl_access_coordinate_set(struct access_coordinate * coord,int access,unsigned int val) __cxl_access_coordinate_set() argument
559 cxl_bandwidth_add(struct access_coordinate * coord,struct access_coordinate * c1,struct access_coordinate * c2) cxl_bandwidth_add() argument
606 struct access_coordinate coord[ACCESS_COORDINATE_MAX]; global() member
957 struct access_coordinate coord[ACCESS_COORDINATE_MAX]; cxl_region_update_bandwidth() local
[all...]
H A Dport.c2451 * @coord: output performance data in cxl_port_get_switch_dport_bandwidth()
2456 struct access_coordinate *coord) in cxl_port_get_switch_dport_bandwidth()
2484 memset(coord, 0, sizeof(*coord) * ACCESS_COORDINATE_MAX);
2504 if (!coordinates_valid(dport->coord))
2506 cxl_coordinates_combine(c, c, dport->coord); in cxl_debugfs_create_dir()
2513 if (!coordinates_valid(dport->coord)) in cxl_core_init()
2515 cxl_coordinates_combine(c, c, dport->coord); in cxl_core_init()
2529 set_access_coordinates(coord, c); in cxl_core_init()
2544 if (!coordinates_valid(dport->coord)) in cxl_core_init()
2370 cxl_endpoint_get_perf_coordinates(struct cxl_port * port,struct access_coordinate * coord) cxl_endpoint_get_perf_coordinates() argument
[all...]
H A Dregion.c60 if (cxlr->coord[level].attrib == 0) \
63 return sysfs_emit(buf, "%u\n", cxlr->coord[level].attrib); \
104 cxlr->coord[level].read_latency == 0) \
108 cxlr->coord[level].write_latency == 0) \
112 cxlr->coord[level].read_bandwidth == 0) \
116 cxlr->coord[level].write_bandwidth == 0) \
2640 if (cxlr->coord[i].read_bandwidth) { in cxl_region_update_coordinates()
2651 node_set_perf_attrs(nid, &cxlr->coord[i], i);
2653 node_update_perf_attrs(nid, &cxlr->coord[i], i); in cxl_region_perf_attrs_callback()
2719 perf = &cxlr->coord[ACCESS_COORDINATE_CP in kill_regions()
[all...]
/linux/drivers/net/wwan/
H A Dwwan_hwsim.c237 static const unsigned int coord[4 * 2] = { 43, 44, 8528, 0, in wwan_hwsim_nmea_emul_timer() local
254 coord[0], coord[1], coord[2], in wwan_hwsim_nmea_emul_timer()
255 coord[3] ? 'S' : 'N', in wwan_hwsim_nmea_emul_timer()
256 coord[4], coord[5], coord[6], in wwan_hwsim_nmea_emul_timer()
257 coord[7] ? 'W' : 'E'); in wwan_hwsim_nmea_emul_timer()
262 coord[ in wwan_hwsim_nmea_emul_timer()
[all...]
/linux/drivers/input/touchscreen/
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 Dhimax_hx852x.c264 struct hx852x_coord *coord = (struct hx852x_coord *)buf; in hx852x_handle_events() local
287 x = be16_to_cpu(coord[i].x); in hx852x_handle_events()
288 y = be16_to_cpu(coord[i].y); in hx852x_handle_events()
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/acpi/numa/
H A Dhmat.c72 struct access_coordinate coord[NODE_ACCESS_CLASS_MAX]; member
168 * @coord: The access coordinates written back out for the generic port.
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[acces 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
H A Dacpi.h487 int acpi_get_genport_coordinates(u32 uid, struct access_coordinate *coord);
490 struct access_coordinate *coord) in acpi_get_genport_coordinates() argument
/linux/drivers/gpu/drm/verisilicon/
H A Dvs_cursor_plane.c36 static bool vs_cursor_plane_check_coord(int32_t coord) in vs_cursor_plane_check_coord()
38 if (coord >= 0) in vs_cursor_plane_check_coord()
39 return coord <= VSDC_CURSOR_LOCATION_MAX_POSITIVE; in vs_cursor_plane_check_coord()
41 return (-coord) <= VSDC_CURSOR_LOCATION_MAX_NEGATIVE; in vs_cursor_plane_check_coord()
35 vs_cursor_plane_check_coord(int32_t coord) vs_cursor_plane_check_coord() 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.c528 struct ieee802154_pan_device *coord, in mac802154_perform_association() argument
531 u64 ceaddr = swab64((__force u64)coord->extended_addr); in mac802154_perform_association()
545 frame.mhr.fc.dest_addr_mode = (coord->mode == IEEE802154_ADDR_LONG) ? in mac802154_perform_association()
552 frame.mhr.dest.mode = coord->mode; in mac802154_perform_association()
553 frame.mhr.dest.pan_id = coord->pan_id; in mac802154_perform_association()
554 if (coord->mode == IEEE802154_ADDR_LONG) in mac802154_perform_association()
555 frame.mhr.dest.extended_addr = coord->extended_addr; in mac802154_perform_association()
557 frame.mhr.dest.short_addr = coord->short_addr; in mac802154_perform_association()
581 local->assoc_dev_extended_addr = coord->extended_addr; in mac802154_perform_association()
H A Dieee802154_i.h318 struct ieee802154_pan_device *coord,
/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/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/drivers/cxl/
H A Dcxl.h494 * @coord: QoS access coordinates for the region member
510 struct access_coordinate coord[ACCESS_COORDINATE_MAX];
617 struct access_coordinate *coord, int entries,
659 * @coord: access coordinates (bandwidth and latency performance attributes)
671 struct access_coordinate coord[ACCESS_COORDINATE_MAX];
934 struct access_coordinate *coord);
655 struct access_coordinate coord[ACCESS_COORDINATE_MAX]; global() member
/linux/include/cxl/
H A Dcxl.h122 * @coord: QoS performance data (i.e. latency, bandwidth)
128 struct access_coordinate coord[ACCESS_COORDINATE_MAX]; member
/linux/include/net/
H A Dcfg802154.h83 struct ieee802154_addr *coord);
/linux/tools/testing/cxl/test/
H A Dcxl.c1640 dpa_perf->coord[i].read_latency = 500;
1641 dpa_perf->coord[i].write_latency = 500;
1642 dpa_perf->coord[i].read_bandwidth = 1000; in mock_region_intersects_soft_reserve()
1643 dpa_perf->coord[i].write_bandwidth = 1000; in mock_region_intersects_soft_reserve()
/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