Searched refs:context (Results 1 - 25 of 343) sorted by last modified time

1234567891011>>

/haiku/headers/os/locale/
H A DCatalog.h33 const char* context = NULL,
83 // Specifying the context explicitly with each string allows the person
85 // same string and tell which strings appears in what context of the
88 // programmer needs to define B_TRANSLATION_CONTEXT with the context he'd
112 #define B_TRANSLATE_CONTEXT(string, context) \
113 B_CATALOG->GetString((string), (context))
121 #define B_TRANSLATE_ALL(string, context, comment) \
122 B_CATALOG->GetString((string), (context), \
164 #define B_TRANSLATE_MARK_CONTEXT(string, context) (string)
170 #define B_TRANSLATE_MARK_ALL(string, context, commen
[all...]
/haiku/src/tools/fs_shell/
H A Dvfs.cpp1269 struct io_context *context = get_current_io_context(kernel); local
1271 fssh_mutex_lock(&context->io_mutex);
1272 start = context->cwd;
1275 fssh_mutex_unlock(&context->io_mutex);
2601 * \param kernel \c true, if the IO context of the kernel shall be used,
2678 // Get current working directory from io context
2679 struct io_context *context = get_current_io_context(false); local
2682 fssh_mutex_lock(&context->io_mutex);
2684 if (context->cwd != NULL) {
2685 *_mountID = context
2794 struct io_context *context = (struct io_context *)_context; local
2828 struct io_context *context; local
2896 struct io_context *context = (struct io_context *)_ioContext; local
3545 struct io_context *context = get_current_io_context(kernel); local
3559 struct io_context *context = get_current_io_context(kernel); local
3591 struct io_context *context = get_current_io_context(kernel); local
5013 struct io_context *context = get_current_io_context(kernel); local
5033 struct io_context *context; local
[all...]
/haiku/src/kits/tracker/
H A DContainerWindow.cpp242 uint32 modifiers, bool primary, void* context,
245 AddOneAddOnParams* params = (AddOneAddOnParams*)context;
530 // get rid of context menus
652 // create context sensitive menus
2545 // clicked on a pose, show file or volume context menu
2554 // selected item was trash, show the trash context menu instead
2626 // clean up items from last context menu
2670 // clicked on a window, show window context menu
2678 // context menu invalid or popup window is already open
2782 // create context sensitiv
241 AddOneAddOn(const Model* model, const char* name, uint32 shortcut, uint32 modifiers, bool primary, void* context, BContainerWindow* window, BMenu* menu) argument
2894 EachAddOn(bool (eachAddOn)const Model*, const char*, uint32 shortcut, uint32 modifiers, bool primary, void* context, BContainerWindow* window, BMenu* menu), void* passThru, BStringList& mimeTypes, BMenu* menu) argument
3040 UpdateMenu(BMenu* menu, UpdateMenuContext context) argument
[all...]
H A DContainerWindow.h269 virtual void UpdateMenu(BMenu* menu, UpdateMenuContext context);
/haiku/src/add-ons/media/plugins/ffmpeg/
H A DAVFormatReader.cpp256 // Allocate I/O context with buffer and hook functions, pass ourself as
270 // Allocate our context and probe the input format
273 // avformat_open_input() frees the context in case of failure
327 TRACE(" context stream index: %" B_PRId32 "\n", streamIndex);
363 // Figure out the stream count. If the context has "AVPrograms", use
967 get_channel_count(AVCodecParameters* context) argument
970 return context->ch_layout.nb_channels;
972 return context->channels;
978 get_channel_mask(AVCodecParameters* context) argument
981 return context
1561 const AVFormatContext* context = fStreams[0]->Context(); local
1620 const AVFormatContext* context = fStreams[0]->Context(); local
[all...]
H A DAVCodecDecoder.cpp355 get_channel_count(AVCodecContext* context) argument
357 return context->ch_layout.nb_channels;
362 set_channel_count(AVCodecContext* context, int count) argument
364 context->ch_layout.nb_channels = count;
523 TRACE("No SWS Scale context or decoder has not set the pixel format "
H A DAVFormatWriter.cpp58 StreamCookie(AVFormatContext* context,
83 AVFormatWriter::StreamCookie::StreamCookie(AVFormatContext* context, argument
86 fFormatContext(context),
96 // fStream is freed automatically when the codec context is closed
102 set_channel_count(AVCodecParameters* context, int count) argument
105 context->ch_layout.nb_channels = count;
107 context->channels = count;
422 // Allocate I/O context and initialize it with buffer
H A DAVCodecEncoder.cpp250 get_channel_count(AVCodecContext* context) argument
253 return context->ch_layout.nb_channels;
255 return context->channels;
261 set_channel_count(AVCodecContext* context, int count) argument
264 context->ch_layout.nb_channels = count;
266 context->channels = count;
459 TRACE(" rawBitRate: %d, wantedBitRate: %d (%.1f), context bitrate: %" PRId64 "\n",
/haiku/src/add-ons/kernel/busses/pci/ecam/
H A DECAMPCIControllerACPI.cpp80 ECAMPCIControllerACPI::AcpiCrsScanCallback(acpi_resource *res, void *context) argument
82 return static_cast<ECAMPCIControllerACPI*>(context)->AcpiCrsScanCallbackInt(res);
/haiku/src/add-ons/kernel/busses/mmc/
H A Dsdhci_pci.cpp140 SdhciDevice* context = (SdhciDevice*)cookie; local
141 device_node* parent = gDeviceManager->get_parent_node(context->fNode);
185 if (gDeviceManager->register_node(context->fNode,
194 init_device_pci(device_node* node, SdhciDevice* context) argument
201 device_node* pciParent = gDeviceManager->get_parent_node(context->fNode);
219 context->fRicohOriginalMode = pci->read_pci_config(device,
233 uninit_device_pci(SdhciDevice* context, device_node* pciParent) argument
243 if (gDeviceManager->get_attr_uint16(context->fNode, B_DEVICE_VENDOR_ID,
245 || gDeviceManager->get_attr_uint16(context->fNode, B_DEVICE_ID,
251 context
[all...]
H A Dsdhci.cpp663 SdhciDevice* context = (SdhciDevice*)cookie; local
666 device_node* parent = gDeviceManager->get_parent_node(context->fNode);
688 SdhciDevice* context = new(std::nothrow)SdhciDevice; local
689 if (context == NULL)
691 context->fNode = node;
692 *device_cookie = context;
704 return init_device_pci(node, context);
712 SdhciDevice* context = (SdhciDevice*)device_cookie; local
713 device_node* parent = gDeviceManager->get_parent_node(context->fNode);
721 uninit_device_pci(context, paren
[all...]
H A Dsdhci.h428 extern status_t init_device_pci(device_node* node, SdhciDevice* context);
429 extern void uninit_device_pci(SdhciDevice* context, device_node* pciParent);
H A Dsdhci_acpi.cpp41 sdhci_acpi_scan_parse_callback(ACPI_RESOURCE *res, void *context) argument
43 struct sdhci_crs* crs = (struct sdhci_crs*)context;
140 SdhciDevice* context = (SdhciDevice*)cookie; local
141 device_node* parent = gDeviceManager->get_parent_node(context->fNode);
174 if (gDeviceManager->register_node(context->fNode,
/haiku/src/system/kernel/fs/
H A Dvfs.cpp369 static status_t dir_read(struct io_context* context,
377 static status_t attr_dir_read(struct io_context* context,
395 static status_t index_dir_read(struct io_context* context,
401 static status_t query_read(struct io_context* context,
1612 release_advisory_lock(struct vnode* vnode, struct io_context* context, argument
1631 } else if (lock->bound_to == context
1662 secondLock->bound_to = context;
1726 acquire_advisory_lock(struct vnode* vnode, io_context* context, argument
1733 void* boundTo = descriptor != NULL ? (void*)descriptor : (void*)context;
1921 // lock the I/O context
1922 io_context* context = team->io_context; local
1966 struct io_context* context = get_current_io_context(kernel); local
2343 struct io_context* context = get_current_io_context(kernel); local
2860 io_context* context = get_current_io_context(kernel); local
3355 struct io_context* context = NULL; local
3623 free_io_context(io_context* context) argument
3655 resize_monitor_table(struct io_context* context, const int newSize) argument
4577 struct io_context* context = get_current_io_context(false); local
4878 vfs_release_posix_lock(io_context* context, struct file_descriptor* descriptor) argument
4895 vfs_exec_io_context(io_context* context) argument
4928 io_context* context = (io_context*)malloc(sizeof(io_context)); local
5026 vfs_get_io_context(io_context* context) argument
5033 vfs_put_io_context(io_context* context) argument
5041 vfs_resize_fd_table(struct io_context* context, uint32 newSize) argument
5217 struct io_context* context = get_current_io_context(false); local
5227 struct io_context* context = get_current_io_context(false); local
6159 struct io_context* context = get_current_io_context(kernel); local
8071 struct io_context* context = get_current_io_context(kernel); local
8097 struct io_context* context; local
8234 io_context* context = team->io_context; local
10039 struct io_context* context = get_current_io_context(false); local
[all...]
H A Dfd.cpp46 static struct file_descriptor* get_fd_locked(struct io_context* context,
48 static struct file_descriptor* remove_fd(struct io_context* context, int fd);
94 fd_close_on_exec(struct io_context* context, int fd) argument
96 return CHECK_BIT(context->fds_close_on_exec[fd / 8], fd & 7) ? true : false;
101 fd_set_close_on_exec(struct io_context* context, int fd, bool closeFD) argument
104 context->fds_close_on_exec[fd / 8] |= (1 << (fd & 7));
106 context->fds_close_on_exec[fd / 8] &= ~(1 << (fd & 7));
110 /*! Searches a free slot in the FD table of the provided I/O context, and
114 new_fd_etc(struct io_context* context, struct file_descriptor* descriptor, argument
120 if (firstIndex < 0 || (uint32)firstIndex >= context
150 new_fd(struct io_context* context, struct file_descriptor* descriptor) argument
202 close_fd(struct io_context* context, struct file_descriptor* descriptor) argument
218 close_fd_index(struct io_context* context, int fd) argument
254 get_fd_locked(struct io_context* context, int fd) argument
275 get_fd(struct io_context* context, int fd) argument
284 get_open_fd(struct io_context* context, int fd) argument
301 remove_fd(struct io_context* context, int fd) argument
342 struct io_context* context = get_current_io_context(kernel); local
377 struct io_context* context; local
528 io_context* context = get_current_io_context(kernel); local
607 io_context* context = get_current_io_context(kernel); local
[all...]
/haiku/src/add-ons/kernel/bus_managers/acpi/
H A DBusManager.cpp61 get_device_by_hid_callback(ACPI_HANDLE object, UINT32 depth, void* context, argument
64 uint32* counter = (uint32*)context;
67 TRACE("get_device_by_hid_callback %p, %d, %p\n", object, depth, context);
96 void* context)
154 static void globalNotifyHandler(ACPI_HANDLE device, UINT32 value, void* context) argument
325 acpi_notify_handler handler, void *context)
328 (ACPI_NOTIFY_HANDLER)handler, context) == AE_OK ? B_OK : B_ERROR;
734 acpi_walk_resources_callback callback, void* context)
737 (ACPI_WALK_RESOURCE_CALLBACK)callback, context);
744 acpi_walk_callback ascendingCallback, void* context, voi
95 globalGPEHandler(UINT32 eventType, ACPI_HANDLE device, UINT32 eventNumber, void* context) argument
324 install_notify_handler(acpi_handle device, uint32 handlerType, acpi_notify_handler handler, void *context) argument
733 walk_resources(acpi_handle busDeviceHandle, char* method, acpi_walk_resources_callback callback, void* context) argument
742 walk_namespace(acpi_handle busDeviceHandle, uint32 objectType, uint32 maxDepth, acpi_walk_callback descendingCallback, acpi_walk_callback ascendingCallback, void* context, void** returnValue) argument
[all...]
/haiku/src/system/kernel/arch/ppc/
H A Darch_int.cpp316 ppc_cpu_exception_context *context = ppc_get_cpu_exception_context(i); local
317 context->kernel_handle_exception = (void*)&ppc_exception_tail;
318 context->exception_context = context;
323 // set the exception context for this CPU
557 ppc_set_current_cpu_exception_context(struct ppc_cpu_exception_context *context) argument
561 addr_t inPageOffset = (addr_t)context & (B_PAGE_SIZE - 1);
563 (addr_t)context - inPageOffset, &physicalPage);
/haiku/src/system/kernel/arch/m68k/
H A Darch_int.cpp596 m68k_set_current_cpu_exception_context(struct m68k_cpu_exception_context *context)
600 addr_t inPageOffset = (addr_t)context & (B_PAGE_SIZE - 1);
602 (addr_t)context - inPageOffset, &physicalPage);
/haiku/src/apps/haikudepot/server/
H A DWebAppInterface.cpp93 BUrlContext* context = NULL)
96 listener, context);
1009 BUrlContext context; local
1016 BHttpRequest* request = make_http_request(url, NULL, &listener, &context);
1027 context.AddAuthentication(url, authentication);
/haiku/src/add-ons/kernel/busses/i2c/pch/
H A Dpch_i2c.h51 void *context, void** returnValue);
H A Dpch_i2c.cpp258 pch_i2c_scan_parse_callback(ACPI_RESOURCE *res, void *context) argument
260 struct pch_i2c_crs* crs = (struct pch_i2c_crs*)context;
307 void *context, void** returnValue)
309 pch_i2c_sim_info* bus = (pch_i2c_sim_info*)context;
306 pch_i2c_scan_bus_callback(acpi_handle object, uint32 nestingLevel, void *context, void** returnValue) argument
/haiku/src/system/kernel/vm/
H A Dvm.cpp4713 Returns \c B_OK with \c context.restart set to \c true, if the functions
4716 Returns \c B_OK with \c context.restart set to \c false, if the page was
4717 found. It is returned in \c context.page. The address space will still be
4722 fault_get_page(PageFaultContext& context) argument
4724 VMCache* cache = context.topCache;
4733 page = cache->LookupPage(context.cacheOffset);
4736 context.UnlockAll(cache);
4741 context.restart = true;
4751 if (cache->HasPage(context.cacheOffset)) {
4753 page = vm_page_allocate_page(&context
[all...]
/haiku/src/add-ons/kernel/drivers/power/acpi_lid/
H A Dacpi_lid.cpp72 acpi_lid_notify_handler(acpi_handle _device, uint32 value, void *context) argument
74 acpi_lid_device_info *device = (acpi_lid_device_info *)context;
/haiku/src/add-ons/kernel/drivers/power/acpi_ac/
H A Dacpi_ac.cpp65 acpi_ac_notify_handler(acpi_handle device, uint32 value, void *context) argument
72 acpi_ac_device_info* dev = (acpi_ac_device_info*) context;
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/fuse/
H A DFUSEVolume.cpp759 fuse_context* context = (fuse_context*)RequestThread::GetCurrentThread() local
762 context->private_data = fFS->userData;

Completed in 179 milliseconds

1234567891011>>