Searched refs:MIN (Results 1 - 25 of 104) sorted by path

12345

/haiku/headers/posix/sys/
H A Dparam.h17 #ifndef MIN
18 # define MIN(a,b) (((a) < (b)) ? (a) : (b)) macro
/haiku/headers/private/firewire/
H A Dfirewirereg.h410 #define MIN(a,b) (((a)<(b))?(a):(b)) macro
/haiku/src/add-ons/kernel/bus_managers/ata/
H A DATAHelper.cpp43 int requestSize = MIN(allocationLength, ccb->data_length) - offset;
49 bytes = MIN(size, requestSize);
50 bytes = MIN(bytes, sgList->size);
H A DATARequest.cpp123 size_t senseLength = MIN(sizeof(fCCB->sense), sizeof(sense));
159 fCCB->data_resid = fCCB->data_length - MIN(MIN(sizeof(sense),
/haiku/src/add-ons/kernel/busses/scsi/virtio/
H A DVirtioSCSIHelper.cpp44 int requestSize = MIN(allocationLength, ccb->data_length) - offset;
50 bytes = MIN(size, requestSize);
51 bytes = MIN(bytes, sgList->size);
/haiku/src/add-ons/kernel/busses/usb/
H A Dehci_rh.cpp148 actualLength = MIN(sizeof(usb_port_status),
160 actualLength = MIN(sizeof(usb_port_status), transfer->DataLength());
183 actualLength = MIN(sizeof(usb_device_descriptor),
192 actualLength = MIN(sizeof(ehci_root_hub_configuration_s),
206 actualLength = MIN(sEHCIRootHubStrings[index].length,
215 actualLength = MIN(sizeof(usb_hub_descriptor),
H A Dohci_rh.cpp150 actualLength = MIN(sizeof(usb_port_status),
162 actualLength = MIN(sizeof(usb_port_status), transfer->DataLength());
185 actualLength = MIN(sizeof(usb_device_descriptor),
194 actualLength = MIN(sizeof(ohci_root_hub_configuration_s),
208 actualLength = MIN(sOHCIRootHubStrings[index].length,
217 actualLength = MIN(sizeof(usb_hub_descriptor),
H A Duhci_rh.cpp149 actualLength = MIN(sizeof(usb_port_status),
161 actualLength = MIN(sizeof(usb_port_status), transfer->DataLength());
184 actualLength = MIN(sizeof(usb_device_descriptor),
193 actualLength = MIN(sizeof(uhci_root_hub_configuration_s),
206 actualLength = MIN(sUHCIRootHubStrings[index].length,
215 actualLength = MIN(sizeof(usb_hub_descriptor),
/haiku/src/add-ons/kernel/debugger/laplinkll/
H A Dlaplinkll.cpp344 wanted = MIN(pktlen, *len);
/haiku/src/add-ons/kernel/drivers/bus/firewire/
H A Dfw_raw.c326 len = MIN(len, pbytes);
339 len = MIN(len, pbytes);
426 len = MIN(len, pbytes);
465 len = MIN(len, pbytes);
477 len = MIN(len, pbytes);
599 len = MIN(len, pbytes);
608 len = MIN(len, pbytes);
/haiku/src/add-ons/kernel/drivers/network/wlan/atheroswifi/contrib/ath_hal/ar9300/
H A Dar9300_aic.c443 MIN(MAX(rot_dir_path_att_db, ATH_AIC_MIN_ROT_DIR_ATT_DB),
446 MIN(MAX(rot_quad_path_att_db, ATH_AIC_MIN_ROT_QUAD_ATT_DB),
/haiku/src/add-ons/kernel/drivers/network/wlan/broadcom43xx/dev/bwi/
H A Dbitops.h74 ((__BIT(MAX((__m), (__n)) + 1) - 1) ^ (__BIT(MIN((__m), (__n))) - 1))
/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi3945/dev/wpi/
H A Dif_wpi.c3849 cmd.intval[i] = htole32(MIN(max, pmgt->intval[i]));
4059 return (MIN(dwell_time, bintval - WPI_CHANNEL_TUNE_TIME * 2));
4178 nssid = MIN(ss->ss_nssid, WPI_SCAN_MAX_ESSIDS);
4181 essids[i].len = MIN(ss->ss_ssid[i].len, IEEE80211_NWID_LEN);
/haiku/src/add-ons/kernel/drivers/network/wlan/marvell88w8335/dev/malo/
H A Dif_malohal.c460 blocksize = MIN(256, fw->datasize - count);
/haiku/src/add-ons/kernel/drivers/ports/usb_serial/
H A DKLSI.cpp144 *numBytes = MIN(bytes, *numBytes - 2);
/haiku/src/add-ons/kernel/file_systems/reiserfs/
H A DSuperBlock.cpp128 size_t len = MIN(sizeof(fCurrentData->s_label), bufferSize - 1);
/haiku/src/add-ons/media/media-add-ons/radeon/
H A DRadeonProducer.cpp107 *value = MIN( *value, max_value );
/haiku/src/add-ons/screen_savers/butterfly/
H A DButterfly.cpp70 fScale = MIN(bounds.Width(), bounds.Height()) * 0.1f;
/haiku/src/apps/soundrecorder/
H A DRecorderWindow.cpp619 fPlayLimit = MIN(fPlayFrames,
731 fPlayLimit = MIN(fPlayFrames, (off_t)(fTrackSlider->RightTime()
H A DVolumeSlider.cpp144 fVolume = MIN(MAX(point.x, 11), fRight);
146 fVolume = MAX(MIN(fVolume,1), 0);
/haiku/src/bin/network/telnet/
H A Dring.c72 #if !defined(MIN)
73 #define MIN(a,b) (((a)<(b))? (a):(b)) macro
74 #endif /* !defined(MIN) */
282 i = MIN(count, ring_empty_consecutive(ring));
/haiku/src/bin/unzip/
H A Dfileio.c539 count = MIN(size, (unsigned)G.incnt);
1983 MIN(length, sizeof(G.autorun_command)-1));
2033 MIN((unsigned)OUTBUFSIZ, comment_bytes_left))) == 0)
2203 MIN(length, 2 * AMIGA_FILENOTELEN - 1))) == 0)
H A Dlist.c318 methnum = MIN(G.crec.compression_method, NUM_METHODS);
H A Dprocess.c653 ((error_in_archive = find_ecrec(__G__ MIN(G.ziplen,66000L))) != 0 ||
1119 G.pInfo->hostnum = MIN(G.crec.version_made_by[1], NUM_HOSTS);
1120 /* extnum = MIN(crec.version_needed_to_extract[1], NUM_HOSTS); */
H A Dunzpriv.h2085 #ifndef MIN
2086 # define MIN(a,b) ((a) < (b) ? (a) : (b)) macro

Completed in 184 milliseconds

12345