| /linux/lib/math/ |
| A D | cordic.c | 48 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/ |
| A D | wacom_w8001.c | 109 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 …]
|
| A D | jornada720_ts.c | 55 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()
|
| A D | wm9712.c | 112 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()
|
| A D | wm9713.c | 112 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()
|
| A D | silead.c | 205 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/ |
| A D | cdat.c | 244 dpa_perf->coord[i] = dent->coord[i]; in update_perf_entry() 715 cxl_bandwidth_add(perf_ctx->coord, perf_ctx->coord, ep_coord); in cxl_endpoint_gather_bandwidth() 836 cxl_bandwidth_add(us_ctx->coord, us_ctx->coord, coords); in DEFINE_FREE() 890 cxl_bandwidth_add(hb_ctx->coord, hb_ctx->coord, ctx->coord); in cxl_rp_gather_bandwidth() 939 cxl_coordinates_combine(ctx->coord, ctx->coord, dport->coord); in cxl_hb_gather_bandwidth() 940 cxl_bandwidth_add(mw_ctx->coord, mw_ctx->coord, ctx->coord); in cxl_hb_gather_bandwidth() 958 memset(coord, 0, sizeof(coord)); in cxl_region_update_bandwidth() 960 cxl_bandwidth_add(coord, coord, ctx->coord); in cxl_region_update_bandwidth() 963 cxlr->coord[i].read_bandwidth = coord[i].read_bandwidth; in cxl_region_update_bandwidth() 964 cxlr->coord[i].write_bandwidth = coord[i].write_bandwidth; in cxl_region_update_bandwidth() [all …]
|
| A D | port.c | 2170 struct access_coordinate *coord) in cxl_endpoint_get_perf_coordinates() argument 2216 if (!coordinates_valid(dport->coord)) in cxl_endpoint_get_perf_coordinates() 2218 cxl_coordinates_combine(c, c, dport->coord); in cxl_endpoint_get_perf_coordinates() 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() 2241 set_access_coordinates(coord, c); in cxl_endpoint_get_perf_coordinates() 2256 if (!coordinates_valid(dport->coord)) in cxl_port_get_switch_dport_bandwidth() 2260 c[i].read_bandwidth = dport->coord[i].read_bandwidth; in cxl_port_get_switch_dport_bandwidth() 2261 c[i].write_bandwidth = dport->coord[i].write_bandwidth; in cxl_port_get_switch_dport_bandwidth()
|
| A D | region.c | 50 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) \ 2369 if (cxlr->coord[i].read_bandwidth) { in cxl_region_update_coordinates() 2372 node_set_perf_attrs(nid, &cxlr->coord[i], i); in cxl_region_update_coordinates() 2438 perf = &cxlr->coord[ACCESS_COORDINATE_CPU]; in cxl_region_calculate_adistance()
|
| /linux/drivers/acpi/numa/ |
| A D | hmat.c | 138 struct access_coordinate *coord) in acpi_get_genport_coordinates() argument 147 coord[ACCESS_COORDINATE_LOCAL] = in acpi_get_genport_coordinates() 149 coord[ACCESS_COORDINATE_CPU] = in acpi_get_genport_coordinates() 308 target->coord[access].read_latency = value; in hmat_update_target_access() 309 target->coord[access].write_latency = value; in hmat_update_target_access() 312 target->coord[access].read_latency = value; in hmat_update_target_access() 315 target->coord[access].write_latency = value; in hmat_update_target_access() 348 coord->read_latency, access); in hmat_update_target_coordinates() 350 coord->write_latency, access); in hmat_update_target_coordinates() 352 coord->read_bandwidth, access); in hmat_update_target_coordinates() [all …]
|
| /linux/net/mac802154/ |
| A D | cfg.c | 320 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()
|
| A D | scan.c | 517 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()
|
| A D | ieee802154_i.h | 308 struct ieee802154_pan_device *coord,
|
| /linux/include/linux/ |
| A D | node.h | 79 void node_set_perf_attrs(unsigned int nid, struct access_coordinate *coord, 88 struct access_coordinate *coord, in node_set_perf_attrs() argument
|
| A D | acpi.h | 438 int acpi_get_genport_coordinates(u32 uid, struct access_coordinate *coord); 441 struct access_coordinate *coord) in acpi_get_genport_coordinates() argument 1571 int hmat_update_target_coordinates(int nid, struct access_coordinate *coord, 1575 struct access_coordinate *coord, in hmat_update_target_coordinates() argument
|
| /linux/drivers/cxl/ |
| A D | acpi.c | 203 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()
|
| A D | cxl.h | 537 struct access_coordinate coord[ACCESS_COORDINATE_MAX]; member 647 struct access_coordinate *coord, int entries, 682 struct access_coordinate coord[ACCESS_COORDINATE_MAX]; member 892 struct access_coordinate *coord);
|
| /linux/sound/pci/au88x0/ |
| A D | au88x0_a3d.c | 693 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/mm/ |
| A D | memory-tiers.c | 728 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/ |
| A D | trace.h | 362 struct ieee802154_addr *coord), 363 TP_ARGS(wpan_phy, wpan_dev, coord), 372 __entry->addr = coord->extended_addr;
|
| A D | rdev-ops.h | 270 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()
|
| A D | nl802154.c | 1643 struct ieee802154_addr coord; in nl802154_associate() local 1658 coord.pan_id = nla_get_le16(info->attrs[NL802154_ATTR_PAN_ID]); in nl802154_associate() 1659 coord.mode = IEEE802154_ADDR_LONG; in nl802154_associate() 1660 coord.extended_addr = nla_get_le64(info->attrs[NL802154_ATTR_EXTENDED_ADDR]); in nl802154_associate() 1663 err = rdev_associate(rdev, wpan_dev, &coord); in nl802154_associate() 1667 le16_to_cpu(coord.pan_id), err); in nl802154_associate()
|
| /linux/drivers/base/ |
| A D | node.c | 84 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/tools/testing/cxl/test/ |
| A D | cxl.c | 990 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/include/net/ |
| A D | cfg802154.h | 83 struct ieee802154_addr *coord);
|