/third_party/libdrm/freedreno/msm/ |
H A D | msm_pipe.c | 41 ret = drmCommandWriteRead(pipe->dev->fd, DRM_MSM_GET_PARAM, in query_param() 81 struct fd_device *dev = pipe->dev; in msm_pipe_wait() local 90 ret = drmCommandWrite(dev->fd, DRM_MSM_WAIT_FENCE, &req, sizeof(req)); in msm_pipe_wait() 108 if (fd_device_version(pipe->dev) < FD_VERSION_SUBMIT_QUEUES) { in open_submitqueue() 117 ret = drmCommandWriteRead(pipe->dev->fd, DRM_MSM_SUBMITQUEUE_NEW, in open_submitqueue() 130 if (fd_device_version(pipe->dev) < FD_VERSION_SUBMIT_QUEUES) in close_submitqueue() 133 drmCommandWrite(pipe->dev->fd, DRM_MSM_SUBMITQUEUE_CLOSE, in close_submitqueue() 168 drm_private struct fd_pipe * msm_pipe_new(struct fd_device *dev, in msm_pipe_new() argument 188 pipe->dev in msm_pipe_new() [all...] |
H A D | msm_bo.c | 44 ret = drmCommandWriteRead(bo->dev->fd, DRM_MSM_GEM_INFO, in bo_allocate() 76 return drmCommandWrite(bo->dev->fd, DRM_MSM_GEM_CPU_PREP, &req, sizeof(req)); in msm_bo_cpu_prep() 85 drmCommandWrite(bo->dev->fd, DRM_MSM_GEM_CPU_FINI, &req, sizeof(req)); in msm_bo_cpu_fini() 97 if (bo->dev->version < FD_VERSION_MADVISE) in msm_bo_madvise() 100 ret = drmCommandWriteRead(bo->dev->fd, DRM_MSM_GEM_MADVISE, &req, sizeof(req)); in msm_bo_madvise() 114 drmCommandWriteRead(bo->dev->fd, DRM_MSM_GEM_INFO, &req, sizeof(req)); in msm_bo_iova() 136 drm_private int msm_bo_new_handle(struct fd_device *dev, in msm_bo_new_handle() argument 145 ret = drmCommandWriteRead(dev->fd, DRM_MSM_GEM_NEW, in msm_bo_new_handle() 156 drm_private struct fd_bo * msm_bo_from_handle(struct fd_device *dev, in msm_bo_from_handle() argument
|
/third_party/ltp/testcases/kernel/controllers/memctl/ |
H A D | run_memctl_test.sh | 60 USAGE_FROM_USAGE_IN_BYTES=`cat /dev/memctl/group_1/memory.usage_in_bytes`; 69 SECOND_READ=`cat /dev/memctl/group_1/memory.usage_in_bytes`; 132 MYGROUP=/dev/memctl/group_1; 133 cp memctl_test01 memctl_task_$i # 2>/dev/null; 151 GRP1_MEMUSAGE=`cat /dev/memctl/group_1/memory.usage_in_bytes`; 157 GRP2_MEMUSAGE_OLD=`cat /dev/memctl/group_2/memory.usage_in_bytes`; 162 if [ -f "/dev/memctl/group_2/memory.move_charge_at_immigrate" ] 164 echo 0 > /dev/memctl/group_2/memory.move_charge_at_immigrate 170 echo ${PID[$i]} >>/dev/memctl/group_2/tasks; 178 GRP2_TASKS=`cat /dev/memct [all...] |
/third_party/ltp/testcases/kernel/containers/netns/ |
H A D | netns_lib.sh | 146 ip netns > /dev/null || \ 154 ip netns del $NS_HANDLE0 2>/dev/null 155 ip netns del $NS_HANDLE1 2>/dev/null 180 /proc/sys/net/ipv6/conf/veth0/accept_ra >/dev/null 183 /proc/sys/net/ipv6/conf/veth1/accept_ra >/dev/null 189 ROD $NS_EXEC $NS_HANDLE0 $NS_TYPE ip address add $IP0/$NETMASK dev veth0 190 ROD $NS_EXEC $NS_HANDLE1 $NS_TYPE ip address add $IP1/$NETMASK dev veth1 208 kill -9 $NS_HANDLE0 2>/dev/null 209 kill -9 $NS_HANDLE1 2>/dev/null 220 ip netns del $NS_HANDLE0 2>/dev/nul [all...] |
/third_party/FreeBSD/sys/dev/usb/controller/ |
H A D | usb_controller.c | 89 usb_probe(device_t dev) in usb_probe() argument 115 usb_attach(device_t dev) in usb_attach() argument 117 struct usb_bus *bus = (struct usb_bus *)device_get_ivars(dev); in usb_attach() 124 device_printf(dev, "USB device has no ivars\n"); in usb_attach() 131 bus->bus_roothold = root_mount_hold(device_get_nameunit(dev)); in usb_attach() 137 info.nameunit = device_get_nameunit(dev); in usb_attach() 143 usb_attach_sub(dev, bus); in usb_attach() 151 usb_detach(device_t dev) in usb_detach() argument 153 struct usb_bus *bus = (struct usb_bus *)device_get_softc(dev); in usb_detach() 213 usb_suspend(device_t dev) in usb_suspend() argument 241 usb_resume(device_t dev) usb_resume() argument 291 usb_shutdown(device_t dev) usb_shutdown() argument 391 device_t dev; usb_bus_detach() local 612 device_t dev; usb_bus_attach() local 709 usb_attach_sub(device_t dev, struct usb_bus *bus) usb_attach_sub() argument [all...] |
/third_party/libinput/test/ |
H A D | litest-device-protocol-a-touch-screen.c | 43 struct protocolA_device *dev = zalloc(sizeof(*dev)); in protocolA_create() local 45 dev->nslots = PROTOCOL_A_MAX_SLOTS; in protocolA_create() 47 d->private = dev; in protocolA_create() 55 struct protocolA_device *dev = d->private; in protocolA_down() local 64 for (unsigned int i = 0; i < dev->nslots; i++) { in protocolA_down() 65 struct slot *s = &dev->slots[i]; in protocolA_down() 100 struct protocolA_device *dev = d->private; in protocolA_move() local 108 for (unsigned int i = 0; i < dev->nslots; i++) { in protocolA_move() 109 struct slot *s = &dev in protocolA_move() 140 struct protocolA_device *dev = d->private; protocolA_up() local [all...] |
/third_party/libinput/tools/ |
H A D | libinput-debug-events.c | 61 struct libinput_device *dev = libinput_event_get_device(ev); in print_event_header() local 166 prefix = (last_device != dev) ? '-' : ' '; in print_event_header() 170 libinput_device_get_sysname(dev), in print_event_header() 173 last_device = dev; in print_event_header() 183 print_device_options(struct libinput_device *dev) in print_device_options() argument 187 if (libinput_device_config_tap_get_finger_count(dev)) { in print_device_options() 189 if (libinput_device_config_tap_get_drag_lock_enabled(dev)) in print_device_options() 194 if (libinput_device_config_left_handed_is_available(dev)) in print_device_options() 196 if (libinput_device_config_scroll_has_natural_scroll(dev)) in print_device_options() 198 if (libinput_device_config_calibration_has_matrix(dev)) in print_device_options() 257 struct libinput_device *dev = libinput_event_get_device(ev); print_device_notify() local [all...] |
/third_party/libdrm/freedreno/ |
H A D | freedreno_pipe.c | 37 fd_pipe_new2(struct fd_device *dev, enum fd_pipe_id id, uint32_t prio) in fd_pipe_new2() argument 47 if ((prio != 1) && (fd_device_version(dev) < FD_VERSION_SUBMIT_QUEUES)) { in fd_pipe_new2() 52 pipe = dev->funcs->pipe_new(dev, id, prio); in fd_pipe_new2() 58 pipe->dev = dev; in fd_pipe_new2() 69 fd_pipe_new(struct fd_device *dev, enum fd_pipe_id id) in fd_pipe_new() argument 71 return fd_pipe_new2(dev, id, 1); in fd_pipe_new()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_common.h | 57 GetCustomHeapProperties(ID3D12Device *dev, D3D12_HEAP_TYPE type) in GetCustomHeapProperties() argument 59 return dev->GetCustomHeapProperties(0, type); in GetCustomHeapProperties() 62 GetAdapterLuid(ID3D12Device *dev) in GetAdapterLuid() argument 64 return dev->GetAdapterLuid(); in GetAdapterLuid() 94 GetCustomHeapProperties(ID3D12Device *dev, D3D12_HEAP_TYPE type) in GetCustomHeapProperties() argument 97 dev->GetCustomHeapProperties(&ret, 0, type); in GetCustomHeapProperties() 101 GetAdapterLuid(ID3D12Device *dev) in GetAdapterLuid() argument 104 dev->GetAdapterLuid(&ret); in GetAdapterLuid()
|
/third_party/toybox/kconfig/ |
H A D | Makefile | 21 yes | $< -o $(KCONFIG_TOP) > /dev/null 24 $< -r $(KCONFIG_TOP) > /dev/null 27 $< -y $(KCONFIG_TOP) > /dev/null 30 $< -n $(KCONFIG_TOP) > /dev/null 33 $< -D /dev/null $(KCONFIG_TOP) > /dev/null 36 KCONFIG_ALLCONFIG=$(obj)/macos_miniconfig $< -n $(KCONFIG_TOP) > /dev/null 39 KCONFIG_ALLCONFIG=$(obj)/freebsd_miniconfig $< -n $(KCONFIG_TOP) > /dev/null
|
/third_party/mesa3d/src/freedreno/drm/ |
H A D | freedreno_priv.h | 95 struct fd_bo *(*bo_new)(struct fd_device *dev, uint32_t size, uint32_t flags); 100 struct fd_bo *(*bo_from_handle)(struct fd_device *dev, uint32_t size, 103 struct fd_pipe *(*pipe_new)(struct fd_device *dev, enum fd_pipe_id id, 105 void (*destroy)(struct fd_device *dev); 194 void fd_device_del_locked(struct fd_device *dev); 224 struct fd_device *dev; member 289 fd_dev_count_deferred_cmds(struct fd_device *dev) in fd_dev_count_deferred_cmds() argument 293 simple_mtx_assert_locked(&dev->submit_lock); in fd_dev_count_deferred_cmds() 295 list_for_each_entry (struct fd_submit, submit, &dev->deferred_submits, node) { in fd_dev_count_deferred_cmds() 328 struct fd_device *dev; member [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/ |
H A D | nouveau_screen.c | 101 struct nouveau_device *dev = nouveau_screen(pscreen)->device; in nouveau_screen_bo_from_handle() local 119 ret = nouveau_bo_name_ref(dev, whandle->handle, &bo); in nouveau_screen_bo_from_handle() 121 ret = nouveau_bo_prime_handle_ref(dev, whandle->handle, &bo); in nouveau_screen_bo_from_handle() 191 nouveau_screen_init(struct nouveau_screen *screen, struct nouveau_device *dev) in nouveau_screen_init() argument 216 screen->drm = nouveau_drm(&dev->object); in nouveau_screen_init() 217 screen->device = dev; in nouveau_screen_init() 225 if (dev->chipset < 0xc0) { in nouveau_screen_init() 236 if (dev->chipset > 0x130 && screen->force_enable_cl && enable_svm) { in nouveau_screen_init() 246 const int vram_shift = util_logbase2_ceil64(dev->vram_size); in nouveau_screen_init() 274 switch (dev in nouveau_screen_init() [all...] |
/third_party/mesa3d/src/amd/compiler/ |
H A D | aco_live_var_analysis.cpp | 300 assert(!program->dev.xnack_enabled); in get_extra_sgprs() 305 else if (program->dev.xnack_enabled) in get_extra_sgprs() 312 assert(!program->dev.xnack_enabled); in get_extra_sgprs() 326 uint16_t granule = program->dev.sgpr_alloc_granule; in get_sgpr_alloc() 333 assert(addressable_vgprs <= program->dev.vgpr_limit); in get_vgpr_alloc() 334 uint16_t granule = program->dev.vgpr_alloc_granule; in get_vgpr_alloc() 348 uint16_t sgprs = std::min(program->dev.physical_sgprs / waves, 128); in get_addr_sgpr_from_waves() 349 sgprs = round_down(sgprs, program->dev.sgpr_alloc_granule); in get_addr_sgpr_from_waves() 351 return std::min(sgprs, program->dev.sgpr_limit); in get_addr_sgpr_from_waves() 357 uint16_t vgprs = program->dev in get_addr_vgpr_from_waves() [all...] |
/third_party/backends/backend/ |
H A D | as6e.c | 74 /* static SANE_Status attach_one (const char *dev); */ 654 attach_one (const char *dev) 657 attach (dev, 0); 666 AS6E_Device *dev; in sane_get_devices() local 675 for (dev = first_dev; i < num_devices; dev = dev->next) in sane_get_devices() 676 devlist[i++] = &dev->sane; in sane_get_devices() 845 AS6E_Device *dev; in attach() local 849 for (dev in attach() 886 AS6E_Device *dev; sane_open() local [all...] |
H A D | ma1509.c | 282 Ma1509_Device *dev, new_dev; in attach() local 291 for (dev = first_dev; dev; dev = dev->next) in attach() 292 if (strcmp (dev->sane.name, devname) == 0) in attach() 295 *devp = dev; in attach() 393 dev = malloc (sizeof (*dev)); in attach() 394 if (!dev) in attach() 670 Ma1509_Device *dev; attach_one_device() local 1250 Ma1509_Device *dev, *next; sane_exit() local 1268 Ma1509_Device *dev; sane_get_devices() local 1293 Ma1509_Device *dev; sane_open() local [all...] |
H A D | abaton.c | 411 Abaton_Device *dev; in attach() local 415 for (dev = first_dev; dev; dev = dev->next) in attach() 416 if (strcmp (dev->sane.name, devname) == 0) in attach() 419 *devp = dev; in attach() 465 dev = malloc (sizeof (*dev)); in attach() 466 if (!dev) in attach() 898 Abaton_Device *dev, *next; sane_exit() local 915 Abaton_Device *dev; sane_get_devices() local 939 Abaton_Device *dev; sane_open() local [all...] |
H A D | magicolor.c | 1023 mc_dev_init(Magicolor_Device *dev, const char *devname, int conntype) in mc_dev_init() argument 1027 dev->name = NULL; in mc_dev_init() 1028 dev->model = NULL; in mc_dev_init() 1029 dev->connection = conntype; in mc_dev_init() 1030 dev->sane.name = devname; in mc_dev_init() 1031 dev->sane.model = NULL; in mc_dev_init() 1032 dev->sane.type = "flatbed scanner"; in mc_dev_init() 1033 dev->sane.vendor = "Magicolor"; in mc_dev_init() 1034 dev->cap = &magicolor_cap[MAGICOLOR_CAP_DEFAULT]; in mc_dev_init() 1035 dev in mc_dev_init() 1042 mc_dev_post_init(struct Magicolor_Device *dev) mc_dev_post_init() argument 1055 struct Magicolor_Device *dev = s->hw; mc_set_model() local 1087 Magicolor_Device *dev = s->hw; mc_set_device() local 1126 Magicolor_Device *dev = s->hw; mc_discover_capabilities() local 1730 scanner_create(struct Magicolor_Device *dev, SANE_Status *status) scanner_create() argument 1752 struct Magicolor_Device *dev; device_detect() local 2138 attach_one_usb(const char *dev) attach_one_usb() argument 2145 attach_one_net(const char *dev, unsigned int model) attach_one_net() argument 2242 Magicolor_Device *dev, *next; free_devices() local 2288 Magicolor_Device *dev, *s, *prev=0; sane_get_devices() local [all...] |
/third_party/mbedtls/scripts/ |
H A D | output_env.sh | 33 if ! type "$BIN" > /dev/null 2>&1; then 148 if type pylint >/dev/null 2>/dev/null; then 150 elif type pylint3 >/dev/null 2>/dev/null; then 177 if type dpkg-query >/dev/null 2>/dev/null; then
|
/third_party/alsa-utils/alsa-info/ |
H A D | alsa-info.sh | 48 wget -O $SHFILE "https://www.alsa-project.org/alsa-info.sh" >/dev/null 2>&1 73 rm $SHFILE 2>/dev/null 80 rm $SHFILE 2>/dev/null 90 rm $SHFILE 2>/dev/null 98 rm $SHFILE 2>/dev/null 104 rm -rf "$TEMPDIR" 2>/dev/null 164 ls -la /dev/snd/* >> "$FILE" 274 ALSA_LIB_VERSION="$(grep VERSION_STR /usr/include/alsa/version.h 2>/dev/null | awk '{ print $3 }' | sed 's/"//g')" 281 if command -v dpkg > /dev/null ; then 295 if command -v dpkg > /dev/nul [all...] |
/third_party/vulkan-loader/tests/framework/layer/ |
H A D | test_layer.cpp | 102 bool IsDeviceExtensionAvailable(VkDevice dev, const char* extension_name) { 104 if ((dev == VK_NULL_HANDLE || device.device_handle == dev) && 504 for (int32_t dev = static_cast<int32_t>(tmp_vector.size() - 1); dev >= 0; --dev) { 505 layer.complete_physical_devices.push_back(tmp_vector[dev]); 509 for (uint32_t dev = 0; dev < tmp_vector.size(); ++dev) { [all...] |
/third_party/libdrm/nouveau/ |
H A D | nouveau.c | 388 struct nouveau_device *dev; in nouveau_device_new() local 399 dev = *pdev = &nvdev->base; in nouveau_device_new() 400 dev->fd = -1; in nouveau_device_new() 404 &dev->object); in nouveau_device_new() 410 ret = nouveau_object_mthd(&dev->object, NV_DEVICE_V0_INFO, in nouveau_device_new() 424 ret = nouveau_getparam(dev, NOUVEAU_GETPARAM_CHIPSET_ID, &v); in nouveau_device_new() 429 ret = nouveau_getparam(dev, NOUVEAU_GETPARAM_HAS_BO_USAGE, &v); in nouveau_device_new() 435 ret = nouveau_getparam(dev, NOUVEAU_GETPARAM_FB_SIZE, &v); in nouveau_device_new() 440 ret = nouveau_getparam(dev, NOUVEAU_GETPARAM_AGP_SIZE, &v); in nouveau_device_new() 531 nouveau_getparam(struct nouveau_device *dev, uint64_ argument 542 nouveau_setparam(struct nouveau_device *dev, uint64_t param, uint64_t value) nouveau_setparam() argument 550 nouveau_client_new(struct nouveau_device *dev, struct nouveau_client **pclient) nouveau_client_new() argument 635 nouveau_bo_new(struct nouveau_device *dev, uint32_t flags, uint32_t align, uint64_t size, union nouveau_bo_config *config, struct nouveau_bo **pbo) nouveau_bo_new() argument 661 nouveau_bo_wrap_locked(struct nouveau_device *dev, uint32_t handle, struct nouveau_bo **pbo, int name) nouveau_bo_wrap_locked() argument 726 nouveau_bo_wrap(struct nouveau_device *dev, uint32_t handle, struct nouveau_bo **pbo) nouveau_bo_wrap() argument 738 nouveau_bo_name_ref(struct nouveau_device *dev, uint32_t name, struct nouveau_bo **pbo) nouveau_bo_name_ref() argument 803 nouveau_bo_prime_handle_ref(struct nouveau_device *dev, int prime_fd, struct nouveau_bo **bo) nouveau_bo_prime_handle_ref() argument [all...] |
/third_party/NuttX/drivers/usbdev/gadget/ |
H A D | f_camera.c | 193 void camera_get_composite_devdesc(struct composite_devdesc_s *dev) in camera_get_composite_devdesc() argument 195 dev->mkdevdesc = camera_mkdevdesc; in camera_get_composite_devdesc() 196 dev->mkstrdesc = camera_mkstrdesc; in camera_get_composite_devdesc() 204 struct composite_devdesc_s dev[USB_COMPOSITE_DEV_NUM]; in usbdev_camera_initialize() local 214 usbdev_uvc_initialize_sub(&dev[0], USB_UVC_FIRST_INTERFACE_NUM, DEV_UVC); in usbdev_camera_initialize() 215 camera_get_composite_devdesc(&dev[0]); in usbdev_camera_initialize() 216 usbdev_uac_initialize_sub(&dev[1], USB_UAC_FIRST_INTERFACE_NUM, DEV_UAC); in usbdev_camera_initialize() 217 camera_get_composite_devdesc(&dev[1]); in usbdev_camera_initialize() 219 ret = composite_initialize(com_s, USB_COMPOSITE_DEV_NUM, dev); in usbdev_camera_initialize()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | win_if_list.c | 137 static void show_dev(pcap_if_t *dev) in show_dev() argument 140 dev->name, dev->description); in show_dev() 146 pcap_if_t *devs, *dev; in pcap_enum_devs() local 154 for (dev = devs; dev; dev = dev->next) { in pcap_enum_devs() 155 show_dev(dev); in pcap_enum_devs()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | win_if_list.c | 137 static void show_dev(pcap_if_t *dev) in show_dev() argument 140 dev->name, dev->description); in show_dev() 146 pcap_if_t *devs, *dev; in pcap_enum_devs() local 154 for (dev = devs; dev; dev = dev->next) { in pcap_enum_devs() 155 show_dev(dev); in pcap_enum_devs()
|
/third_party/mesa3d/src/gallium/frontends/clover/api/ |
H A D | program.cpp | 72 if (any_of([&](const device &dev) { in validate_build_common() 73 return !count(dev, prog.devices()); in validate_build_common() 140 if (any_of([&](const device &dev) { in clCreateProgramWithBinary() 141 return !count(dev, ctx.devices()); in clCreateProgramWithBinary() 194 for (const device &dev : ctx.devices()) { in CreateProgramWithILKHR() 195 const cl_version opencl_version = dev.device_version(); in CreateProgramWithILKHR() 233 if (any_of([&](const device &dev) { in clCreateProgramWithBuiltInKernels() 234 return !count(dev, ctx.devices()); in clCreateProgramWithBuiltInKernels() 284 } else if (any_of([&](const device &dev){ in clBuildProgram() 285 return prog.build(dev) in clBuildProgram() 562 auto &dev = obj(d_dev); clGetProgramBuildInfo() local [all...] |